html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

#avantages {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
}

#formulaire {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #787f79;
  color: #333;
  text-align: center;
}

/* === PARTIE HAUTE === */
#avantages {
  padding: 40px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent; /* ← */
}

.avantages-img {
  width: 100%;
  max-width: 800px;
  border-radius: 16px;
  margin-top: -44px;
  margin-bottom: 36px;
  box-shadow: none; /* ← */
  border: none;
}

/* Desktop : <picture> disparaît du layout, l'<img> redevient l'élément flex direct (rendu identique à l'original) */
.image-wrapper picture {
  display: contents;
}

.logo-wrapper {
  margin-bottom: 30px;
}

.logo {
  width: 200px;
  height: auto;
}

h1 {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.9);
  margin-top: -10px;
}

.first-premium {
  font-size: 1.2em;
  font-weight: 700;
  color: rgba(255, 226, 159, 0.9);
  background: linear-gradient(90deg, #ffdd99, #ffedb5, #ffdd99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 1.5px rgba(0, 0, 0, 0.30));
}

.subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.77);
  margin-top: 20px;
  margin-bottom: 36px;
}
.subtitle strong {
  font-size: 20px;
  font-weight: 600;
}

/*
.points-cles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.point {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 18px;
}*/

.image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #dcff8f;
  font-size: 18px;
  cursor: pointer;
  padding: 0 99px;
  flex-shrink: 0;
  margin-top: 416px;
}

/* Caché sur ordinateur : on garde les deux flèches de part et d'autre de l'image */
.scroll-indicator-mobile {
  display: none;
}

.arrow-down {
  font-size: 28px;
  animation: bounce 1.6s infinite;
  margin-top: 15px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}




/* === PARTIE BASSE === */
#formulaire {
  background: rgba(0,0,0,0.15);
  padding: 90px 20px 80px;
}

h2 {
  font-size: 1.7rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 45px;
  margin-top: -35px;
  font-weight: 500;
}
.second-premium {
  font-size: 1.15em;
  font-weight: 700;
  color: rgba(255, 226, 159, 0.9);
  background: linear-gradient(90deg, #ffdd99, #ffedb5, #ffdd99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 1.5px rgba(0, 0, 0, 0.30));
}


/* === PARTIE SUCCESS === */
body.inscription-success::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 0;
}
body.inscription-success > * {
  position: relative;
  z-index: 1;
}
.activated
{
  font-size: 1.2em;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: -50px;
}
.success-premium {
  font-size: 1.2em;
  font-weight: 700;
  color: rgba(255, 226, 159, 0.9);
  background: linear-gradient(90deg, #ffdd99, #ffedb5, #ffdd99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 1.5px rgba(0, 0, 0, 0.30));
}


/* Page success : styles auparavant inline dans le HTML (rendu identique) */
body.inscription-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 20px;
}
.success-title {
  color: white;
  font-size: 2rem;
}
.success-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}
.success-detail {
  display: block;
  margin-top: 3px;
}

.br-mobile {
  display: none;
}

/* FORMULES */
.formules {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.formule {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 24px 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
}

.formule:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.formule.selected {
  border-color: #ffe092;
  background: rgba(179,0,0,0.15);
}

.formule.recommended {
  border-color: #ffe092;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffe092;
  color: black;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.formule h3 {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.prix {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.prix span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

.detail {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}

.reassurance {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
    margin-top: -10px;
  letter-spacing: 0.3px;
}

/* FORMULAIRE */
#signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto 24px;
}

#signup-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease;
}

#signup-form input::placeholder {
  color: rgba(255,255,255,0.45);
}

#signup-form input:focus {
  border-color: rgba(255,255,255,0.7);
}

#submit-btn {
  width: 100%;
  padding: 20px 26px;
  background: #b30000;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 6px;
}

#submit-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.form-error {
  color: #ff6b6b;
  font-size: 14px;
  min-height: 18px;
  margin-top: -5px;
  margin-bottom: -5px;
}

/* CODE PROMO */
#signup-form input.promo-input {
  background: rgba(255, 214, 78, 0.12);
  border: 1.5px solid rgba(255, 224, 146, 0.5);
  color: #ffe092;
}
#signup-form input.promo-input::placeholder {
  color: rgba(255, 224, 146, 0.7);
}
#signup-form input.promo-input::placeholder:focus {
  color: #ffe092;
}
#signup-form input.promo-input:focus {
  background: rgba(255, 214, 78, 0.2);
  border-color: #ffe092;
}

.promo-feedback.success {
  color: #afff76;
}
.promo-feedback.error {
  color: #ff4d4d;
}


/* LEGAL */
.legal {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
  margin-top: -10px;
}

.legal a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.asterisque {
  font-size: 15px;
  display: block;
font-weight: 500;
}
.asterisque-secondaire {
  font-size: 13px;
  display: block;
  margin-top: 5px;
}
.asterisque-img {
  color: rgba(255,255,255,0.7);
  margin-top: -54px;
  margin-bottom: 24px;
  white-space: nowrap;
}

.arc-de-cercle {
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 94px;
}


.btn-retour {
  display: inline-block;
  padding: 16px 26px;
  background: #b30000;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 40px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-retour:hover {
  background: #c40000;
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
}

.btn-retour:active {
  transform: scale(1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}


.back-link {
  position: absolute;
  top: 12px;
  left: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  transition: color 0.2s;
  z-index: 9999999999999;
}
.back-link:hover { color: #e4ff9e }





/* ============================================
   VERSION MOBILE (n'affecte pas l'ordinateur)
   ============================================ */
@media (max-width: 768px) {

  /* Le snap "mandatory" peut bloquer le scroll si une section
     dépasse la hauteur de l'écran : on l'assouplit */
    html {
    scroll-snap-type: y mandatory;    /* comme sur ordinateur */
  }
  #avantages {
    min-height: 100svh;
    padding: 56px 20px 40px;
  }
  #avantages,
  #formulaire {
    scroll-snap-stop: always;         /* un petit scroll suffit pour basculer, sans sauter la section */
  }

  /* Bouton retour */
  .back-link {
    left: 16px;
    top: 14px;
    font-size: 13px;
  }

  /* Titres et texte */
  h1 {
    font-size: 1.5rem;
    margin-top: -10px;
  }

    /* Saut de ligne juste avant le prix, qui reste sur une seule ligne */
  .subtitle > span:first-of-type strong:last-of-type {
    white-space: nowrap;
  }
  .subtitle > span:first-of-type strong:last-of-type::before {
    content: "\A";
    white-space: pre;
  }

  .subtitle {
    font-size: 1rem;
    margin-top: 14px;
    margin-bottom: 6px;
    line-height: 1.5;
  }
  .subtitle strong {
    font-size: 1.05rem;
  }

  /* Image pleine largeur (on "sort" du padding de 20px) */
  .image-wrapper {
    flex-direction: column;
    max-width: none;
    width: calc(100% + 40px);
    margin: 0 -20px;
  }
    .image-wrapper picture {
    display: block;
    width: 100%;
  }
  .avantages-img {
    display: block;
    width: 110%;
    max-width: none;
    margin-left: -5%;      /* la moitié des 20% en trop : l'image reste centrée */
    margin-top: 0;
    margin-bottom: 0px;
    border-radius: 0;
  }

  /* Empêche la barre de défilement horizontale due au débordement */
  #avantages { overflow-x: clip; }

    /* On cache les deux indicateurs autour de l'image */
  .image-wrapper .scroll-indicator {
    display: none;
  }

  /* "↓ Inscription ↓" sous les astérisques */
  .scroll-indicator.scroll-indicator-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;          /* sous les astérisques : baisse ou monte à l'œil */
    padding: 0;
    font-size: 16px;
  }

  .scroll-indicator span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* Flèche de gauche (créée en CSS, même animation que celle de droite) */
  .scroll-indicator span::before {
    content: "↓";
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    animation: bounce 1.6s infinite;
  }

  /* Flèche de droite (celle du HTML) */
  .arrow-down {
    margin-top: 0;
    font-size: 22px;
    line-height: 1;
  }

  /* Astérisques : autoriser le retour à la ligne */
  .asterisque-img {
    white-space: normal;
    margin-top: 0px;
    margin-bottom: 0;
    padding: 0 4px;
  }
  .asterisque {
    font-size: 11px;
    line-height: 1.4;
  }
  .asterisque-secondaire {
    font-size: 10px;
  }

  /* Partie formulaire */
    #formulaire {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* centre verticalement le contenu */
    padding: 40px 20px 30px;
  }
  h2 {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.35;
  }

  .formules {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
  }
  .formule {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    padding: 14px 20px;
  }
  .formule h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .prix {
    font-size: 1.5rem;
  }

  .detail {
    font-size: 0.8rem;
    margin-top: 3px;
  }
  .reassurance {
    font-size: 13px;
    margin-top: 3px;
    margin-bottom: 18px;
    line-height: 1.4;
  }

    #signup-form {
    gap: 10px;                   /* était 14px */
    margin-bottom: 14px;
  }
  #signup-form input {
    padding: 10px 14px;          /* était 12px 16px */
  }

  /* Message d'erreur : ne prend aucune place tant qu'il est vide */
  .form-error {
    min-height: 0;
    margin: 0;
  }
  .form-error:empty {
    display: none;
  }

  /* Retour du code promo : idem */
  .promo-feedback:empty {
    display: none;
  }
  #submit-btn {
    margin-top: 11px;
    padding: 14px 20px;
    margin-bottom: 17px;
  }

  .legal {
    font-size: 10.5px;
    line-height: 1.5;
  }
}

  /* ---------- PAGE SUCCESS ---------- */
  body.inscription-success {
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px 20px;
    gap: 14px;
  }
  .success-title {
    font-size: 1.6rem;
    margin-top: 0;
  }
  .success-text {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 420px;
  }
  .btn-retour {
    margin-top: 28px;
    padding: 14px 22px;
    font-size: 15px;
  }

    .br-mobile {
    display: inline;
  }