/* Site vitrine, direction « Registre » (20/11/2026) : la même apparence que l'application.
   Maquette validée par Mikael le 20/11/2026 (Claude Design, « Buraliste, page d'accueil publique ») : une page par
   onglet du haut, crème de BRITED, texte chocolat, Newsreader pour les titres, Instrument Sans pour le texte, et le
   l'étincelle rouge de la marque comme seule note de couleur.
   Polices hébergées par le site (vitrine/public/polices, licence SIL OFL 1.1) : aucun appel extérieur.
   Aucun style dans les pages (CSP style-src 'self') : tout est ici.
   Contrastes (WCAG 2.2) sur le fond #F2ECDF / les panneaux #F9F6EF : texte #2E241C 12,9 / 14,1:1 ;
   secondaire #5B5046 6,7 / 7,3:1 ; discret #6F6255 5,0 / 5,5:1 ; bord des champs #8C7D6D 3,4:1 sur blanc.

   Finitions « à la manière d'Apple » (skill apple-design, 20/11/2026, demande de Mikael), sans toucher à l'identité :
   réaction dès l'appui, survol réservé aux souris, tailles de texte en rem (elles suivent le réglage de taille du
   navigateur), interlettrage selon la taille, trait de l'onglet actif qui glisse d'une page à l'autre, questions qui
   s'ouvrent en douceur, cibles de 44 px au doigt, contraste renforcé sur demande, mouvement réduit respecté.
   Écartés exprès (style validé) : barres translucides, police système, rebonds. */

/* --- Polices ------------------------------------------------------------------------------------------------------ */
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/polices/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/polices/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader'; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url('/polices/newsreader-italique-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Jetons ------------------------------------------------------------------------------------------------------- */
:root {
  --fond: #F2ECDF;            /* crème BRITED, comme le fond de l'application */
  --feuille: #F9F6EF;         /* panneaux et bandes */
  --carte-claire: #FBF9F4;
  --encre: #2E241C;           /* chocolat : texte et boutons */
  --encre-survol: #4E3F31;
  --lien: #4E3F31;
  --texte-2: #5B5046;
  --discret: #6F6255;
  --trait: #D9CFBE;
  --trait-doux: #DDD2BF;
  --trait-ligne: #E9E1D2;
  --bord-carte: #CBBFAB;
  --bord-champ: #8C7D6D;
  --focus: #6E5A47;
  --losange: #E3241B;         /* l'étincelle de la marque (rouge de l'enseigne) */
  --pastille: #E5DCCB;
  --ok: #2F6B3A; --ok-fond: #E8F1E8;
  --erreur: #A1281A; --erreur-fond: #FBEAE7;
  --a-completer: #7A5300; --a-completer-fond: #FAF0DC;
  --pied-texte: #D9CFBE; --pied-trait: #4A3D32; --pied-discret: #C4B8A8; --pied-accent: #D8C3A5;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --largeur: 1200px;
  --gouttiere: 32px;
  /* Ressort amorti sans rebond (amortissement 1,0, réponse 0,35 s : le réglage par défaut d'Apple), échantillonné pour
     CSS. Il part vite et se pose sans à-coup ; une transition CSS repart de la valeur affichée si on l'interrompt. */
  --ressort: linear(0, 0.055, 0.173, 0.309, 0.441, 0.558, 0.656, 0.736, 0.8, 0.849, 0.887, 0.916, 0.938, 0.955, 0.967, 0.976, 0.982, 0.987, 0.991, 0.993, 0.995, 0.997, 0.998, 0.998, 1);
  --duree-ressort: 0.5s;
  --hauteur-enseigne: 96px;   /* pour qu'une ancre (#donnees…) ne finisse pas sous l'en-tête collant */
  color-scheme: light;
}
@media (max-width: 1079px) { :root { --hauteur-enseigne: 72px; } }   /* en dessous, une barre de 60 px et le menu */
@media (max-width: 640px) { :root { --gouttiere: 16px; } }

/* --- Base --------------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hauteur-enseigne); }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--lien); text-underline-offset: 2px; }
/* Au doigt : pas de flash gris du navigateur (chaque élément a sa propre réaction à l'appui) et pas d'attente de
   double appui avant le clic. */
a, button, summary, input, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* Le survol n'existe qu'à la souris : sur téléphone, il resterait collé après un appui. */
@media (hover: hover) { a:hover { color: var(--encre); } }
a:active { opacity: 0.7; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.cadre { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: -10000px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: 4px; background: var(--encre); color: var(--feuille); }
.evitement:focus { left: 16px; }
.a-completer { display: inline; padding: 1px 7px; border-radius: 3px; background: var(--a-completer-fond); color: var(--a-completer); font-size: 0.82em; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* --- Boutons ------------------------------------------------------------------------------------------------------ */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--encre); border-radius: 4px; font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.bouton-plein { background: var(--encre); color: var(--feuille); }
.bouton-trait { background: transparent; color: var(--encre); }
@media (hover: hover) {
  .bouton-plein:hover { background: var(--encre-survol); border-color: var(--encre-survol); color: var(--feuille); }
  .bouton-trait:hover { background: rgba(46, 36, 28, 0.06); color: var(--encre); }
}
.bouton-petit { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
/* Réaction dès l'appui, sans attendre qu'on relâche : le bouton s'enfonce un peu et fonce. Il s'enfonce en 80 ms et
   revient avec le ressort. */
.bouton:active { opacity: 1; }
.bouton-plein:active { background: var(--encre-survol); border-color: var(--encre-survol); }
.bouton-trait:active { background: rgba(46, 36, 28, 0.10); }
@media (prefers-reduced-motion: no-preference) {
  .bouton { transition: transform var(--duree-ressort) var(--ressort); }
  .bouton:active:not([disabled]) { transform: scale(0.97); transition-duration: 80ms; transition-timing-function: ease-out; }
}
.bouton[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- En-tête : le nom, les onglets, se connecter ------------------------------------------------------------------- */
/* Façon BRITED (demande de Mikael du 21/11/2026, d'après le site BRITED Patrimoine) : barre translucide, le contenu passe
   dessous, flouté ; onglets centrés entre le nom et les boutons ; sous 1 080 px, une seule barre avec le nom et un bouton
   menu qui déroule les pages et les deux boutons (« Menu du téléphone » plus bas). Fond plein si le navigateur ne sait
   pas flouter, si la transparence est réduite ou le contraste renforcé, et quand le menu est ouvert. */
.enseigne { position: sticky; top: 0; z-index: 10; background: rgba(242, 236, 223, 0.82); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--trait); view-transition-name: enseigne; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .enseigne { background: var(--fond); } }
@media (prefers-reduced-transparency: reduce) { .enseigne { background: var(--fond); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Le trait sous l'en-tête n'apparaît que lorsque la page passe dessous (navigateurs récents ; sinon il reste fixe). */
@supports (animation-timeline: scroll()) {
  .enseigne { animation: trait-enseigne linear both; animation-timeline: scroll(root); animation-range: 0 24px; }
  @keyframes trait-enseigne { from { border-bottom-color: transparent; } to { border-bottom-color: var(--trait); } }
}
.enseigne-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
.marque { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--encre); text-decoration: none; font-family: var(--serif); font-size: 1.5625rem; font-weight: 500; line-height: 1; }
@media (hover: hover) { .marque:hover { color: var(--encre); opacity: 0.8; } }
/* Marque « carotte étincelle » (H6, Mikael, 21/11/2026) : contour de losange à la couleur du texte (chocolat, crème
   dans le pied de page), étincelle rouge au centre. Taille en em : elle suit le nom, en-tête, pied ou téléphone. */
.losange { display: block; flex: none; width: 0.84em; height: 1.17em; fill: currentColor; fill-rule: evenodd; }
.losange .etincelle { fill: var(--losange); }
.navigation { display: flex; align-items: center; gap: 28px; margin: 0 auto; font-size: 0.9375rem; }   /* centrés entre le nom et les boutons (Mikael, 21/11) */
/* Onglet : 44 px de haut au moins (cible au doigt). Le nom et son double en gras invisible (onglet-gabarit) occupent la
   même case : l'onglet garde la largeur du gras, actif ou non, donc rien ne bouge en changeant de page. */
.navigation a { position: relative; display: inline-grid; align-items: center; justify-items: center; min-height: 44px; padding-top: 2px; color: var(--encre); text-decoration: none; white-space: nowrap; }
.navigation a > span { grid-area: 1 / 1; }
.navigation .onglet-gabarit { visibility: hidden; font-weight: 600; }
.trait-onglet { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
@media (hover: hover) { .navigation a:hover .trait-onglet { background: var(--bord-carte); } }
.navigation a[aria-current="page"] { font-weight: 600; }
.navigation a[aria-current="page"] .trait-onglet { background: var(--encre); view-transition-name: onglet-actif; }
.enseigne-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.enseigne-cta[aria-current="page"] { display: none; }   /* sur la page Démarrer, le formulaire est déjà là */

/* --- Menu du téléphone et de la tablette (sous 1 080 px : la barre complète demande 1 052 px) ---------------------- */
/* Comme sur le site BRITED : le bouton aux trois traits (qui deviennent une croix) déroule sous la barre les pages, puis
   « Demander une démonstration » et « Se connecter » ; un voile assombrit la page derrière, un appui dessus ou Échap
   referme. Le menu descend de quelques pixels en apparaissant et remonte en partant ; un nouvel appui reprend le
   mouvement là où il en est (vitrine.js). Sans JavaScript, le bouton ne fait rien : le pied de page garde tous les
   liens. */
.menu-bouton, .menu-telephone, .voile-menu { display: none; }
@media (max-width: 1079px) {
  .enseigne-ligne { flex-wrap: nowrap; gap: 16px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .navigation, .enseigne-actions { display: none; }
  .enseigne.ouvert { background: var(--fond); }
  .menu-bouton {
    display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--trait); border-radius: 6px;
    background: none; color: var(--encre); cursor: pointer;
  }
  .menu-bouton:active { background: rgba(46, 36, 28, 0.06); }
  .menu-bouton span { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: currentColor; }
  .menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .menu-telephone {
    display: flex; flex-direction: column; padding: 4px var(--gouttiere) 20px; border-top: 1px solid var(--trait);
    background: var(--feuille); box-shadow: 0 12px 24px rgba(46, 36, 28, 0.08);
    opacity: 0; transform: translateY(-8px);
  }
  .enseigne.ouvert .menu-telephone { opacity: 1; transform: none; }
  .menu-telephone a:not(.bouton) { padding: 13px 0; border-bottom: 1px solid var(--trait-doux); color: var(--encre); font-size: 1rem; text-decoration: none; }
  .menu-telephone a[aria-current="page"]:not(.bouton) { font-weight: 600; }
  .menu-telephone .bouton { width: 100%; margin-top: 16px; }
  .menu-telephone .bouton + .bouton { margin-top: 8px; }
  .voile-menu { display: block; position: fixed; inset: 0; z-index: 9; background: rgba(46, 36, 28, 0.2); opacity: 0; }
  .voile-menu.visible { opacity: 1; }
}
@media (max-width: 1079px) and (prefers-reduced-motion: no-preference) {
  .menu-bouton { transition: transform 0.1s ease-out; }
  .menu-bouton:active { transform: scale(0.94); }
  .menu-bouton span { transition: transform 0.25s var(--ressort), opacity 0.15s ease; }
  .menu-telephone { transition: opacity 0.25s var(--ressort), transform 0.25s var(--ressort); }
  .voile-menu { transition: opacity 0.25s var(--ressort); }
}
@media (max-width: 600px) {
  .marque { gap: 8px; font-size: 1.3125rem; }
}

/* --- Sections ----------------------------------------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-claire { background: var(--feuille); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.section-claire + .section-claire, .section-claire + .pied { border-top: 0; }
.section-sombre { background: var(--encre); color: var(--fond); }
.titre-section { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.1; }
.titre-moyen { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.1; }   /* même taille que .titre-section (uniformisation du 21/11) */
.deux-colonnes { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: flex-start; }
.colonne-titre { flex: 1 1 300px; max-width: 380px; }
.colonne-titre p { margin: 16px 0 0; font-size: 1.125rem; color: var(--texte-2); }
.colonne-large { flex: 999 1 520px; min-width: 0; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* Haut des pages intérieures */
.entete-page { padding: 72px 0 56px; border-bottom: 1px solid var(--trait); }
.entete-page h1 { margin: 0; max-width: 760px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.375rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.018em; }
.chapeau { margin: 18px 0 0; max-width: 640px; font-size: 1.1875rem; line-height: 1.55; color: var(--texte-2); }
@media (max-width: 640px) { .entete-page { padding: 48px 0 40px; } }

/* Bande d'appel en bas de page */
.appel { padding: 72px 0; }
.appel-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.appel-texte { max-width: 640px; }
.appel h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.1; }
.appel p { margin: 10px 0 0; font-size: 1.0625rem; color: var(--texte-2); }

/* --- Accueil ------------------------------------------------------------------------------------------------------ */
.heros { padding: 72px 0 64px; }
.heros-grille { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.heros-texte { flex: 1 1 400px; min-width: 0; max-width: 520px; }
.heros h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; }
.heros .chapeau { margin-top: 24px; }
.heros-prix { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--trait); font-size: 0.9375rem; color: var(--texte-2); }
.heros-prix strong { color: var(--encre); font-weight: 600; }
@media (max-width: 640px) { .heros { padding: 40px 0 48px; } .heros-grille { gap: 40px; } }

/* L'écran Caisse de l'application, reproduit sur un dossier fictif */
.apercu { flex: 1.35 1 560px; min-width: 0; margin: 0; }
.apercu figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--discret); }
.ecran { border: 1px solid var(--bord-carte); border-radius: 6px; background: var(--feuille); overflow: hidden; box-shadow: 0 18px 40px rgba(46, 36, 28, 0.10); font-size: 12px; line-height: 1.45; }
.ecran-barre { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: var(--fond); border-bottom: 1px solid var(--trait); color: var(--encre-survol); white-space: nowrap; overflow: hidden; }
.ecran-marque { display: flex; align-items: center; gap: 6px; color: var(--encre); font-family: var(--serif); font-size: 15px; font-weight: 500; }
.ecran-actif { color: var(--encre); font-weight: 600; line-height: 38px; box-shadow: inset 0 -2px 0 var(--encre); }
.ecran-pastille { padding: 0 4px; border-radius: 3px; background: var(--pastille); font-size: 11px; font-weight: 600; }
.ecran-dossier { margin-left: auto; color: var(--encre); }
.ecran-corps { padding: 18px 20px 20px; }
.ecran-titre-ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--trait-doux); }
.ecran-titre { font-size: 16px; font-weight: 600; }
.ecran-note { font-size: 12px; color: var(--texte-2); }
.ecran-bouton { display: inline-flex; align-items: center; flex: none; height: 28px; padding: 0 10px; border-radius: 4px; background: var(--encre); color: var(--feuille); font-size: 12px; font-weight: 500; }
.ecran-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--trait-doux); border-radius: 4px; background: var(--feuille); overflow: hidden; }
.ecran-chiffre { margin-left: -1px; padding: 10px 12px; border-left: 1px solid var(--trait-doux); }
.ecran-chiffre span, .ecran-chiffre small { display: block; }
.ecran-chiffre span { font-size: 11px; color: var(--texte-2); }
.ecran-chiffre strong { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ecran-chiffre small { font-size: 10.5px; color: var(--discret); }
.ecran-tableau { margin-top: 14px; border: 1px solid var(--trait-doux); border-radius: 4px; overflow: hidden; }
.ecran table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ecran th { padding: 7px 10px; background: var(--fond); color: var(--texte-2); font-weight: 600; text-align: left; }
.ecran td { padding: 7px 10px; border-top: 1px solid var(--trait-ligne); }
.ecran .nombre { text-align: right; }
.ecran-ok { padding: 1px 6px; border-radius: 3px; background: var(--ok-fond); color: var(--ok); font-weight: 500; }
@media (max-width: 640px) {
  .ecran-secondaire { display: none; }                   /* onglets, colonnes et note qui ne tiennent pas sur un téléphone */
  .ecran-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecran-chiffre:nth-child(n+3) { border-top: 1px solid var(--trait-doux); }
  .ecran-corps { padding: 14px; }
}

/* En bref */
.en-bref { padding: 32px 0; }
.en-bref-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 48px; }
.en-bref h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.en-bref p { margin: 2px 0 0; font-size: 0.9375rem; color: var(--texte-2); }

/* Sommaire des pages */
.sommaire { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.sommaire a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--trait); color: var(--encre); text-decoration: none; }
.sommaire-titre { flex: 0 0 200px; font-family: var(--serif); font-size: 1.625rem; line-height: 1.2; }
.sommaire-texte { flex: 1 1 280px; font-size: 1rem; color: var(--texte-2); }
.sommaire-lien { font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .sommaire a:hover .sommaire-titre { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } }
.sommaire a:active { opacity: 1; }
/* La ligne entière répond à l'appui. À la souris, dès l'appui ; au toucher, par la classe « appuyee » posée par
   vitrine.js, comme une liste de l'iPhone : jamais quand le doigt se pose pour faire défiler (vidéo du 20/11/2026). */
@media (hover: hover) { .sommaire a:active { background: rgba(46, 36, 28, 0.05); } }
.sommaire a.appuyee { background: rgba(46, 36, 28, 0.05); }

/* Récit « Née au comptoir » */
.recit { max-width: 680px; font-family: var(--serif); font-size: 1.3125rem; line-height: 1.6; }
.recit p { margin: 0; }
.recit p + p { margin-top: 18px; }
@media (max-width: 640px) { .recit { font-size: 1.1875rem; } }

/* --- Fonctions ---------------------------------------------------------------------------------------------------- */
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.moment { padding-top: 16px; border-top: 2px solid var(--encre); }
.moment > h2 { margin: 0 0 20px; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.625rem; line-height: 1.2; }
.fonction { padding: 14px 0; border-top: 1px solid var(--trait); }
.fonction h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.fonction p { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--texte-2); }

.a-faire-grille { display: flex; flex-wrap: wrap-reverse; gap: 56px; align-items: center; }
.a-faire-texte { flex: 1 1 380px; min-width: 0; max-width: 520px; }
.a-faire-texte p { margin: 18px 0 0; font-size: 1.125rem; color: var(--texte-2); }
.a-faire-texte p + p { margin-top: 14px; }
.carte-a-faire { flex: 1 1 460px; min-width: 0; padding: 22px 24px; border: 1px solid var(--bord-carte); border-radius: 6px; background: var(--carte-claire); }
.carte-a-faire-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--trait-doux); }
.carte-a-faire-titre { font-size: 1rem; font-weight: 600; }
.carte-a-faire-date, .carte-a-faire-note { font-size: 0.75rem; color: var(--discret); }
.avancement { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.avancement strong { font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.avancement span { font-size: 0.8125rem; color: var(--texte-2); }
.avancement-barre { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--pastille); overflow: hidden; }
.avancement-barre span { display: block; width: 40%; height: 100%; background: var(--encre); }
.taches { margin: 18px 0 0; padding: 0; list-style: none; font-size: 0.875rem; }
.taches li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--trait-ligne); }
.taches .case { flex: none; width: 15px; height: 15px; border: 1px solid var(--bord-champ); border-radius: 3px; background: #FFFFFF; }
.taches .fait { color: var(--discret); }
.taches .fait .case { background: var(--encre); border-color: var(--encre); }
.taches .tache { flex: 1; min-width: 0; }
.taches .ou { font-size: 0.75rem; color: var(--discret); white-space: nowrap; }
.carte-a-faire-note { margin: 8px 0 0; }

/* --- Démarrer ----------------------------------------------------------------------------------------------------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { padding-top: 18px; border-top: 1px solid var(--encre); counter-increment: etape; }
.etapes li::before { content: counter(etape); display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--focus); }
.etapes h2 { margin: 16px 0 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.etapes p { margin: 6px 0 0; font-size: 0.9375rem; color: var(--texte-2); }
.etapes .a-completer { display: inline-block; margin-top: 10px; }
.formulaire-texte p { margin: 14px 0 0; font-size: 1.0625rem; color: var(--texte-2); }
.formulaire-texte p + p { margin-top: 24px; font-size: 1rem; }

.formulaire, .confirmation { max-width: 680px; padding: 28px 32px; border: 1px solid var(--bord-carte); border-radius: 6px; background: var(--feuille); }
.formulaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 20px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label, .champ-groupe legend { font-size: 0.875rem; font-weight: 500; color: var(--texte-2); }
.aide { font-weight: 400; color: var(--discret); }
.champ input, .champ textarea { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--bord-champ); border-radius: 4px; background: #FFFFFF; color: var(--encre); font: inherit; font-size: 1rem; font-weight: 400; }
.champ textarea { padding: 10px 12px; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.champ [aria-invalid="true"] { border-color: var(--erreur); }
.champ-large, .champ-groupe, .formulaire-mention, .formulaire-erreur, .formulaire-envoi { grid-column: 1 / -1; }
.champ-groupe { margin: 0; padding: 0; border: 0; min-width: 0; }
.champ-groupe legend { padding: 0; margin-bottom: 8px; }
.champ-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 20px; }
.champ-duo .champ label { font-weight: 400; }
.champ-erreur { margin: 0; font-size: 0.875rem; color: var(--erreur); }
.formulaire-mention { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--discret); }
.formulaire-erreur { margin: 0; padding: 12px 14px; border-radius: 4px; background: var(--erreur-fond); color: var(--erreur); font-size: 0.9375rem; }
/* Version en ligne de test (construire-netlify.py) : formulaire visible mais inactif */
.formulaire-ferme { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1px solid var(--bord-carte); border-radius: 4px; background: var(--fond); color: var(--encre); font-size: 0.9375rem; font-weight: 500; }
.formulaire-inactif :disabled { cursor: not-allowed; }
.champ input:disabled, .champ textarea:disabled { border-color: var(--trait); background: var(--fond); color: var(--discret); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirmation h2 { margin: 0; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.2; }
.confirmation p { margin: 12px 0 0; font-size: 1rem; color: var(--texte-2); }
.confirmation p + p { margin-top: 16px; }
.confirmation:focus { outline: none; }
@media (max-width: 640px) { .formulaire, .confirmation { padding: 16px; } }

/* --- Sécurité ----------------------------------------------------------------------------------------------------- */
.section-sombre .titre-section { max-width: 640px; }
.jamais { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 56px; margin-top: 48px; }
.jamais div { padding: 24px 0; border-top: 1px solid var(--pied-trait); }
.jamais h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.jamais p { margin: 8px 0 0; font-size: 1rem; color: var(--pied-texte); }
.section-sombre :focus-visible { outline-color: var(--fond); }
@media (max-width: 400px) { .jamais { grid-template-columns: minmax(0, 1fr); } }

.liste-definitions { margin: 0; border-top: 1px solid var(--encre); }
.liste-definitions > div { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.liste-definitions dt { flex: 0 0 240px; font-weight: 600; }
.liste-definitions dd { flex: 1 1 280px; margin: 0; font-size: 1rem; color: var(--texte-2); }
.liste-definitions.empilee > div { display: block; }
.liste-definitions.empilee dd { margin-top: 6px; }

/* --- Prix --------------------------------------------------------------------------------------------------------- */
.prix-grille { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.etiquette-prix { flex: 1 1 460px; min-width: 0; max-width: 620px; border: 1px solid var(--bord-carte); border-radius: 6px; background: var(--feuille); }
.etiquette-tete { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 32px 32px 28px; border-bottom: 1px solid var(--trait-doux); }
.etiquette-montant { font-family: var(--serif); font-size: 4.5rem; line-height: 1; font-variant-numeric: lining-nums; }
.etiquette-unite { font-size: 1.0625rem; color: var(--texte-2); }
.inclus { margin: 0; padding: 20px 32px 8px; list-style: none; }
.inclus li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; font-size: 1rem; }
.inclus svg { flex: none; width: 14px; height: 14px; transform: translateY(2px); }
.etiquette-pied { padding: 0 32px 32px; }
.etiquette-pied p { margin: 8px 0 20px; font-size: 0.875rem; color: var(--discret); }
.prix-grille .liste-definitions { flex: 1 1 360px; min-width: 0; }
.etiquette-parrainage { margin: 12px 32px 0; padding: 12px 16px; border-radius: 4px; background: var(--ok-fond); font-size: 0.9375rem; font-weight: 600; text-align: left; hyphens: manual; }
.etiquette-parrainage a { color: var(--ok); text-underline-offset: 3px; }
.paliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.paliers li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--encre); }
.palier-qui { font-size: 0.9375rem; color: var(--texte-2); }
.palier-prix { font-family: var(--serif); font-size: 2.75rem; line-height: 1; font-variant-numeric: lining-nums; letter-spacing: -0.02em; }
.palier-remise { font-size: 0.9375rem; font-weight: 600; color: var(--ok); }
.paliers li:last-child { border-top-width: 3px; padding-top: 14px; }
.paliers-note { margin: 24px 0 0; font-size: 0.9375rem; color: var(--texte-2); }
.heros-prix a { color: var(--encre); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .etiquette-tete { padding: 20px 16px 16px; } .inclus { padding: 12px 16px 4px; } .etiquette-pied { padding: 0 16px 16px; }
  .etiquette-montant { font-size: 3.75rem; }
  .etiquette-parrainage { margin: 8px 16px 0; padding: 10px 12px; font-size: 0.875rem; }
  .paliers { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .palier-prix { font-size: 2rem; }
  .palier-qui, .palier-remise, .paliers-note { font-size: 0.875rem; }
}

/* --- Questions ---------------------------------------------------------------------------------------------------- */
.questions-grille { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.questions-liste { flex: 999 1 560px; min-width: 0; max-width: 760px; border-top: 1px solid var(--encre); }
.questions-liste details { border-bottom: 1px solid var(--trait); }
.questions-liste summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; }
.questions-liste summary::-webkit-details-marker { display: none; }
.questions-liste summary svg { flex: none; width: 14px; height: 14px; }
.questions-liste details[open] summary svg { transform: rotate(180deg); }
.questions-liste details p { margin: 0; max-width: 660px; padding: 0 0 22px; font-size: 1rem; line-height: 1.65; color: var(--texte-2); }
.encart { flex: 1 1 260px; max-width: 340px; padding: 24px; border: 1px solid var(--bord-carte); border-radius: 6px; background: var(--feuille); }
.encart h2 { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.encart p { margin: 8px 0 0; font-size: 0.9375rem; color: var(--texte-2); }
.encart .bouton { margin-top: 16px; }
.questions-liste summary:active { opacity: 0.7; }
/* La réponse se déplie depuis la question et se replie par le même chemin, avec le ressort ; on peut la refermer en
   pleine ouverture, elle repart de là où elle est. Navigateurs sans ::details-content : ouverture instantanée. */
@media (prefers-reduced-motion: no-preference) {
  .questions-liste summary svg { transition: transform var(--duree-ressort) var(--ressort); }
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .questions-liste details { interpolate-size: allow-keywords; }
    .questions-liste details::details-content {
      block-size: 0; overflow: clip; opacity: 0;
      transition: block-size var(--duree-ressort) var(--ressort), opacity 0.25s ease-out, content-visibility var(--duree-ressort) allow-discrete;
    }
    .questions-liste details[open]::details-content { block-size: auto; opacity: 1; }
  }
}

/* --- Pages de texte (mentions légales, merci) -------------------------------------------------------------------- */
.page-texte { max-width: 720px; }
.page-texte h2 { margin: 40px 0 0; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; }
.page-texte p, .page-texte ul { margin: 12px 0 0; color: var(--texte-2); }
.page-texte li + li { margin-top: 6px; }
.page-texte strong { color: var(--encre); }

/* --- Pied de page ------------------------------------------------------------------------------------------------- */
/* À la manière du site BRITED (Mikael, 21/11/2026, « beaucoup plus propre ») : trois colonnes centrées (marque et phrase
   courte, « Menu », « Espace client »), petit titre en capitales couleur sable, liens crème sans soulignement, un trait,
   puis l'accroche (« La gestion de votre bureau de tabac… », choix de Mikael, sur une ligne au téléphone), l'éditeur à la ligne et les liens légaux, centrés et
   en petit. Rien n'est justifié. */
.pied { padding: 64px 0 28px; background: var(--encre); color: var(--pied-texte); font-size: 0.9375rem; }
.pied-colonnes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--pied-trait);
}
.pied-col { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pied .marque { flex-direction: column; gap: 12px; margin-bottom: 2px; color: var(--fond); font-size: 1.75rem; }
.pied .marque .losange { width: 1.2em; height: 1.67em; }
.pied-presentation p { margin: 0; }
.pied-titre { margin: 0 0 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pied-accent); }
.pied a { color: var(--fond); }
.pied-col a:not(.marque) { text-decoration: none; }
@media (hover: hover) {
  .pied-col a:not(.marque):hover { color: var(--pied-accent); text-decoration: underline; text-underline-offset: 4px; }
  .pied .marque:hover { color: var(--fond); }
}
.pied :focus-visible { outline-color: var(--fond); }
.pied .a-completer { background: var(--pied-trait); color: var(--fond); white-space: nowrap; }   /* passe à la ligne d'un bloc */
.pied-legal { max-width: 880px; margin: 28px auto 16px; text-align: center; text-wrap: balance; font-size: 0.8125rem; line-height: 1.7; color: var(--pied-discret); }
.pied-accroche { margin-bottom: 0; color: var(--pied-texte); }   /* l'accroche, un ton plus clair ; l'éditeur à la ligne dessous */
.pied-accroche + .pied-legal { margin-top: 2px; }
.pied-liens-legaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 0.8125rem; }
.pied-liens-legaux a { color: var(--pied-discret); text-underline-offset: 3px; }
/* Téléphone et petite tablette (comme BRITED sous 760 px) : la marque sur toute la largeur, « Menu » et « Espace
   client » côte à côte dessous. */
@media (max-width: 760px) {
  .pied-colonnes { grid-template-columns: 1fr 1fr; gap: 32px 12px; padding-bottom: 32px; }
  .pied-presentation { grid-column: 1 / -1; }
  .pied-col { gap: 0; }
  .pied-titre { margin-bottom: 6px; }
  .pied-col a:not(.marque) { display: block; padding: 9px 8px; }
}

/* --- Finitions (skill apple-design, 20/11/2026) ---------------------------------------------------------------- */

/* Pied de page au doigt : chaque lien fait 44 px de haut. */
@media (pointer: coarse) {
  .pied-col { gap: 0; }
  .pied-col a:not(.marque) { display: block; padding: 10px 8px; }
  .pied-liens-legaux { gap: 0 24px; }
  .pied-liens-legaux a { display: inline-block; padding: 12px 0; }
}

/* Typographie : l'interlettrage suit la taille. Resserré sur les grands titres (les lettres s'écartent à l'œil quand
   elles grandissent), neutre pour le texte courant, un peu desserré sous 14 px pour rester lisible. */
.titre-section, .titre-moyen, .appel h2 { letter-spacing: -0.012em; }
.etiquette-montant { letter-spacing: -0.025em; }
.sommaire-titre, .moment > h2, .page-texte h2, .confirmation h2 { letter-spacing: -0.006em; }
.carte-a-faire-date, .carte-a-faire-note, .taches .ou, .avancement span, .formulaire-mention, .pied-legal, .pied-liens-legaux { letter-spacing: 0.01em; }

/* Changement de page : l'en-tête reste en place, le contenu se fond rapidement dans le suivant et le trait de l'onglet
   actif glisse vers le nouvel onglet. Rien ne bouge si le visiteur a demandé moins d'animations. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; animation-timing-function: ease-out; }
  ::view-transition-group(onglet-actif) { animation-duration: var(--duree-ressort); animation-timing-function: var(--ressort); }
  ::view-transition-group(enseigne) { animation-duration: 0s; }
}

/* --- Téléphone (20/11/2026, soir, demande de Mikael) ------------------------------------------------------------- */
/* Texte justifié au téléphone (choix de Mikael du 20/11/2026, soir) : paragraphes alignés des deux côtés, avec coupure
   des mots en fin de ligne (dictionnaire français du navigateur, lang="fr") pour ne pas ouvrir de gros trous entre les
   mots ; pas de coupure qui laisse moins de 3 lettres d'un côté. Titres à gauche, boutons du contenu sur toute la
   largeur. Les listes courtes, les tableaux, l'écran Caisse dessiné et les cartes « En bref » restent alignés à gauche.
   Vidéo iPhone du 20/11 au soir : les textes en 19 px (accroche, récit « Née au comptoir ») n'avaient que 5 à 7 mots
   par ligne et s'ouvraient de gros trous ; tailles revues ensuite, voir « Échelle au téléphone » ci-dessous. Devant
   « : ; ! ? », dans les guillemets et entre un nombre et « € », l'espace est une fine insécable (U+202F) : la
   justification n'étire pas cette espace-là, la ponctuation reste collée à son mot. */
@media (max-width: 600px) {
  main p, main dd, .sommaire-texte {
    text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3;
  }
  main .bouton { width: 100%; }
}

/* Échelle au téléphone (20/11/2026, tard, « c'est gros, presque disproportionné » : Mikael a choisi la proposition B,
   la plus fine des deux qui lui ont été montrées côte à côte). Tout descend d'un cran net : texte courant 15 px au lieu
   de 17, grand titre 30 px au lieu de 40, titres de section 24 px au lieu de 32, boutons 44 px au lieu de 48, blocs
   plus serrés. Les champs du formulaire restent en 16 px : en dessous, Safari sur iPhone agrandit la page quand on
   touche un champ. L'ordinateur ne change pas. */
@media (max-width: 600px) {
  body { font-size: 0.9375rem; line-height: 1.55; }
  .bouton { min-height: 44px; border-radius: 6px; font-size: 0.875rem; }
  /* Un seul pavé plein par groupe : le bouton secondaire qui le suit devient un lien souligné, centré dessous. */
  .actions { flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; }
  main .actions .bouton-plein + .bouton-trait {
    width: auto; border-color: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  }

  .heros { padding: 24px 0 36px; }
  .heros-grille { gap: 32px; }
  .heros h1, .entete-page h1 { font-size: 1.875rem; line-height: 1.08; }
  .entete-page { padding: 28px 0; }
  .chapeau, .heros .chapeau { margin-top: 12px; font-size: 0.9375rem; line-height: 1.55; }
  .heros-prix { margin-top: 18px; padding-top: 14px; font-size: 0.8125rem; }
  .apercu figcaption { font-size: 0.8125rem; }

  .section { padding: 40px 0; }
  .appel { padding: 40px 0; }
  .en-bref { padding: 24px 0; }
  .deux-colonnes { row-gap: 24px; }
  .titre-section { font-size: 1.5rem; }
  .titre-moyen { font-size: 1.5rem; }
  .appel h2 { font-size: 1.5rem; }
  .colonne-titre p { margin-top: 10px; }
  .colonne-titre p, .a-faire-texte p, .formulaire-texte p, .appel p { font-size: 0.9375rem; }
  .en-bref h3 { font-size: 0.9375rem; }
  .en-bref p { font-size: 0.875rem; }

  .sommaire a { gap: 2px 32px; padding: 14px 0; }
  .sommaire-titre { font-size: 1.1875rem; }
  .sommaire-texte { font-size: 0.875rem; }
  .sommaire-lien { font-size: 0.8125rem; }
  .recit { font-size: 1rem; line-height: 1.6; }
  .recit p + p { margin-top: 14px; }

  .moment > h2 { margin-bottom: 10px; font-size: 1.25rem; }
  .fonction h3 { font-size: 0.9375rem; }
  .fonction p { font-size: 0.875rem; }
  .etapes { margin-top: 32px; gap: 24px; }
  .etapes li::before { font-size: 1.75rem; }
  .etapes h2 { margin-top: 12px; font-size: 0.9375rem; }
  .etapes p { font-size: 0.875rem; }
  .jamais { margin-top: 24px; }
  .jamais div { padding: 18px 0; }
  .jamais h3 { font-size: 0.9375rem; }
  .jamais p, .liste-definitions dd { font-size: 0.875rem; }
  .liste-definitions > div { padding: 14px 0; }
  .etiquette-montant { font-size: 3rem; }
  .etiquette-unite, .inclus li { font-size: 0.9375rem; }
  .questions-liste summary { min-height: 48px; padding: 10px 0; font-size: 0.9375rem; }
  .questions-liste details p { padding-bottom: 18px; font-size: 0.875rem; }
  .encart { max-width: none; padding: 16px; }   /* toute la largeur, comme les autres blocs */
  .encart h2 { font-size: 0.9375rem; }
  .encart p { font-size: 0.875rem; }
  .page-texte h2 { margin-top: 32px; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.012em; }
  .confirmation h2 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.012em; }

  .pied { padding: 40px 0 20px; font-size: 0.875rem; }
  .pied .marque { font-size: 1.5rem; }
  .pied-legal { margin-top: 24px; }
}

/* Version courte au téléphone (21/11/2026, « trop long, trop chargé » : Mikael a choisi la proposition A, montrée en
   maquette). Aucun texte n'est retiré des pages : sur téléphone, le détail se replie ou se range ; l'ordinateur ne
   change pas. Pages 20 à 30 % moins longues (accueil 2,7 écrans d'iPhone au lieu de 3,5, Fonctions 2,9 au lieu de 3,9).
   - Accueil : l'écran Caisse dessiné garde ses quatre chiffres, sans le tableau ; « En bref » devient trois cartes
     qu'on fait glisser (la suivante dépasse pour le montrer) ; le sommaire ne garde que les noms, avec une flèche.
   - Fonctions : chaque fonction montre son nom, l'explication s'ouvre au toucher (vitrine.js, « Version courte ») ;
     à côté de la carte « À faire aujourd'hui », le titre reste, sans les deux paragraphes qui redisent la fonction.
   - Démarrer : les trois étapes sur une ligne chacune (le détail est dans l'accroche et le formulaire).
   - Sécurité (« Vos données ») et Prix (questions) : la réponse s'ouvre au toucher ; « Ce que Buraliste ne fait
     jamais » reste en entier.
   - Pied de page : voir « Pied de page » (à la manière de BRITED, plus tard le 21/11). */
@media (max-width: 600px) {
  .ecran-tableau { display: none; }
  /* La rangée est elle-même le .cadre (toute la largeur, marge de page en padding) : elle défile d'un bord à l'autre de
     l'écran et la première carte s'aligne sur la marge. Pas de marge négative ici : avec la largeur à 100 % du .cadre,
     elle décalait la rangée de 16 px vers la gauche et collait la carte au bord (iPhone de Mikael, 21/11/2026). */
  .en-bref-grille {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none; scroll-padding: 0 var(--gouttiere);
  }
  .en-bref-grille::-webkit-scrollbar { display: none; }
  .en-bref-grille > div {
    flex: 0 0 80%; scroll-snap-align: start; padding: 16px;
    border: 1px solid var(--trait); border-radius: 8px; background: var(--fond);
  }
  /* Texte des cartes aligné à gauche : justifié sur 260 px de large, il ouvrait de gros trous entre les mots. */
  .en-bref-grille p { text-align: left; -webkit-hyphens: manual; hyphens: manual; }

  .sommaire-texte, .sommaire-lien { display: none; }
  .sommaire a { flex-wrap: nowrap; justify-content: space-between; align-items: center; padding: 12px 2px 12px 0; }
  .sommaire-titre { flex: 1 1 auto; }
  .sommaire a::after {
    content: ''; flex: none; width: 7px; height: 7px; border-top: 1.5px solid var(--discret);
    border-right: 1.5px solid var(--discret); transform: rotate(45deg);
  }

  .moments { gap: 28px; }
  .a-faire-texte p { display: none; }

  .etapes { gap: 0; margin-top: 28px; }
  .etapes li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--trait); }
  .etapes li:first-child { border-top-color: var(--encre); }
  .etapes li::before { font-size: 1.5rem; }
  .etapes h2 { margin: 0; }
  .etapes p, .etapes .a-completer { display: none; }

  /* Repli au toucher (vitrine.js) : le titre devient un bouton seulement sur téléphone et avec JavaScript ; sans
     script, tout reste affiché. */
  .repliee { padding: 0; }
  .liste-definitions > div.repliee { display: block; padding: 0; }
  .repli-bouton {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px;
    padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  }
  .repli-bouton:active { opacity: 0.7; }
  .repli-bouton::after {
    content: ''; flex: none; width: 7px; height: 7px; margin-right: 3px; border-right: 1.5px solid var(--discret);
    border-bottom: 1.5px solid var(--discret); transform: translateY(-2px) rotate(45deg);
  }
  .repli-bouton[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
  .fonction.repliee > p, .liste-definitions .repliee > dd { margin: -4px 0 0; padding-bottom: 14px; }

}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .repli-bouton::after { transition: transform 0.2s var(--ressort); }
}

/* Uniformisation (21/11/2026, nuit, « des choses ne sont pas uniformisées, des décalages selon les endroits » : relevé
   page par page à 402 et 1 280 px). Une seule mesure par rôle, quelle que soit la page ; les valeurs sont corrigées à
   leur place (règles de base, « Échelle au téléphone », « Version courte ») et ce bloc ne garde que les ajouts.
   - Titres de section (serif) : même taille partout, 24 px au téléphone (avant 24, 23 ou 22), 46 px sur ordinateur
     (avant 46, 40 ou 38). Les sous-parties de Fonctions (« Le matin », italique) gardent leur taille à part.
   - Petits titres en gras : la taille du texte courant, 15 px au téléphone (avant 15 ou 16), 17 px sur ordinateur
     (avant 16 à 19).
   - Lignes qui s'ouvrent au toucher : 48 px de haut, Questions comme Prix, Sécurité et Fonctions (avant 52 et 46).
   - Cartes : 16 px de marge intérieure au téléphone, comme la marge de la page (avant 14 à 24).
   - Espace sous un titre : 10 px avant un paragraphe, 24 px avant un bloc (avant 8 à 56).
   - Texte courant en 15 px partout au téléphone (« Vous préférez écrire ? » était en 16). */
@media (max-width: 600px) {
  .carte-a-faire { padding: 16px; }
  .a-faire-grille { gap: 24px; }
  .page-texte h2 + p, .encart h2 + p { margin-top: 10px; }
  .page-texte ul { padding-left: 20px; }
  .formulaire-texte p + p { margin-top: 16px; font-size: 0.9375rem; }
}
/* Pages de texte : le premier titre ne double pas l'espace du haut de la section (72 px au lieu de 40). */
.page-texte > :first-child { margin-top: 0; }

/* Barre « Demander une démonstration » en bas de l'écran (_pied.html, script dans vitrine.js) : sur les pages qui
   présentent le produit (<main data-barre-appel>), elle monte une fois le titre passé et s'efface dès qu'un autre bouton de démonstration
   ou le pied de page est à l'écran. Cachée, elle n'est ni visible ni atteignable au clavier. Fond légèrement
   transparent et flouté (le texte passe dessous sans gêner la lecture du bouton), opaque si le téléphone demande moins
   de transparence ou plus de contraste. */
.barre-appel { display: none; }
@media (max-width: 600px) {
  .barre-appel {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;   /* sous le voile du menu (9) */
    padding: 8px 16px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(242, 236, 223, 0.88); border-top: 1px solid var(--trait);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
    transform: translateY(100%); visibility: hidden;
  }
  .barre-appel.montree { transform: none; visibility: visible; }
  .barre-appel .bouton { width: 100%; }
}
@media (max-width: 600px) and (prefers-reduced-transparency: reduce), (max-width: 600px) and (prefers-contrast: more) {
  .barre-appel { background: var(--fond); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .barre-appel { transition: transform var(--duree-ressort) var(--ressort), visibility 0s linear var(--duree-ressort); }
  .barre-appel.montree { transition: transform var(--duree-ressort) var(--ressort), visibility 0s; }
}

/* Contraste renforcé (réglage d'accessibilité du téléphone ou de l'ordinateur) : traits et textes secondaires plus
   foncés. */
@media (prefers-contrast: more) {
  :root {
    --trait: #8C7D6D; --trait-doux: #8C7D6D; --trait-ligne: #A3937F; --bord-carte: #6F6255; --bord-champ: #5B5046;
    --texte-2: #3E342B; --discret: #4E4339; --pied-texte: #F2ECDF; --pied-discret: #E5DCCB; --pied-accent: #EADBC4;
  }
  .enseigne { background: var(--fond); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
