/* =====================================================================
   Calibim - site vitrine de l'editeur (statique, sans dependance)
   Charte MagicDalot : nuit #071826, marine #0B2340, creme #F4F3EE,
            or #F5B31F (toujours en aplat), sarcelle #155E75.
   Titres en Poppins Medium (comme la fenetre MagicDalot), texte en
   Segoe UI (Inter heberge en secours hors Windows). Aucune ressource tierce.
   Regles : jamais de noir ni de blanc purs, jamais de degrade,
            jamais d'ombre portee ; filets fins en or.
   ===================================================================== */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --night: #071826;      /* fonds sombres : en-tete, hero, editeur, pied */
  --ink: #0B2340;        /* marine : texte sur creme */
  --ink-soft: #2C4058;
  --chalk: #F4F3EE;      /* creme */
  --paper: #FBFAF6;
  --line: #D1D4D4;
  --line-soft: #E1E2E0;
  --line-dark: #283742;
  --gold: #F5B31F;
  --terra: #F5B31F;       /* ancien accent : devient l'or */
  --terra-text: #155E75;  /* liens sur creme : sarcelle (contraste AA) */
  --brass: #F5B31F;
  --brass-text: #155E75;  /* l'or n'est pas lisible en texte sur creme */
  --slate: #566678;
  --slate-light: #90979A;
  --mist: #C5C7C6;

  --font-text: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: 32px;
}

::selection { background: var(--gold); color: var(--night); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--terra-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 1px;
}

h1, h2, h3 { margin: 0 0 .5em; }
h1, h2 {
  font-variant-numeric: lining-nums;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(36px, 4.4vw, 60px); }
h2 { font-size: clamp(29px, 3.4vw, 45px); }
h1 em, h2 em { font-style: italic; color: var(--gold); }
h2 em { color: var(--brass-text); }
h3 { font-family: var(--font-text); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: .005em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--night); color: var(--chalk); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* Petites capitales espacees (sur-titres, legendes, cartouche) */
.eyebrow, .label {
  font-family: var(--font-text);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 22px;
}
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; flex: none; }

/* ---------------- Logotype ---------------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--chalk); }
.brand svg { width: 42px; height: 28px; flex: none; }
.wordmark { font-family: var(--font-text); font-weight: 500; font-size: 17px; letter-spacing: .34em; line-height: 1; }
.wordmark b { font-weight: 600; color: var(--terra); }

/* ---------------- En-tete ---------------- */
.site-header {
  background: var(--night);
  border-bottom: 1px solid rgba(245,179,31,.32);
  position: sticky; top: 0; z-index: 10;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 36px; flex-wrap: wrap; }
.nav a {
  color: var(--mist); text-decoration: none;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--brass); }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 24px;
  font-family: var(--font-text); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-radius: 10px;
  border: 1px solid transparent; line-height: 1.2;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { background: #FFC845; color: var(--night); }
.btn-ghost { border-color: rgba(245,179,31,.6); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--night); border-color: var(--night); color: var(--chalk); }
.btn .arrow { font-size: 1.25em; line-height: 1; letter-spacing: 0; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------- Hero ---------------- */
.hero {
  background-color: var(--night);
  background-image:
    linear-gradient(to right, rgba(244,243,238,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,243,238,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--chalk);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px; align-items: center;
  padding-top: 112px; padding-bottom: 120px;
}
.hero .eyebrow { color: var(--brass); }
.hero h1 { color: var(--chalk); margin-bottom: 30px; }
.hero .lead { font-size: 18px; line-height: 1.75; color: var(--mist); max-width: 52ch; margin-bottom: 42px; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Planche : capture posee sur une feuille, avec son cartouche */
.sheet {
  margin: 0;
  background: var(--paper);
  border: 1px solid rgba(245,179,31,.55);
  padding: 14px;
  position: relative;
}
.sheet::before {               /* repere d'angle, comme sur un plan */
  content: ""; position: absolute; top: -9px; left: -9px; width: 18px; height: 18px;
  border-top: 1px solid var(--brass); border-left: 1px solid var(--brass);
}
.sheet::after {
  content: ""; position: absolute; bottom: -9px; right: -9px; width: 18px; height: 18px;
  border-bottom: 1px solid var(--brass); border-right: 1px solid var(--brass);
}
.sheet img { width: 100%; height: auto; background: #FEFEFE; }
.cartouche {
  display: grid; grid-template-columns: 1fr 1.25fr .75fr;
  border: 1px solid var(--line); border-top: 0;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
}
.cartouche div { padding: 10px 12px; border-left: 1px solid var(--line); line-height: 1.4; }
.cartouche div:first-child { border-left: 0; }
.cartouche b { display: block; font-weight: 600; color: var(--ink); letter-spacing: .1em; font-size: 11.5px; margin-top: 2px; }

/* ---------------- Bandeau de faits ---------------- */
.facts-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-band ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts-band li { padding: 40px 28px 38px; border-left: 1px solid var(--line); }
.facts-band li:first-child { border-left: 0; padding-left: 0; }
.facts-band .n {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 44px; line-height: 1; color: var(--ink); margin-bottom: 12px; letter-spacing: -.02em;
}
.facts-band .n small { font-size: .5em; color: var(--brass-text); margin-left: 4px; font-style: italic; }
.facts-band .t { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); font-weight: 500; }

/* ---------------- Sections ---------------- */
.section { padding: 128px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 40px; margin-bottom: 64px; }
.section-head .num {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 16px; color: var(--brass-text);
  border-top: 2px solid var(--gold); padding-top: 14px; align-self: start;
}
.section-head .label { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; max-width: 22ch; }
.section-head p.intro { color: var(--slate); font-size: 18px; max-width: 58ch; margin: 0; }

/* ---------------- Fiche produit ---------------- */
.product { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
.product-id { display: flex; gap: 22px; align-items: center; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.product-id img { width: 76px; height: 76px; flex: none; }
.product-id h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1; margin: 0 0 6px; letter-spacing: 0; }
.product-id .tagline { color: var(--slate); margin: 0; font-size: 15.5px; }

.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--paper);
  padding: 7px 12px; color: var(--ink); border-radius: 6px;
}
.chips li.accent { background: var(--night); border-color: var(--night); color: var(--gold); }

.product .pitch { font-size: 17.5px; line-height: 1.75; }

.features { list-style: none; margin: 32px 0 40px; padding: 0; border-top: 1px solid var(--line); }
.features li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; color: var(--ink-soft); }
.features li::before {
  content: counter(feat, decimal-leading-zero); counter-increment: feat;
  font-family: var(--font-display); font-style: italic; font-size: 13.5px; color: var(--brass-text); line-height: 1.9;
}
.features { counter-reset: feat; }
.features strong { font-weight: 600; color: var(--ink); }

.where { font-size: 14px; color: var(--slate); margin-top: 22px; }
.kbd {
  font-family: var(--font-text); font-size: 12.5px; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line);
  padding: 2px 8px; color: var(--ink); white-space: nowrap; border-radius: 4px;
}

/* Galerie */
.gallery { display: grid; gap: 28px; position: sticky; top: 112px; }
.gallery .main img { width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plate { margin: 0; }
.plate .frame { background: #FEFEFE; border: 1px solid var(--line); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plate .frame img { width: 100%; height: 100%; object-fit: contain; }
.plate figcaption { font-size: 12.5px; color: var(--slate); margin-top: 10px; line-height: 1.5; }
.plate figcaption b { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 13px; color: var(--brass-text); margin-right: 6px; }

/* ---------------- Editions : gratuite / Pro ---------------- */
.editions { margin-top: 120px; padding-top: 72px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.editions-head { max-width: 640px; margin-bottom: 36px; }
.editions-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(27px, 3vw, 38px); line-height: 1.12; letter-spacing: 0; margin-bottom: 14px; }
.editions-title em { font-style: italic; color: var(--brass-text); }
.editions .intro { color: var(--slate); font-size: 17px; margin: 0; }
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 15.5px; }
.compare th, .compare td { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compare thead th { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.1; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.compare thead small { display: block; font-family: var(--font-text); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); margin-top: 6px; font-weight: 600; }
.compare tbody th { font-weight: 500; color: var(--ink-soft); width: 46%; }
.compare td { font-variant-numeric: lining-nums; color: var(--ink); }
.compare .pro-col { background: var(--night); color: var(--chalk); border-bottom-color: var(--line-dark); }
.compare thead .pro-col { border-top: 3px solid var(--brass); }
.compare thead .pro-col small { color: var(--gold); }
.compare thead .pro-col em { font-style: italic; color: var(--gold); }
.compare tbody td.pro-col { color: var(--gold); font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.editions-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.editions-foot .note { flex-basis: 100%; margin: 6px 0 0; }

/* ---------------- Fonctionnement : coupe + etapes ---------------- */
.method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; margin-top: 120px; padding-top: 72px; border-top: 1px solid var(--line); }
.drawing { background: var(--paper); border: 1px solid var(--line); padding: 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 12.5px; color: var(--slate); }
.legend .sw { display: inline-block; width: 18px; height: 10px; margin-right: 8px; vertical-align: middle; }
.sw-concrete { background: var(--ink); }
.sw-axis { border-top: 2px dashed var(--terra); height: 0 !important; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--brass-text);
}
.steps h3 { margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--slate); margin: 0; }

/* ---------------- Editeur ---------------- */
.about { background: var(--night); color: var(--chalk); }
.section.about + .section { border-top: 0; }
.about .section-head h2 { color: var(--chalk); }
.about .section-head h2 em { color: var(--brass); }
.about .section-head .num { color: var(--brass); }
.about .label { color: var(--brass); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
.person { margin-bottom: 18px; }
.person h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; margin: 0 0 4px; color: var(--chalk); letter-spacing: 0; }
.person .role { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.about p { color: var(--mist); }
.build-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line-dark); }
.build-list li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; color: var(--mist); display: flex; gap: 14px; }
.build-list li::before { content: "—"; color: var(--brass); }

.name-card { border: 1px solid rgba(245,179,31,.45); padding: 44px; align-self: start; position: relative; }
.name-card .label { color: var(--brass); }
.name-card blockquote {
  margin: 0 0 26px; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.1vw, 26px); line-height: 1.4; color: var(--chalk);
}
.name-card em { color: var(--brass); font-style: italic; }
.unfold { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-dark); list-style: none; }
.unfold li { font-size: 12.5px; color: var(--slate-light); line-height: 1.45; }
.unfold svg { height: 58px; width: auto; margin-bottom: 12px; }
.unfold strong { display: block; color: var(--chalk); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 3px; font-weight: 600; }

/* ---------------- Support ---------------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.card { padding: 48px; }
.card + .card { border-left: 1px solid var(--line); }
.card h3 { margin-bottom: 12px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.card li { padding: 6px 0 6px 24px; position: relative; font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 1px; background: var(--brass); }
.mail { font-family: var(--font-display); font-size: clamp(19px, 2.1vw, 25px); font-weight: 500; line-height: 1.2; margin: 0 0 26px; word-break: break-word; }
.mail a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass); }
.mail a:hover { color: var(--terra-text); }
.note { font-size: 13.5px; color: var(--slate); }

/* ---------------- Confidentialite ---------------- */
.key {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6;
  margin: 0 0 44px; max-width: 54ch; color: var(--ink);
  padding-left: 28px; border-left: 2px solid var(--gold);
}
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0 0 36px; }
.facts li { border-top: 1px solid var(--ink); padding-top: 16px; font-size: 14.5px; color: var(--slate); }
.facts strong { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.more { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 4px; color: var(--ink); }
.more:hover { color: var(--terra-text); }

/* ---------------- Mentions ---------------- */
.legal dl { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.legal dt, .legal dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.legal dt { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--slate); padding-top: 19px; }
.legal dd { color: var(--ink-soft); font-size: 15.5px; }

/* ---------------- Pied de page ---------------- */
.site-footer { background: var(--night); color: var(--slate-light); padding: 88px 0 44px; font-size: 14px; }
.site-footer .brand { color: var(--chalk); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.site-footer .tag { color: var(--brass); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; margin: 18px 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.site-footer nav a { color: var(--mist); text-decoration: none; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; }
.site-footer a:hover { color: var(--brass); }
.foot-cartouche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-dark); margin-top: 56px; }
.foot-cartouche div { padding: 14px 18px; border-left: 1px solid var(--line-dark); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.foot-cartouche div:first-child { border-left: 0; }
.foot-cartouche b { display: block; color: var(--chalk); font-weight: 500; letter-spacing: .08em; font-size: 13px; text-transform: none; margin-top: 4px; }
.foot-cartouche a { color: var(--chalk); text-decoration: none; }
.fine { margin-top: 28px; font-size: 12.5px; line-height: 1.6; color: var(--slate-light); }
.fine p { margin: 0 0 .4em; }

/* ---------------- Page confidentialite ---------------- */
.doc { max-width: 860px; padding-top: 88px; padding-bottom: 112px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 14px; }
.doc .sub { color: var(--slate); margin: 0 0 6px; font-size: 17px; }
.doc .date { color: var(--brass-text); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 48px; }
.doc .key { margin-bottom: 20px; max-width: none; }
.doc h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 64px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.doc table { border-collapse: collapse; width: 100%; margin: 18px 0 22px; background: var(--paper); font-size: 15px; border: 1px solid var(--line); }
.doc th { background: var(--night); color: var(--chalk); text-align: left; padding: 13px 16px; font-weight: 600; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; }
.doc td { border-bottom: 1px solid var(--line); padding: 13px 16px; vertical-align: top; }
.doc .table-scroll { overflow-x: auto; }
.doc td a { overflow-wrap: anywhere; }
.doc code, .card code {
  font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em;
  background: var(--chalk); border: 1px solid var(--line);
  padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere;
}
.back { display: inline-flex; gap: 10px; margin-bottom: 40px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; text-decoration: none; color: var(--slate); }
.back:hover { color: var(--ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .hero-grid, .product, .about-grid, .method { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .num { border-top: 0; padding-top: 0; margin-bottom: 10px; }
  .facts-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-band li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-band li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cartouche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cartouche div:nth-child(3) { border-left: 0; }
  .foot-cartouche div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 0; }
  .site-header { position: static; }
  .bar { padding-top: 14px; padding-bottom: 14px; min-height: 0; }
  .nav ul { gap: 4px 20px; }
  .nav a { font-size: 11px; letter-spacing: .16em; }
  .hero-grid { padding-top: 64px; padding-bottom: 72px; gap: 48px; }
  .hero .lead { font-size: 16.5px; }
  .btn { width: 100%; }
  .cartouche { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cartouche div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .cartouche div:nth-child(2) { border-left: 0; }
  .facts-band li { padding: 26px 14px 24px; }
  .facts-band li:nth-child(odd) { padding-left: 0; }
  .facts-band .n { font-size: 34px; }
  .facts-band .t { font-size: 10.5px; letter-spacing: .16em; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .product-id img { width: 60px; height: 60px; }
  .product-id h3 { font-size: 27px; }
  .thumbs { grid-template-columns: minmax(0, 1fr); }
  .method { margin-top: 80px; padding-top: 56px; }
  .drawing { padding: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 30px 22px; }
  .card + .card { border-left: 0; border-top: 1px solid var(--line); }
  .name-card { padding: 30px 22px; }
  .unfold { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .unfold li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; }
  .unfold svg { height: 46px; margin: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .legal dl { grid-template-columns: minmax(0, 1fr); }
  .legal dt { border-bottom: 0; padding-bottom: 0; }
  .foot-cartouche { grid-template-columns: minmax(0, 1fr); }
  .foot-cartouche div { border-left: 0 !important; }
  .foot-cartouche div + div { border-top: 1px solid var(--line-dark); }
  .doc { padding-top: 48px; }
  .doc table { font-size: 14px; }
  .doc th, .doc td { padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-header { position: static; }
  .hero, .about, .site-footer { background: var(--chalk) !important; color: var(--ink) !important; }
}

/* Chiffres alignes */
.facts-band .n, .section-head .num, .steps li::before, .features li::before, .product-id h3, .plate figcaption b, .mail { font-variant-numeric: lining-nums; }
@media (max-width: 1020px) { .gallery { position: static; } }

/* Editions sur telephone : tableau resserre, jamais de defilement horizontal */
@media (max-width: 680px) {
  .editions { margin-top: 80px; padding-top: 56px; }
  .compare { font-size: 13.5px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare thead th { font-size: 15px; }
  .compare thead small { font-size: 9px; letter-spacing: .14em; }
  .compare tbody th { width: auto; }
}


/* ---------------- Scene 3D du haut de page : le dalot qui tourne ---------------- */
.stage-wrap { margin: 0; }
.stage {
  position: relative; aspect-ratio: 1.08 / 1; width: 100%;
  border: 1px solid rgba(245,179,31,.22); border-bottom: 0;
  background: rgba(4,14,24,.55);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
.stage.is-dragging canvas { cursor: grabbing; }
.stage canvas:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.stage-fallback { display: none; }
html:not(.js) .stage { aspect-ratio: auto; padding: 14px; background: var(--paper); }
html:not(.js) .stage-fallback { display: block; width: 100%; height: auto; }
html:not(.js) .stage canvas, html:not(.js) .stage-ui, html:not(.js) .stage .corner { display: none; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold); pointer-events: none; }
.corner.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.stage-ui { position: absolute; z-index: 1; }
.stage-head { top: 30px; left: 36px; pointer-events: none; }
.stage-label { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; line-height: 1.4; }
.stage-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.stage-sub { margin: 4px 0 0; color: var(--mist); font-size: 13.5px; line-height: 1.4; }
.seg { top: 26px; right: 30px; display: flex; padding: 3px; border: 1px solid rgba(245,179,31,.32); border-radius: 10px; }
.seg button, .cells button {
  font-family: var(--font-text); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mist); background: transparent; border: 0; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.seg button { padding: 8px 13px; border-radius: 7px; }
.seg button:hover, .cells button:hover { color: var(--chalk); }
.seg button[aria-pressed="true"], .cells button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.stage-foot { left: 36px; right: 30px; bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-foot .hint { color: var(--slate-light); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; pointer-events: none; }
.cells { display: flex; align-items: center; gap: 6px; }
.cells-label { color: var(--slate-light); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; margin-right: 6px; }
.cells button { width: 32px; height: 32px; padding: 0; letter-spacing: 0; font-size: 13px;
  border: 1px solid rgba(244,243,238,.18); border-radius: 8px; }
.cells button[aria-pressed="true"] { border-color: var(--gold); }
.seg button:focus-visible, .cells button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cartouche-dark { border: 1px solid rgba(245,179,31,.22); color: var(--slate-light); }
.cartouche-dark div { border-left-color: rgba(245,179,31,.22); }
.cartouche-dark b { color: var(--chalk); }
@media (max-width: 680px) {
  .stage { aspect-ratio: 1 / 1.05; }
  .stage-head { top: 22px; left: 24px; }
  .stage-sub { display: none; }
  .seg { top: 18px; right: 18px; }
  .seg button { padding: 7px 9px; font-size: 9.5px; letter-spacing: .14em; }
  .stage-foot { left: 24px; right: 18px; bottom: 18px; }
  .stage-foot .hint { display: none; }
  .cells button { width: 30px; height: 30px; }
  .cartouche-dark div:first-child { border-bottom-color: rgba(245,179,31,.22); }
}
@media (prefers-reduced-motion: reduce) { .stage-label .dot { animation: none; } }
