/* ==========================================================================
   Briio : système de design du site de présentation. Mobile d'abord.
   Mêmes jetons que l'application (direction artistique Briio : encre, blanc, gris neutres, vert d'accent #54FF59).
   Règle : une classe par composant, pas de sélecteurs profonds.
   Points de rupture : 480, 640, 768, 960 (navigation complète), 1024 (mise en page ordinateur).
   Fichier gardé une heure en cache (.htaccess) : après une modification, changer la date de « site.css?v=… »
   dans le lien des huit pages, pour que personne ne voie une page récente avec l'ancienne feuille de style.
   ========================================================================== */

/* Instrument Sans, variable : graisses 400 à 700, largeurs 75 à 100 % (licence OFL, fonts/LICENCES.txt). */
@font-face {
  font-family: "Instrument Sans";
  src: url(fonts/instrument-sans-variable.woff2) format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ----------
   Mêmes noms et mêmes valeurs que l'application (src/app/globals.css), plus les couleurs posées sur l'encre (on-ink).
   Contrastes calculés avec la formule WCAG 2.2 (luminance relative), seuils AA :
   texte 4,5:1 (3:1 à partir de 24 px, ou 18,66 px en gras) ; bords de contrôle, icônes utiles et focus 3:1.
   « X:1 sur blanc / bg-soft / bg-soft-hover » = rapport avec #FFFFFF / #F3F3F4 / #E8E8EA. */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F3F3F4;         /* fonds discrets, sections grises, pastilles (1,10:1 sur blanc, décoratif) */
  --bg-soft-hover: #E8E8EA;   /* survol des fonds gris, scène des visuels posée sur une section grise */
  --ink: #0B0B0C;             /* encre : texte, icônes, boutons principaux, logo (19,67:1 sur blanc, 17,74:1 sur bg-soft,
                                 16,08:1 sur bg-soft-hover, 17,20:1 sur danger-soft ; texte blanc dessus 19,67:1) */
  --ink-hover: #2B2B2E;       /* survol d'une question, un peu plus clair (14,12:1 sur blanc) */
  --muted: #5A5A5F;           /* texte secondaire (6,86:1 sur blanc, 6,18:1 sur bg-soft, 5,60:1 sur bg-soft-hover ;
                                 texte blanc dessus 6,86:1 : bouton désactivé) */
  --placeholder: #6A6A70;     /* texte indicatif des champs (5,37:1 sur blanc) */
  --line: #DCDCDF;            /* bord des cartes, séparateurs : décoratif (1,37:1 sur blanc) */
  --line-strong: #808085;     /* contour de tout contrôle, interrupteur éteint, soulignement des liens
                                 (3,93:1 sur blanc, 3,54:1 sur bg-soft, 3,21:1 sur bg-soft-hover) */
  --focus: #0B0B0C;           /* anneau de focus 3 px, décalé de 2 px : 19,67:1 sur blanc, 17,74:1 sur bg-soft */
  --on-ink: #FFFFFF;          /* texte et anneau de focus posés sur l'encre (19,67:1) */
  --on-ink-text: #D4D4D8;     /* texte courant sur l'encre (13,31:1) */
  --on-ink-muted: #A1A1AA;    /* texte secondaire sur l'encre (7,68:1) */
  --ok: #187A45;              /* aperçu du catalogue : « Ouvert », « Disponible » (5,37:1 sur blanc) ; le catalogue d'un
                                 commerçant reste neutre, sans vert Briio */
  --danger: #B3261E;          /* erreur de champ : bord et repère (6,54:1 sur blanc, 5,72:1 sur danger-soft) */
  --danger-soft: #FDECEA;     /* fond du message d'erreur (texte encre 17,20:1) */
  /* Vert Briio : il ponctue, il ne remplace ni le gras, ni l'icône, ni le texte d'un état.
     Jamais de texte ni d'icône --accent sur blanc ou gris (1,33:1 sur blanc, 1,20:1 sur bg-soft) ;
     en texte, seulement sur l'encre (14,83:1). L'anneau de focus reste encre. */
  --accent: #54FF59;          /* fond du bouton principal, coches, pastilles, surlignage (texte encre dessus 14,83:1) */
  --accent-hover: #3EEB44;    /* survol du bouton principal (texte encre 12,34:1) */
  --accent-soft: #E9FFE9;     /* fond doux : élément actif, offre cochée (texte encre 18,69:1, muted 6,51:1,
                                 accent-texte 6,12:1) */
  --accent-texte: #0E6E15;    /* texte, icône ou filet verts sur fond clair (6,44:1 sur blanc, 5,81:1 sur bg-soft,
                                 5,26:1 sur bg-soft-hover) */

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Largeur des titres (h1, h2) : 100 % par défaut. Une variante condensée s'essaie ici seulement (87.5% ou 75%). */
  --titre-largeur: 100%;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-h1: clamp(2.375rem, 1.6rem + 3.4vw, 3.875rem);   /* 38 → 62 */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.625rem);   /* 28 → 42 */
  --fs-h3: 1.25rem;                                     /* 20 → 22 */
  --fs-body: 1.0625rem;                                 /* 17 → 18 */
  --fs-small: .9375rem;                                 /* 15 */
  --fs-mini: .875rem;                                   /* 14 : plus petite taille d'un texte utile */

  --container: 1160px;
  --gutter: 20px;
  --section-y: 64px;
  --header-h: 64px;
  /* Coins « carré doux », comme les points des i du logo. */
  --radius-btn: 14px;
  --radius-card: 24px;
  --shadow: 0 2px 4px rgb(11 11 12 / .04), 0 24px 56px -20px rgb(11 11 12 / .28);
  --shadow-menu: 0 12px 32px -12px rgb(11 11 12 / .22);
  color-scheme: light;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 96px; --fs-h3: 1.375rem; --fs-body: 1.125rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
/* Colonne flexible : le pied de page reste en bas sur les pages courtes (404). */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--fw-regular) var(--fs-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { max-width: 62ch; }
p, li, .faq-q { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: var(--fw-semibold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--ink); }   /* texte sélectionné : encre sur vert 14,83:1 */

/* Titres : Instrument Sans 700, approche resserrée, largeur réglée par --titre-largeur. */
h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); font-stretch: var(--titre-largeur); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); font-stretch: var(--titre-largeur); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }

/* ---------- Utilitaires ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section-soft { background: var(--bg-soft); }
.section-tight-top { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-more { margin-top: 20px; }
.lead { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }   /* adresses web, « États-Unis » : pas de coupure au trait d'union */
@media (min-width: 1024px) {
  .section-head { margin-bottom: 56px; }
  .lead { font-size: 1.1875rem; }
}

/* Icônes au trait : le trait est ajusté à la taille pour rester à 1,75 px. */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-md { width: 20px; height: 20px; stroke-width: 2.1; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2.4; }
.icon-xs { width: 12px; height: 12px; stroke-width: 2.6; }

/* Carré d'icône (encre sur fond gris, icône décorative à côté d'un texte). .icon-box-lg : 48 px. */
.icon-box { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); }
/* Posé directement sur un fond gris : carré blanc. */
.section-soft .feature-icon, .section-soft .point-icon, .drop-item:hover .icon-box { background: var(--bg); }
.icon-box-lg { width: 48px; height: 48px; border-radius: 14px; }

/* Lien d'accès rapide au contenu */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-weight: var(--fw-semibold); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Boutons et liens ----------
   .btn + .btn-primary (fond vert, texte encre) | .btn-secondary (contour encre 2 px) | .btn-inverse (sur fond encre)
   Tailles : .btn-sm (44 px), défaut (48 px), .btn-lg (56 px). .btn-block : pleine largeur.
   Contrastes : primaire encre sur accent 14,83:1, au survol sur accent-hover 12,34:1 (le libellé désigne le bouton,
   le fond vert n'a pas à contraster avec la page) ; secondaire encre sur blanc 19,67:1, sur bg-soft au survol 17,74:1,
   bord encre ; inverse encre sur blanc, au survol sur bg-soft-hover 16,08:1 ; désactivé blanc sur muted 6,86:1. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius-btn); background: none; font-size: 1rem; font-weight: var(--fw-semibold); line-height: 1.15; text-align: center; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-inverse { background: var(--on-ink); color: var(--ink); }
.btn-inverse:hover { background: var(--bg-soft-hover); }
.btn[disabled] { border-color: var(--muted); background: var(--muted); color: var(--on-ink); cursor: progress; }

.link { color: var(--ink); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .22em; }
.link:hover { text-decoration-color: currentColor; }
.link-standalone { display: inline-flex; align-items: center; min-height: 44px; }  /* lien seul (hors phrase) : zone tactile de 44 px */

/* ---------- Pastilles ----------
   .status : statut « pas encore ouvert » (fond vert doux, point encre : ce n'est pas un état « en ligne »).
   .tag : étiquette « Exemple ». .badge : mise en avant d'une offre (verte sur l'offre mise en avant).
   Contrastes : status encre sur accent-soft 18,69:1 ; badge encre sur bg-soft 17,74:1, sur accent 14,83:1 ;
   tag muted sur blanc 6,86:1. */
.status { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: 1.35; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: var(--fs-mini); font-weight: var(--fw-medium); line-height: 1.4; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: var(--fs-mini); font-weight: var(--fw-semibold); line-height: 1.35; white-space: nowrap; }
/* Sur téléphone, le statut tient souvent sur deux lignes : forme de carte arrondie, point aligné sur la première ligne. */
@media (max-width: 479.98px) {
  .status { align-items: flex-start; border-radius: 12px; }
  .status::before { margin-top: .45em; }
}

/* Pastilles de catégories (tuiles « Pour qui ») */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); font-size: var(--fs-mini); font-weight: var(--fw-medium); line-height: 1.45; }

/* Liste à coches. .check-list-2 : deux colonnes dès 480 px. .check-list-cols : deux puis trois colonnes.
   Coche encre dans une pastille verte (14,83:1) ; la pastille est décorative, la coche porte le sens.
   .check-list-muted (ce qui n'est pas prévu) : tiret muted, sans vert. */
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .icon { width: 22px; height: 22px; margin-top: .1em; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--ink); stroke-width: 3; }
.check-list-muted .icon { width: 20px; height: 20px; margin-top: .2em; padding: 0; border-radius: 0; background: none; color: var(--muted); stroke-width: 2.1; }
@media (min-width: 480px) {
  .check-list-2 { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}
@media (min-width: 640px) {
  .check-list-cols { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
}
@media (min-width: 1024px) {
  .check-list-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
/* Logo Briio (symbole #briio-logo du sprite, fill currentColor) : lien d'accueil de 44 px de haut au moins. */
.brand { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 26px; flex: none; fill: currentColor; }

.nav { display: none; margin-left: 20px; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 1rem; font-weight: var(--fw-medium); text-decoration: none; transition: background-color .15s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--bg-soft); }
/* Page en cours : fond vert doux, en gras et soulignée d'un filet vert foncé (accent-texte 6,12:1 sur accent-soft) :
   le fond seul ne suffit pas à la repérer. */
.nav-link[aria-current="page"] { background: var(--accent-soft); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--accent-texte); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav-chevron { color: var(--ink); transition: transform .2s; }
.nav-link[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* Menu déroulant « Pour qui » (bouton aria-expanded + panneau) */
.nav-drop { position: relative; }
.nav-drop-panel { position: absolute; top: calc(100% + 10px); left: -8px; width: 380px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); box-shadow: var(--shadow-menu); }
.drop-list { display: grid; gap: 2px; }
.drop-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.drop-item:hover { background: var(--bg-soft); }
/* Page en cours : fond vert doux, carré d'icône vert (icône encre 14,83:1), titre souligné. */
.drop-item[aria-current="page"] { background: var(--accent-soft); }
.drop-item[aria-current="page"] .icon-box { background: var(--accent); }
.drop-item[aria-current="page"] .drop-title { text-decoration: underline; text-decoration-color: var(--accent-texte); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.drop-title { display: block; font-weight: var(--fw-semibold); line-height: 1.3; }
.drop-text { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-mini); line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* Bouton d'inscription toujours visible : libellé court « S'inscrire » sous 480 px (un seul libellé à la fois, lu tel qu'affiché). */
.header-cta { white-space: nowrap; }
.header-cta-short { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); background: var(--bg); color: var(--ink); font-size: 1rem; font-weight: var(--fw-semibold); }
.menu-btn:hover { border-color: var(--ink); }
.menu-icon-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-close { display: block; }

/* Panneau mobile (sous l'en-tête, plein écran ; + 1 px : le filet bas de l'en-tête reste visible) */
.mobile-panel { position: fixed; top: calc(var(--header-h) + 1px); right: 0; bottom: 0; left: 0; z-index: 39; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 40px; background: var(--bg); }
.mobile-label { margin: 16px 0 4px; color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.mobile-list { margin-bottom: 8px; }
.mobile-list-main { margin-bottom: 24px; }
.mobile-link { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.125rem; font-weight: var(--fw-semibold); text-decoration: none; }
/* Page en cours : soulignée d'un filet vert foncé (accent-texte 6,44:1 sur blanc), carré d'icône vert s'il y en a un. */
.mobile-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent-texte); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.mobile-link[aria-current="page"] .icon-box { background: var(--accent); }
.mobile-note { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); }
html.is-menu-open { overflow: hidden; }

@media (max-width: 479.98px) {
  .header-bar { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-cta { padding: 10px 14px; }
  .header-cta-long { display: none; }
  .header-cta-short { display: inline; }
  .menu-btn { gap: 6px; padding: 0 12px; }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .menu-btn, .mobile-panel { display: none !important; }
}

/* ---------- Héros ---------- */
.hero { padding: 24px 0 var(--section-y); }
.hero-grid { display: grid; gap: 48px; }
.hero-title { margin-top: 18px; }
/* Mots clés du titre principal, surlignés comme au marqueur : bande verte sous le bas des lettres, texte encre
   (14,83:1 sur le vert, 19,67:1 sur le blanc). Décoratif : le titre se lit de la même façon sans.
   Coupé sur deux lignes, chaque morceau garde sa bande (box-decoration-break). Sur la carte encre : voir .cta-card. */
.surligne { padding-inline: .05em; background: linear-gradient(transparent 56%, var(--accent) 56%, var(--accent) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-lead { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.btn-hero { width: 100%; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: var(--fs-small); }
.hero-checks { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: var(--fw-medium); }
/* Téléphone : les atouts du héros sont repris juste en dessous dans la page ; on les masque pour garder la page courte. */
@media (max-width: 639.98px) {
  .hero-checks { display: none; }
}
@media (min-width: 480px) {
  .btn-hero { width: auto; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
  .hero-lead { font-size: 1.25rem; }
}

/* Prix mis en avant : montant en encre et en grand, unité et détail à côté. */
.price { margin-top: 24px; }
.price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-amount { color: var(--ink); font-size: 2.75rem; font-weight: var(--fw-bold); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-unit { font-size: 1.125rem; font-weight: var(--fw-semibold); }
.price-note { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }
/* Frais de mise en service sous le prix : couleur du texte (lisibles), plus petits que l'abonnement qui reste le chiffre principal. */
.price-fee { margin-top: 4px; font-size: var(--fs-small); max-width: 34em; }
.price-fee b, .plan-fee b { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 1024px) {
  .price-amount { font-size: 3.5rem; }
}

/* En-tête de page simple (tarifs, 404) */
.page-hero { padding: 24px 0 32px; }
.page-title { margin-top: 18px; font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); }
.page-hero-404 { padding-bottom: var(--section-y); }
@media (min-width: 1024px) {
  .page-hero { padding: 64px 0 56px; }
}

/* ---------- Aperçu du catalogue sur téléphone ----------
   .hero-visual > .segmented (onglets, facultatif) + .phone-stage > .tag.stage-tag + .phone > .phone-screen (écran)
   + .float-card (carte flottante). Écrans prêts à inclure : screen-restaurant, screen-epicerie, screen-boutique. */
.hero-visual { display: grid; gap: 16px; justify-items: center; min-width: 0; }
.segmented { display: flex; width: 100%; max-width: 400px; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-soft); }
/* Onglets : l'onglet choisi est plein (blanc sur encre 19,67:1), les autres en muted sur bg-soft (6,18:1),
   au survol encre sur bg-soft-hover (16,08:1). */
.segmented-btn { flex: 1 1 0; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: .9375rem; font-weight: var(--fw-semibold); white-space: nowrap; transition: background-color .15s, color .15s; }
.segmented-btn:hover { background: var(--bg-soft-hover); color: var(--ink); }
.segmented-btn[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }

/* Scène des visuels : gris clair sur fond blanc, gris plus marqué sur une section grise. */
.phone-stage { position: relative; display: grid; justify-items: center; width: 100%; max-width: 480px; padding: 52px 16px 40px; border-radius: 28px; background: var(--bg-soft); overflow: hidden; }
.section-soft .phone-stage { background: var(--bg-soft-hover); }
.stage-tag { position: absolute; top: 16px; left: 16px; }
.phone { position: relative; width: 100%; max-width: 296px; padding: 9px; border-radius: 46px; background: var(--ink); box-shadow: var(--shadow); }
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; z-index: 2; width: 82px; height: 22px; margin-left: -41px; border-radius: 999px; background: var(--ink); }
.phone-screen { height: 540px; overflow: hidden; border-radius: 37px; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.35; }
.phone-screen p { max-width: none; }
.phone-screen.is-entering { animation: screen-in .25s ease-out; }
@keyframes screen-in { from { opacity: 0; } }

.float-card { position: absolute; left: 12px; bottom: 40px; z-index: 3; display: flex; align-items: center; gap: 12px; max-width: 292px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); font-size: .875rem; line-height: 1.3; }
.float-card b { display: block; font-weight: var(--fw-semibold); }
.float-card .icon-box { background: var(--accent); }   /* fonction mise en avant (import, disponibilité) : icône encre sur vert 14,83:1 */
.float-card-sub { display: block; color: var(--muted); font-size: var(--fs-mini); }
.hero-visual-note { color: var(--muted); font-size: var(--fs-small); text-align: center; }
.hero-visual-note b { color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 480px) {
  .float-card { left: 20px; }
}
/* Héros : barre basse d'application sous la carte flottante. La liste du téléphone s'arrête proprement au-dessus,
   rien ne dépasse à côté de la carte (le bas de l'écran est à 49 px du bas de la scène : 40 px de marge + 9 px de bord). */
.hero .phone-screen { position: relative; }
.hero .phone-screen::before { content: ""; position: absolute; z-index: 1; right: 0; bottom: 88px; left: 0; height: 28px; background: linear-gradient(rgb(255 255 255 / 0), var(--bg)); }   /* la liste glisse sous la barre */
.hero .phone-screen::after { content: ""; position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; height: 88px; border-top: 1px solid var(--line); background: var(--bg); }
/* Carte flottante hors héros (visuel de section) : à plat, l'ombre est réservée au téléphone et au héros. */
.float-card-flat { box-shadow: none; border: 1px solid var(--line); }

/* Contenu de l'écran (interface d'application, échelle réduite) */
.app-url { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 46px 14px 0; padding: 7px 10px; border-radius: 10px; background: var(--bg-soft); color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.app-head { padding: 14px 16px 12px; }
.app-name { font-size: 19px; font-weight: var(--fw-bold); line-height: 1.2; letter-spacing: -.015em; }
.app-meta { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.app-open { color: var(--ok); font-weight: var(--fw-semibold); }
.app-open::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.app-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.app-action { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; border-radius: 12px; background: var(--bg-soft); font-size: 11px; font-weight: var(--fw-semibold); }
.app-action:first-child { background: var(--ink); color: var(--on-ink); }
.app-chips { display: flex; gap: 6px; padding: 2px 16px 12px; overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--line); }
.app-chip { padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); font-size: 12px; font-weight: var(--fw-semibold); }
.app-chip.is-active { background: var(--ink); color: var(--on-ink); }
.app-group { padding: 12px 16px 2px; font-size: 12px; font-weight: var(--fw-bold); }
.app-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; }
.app-item + .app-item { border-top: 1px solid var(--line); }
.app-item-name { display: block; font-size: 13px; font-weight: var(--fw-semibold); line-height: 1.25; }
.app-item-detail { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.app-item-status { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: var(--fw-semibold); }
.app-price { font-size: 14px; font-weight: var(--fw-bold); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-price small { display: block; color: var(--muted); font-size: 10.5px; font-weight: var(--fw-medium); }
.app-item.is-out .app-item-name, .app-item.is-out .app-price, .app-item.is-out .app-item-status { color: var(--muted); }
.app-item.is-out .app-price { text-decoration: line-through; }
.app-item.is-out .thumb { opacity: .5; }
.app-foot { padding: 10px 16px 16px; color: var(--muted); font-size: 10.5px; }

/* Vignettes produit : forme colorée + icône (aperçu uniquement) */
.thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.thumb-sun { background: #FCE9CC; color: #A55A12; }
.thumb-sand { background: #F1E7DA; color: #7E5F3B; }
.thumb-sage { background: #DDEEE2; color: #2D6E47; }
.thumb-sky { background: #E1E9F7; color: #3A5A9C; }
.thumb-rose { background: #FAE1DC; color: #A8452F; }

/* ---------- Étapes ----------
   ol.steps > li.step > .mini (visuel d'interface) + .step-head (.step-num + h3) + .step-text */
.steps { display: grid; gap: 16px; }
.step { display: flex; flex-direction: column; padding: 16px 16px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); }
.step-head { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-inline: 4px; }
.step-num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 1rem; font-weight: var(--fw-bold); }   /* encre sur vert 14,83:1 */
.step-text { margin-top: 8px; padding-inline: 4px; color: var(--muted); }
/* 768 à 1023 px : visuel à gauche, texte à droite. 1024 px et plus : trois colonnes. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .step { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 28px; align-items: center; padding: 16px 24px 16px 16px; }
  .step-visual { grid-row: 1 / span 2; }
  .step-head { align-self: end; margin-top: 0; }
  .step-text { align-self: start; }
}
/* Téléphone : liste numérotée compacte, sans les petits visuels (le téléphone du héros montre déjà l'interface). */
@media (max-width: 639.98px) {
  .steps { gap: 12px; }
  .step { padding: 18px 18px 20px; }
  .step > .step-visual { display: none; }
  .step-head { margin-top: 0; padding-inline: 0; }
  .step-text { padding-inline: 0; font-size: 1rem; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Petits visuels d'interface (.mini) */
.mini { display: grid; place-items: center; height: 184px; padding: 16px; border-radius: 14px; background: var(--bg-soft); overflow: hidden; }
.mini-card { width: 100%; max-width: 280px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 12.5px; line-height: 1.35; }
.mini-card p { max-width: none; }
.mini-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--muted); font-weight: var(--fw-semibold); }
.mini-review li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 0; }
.mini-review li + li { border-top: 1px solid var(--line); }
.mini-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-semibold); }
.mini-price { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* « Lu » (réussi) : vert doux, texte vert foncé 6,12:1 ; « À vérifier » : encre, texte blanc 19,67:1. */
.mini-state { padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-texte); font-size: 11px; font-weight: var(--fw-semibold); white-space: nowrap; }
.mini-state-check { background: var(--ink); color: var(--on-ink); }
/* Étape 1 : vignette de la photo (feuille de prix cadrée) et import d'un tableur. */
.mini-shot { display: grid; place-items: center; height: 70px; border-radius: 10px; background: var(--bg-soft); }
.mini-sheet { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; width: 92px; padding: 8px 10px; border-radius: 6px; background: var(--bg); outline: 2px solid var(--ink); outline-offset: 4px; }
.mini-import { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: var(--fw-semibold); }
.mini-bar { display: block; height: 5px; border-radius: 3px; background: #C8C8CC; }
.mini-bar-70 { width: 46px; }
.mini-bar-65 { width: 40px; }
.mini-bar-55 { width: 34px; }
.mini-bar-45 { width: 28px; }
.mini-bar-price { width: 14px; background: var(--ink); }
.mini-url { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 8px; border-radius: 8px; background: var(--bg-soft); color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.mini-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px 8px; border-bottom: 1px solid var(--line); font-weight: var(--fw-semibold); }
/* Interrupteur (visuel, côté commerçant) : allumé en vert avec un bouton encre (14,83:1), éteint en line-strong
   (3,93:1 sur blanc) avec un bouton blanc. La position du bouton dit aussi l'état. */
.switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.mini-qr-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; color: var(--muted); font-weight: var(--fw-semibold); }
.mini-qr { width: 44px; height: 44px; flex: none; fill: var(--ink); }

/* ---------- Tuiles « Pour qui » ----------
   ul.tiles > li.tile : .icon-box + h3.tile-title > a.tile-link (tout le bloc est cliquable) + .tile-text + .chips + .tile-more */
.tiles { display: grid; gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); transition: border-color .15s; }
.tile:hover { border-color: var(--ink); }
.tile:hover .icon-box { background: var(--accent); }   /* survol : carré d'icône vert (icône encre 14,83:1), en plus du bord encre */
.tile-title { margin-top: 4px; }
.tile-link { color: var(--ink); text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-card); }
.tile-link:focus-visible { outline: none; }
.tile-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile-text { color: var(--muted); }
.tile-more { margin-top: auto; padding-top: 8px; font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .22em; }
.tile:hover .tile-more { text-decoration-color: currentColor; }
.tile-chevron { display: none; }
/* Téléphone : une ligne compacte par cible (icône, titre, texte, chevron), comme une liste d'application. */
@media (max-width: 639.98px) {
  .tiles { gap: 12px; }
  .tile { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 2px 14px; align-items: center; padding: 16px; }
  .tile .icon-box { grid-row: 1 / span 2; }
  .tile-title { grid-column: 2; margin-top: 0; font-size: 1.125rem; }
  .tile-text { grid-column: 2; font-size: var(--fs-small); line-height: 1.45; }
  .tile .chips, .tile-more { display: none; }
  .tile-chevron { display: block; grid-column: 3; grid-row: 1 / span 2; color: var(--muted); transform: rotate(-90deg); }
}
@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- Ce que vous obtenez ----------
   ul.features > li.feature : .icon-box + h3.feature-title + p.feature-text */
.features { display: grid; gap: 28px; }
.feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
.feature-icon { grid-row: 1 / span 2; }
.feature-title { margin-top: 8px; font-size: 1.125rem; }
.feature-text { margin-top: 4px; color: var(--muted); font-size: 1rem; }
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .feature { display: block; }
  .feature-title { margin-top: 16px; }
  .feature-text { margin-top: 6px; }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
}

/* Deux colonnes texte + visuel, pour les sections propres à une page (.split > div + div). */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- Tarifs ----------
   .pricing > article.plan (.plan-featured) x 2 + .plan-includes, puis .offer.
   Mobile : empilé. 768 px : deux cartes, inclus en dessous. 1024 px : trois colonnes. */
.pricing { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); }
/* Offre mise en avant : bord encre, bandeau vert en haut de la carte (décoratif), pastille verte (encre 14,83:1). */
.plan-featured { border: 2px solid var(--ink); box-shadow: inset 0 8px 0 var(--accent); }
.plan-featured .badge { background: var(--accent); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.plan-name { font-size: 1.25rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 20px; }
.plan-amount { color: var(--ink); font-size: 3rem; font-weight: var(--fw-bold); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-unit { font-size: 1.0625rem; font-weight: var(--fw-semibold); }
.plan-sub { margin-top: 10px; color: var(--muted); font-size: var(--fs-small); }
.plan-fee { margin-top: 8px; margin-bottom: 24px; font-size: var(--fs-small); }   /* frais de mise en service, sous le prix */
.plan .btn { margin-top: auto; }
.plan-includes { padding: 24px; border-radius: var(--radius-card); background: var(--bg-soft); }
.section-soft .plan-includes { background: var(--bg); border: 1px solid var(--line); }
.plan-includes-title { margin-bottom: 16px; font-size: 1.125rem; }
.check-list-includes { font-size: 1rem; }
.offer { display: grid; gap: 6px; margin-top: 16px; padding: 20px 24px; border-radius: var(--radius-card); background: var(--bg-soft); }
.section-soft .offer { background: var(--bg); border: 1px solid var(--line); }
.offer-title { font-size: 1.125rem; font-weight: var(--fw-bold); }
.offer-small { color: var(--muted); font-size: var(--fs-small); }
/* Téléphone : cartes plus compactes ; sur les pages de présentation (.pricing-section), la liste « Inclus » est masquée,
   la phrase d'introduction la résume. La page /tarifs garde tout. */
@media (max-width: 767.98px) {
  .plan { padding: 24px 20px 20px; }
  .plan-price { margin-top: 14px; }
  .plan-amount { font-size: 2.75rem; }
  .plan-fee { margin-bottom: 20px; }
  .offer { padding: 18px 20px; }
  .pricing-section .plan-includes { display: none; }
}
@media (min-width: 768px) {
  .pricing { grid-template-columns: 1fr 1fr; gap: 20px; }
  .plan { padding: 32px; }
  .plan-amount { font-size: 3.5rem; }
  .plan-includes { grid-column: 1 / -1; padding: 28px 32px; }
  .check-list-includes { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .offer { margin-top: 20px; padding: 24px 32px; }
}
@media (min-width: 1024px) {
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .plan-includes { grid-column: auto; }
  .check-list-includes { grid-template-columns: 1fr; }
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
  .offer-small { grid-column: 2; grid-row: 1 / span 2; }
}

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.45; }
.compare th, .compare td { padding: 14px 12px; text-align: left; vertical-align: top; }
.compare thead th { font-size: 1rem; font-weight: var(--fw-bold); }
.compare tbody th { width: 34%; color: var(--muted); font-weight: var(--fw-medium); }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare strong { color: var(--ink); font-weight: var(--fw-bold); }
.table-note { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); }   /* mention art. 293 B du CGI sous le tableau */
/* Téléphone : chaque ligne devient un intitulé pleine largeur suivi des deux valeurs côte à côte. */
@media (max-width: 639.98px) {
  .compare thead tr, .compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare thead td { display: none; }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0; }
}
@media (min-width: 768px) {
  .compare { font-size: 1rem; }
  .compare th, .compare td { padding: 16px 24px; }
}

/* Périmètre : ce qui est compris / ce qui n'est pas prévu */
.scope { display: grid; gap: 16px; }
.scope-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); }
.scope-card-muted { background: var(--bg-soft); border-color: transparent; }
.scope-title { margin-bottom: 16px; font-size: 1.125rem; }
@media (min-width: 768px) {
  .scope { grid-template-columns: 1fr 1fr; gap: 20px; }
  .scope-card { padding: 32px; }
}

/* ---------- Questions (accordéon details/summary) ----------
   .faq-layout > .faq-intro + .faq > details.faq-item > summary.faq-q + p.faq-a */
.faq-layout { display: grid; gap: 32px; }
.faq { padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 1.0625rem; font-weight: var(--fw-semibold); line-height: 1.35; list-style: none; cursor: pointer; }
.faq-q::-webkit-details-marker { display: none; }
/* Repère « + » décoratif : texte de remplacement vide (« / "" ») pour qu'il ne soit pas lu ; l'état ouvert ou fermé
   est annoncé par details. Navigateur ancien : la seconde déclaration est ignorée, la première reste. */
.faq-q::after { content: "+"; content: "+" / ""; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-soft); color: var(--ink); font-size: 1.375rem; font-weight: var(--fw-medium); line-height: 1; transition: background-color .15s; }
/* Question ouverte : « − » sur un carré vert (encre 14,83:1) ; la réponse affichée dit aussi l'état. */
.faq-item[open] > .faq-q::after { content: "\2212"; content: "\2212" / ""; background: var(--accent); }
.faq-q:hover { color: var(--ink-hover); }
.faq-a { padding-bottom: 20px; color: var(--muted); }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 64px; align-items: start; }
  .faq { padding: 0 28px; }
  .faq-q { font-size: 1.125rem; }
}

/* ---------- Appel final ----------
   Carte encre : titre blanc 19,67:1, mot clé en vert 14,83:1 (sur l'encre seulement), texte on-ink-text 13,31:1,
   note on-ink-muted 7,68:1, bouton principal vert (bord vert sur encre 14,83:1), focus blanc 19,67:1. */
.cta-card { display: grid; gap: 28px; padding: 40px 24px; border-radius: var(--radius-card); background: var(--ink); color: var(--on-ink); }
.cta-title { color: var(--on-ink); }
.cta-card .surligne { padding: 0; background: none; color: var(--accent); }
.cta-text { margin-top: 14px; color: var(--on-ink-text); font-size: 1.0625rem; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-note { color: var(--on-ink-muted); font-size: var(--fs-small); }
.cta-price { color: var(--on-ink); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.btn-cta { width: 100%; }
@media (min-width: 480px) {
  .btn-cta { width: auto; }
}
.cta-card :focus-visible { outline-color: var(--on-ink); }
@media (min-width: 768px) {
  .cta-card { padding: 56px; }
}
@media (min-width: 1024px) {
  .cta-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 64px; }
  .cta-actions { justify-items: end; text-align: right; }
}

/* ---------- Pied de page ---------- */
.site-footer { padding: 40px 0 24px; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 28px; }
.footer-text { margin-top: 12px; max-width: 38ch; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.footer-title { font-size: var(--fs-small); font-weight: var(--fw-semibold); font-stretch: 100%; letter-spacing: 0; line-height: 1.4; }
.footer-links { margin-top: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }   /* cible tactile de 44 px */
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-noscript { margin-top: 16px; color: var(--ink); font-weight: var(--fw-semibold); }
@media (min-width: 640px) {
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer { padding-top: 56px; }
  .footer-bottom { margin-top: 40px; padding-top: 24px; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; }
}

/* ---------- Fenêtre d'inscription ---------- */
.dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--bg); color: var(--ink); overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow); }
.dialog::backdrop { background: rgb(11 11 12 / .55); }
.dialog.sans-modal { position: fixed; inset: 12px; z-index: 50; }
.dialog-body { position: relative; padding: 24px 20px; }
/* Bouton Fermer collant : il reste à 12 px du haut et de la droite quand le formulaire défile (téléphone, iPhone sans
   touche Échap). Marges négatives : à 12 px des bords, sans hauteur dans le flux (44 - 12 - 32 = 0).
   Liseré blanc : le bouton se détache des champs qui passent dessous. */
.dialog-close { position: sticky; top: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -12px -8px -32px auto; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); box-shadow: 0 0 0 3px var(--bg); }
.dialog-close:hover { background: var(--bg-soft-hover); }
.dialog-status { margin-right: 52px; }
.dialog-title { margin-top: 16px; padding-right: 40px; font-size: 1.625rem; line-height: 1.15; }
.dialog-title:focus { outline: none; }
.dialog-text { margin-top: 10px; color: var(--muted); font-size: var(--fs-small); }
.dialog-offer { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); font-size: var(--fs-small); }
.dialog-total { display: block; margin-top: 4px; }   /* total frais compris de l'offre cochée (site.js) */
.dialog-mention { display: block; margin-top: 4px; color: var(--muted); }   /* mention art. 293 B du CGI */
.dialog-submit { margin-top: 20px; }
.dialog .form-note + .form-note { margin-top: 6px; }
.success-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--ink); }   /* coche encre sur vert 14,83:1, à côté du titre « Merci » */
html.is-locked { overflow: hidden; }
@media (max-width: 479.98px) {
  .dialog-status { font-size: .875rem; }
  .dialog-title { margin-top: 14px; font-size: 1.375rem; }
  .dialog-offer { margin-top: 12px; padding: 10px 14px; }
}
@media (min-width: 480px) {
  .dialog-body { padding: 32px; }
  .dialog-close { margin: -20px -20px -24px auto; }   /* toujours à 12 px des bords, sans hauteur dans le flux */
}

/* Choix de l'offre (boutons radio).
   Deux colonnes seulement si chacune a 150 px (fenêtre de 390 px et plus), sinon l'une sous l'autre : à 320-375 px,
   deux colonnes coupaient l'offre annuelle à droite. Le nom et le prix se suivent sur une ligne quand ils tiennent. */
.plan-choice { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-top: 6px; }
.plan-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); cursor: pointer; transition: border-color .15s; }
.plan-option:hover { border-color: var(--ink); }
/* Offre cochée : bouton radio coché, bord encre doublé et fond vert doux (texte encre 18,69:1, muted 6,51:1). */
.plan-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-soft); }
.plan-option input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.plan-option-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; line-height: 1.3; }
.plan-option-name { font-weight: var(--fw-semibold); }
.plan-option-price { font-size: .9375rem; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-option-note { flex-basis: 100%; color: var(--muted); font-size: var(--fs-mini); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; margin-top: 16px; }
.field-label { padding: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); }
/* Champ : bord line-strong 3,93:1, texte encre 19,67:1, indication placeholder 5,37:1, erreur bord danger 6,54:1 (doublé). */
.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-btn); background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.3; }
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: var(--ink); }
.input:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 2px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 20px; padding: 4px 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.consent input[aria-invalid="true"]:focus-visible { outline: 3px solid var(--focus); }
.consent a { color: var(--ink); font-weight: var(--fw-semibold); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 14px; padding: 12px 14px 12px 16px; border-radius: 12px; background: var(--danger-soft); box-shadow: inset 4px 0 0 var(--danger); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.form-note { margin-top: 12px; color: var(--muted); font-size: var(--fs-mini); }

/* ---------- Pages légales ----------
   article.legal > .container-narrow > h1.legal-title + .legal-intro + .prose (h2, h3, p, ul, dl.facts) */
.legal { padding: 40px 0 var(--section-y); }
.legal-title { font-size: clamp(2.125rem, 1.6rem + 2vw, 3rem); }
.legal-intro { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.prose h2 { margin-top: 48px; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.prose h3 { margin-top: 28px; font-size: 1.125rem; }
.prose p, .prose ul, .prose dl { margin-top: 12px; }
.prose ul { padding-left: 1.25em; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--ink); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.prose code { padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); font: inherit; font-size: .95em; font-weight: var(--fw-semibold); }
.facts { padding: 4px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.facts div { display: grid; gap: 2px; padding: 14px 0; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: var(--fs-small); }
.facts dd { font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.summary-box { margin-top: 32px; padding: 24px; border-radius: var(--radius-card); background: var(--bg-soft); }
.summary-title { margin-bottom: 16px; font-size: 1.25rem; }
.legal-updated { margin-top: 48px; color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 640px) {
  .facts div { grid-template-columns: 14em 1fr; gap: 16px; }
}
@media (min-width: 1024px) {
  .legal { padding-top: 72px; }
}

/* Liens vers les autres pages cibles (fin de la section « étapes » des pages cibles) */
.other-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; max-width: none; margin-top: 28px; color: var(--muted); }

/* Liste de liens (404) */
.list-title { margin-top: 48px; font-size: 1.125rem; }
.link-list { margin-top: 8px; }

/* ---------- Mouvement ----------
   Défilement doux vers les ancres de la page (le haut de la section s'arrête sous l'en-tête collant : scroll-padding-top
   sur html). La classe html.defilement-doux est posée par site.js après le chargement : l'arrivée sur une ancre depuis
   une autre page (/#questions) se fait d'un coup, sans animation au chargement ; sans JavaScript, les ancres marchent
   sans animation.
   Apparition des blocs au défilement : classes posées par site.js (.reveal, .is-visible, .reveal-d1 à d3) sur les blocs
   qui étaient sous l'écran après le chargement. Masqués seulement sous html.js-reveal, à l'écran, si le mouvement
   n'est pas réduit : sans JavaScript et à l'impression, tout est visible. Une animation, pas une transition,
   pour ne pas remplacer les transitions propres aux blocs (survol des tuiles). */
@media (prefers-reduced-motion: no-preference) {
  html.defilement-doux { scroll-behavior: smooth; }
  .dialog[open] { animation: dialog-in .2s ease-out; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }
@media screen and (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(12px); }
  .js-reveal .reveal.is-visible { animation: reveal 450ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms) backwards; }
  .reveal-d1 { --reveal-delay: 70ms; }
  .reveal-d2 { --reveal-delay: 140ms; }
  .reveal-d3 { --reveal-delay: 210ms; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Page restaurant (src/pages/restaurant.html). Préfixe .resto-.
   Seulement ce que les composants communs ne font pas : l'écran « Ma carte » (côté restaurateur)
   dans un téléphone recadré par le bas, et l'espacement de la liste à coches de la section.
   ========================================================================== */

/* Visuel : la scène (.phone-stage) coupe le bas du téléphone. */
.resto-figure { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.resto-stage { padding-bottom: 0; }
.resto-phone { margin-bottom: -64px; }
.resto-caption { max-width: 40ch; color: var(--muted); font-size: var(--fs-small); text-align: center; }

/* Écran « Ma carte » (interface d'application, échelle réduite comme .app-*) */
.resto-admin { padding: 50px 14px 0; }
.resto-admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 12px; }
.resto-admin-title { font-size: 19px; font-weight: var(--fw-bold); line-height: 1.2; letter-spacing: -.015em; }
.resto-admin-live { font-size: 11.5px; }
/* Pastille « En ligne » de l'espace commerçant : encre sur vert 14,83:1, avec son point (pas seulement la couleur). */
.resto-admin-live .app-open { padding: 3px 9px 3px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.resto-admin-card { padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.resto-admin-label { color: var(--muted); font-size: 11px; font-weight: var(--fw-semibold); }
.resto-admin-field { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 9px 10px; border: 1.5px solid var(--ink); border-radius: 10px; font-size: 13px; font-weight: var(--fw-semibold); }
.resto-admin-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.resto-allergens { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.resto-allergen { padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; background: var(--bg-soft-hover); color: var(--ink); font-size: 11px; font-weight: var(--fw-semibold); }
.resto-allergen-add { border: 1px dashed var(--line-strong); background: none; color: var(--muted); }
.resto-admin-group { margin-top: 16px; padding: 0 2px; }
.resto-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; }
.resto-admin-row + .resto-admin-row { border-top: 1px solid var(--line); }
.resto-admin-name { display: block; font-size: 13px; font-weight: var(--fw-semibold); line-height: 1.25; }
.resto-admin-sub { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.resto-admin-row.is-off .resto-admin-sub { color: var(--ink); font-weight: var(--fw-semibold); }
.resto-switch-off { background: var(--line-strong); }
.resto-switch-off::after { right: auto; left: 2px; background: var(--bg); }

/* ==========================================================================
   Pages cibles : alimentation et boutique (src/pages/alimentation.html, src/pages/boutique.html).
   Seulement ce que les composants communs ne font pas : liste de points à côté d'un visuel,
   carte d'interface d'exemple posée dans .phone-stage (disponibilités du jour, fiche produit),
   et grille des métiers avec un prix d'exemple.
   ========================================================================== */

/* Points propres à une cible, en une colonne à côté d'un visuel (.split).
   ul.points > li.point : .icon-box.point-icon + h3.point-title + p.point-text */
.points { display: grid; gap: 24px; }
.point { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
.point-icon { grid-row: 1 / span 2; }
.point-title { margin-top: 7px; font-size: 1.125rem; }
.point-text { margin-top: 4px; color: var(--muted); font-size: 1rem; }
@media (min-width: 1024px) {
  .points { gap: 28px; }
}

/* Carte d'interface d'exemple dans .phone-stage, sans téléphone (pas d'ombre : réservée au téléphone).
   .sheet > .sheet-head + ul > li.sheet-row (.thumb + texte + .switch) | ou fiche produit (.product-*) */
/* Téléphone : la scène d'un visuel de section est moins haute que celle du héros. */
@media (max-width: 639.98px) {
  .split .phone-stage { padding-top: 48px; padding-bottom: 24px; }
  .sheet .product-media { height: 124px; }
}
.sheet { width: 100%; max-width: 360px; padding: 14px 16px 16px; border-radius: var(--radius-card); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.35; }
.sheet p { max-width: none; }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 2px 2px 12px; border-bottom: 1px solid var(--line); }
.sheet-title { font-size: 16px; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.sheet-sub { color: var(--muted); font-size: 12.5px; }
.sheet-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 2px; }
.sheet-row + .sheet-row { border-top: 1px solid var(--line); }
.sheet-name { display: block; font-weight: var(--fw-semibold); }
.sheet-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sheet-state { display: block; margin-top: 2px; color: var(--ok); font-size: 12.5px; font-weight: var(--fw-semibold); }
.sheet-state-off { color: var(--muted); }
.switch-off { background: var(--line-strong); }
.switch-off::after { right: auto; left: 2px; background: var(--bg); }
.thumb-off { opacity: .5; }

/* Fiche produit d'exemple (page boutique) */
.product-media { position: relative; display: grid; place-items: center; height: 156px; margin-top: 12px; border-radius: 14px; }
.product-badge { position: absolute; top: 10px; left: 10px; }
.icon-xl { width: 64px; height: 64px; stroke-width: .66; }
.product-cat { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 2px; }
.product-name { font-size: 17px; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.product-price { font-size: 17px; font-weight: var(--fw-bold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-desc { margin-top: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sheet .app-actions { margin-top: 12px; }

/* Métiers d'une cible : ul.trades > li.trade (.trade-head > .icon-box + h3.trade-title) + .chips + p.trade-example */
.trades { display: grid; gap: 16px; }
.trade { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg); }
.trade-head { display: flex; align-items: center; gap: 14px; }
.trade-title { font-size: 1.125rem; }
.trade-example { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }
.trade-price { margin-left: auto; color: var(--ink); font-weight: var(--fw-bold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trade-unit { color: var(--muted); font-weight: var(--fw-medium); }
/* Téléphone : rangée qui défile à l'horizontale (la carte suivante dépasse pour montrer qu'il y en a d'autres). */
@media (max-width: 639.98px) {
  .trades { display: flex; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .trade { flex: 0 0 80%; max-width: 300px; scroll-snap-align: start; }
}
@media (min-width: 640px) {
  .trades { grid-template-columns: 1fr 1fr; gap: 20px; }
  .trade { gap: 16px; padding: 24px; }
}
@media (min-width: 1024px) {
  .trades { grid-template-columns: repeat(3, 1fr); }
}
