/* =========================================================================
   Nagi — feuille de style unique du site.
   Les jetons reprennent à l'identique les variables du board Nagi (thème
   clair uniquement : le site n'a ni mode sombre ni mode crise, la carte
   « mode crise » de la landing utilise les valeurs sombres en dur).
   ========================================================================= */

/* --- Polices auto-hébergées ---------------------------------------------- */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fredoka-600.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}

/* --- Jetons -------------------------------------------------------------- */

:root {
  --bg: #fbf2ea;
  --surface: #fffaf5;
  --surface-raised: #fffdfa;
  --surface-sunken: #f3e7dd;
  --border: #eadcd2;

  --text-primary: #2e2430;
  --text-secondary: #7c6b74;
  --text-muted: #a3939a;

  --accent: #f0785e;
  --accent-strong: #c4472c;
  --accent-soft: #fcddd4;
  --on-accent: #fff8f4;

  --apricot: #f7a55c;
  --apricot-soft: #fdebd6;
  --sky: #5fa8d3;
  --sky-soft: #dcebf5;
  --teal: #4fb7a3;
  --teal-soft: #d6f0ea;
  --plum: #6b4a6b;
  --plum-soft: #e7dce7;

  --shadow-soft: #c9a08e3d;
  --shadow-card: 0 2px 16px -4px #c9a08e33;

  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Typographie desktop (cf. §9 des specs) */
  --t-h1: 58px;
  --t-h2: 42px;
  --t-h3: 26px;
  --t-h4: 20px;
  --t-lead: 20px;
  --t-body: 17px;
  --t-small: 15px;
  --t-micro: 13px;

  --content: 1140px;
  --gutter: 24px;
  --section-y: 96px;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Le header collant ne doit pas masquer la cible d'une ancre. */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.15;
  letter-spacing: -0.3px;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
}
h4 {
  font-size: var(--t-h4);
  line-height: 1.3;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Focus clavier : contour de 2 px en accent-strong, jamais supprimé. */
:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Utilitaires --------------------------------------------------------- */

/* --content est la largeur du contenu (1140 dans la maquette), la gouttière
   s'ajoute par-dessus : à 1440 px on retrouve bien 150 px de marge. */
.wrap {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section--surface {
  background: var(--surface);
}

.eyebrow {
  margin: 0;
  font-size: var(--t-micro);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--text-secondary);
}

.body-text {
  color: var(--text-secondary);
}

.small {
  font-size: var(--t-small);
  color: var(--text-secondary);
}

.muted {
  font-size: var(--t-micro);
  color: var(--text-muted);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-small);
  font-weight: 600;
  transition: top 120ms ease-out;
}
.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

/* --- Boutons et badges --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 140ms ease-out;
}
.btn:hover {
  background: #e96a4f;
  text-decoration: none;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 20px;
  border-radius: 14px;
  transition: transform 140ms ease-out, background-color 140ms ease-out;
}
.badge:hover {
  text-decoration: none;
}

.badge__lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.badge__over {
  font-size: 11px;
}
.badge__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.badge--apple {
  background: #241d29;
  color: var(--on-accent);
}
.badge--apple:hover {
  background: #322938;
}
.badge--apple .badge__over {
  color: #e8dad2;
}
.badge--apple .icon {
  width: 26px;
  height: 26px;
}

/* Android n'est pas encore disponible : le badge est un état « bientôt »,
   non cliquable, en contour. */
.badge--android {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: default;
}
.badge--android .badge__over {
  color: var(--text-muted);
}
.badge--android .icon {
  width: 24px;
  height: 24px;
}

/* --- Maquette de téléphone ---------------------------------------------- */

.phone {
  --ph-pad: 9px;
  --ph-radius: 44px;
  --ph-screen-radius: 36px;
  width: 342px;
  padding: var(--ph-pad);
  border-radius: var(--ph-radius);
  background: #241d29;
  box-shadow: 0 24px 56px -8px var(--shadow-soft);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: var(--ph-screen-radius);
}

/* --- En-tête ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fffaf5f2;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.logo:hover {
  text-decoration: none;
}
.logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.logo span {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: var(--t-small);
  color: var(--text-secondary);
}
.nav a:hover {
  color: var(--text-primary);
}

.header__cta {
  display: inline-flex;
}

/* Menu mobile : <details>, donc lisible et utilisable sans JavaScript. */
.menu {
  display: none;
}
.menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--surface-sunken);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}
.menu__toggle::-webkit-details-marker {
  display: none;
}
.menu__panel {
  position: absolute;
  right: var(--gutter);
  left: var(--gutter);
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  box-shadow: 0 16px 40px -12px var(--shadow-soft);
}
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: var(--t-small);
  color: var(--text-primary);
}
.menu__panel a:hover {
  background: var(--bg);
  text-decoration: none;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: linear-gradient(158deg, #fff7f0 0%, #fce3d6 58%, #f1e6f0 100%);
  padding: 96px 0 104px;
  /* Le second téléphone dépasse volontairement la colonne, comme dans la
     maquette : on clippe au bord de la section plutôt que d'ouvrir un
     défilement horizontal. */
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hero__col {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 580px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: #ffffffb8;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--accent-strong);
}
.chip .icon {
  width: 16px;
  height: 16px;
}

/* Une teinte par famille de fonctionnalité (cf. §8 des specs). */
.chip--accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.chip--teal {
  background: var(--teal-soft);
  color: var(--teal);
}
.chip--plum {
  background: var(--plum-soft);
  color: var(--plum);
}

.reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
}
.reassurance li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-micro);
  color: var(--text-secondary);
}
.reassurance .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.hero__visual {
  position: relative;
  flex: none;
  width: 524px;
  height: 760px;
}
.hero__halo {
  position: absolute;
  left: 20px;
  top: 60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #f0785e4d, #f0785e00);
}
.hero__phone--back {
  position: absolute;
  left: 250px;
  top: 80px;
  width: 313px;
  --ph-pad: 8px;
  --ph-radius: 40px;
  --ph-screen-radius: 30px;
}
.hero__phone--front {
  position: absolute;
  left: 10px;
  top: 30px;
}

/* --- Bandeau de garanties ----------------------------------------------- */

.strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.strip ul {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
}
.strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--text-secondary);
}
.strip .icon {
  width: 19px;
  height: 19px;
  color: var(--accent);
}

/* --- Le problème --------------------------------------------------------- */

.problem__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.problem__mascot {
  flex: none;
  width: 260px;
  height: auto;
}
.problem__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Grille bento des fonctionnalités ----------------------------------- */

.bento {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 52px;
}
.bento__row {
  display: grid;
  gap: 24px;
}
.bento__row--a {
  grid-template-columns: minmax(0, 720fr) minmax(0, 396fr);
}
.bento__row--b {
  grid-template-columns: minmax(0, 396fr) minmax(0, 720fr);
}
.bento__row--c {
  grid-template-columns: 1fr 1fr;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* Cartes « pleines » : texte à gauche, mockup débordant volontairement. */
.card--split {
  min-height: 450px;
}
.card--split .card__body {
  position: absolute;
  top: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 328px;
}
.card--split .card__aside {
  position: absolute;
  top: 300px;
  left: 40px;
  width: 328px;
}
.card--split .phone {
  position: absolute;
}

.card--taps .phone {
  top: 54px;
  left: 424px;
  width: 299px;
  --ph-pad: 8px;
  --ph-radius: 38px;
  --ph-screen-radius: 29px;
}

.card--trends .card__body {
  left: 352px;
}
.card--trends .card__aside {
  top: 322px;
  left: 352px;
}
.card--trends .phone {
  top: 56px;
  left: 42px;
  width: 299px;
  --ph-pad: 8px;
  --ph-radius: 38px;
  --ph-screen-radius: 29px;
}

.card--report {
  min-height: 448px;
}
.card--report .card__body {
  width: 300px;
}
.card--report .phone {
  top: 58px;
  left: 372px;
  width: 258px;
  --ph-pad: 7px;
  --ph-radius: 33px;
  --ph-screen-radius: 25px;
}

/* Cartes « pile » : contenu en colonne, avec un padding généreux. */
.card--stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
}

.card__pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: #ffffffb8;
}
.card__pastille .icon {
  width: 26px;
  height: 26px;
}

.card__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--t-small);
  color: var(--text-secondary);
}
.card__checks .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--teal);
}

/* Carte mode crise : valeurs sombres en dur, hors thème du site. */
.card--crisis {
  background: #1b1620;
}
.card--crisis h3 {
  color: #f3e9e4;
}
.card--crisis p {
  color: #b4a5ae;
}
.card--crisis .card__pastille {
  background: #2d2533;
}
.card--crisis .card__pastille .icon {
  width: 24px;
  height: 24px;
  color: #a87fa5;
}
.card--crisis .card__rule {
  height: 1px;
  background: #38303f;
}
.card--crisis .crisis-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--r-md);
  background: #241d29;
}
.card--crisis .crisis-note__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #8e7fa8;
}
.card--crisis .crisis-note__value {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 600;
  color: #9a93a6;
}

.card--watch {
  background: linear-gradient(150deg, #dcebf5 0%, #fffaf5 100%);
}
.card--watch .card__pastille .icon {
  width: 25px;
  height: 25px;
  color: var(--sky);
}

.card--relief {
  background: linear-gradient(150deg, #fdebd6 0%, #fffaf5 100%);
}
.card--relief .card__pastille {
  background: #ffffffcc;
}
.card--relief .card__pastille .icon {
  width: 24px;
  height: 24px;
  color: var(--apricot);
}

/* Tuiles de facteurs (pression / sommeil / cycle) */
.factors {
  display: flex;
  gap: 8px;
}
.factors li {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: #ffffffcc;
}
.factors .icon {
  width: 18px;
  height: 18px;
  color: var(--sky);
}
.factors b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.factors span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Liste « facteurs suivis » : libellé à gauche, pourcentage à droite */
.tracked {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tracked li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-small);
  color: var(--text-secondary);
}
.tracked b {
  font-weight: 600;
  color: var(--accent-strong);
}

/* Traitements avec jauge de soulagement */
.meds {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meds li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-md);
  background: #ffffffd9;
}
.meds__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.meds__name {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--text-primary);
}
.meds__detail {
  font-size: var(--t-micro);
  color: var(--text-muted);
}
.meds__score {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 600;
}
.meds__gauge {
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
}
.meds__gauge > span {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
}

/* --- Comment ça marche --------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  margin-top: 52px;
}
.steps__rule {
  background: var(--border);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step:first-child {
  padding-right: 40px;
}
.step:nth-child(3) {
  padding: 0 40px;
}
.step:last-child {
  padding-left: 40px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-soft);
}

/* --- Confidentialité (bloc sombre) -------------------------------------- */

.privacy-block {
  background: linear-gradient(160deg, #2e2430 0%, #3a2a38 100%);
  color: #b4a5ae;
}
.privacy-block__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.privacy-block h2 {
  color: #f3e9e4;
}
.privacy-block .eyebrow {
  color: #f5a28c;
}
.privacy-block__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 10px;
}
.privacy-block__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 600;
  color: #f5a28c;
}
.privacy-block__link .icon {
  width: 17px;
  height: 17px;
}

.guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
}
.guarantees li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #ffffff0f;
}
.guarantees .icon {
  width: 24px;
  height: 24px;
  color: #5cb6a4;
}
.guarantees h3 {
  font-size: var(--t-h4);
  color: #f3e9e4;
}
.guarantees p {
  font-size: var(--t-small);
}

.usage-note {
  display: flex;
  gap: 12px;
  margin-top: 44px;
  font-size: var(--t-small);
  color: #8a7c86;
}
.usage-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

/* --- Mascotte ------------------------------------------------------------ */

.mascot-section {
  background: linear-gradient(180deg, #fbf2ea 0%, #fdeee6 100%);
  padding: 100px 0;
}
.mascot-section .section-head {
  gap: 18px;
}

.states {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.states li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 20px;
  border-radius: var(--r-lg);
  background: #fffaf5b8;
  text-align: center;
}
.states img {
  width: 100%;
  max-width: 120px;
  height: auto;
}
.states__name {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 600;
  color: var(--text-primary);
}
.states p {
  font-size: var(--t-micro);
  color: var(--text-muted);
}

.mascot-section__note {
  max-width: 820px;
  margin-top: 48px;
  font-size: var(--t-small);
  color: var(--text-muted);
}

/* --- Pour qui ------------------------------------------------------------ */

.profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.profiles li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg);
}
.profiles .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.profiles h3 {
  font-size: var(--t-h4);
}
.profiles p {
  font-size: var(--t-small);
  color: var(--text-secondary);
}

/* --- Tarifs -------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 44px auto 0;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 34px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.plan__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan__name {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
}
.plan__price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
}
.plan__unit {
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
}
.plan__note {
  font-size: var(--t-small);
  color: var(--text-muted);
}
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-small);
  color: var(--text-secondary);
}
.plan__features .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--teal);
}

.plan--premium {
  background: linear-gradient(155deg, #f0785e 0%, #f7a55c 100%);
  color: var(--on-accent);
}
.plan--premium .plan__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan--premium .plan__name,
.plan--premium .plan__price {
  color: var(--on-accent);
}
.plan--premium .plan__unit,
.plan--premium .plan__note {
  color: #ffede4;
}
.plan--premium .plan__features li {
  color: var(--on-accent);
}
.plan--premium .plan__features .icon {
  color: var(--on-accent);
}
.plan__trial {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: #ffffff33;
  font-size: var(--t-micro);
  font-weight: 600;
  white-space: nowrap;
}
.plan__legal {
  font-size: var(--t-micro);
  color: #ffe1d4;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}
.faq__col {
  display: flex;
  flex-direction: column;
}
/* Questions et réponses toujours visibles, séparées par un filet, comme la
   maquette. Le §10 des specs autorise explicitement la FAQ « entièrement
   ouverte » : rien à déplier, donc rien qui dépende de JavaScript. */
.faq__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq__col > .faq__item:last-child {
  border-bottom: 0;
}
.faq__item h3 {
  font-size: var(--t-h4);
}
.faq__item p {
  font-size: var(--t-small);
  color: var(--text-secondary);
}

/* --- CTA final ----------------------------------------------------------- */

.final-cta {
  background: linear-gradient(150deg, #fcddd4 0%, #fdebd6 50%, #dcebf5 100%);
  padding: 88px 0;
}
.final-cta__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.final-cta img {
  flex: none;
  width: 240px;
  height: auto;
}
.final-cta__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
}

/* --- Pied de page -------------------------------------------------------- */

.footer {
  background: #2e2430;
  color: #b4a5ae;
  padding: 64px 0 44px;
}
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 64px;
}
.footer .logo {
  color: #f3e9e4;
}
.footer .logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.footer .logo span {
  font-size: 22px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__baseline {
  font-size: var(--t-small);
}
.footer__label {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8a7c86;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__col a {
  font-size: var(--t-small);
  color: #e0d3cd;
}
.footer__rule {
  height: 1px;
  margin: 44px 0;
  background: #4a3d48;
}
.footer__disclaimer {
  font-size: var(--t-micro);
  color: #8a7c86;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  font-size: var(--t-micro);
  color: #8a7c86;
}

/* =========================================================================
   Page « Politique de confidentialité »
   ========================================================================= */

.doc-head {
  background: linear-gradient(160deg, #fff7f0 0%, #f3e7f0 100%);
  padding: 72px 0 56px;
}
.doc-head__inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-micro);
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb [aria-current] {
  font-weight: 600;
  color: var(--text-secondary);
}
.doc-head h1 {
  font-size: 52px;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: var(--t-micro);
  color: var(--text-muted);
}
.doc-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.doc-meta .icon {
  width: 15px;
  height: 15px;
}
.doc-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fffaf5d9;
}
.doc-summary__label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.doc-summary__label .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.doc-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  padding: 64px 0 88px;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
}
.toc h2 {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 8px;
  font-size: var(--t-micro);
  line-height: 1.45;
  color: var(--text-secondary);
}
.toc a::before {
  content: counter(toc) ".";
  flex: none;
  font-weight: 600;
  color: var(--text-muted);
}
.toc a:hover {
  color: var(--accent-strong);
}

.doc-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 780px;
}
.doc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 104px;
}
.doc-section h2 {
  display: flex;
  gap: 12px;
  font-size: var(--t-h3);
}
.doc-section h2::before {
  content: attr(data-num);
  color: var(--accent-soft);
}
.doc-section p {
  color: var(--text-secondary);
  line-height: 1.75;
}
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.doc-list li {
  display: flex;
  gap: 11px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.doc-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  font-size: var(--t-small);
  text-align: left;
}
.doc-table th {
  padding: 12px 16px;
  background: var(--surface-sunken);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
}
.doc-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.55;
}
.doc-table td:first-child {
  width: 30%;
  font-weight: 600;
  color: var(--text-primary);
}
.doc-table tr:first-child td {
  border-top: 0;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--apricot-soft);
  font-size: var(--t-small);
  line-height: 1.65;
}
.callout .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent-strong);
}

.doc-back {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
}
.doc-back__title {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 600;
  color: var(--text-primary);
}
.doc-back p {
  margin-top: 5px;
  font-size: var(--t-small);
  color: var(--text-secondary);
}

/* =========================================================================
   Adaptations — palier intermédiaire puis mobile (maquette 390)
   ========================================================================= */

@media (max-width: 1180px) {
  :root {
    --t-h1: 48px;
    --t-h2: 36px;
  }
  .hero__visual {
    width: 420px;
    height: 620px;
  }
  .hero__halo {
    width: 380px;
    height: 380px;
  }
  .hero__phone--front {
    width: 280px;
    --ph-radius: 36px;
    --ph-screen-radius: 29px;
  }
  .hero__phone--back {
    left: 190px;
    width: 250px;
    --ph-radius: 32px;
    --ph-screen-radius: 25px;
  }
  .footer__cols {
    gap: 40px;
  }
  .doc-body {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 1000px) {
  /* Les cartes mixtes repassent en flux normal : le mockup devient une
     bande visuelle sous le texte, comme sur la maquette 390. */
  .bento__row--a,
  .bento__row--b,
  .bento__row--c,
  .guarantees,
  .plans,
  .faq,
  .privacy-block__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .profiles {
    grid-template-columns: 1fr;
  }
  .states {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .steps__rule {
    display: none;
  }
  .step,
  .step:first-child,
  .step:nth-child(3),
  .step:last-child {
    padding: 0;
  }

  .card--split,
  .card--report {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 20px 0;
  }
  .card--split .card__body,
  .card--report .card__body,
  .card--split .card__aside {
    position: static;
    top: auto;
    left: auto;
    width: auto;
  }
  .card--split .card__viewport,
  .card--report .card__viewport {
    position: relative;
    height: 180px;
    overflow: hidden;
  }
  .card--split .phone,
  .card--report .phone {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 232px;
    --ph-pad: 7px;
    --ph-radius: 30px;
    --ph-screen-radius: 24px;
  }
  .card--stack {
    padding: 28px 20px;
  }

  .strip ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 0;
  }
  .problem__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .final-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .doc-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    /* Échelle typographique de la maquette 390. */
    --t-h1: 34px;
    --t-h2: 28px;
    --t-h3: 21px;
    --t-h4: 17px;
    --t-lead: 16px;
    --t-body: 15px;
    --t-small: 13px;
    --t-micro: 12px;
    --gutter: 20px;
    --section-y: 56px;
  }
  html {
    scroll-padding-top: 80px;
  }

  .header__inner {
    height: 64px;
  }
  .logo img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .logo span {
    font-size: 20px;
  }
  /* Sous 720 px, la navigation passe dans le menu. */
  .nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .btn {
    padding: 10px 16px;
    min-height: 40px;
  }

  .hero {
    padding: 40px 0 0;
  }
  .hero__inner {
    flex-direction: column;
    gap: 22px;
  }
  .hero__col {
    max-width: none;
  }
  .hero__visual {
    width: 100%;
    height: 330px;
    align-self: center;
  }
  .hero__halo {
    left: 50%;
    top: 30px;
    width: 310px;
    height: 310px;
    transform: translateX(-50%);
  }
  .hero__phone--front {
    left: 50%;
    top: 28px;
    width: 236px;
    transform: translateX(-50%);
    --ph-pad: 7px;
    --ph-radius: 31px;
    --ph-screen-radius: 26px;
  }
  .hero__phone--back {
    display: none;
  }
  .store-badges {
    flex-direction: column;
    align-items: stretch;
  }
  .badge {
    justify-content: center;
  }

  .states {
    grid-template-columns: 1fr 1fr;
  }
  .bento {
    margin-top: 24px;
  }
  /* Mascottes réduites à 180 px, comme la maquette 390. */
  .problem__mascot,
  .final-cta img {
    width: 180px;
  }
  .strip .icon {
    width: 17px;
    height: 17px;
  }
  .section-head {
    gap: 12px;
  }
  .guarantees li,
  .profiles li,
  .doc-summary,
  .doc-back {
    padding: 20px;
  }
  .plan {
    padding: 24px;
  }
  .plan__price {
    font-size: 32px;
  }
  .doc-head {
    padding: 40px 0 32px;
  }
  .doc-head h1 {
    font-size: 32px;
  }
  .doc-body {
    padding: 40px 0 56px;
  }
  .doc-content {
    gap: 36px;
  }

  /* Cibles tactiles de 44 px minimum, y compris les liens de listes. */
  .footer__col li,
  .toc li {
    min-height: 44px;
  }
  .footer__col a,
  .toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__rule,
  .footer__bottom,
  .usage-note,
  .guarantees,
  .mascot-section__note {
    margin-top: 28px;
  }

  /* Les tableaux de la politique défilent seuls plutôt que la page. */
  .doc-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .doc-table {
    min-width: 460px;
  }
}

/* --- Mouvement réduit ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --- Impression (la politique doit rester lisible imprimée) ------------- */

@media print {
  .header,
  .footer,
  .toc,
  .doc-back,
  .skip-link {
    display: none;
  }
  body {
    background: #fff;
  }
  .doc-body {
    display: block;
    padding: 0;
  }
}
