/* ==========================================================
   MAISON SIGNET — feuille de style
   Palette : noir #19171A · lilas #F0C6F1
   Polices : TAY Napili (titres) · Author (texte)
   ========================================================== */

/* ---------- Polices (allégées : caractères latins seulement) ---------- */
@font-face {
  font-family: "TAY Napili";
  src: url("../fonts/TAYNapili.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Author";
  src: url("../fonts/Author-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Author";
  src: url("../fonts/Author-Semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Author";
  src: url("../fonts/Author-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  --noir: #19171A;
  --noir-doux: #2E2B2F;
  --lilas: #F0C6F1;
  --lilas-fonce: #B981BB;
  --lilas-pale: #FBF4FB;
  --gris-carte: #F9F9F9;
  --gris-texte: #6B676D;
  --gris-ligne: #DEDBDF;
  --blanc: #FFFFFF;

  --f-titre: "TAY Napili", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texte: "Author", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --largeur: 1120px;
  --marge: clamp(1.25rem, 5vw, 2.5rem);
  --rayon: 28px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--noir);
  background: var(--blanc);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--noir); color: var(--blanc);
  padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none;
}
.lien-evitement:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--lilas-fonce); outline-offset: 3px; }
.fond-noir :focus-visible { outline-color: var(--lilas); }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.fond-noir { background: var(--noir); color: var(--blanc); }
.fond-lilas { background: var(--lilas); }

.titre-section {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  text-align: center;
}
.sous-titre {
  text-align: center;
  color: var(--lilas);
  margin-top: 1.25rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .85rem 2.25rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--f-texte);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lilas { background: var(--lilas); color: var(--noir); }
.btn--noir { background: var(--noir); color: var(--blanc); }
.btn--large { min-height: 3.75rem; padding-inline: 3.5rem; font-size: 1.125rem; }

/* ==========================================================
   BANDEAU COMPTE À REBOURS
   ========================================================== */
.bandeau { background: var(--lilas); }
.bandeau__inner {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-block: .7rem;
}
.calendrier {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px dashed var(--noir);
  border-radius: 7px;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
}
.calendrier__mois { font-size: .55rem; letter-spacing: .06em; }
.calendrier__jour { font-weight: 700; font-size: 1.05rem; margin-top: .1rem; }
.bandeau__texte {
  flex: 1;
  font-size: .9rem;
  line-height: 1.35;
}
.bandeau__texte strong { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bandeau__texte .ligne { display: block; white-space: nowrap; }
@media (max-width: 479px) {
  .bandeau__texte { font-size: min(.9rem, 3.35vw); }
}
.bandeau .btn {
  flex: none;
  min-height: 2.6rem;
  padding: .55rem 1.1rem;
  font-size: .875rem;
}
@media (max-width: 380px) {
  .bandeau__inner { gap: .55rem; padding-inline: .9rem; }
  .bandeau__texte { font-size: 3.2vw !important; }
  .bandeau .btn { padding-inline: .8rem; font-size: .8rem; }
}
@media (min-width: 720px) {
  .bandeau__inner { justify-content: center; gap: 1.5rem; }
  .bandeau__texte { flex: 0 1 auto; font-size: 1rem; }
  .bandeau__texte .ligne { display: inline; }
}

/* ---------- En-tête ---------- */
.entete {
  display: flex;
  justify-content: center;
  padding-block: 1.1rem;
}
.entete__logo img { width: 118px; }
@media (min-width: 720px) { .entete__logo img { width: 150px; } }

/* ==========================================================
   HÉROS
   ========================================================== */
.heros {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 6.5rem) clamp(5rem, 12vw, 8rem);
}
.heros__accroche {
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.heros__mascotte {
  width: clamp(130px, 30vw, 190px);
  margin: 2rem auto 0;
  transform-origin: 50% 100%;
  animation: dandine 3.2s ease-in-out 0.4s 2;
}
@keyframes dandine {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}
.heros__titre {
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  line-height: .98;
}
.heros__texte {
  color: var(--lilas);
  margin: 1.5rem auto 0;
  max-width: 24rem;
}
.heros .btn { margin-top: 2.25rem; min-width: min(100%, 16.25rem); }

/* ==========================================================
   CE QUE TU REÇOIS
   ========================================================== */
.contenu { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1rem; }
.carte-contenu {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 9.5rem;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--gris-carte);
  border: 5px solid var(--lilas);
  border-radius: var(--rayon);
}
.carte-contenu--inverse { grid-template-columns: auto 1fr; padding: 1.5rem 1.5rem 1.5rem 1.25rem; }
.carte-contenu--inverse .carte-contenu__illu { order: -1; }
.carte-contenu h3 { font-size: 1.6rem; }
.carte-contenu p { font-size: .95rem; margin-top: .5rem; max-width: 17rem; }
.carte-contenu__illu { width: 5.5rem; }
.carte-contenu--inverse .carte-contenu__illu { width: 7rem; }
@media (min-width: 720px) {
  .contenu { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .carte-contenu { min-height: 12rem; padding: 2rem 2rem 2rem 2.5rem; }
  .carte-contenu--inverse { padding: 2rem 2.5rem 2rem 1.75rem; }
  .carte-contenu h3 { font-size: 2rem; }
  .carte-contenu__illu { width: 6.5rem; }
  .carte-contenu--inverse .carte-contenu__illu { width: 9rem; }
}

/* ==========================================================
   ABONNEMENTS
   ========================================================== */
.formules {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1000px) {
  .formules { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
}
.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  color: var(--noir);
  border-radius: 24px;
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
}
.formule--vedette { background: var(--lilas); padding-top: 3rem; }
.formule__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--noir);
  color: var(--blanc);
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .35rem 1.5rem .5rem;
  border-radius: 0 0 16px 16px;
}
.formule h3 { font-size: 1.75rem; }
.formule__prix {
  margin-top: 1.1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--gris-ligne);
  min-height: 5.6rem;
}
.formule--vedette .formule__prix { border-color: #D7A9D8; }
.prix {
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.prix__montant {
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.prix__montant span { font-size: .8em; }
.prix__detail {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--gris-texte);
}
.formule--vedette .prix__detail { color: #5B4F5C; }
.prix__detail s { text-decoration-thickness: 1.5px; }
.rabais {
  background: var(--noir);
  color: var(--blanc);
  font-weight: 600;
  font-size: .75rem;
  padding: .15rem .55rem;
  border-radius: 999px;
}
.formule--vedette .rabais { background: var(--blanc); color: var(--noir); }
.formule__inclus {
  margin-block: 1.4rem 1.75rem;
  color: var(--gris-texte);
  display: grid;
  gap: .9rem;
}
.formule--vedette .formule__inclus { color: #5B4F5C; }
.formule__inclus strong { display: block; font-weight: 700; }

/* Sélecteur de durée (sans JavaScript) */
.duree {
  border: 0;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
}
.duree label { position: relative; cursor: pointer; }
.duree input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.duree span {
  display: grid;
  place-content: center;
  min-height: 2.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--gris-ligne);
  background: var(--blanc);
  color: var(--gris-texte);
  font-size: .85rem;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.formule--vedette .duree span { border-color: var(--blanc); }
.duree input:checked + span { background: var(--noir); border-color: var(--noir); color: var(--blanc); }
.duree label:hover span { border-color: var(--noir); }
.duree input:focus-visible + span { outline: 3px solid var(--lilas-fonce); outline-offset: 2px; }

.formule__cta { margin-top: 1rem; }
.formule__cta .btn { width: 100%; }

/* Affiche le prix et le lien Stripe de la durée choisie */
.formule [data-duree] { display: none; }
.formule [data-duree="1"] { display: flex; }
@supports selector(:has(*)) {
  .formule [data-duree="1"] { display: none; }
  .formule:has(input[value="1"]:checked) [data-duree="1"],
  .formule:has(input[value="3"]:checked) [data-duree="3"],
  .formule:has(input[value="6"]:checked) [data-duree="6"],
  .formule:has(input[value="12"]:checked) [data-duree="12"] { display: flex; }
}

@media (min-width: 1000px) {
  .formule { padding: 3rem 1.5rem 1.75rem; }
  .duree { gap: .35rem; }
  .duree span { font-size: .8rem; }
}

.formules__notes {
  margin-top: 2.5rem;
  text-align: center;
  color: #CFCBD0;
  font-size: .95rem;
  display: grid;
  gap: .6rem;
}

/* ==========================================================
   COMMENT ÇA MARCHE
   ========================================================== */
.etapes {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 34rem;
  display: grid;
  gap: 2rem;
}
.etape {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-content: start;
  gap: 1.25rem;
}
.etape__num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--lilas);
  display: grid;
  place-content: center;
  font-family: var(--f-titre);
  font-size: 1.5rem;
}
.etape:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3.6rem;
  bottom: -1.6rem;
  border-left: 2px dashed var(--gris-ligne);
}
.etape h3 { font-size: 1.3rem; margin-top: .6rem; }
.etape p { color: var(--gris-texte); margin-top: .6rem; font-size: .95rem; }
.titre-gauche { text-align: left; max-width: 34rem; margin-inline: auto; }
@media (min-width: 900px) {
  .titre-gauche { text-align: center; max-width: none; }
  .etapes { max-width: none; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .etape { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: .75rem; }
  .etape__num { width: 3.75rem; height: 3.75rem; font-size: 1.8rem; }
  .etape:not(:last-child)::after {
    left: calc(50% + 2.6rem);
    right: calc(-50% + 1.35rem);
    top: 1.875rem;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--gris-ligne);
  }
  .etape p { max-width: 17rem; }
}

/* ==========================================================
   QUI SUIS-JE
   ========================================================== */
.apropos {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: grid;
  justify-items: center;
  gap: 2.5rem;
  text-align: center;
}
.portrait { position: relative; width: 160px; }
.portrait__cadre {
  aspect-ratio: 4 / 5;
  border: 12px solid var(--lilas);
  border-radius: 999px;
  background: #ECECEC;
  overflow: hidden;
}
.portrait__cadre img { width: 100%; height: 100%; object-fit: cover; }
.portrait__etoile {
  position: absolute;
  width: 96px;
  left: -44px;
  bottom: -24px;
  color: var(--blanc);
  opacity: .28;
  pointer-events: none;
}
.apropos__texte { color: var(--lilas); display: grid; gap: 1.5rem; max-width: 21.5rem; }
@media (min-width: 820px) {
  .apropos { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 5rem; max-width: 52rem; margin-inline: auto; align-items: center; }
  .portrait { width: 240px; }
  .portrait__etoile { width: 120px; left: -60px; bottom: -34px; }
  .apropos__texte { font-size: 1.2rem; max-width: 27rem; }
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq { margin: clamp(2.5rem, 6vw, 3.5rem) auto 0; max-width: 46rem; display: grid; gap: .75rem; }
.faq details {
  background: var(--lilas-pale);
  border: 5px solid var(--lilas);
  border-radius: 24px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--lilas-fonce);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 6px; border-radius: 16px; }
.faq__reponse { padding: 0 1.6rem 1.35rem; color: var(--gris-texte); display: grid; gap: .5rem; }

/* ==========================================================
   APPEL FINAL
   ========================================================== */
.appel { text-align: center; }
.appel h2 { font-size: clamp(2.1rem, 6vw, 3.75rem); line-height: 1.1; }
.appel .btn { margin-top: 2.5rem; }

/* ==========================================================
   PIED DE PAGE
   ========================================================== */
.pied { padding-block: 1.75rem 1.5rem; }
.pied__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .5rem 1.25rem;
}
.pied__mascotte { width: 70px; opacity: .3; grid-row: span 2; }
.reseaux { display: flex; align-items: center; gap: .6rem; }
.reseaux a {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-content: center;
  border-radius: 50%;
  background: var(--noir-doux);
  font-family: var(--f-titre);
  font-size: 1.15rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.reseaux a:hover { background: var(--lilas); color: var(--noir); }
.pied__legal { font-size: .8rem; color: #A9A4AB; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.pied__legal a { color: #A9A4AB; }
.pied__legal a:hover { color: var(--lilas); }
@media (min-width: 720px) {
  .pied__inner { grid-template-columns: auto 1fr auto; }
  .pied__mascotte { grid-row: auto; width: 80px; }
  .reseaux { order: 3; }
}
.carbone {
  text-align: center;
  font-size: .8rem;
  color: var(--gris-texte);
  padding-block: 1.1rem;
}

/* ==========================================================
   PAGE : POLITIQUE (témoins)
   ========================================================== */
.page-legale__entete { text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.page-legale__entete h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: 1.02; }
.page-legale__entete p { color: var(--lilas); margin-top: 1.25rem; }
.retour { display: inline-block; margin-top: 1.75rem; color: var(--blanc); font-size: .95rem; }

.texte-legal { max-width: 44rem; margin-inline: auto; }
.texte-legal h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: left;
}
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p, .texte-legal li { color: #3E3A40; }
.texte-legal p + p, .texte-legal ul + p, .texte-legal .espace { margin-top: 1rem; }
.texte-legal ul { display: grid; gap: .5rem; margin-top: 1rem; padding-left: 1.2rem; list-style: disc; }
.texte-legal ul li::marker { color: var(--lilas-fonce); }
.texte-legal a { color: var(--noir); text-decoration-color: var(--lilas-fonce); text-underline-offset: 3px; text-decoration-thickness: 2px; }

.encadre {
  background: var(--lilas-pale);
  border: 5px solid var(--lilas);
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
}
.encadre p { color: var(--noir); }

.tableau-defile { overflow-x: auto; margin-top: 1.25rem; border-radius: 18px; border: 2px solid var(--lilas); }
.tableau-defile table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .95rem; }
.tableau-defile th, .tableau-defile td { text-align: left; padding: .85rem 1rem; vertical-align: top; }
.tableau-defile thead th { background: var(--lilas); font-weight: 700; }
.tableau-defile tbody tr + tr td { border-top: 1px solid #EBD8EB; }
.pastille {
  display: inline-block;
  padding: .15rem .7rem;
  border-radius: 999px;
  background: var(--noir);
  color: var(--blanc);
  font-size: .8rem;
  font-weight: 700;
}

.carbone sub { font-size: .7em; line-height: 0; }
.texte-legal h3 { font-family: var(--f-texte); text-transform: none; font-weight: 600; font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.sommaire { display: grid; gap: .35rem; margin-top: 1rem; padding-left: 1.2rem; list-style: decimal; }
.sommaire a { text-decoration: none; }
.sommaire a:hover { text-decoration: underline; }
