/* Variables globales */
:root {
  --cyan:   #15eaff;
  --rose:   #ff487c;
  --shadow: #4a4440;
  --cream:  #fff9f2;
  --marron: #b57d4a;
  --primary: #b57d4a;
  --bg-light: #f4f1eb;
  --text: #333;
  --accent: #ffeed0;
  --radius: 18px;
  --content-width: 760px;
  /* espace horizontal commun */
  --space-2xs: 0.25rem;
  --space-xs : 0.5rem;
  --space-s  : 0.75rem;
  --space-m  : 1rem;
  --space-l  : 1.5rem;
  --space-xl : 2rem;
  /* vertical gap between h2 and h3 */
  --gap-h2-h3: 0.75rem;
  /* Nuancier or pour les cartes VIP */
  --or-foncé-1:  #9a6b12;   /* bas */
  --or-foncé-2:  #bd882c;   /* haut */
  --or-clair-1:  #e8d38b;   /* zone lumineuse */
  --or-clair-2:  #ecd992;   /* centre */
  --or-satin:    #d1b03c;   /* transition */
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--cream);
  color: #000;
  overflow-x: hidden;
  max-width: 100vw;
}

h2 {
  font-family: 'Lilita One', cursive;
  font-weight: 400;
  font-size: clamp(3.8rem, 2.5vw, 2.2rem);
}

h3 {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 2rem;
  color: var(--cyan);
  text-align: center;
}

/* Utility class to apply default H3 styling */
.H3 {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 2rem;
  color: var(--cyan);
  text-align: center;
}

/* Reset heading margins within sections */
section h2,
section h3 {
  margin-block: 0;
}

/* Consistent spacing between section titles and subtitles */
section h2 + h3,
section h2 + .H3 {
  margin-block-start: var(--gap-h2-h3);
  margin-block-end: 2rem;
}

/* Heading colors depending on section background */
section h3,
section .H3 {
  color: var(--rose);
}
.howplay h3,
.howplay .H3,
.reviews h3,
.reviews .H3 {
  color: var(--cyan);
}

/* Styling for page-specific headings */
@media (max-width: 768px) {
  body.index-page h2,
  body.vip-page h2 {
    font-size: 2.2rem;
  }
}

body.index-page section:not(.howplay) h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #000;
  font-size: 1.4rem;
}

/* — HEADER — */
.main-header {
  width: 100vw;
  background: #fff;
  border-bottom: none;
  box-shadow: 0 1px 16px #eed7ad10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3em 4vw 0.3em 2vw;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}
.header-logo {
  position: relative;
  height: 2.2rem;
}
.header-logo a {
  display: block;
  height: 100%;
}
.header-logo img {
  position: absolute;
  top: 100%;
  left: 0;
  height: 3.6rem;
  display: block;
  transform: translateY(-50%);
  transition: transform 0.2s;
}
.header-logo img:hover {
  transform: translateY(-50%) scale(1.1);
}
.header-nav {
  display: flex;
  gap: 2.2vw;
  transition: all .3s;
}
.nav-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.13rem;
  color: #b57d4a;
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 0.13em 0.7em;
  border-radius: 22px;
  transition: background 0.17s, color 0.17s;
}
.nav-link.active,
.nav-link:hover,
.nav-link:active {
  background: var(--rose);
  color: #fff;
}
/* Bouton VIP premium */
.nav-vip {
  background: linear-gradient(90deg, #cfb53b 0%, #f8e48e 100%);
  color: #654500 !important;
  font-weight: bold;
  border-radius: 26px;
  padding: 0.16em 1.25em;
  box-shadow: 0 2px 10px 0 #d8be6a22;
  border: 1.5px solid #cfb53b;
  font-size: 1.12em;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px #fff9;
  position: relative;
  margin-left: 0.3em;
  transition: filter .15s, box-shadow .18s;
  display: flex;
  align-items: center;
  gap: 0.38em;
}

.vip-icon {
  display: inline-flex;
  align-items: center;
  height: 1.15em;
  margin-right: 0.23em;
}
.nav-vip svg {
  display: inline-block;
  height: 1.15em;
  width: auto;
  filter: drop-shadow(0 1px 4px #cfb53b44);
  transition: transform .16s;
}
.nav-vip:hover .vip-icon svg {
  transform: scale(1.11) rotate(-4deg);
  filter: drop-shadow(0 2px 10px #cfb53baa);
}

.nav-vip:hover,
.nav-vip:focus {
  filter: brightness(1.07);
  box-shadow: 0 6px 14px #ccb06a45;
  color: #3a2e27 !important;
  text-decoration: none;
}


/* Hamburger button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1101;
  margin-left: 0.7em;
}
.burger span {
  width: 28px;
  height: 3.4px;
  background: #b57d4a;
  margin: 3px 0;
  border-radius: 2px;
  display: block;
  transition: all 0.22s cubic-bezier(.4,2,.6,1);
}

/* Responsive : nav caché sur mobile + burger visible */
@media (max-width: 800px) {
  .header-nav {
    position: absolute;
    top: 64px;  /* ajuste selon la hauteur du header */
    right: 2vw;
    background: #fff9e9;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1em 1.2em;
    gap: 1.1em;
    box-shadow: 0 8px 28px #baa07733;
    border-radius: 20px;
    transform: translateY(-32px) scaleY(0);
    opacity: 0;
    pointer-events: none;
    min-width: 135px;
    width: max-content;
    transition: transform .27s, opacity .2s;
    z-index: 1100;
  }
  .header-nav.open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: all;
  }
  .burger { display: flex; }
  .main-header { padding: 0.2em 1.2em; }
}


/* Burger X animation */
.burger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}




/* — HERO — */
.hero { position: relative; display: flex; align-items: center; gap:6vw; padding:0 6vw; min-height:97vh; overflow:hidden; }
.parallax-layer { position: fixed; inset:0; z-index:-1; opacity:.35; pointer-events:none; overflow:visible; }
.parallax-card { position:absolute; width:120px; aspect-ratio:3/4; background-size:cover; background-repeat:no-repeat; will-change:transform,opacity; transform-origin:center; }
.hero-text { z-index:1; max-width:46vw; }
.hero-title,
.vip-hero-title,
h1 {
  font-family: 'Titan One', cursive;
  font-weight: 400;
  font-size: 5.2vw;
  line-height: 1.05;
  color: var(--rose);
  white-space: pre-line;
}
.hero-desc { font-style:italic; font-size:1.35rem; margin:4vh 0 3vh; }
.hero-form {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.hero-form input[type="email"]:focus {
  border-color: #ffd700;
}

.hero-form button {
  background: var(--rose);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-form button:hover {
  background: var(--marron);
  transform: translateY(-1px);
}
.hero-img img { width:420px; max-width:32vw; }
@media (max-width:1100px) {
  .hero { flex-direction:column; text-align:center; padding-top:4vh; }
  .hero-text { max-width:90vw; }
  .hero-title,
  .vip-hero-title,
  h1 { font-size: 2.8rem; }
  .hero-img img { width:220px; max-width:60vw; }
  .hero-form { flex-direction:column; gap:1rem; width:100%; }
}

/* — ORIGIN STORY — */
.originstory {
  background: var(--cream);
  text-align: center;
  color: #000;
  padding: 8vh 6vw;
}
.originstory h2 {
  text-align: center;
}
.originstory h3 {
  color: var(--rose);
  margin-bottom: 2rem;
  text-align: center;
}
.originstory h4 {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--marron);
  margin: 2rem 0 .5rem;
}
.originstory p { font-size:1.1rem; line-height:1.5; margin-bottom:1.5rem; }
.origin-list { list-style:none; padding:0; max-width:600px; margin:0 auto 2rem; text-align:left; font-size:1.1rem; }
.origin-list li { margin-bottom:1rem; }
.origin-carousel {
  overflow: hidden;
  width: 100%;
  margin: 2rem auto;
}
.origin-track { display:flex; gap:1rem; animation:origin-scroll 18s linear infinite; }
.origin-track img { width:270px; max-width:70vw; height:auto; border-radius:20px; }
@keyframes origin-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }

@media (max-width: 768px) {
  .origin-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .origin-carousel::-webkit-scrollbar {
    display: none;
  }
  .origin-track {
    animation-duration: 12s;
  }
}

/* Conversation bubbles */
.origin-chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0;
}
.origin-chat .bubble {
  padding: 0.75rem 1rem;
  border-radius: 20px;
  max-width: 80%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.origin-chat .left {
  background:#f1f1f1;
  align-self:flex-start;
}
.origin-chat .right {
  background:#e0f7fa;
  align-self:flex-end;
}

/* — HOW TO PLAY — */
.howplay { background:var(--marron); padding:8vh 6vw; text-align:center; color:#fff; }
.howplay-title { font-family:'Lilita One',cursive; font-weight:400; }
.howplay-sub { margin-bottom: 2rem; }
.howplay-lead {
  max-width: 900px;
  margin: 0 auto 6vh;
  font-weight: 700;
  font-size: 1.4rem;
  color: #000;
  font-family: 'Montserrat', Arial, sans-serif;
}
.step { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4vw; margin-bottom:8vh; }
.step.reverse { flex-direction:row-reverse; }
.step-img { width:360px; max-width:45vw; }
.step-text { max-width:520px; }
.howplay-caption .step-title { font-family:'Caveat',cursive; font-size:2rem; margin-bottom:1vh; color:#000; }
.step-text p { font-size:1.2rem; }
@media (max-width:900px) {
  .step          { gap:2rem; }
  .step-img      { width:240px; }
  .howplay-caption .step-title    { font-size:1.6rem; }
}

.howplay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 8vh;
  justify-items: center;
}

.howplay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.howplay-card video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 16vh);
  border-radius: 12px;
  pointer-events: none;
  display: block;
}
@media (min-width: 900px) {
  .howplay-card video {
    max-width: 540px;
    max-height: 360px;
  }
}
.howplay-caption { max-width:520px; margin:0 auto; text-align:center; }
.howplay-caption p { font-size:1.2rem; }
@media (min-width:600px) {
  .howplay-grid { grid-template-columns: repeat(2,1fr); }
}

/* — ANIMATED CARDS — */
.card-container { position:relative; margin:0 auto; width:200px; height:280px; z-index:1;margin-top:-100px }
.card-container img { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); max-width:100px; width:100%; transition:transform .3s ease-out; }
.card-left   { z-index:3; }
.card-center { z-index:2; }
.card-right  { z-index:1; }

/* —— Version Comparison Section —— */
.versionComparison {
  padding: 8vh 6vw;
  text-align: center;
}

/* — RESPONSIVE VERSUS SECTION — */

/* 1. Par défaut, mode tableau */
.versus-title { font-family:'Lilita One',cursive; font-weight:400; text-align:center;}
.versus-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1.1rem;
}
.versus-table th, .versus-table td {
  padding: 1.2rem .5rem;
  border-bottom: 1px solid #e0dcd7;
  text-align: center;
}
.versus-table .feature {
  text-align: left;
  font-weight: 700;
}

/* Desktop: on cache le carousel mobile */
.versus-carousel { display: none; }

@media (max-width: 900px) {
  html, body { max-width: 100vw; overflow-x: hidden; }
  .versus-table { display: none; }
  .versus-carousel { 
    display: block;
    margin: 0 auto;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
  }
  .carousel-track {
    display: flex;
    transition: transform .35s cubic-bezier(.77,0,.18,1);
    will-change: transform;
    width: 100vw;
  }
  .carousel-card {
    min-width: 100vw;
    max-width: 100vw;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px #e8e2d9d7;
    padding: 2.4rem 1.6rem 2.2rem 1.6rem;
    text-align: left;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid var(--cream);
    position: relative;
  }
  .carousel-card h3 {
    color: var(--marron);
    font-size: 1.45rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
  }
  .carousel-card ul {
    list-style: none;
    margin: 0; padding: 0;
    width: 100%;
  }
  .carousel-card li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.1rem;
  }
  .carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
    gap: 10px;
  }
  .carousel-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background .22s;
  }
  .carousel-dot.active {
    background: var(--cyan);
  }
}

/* spacing and layout for cult invite block */
.cult-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 32px;
}

@media (max-width: 768px) {
  .cult-invite {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}



/* — REVIEWS SLIDER — */
.reviews { background:var(--marron); padding:8vh 4vw; text-align:center; }
.reviews-title { font-family:'Lilita One',cursive; font-weight:400; color:#fff; }
.reviews-wrapper { position:relative; max-width:1200px; margin:0 auto; overflow:hidden; }
.reviews-slider { display:flex; transition:transform .5s ease; width:100%; }
.review-item { min-width:100%; padding:0 2rem; display:flex; flex-direction:column; align-items:center; gap:1rem; color:#fff; }
.review-quote { font-weight:700; font-size:1.3rem; }
.review-stars { color:gold; font-size:1.4rem; letter-spacing:.1rem; }
.review-text  { max-width:600px; font-size:1rem; line-height:1.4; }
.review-img   { width:80px; height:80px; border-radius:50%; border:3px solid #e4e0dc; object-fit:cover; }
.review-name  { font-weight:700; font-size:1.2rem; }
.review-role  { font-size:.85rem; color:#fff; }
.nav { position:absolute; top:45%; transform:translateY(-50%); background:none; border:none; color:var(--cyan); font-size:2.4rem; cursor:pointer; }
.prev { left:10px; } .next { right:10px; }
.dots { display:flex; justify-content:center; gap:.5rem; margin-top:3vh; }
.dot  { width:10px; height:10px; border-radius:50%; background:#ccc; cursor:pointer; }
.dot.active { background:#555; }

/* -- VIP Invite -- */
.vip-invite {
background: linear-gradient(           /* type de dégradé   */
              to bottom right,           /* direction         */
              #632c88 0%,                /* départ coin haut gauche */
              #000000 100%);             /* fin coin bas droit */
  padding: 6vh 0 7vh 0;
  text-align: center;
  box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.08);
  position: relative;
  overflow: hidden;
}
.vip-invite > * { position: relative; z-index: 1; }
.diamond-layer { position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.35; overflow:visible; }
.diamond { position:absolute; width:60px; aspect-ratio:1; background-size:contain; background-repeat:no-repeat; will-change:transform,opacity; transform-origin:center; }


.vip-invite-card {
  background: #fff9e9;
  border-radius: 24px;
  box-shadow: 0 6px 32px #c7a16444, 0 0 0 5px #ffe9a3 inset;
  max-width: 440px;
  margin: 0 2vw;
  padding: 2.5rem 2.2rem 2.5rem 2.2rem;
  text-align: center;
  position: relative;
  transition: box-shadow .22s;
}
/* conteneur qui empile les deux éléments */
.vip-banner{
  position: relative;
  display: grid;         /* 1 seule “case” */
  place-items: center;   /* centre horizontal + vertical */
  font-family: 'Lilita One', cursive;
  font-size: 3rem;
  margin: 0;
  text-align: center;
}

/* TEXTE DEVANT (dégradé) — inchangé */
.vip-invite-title{
  font-size:3rem;
  line-height:1.15em;

  background:linear-gradient(to bottom,#cfc09f 27%,#ffecb3 40%,#3a2c0f 78%);
  background-size:100% 1.15em;
  background-repeat:repeat-y;
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;

  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;

  position:relative;
  z-index:2;
}

/* CALQUE ARRIÈRE — corrigé */
.vip-invite-layer1{
  position:absolute;
  inset:0;                 /* recouvre exactement le même espace */
  width:100%;              /* ↔ prend toute la largeur dispo     */
  display:block;           /* plus de flex => le texte peut wrap */
  white-space:normal;      /* autorise les retours à la ligne    */
  line-height:inherit;     /* 1.15em, comme l’autre              */
  text-align:center;       /* pour rester centré                 */

  color:#c6bb9f;
  text-shadow:
      -1px 0 1px #c6bb9f,
       0   1px 1px #c6bb9f,
       5px  5px 10px rgba(0,0,0,.40),
      -5px -5px 10px rgba(0,0,0,.40);

  pointer-events:none;
  user-select:none;
  z-index:1;               /* sous le vrai texte                 */
}

.vip-invite-img {
  text-align: center;
  margin-bottom: 1.5rem;
}
.vip-invite-img img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.vip-invite-list {
  list-style: none;
  margin: 0 0 1.7em 0;
  padding: 0;
  text-align: center;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}
.vip-invite-list li {
  margin: .65em 0;
  padding-left: 0;
}
.vip-invite-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, var(--cyan) 10%, #ffdc60 80%);
  color: #222;
  font-size: 1.14rem;
  font-weight: 700;
  border-radius: 25px;
  padding: .9em 2.6em;
  box-shadow: 0 2px 12px #ffdc6088;
  text-decoration: none;
  transition: background .22s, color .15s;
  border: none;
}
.vip-invite-cta:hover {
  background: linear-gradient(90deg, #ffd700 0%, var(--cyan) 100%);
  color: #181818;
}
.vip-invite-desc {
  font-size: 1.01rem;
  margin-top: 1.3rem;
  color: #ffffff;
  font-style: italic;
}
@media (max-width:700px) {
  .vip-invite-card { padding: 2rem 0.7rem; }
  .vip-invite-list { font-size: 1rem; }
}
/* Fichier : styles-mobile.css — chargé en dernier */
@media (max-width: 768px) {
  body.vip-page .vip-invite-title,  /* ↑ +1 de spécificité */
  .vip-invite-title {
    font-size: 3rem !important;     /* dernier recours */
  }
}


/* -- Kickstarter Section -- */
.kickstarter { background: var(--cream); padding: 8vh 6vw; text-align: center; }
.kickstarter-wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4vw; }
.kickstarter-img { flex: 0 0 30%; text-align: center; }
.kickstarter-img img { width: 100%; max-width: 240px; height: auto; }
.kickstarter-text { flex: 0 0 70%; }
@media (max-width:700px) {
  .kickstarter-img, .kickstarter-text { flex: 0 0 100%; }
}



/* — FAQ ACCORDION — */
.faq { background:var(--cream); padding:8vh 6vw 10vh; }
.faq-title { font-family:'Lilita One',cursive; font-weight:400; text-align:center; color:#000; }
.faq-image { display:block; margin:0 auto 1rem; max-height:250px; height:auto; }
.faq-container { max-width:900px; margin:0 auto; }
.faq-item { border-bottom:1px solid #ddd; padding:.8rem 0; }
.faq-question { background:none; border:none; width:100%; text-align:left; font-size:1.1rem; padding:.5rem 0; font-weight:700; cursor:pointer; position:relative; color:#000; }
.faq-question::after { content:'➕'; position:absolute; right:0; transition:transform .2s; }
.faq-question[aria-expanded="true"]::after { content:'➖'; }
.faq-question:focus { outline:2px solid var(--cyan); }
.faq-answer { display:none; padding:.5rem 0 1rem; font-size:1rem; color:#333; }
.faq-answer.show { display:block; }
.vip-faq { background:var(--cream); padding:8vh 6vw 10vh; }
.vip-faq h2 { font-family:'Lilita One',cursive; font-weight:400; text-align:center; color:#000; }

/* --- Legal Section --- */
.legal { background: var(--cream); padding: 8vh 6vw; }



/* — FOOTER — */
/* — FOOTER — */
.footer {
  background: #222;
  color: #eee;
  padding: 2rem 4vw;
  text-align: center;          /* titre + paragraphes centrés */
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;     /* ← centrage du groupe */
  align-items: center;
  gap: 2rem;                   /* espace régulier entre blocs */
}

.footer-left,
.footer-right {
  flex: 0 1 auto;              /* largeur auto, pas d’étirement */
  text-align: center;          /* contenu centré dans chaque bloc */
  max-width: 350px;            /* garde la limite sur .footer-right */
}
.footer-logo{font-family:'Luckiest Guy',cursive;font-size:1.8rem;margin-bottom:1rem;color:var(--cyan);}
.footer-logo-img{width:100px;height:auto;margin-bottom:1rem;}
.footer-links a { margin:0 1rem; color:#eee; text-decoration:none; font-size:.95rem; }
.footer-links a:hover { color:var(--cyan); }
.social-links { margin:1rem 0; }
.social-links a { margin:0 0.5rem; display:inline-block; }
.social-icon { width:24px; height:24px; filter:brightness(0) invert(1); opacity:.8; transition:opacity .2s; }
.social-links a:hover .social-icon { opacity:1; }
.footer-copy { font-size:.85rem; color:#aaa; margin-top:1rem; }


/* VIP Popup - Version corrigée pour votre JS original */
#vip-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none !important; /* Force le masquage par défaut */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

#vip-popup.show {
  display: flex !important; /* Force l'affichage avec la classe show */
}

.vip-container {
  background: linear-gradient(135deg, #f5f1e8 0%, #f0e6d2 100%);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

/* Bouton fermer */
.vip-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%; /* Coins arrondis */
  width: 35px;
  height: 35px;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.vip-close:hover {
  background: rgba(255, 255, 255, 1);
  color: #333;
  transform: scale(1.1);
}

/* Section visuelle */
.vip-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  position: absolute;
  left: 30px;
  top: 45px;
  z-index: 5;
}

.vip-visual-img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 15px;
}

/* Contenu principal */
.vip-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
  box-sizing: border-box;
  width: 100%;
}

/* Section header avec badge et titre */
.vip-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-left: 100px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.vip-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Badge VIP */
.vip-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
  color: #8B4513;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
  align-self: center;
}

/* Titre */
.vip-title {
  font-size: 24px;
  font-weight: bold;
  color: #8B4513;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.vip-intro {
  font-size: 16px;
  color: #A0522D;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Liste des avantages */
.vip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.vip-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #5D4037;
  font-size: 14px;
  text-align: left;
  box-sizing: border-box;
}

.vip-emoji {
  font-size: 18px;
  flex-shrink: 0;
}

.vip-discount {
  color: #E65100;
  font-weight: bold;
}

/* Bouton principal */
.vip-btn {
  display: inline-block;
  padding: 15px 25px;
  text-decoration: none;
  border-radius: 25px; /* Coins arrondis */
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.originstory .vip-btn {
  display: inline-block;
  margin: 2rem auto;
  padding: 15px 20px;
}

.vip-btn-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
  color: #8B4513;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.vip-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  color: #fff;
}

/* Bouton avec effet de remplissage */
.fill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s;
  --duration: 0.9s;
  /*
   * Custom properties controlling the rotation of the splash element
   * must live on the button itself so that JavaScript can update them
   * dynamically when the pointer enters the button.
   */
  --rot-start: 0deg;
  --rot-end: 60deg;
}

.fill-btn > span {
  position: relative;
  z-index: 2;
}

.fill-btn .splash {
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(var(--rot-start)) scale(0);
  transform-origin: 50% 50%;
  transition: transform var(--duration) cubic-bezier(0.26,0.8,0.32,1.05);
  z-index: 1;
  pointer-events: none;
}

.fill-btn:hover .splash {
  transform: translate(-50%, -50%) rotate(var(--rot-end)) scale(15);
}

.fill-btn:hover {
  color: #fff;
}

/* Séparateur */
.vip-divider {
  text-align: center;
  color: #A0522D;
  font-size: 16px;
  font-weight: 500;
  margin: 10px 0;
}

/* Section d'inscription rapide */
.vip-quick-signup {
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.vip-quick-signup p {
  color: #A0522D;
  font-size: 14px;
  margin: 0 0 15px 0;
}

/* Formulaire */
.hero-form {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  max-width: 350px;
  box-sizing: border-box;
}

.hero-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 25px; /* Coins arrondis */
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.hero-form input[type="email"]:focus {
  border-color: #ffd700;
}

.hero-form button {
  background: var(--rose);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px; /* Coins arrondis */
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-form button:hover {
  background: var(--marron);
  transform: translateY(-1px);
}

/* Note de spam */
.vip-mini-note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  text-align: center;
}

/* Message d'erreur */
#form-error {
  border-radius: 8px; /* Coins arrondis */
  padding: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #vip-popup {
    padding: 10px;
  }
  
  .vip-container {
    max-width: 100%;
    max-height: 95vh;
  }
  
  .vip-visual {
    position: static;
    padding: 20px 20px 10px 20px;
    justify-content: center;
    align-items: center;
  }
  
  .vip-visual-img {
    max-width: 80px;
    max-height: 80px;
  }
  
  .vip-content {
    padding: 20px;
    gap: 15px;
  }
  
  .vip-header {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-bottom: 0;
  }
  
  .vip-header-content {
    align-items: center;
  }
  
  .vip-title {
    font-size: 20px;
    text-align: center;
  }
  
  .hero-form {
    flex-direction: column;
    max-width: 100%;
  }
  
  .hero-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .vip-container {
    margin: 0;
    max-height: 100vh;
    border-radius: 0; /* Pas de coins arrondis sur très petit écran */
  }
  
  .vip-content {
    padding: 15px;
  }
  
  .vip-title {
    font-size: 18px;
  }
}
/* -------------------------------------------------- VIP PAGE------------------------------------------------ ----- */

:root {
  --vip-gold: #f8e48e;
  --vip-gold2: #cfb53b;
  --vip-brown: #a67c52;
  --vip-bg-light: #fff9e9;
  --vip-bg-card: #fffbe6;
  --vip-shadow: 0 4px 22px 2px #cfb53b22;
  --vip-shadow-hover: 0 8px 28px 4px #cfb53b33;
  --vip-accent: #15eaff;
}

/* --- VIP HERO --- */
body.vip-page {
background: linear-gradient(           /* type de dégradé   */
              to bottom right,           /* direction         */
              #632c88 0%,                /* départ coin haut gauche */
              #000000 100%);
}

.vip-hero {
  text-align: center;
  padding: 5.2vh 2vw 3vh 2vw;
  border-radius: 0 0 36px 36px;
  margin-bottom: 3vh;
}
.vip-badge-hero {
  display: inline-block;
  background: linear-gradient(90deg, var(--vip-gold2) 0%, var(--vip-gold) 100%);
  color: #654500;
  font-weight: bold;
  border-radius: 32px;
  font-size: clamp(1em, 2vw, 1.18em);
  padding: 0.22em 1.2em;
  box-shadow: var(--vip-shadow);
  margin-bottom: 0.6em;
  letter-spacing: 1.3px;
}
.vip-icon-hero {
  font-size: 1.2em;
  vertical-align: -0.1em;
  filter: drop-shadow(0 2px 9px #fffcd2cc);
}
.vip-hero-lead {
  font-weight: 500;
  color: white;
  font-size: clamp(1.2rem, 2vw, 1.35rem);
  margin: 0 auto 0.2em auto;
  max-width: 540px;
}

/* --- AVANTAGES --- */
.vip-benefits {
  display: flex;
  justify-content:flex-start;  /* ou simplement supprimer la propriété */
  gap: 24px;
  margin: 4vh 0 2vh 0;
  flex-wrap: wrap;
}

.vip-benefit-card {
  /* Dégradé or */
  background: linear-gradient(
    120deg,
    var(--or-foncé-2) 0%,
    var(--or-clair-1) 25%,
    var(--or-clair-2) 50%,
    var(--or-satin)   75%,
    var(--or-foncé-1) 100%
  );



  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  border-radius: 16px;
  padding: 28px 24px;
  color: #000;
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 350px;
  margin: 1vh 0.7vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: center;
  transition: box-shadow .22s, transform .17s;
}
.vip-benefit-card:hover {
  box-shadow: var(--vip-shadow-hover);
  transform: translateY(-6px) scale(1.04);
}
/* --------- ≥ 992 px : on peut se permettre de centrer --------- */
@media (min-width:992px){
  .vip-benefits{ justify-content:center; }   /* fallback universel */

  /* → navigateurs qui gèrent :has() auront la version conditionnelle */
  @supports selector(:has(*)){
    .vip-benefits:not(:has(.vip-benefit-card + .vip-benefit-card)){
      justify-content:center;                /* centrage précis     */
    }
  }
}
.vip-benefit-card img {
  width: 200px;
  height: 200px;
  display: block;
  margin-bottom: 12px;
}

.vip-benefit-card h2 {
  font-family: 'Lilita One', cursive;
  font-weight: 600;
  margin: 0;
  font-size: 3rem;
  line-height: 1.15em;
  color: #632c88;
}
.vip-benefit-card__highlight {
  font-size: 1.5rem;
  font-weight: 700;
}
.vip-benefit-card p {
  font-size: 0.95rem;
  color: #000;
  line-height: 1.4;
  max-width: 220px;
  margin: 0;
}

/* --- JOIN SECTION --- */
.vip-join {
  background: #632C88;
  padding: 3.2em 2em 2.5em 2em;
  box-shadow: 0 2px 16px 2px #baa07711;
  text-align: center;
}
.vip-join-title {
  font-family: 'Lilita One', cursive;
  font-weight: 400;
  color: white;
  margin-bottom: 1em;
}
.vip-join ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.3em;
  color: white;
  font-size: 1.08em;
}
.vip-join ul li {
  margin: 0.42em 0;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}
.vip-btn-gold.big {
  font-size: 1.2em;
  padding: 0.95em 2.2em;
  border-radius: 33px;
  margin-bottom: 0.7em;
  background: linear-gradient(90deg, #d4af37 0%, #f8e48e 100%);
  color: #3a2e27;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 10px 1px #ccb06a26;
  text-decoration: none;
  transition: filter 0.17s;
  display: inline-block;
}
.vip-btn-gold.big:hover {
  filter: brightness(1.07);
}
.vip-join-note {
  color: white;
  font-size: 0.99em;
  margin-top: 0.4em;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .vip-benefits {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    scroll-padding-right: 24px;
    padding-left: 0;
    padding-right: 0;
  }
  .vip-benefit-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: 24px 16px;

  }
}

/* --- BLOG PAGE --- */
.blog-main {
  padding: 5vh 5vw;
}

.blog-intro {
  text-align: center;
  margin-bottom: 5vh;
}

.blog-intro h1 {
  font-family: 'Lilita One', cursive;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--marron);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.article-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 12px var(--shadow, rgba(0,0,0,0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow, rgba(0,0,0,0.1));
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-title {
  padding: 1rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--marron);
}

@media (max-width: 700px) {
  .blog-intro h1 {
    font-size: 2rem;
  }
}

/* Mobile-first : marge horizontale sur tout conteneur listé */
@media (max-width: 768px) {
  main,
  .wrapper,
  .container,
  .hero,
  .cta,
  h1, h2, h3, h4, h5, h6,
  .page-title,
  .section-title,
  .card,
  .box,
  .panel,
  .alert,
  footer,
  .footer,
  .vip-invite-layer1,
  .site-info {
    padding-left : var(--space-m);
    padding-right: var(--space-m);
    box-sizing: border-box;
    max-width: 100%;
  }

  body {
    padding-left: 0;
    padding-right: 0;
  }

  .section-padding {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ----- Article Layout ----- */
.progress-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  z-index: 20;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width .2s linear;
}
.article-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  border-radius: 0 0 var(--radius) var(--radius);
}
.article-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.8);
}
.article-hero h1 {
  position: relative;
  color: #fff;
  font-family: 'Lilita One', cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
  margin: 0 0 8vh;
  max-width: var(--content-width);
  text-align: center;
  line-height: 1.15;
}
.article-meta {
  max-width: var(--content-width);
  margin: -3rem auto 2rem;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px var(--shadow);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .9rem;
  color: #666;
  position: relative;
  z-index: 10;
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.article-content h2 {
  margin: 2.5rem 0 1rem;
  color: var(--primary);
}
.article-content p {
  margin: 0 0 1.25rem;
  line-height: 1.7;
  font-size: 1.05rem;
}
.article-content img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: 0 4px 10px var(--shadow);
}
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--accent);
  border-left: 4px solid var(--primary);
  font-style: italic;
  border-radius: var(--radius);
}
.share-bar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px var(--shadow);
  padding: .8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.share-bar a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.share-bar img {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  opacity: .7;
  transition: all .2s;
}
.share-bar a:hover img {
  filter: none;
  opacity: 1;
}

/* --- BLOG PAGE --- */
.blog-main {
  padding: 5vh 5vw;
}

.blog-intro {
  text-align: center;
  margin-bottom: 5vh;
}

.blog-intro h1 {
  font-family: 'Lilita One', cursive;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--marron);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.article-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 12px var(--shadow, rgba(0,0,0,0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow, rgba(0,0,0,0.1));
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-title {
  padding: 1rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--marron);
}

@media (max-width: 700px) {
  .blog-intro h1 {
    font-size: 2rem;
  }
}
/* —— Version comparaison —— */
.comparison {
  --fg       : #1d1d1f;
  --bg       : #fff9f2;
  --card-bg  : #f9fafb;
  --accent   : #9944db;

  --radius   : 1.25rem;
  --shadow   : 0 8px 22px rgb(0 0 0 /.06);

  --ease     : cubic-bezier(.4,0,.2,1);
  --dur      : .3s;
}
@media (prefers-color-scheme: dark) {
  .comparison {
    --fg      : #e9e9ea;
    --bg      : #1c1c1e;
    --card-bg : #2c2c30;
    --shadow  : 0 8px 22px rgb(0 0 0 /.35);
  }
}

/* =========  Layout  ========= */
.comparison {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  color: var(--fg);
  background: var(--bg);
}

/* =========================================================
   SECTION COMPARAISON : GRILLE
   ========================================================= */
.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 4vw, 1.75rem);
  background: #fef8f1;
  padding: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .comparison {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1800px;
  }
  .comparison .version-card {
    display: block;
  }
}
/* =========================================================
   CARTES PRODUIT
   ========================================================= */

.comparison .version-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;   /* titre | contenu | CTA */
  align-items: center;
  text-align: center;
  gap: 1.25rem;

  background: #ffffff;
  border-radius: 1.125rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 6px 18px rgb(0 0 0 / .08);

  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.comparison .version-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffb463, #9e5fff);
  mask:           linear-gradient(#000 0 0) content-box,
                  linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .35;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  z-index: -1;
}
  
/* hover / focus */
.comparison .version-card:hover,
.comparison .version-card:focus-visible {
  transform: translateY(-6px);
}
.comparison .version-card:hover::before,
.comparison .version-card:focus-visible::before {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .comparison .version-card,
  .comparison .version-card:hover,
  .comparison .version-card:focus-visible {
    transform: none;
  }
  .comparison .version-card::before { transition: none; }
}

/* =========================================================
   TITRES
   ========================================================= */
.comparison .version-card h2 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.comparison .version-card .note {
  font-size: 0.85em;
  color: #69707a;
  margin-block: -0.4rem 0.5rem;
}

/* =========================================================
   IMAGE PRODUIT (tilt)
   ========================================================= */
.comparison .box-img {
  width: 70%;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / .15));
  transform: perspective(800px) rotateX(0) rotateY(0);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.comparison .version-card:hover .box-img,
.comparison .version-card:focus-visible .box-img {
  transform: perspective(800px) rotateX(7deg) rotateY(-5deg);
}
@media (prefers-reduced-motion: reduce) {
  .comparison .box-img,
  .comparison .version-card:hover .box-img,
  .comparison .version-card:focus-visible .box-img {
    transform: none;
  }
}

/* =========================================================
   LISTE DES FONCTIONNALITÉS
   ========================================================= */
.comparison .feature {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.6vw, 0.9rem);
  font-size: clamp(.95rem, .9rem + .15vw, 1rem);
}

/* — disposition PAR DÉFAUT (≤ 600 px) : icône au-dessus — */
.comparison .feature li {
  display: flex;
  flex-direction: column;   /* pile icône + texte */
  align-items: center;
  text-align: center;
  gap: .4rem;
}

/* icône décorative */
.comparison .feature svg,
.comparison .feature img {
  width: 10%;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .05));
  pointer-events: none;
  user-select: none;
}

.comparison .feature strong { font-weight: 700; }
.comparison .feature li span { white-space: nowrap; }
@media (max-width: 600px) {
  .comparison .feature li span {
    white-space: normal;
  }
}

/* limites Basic */
.basic .feature .limit,
.basic .feature .limit svg { color: #69707a; opacity: .55; }

/* exclusivités Deluxe */
.deluxe .feature .exclusive { position: relative; }
.deluxe .feature .exclusive::after {
  content: "Nouveau";
  position: relative;
  margin-left: .35em;
  font: 700 .55rem/1 "Inter", sans-serif;
  letter-spacing: .02em;
  color: #fff;
  background: #9e5fff;
  border-radius: 6px;
  padding: .15em .45em;
}

/* =========================================================
   EMPHASIS DELUXE
   ========================================================= */
.comparison .deluxe { scale: 1.04; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .comparison .deluxe:hover,
  .comparison .deluxe:focus-visible { scale: 1.06; }
}

/* =========================================================
   BOUTON CTA
   ========================================================= */
.comparison .cta-btn {
  align-self: center;
  margin-top: 1.25rem;
  padding: .85rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 1.125rem;
  border: 2px solid #9e5fff;
  background: transparent;
  color: #9e5fff;
  cursor: pointer;
  transition:
    background .35s cubic-bezier(.4, 0, .2, 1),
    color      .35s cubic-bezier(.4, 0, .2, 1);
}
.comparison .cta-btn:hover,
.comparison .cta-btn:focus-visible {
  background: #9e5fff;
  color: #ffffff;
}


/* =========================================================
   DARK THEME
   ========================================================= */
@media (prefers-color-scheme: dark) {
  .comparison { background: #131216; }

  .comparison .version-card {
    background: #1b1a20;
    box-shadow: 0 4px 16px rgb(0 0 0 / .6);
  }
  .comparison .version-card::before { opacity: .5; }

  .comparison .version-card .note,
  .basic .feature .limit,
  .basic .feature .limit svg {
    color: #848791;
  }
}

/* Language switcher */
.language-switcher {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  margin-left: 1vw;
}
.language-switcher a {
  color: #b57d4a;
  text-decoration: none;
  margin: 0 0.2em;
}

/* --- Rules Page --- */
.rules-container {
  max-width: var(--content-width);
  margin: 2rem auto;
  padding: 2rem 1rem;
  text-align: center;
}
.rules-container .mode-choice {
  margin-bottom: 1.5rem;
}
.rules-container .mode-btn {
  margin: 0 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  border: 2px solid var(--marron);
  background: var(--rose);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s;
}
.rules-container .mode-btn.selected {
  background: var(--marron);
}
#languageSection {
  margin-bottom: 1.5rem;
}
.hidden {
  display: none;
}
#rulesContent {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
#rulesContent h2 {
font-size: clamp(3rem, 2.5vw, 2.2rem);
  text-align: left;
}
#rulesContent h3 {
  text-align: center;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in {
  animation: fadeIn .4s ease;
}


