/* ═══ Le Cabinet — Giri premium : la pierre de la maison, Cormorant, le bouton « L'Affilié » (skill bouton n°1) ═══ */
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/Cormorant-Garamond-300-700-normal-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/Cormorant-Garamond-300-500-italic-latin.woff2') format('woff2'); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/Lato-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --pierre: #fffdf8; --lait: rgba(255,253,248,.84); --sable: #f4ecda;
  --or: #b8902d; --or-clair: #d4af37; --or-sombre: #8a6512; --or-texte: #9a7420;
  --filet: rgba(201,162,83,.42); --filet-doux: rgba(201,162,83,.24);
  --encre: #231a10; --encre-douce: #4a3a26; --encre-pale: #7a6446;
  --vert: #3f7a4a; --terre: #a2563a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --barre-h: 66px; --rayon: 22px;
  --ombre: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 6px rgba(74,48,12,.06), 0 14px 34px rgba(74,48,12,.11);
  --lingot: linear-gradient(135deg,#F4D58A 0%,#E8C078 42%,#C9A253 72%,#A07840 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: linear-gradient(180deg,#fffdf8,#fdfaf2 50%,#f4ecda); }
/* ⛔ body transparent : sinon la pierre (body::before, z-index négatif) est recouverte */
body { margin: 0; background: transparent; font-family: var(--sans); font-size: 18px; line-height: 1.5; color: var(--encre);
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(var(--barre-h) + env(safe-area-inset-bottom)); position: relative; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: url('img/marbre-affiliation.webp') center center / cover no-repeat; filter: contrast(1.16) saturate(1.12); }
/* là où l'on lit, la pierre se voile (skill bouton) : les veines restent, le texte passe devant */
body::after { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(255,253,248,.38),rgba(255,252,245,.52)); pointer-events: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; color: var(--encre); letter-spacing: .1px; }
h1 { font-size: 42px; } h2 { font-size: 30px; } h3 { font-size: 25px; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--or-texte); }
p { margin: 0 0 12px; }
a { color: var(--or-sombre); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ouverture : le logo, 1,1 s, CSS seul */
.ouverture { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #fdfaf2; animation: ouvrir .55s ease-in 1.1s forwards; pointer-events: none; }
.ouverture .logo { animation: naitre 1.1s cubic-bezier(.2,.8,.2,1); }
@keyframes ouvrir { to { opacity: 0; visibility: hidden; } }
@keyframes naitre { from { transform: scale(.7); opacity: 0; filter: blur(6px); } to { transform: scale(1); opacity: 1; filter: none; } }

/* le logo Giri : la boule d'or, jamais redessinée */
.logo { width: 34px; height: 34px; flex: none; background: url(img/golden-ball.webp) center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(125,90,16,.35)); }
.logo.grand { width: 84px; height: 84px; }

.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); background: rgba(255,253,248,.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--filet-doux); }
.marque { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--encre); }
.marque-t { display: flex; flex-direction: column; line-height: 1; }
.marque-giri { font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--or); font-weight: 600; margin-bottom: 3px; }
.marque-titre { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.marque-titre em { color: var(--or-texte); }
.entete-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--filet); background: linear-gradient(158deg,rgba(255,253,249,.95),rgba(248,243,233,.88)); color: var(--or-sombre); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(74,48,12,.08); }
.entete-btn.tourne svg { animation: tour 1s linear infinite; }
@keyframes tour { to { transform: rotate(360deg); } }

.vue { max-width: 760px; margin: 0 auto; padding: 22px 16px 34px; }
@media (min-width: 760px) { .vue { padding: 40px 24px 56px; } h1 { font-size: 52px; } }
.chargement { text-align: center; padding: 60px 0; color: var(--encre-pale); font-family: var(--serif); font-size: 22px; font-style: italic; }
.sur-titre { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--or); font-weight: 600; margin-bottom: 8px; }
.filet { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; color: var(--or); }
.filet::before, .filet::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--or-clair), transparent); }
.filet span { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--or-texte); }
.intro { font-family: var(--serif); font-size: 23px; line-height: 1.35; color: var(--encre-douce); }
.section { margin-top: 34px; }
.section > h2 { margin-bottom: 14px; }
.doux { color: var(--encre-pale); font-size: 16px; }
.centre { text-align: center; }

/* ── LES BOUTONS — n°1 « L'Affilié », sans reflet qui balaie ── */
.lingot { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 16px 30px; border-radius: 16px; border: 1px solid rgba(160,120,64,.55); font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .2px; color: #3a2708; text-decoration: none; text-align: center; background: var(--lingot); box-shadow: 0 2px 6px rgba(74,48,12,.12), 0 10px 26px rgba(74,48,12,.18), inset 0 1px 0 rgba(255,255,255,.55); text-shadow: 0 1px 1px rgba(60,40,4,.12); transition: transform .15s, box-shadow .15s; }
.lingot:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(74,48,12,.16), 0 14px 32px rgba(74,48,12,.22), inset 0 1px 0 rgba(255,255,255,.55); }
.lingot.large { width: 100%; }
.lingot[disabled] { opacity: .6; transform: none; }
.lingot small, .creux small { font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: 0; color: #4a3311; }
.creux { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 13px 22px; border-radius: 16px; border: 1px solid rgba(160,120,64,.45); background: linear-gradient(158deg,rgba(255,253,249,.95),rgba(248,243,233,.88)); color: #4a3520; font-family: var(--serif); font-size: 20px; font-weight: 500; text-decoration: none; text-align: center; box-shadow: 0 2px 8px rgba(74,48,12,.07); transition: transform .15s; }
.creux:hover { transform: translateY(-2px); }
.creux small { color: var(--encre-pale); }
.nu { background: none; border: 0; color: var(--or-sombre); text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; font-size: 16px; }
@media (max-width: 600px) { .bas .lingot, .bas .creux { width: 100%; } }

/* ── la porte d'entrée ── */
.porte { max-width: 460px; margin: 4vh auto 0; text-align: center; background: var(--lait); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); border: 1px solid var(--filet); border-radius: 26px; box-shadow: var(--ombre); padding: 30px 22px 22px; }
.porte .logo.grand { margin: 0 auto 20px; }
.porte h1 { font-size: 42px; }
.porte form { margin: 26px 0 0; text-align: left; }
label.champ { display: block; font-size: 15px; color: var(--encre-douce); margin-bottom: 7px; font-weight: 600; letter-spacing: .2px; }
input.saisie { width: 100%; min-height: 58px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--filet); background: rgba(255,253,248,.92); font: inherit; font-size: 18px; color: var(--encre); margin-bottom: 14px; box-shadow: inset 0 1px 3px rgba(74,48,12,.06); }
input.saisie:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(212,175,55,.22); }
input.code { text-align: center; font-size: 32px; letter-spacing: 12px; font-family: var(--serif); font-weight: 600; }
.erreur { color: var(--terre); font-size: 16px; margin: -4px 0 12px; }

/* ── les surfaces : verre de lait sur la pierre ── */
.carte { background: var(--lait); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px; }
.carte + .carte { margin-top: 14px; }

/* l'accueil : la plaque du jour */
.plaque { text-align: center; padding: 28px 20px 24px; }
.plaque h1 { margin-top: 2px; }
.plaque .etat-cab { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--encre-douce); margin: 10px 0 0; }
.anneau { --p: 0; position: relative; width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from -90deg, #A07840, #C9A253, #F4D58A calc(var(--p) * 1%), rgba(201,162,83,.18) 0); box-shadow: 0 6px 18px rgba(125,90,16,.18); }
.anneau::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(120% 120% at 30% 20%, #fffdf8, #f8f1e2); box-shadow: inset 0 1px 3px rgba(74,48,12,.12); }
.anneau span { position: relative; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--or-sombre); line-height: 1; }
.anneau span i { font-style: normal; font-size: 18px; }

/* listes : la journée, ce qui est à régler */
.ligne { display: flex; gap: 14px; align-items: center; padding: 15px 2px; border-top: 1px solid var(--filet-doux); text-decoration: none; color: inherit; }
.ligne:first-child { border-top: 0; padding-top: 4px; }
.ligne:last-child { padding-bottom: 2px; }
.ligne .heure { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--or-sombre); min-width: 68px; }
.ligne .txt { flex: 1; min-width: 0; font-size: 17px; }
.ligne .src { display: block; font-size: 12px; color: var(--or); letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.ligne .fleche { color: var(--or); flex: none; }
.repere { width: 3px; align-self: stretch; border-radius: 3px; flex: none; background: linear-gradient(180deg,#F4D58A,#C9A253); }
.repere.haute { background: linear-gradient(180deg,#d38a6a,#a2563a); }
.vide { text-align: center; color: var(--encre-pale); padding: 8px 0 4px; font-family: var(--serif); font-size: 21px; font-style: italic; }

/* chiffres */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .chiffres { grid-template-columns: repeat(3, 1fr); } }
.chiffre { background: var(--lait); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--filet); border-radius: 18px; padding: 16px; box-shadow: var(--ombre); }
.chiffre b { display: block; font-family: var(--serif); font-weight: 500; font-size: 40px; color: var(--or-sombre); line-height: 1; margin-bottom: 6px; }
.chiffre span { font-size: 14px; color: var(--encre-douce); line-height: 1.3; display: block; }

/* le chemin : chiffres romains gravés, pas de disque */
.etape { margin-top: 38px; }
.etape-tete { display: flex; align-items: baseline; gap: 14px; }
.etape .num { font-family: var(--serif); font-size: 44px; font-weight: 400; font-style: italic; color: var(--or-clair); line-height: .9; min-width: 38px; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.etape h2 { font-size: 32px; }
.etape .phrase { color: var(--encre-pale); font-family: var(--serif); font-style: italic; font-size: 20px; margin: 4px 0 14px 52px; }
.module { padding: 22px; }
.module h3 { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.module .dit { font-size: 16px; color: var(--encre-douce); margin: 8px 0 12px; }
.module .bas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.module.eteint { background: rgba(255,253,248,.55); box-shadow: none; }
.module.eteint h3 { color: var(--encre-douce); }
.etat { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.etat.actif { background: rgba(63,122,74,.1); color: var(--vert); border: 1px solid rgba(63,122,74,.25); }
.etat.config { background: rgba(212,175,55,.14); color: #855a0c; border: 1px solid rgba(201,162,83,.45); }
.etat.sans { background: rgba(255,253,248,.7); color: var(--encre-pale); border: 1px solid var(--filet-doux); }
.etat.bientot { color: var(--encre-pale); border: 1px dashed var(--filet); }
.mini { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--filet-doux); }
.mini li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--filet-doux); }
.mini li b { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--or-sombre); }
.alerte { font-size: 15px; color: #6e4a0c; background: linear-gradient(158deg,rgba(252,243,222,.95),rgba(248,236,208,.9)); border: 1px solid rgba(201,162,83,.35); border-radius: 12px; padding: 10px 14px; margin-top: 12px; }

/* options */
.opt { display: flex; gap: 16px; align-items: flex-start; }
.opt .txt { flex: 1; }
.opt .txt p { font-size: 16px; color: var(--encre-douce); margin: 6px 0 0; }
.interrupteur { flex: none; width: 58px; height: 34px; border-radius: 999px; border: 1px solid var(--filet); background: rgba(244,236,218,.9); position: relative; transition: background .2s; margin-top: 2px; box-shadow: inset 0 1px 3px rgba(74,48,12,.12); }
.interrupteur::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fffdf8; box-shadow: 0 1px 4px rgba(74,48,12,.3); transition: transform .2s; }
.interrupteur[aria-checked="true"] { background: var(--lingot); border-color: rgba(160,120,64,.55); }
.interrupteur[aria-checked="true"]::after { transform: translateX(24px); }
.interrupteur[disabled] { opacity: .45; }
/* le total : la plaque de bronze (skill bouton n°2), ivoire sur or mat */
.total { position: sticky; bottom: calc(var(--barre-h) + env(safe-area-inset-bottom) + 12px); margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: 16px; padding: 16px 20px; color: #fdf5e2; font-weight: 600; letter-spacing: .3px;
  background: linear-gradient(176deg,#b8934a 0%,#ab8034 36%,#9e7229 64%,#936823 100%);
  box-shadow: inset 0 0 0 1px rgba(240,209,138,.45), inset 0 1.5px 0 rgba(255,243,208,.34), inset 0 -1.5px 0 rgba(44,27,3,.42), 0 2px 0 rgba(96,66,12,.55), 0 20px 40px -22px rgba(62,40,6,.6); text-shadow: 0 1px 1px rgba(44,28,4,.5); }
.total span { line-height: 1.25; }
.total b { font-family: var(--serif); font-weight: 600; font-size: 26px; white-space: nowrap; }

/* la barre du bas */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: rgba(255,253,248,.9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-top: 1px solid var(--filet-doux); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px rgba(74,48,12,.06); }
.barre a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px; min-height: var(--barre-h); text-decoration: none; color: var(--encre-pale); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.barre a svg { width: 25px; height: 25px; }
.barre a.actif { color: var(--or-sombre); }
.barre a.actif svg { color: var(--or); }
.barre a.actif::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--lingot); }
.toast { position: fixed; left: 50%; bottom: calc(var(--barre-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(35,26,16,.94); color: #fff8e6; padding: 13px 22px; border-radius: 14px; font-size: 16px; box-shadow: 0 14px 30px rgba(35,26,16,.3); z-index: 45; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .ouverture { display: none; } }

/* ── LES BOUTONS D'ACHAT — la Plaque de Bronze (skill bouton n°2) : or mat, texte ivoire, fil d'or en retrait ── */
.achat { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px 14px 22px; border: 0; border-radius: 16px; text-decoration: none; text-align: left; color: #fdf5e2; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .45px; text-shadow: 0 1px 1px rgba(44,28,4,.5);
  background: linear-gradient(176deg,#b8934a 0%,#ab8034 36%,#9e7229 64%,#936823 100%);
  box-shadow: inset 0 0 0 1px rgba(240,209,138,.45), inset 0 1.5px 0 rgba(255,243,208,.34), inset 0 -1.5px 0 rgba(44,27,3,.42), 0 2px 0 rgba(96,66,12,.55), 0 10px 24px -14px rgba(138,101,18,.45), 0 20px 40px -26px rgba(62,40,6,.55);
  transition: transform .15s, filter .15s; }
.achat::before { content: ''; position: absolute; inset: 5px; border-radius: 11px; border: 1px solid rgba(247,227,164,.26); pointer-events: none; }
.achat:hover { transform: translateY(-2px); filter: brightness(1.05); }
.achat .quoi { display: flex; flex-direction: column; line-height: 1.15; }
.achat .quoi small { font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: .2px; color: rgba(253,245,226,.9); margin-top: 3px; }
.achat .prix { flex: none; display: flex; align-items: baseline; gap: 3px; padding: 6px 12px; border-radius: 10px; background: rgba(44,27,3,.18); box-shadow: inset 0 0 0 1px rgba(247,227,164,.3); font-size: 26px; line-height: 1; }
.achat .prix sup { font-size: 14px; font-weight: 600; } .achat .prix small { font-family: var(--sans); font-size: 12px; font-weight: 400; opacity: .9; }
@media (max-width: 600px) { .achat { width: 100%; } }
/* options : le prix gravé sur chaque carte, l'état dit en clair */
.opt .prix-carte { display: inline-flex; align-items: baseline; gap: 3px; margin-top: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--or-sombre); }
.opt .prix-carte small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--encre-pale); }
.opt.dedans { border-color: rgba(201,162,83,.75); box-shadow: inset 0 0 0 1px rgba(212,175,55,.35), var(--ombre); }
.opt .dans { display: inline-block; margin-top: 10px; margin-left: 10px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--vert); }

/* ══════════ ERGONOMIE & ADAPTATION (12/10) ══════════ */
.vue:focus { outline: none; }
.mobile-seul { }
/* squelette de chargement : la forme de la page avant ses données */
.squelette { display: grid; gap: 14px; }
.squelette i { display: block; border-radius: 22px; background: linear-gradient(100deg, rgba(255,253,248,.6) 30%, rgba(255,253,248,.95) 50%, rgba(255,253,248,.6) 70%) 0 0 / 300% 100%; border: 1px solid var(--filet-doux); animation: lueur 1.4s ease-in-out infinite; }
.s-plaque { height: 220px; } .s-ligne { height: 74px; } .s-carte { height: 150px; }
@keyframes lueur { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* la prochaine étape : le seul lingot, toute la largeur, le texte de l'action dedans */
.prochaine { width: 100%; margin-top: 14px; align-items: flex-start; text-align: left; padding: 16px 22px; font-size: 21px; line-height: 1.25; }
.prochaine .pe { font-family: var(--sans); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 600; color: #6b4a10; margin-bottom: 4px; }
.prochaine small { margin-top: 6px; }
h2 .compte { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; margin-left: 6px; vertical-align: 6px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fdf5e2; background: linear-gradient(176deg,#b8934a,#936823); }
.plaque-t { min-width: 0; }

/* barre de saut vers les étapes : défile au doigt, reste sous l'en-tête */
.sauts { position: sticky; top: calc(66px + env(safe-area-inset-top)); z-index: 15; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 10px 16px; background: rgba(255,253,248,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--filet-doux); }
.sauts::-webkit-scrollbar { display: none; }
.sauts button { flex: none; display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--filet); background: rgba(255,253,248,.9); color: var(--encre-douce); font-family: var(--serif); font-size: 17px; font-weight: 500; }
.sauts button b { font-style: italic; font-weight: 500; color: var(--or-texte); }
.etape { scroll-margin-top: 130px; }
.grille-mod { display: grid; gap: 14px; }
.grille-mod > .carte + .carte { margin-top: 0; }
.barre-pied { display: none; }

/* petits téléphones */
@media (max-width: 360px) { h1 { font-size: 36px; } .porte h1 { font-size: 36px; } .barre a { font-size: 11px; } .achat { font-size: 19px; } }

/* tablette : deux colonnes pour les cartes */
@media (min-width: 700px) {
  .grille-mod { grid-template-columns: 1fr 1fr; align-items: start; }
  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .chiffres { grid-template-columns: repeat(4, 1fr); }
  .tete-auj { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: stretch; }
  .tete-auj .prochaine { margin-top: 0; justify-content: center; }
  .plaque { display: flex; align-items: center; gap: 22px; text-align: left; }
  .plaque .anneau { margin: 0; flex: none; }
  .total { max-width: 560px; margin-left: auto; }
}

/* ordinateur : l'en-tête en haut, la navigation devient une colonne à gauche, le contenu respire */
@media (min-width: 1024px) {
  body { padding-bottom: 0; padding-left: 264px; }
  .entete { position: fixed; left: 0; right: 0; height: 74px; padding: 0 28px; }
  .vue { max-width: 1160px; padding: 112px 40px 64px; }
  .barre { top: 74px; bottom: 0; right: auto; width: 264px; flex-direction: column; gap: 4px; padding: 26px 16px 20px; border-top: 0; border-right: 1px solid var(--filet-doux); box-shadow: 8px 0 24px rgba(74,48,12,.04); background: rgba(255,253,248,.82); }
  .barre a { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 12px 16px; border-radius: 14px; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0; color: var(--encre-douce); }
  .barre a svg { width: 23px; height: 23px; color: var(--or); }
  .barre a:hover { background: rgba(244,236,218,.7); }
  .barre a.actif { background: linear-gradient(158deg,rgba(255,253,249,.98),rgba(248,240,222,.95)); box-shadow: inset 0 0 0 1px var(--filet), 0 4px 14px rgba(74,48,12,.07); color: var(--encre); }
  .barre a.actif::before { top: 12px; bottom: 12px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .barre a::after { content: attr(data-touche); margin-left: auto; font-family: var(--sans); font-size: 12px; color: var(--encre-pale); border: 1px solid var(--filet-doux); border-radius: 6px; padding: 1px 7px; }
  .barre-pied { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding: 16px 18px; border-radius: 16px; color: #fdf5e2; background: linear-gradient(176deg,#b8934a 0%,#ab8034 36%,#9e7229 64%,#936823 100%); box-shadow: inset 0 0 0 1px rgba(240,209,138,.45), 0 2px 0 rgba(96,66,12,.55), 0 14px 30px -18px rgba(62,40,6,.6); text-shadow: 0 1px 1px rgba(44,28,4,.5); font-size: 14px; }
  .barre-pied:empty { display: none; }
  .barre-pied b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
  .toast { bottom: 28px; left: calc(50% + 132px); }
  .sauts { top: 74px; margin: 18px 0 0; border-radius: 16px; border: 1px solid var(--filet-doux); }
  .etape { scroll-margin-top: 100px; }
  .etape .phrase { margin-left: 52px; }
  .mobile-seul { display: none; }
  .total { position: static; }
  h1 { font-size: 54px; }
  .porte { margin-top: 2vh; }
  body:has(.porte) { padding-left: 0; }
  .tete-auj { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 1400px) { .grille-mod { grid-template-columns: repeat(3, 1fr); } .chiffres { grid-template-columns: repeat(4, 1fr); } }
@media (hover: hover) { .ligne:hover { background: rgba(244,236,218,.45); border-radius: 12px; } .module:not(.eteint):hover, .opt:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 10px rgba(74,48,12,.08), 0 20px 40px rgba(74,48,12,.13); } .module, .opt { transition: transform .2s, box-shadow .2s; } }
/* téléphone : la plaque se fait compacte — l'anneau à côté du salut, la prochaine étape visible dès l'ouverture */
@media (max-width: 699px) {
  .plaque { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px; }
  .plaque .anneau { width: 82px; height: 82px; margin: 0; flex: none; }
  .plaque .anneau span { font-size: 26px; }
  .plaque h1 { font-size: 34px; }
  .plaque .sur-titre { font-size: 11px; letter-spacing: 2.2px; margin-bottom: 4px; }
  .plaque .etat-cab { font-size: 17px; margin-top: 4px; }
  .duo .section:first-child { margin-top: 26px; }
}
.vide { padding: 4px 0 2px; }

/* ══════════ L'OUTIL DANS LE CABINET (12/10) — un cadre, une barre qui dit où l'on est ══════════ */
body.en-outil .vue { max-width: none; padding: 0; }
body.en-outil .entete { display: none; }
.cadre { position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--barre-h) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; z-index: 5; }
.cadre-barre { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); background: rgba(255,253,248,.92); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--filet); box-shadow: 0 6px 18px rgba(74,48,12,.07); }
.cadre-retour { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid rgba(160,120,64,.5); background: var(--lingot); color: #3a2708; font-family: var(--serif); font-size: 18px; font-weight: 500; box-shadow: 0 2px 6px rgba(74,48,12,.12), inset 0 1px 0 rgba(255,255,255,.55); white-space: nowrap; }
.cadre-ou { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; padding: 0 4px; }
.cadre-fil { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--or); font-weight: 600; }
.cadre-ou b { font-family: var(--serif); font-size: 21px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cadre-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--filet); background: rgba(255,253,248,.95); color: var(--or-sombre); text-decoration: none; }
.cadre-corps { position: relative; flex: 1; min-height: 0; background: #fffdf8; }
.cadre-corps iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.cadre-attente { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--encre-pale); font-family: var(--serif); font-style: italic; font-size: 21px; background: rgba(253,250,242,.9); }
.cadre-attente .logo { animation: respire 1.6s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(.9); opacity: .7; } }
@media (max-width: 380px) { .cadre-retour span { display: none; } .cadre-retour { padding: 8px 10px; } }
@media (min-width: 1024px) {
  body.en-outil .entete { display: flex; }
  .cadre { left: 264px; top: 74px; bottom: 0; }
  .cadre-barre { padding: 10px 18px; }
}
body.en-outil #rafraichir { display: none; }
