/* =============================================================
   main.css — Wincash Landing

   Implémentation du Design System Wincash (LP-02B V2, validé LP-02C).
   Toutes les valeurs proviennent de tokens.css : aucune couleur, taille,
   graisse, espacement, rayon ni ombre n'est écrit en dur ici.

   Ordre : polices · reset · accessibilité · layout · header · boutons ·
   sections · hero · mockups · réassurance · cartes · écosystème · CTA ·
   footer · formulaire · pages légales · 404 · animations · responsive.

   Contraintes : CSS vanilla, aucun framework, aucun préprocesseur, aucun
   appel à un domaine tiers (polices auto-hébergées). Budget : 40 Ko.
   ============================================================= */

/* --- 1. Polices auto-hébergées (CDC §10) --------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-var-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* D4 — signature manuscrite décorative, sous-ensemble limité aux caractères
   des deux signatures. Jamais préchargée : élément non essentiel. */
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-600-signature.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  /* L2 — signature decorative (aria-hidden) : jamais bloquante au rendu. */
  font-display: optional;
}

/* --- 2. Reset et base ----------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

/* L'attribut hidden doit l'emporter sur les display: flex/grid des composants
   (zone de statut du formulaire, champ conditionnel, panneau de navigation). */
[hidden] { display: none !important; }
ul, ol { padding: 0; list-style: none; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--color-navy); }
a:hover { color: var(--color-teal); }

button, input, select, textarea { font: inherit; color: inherit; }

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  text-wrap: balance;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
}

/* --- 3. Accessibilité ----------------------------------------- */

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  z-index: 1000;
  padding: var(--space-1) var(--space-2);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  text-decoration: none;
  border-radius: 0 0 var(--radius-btn) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--color-white);
}

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

/* Sprite de pictogrammes : hors flux, invisible, jamais annonce. */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Honeypot anti-spam : masquage fonctionnel, jamais display:none. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- 4. Layout ------------------------------------------------- */

.container {
  width: 100%;
  min-width: 0;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--color-bg-soft); }
.section--tight { padding-block: var(--space-4); }

.section__head {
  max-width: 720px;
  margin: 0 auto var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2) var(--space-3);
}

/* --- 5. Header et navigation ----------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Mot-symbole typographique temporaire — LOGO_STATUS = TEMPORARY_TEXT_WORDMARK.
   Le logo officiel (SVG) reste attendu : inputs A1 à A3. */
.brand {
  display: flex;
  align-items: center;
  /* V1.2.1 — le pictogramme et le mot doivent lire comme UNE marque : l'ecart
     et le rapport de taille sont regles pour cela, pas laisses au hasard. */
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.brand__name {
  font-weight: var(--fw-extrabold);
  font-size: 1.5rem;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  text-decoration: none;
  padding-block: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav__link:hover { color: var(--color-teal); }

.nav__link[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-teal);
}

.nav-toggle {
  display: none;
  width: var(--target-min);
  height: var(--target-min);
  border: 0;
  background: transparent;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  cursor: pointer;
}

.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav .nav__cta,
.nav .nav__editor { display: none; }

/* --- 6. Boutons et liens --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: var(--space-3);
  border: 0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease),
              color var(--motion-fast) var(--ease);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-teal-hover);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
}

.btn--secondary:hover {
  background: var(--color-teal-tint);
  color: var(--color-teal);
}

.btn--header { height: var(--target-min); padding-inline: var(--space-2) 20px; }
.btn--wide { padding-inline: 28px; }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--color-border-strong);
  color: var(--color-white);
  border-color: var(--color-border-strong);
  cursor: not-allowed;
}

.link {
  color: var(--color-teal);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover { color: var(--color-teal-hover); }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

/* --- 7. Hero ---------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-sky-tint) 0%, #F7FAFD 100%);
}

.hero__shape {
  position: absolute;
  border-radius: 60px;
  pointer-events: none;
}

.hero__shape--left {
  left: -80px;
  top: 120px;
  width: 260px;
  height: 260px;
  background: var(--color-sky-light);
  opacity: .55;
  transform: rotate(18deg);
}

.hero__shape--right {
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: var(--color-accent-tint);
  opacity: .5;
  transform: rotate(-14deg);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-5) 5.5rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 540px;
}

.hero__subtitle {
  font-size: var(--fs-lead);
  color: var(--color-text);
  text-wrap: pretty;
}

.hero__editor {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* D4 — une seule signature manuscrite par page, décorative, aria-hidden. */
.signature {
  margin-top: var(--space-2);
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-navy);
  transform: rotate(-3deg);
  transform-origin: left;
  max-width: 360px;
}

.hero__visual {
  position: relative;
  padding-block: 12px var(--space-3);
}

/* Le telephone est ancre a droite : la largeur du portable est calculee
   pour qu'ils soient adjacents sans que le telephone ne recouvre la
   moindre carte — c'est le defaut H2 de la V1.2, a ne pas reintroduire. */
.hero__visual .mockup-laptop { width: 77%; }

.hero__phone {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 23%;
}

/* M10 — ce hero reservait pres de 300 px a deux lignes de texte, puis la
   page laissait un grand vide avant le formulaire. */
.hero--simple .hero__inner {
  display: block;
  padding-block: var(--space-4) var(--space-3);
}

.hero--simple .hero__text { max-width: 640px; gap: var(--space-2); }

/* L2 — la colonne texte etant plus courte que la photo, le hero de
   /partenaires se terminait sur environ 110 px de vide. */
.hero__photo {
  border-radius: var(--radius-block);
  box-shadow: var(--shadow-device);
  overflow: hidden;
}

.hero--photo .hero__inner { padding-block: var(--space-4) var(--space-4); }

.hero__photo img { width: 100%; }

/* --- Bandeau de positionnement ecosysteme (V1.2) -------------------
   H1 de docs/AUDIT_PREMIUM_V1_2.md. Traitement volontairement different
   du bloc ecosysteme bleu nuit place plus bas : celui-ci est une note
   d'actualite, court et actionnable, pas une respiration de marque. */

.note-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-block);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--color-sky-tint) 0%, transparent 62%),
    var(--color-white);
  box-shadow: var(--shadow-card);
}

.note-panel__body { max-width: 62ch; }

.note-panel h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  margin-top: 10px;
}

.note-panel__text {
  margin-top: 10px;
  color: var(--color-text-muted);
}

.note-panel .btn { flex-shrink: 0; }

/* Pastille d'etat — le point est decoratif, l'information est dans le texte
   (WCAG 1.4.1 : jamais de sens porte par la seule couleur). */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 4px 12px 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-tint);
  color: var(--color-teal-hover);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  flex-shrink: 0;
}

/* Action de fin de section (H3) */
.section__action {
  margin-top: var(--space-3);
  display: flex;
  justify-content: center;
}

/* --- 8. Mockups produit (CSS, aucun chiffre, aucune marque) -----

   V1.2.1 — direction artistique reprise des references
   docs/maquettes/reference-mockup-hero-ambiance.png et -studio.png.
   Leur CONTENU n'est pas repris : elles affichent une heure (9:41), une barre
   de recherche, une rubrique « Nos categories » et des formulations non
   validees. Voir docs/ASSET_MAPPING_V1_2_1.md.

   Ce qui est repris : le realisme des appareils, la profondeur, la presence du
   logo dans l'interface, la banniere d'accueil, les pictogrammes de navigation
   et les cartes d'univers avec chevron. ------------------------------------ */

.mockup-laptop,
.mockup-phone {
  font-family: var(--font-sans);
}

/* Le corps de texte des mockups etait indexe sur la largeur de la FENETRE
   (vw) : des que la largeur du portable changeait, le contenu ne suivait pas
   et debordait de l'ecran. Il est desormais indexe sur l'appareil lui-meme
   (unites de conteneur), donc l'ensemble se met a l'echelle d'un bloc. */
.mockup-laptop { container-type: inline-size; }
.hero__phone   { container-type: inline-size; }

/* --- Ordinateur portable ---------------------------------------- */

.mockup-laptop__body {
  position: relative;
  background: linear-gradient(160deg, #2A3543 0%, #161E28 55%, #202A36 100%);
  border-radius: 16px 16px 5px 5px;
  padding: 1.5% 1.5% 2.8%;
  box-shadow:
    0 40px 70px -30px rgba(15, 42, 74, .40),
    0 6px 18px -6px rgba(15, 42, 74, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .07);
}

/* Camera — detail minuscule, mais c'est lui qui fait lire l'objet comme un
   ordinateur plutot que comme un cadre gris. */
.mockup-laptop__cam {
  position: absolute;
  top: .55%;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0B1119;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.mockup-laptop__base {
  height: 14px;
  background: linear-gradient(180deg, #E7EBEF 0%, #C7CFD8 45%, #A9B4C0 100%);
  border-radius: 0 0 12px 12px;
  margin-inline: -5.5%;
  position: relative;
  box-shadow: 0 16px 26px -14px rgba(15, 42, 74, .38);
}

/* Encoche d'ouverture du capot. */
.mockup-laptop__base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 13%;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: rgba(15, 42, 74, .16);
}

.mockup-laptop__screen {
  min-width: 0;
  background: var(--color-white);
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  grid-template-columns: 29% 1fr;
  font-size: clamp(5px, 2cqw, 11px);
}

/* --- Barre laterale de l'application ----------------------------- */

.mockup__side {
  min-width: 0;
  background: linear-gradient(180deg, #F7FAFD 0%, var(--color-bg-soft) 100%);
  border-right: 1px solid var(--color-border);
  padding: 1.4em 1.1em;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.mockup__brand {
  display: flex;
  align-items: center;
  gap: .55em;
  min-width: 0;
}

.mockup__brand img {
  width: 2.3em;
  height: 2.3em;
  border-radius: .62em;
  flex-shrink: 0;
}

.mockup__brand span {
  font-weight: var(--fw-extrabold);
  font-size: 1.35em;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  white-space: nowrap;
}

.mockup__nav {
  display: flex;
  flex-direction: column;
  gap: .18em;
}

.mockup__nav--foot {
  margin-top: auto;
  padding-top: .8em;
  border-top: 1px solid var(--color-border);
}

.mockup__item {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .5em .55em;
  border-radius: .5em;
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
  font-size: .95em;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
}

.mockup__item svg {
  width: 1.35em;
  height: 1.35em;
  flex-shrink: 0;
  color: var(--color-navy-2);
  opacity: .55;
}

.mockup__item--active {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: 0 1px 3px rgba(15, 42, 74, .10);
}

.mockup__item--active svg { color: var(--color-teal); }

/* --- Zone principale --------------------------------------------- */

.mockup__main {
  min-width: 0;
  padding: 1.2em 1.4em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.mockup__topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .7em;
}

.mockup__dot {
  width: .85em;
  height: .85em;
  border-radius: 50%;
  background: var(--color-sky-light);
}

/* Pastille de compte, volontairement vide : aucun prenom, aucune initiale,
   aucune photo — rien qui suggere un utilisateur reel. */
.mockup__avatar {
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-sky) 0%, var(--color-navy-2) 100%);
  flex-shrink: 0;
}

.mockup__banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 100% 0%, #D9EEFB 0%, transparent 60%),
    linear-gradient(135deg, var(--color-sky-light) 0%, var(--color-sky-tint) 100%);
  border-radius: .9em;
  padding: 1.05em 1.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8em;
}

.mockup__banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5em;
  min-width: 0;
}

.mockup__eyebrow {
  font-size: .82em;
  font-weight: var(--fw-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.mockup__banner b {
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  font-size: 1.55em;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* Un seul mot en turquoise : c'est ce qui donne son relief au titre sans
   ajouter de couleur au systeme. */
.mockup__banner b span { color: var(--color-teal); }

.mockup__banner i {
  padding: .5em 1.1em;
  border-radius: .5em;
  background: var(--color-teal);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: .9em;
  font-style: normal;
  box-shadow: 0 3px 8px -2px rgba(11, 122, 118, .5);
}

/* Grappe de cartes flottantes — direction reprise de
   docs/maquettes/reference-mockup-hero-premium.png. Entierement en CSS :
   aucune image de reference publiee, aucun chiffre, aucune enseigne.
   C'est l'element qui fait passer la banniere d'un aplat a une composition. */

.mockup__cluster {
  position: relative;
  flex-shrink: 0;
  width: 10.6em;
  height: 8.6em;
  align-self: center;
}

/* Halo tres doux : detache la grappe du fond de banniere. */
.mockup__cluster::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, 0) 70%);
}

.mockup__float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .8em;
  color: var(--color-white);
}

.mockup__float svg { width: 50%; height: 50%; }

/* Les trois pastilles restent dans la palette : turquoise, bleu ciel,
   bleu nuit. Aucune couleur hors ADN de marque. */
.mockup__float--tag {
  width: 2.7em;
  height: 2.7em;
  top: .1em;
  left: 0;
  background: linear-gradient(145deg, #17B0A6 0%, #0B7A76 100%);
  box-shadow: 0 .55em 1.1em -.35em rgba(11, 122, 118, .55);
  transform: rotate(-13deg);
}

.mockup__float--gift {
  width: 2.4em;
  height: 2.4em;
  top: .2em;
  right: .35em;
  background: linear-gradient(145deg, #7AC5F5 0%, #2F7FD1 100%);
  box-shadow: 0 .55em 1.1em -.35em rgba(47, 127, 209, .5);
  transform: rotate(12deg);
}

.mockup__float--ticket {
  width: 2.3em;
  height: 2.3em;
  bottom: .3em;
  right: .8em;
  background: linear-gradient(145deg, #32659E 0%, #14355C 100%);
  box-shadow: 0 .55em 1.1em -.35em rgba(15, 42, 74, .5);
  transform: rotate(-9deg);
}

/* La carte blanche porte le pictogramme. Elle est au premier plan et ancre
   la grappe ; les trois pastilles gravitent autour sans la recouvrir. */
.mockup__float--mark {
  width: 4.3em;
  height: 4.3em;
  left: 2.4em;
  bottom: 1.1em;
  border-radius: 1.25em;
  background: var(--color-white);
  box-shadow: 0 1em 2em -.7em rgba(15, 42, 74, .45);
  transform: rotate(-4deg);
}

.mockup__float--mark::after {
  content: "";
  position: absolute;
  inset: .6em;
  border-radius: .78em;
  background: url("/assets/logos/wincash-mark-108.png") center / cover no-repeat;
}

/* --- Cartes d'univers -------------------------------------------- */

.mockup__tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9em;
  min-width: 0;
}

.mockup__tiles > *,
.mockup-phone__grid > * { min-width: 0; }

.mockup__tile {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: .8em;
  padding: .95em 1em;
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: .7em;
  row-gap: .3em;
  align-items: center;
  box-shadow: 0 3px 10px rgba(15, 42, 74, .05);
}

.mockup__tile .mockup__pill { grid-area: 1 / 1; }
.mockup__tile b             { grid-area: 1 / 2; }
.mockup__tile .mockup__chev { grid-area: 1 / 3; }
.mockup__tile em            { grid-area: 2 / 1 / 2 / -1; }

.mockup__tile b {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  min-width: 0;
  overflow-wrap: anywhere;
}

.mockup__tile em {
  font-style: normal;
  font-size: .92em;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.mockup__chev {
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup__chev svg {
  width: .8em;
  height: .8em;
  color: var(--color-teal);
}

.mockup__pill {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup__pill svg { width: 55%; height: 55%; }

/* --- Telephone ---------------------------------------------------- */

.mockup-phone__body {
  background: linear-gradient(150deg, #2E3947 0%, #151C25 60%, #232D3A 100%);
  border-radius: 15%;
  padding: 3%;
  box-shadow:
    0 32px 55px -24px rgba(15, 42, 74, .45),
    0 5px 14px -5px rgba(15, 42, 74, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .09);
}

.mockup-phone__screen {
  position: relative;
  background: var(--color-white);
  border-radius: 12%;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: clamp(4px, 6.1cqw, 9px);
}

/* Ilot de camera — aucune barre d'etat, donc aucune heure affichee. */
.mockup-phone__notch {
  position: absolute;
  top: 1.6em;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 2.4em;
  border-radius: 2em;
  background: #10161E;
  z-index: 2;
}

.mockup-phone__head {
  padding: 5.4em 1.4em 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6em;
}

.mockup-phone__head .mockup__brand span { font-size: 1.2em; }
.mockup-phone__head .mockup__brand img { width: 2em; height: 2em; border-radius: .55em; }
.mockup-phone__head .mockup__avatar { width: 1.6em; height: 1.6em; }

.mockup-phone__title {
  padding: 1.3em 1.4em .2em;
  display: flex;
  flex-direction: column;
  gap: .35em;
}

.mockup-phone__title b {
  font-weight: var(--fw-extrabold);
  color: var(--color-navy);
  font-size: 1.5em;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mockup-phone__grid {
  padding: 1em 1.4em 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7em;
}

.mockup-phone__grid .mockup__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5em;
  padding: 1em .4em;
}

.mockup-phone__grid .mockup__tile b { font-size: .8em; line-height: 1.2; }

.mockup-phone__tabs {
  margin-top: auto;
  padding: .9em 1.2em 1.4em;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mockup-phone__tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  font-size: .78em;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}

.mockup-phone__tabs svg {
  width: 1.5em;
  height: 1.5em;
}

.mockup-phone__tabs .is-active { color: var(--color-teal); }


/* --- 9. Bandeau de réassurance ---------------------------------- */

.reassurance {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.reassurance__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 28px;
}

.reassurance__item {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-1) var(--space-3);
  border-left: 1px solid var(--color-border);
}

.reassurance__item:first-child { border-left: 0; }

.icon-tile {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  background: var(--color-sky-tint);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-tile svg { width: 22px; height: 22px; }

.reassurance__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--color-navy);
}

.reassurance__text {
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* --- 10. Cartes -------------------------------------------------- */

.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--motion-fast) var(--ease),
              transform var(--motion-fast) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card__body {
  padding: 28px var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* M4 — la photo passe au-dessus du texte (les cartes paraissaient lourdes du
   bas) et la pastille chevauche la limite image / texte : c'est ce debord qui
   donne de la profondeur a la carte sans ajouter d'ornement. */
.card__media + .card__body {
  padding-top: 0;
  margin-top: -28px;
  position: relative;
}

.card__media + .card__body .pill {
  box-shadow: 0 0 0 5px var(--color-white);
}

.card__text {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

.card__media { display: block; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.pill {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill svg { width: 26px; height: 26px; }

/* Les quatre classes d'univers sont conservees — elles nomment le contenu —
   mais partagent desormais l'accent unique de la marque (H5). */
.pill--cashback,
.pill--reductions,
.pill--cartes,
.pill--billetterie { background: var(--color-accent-tint); color: var(--color-accent); }

.card--benefit {
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(15, 42, 74, .04);
  padding: 28px var(--space-3);
  gap: 14px;
}

/* M2 — « Activation commerciale » passait a la ligne quand les trois autres
   titres tenaient sur une seule : les corps de texte ne demarraient plus a la
   meme hauteur d'une carte a l'autre. */
.card--benefit h3 { font-size: 1.15rem; }

.card--benefit:hover { transform: none; box-shadow: var(--shadow-hover); }

.icon-square {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-sky-tint);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-square svg { width: 24px; height: 24px; }

/* M12 — ces neuf cartes n'affichaient qu'un pictogramme et un libelle :
   un partenaire ne savait pas ce qui etait attendu de lui. Elles portent
   desormais une ligne de description, d'ou la mise en grille. */
.tile {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: var(--space-3);
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: var(--space-2);
  row-gap: 6px;
  align-items: center;
  box-shadow: 0 4px 24px rgba(15, 42, 74, .04);
  transition: box-shadow var(--motion-fast) var(--ease);
}

.tile:hover { box-shadow: var(--shadow-hover); }

.tile__pill {
  grid-area: 1 / 1;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile__pill svg { width: 22px; height: 22px; }

.tile__text {
  grid-area: 2 / 2;
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.tile__label {
  grid-area: 1 / 2;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  line-height: 1.3;
}

.step {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.steps { counter-reset: step; }
.step { counter-increment: step; }

.step__number::before { content: counter(step); }

.step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-top: var(--space-1); font-size: 1.1875rem; }

/* --- 11. Bloc écosystème ---------------------------------------- */

.ecosystem {
  background: var(--color-navy);
  border-radius: var(--radius-block);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .6fr .9fr;
  align-items: stretch;
  color: var(--color-white);
}

.ecosystem__text {
  padding: var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.ecosystem__text h2 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

.ecosystem__text p { opacity: .9; text-wrap: pretty; }

.ecosystem__points {
  padding: var(--space-4) var(--space-3);
  border-left: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.ecosystem__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.ecosystem__points svg {
  width: 20px;
  height: 20px;
  color: var(--color-on-navy-accent);
  flex-shrink: 0;
}

.ecosystem__media { position: relative; min-height: 220px; }

.ecosystem__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecosystem__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-navy) 0%, rgba(15, 42, 74, 0) 32%);
}

.editor-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-white);
  margin-top: var(--space-3);
}

.editor-note__title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--color-navy);
}

.editor-note__text { font-size: var(--fs-small); color: var(--color-text-muted); }

/* --- 12. CTA final ----------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
}

.cta__shape {
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 52px;
  background: var(--color-accent-tint);
  opacity: .6;
  transform: rotate(20deg);
  pointer-events: none;
}

/* M6 — le CTA final etait la section la moins travaillee du site alors que
   c'est le principal point de conversion : un titre, deux lignes et un bouton
   sur un aplat. Il devient un panneau pose, avec deux actions hierarchisees. */
.cta__panel {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-4) var(--space-4) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-block);
  background:
    radial-gradient(110% 130% at 50% 0%, var(--color-sky-tint) 0%, transparent 60%),
    var(--color-white);
  box-shadow: var(--shadow-card);
}

.cta__text {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
  text-wrap: pretty;
}

.btn-row--center {
  justify-content: center;
  margin-top: var(--space-3);
}

/* --- 13. Footer --------------------------------------------------- */

.site-footer {
  background:
    radial-gradient(90% 120% at 0% 0%, #16345A 0%, transparent 55%),
    var(--color-navy);
  color: var(--color-white);
}

/* Quatre colonnes (V1.2.2). La version precedente laissait la colonne de
   marque vide aux deux tiers, n'offrait aucune coordonnee et aucune action :
   sur une page destinee a des partenaires, c'est une fin de page perdue. */
.site-footer__top {
  padding-block: var(--space-5) var(--space-4);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
  gap: var(--space-4) var(--space-3);
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 34ch;
}

.site-footer .brand { color: var(--color-white); }
.site-footer .brand__name { color: var(--color-white); }

/* Le pictogramme est un carre bleu nuit : sur ce fond il disparaitrait.
   La plaque blanche remplace la declinaison blanche non fournie. */
.site-footer .brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--color-white);
  padding: 3px;
  box-sizing: border-box;
}

.site-footer__baseline {
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: rgba(255, 255, 255, .74);
}

/* Appel a l'action de fin de page : discret sur le fond bleu nuit, mais
   present — c'est la derniere occasion de convertir un partenaire. */
.btn--footer {
  height: 44px;
  padding-inline: 20px;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: var(--fs-caption);
}

.btn--footer:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .6);
  color: var(--color-white);
}

.site-footer__title {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--color-on-navy-accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__list a,
.site-footer__nav a {
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-caption);
  text-decoration: none;
  /* WCAG 2.2 AA 2.5.8 : ces liens forment une navigation, pas une phrase. */
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  transition: color var(--motion-fast) var(--ease);
}

.site-footer__list a:hover,
.site-footer__nav a:hover { color: var(--color-white); text-decoration: underline; }

.site-footer__bottom {
  padding-block: 18px 30px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  flex-wrap: wrap;
}

.site-footer__legal {
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, .55);
}

.site-footer__nav {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}

.site-footer :focus-visible { outline-color: var(--color-sky); }

/* WCAG 2.2 AA 2.5.8 — ces liens sont le seul contenu de leur <dd> : ils ne
   sont pas « en ligne dans un texte » et ne beneficient pas de l'exception. */
dd > .link,
.contact-list dd > .link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* --- 14. Formulaire et page Contact ------------------------------ */

/* Le formulaire est place AVANT la colonne laterale dans le DOM : sur mobile
   il n'est plus precede de 700 px de contenu, et l'ordre de tabulation atteint
   d'abord l'action principale. Sur ordinateur, la grille replace la colonne
   laterale a gauche, la ou elle etait. */
.contact-layout {
  display: grid;
  /* La colonne laterale est fixee : elle ne porte qu'une carte, trois etapes
     et un encart, 340 px lui suffisent. Tout le reste va au formulaire, qui
     passe de 700 a environ 770 px et respire nettement mieux. */
  grid-template-columns: 340px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.contact-layout > .contact-aside { grid-area: 1 / 1; }
.contact-layout > .form          { grid-area: 1 / 2; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
  top: calc(var(--header-h) + var(--space-3));
}

.panel {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.panel h2 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* H4 — le pictogramme etait un <span> place directement dans le <div> du
   <dl>, ce que le modele de contenu interdit : les huit paires n'etaient
   rattachees a aucune liste de definitions (WCAG 1.3.1). Il vit desormais
   dans le <dt>, et la grille restitue exactement la meme mise en page. */
.contact-list > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-items: start;
}

.contact-list dt {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 14px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.contact-list dd {
  grid-column: 2;
  margin: 2px 0 0;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
}

.panel--navy {
  background: var(--color-navy);
  color: var(--color-white);
  gap: var(--space-1);
}

.panel--navy strong { font-size: var(--fs-body); }
.panel--navy p { font-size: var(--fs-caption); line-height: 1.55; opacity: .9; }
.panel--navy .link { color: var(--color-white); }

.form {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full { grid-column: 1 / -1; }

.field > label {
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
}

.field .req { color: var(--color-error); }

.field input,
.field select,
.field textarea {
  height: 52px;
  padding-inline: 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-field);
  font-size: var(--fs-small);
  color: var(--color-text);
  background: var(--color-white);
  width: 100%;
}

.field textarea {
  height: auto;
  min-height: 168px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-accent-tint);
  outline: none;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border: 2px solid var(--color-error);
}

.field__error {
  font-size: 0.8125rem;
  color: var(--color-error);
  font-weight: var(--fw-semibold);
}

.field__error:empty { display: none; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--fs-caption);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  /* H4 — WCAG 2.2 AA 2.5.8 : controle de formulaire, aucune exception. */
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--color-teal);
  flex-shrink: 0;
}

.form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: 4px;
}

.form__note { font-size: 0.8125rem; color: var(--color-text-muted); }

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: var(--space-2) 18px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-small);
  line-height: 1.5;
  font-weight: var(--fw-semibold);
}

.alert svg { width: 22px; height: 22px; flex-shrink: 0; }

.alert--success {
  background: var(--color-success-bg);
  border: 1px solid #9BD3B3;
  color: var(--color-success);
}

.alert--error {
  background: var(--color-error-bg);
  border: 1px solid #F3B8B0;
  color: var(--color-error);
}

.alert--info {
  background: var(--color-sky-tint);
  border: 1px solid var(--color-border-strong);
  color: var(--color-navy);
}

/* --- 15. Pages légales et texte long ----------------------------- */

/* Etapes numerotees compactes — colonne laterale de /contact (M10). */
.panel__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin: 0 0 14px;
}

.steps-mini {
  list-style: none;
  counter-reset: etape;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-mini li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  align-items: start;
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.steps-mini li::before {
  content: counter(etape);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* M9 — 760 px pour un corps de 16 px donnait 95 caracteres par ligne, bien
   au-dela du confort de lecture (60 a 75). Une mesure en « ch » suit la
   taille du texte, y compris si l'utilisateur zoome. */
.prose {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: var(--space-1); }
.prose p { color: var(--color-text-muted); text-wrap: pretty; }

.prose ul {
  list-style: disc;
  padding-left: var(--space-3);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.prose dl {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  gap: var(--space-1) var(--space-2);
}

.prose dt { font-weight: var(--fw-semibold); color: var(--color-navy); }
.prose dd { margin: 0; color: var(--color-text-muted); }
.prose__date { font-size: var(--fs-caption); color: var(--color-text-muted); }

/* --- 16. Page 404 ------------------------------------------------- */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding-block: var(--space-7);
}

.error-page__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-caption);
  letter-spacing: .08em;
  color: var(--color-teal);
  font-weight: var(--fw-bold);
}

.error-page p { color: var(--color-text-muted); max-width: 520px; }

/* --- 17. Apparition au scroll (CDC §8.7) ------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-base) var(--ease),
              transform var(--motion-base) var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* Sans JavaScript, rien ne doit rester invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* --- 18. Responsive ---------------------------------------------- */

/* Tablette et petit desktop : bascule du menu, grilles 4 → 2 */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .nav .nav__cta { display: inline-flex; }

  /* Sans JavaScript, le panneau ne peut pas s'ouvrir : la navigation reste
     dans le flux, sous le logo, plutot que masquee ou bloquee en plein ecran. */
  .no-js .nav-toggle { display: none; }

  .no-js .site-header__inner {
    height: auto;
    flex-wrap: wrap;
    padding-block: var(--space-2);
  }

  .no-js .nav {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: var(--space-2) 0 0;
    gap: var(--space-1) var(--space-2);
    overflow: visible;
  }

  .no-js .nav__link { min-height: var(--target-min); padding-inline: 0; }
  .no-js .nav__editor { display: none; }

  .site-header__inner { height: var(--header-h-mobile); padding-inline: var(--gutter-mobile); }
  .site-header__cta { display: none; }

  html:not(.no-js) .nav {
    position: absolute;
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h-mobile));
    background: var(--color-white);
    padding: var(--space-2) var(--gutter-mobile) var(--space-3);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: auto;
    z-index: 60;
  }

  .nav[hidden] { display: none; }

  .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    flex-shrink: 0;
    padding: 0 12px;
    border-radius: var(--radius-btn);
    font-size: 1.0625rem;
  }

  .nav__link:hover { background: var(--color-bg-soft); }
  .nav__link[aria-current]::after { display: none; }

  .nav__link[aria-current]::before {
    content: "";
    order: 2;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-teal);
  }

  .nav__cta {
    margin-top: var(--space-2);
    min-height: 52px;
    flex-shrink: 0;
  }

  .nav .nav__editor {
    display: block;
    margin-top: var(--space-3);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
  }

  html { scroll-padding-top: calc(var(--header-h-mobile) + var(--space-2)); }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-block: var(--space-4) var(--space-5);
  }

  .hero__text { max-width: none; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }

  /* Sous 1024 px, le mockup mobile masquait une partie du mockup ordinateur :
     on reduit la largeur du laptop pour limiter le recouvrement. */
  .hero__visual .mockup-laptop { width: 80%; }
  .hero__phone { width: 20%; }

  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; max-width: 46ch; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .reassurance__list { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .reassurance__item:nth-child(odd) { border-left: 0; }

  .ecosystem { grid-template-columns: 1fr; }

  .ecosystem__points {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-block: var(--space-3);
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
  }

  .ecosystem__media { min-height: 200px; order: 3; }
  .ecosystem__media::after { background: linear-gradient(180deg, var(--color-navy) 0%, rgba(15, 42, 74, 0) 40%); }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout > .contact-aside,
  .contact-layout > .form { grid-area: auto; }
  .contact-aside { position: static; }
  .form { padding: var(--space-3); }
}

/* Mobile : une seule colonne */
@media (max-width: 639px) {
  :root { --section-y: var(--section-y-mobile); --gutter: var(--gutter-mobile); }

  .grid-4,
  .grid-3,
  .reassurance__list,
  .form__grid { grid-template-columns: 1fr; }

  .reassurance__item { border-left: 0; padding-inline: 0; }

  .hero__inner { padding-block: var(--space-3) var(--space-4); }
  /* M13 — le mockup portable, reduit a 350 px de large, devenait illisible :
     aucun de ses libelles n'etait dechiffrable. Sous 640 px on montre le
     mockup telephone, a une taille ou il se lit reellement. */
  .hero__visual .mockup-laptop { display: none; }
  .hero__phone {
    position: static;
    width: min(210px, 58%);
    margin-inline: auto;
  }

  /* Le corps de texte du mockup etait indexe sur la largeur de la fenetre
     (0,42 vw), soit 4 px sur un telephone : illisible. Il est ici indexe sur
     le mockup lui-meme, qui occupe une largeur connue. */
  .mockup-phone__screen { font-size: 9px; }

  /* Sur un ecran 9/19, quatre tuiles en 2x2 laissaient pres de 240 px de
     blanc. En liste d'une colonne, les quatre univers remplissent la hauteur,
     se lisent mieux, et l'ecran ressemble a une vraie vue d'application. */
  .mockup-phone__grid {
    flex: 1;
    grid-template-columns: 1fr;
    align-content: stretch;
    padding-bottom: 1em;
  }

  .mockup-phone__grid .mockup__tile {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: .9em;
    padding: 0 1em;
  }

  .mockup-phone__grid .mockup__tile b { font-size: 1em; }

  .btn { width: 100%; height: var(--btn-h-mobile); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .site-footer__top { grid-template-columns: 1fr; gap: var(--space-3); }
  .site-footer__nav { gap: var(--space-3); }

  .ecosystem__text { padding: var(--space-3); }
  .ecosystem__points { padding-inline: var(--space-3); flex-direction: column; }

  .form { padding: var(--space-2); }
  .form__footer { flex-direction: column; align-items: stretch; }
  .prose dl { grid-template-columns: 1fr; gap: 0 0; }
  .prose dt { margin-top: var(--space-1); }

  /* 16 px minimum sur mobile : évite le zoom automatique iOS. */
  .field input,
  .field select,
  .field textarea { font-size: 1rem; }
}
