/* Pricing-only layout: shared pages and pricing calculations stay unchanged. */
.pricing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0 32px;
  background: linear-gradient(180deg, #fbfefe, var(--surface-blue));
}
.pricing-hero::before,
.pricing-hero::after {
  position: absolute;
  z-index: -1;
  width: clamp(240px, 26vw, 420px);
  aspect-ratio: 1;
  border: 32px solid;
  border-radius: 50%;
  content: '';
  pointer-events: none;
}
.pricing-hero::before { top: -100px; left: -200px; border-color: var(--tint-warm); }
.pricing-hero::after { right: -220px; bottom: -200px; border-color: var(--tint-cool); }
.pricing-hero__inner { text-align: center; }
.pricing-hero h1 {
  max-width: 1000px;
  margin-inline: auto;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.pricing-hero h1 span { display: block; }
.pricing-hero__lead {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 1.2rem;
  line-height: 1.6;
  text-wrap: pretty;
}
/* Editorial launch offer: the discount is the visual anchor, without a card. */
.launch-banner {
  margin: clamp(3.25rem, 6vw, 5rem) 0 0;
  text-align: left;
}
.launch-banner[hidden] { display: none; }
.launch-banner__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.launch-banner__label {
  color: var(--orange-ink);
  font-weight: 800;
}
.launch-banner__rule {
  width: clamp(9.5rem, 14vw, 12rem);
  height: 1px;
  margin: 1.35rem 0 1.15rem;
  background: var(--orange-deep);
}
.launch-banner__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem 3rem;
}
.launch-banner h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1.4rem;
  line-height: .98;
}
.launch-banner__discount {
  color: var(--orange-deep);
  font-size: clamp(4rem, 6.4vw, 5.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.launch-banner__message {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  font-weight: 650;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.launch-banner__eligibility {
  margin-top: .8rem;
  font-size: clamp(.95rem, 1.35vw, 1.1rem);
  line-height: 1.5;
}
.launch-banner__action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding: .65rem 0 .45rem;
  border-bottom: 2px solid currentColor;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
}
.launch-banner__action span { transition: transform .2s var(--ease); }
.launch-banner__action:hover { color: var(--blue-deep); }
.launch-banner__action:hover span { transform: translateX(.25rem); }
.launch-banner__terms { margin-top: .25rem; color: var(--ink-soft); font-size: .75rem; }
.launch-banner__terms summary {
  width: fit-content;
  display: list-item;
  min-height: 44px;
  padding: .65rem 0;
  cursor: pointer;
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.launch-banner__terms details p { max-width: 780px; margin: 0 0 4px; }
.launch-banner__action:focus-visible,
.launch-banner__terms summary:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 4px; }
@media (max-width: 700px) {
  .launch-banner { margin-top: 3.5rem; text-align: center; }
  .launch-banner__meta {
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
  }
  .launch-banner__separator { display: none; }
  .launch-banner__rule { margin: 1.35rem auto 1.55rem; }
  .launch-banner__main { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; }
  .launch-banner h2 { display: grid; justify-items: center; gap: 1rem; }
  .launch-banner__discount { font-size: clamp(4.4rem, 22vw, 6rem); }
  .launch-banner__message {
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    line-height: 1.12;
    white-space: normal;
  }
  .launch-banner__eligibility {
    max-width: 22rem;
    margin: 1.4rem auto 0;
    font-size: 1rem;
  }
  .launch-banner__terms { margin-top: .25rem; }
  .launch-banner__terms summary { margin-inline: auto; }
  .launch-banner__terms details p { text-align: left; }
  .launch-banner__action { width: min(100%, 25rem); margin-inline: auto; font-size: 1rem; }
}
/* Les deux selecteurs de la barre font le meme travail — un choix binaire —
   mais ils avaient deux traitements opposes : pilule bleue pleine a gauche,
   carte blanche surelevee a droite. Le pire etait l'inversion de l'etat actif :
   « blanc sur gris » voulait dire SELECTIONNE a droite et NON SELECTIONNE a
   gauche, dans la meme barre. Ils partagent maintenant le meme fut, le meme
   rayon, la meme pilule bleue et la meme typographie. */
.pricing-page .segmented,
.pricing-offers .period-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  isolation: isolate;
  /* Plafonne. Les colonnes de la barre font 1fr chacune (~549px a 1440px) :
     sans plafond les selecteurs s'etiraient sur toute cette largeur, bien
     au-dela de ce qu'un choix a deux options demande. Les libelles d'aide,
     eux, gardent la largeur de la colonne. */
  width: min(100%, 360px);
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.pricing-page .segmented::before,
.pricing-page .period-toggle::before {
  /* Share the first button's grid cell, including its full height.
     One-cell translation then lands exactly on the second button. */
  position: relative;
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  box-sizing: border-box;
  min-width: 0;
  z-index: 0;
  content: '';
  pointer-events: none;
  transform: translateX(0);
  transition: transform .28s var(--ease);
}
.pricing-page .segmented::before,
.pricing-offers .period-toggle::before {
  border-radius: 10px;
  background: var(--blue-deep);
}
.pricing-page .segmented:has(> button:nth-child(2).is-active)::before,
.pricing-page .period-toggle:has(> button:nth-child(2).is-active)::before {
  transform: translateX(100%);
}
.pricing-page .segmented > button,
.pricing-page .period-toggle > button {
  grid-area: 1 / 1;
  min-width: 0;
}
.pricing-page .segmented > button:nth-child(2),
.pricing-page .period-toggle > button:nth-child(2) { grid-column: 2; }
.pricing-page .segmented button {
  /* 44px : plancher de cible tactile, on ne descend pas plus bas. */
  min-height: 44px;
  padding: 8px 18px;
  color: var(--ink-soft);
  font-size: .9rem;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  transition: color .28s var(--ease);
}
.pricing-page .segmented button.is-active { color: #fff; background: transparent; box-shadow: none; transform: none; }
.pricing-page .segmented button:not(.is-active):hover { color: var(--blue-deep); background: transparent; }
.pricing-hero__estimate {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: var(--blue-deep);
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: 5px;
}
.pricing-hero__estimate:hover { text-decoration: underline; }
.pricing-hero__estimate:focus-visible,
.pricing-page .segmented button:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 4px;
  border-radius: 8px;
}
.pricing-page .pricing-offers { padding: 0 0 80px; }
/* Colonnes egales. Avec « minmax(0,1fr) 340px », la colonne de droite ne cedait
   jamais : a 780px la gauche tombait a 311px pendant que la droite gardait
   340px, et le controle secondaire finissait plus large que le principal. */
.pricing-offers__toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px 32px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.85);
}
/* Le lien traversait la barre entre les deux groupes, sans rattachement
   visible et avec ~200px de vide autour a 1440px. Il devient une rangee a
   part, en bas, separee par un filet : sa portee (aller au simulateur) est
   alors explicite. */
.pricing-offers__toolbar .pricing-hero__estimate {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.pricing-offers__launch h2 { font-size: 1.05rem; letter-spacing: -.015em; line-height: 1.4; }
.pricing-offers__launch p { max-width: 600px; margin-top: 6px; font-size: .8rem; line-height: 1.6; }
.pricing-hero__promotion { max-width: 740px; margin: 28px auto 0; }
.pricing-hero__promotion p { max-width: 700px; margin-inline: auto; }
.pricing-offers .period-toggle__option {
  position: relative; z-index: 1;
  min-height: 44px; padding: 5px 12px; gap: 0;
  border: 0; background: transparent; box-shadow: none;
  color: var(--ink-soft);
  transition: color .28s var(--ease);
}
.pricing-offers .period-toggle__title { font-size: .9rem; font-weight: 800; }
/* 10,88px auparavant. A cette taille le sous-libelle n'etait deja pas lisible ;
   sur la pilule bleue il serait en plus tombe sous le seuil de contraste. */
.pricing-offers .period-toggle__option small { font-size: .75rem; font-weight: 600; }
.pricing-offers .period-toggle__option.is-active { color: #fff; border-color: transparent; background: transparent; box-shadow: none; transform: none; }
/* Blanc a 92% et non 88% : a 88% le rapport tombait a 4,44:1 sur --blue-deep,
   sous le seuil AA. A 92% il remonte a 4,72:1. */
.pricing-offers .period-toggle__option.is-active small { color: rgba(255,255,255,.92); }
.pricing-offers .period-toggle__option:not(.is-active):hover { color: var(--blue-deep); }

@media (prefers-reduced-motion: reduce) {
  .pricing-page .segmented::before,
  .pricing-page .period-toggle::before,
  .pricing-page .segmented button,
  .pricing-page .period-toggle__option { transition: none; }
}

@media (max-width: 760px) {
  .pricing-hero { padding: 40px 0 24px; }
  .pricing-hero h1 { font-size: 2.25rem; }
  .pricing-hero__lead { font-size: 1.125rem; margin-top: 18px; }
  .pricing-page .segmented button { padding-inline: 10px; font-size: .84rem; }
  .pricing-hero::before { width: 240px; left: -220px; top: -90px; border-width: 24px; }
  .pricing-hero::after { width: 240px; right: -220px; bottom: -80px; border-width: 24px; }
  .pricing-offers__toolbar { grid-template-columns: 1fr; gap: 18px; padding: 18px; margin-bottom: 20px; }
  .pricing-offers .pricing-toolbar__group--payment { width: 100%; }
  .pricing-page .pricing-offers { padding-bottom: 56px; }
}

/* Comparatif des fonctionnalites en categories depliables (MKTLIFTO-95,
   inspire de tiime.fr/tarifs) : une categorie = un titre + une phrase de
   benefice, le detail par offre s'affiche au depliage. Remplace le tableau
   .compare a sept lignes. */
.feature-compare {
  /* Largeur de la colonne des libelles, partagee par l'en-tete des offres et
     par chaque tableau pour que les colonnes restent alignees. */
  --fc-label: 43%;
  max-width: 68rem;
  margin: 0 auto;
}

.fc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* En-tete des offres : reste visible sous le header du site pendant le
   defilement. Masque aux lecteurs d'ecran : chaque tableau porte ses propres
   en-tetes de colonnes. */
.feature-compare__offers {
  position: sticky; z-index: 5; top: var(--header-height);
  display: grid; grid-template-columns: var(--fc-label) repeat(3, minmax(0, 1fr)); align-items: end;
  padding: 1rem 0 .9rem;
  border-bottom: 2px solid var(--ink);
  background: #fff;
}
.feature-compare__corner { padding: 0 1rem; color: var(--ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.feature-compare__offer { padding: 0 .5rem; text-align: center; }
.feature-compare__offer strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 800; line-height: 1.2; }
.feature-compare__offer span { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .75rem; }

.feature-cat { border-bottom: 1px solid var(--line); }

.feature-cat > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 1.25rem;
  padding: 1.4rem 1rem;
  cursor: pointer; list-style: none;
}
.feature-cat > summary::-webkit-details-marker { display: none; }
/* Chevron : deux bordures d'un carre tourne. Centre par la grille et non par
   un positionnement absolu ; le translateY (un quart de la diagonale) compense
   le fait que le trait visible n'occupe que la moitie basse du carre (haute
   une fois ouvert). */
.feature-cat > summary::after {
  content: ''; width: .55rem; height: .55rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-35%) rotate(45deg); transition: transform .2s var(--ease);
}
.feature-cat[open] > summary::after { transform: translateY(35%) rotate(-135deg); }
.feature-cat > summary:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; border-radius: .5rem; }
.feature-cat > summary:hover .feature-cat__title { color: var(--blue-deep); }

.feature-cat__title { display: block; color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3; text-transform: uppercase; }
.feature-cat__desc { display: block; margin-top: .3rem; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.feature-cat__badge { padding: .3rem .7rem; border-radius: var(--radius-pill); color: var(--blue-deep); background: var(--surface-blue); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.feature-cat__badge--varies { color: var(--orange-ink); background: var(--tint-orange); }

.fc-table { width: 100%; margin: 0 0 1.2rem; border-collapse: collapse; table-layout: fixed; }
.fc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Largeur de colonne portee par <colgroup> : le <thead> sort du flux pour etre
   masque, et en disposition fixe Chrome ignore alors la largeur des cellules
   du corps et repartit les quatre colonnes a 25 % (mesure le 11/09). */
.fc-col-label { width: var(--fc-label); }
.fc-table th, .fc-table td { padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: .85rem; line-height: 1.4; vertical-align: middle; }
.fc-table tbody th { color: var(--ink); font-weight: 500; text-align: left; }
.fc-table td { color: var(--ink); font-weight: 700; text-align: center; }
.fc-table tbody tr:nth-child(odd) { background: var(--surface); }

.fc-yes::before, .fc-no::before { display: inline-block; vertical-align: middle; }
.fc-yes::before {
  content: ''; width: 1.15rem; height: 1.15rem; background: var(--blue-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fc-no::before { content: '—'; color: var(--muted); font-weight: 600; }

/* 760.98px et non 760px : meme bascule que --header-height dans refonte.css,
   dont depend le top de l'en-tete collant. */
@media (max-width: 760.98px) {
  .feature-compare__offers { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .75rem 0 .65rem; }
  .feature-compare__corner { display: none; }
  .feature-compare__offer { padding: 0 .25rem; }
  .feature-compare__offer strong { font-size: .8rem; }
  .feature-compare__offer span { font-size: .68rem; }

  .feature-cat > summary { grid-template-columns: minmax(0, 1fr) auto; row-gap: .65rem; padding: 1.15rem .25rem; }
  .feature-cat__badge { grid-row: 2; grid-column: 1; justify-self: start; }
  .feature-cat > summary::after { grid-row: 1 / span 2; grid-column: 2; }

  /* Libelle sur toute la largeur, puis une valeur par offre sous chaque
     colonne de l'en-tete collant. Le tableau n'etant plus en display: table,
     le <colgroup> ne s'applique pas ici. */
  .fc-table, .fc-table tbody { display: block; }
  .fc-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .fc-table th, .fc-table td { border-top: 0; }
  .fc-table tbody th { grid-column: 1 / -1; padding: .75rem .25rem .2rem; }
  .fc-table td { padding: .35rem .25rem .75rem; }
}
