/*-----------------------------------*\
  #style.css
\*-----------------------------------*/

/**
 * copyright 2022 @codewithsadee
 */



/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/
.light-theme {

  /**
   * light theme colors
   */

  --background-primary: hsl(0, 0%, 100%);
  --background-secondary: hsl(0, 0%, 97%);

  --action-primary: hsl(214, 32%, 91%);
  --action-secondary: hsl(210, 38%, 95%);

  --foreground-primary: hsl(218, 23%, 23%);
  --foreground-secondary: hsl(216, 15%, 52%);
  --foreground-tertiary: hsl(214, 20%, 69%);

  --accent: hsl(0, 0%, 64%);

}

.dark-theme {

  /**
   * dark theme colors
   */

  --background-primary: hsl(218, 23%, 23%);
  --background-secondary: hsl(220, 26%, 14%);

  --action-primary: hsl(216, 15%, 52%);
  --action-secondary: hsl(218, 23%, 23%);

  --foreground-primary: hsl(210, 38%, 95%);
  --foreground-secondary: hsl(211, 25%, 84%);
  --foreground-tertiary: hsl(214, 20%, 69%);

  --accent: hsl(0, 0%, 64%);

}
:root {
  /* ... vos variables existantes ... */

  /**
   * NOUVELLES VARIABLES : Pour l'animation des bulles
   */
  --ball-size: 20vmax;     /* Taille des bulles */
  --blur-amount: 50px;    /* Intensité du flou */

  /* Couleurs des bulles (avec transparence) */
  --color-red: rgba(255, 80, 80, 0.6);
  --color-green: rgba(80, 255, 80, 0.6);
  --color-blue: rgba(80, 80, 255, 0.6);
  --color-yellow: rgba(255, 255, 80, 0.5);

  /* Variables pour les positions (seront mises à jour par JS) */
  /* Initialisation (peut être arbitraire) */
  --x1: 50%; --y1: 50%;
  --x2: 30%; --y2: 70%;
  --x3: 70%; --y3: 30%;
  --x4: 40%; --y4: 60%;
}
/* ** MODIFICATION ICI : Suppression des styles pour .playing et .bar ** */
/*
.playing {
  position: absolute;
  padding: 30px 0;
}

.now.playing .bar {
  display: inline-block;
  position: relative;
  margin-right: 1px;
  width: 10px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--foreground-primary), var(--accent));
  color: transparent;
  animation-name: pulse;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}
.paused.playing .bar {
  animation-iteration-count: 1;
}
.n1 {
  animation-delay: 0.5s;
}
.n2 {
  animation-delay: 0.2s;
}
.n3 {
  animation-delay: 1.2s;
}
.n4 {
  animation-delay: 0.9s;
}
.n5 {
  animation-delay: 2.3s;
}
.n6 {
  animation-delay: 1.3s;
}
.n7 {
  animation-delay: 3.1s;
}

@keyframes pulse {
  0% {
    height: 1px;
    margin-top: 0;
  }
  10% {
    height: 40px;
    margin-top: -40px;
  }
  50% {
    height: 20px;
    margin-top: -20px;
  }
  60% {
    height: 30px;
    margin-top: -30px;
  }
  80% {
    height: 60px;
    margin-top: -60px;
  }
  100% {
    height: 1px;
    margin-top: 0;
  }
}
*/
/* ** FIN DE LA MODIFICATION ** */

button {
  border: none;
  background: none;
  cursor: pointer;
}


:root {

  /**
   * color
   */

  --white: hsl(0, 0%, 100%);

  /**
   * typography
   */

  --fs-base: 0.85rem;
  --fs-1: 1.875rem;
  --fs-2: 1.5rem;
  --fs-3: 1.25rem;
  --fs-4: 0.875rem;
  --fs-5: 0.75rem;

  /**
   * spacing
   */

  --py: 5rem;

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*, *::before, *::after {
  margin:  0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; }

li { list-style: none; }

img, button { display: block; }

a, span { display: inline-block; }

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

html {
  font-family: "Inter", sans-serif;
  font-size: var(--fs-base); /* base font-size (0.85rem = 13.6px) */
  line-height: 1.8;
    height: 100%; /* S'assure que html peut être une référence de hauteur pour body */
}

:focus { outline-offset: 4px; }

body {
    min-height: 100vh; /* Fait en sorte que le body prenne au moins toute la hauteur de la fenêtre */
    display: flex;
    flex-direction: column; /* Empile les enfants (header, main, footer) verticalement */
}

/**
 * scrollbar style
 */

::-webkit-scrollbar { width: 16px; }


::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
  border: 4px solid;
}

.light-theme::-webkit-scrollbar-thumb { border-color: hsl(0, 0%, 90%); }

.dark-theme::-webkit-scrollbar-thumb { border-color: hsl(219, 27%, 20%); }

.light-theme::-webkit-scrollbar-track { background: hsl(0, 0%, 90%); }

.dark-theme::-webkit-scrollbar-track { background: hsl(219, 27%, 20%); }





/*-----------------------------------*\
  #BASE STYLE
\*-----------------------------------*/

.h1,
.h2,
.h3,
.h4 {
  display: block;
  color: var(--foreground-primary);
}

.h1 {
  font-size: var(--fs-1);
  font-weight: 900;
}

.h2 {
  font-size: var(--fs-2);
  font-weight: 700;
}

.h3 {
  font-size: var(--fs-3);
  font-weight: 700;
}

.h4 {
  font-size: var(--fs-4);
  font-weight: 700;
}

.text-sm { font-size: var(--fs-4); }

.text-tiny { font-size: var(--fs-5); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
  margin-inline: auto;
  margin: auto; /* fallback for margin-inline */
  padding: 0 15px;
}

.btn {
  min-width: 10rem;
  border-radius: 100px;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.6875rem 1.1875rem;
}

.btn-primary:hover {
  background: var(--foreground-secondary);
  color: var(--action-primary);
}

.btn-secondary {
  background: var(--action-secondary);
  color: var(--foreground-secondary);
  padding: 0.5rem 1rem;
  border: 3px solid var(--foreground-tertiary);
}

.btn-secondary:hover { border-color: var(--accent); }





/*-----------------------------------*\
  #Extra style for dark theme
\*-----------------------------------*/

.dark-theme .btn-primary:hover { color: var(--background-primary); }

.dark-theme .blog-topic {
  background: var(--action-primary);
  color: var(--foreground-secondary);
}

.dark-theme .blog-topic:hover {
  background: var(--foreground-primary);
  color: var(--action-primary);
}

.dark-theme .load-more:hover { color: var(--white); }

.dark-theme .aside .h2 { color: var(--foreground-primary); }




/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

header { background: var(--background-primary); }

header .flex-wrapper { display: none; }

.navbar {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap: 15px;
  padding: 15px 0;
}

/* ** MODIFICATION ICI : Style pour le logo ** */
.navbar-logo {
  height: 100px; /* Ajustez la hauteur si nécessaire */
  width: auto;  /* Garde les proportions */
}
/* ** FIN DE LA MODIFICATION ** */

.logo-light,
.logo-dark { display: none; }

/* Garde ces règles pour afficher le bon logo selon le thème */
.light-theme .logo-light,
.dark-theme .logo-dark { display: block; }

header .btn-group {
  display:     flex;
  align-items: center;
  gap: 15px;
}

.theme-btn-mobile,
.nav-menu-btn,
.nav-close-btn {
  background: var(--action-secondary);
  color: var(--foreground-tertiary);
  width:  40px;
  height: 40px;
  display:         flex;
  justify-content: center;
  align-items:     center;
  border-radius: 50%;
  font-size: 25px;
}

:is(.theme-btn-mobile,
.nav-menu-btn,
.nav-close-btn):hover {
  background: var(--accent);
  color: var(--white);
}

.theme-btn-mobile ion-icon { display: none; }

.theme-btn-mobile.light .sun,
.theme-btn-mobile.dark .moon { display: block; }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--background-primary);
  padding: 70px 20px;
  overflow: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: 0.5s cubic-bezier(1, 0, 0.30, 0.70);
  z-index: 10;
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}

.nav-close-btn {
  position: absolute;
  top:   20px;
  right: 20px;
}

.mobile-nav .wrapper {
  padding-bottom: 1.25rem;
  margin-bottom:  1.25rem;
  border-bottom: 1px solid var(--action-primary);
}

.mobile-nav .nav-title { margin-bottom: 1rem; }

.mobile-nav .nav-item { margin-bottom: 0.5rem; }

.mobile-nav .nav-link {
  font-size: var(--fs-3);
  color: var(--foreground-secondary);
}

.mobile-nav .nav-link:hover { color: var(--accent); }





/*-----------------------------------*\
  #HERO SECTION
\*-----------------------------------*/

.hero {
  background: var(--background-primary);
  padding-top: 2rem;
  padding-bottom: var(--py);
  text-align: center;
  opacity: 0.9;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: relative;
  z-index: 1; /* Assure qu'elle reste au-dessus de .main::before */
}

.hero .h1 {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hero b {
  color: var(--accent);
  font-weight: inherit;
}

.hero .h3 {
  color: var(--foreground-secondary);
  margin-bottom: 1rem;
}
.hero .h4 {
  color: var(--foreground-secondary);
  margin-bottom: 2rem;
}

.hero .btn-group {
  display:         flex;
  justify-content: center;
  flex-wrap:       wrap;
  gap: 15px;
  text-align: center;
}

.hero .right { display: none; }





/*-----------------------------------*\
  #BLOG SECTION
\*-----------------------------------*/

.main {
  background: var(--background-secondary);
  padding: var(--py) 0;
  position: relative;
  overflow: hidden; /* Important pour contenir le ::before */
  z-index: 0; /* Laisse la place au ::before derrière */
}

.main::before {
  content: '';
  position: fixed; /* ← pas fixed ! */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Derrière le contenu de .main */

  background:
    radial-gradient(circle at var(--x1) var(--y1), var(--color-red) 0, transparent var(--ball-size)),
    radial-gradient(circle at var(--x2) var(--y2), var(--color-green) 0, transparent var(--ball-size)),
    radial-gradient(circle at var(--x3) var(--y3), var(--color-blue) 0, transparent var(--ball-size)),
    radial-gradient(circle at var(--x4) var(--y4), var(--color-yellow) 0, transparent var(--ball-size));

  filter: blur(var(--blur-amount));
  -webkit-filter: blur(var(--blur-amount));
  pointer-events: none; /* Assure l'interactivité du contenu */
}

/* NOUVELLE RÈGLE : Assure que le contenu direct de .main est visible au-dessus de l'effet */
/* Note: Si le contenu direct est '.container', utilisez '.main > .container' */
.main > * {
  position: relative; /* Crée un contexte d'empilement */
  z-index: 1;       /* Place le contenu au-dessus du z-index: -1 de ::before */
}

.blog .h2 {
  line-height: 1.3;
  margin-bottom: 3rem;
  text-align: center;
}

.blog-card-group { margin-bottom: 3rem; }

.blog-card {
  background: var(--background-primary);
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 10px hsla(0, 0%, 0%, 0.05);
  transition: 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 10px hsla(0, 0%, 0%, 0.1);
}

.blog-card-banner { display: none; }

.blog-content-wrapper { padding: 10px 5px; }

.blog-topic {
  background: var(--action-secondary);
  color: var(--foreground-secondary);
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.blog-topic:hover {
  background: var(--foreground-secondary);
  color: var(--action-secondary);
}

.blog-card .h3 {
  line-height: 1.4;
  margin-bottom: 1rem;
}

.blog-card .h3:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.blog-text,
.profile-wrapper { display: none; }

.blog .wrapper {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap: 15px;
}

.blog .h4 { color: var(--foreground-secondary); }

.blog .h4:hover { color: var(--accent); }

.blog .text-sm {
  display:     flex;
  align-items: center;
  gap: 5px;
  color: var(--foreground-tertiary);
}

.blog .separator {
  background: var(--foreground-tertiary);
  margin-inline: 3px;
  margin: 0 3px; /* fallback for margin-inline */
  width:  3px;
  height: 3px;
  border-radius: 3px;
}

.blog ion-icon { --ionicon-stroke-width: 50px; }

.load-more {
  margin-inline: auto;
  margin: auto; /* fallback for margin-inline */
  background: var(--foreground-secondary);
  color: var(--background-secondary);
  padding: 0.6875rem 1.1875rem;
}

.load-more:hover { background: var(--accent); }





/*-----------------------------------*\
  #ASIDE
\*-----------------------------------*/

.aside { display: none; }





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

footer { background: var(--background-primary); }

footer .container {
  padding: var(--py) 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

footer .wrapper { text-align: center; }

.footer-logo { margin-bottom: 10px; }

.footer-text {
  color: var(--foreground-secondary);
  max-width: 300px;
  margin-inline: auto;
  margin: auto; /* fallback for margin-inline */
}

.footer-title {
  color: var(--foreground-primary);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.footer-link { color: var(--foreground-secondary); }

.footer-link:hover { color: var(--accent); }

.copyright {
  color: var(--foreground-secondary);
  font-size: var(--fs-4);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--action-primary);
}

.copyright a {
  color: var(--accent);
  font-weight: 500;
}

.copyright a:hover { text-decoration: underline; }





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for larger than 550px screen
 */

  .blog-card {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 20px;
  border-radius: 30px;
}

.blog-card-banner {
  display: block;
  overflow: hidden;
  border-radius: 5px;
}

.blog-banner-img {
  width:  100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
}
.dark-theme .text-sm .date {
  color: var(--background-primary) ;

}
.text-sm .date {
  color: var(--white);
  border: 2px solid;
  background-color: var(--foreground-secondary);
  border-radius: 10px;
  padding: 2px;
  text-align: center;
}

@media (min-width: 550px) {

  :root {

    /**
     * typography
     */

    --fs-base: 0.90rem;

  }


  /**
   * BLOG
   */


}





/**
 * responsive for larger than 650px screen
 */

@media (min-width: 650px) {

  :root {

    /**
     * typography
     */

    --fs-1: 2.25rem;

  }



  /**
   * REUSED STYLE
   */

  .container { padding: 0 30px; }



  /**
   * HEADER
   */

  .navbar { padding: 30px 0; }






  /**
   * FOOTER
   */

  footer .container {
    padding: var(--py) 30px;
    grid-template-columns: 2fr 1fr 1fr;
  }

  footer .wrapper { text-align: left; }

  .footer-text { margin: 0; }

}





/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 800px; }

}


  /**
   * BLOG
   */

    .blog .h2 {
    position: relative;
    text-align: left;
    padding-left: 2rem;
  }

  .blog .h2::before {
    content: '';
    position: absolute;
    top:  0;
    left: 0;
    background: var(--action-primary);
    width:  5px;
    height: 100%;
    border-radius: 5px;
  }

  .blog-text,
  .profile-wrapper { display: block; }

  .blog-text {
    color: var(--foreground-secondary);
    font-size: var(--fs-4);
    /* display: -webkit-box; */
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
  }

  .blog .wrapper-flex {
    display:         flex;
    justify-content: start;
    align-items:     center;
    gap: 10px;
  }

  .profile-wrapper {
    width:  56px;
    background: var(--action-primary);
    padding: 3px;
    border-radius: 50%;
  }

  .profile-wrapper img { border-radius: 50%; }

  .blog .wrapper {
    flex-direction: column;
    align-items: start;
    gap: 0;
  }



/**
 * responsive for larger than 1024px screen
 */

@media (min-width: 1024px) {

  :root {

    /**
     * typography
     */

    --fs-base: 1rem;
    --fs-1: 3rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1150px; }



  /**
   * HEADER
   */

  header .btn-group { display: none; }

  header .flex-wrapper {
    display: flex;
    gap: 30px;
  }

  .desktop-nav {
    display:     flex;
    align-items: center;
    gap: 30px;
  }

  .desktop-nav .nav-link {
    color: var(--foreground-secondary);
    font-weight: 700;
  }

  .desktop-nav .nav-link:hover { color: var(--accent); }

  .theme-btn-desktop {
    position: relative;
    background: var(--background-secondary);
    color: var(--white);
    width:  52px;
    height: 26px;
    display:         flex;
    justify-content: center;
    align-items:     center;
    gap: 10px;
    border-radius: 100px;
  }

  .theme-btn-desktop.light {
    background: linear-gradient(45deg, hsl(7, 100%, 71%), hsl(46, 100%, 65%));
  }

  .theme-btn-desktop.dark {
    background: linear-gradient(45deg, hsl(225, 100%, 60%), hsl(296, 80%, 40%));
  }

  .theme-btn-desktop::before {
    content: '';
    position: absolute;
    background: var(--white);
    width:  21px;
    height: 21px;
    border-radius: 30px;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px -2px hsla(0, 0%, 0%, 0.05);
    z-index: 2;
  }

  .theme-btn-desktop.dark::before { left: calc(100% - 24px); }



  /**
   * HERO
   */

  .hero { 
    text-align: left;
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
  }

  .hero .btn-group {
    justify-content: start;
    gap: 30px;
  }

  .hero .right {
    position: relative;
    display:         flex;
    justify-content: center;
    align-items:     center;
  }

  .hero .pattern-bg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 200px;
    background: url(../images/pattern.png);
    background-size: contain;
    opacity: 0.2;
  }

  .hero .img-box {
    position: relative;
    z-index: 2;
  }

  .hero-img {
    width:  100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0 0 280px 230px;
    transform: translate(10px, -10px);
  }

  .hero .shape {
    position: absolute;
    top:  50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -42%) rotate(-20deg);
  }

  .hero .shape-1 {
    background: var(--accent);
    width:  90%;
    height: 90%;
    z-index: -1;
  }

  .hero .shape-2 {
    width:  92%;
    height: 92%;
    box-shadow: inset 0 -30px 0 var(--action-primary);
    z-index: -1;
  }



  /**
   * MAIN
   */

  .main .container {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: 60px;
  }



  /* .aside {
    margin-bottom: 3rem;
  } */




  /**
   * FOOTER
   */

  .footer-title { font-size: 1.125rem; }

  .footer-link { margin-bottom: 0.3rem; }

}


.blog {
  margin-bottom: 3rem;
}
  /**
   * ASIDE
   */

    .aside {
    display: block;
    align-self: stretch;
  }

  .aside .h2 {
    color: var(--foreground-secondary);
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.3;
  }

  .aside .wrapper {
    background: var(--background-primary);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.05);
  }

  .topics { margin-bottom: 3rem; }

  .topic-btn {
    display:     flex;
    align-items: stretch;
    background: var(--background-primary);
    border-radius: 10px;
    box-shadow: 0 5px 5px hsla(0, 0%, 0%, 0.05);
    overflow: hidden;
  }

  .topic-btn:not(:last-child) { margin-bottom: 1rem; }

  .topic-btn .icon-box {
    font-size: 22px;
    width: 70px;
    display:         flex;
    justify-content: center;
    align-items:     center;
    background: var(--action-primary);
    color: var(--foreground-secondary);
  }

  .topic-btn:hover .icon-box {
    background: var(--accent);
    color: var(--white);
  }

  .topic-btn ion-icon { --ionicon-stroke-width: 40px; }

  .topic-btn p {
    padding: 15px;
    color: var(--foreground-secondary);
    font-weight: 700;
  }

  .material { margin-bottom: 3rem; }

  .material .wrapper {
    display:   flex;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .material .hashtag {
    background: var(--action-primary);
    color: var(--foreground-secondary);
    padding: 5px 10px;
    font-size: var(--fs-5);
    font-weight: 700;
    border-radius: 5px;
  }

  .material .hashtag:hover {
    background: var(--foreground-secondary);
    color: var(--action-primary);
  }

  .contact { margin-bottom: 3rem; }

  .contact p {
    color: var(--foreground-secondary);
    margin-bottom: 1rem;
  }

  .social-link {
    display:         flex;
    justify-content: center;
    align-items:     center;
    gap: 10px;
  }

  .social-link .icon-box {
    width:  45px;
    height: 45px;
    background: var(--action-secondary);
    border-radius: 50%;
    display:         flex;
    justify-content: center;
    align-items:     center;
    font-size: 22px;
  }

  .social-link .discord { color: hsl(235, 86%, 65%); }

  .social-link .twitter {
    background: linear-gradient(45deg, #1DA1F2, #004E8C); /* dégradé bleu Twitter */
    color: white; /* pour s'assurer que le texte soit visible */
    padding: 10px; /* ajuster selon les besoins */
  }

  .social-link .instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); /* dégradé Instagram */
    color: white; /* pour s'assurer que le texte soit visible */
    padding: 10px; /* ajuster selon les besoins */
  }

  .social-link .facebook {
    background: linear-gradient(45deg, #3b5998, #8b9dc3); /* dégradé Facebook */
    color: white; /* pour s'assurer que le texte soit visible */
    padding: 10px; /* ajuster selon les besoins */
  }

  .social-link .mail {
    background: linear-gradient(45deg, #D44638, #FF6A55); /* dégradé inspiré de Gmail */
    color: white;
    padding: 10px;
  }

  .social-link .icon-box:hover {
    background: blur(50px);;
    /* color: var(--white);
    backdrop-filter: blur(50px); Ajoute un flou sur l'arrière-plan */
  }

  .newsletter {
    position: sticky;
    top: 3rem;
    margin-bottom: 98px;
  }

  .newsletter p {
    color: var(--foreground-secondary);
    margin-bottom: 1rem;
  }

  .newsletter input {
    border: none;
    background: var(--action-primary);
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font: inherit;
    color: var(--foreground-secondary);
    border-radius: 5px;
    margin-bottom: 1rem;
  }

  .newsletter input::placeholder { color: inherit; }

  .newsletter input:focus {
    outline: 2px solid;
    outline-offset: 0;
  }

  .newsletter .btn-primary {
    margin-inline: auto;
    margin: auto; /* fallback for margin-inline */
  }



  /* Section contact */
#contact {
  background-color: var(--action-primary);
  padding: 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#contact h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--foreground-primary);
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact form div {
  display: flex;
  flex-direction: column;
}

#contact form label {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #555;
}

#contact form input,
#contact form textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
  border-color: #007bff;
}

#contact form textarea {
  resize: vertical;
  height: 150px;
}

#contact form button {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact form button:hover {
  background-color: #0056b3;
}

#contact form button:active {
  background-color: #003f7f;
}



.video-container-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Espace entre chaque vidéo */
  justify-content: center; /* Centre les vidéos horizontalement */
  align-items: flex-start; /* Centre les vidéos verticalement si nécessaire */
  margin: 0 auto; /* Centre le conteneur principal */
  max-width: 1200px; /* Limite la largeur du conteneur à une taille maximale */
}

/* Par défaut, les vidéos seront en colonne sur les petits écrans */
.video_video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-top: 20px;
  margin-left: 10px;
  overflow: hidden;
}

.video_video-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  right: -30px;
  bottom: 0;
  background: inherit;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
}


/* Pour les grands écrans (min-width: 1024px), les vidéos s'affichent en ligne */
@media (min-width: 1024px) {
  .video-container-wrapper {
    flex-direction: row; /* Les vidéos seront affichées en ligne */
  }
  .video_video-container {
    width: 45%; /* Les vidéos prennent 45% de la largeur de l'écran */
  }
}



.video-container {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre exactement au milieu */
  width: 80%; /* Largeur relative à l'écran */
  max-width: 800px; /* Largeur maximale */
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour l'esthétique */
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  z-index: 100; /* S'assure que c'est au-dessus d'autres éléments */
}


video {
  width: 100%; /* La vidéo occupe toute la largeur du conteneur */
  border-radius: 8px;
}


.linktree {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.linktree-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
  gap: 2rem;
}

.linktree-profile {
  text-align: center;
}

.linktree-profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;

  margin-left: auto;
  margin-right: auto;

}

.linktree-profile h1 {
  font-size: var(--fs-2);
  color: var(--foreground-primary);
  margin-bottom: 0.5rem;
}

.linktree-profile p {
  color: var(--foreground-secondary);
  margin-bottom: 1rem;
}

.linktree-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.linktree-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* ... autres styles ... */

.linktree-category-title {
  color: var(--foreground-primary); /* Ou une couleur spécifique comme #FFFFFF pour du blanc */
  font-size: 1.2rem; /* Ajustez la taille selon vos préférences */
  font-weight: bold;
  text-align: center; /* Ou 'left' si vous préférez */
  margin-top: 2rem; /* Espace au-dessus du titre de la catégorie */
  margin-bottom: 1rem; /* Espace en dessous du titre, avant les liens */
  /* Si vous voulez un fond spécifique pour le titre, décommentez et adaptez : */
  /* background-color: var(--action-primary); */ /* Exemple de couleur de fond */
  /* padding: 0.5rem 1rem; */
  /* border-radius: 8px; */
}

/* Assurez-vous que le premier titre de catégorie n'a pas de marge supérieure excessive */
.linktree-links > .linktree-category-title:first-child {
  margin-top: 0;
}

/* ... autres styles ... */
.linktree-card {
  background: var(--background-primary);
  border: 2px solid var(--action-primary);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.linktree-card a {
  display: flex;         /* Aligne l'image et le bloc de texte sur la même ligne. */
  align-items: center;   /* Centre verticalement l'image et le texte. */
  gap: 1rem;             /* Ajoute un espace entre l'image et le texte. */
  padding: 1rem;         /* Espace intérieur pour la carte. */
  /* ... autres styles ... */
}
.linktree-card:hover {
  transform: scale(1.02);
  background: var(--action-secondary);
}

.linktree-card a.has-banner {
  flex-direction: column; /* Les éléments (bannière, texte) seront empilés verticalement */
  align-items: stretch;   /* Les éléments prendront toute la largeur disponible */
  padding: 0; /* Retirer le padding si la bannière doit toucher les bords de la carte */
}

.linktree-card a.has-banner .linktree-banner {
  width: 100%; /* La bannière prend toute la largeur de la carte */
  height: auto; /* Conserve le ratio de l'image */
  object-fit: cover;
  /* Si la carte a des coins arrondis et padding:0, la bannière pourrait en avoir besoin aussi */
  /* border-top-left-radius: 12px; */ /* Correspond au border-radius de .linktree-card */
  /* border-top-right-radius: 12px; */
}

.linktree-card a.has-banner .linktree-card-text {
  padding: 1rem; /* Réappliquer du padding pour le contenu textuel sous la bannière */
  text-align: center; /* Ou left, selon votre design */
}

.linktree-banner {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.linktree-thumbnail {
  width: 60px;             /* Ou la taille que vous souhaitez. */
  height: 60px;            /* Ou la taille que vous souhaitez. */
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;          /* Empêche l'image de rétrécir. */
}

.linktree-card-text {
  text-align: left;
  flex-grow: 1; /* Permet au texte de prendre l'espace restant (en mode flex-row) */
  display: flex; /* Pour un meilleur contrôle de l'icône et du titre */
  align-items: center; /* Aligne l'icône et le titre sur la même ligne */
  align-items: flex-start; /* Si le texte est lui-même un conteneur flex en colonne. */
  gap: 0.75rem; /* Espace entre l'icône et le titre */
}

.linktree-card a.has-banner .linktree-card-text {
    flex-direction: column; /* Pour les bannières, le texte (titre, icone, sous-titre) s'empile */
    align-items: center; /* Centrer le texte si la bannière est au dessus */
}

.linktree-card-text .link-icon {
  font-size: 1.5rem; /* Ajustez la taille de l'icône principale du lien */
}

/* Style pour l'icône en haut à droite */
.icon-top-right {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.3rem; /* Taille de l'icône */
  color: var(--foreground-tertiary); /* Couleur de l'icône */
  z-index: 2; /* Pour s'assurer qu'elle est au-dessus d'autres éléments */
}

/* Style pour le bouton de partage */
.share-button {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background-color: var(--action-secondary);
  color: var(--foreground-primary);
  border: none;
  border-radius: 50%; /* Pour un bouton rond */
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem; /* Taille de l'icône de partage */
  z-index: 2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.share-button:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* Ajustement pour les cartes avec bannières où le padding de <a> est 0 */
.linktree-card a.has-banner .icon-top-right {
  top: 1rem; /* Ajustez si la bannière est grande */
  right: 1rem;
  /* Optionnel: si la bannière a des couleurs sombres, vous pourriez vouloir une icône blanche */
  /* color: var(--white); */ 
  /* text-shadow: 0 0 3px rgba(0,0,0,0.5); */ /* Pour la lisibilité sur la bannière */
}

.linktree-card a.has-banner .share-button {
  /* Similaires ajustements que pour icon-top-right si besoin, ou le laisser sur le fond sous la bannière */
  /* Si vous voulez le bouton sur la bannière : */
  /* bottom: 1rem; */
  /* right: 1rem; */
  /* color: var(--white); */
  /* background-color: rgba(0,0,0,0.3); */
}

.linktree-title {
  color: var(--foreground-secondary);
  font-weight: bold;
  font-size: var(--fs-3); /* Tel que défini dans votre CSS original */
}

.subtitle { /* Ceci est utilisé pour title_on_banner */
  font-size: var(--fs-5); /* Tel que défini dans votre CSS original */
  color: var(--foreground-secondary);
}

.linktree-card a.has-banner .subtitle {
    /* Si title_on_banner doit être superposé à la bannière,
       il faudrait que .linktree-banner soit dans un conteneur position:relative,
       et .subtitle (ou .title-on-banner) en position:absolute.
       Pour l'instant, il s'affiche avec le reste du texte sous la bannière. */
}
