/* SYSCOBOOKS, site vitrine.
   Identité reprise de l'application : malachite, cuivre, papier registre, tampon.
   Parti pris : la page est une feuille de registre. Marge cuivre, soulignement double
   des totaux sous chaque titre, chiffres en police à chasse fixe, et une écriture qui se scelle. */

@font-face { font-family: "Zilla Slab"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --texte: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chasse: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --papier: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #eaeee9;
  --encre: #16201b;
  --encre-2: #46554d;
  --filet: #d6ddd7;
  --filet-fort: #aebab2;
  --accent: #0e4d3c;
  --accent-clair: #d5eadf;
  --cuivre: #b4642a;
  --cuivre-texte: #8a4a1d;
  --cuivre-fond: #f6e6d8;
  --cuivre-filet: rgba(180, 100, 42, 0.55);
  --bouton: #9c5522;
  --tampon: #b3261e;
  --focus: #b4642a;
  --ombre: #c9d7ce;

  --hero: #0a3b2e;
  --hero-profond: #072a21;
  --hero-texte: #f1f7f3;
  --hero-doux: #c5e0d3;
  --hero-focus: #f0b27f;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0d1512;
    --surface: #131d19;
    --surface-2: #1a2621;
    --encre: #e6ede8;
    --encre-2: #adbcb3;
    --filet: #26352e;
    --filet-fort: #3a4d44;
    --accent: #6cc09c;
    --accent-clair: #17372c;
    --cuivre: #d98a52;
    --cuivre-texte: #e6a874;
    --cuivre-fond: #2a1d13;
    --cuivre-filet: rgba(217, 138, 82, 0.5);
    --focus: #e0975f;
    --ombre: #08100d;
    --hero: #07221b;
    --hero-profond: #041510;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.62 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--chasse); font-variant-numeric: tabular-nums; }
.sr-only { 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: 0.5rem; top: -4rem; z-index: 10; background: var(--surface); color: var(--encre); padding: 0.6rem 1rem; border: 2px solid var(--cuivre); }
.evitement:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

/* --- Boutons ------------------------------------------------------------ */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 2.9rem; padding: 0.6rem 1.35rem;
  font: 600 1rem/1.25 var(--texte); text-decoration: none;
  border: 2px solid transparent; border-radius: 3px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bouton-compact { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.95rem; }
.bouton-cuivre { background: var(--bouton); color: #fff; border-color: #c97a40; }
.bouton-cuivre:hover { background: #b4642a; }
.bouton-contour { color: var(--hero-texte); border-color: rgba(241, 247, 243, 0.55); }
.bouton-contour:hover { background: rgba(241, 247, 243, 0.12); border-color: var(--hero-texte); }
.bouton-plein { background: var(--accent); color: var(--papier); }
.bouton-plein:hover { background: var(--encre); }
.bouton-contour-encre { color: var(--accent); border-color: var(--accent); }
.bouton-contour-encre:hover { background: var(--accent-clair); }

/* --- Haut de page : en-tête et héros ------------------------------------ */
.entete-zone, .heros-zone { background: var(--hero); color: var(--hero-texte); --focus: var(--hero-focus); position: relative; }
.heros-zone::after {
  /* Filets de registre, très discrets, qui rappellent le papier à colonnes. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2.1rem, rgba(197, 224, 211, 0.06) 2.1rem, rgba(197, 224, 211, 0.06) calc(2.1rem + 1px));
}
.heros-zone > *, .entete-zone > * { position: relative; z-index: 1; }
.entete-zone { z-index: 5; }
.entete { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.marque { font: 600 1.45rem/1 var(--display); color: var(--hero-texte); text-decoration: none; letter-spacing: 0; }
.marque span { color: #f6e6d8; }
.menu { display: none; margin-inline: auto; gap: 1.6rem; }
.menu a { color: var(--hero-doux); text-decoration: none; font-size: 0.95rem; padding-block: 0.4rem; }
.menu a:hover { color: #fff; text-decoration: underline; }
.entete .bouton { margin-left: auto; }
@media (min-width: 900px) { .menu { display: flex; } .entete .bouton { margin-left: 0; } .menu-compact { display: none; } }
@media (max-width: 559px) { .entete-cta { display: none; } .menu-compact { margin-left: auto; } }

/* Menu compact : sections de la page, sans JavaScript. */
.menu-compact { position: relative; margin-left: auto; }
.menu-compact summary { cursor: pointer; list-style: none; padding: 0.5rem 0.9rem; border: 2px solid rgba(241, 247, 243, 0.45); border-radius: 3px; font: 600 0.95rem/1.2 var(--texte); color: var(--hero-texte); }
.menu-compact summary::-webkit-details-marker { display: none; }
.menu-compact[open] summary { background: rgba(241, 247, 243, 0.12); }
.menu-compact nav { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 5; display: grid; min-width: 14rem; background: var(--hero-profond); border: 1px solid rgba(241, 247, 243, 0.3); padding: 0.4rem; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3); }
.menu-compact nav a { color: var(--hero-texte); text-decoration: none; padding: 0.7rem 0.8rem; }
.menu-compact nav a:hover { background: rgba(241, 247, 243, 0.12); }
.menu-compact nav a[hidden] { display: none; }

.heros { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); align-items: center; }
@media (min-width: 960px) { .heros { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.surtitre { font: 500 0.78rem/1.4 var(--chasse); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-doux); margin-bottom: 1.1rem; }
.heros h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.06; color: #fff; max-width: 22ch; text-wrap: balance; }
.chapo { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--hero-doux); max-width: 38em; margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 0.9rem; }
.note-heros { font-size: 0.92rem; color: var(--hero-doux); margin: 0; }
.note-compte { margin-top: 0.5rem; }
.note-compte a { color: #fff; }

/* --- La fiche d'écriture : signature du site ------------------------------ */
.heros-fiche { min-width: 0; }
.fiche {
  position: relative; background: #fcfdfb; color: #16201b; border-radius: 2px;
  padding: 1.1rem 1.15rem 1rem; box-shadow: 9px 9px 0 var(--hero-profond), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  --focus: #b4642a;
}
.fiche::before { /* marge cuivre, comme sur une page de journal */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0.55rem; width: 4px; border-left: 1px solid var(--cuivre-filet); border-right: 1px solid var(--cuivre-filet);
}
.fiche > * { margin-left: 0.7rem; }
.fiche-tete { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.2rem 1rem; font: 500 0.74rem/1.4 var(--chasse); letter-spacing: 0.06em; text-transform: uppercase; color: #46554d; padding-right: 7.5rem; }
.fiche-titre { font: 600 1.5rem/1.2 var(--display); margin: 0.35rem 0 0.8rem; padding-right: 0; }
.lignes { width: calc(100% - 0.7rem); border-collapse: collapse; font-size: 0.9rem; table-layout: fixed; }
.lignes th:first-child, .lignes td:first-child { width: 42%; }
.lignes th, .lignes td { overflow-wrap: anywhere; }
.lignes th, .lignes td { padding: 0.5rem 0.35rem; vertical-align: top; border-top: 1px solid #d6ddd7; text-align: left; font-weight: 400; }
.lignes thead th { border-top: 0; font: 500 0.7rem/1.2 var(--chasse); text-transform: uppercase; letter-spacing: 0.08em; color: #46554d; padding-block: 0.2rem; }
.lignes small { display: block; color: #46554d; font-size: 0.8rem; }
.compte { font-family: var(--chasse); font-size: 0.82rem; color: #46554d; margin-right: 0.3rem; }
.num { text-align: right !important; font-family: var(--chasse); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lignes tfoot th, .lignes tfoot td { border-top: 3px double #7c8a82; font-weight: 600; font-family: var(--texte); }
.lignes tfoot .num { font-family: var(--chasse); padding-left: 0.9rem; }
.equilibre { font-size: 0.86rem; margin: 0.7rem 0 0.9rem 0.7rem; color: #0e4d3c; }
.equilibre::before { content: ""; display: inline-block; width: 0.6rem; height: 0.35rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-0.15rem); margin-right: 0.55rem; }
.etapes { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem !important; }
.etapes li { font: 500 0.72rem/1 var(--chasse); letter-spacing: 0.05em; text-transform: uppercase; padding: 0.4rem 0.55rem; border: 1px dashed #aebab2; color: #5a6a61; }
.etapes li[aria-current="step"] { border-style: solid; border-color: #0e4d3c; background: #0e4d3c; color: #fff; }
.sceau { border-top: 1px dashed #aebab2; padding-top: 0.7rem; }
.sceau-titre { font: 500 0.7rem/1.3 var(--chasse); text-transform: uppercase; letter-spacing: 0.08em; color: #46554d; margin: 0 0 0.25rem; }
.sceau-hash { font: 400 0.76rem/1.5 var(--chasse); overflow-wrap: anywhere; max-width: 36ch; margin: 0; color: #16201b; }
.fiche[data-etat="brouillon"] .sceau, .fiche[data-etat="validee"] .sceau { opacity: 0.45; }
.sceau-precedente { font-size: 0.74rem; color: #46554d; margin: 0.35rem 0 0; }
.equilibre.alerte { color: #8a2019; font-weight: 600; }
.equilibre.alerte::before { border: 0; width: 0.6rem; height: 0.6rem; transform: none; background: linear-gradient(45deg, transparent 43%, currentColor 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, currentColor 43% 57%, transparent 57%); }

/* Tampon : même fabrication que dans l'application. */
.tampon {
  display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; white-space: nowrap;
  border: 2px solid currentColor; border-radius: 4px; box-shadow: inset 0 0 0 1px #fcfdfb, inset 0 0 0 2px currentColor;
  font: 500 0.7rem/1.3 var(--chasse); letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-3deg); mix-blend-mode: multiply; color: #0e4d3c; opacity: 0.92;
}
.tampon-grand { position: absolute; top: 0.9rem; right: 0.9rem; margin: 0 !important; font-size: 0.82rem; padding: 0.3rem 0.7rem; border-width: 3px; transform: rotate(-5deg); }
.fiche[data-etat="brouillon"] .tampon { color: #5a6a61; border-style: dashed; box-shadow: none; }
.fiche[data-etat="validee"] .tampon { color: #8a4a1d; }
.fiche[data-etat="refusee"] .tampon { color: #0e4d3c; }
@media (prefers-reduced-motion: no-preference) {
  .tampon-grand.presse { animation: presse 420ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
}
@keyframes presse { from { transform: rotate(-5deg) scale(1.7); opacity: 0; } 55% { opacity: 1; } to { transform: rotate(-5deg) scale(1); opacity: 0.92; } }

.commandes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.bouton-fiche { font: 600 0.86rem/1.2 var(--texte); padding: 0.55rem 0.8rem; min-height: 2.5rem; background: #0e4d3c; color: #fff; border: 2px solid #0e4d3c; border-radius: 3px; cursor: pointer; }
.bouton-fiche:hover { background: #072a21; }
.bouton-fiche[hidden], .commandes[hidden] { display: none; }
#alterer { background: transparent; color: #8a2019; border-color: #b3261e; }
#alterer:hover { background: #f8e1df; }
.bouton-fiche-lien { background: transparent; color: #0e4d3c; border-color: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
.bouton-fiche-lien:hover { background: #eef6f2; }
.verdict { font-size: 0.86rem; margin: 0.8rem 0 0 0.7rem; }
.verdict:empty { display: none; }
.verdict p { margin: 0 0 0.45em; }
.verdict .refus { color: #8a2019; font-weight: 600; }
.verdict .hash-ecart { font: 400 0.72rem/1.5 var(--chasse); word-break: break-all; color: #46554d; }
.legende-fiche { font-size: 0.82rem; color: var(--hero-doux); margin: 1.5rem 0 0; max-width: 46em; }
.legende-fiche strong { color: #fff; }

/* --- Réserve visible ------------------------------------------------------ */
.reserve { background: var(--cuivre-fond); color: var(--encre); border-block: 1px solid var(--cuivre-filet); }
.reserve p { margin: 0; padding-block: 1rem; font-size: 0.98rem; max-width: 60em; }
.reserve strong { color: var(--cuivre-texte); }

.aujourdhui { padding-block: clamp(1.6rem, 4vw, 2.6rem); border-bottom: 1px solid var(--filet); }
.aujourdhui h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.15; margin-bottom: 0.9rem; }
.aujourdhui-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem 2rem; }
@media (min-width: 860px) { .aujourdhui-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aujourdhui-liste li { border-top: 4px double var(--filet-fort); padding-top: 0.7rem; font-size: 0.97rem; color: var(--encre-2); }
.aujourdhui-liste strong { display: block; color: var(--encre); font: 600 1.08rem/1.25 var(--display); margin-bottom: 0.2rem; }

/* --- Blocs : feuille de registre ------------------------------------------ */
.bloc { padding-block: clamp(3rem, 7vw, 6rem); }
.bloc + .bloc { border-top: 1px solid var(--filet); }
.bloc-sombre { background: var(--surface-2); }
.grille-bloc { display: grid; gap: 1.6rem; }
@media (min-width: 960px) {
  .grille-bloc { grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); }
  .bloc-titre { position: sticky; top: 1.5rem; align-self: start; }
  .bloc-corps { border-left: 4px double var(--cuivre-filet); padding-left: clamp(1.5rem, 4vw, 3.2rem); }
}
.bloc-titre h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; padding-bottom: 0.5rem; border-bottom: 5px double var(--filet-fort); margin-bottom: 0.9rem; text-wrap: balance; }
.bloc-titre p { color: var(--encre-2); font-size: 0.98rem; margin: 0; }
.bloc-corps > p:last-child { margin-bottom: 0; }
.bloc-corps h3 { font-size: 1.28rem; line-height: 1.2; margin-bottom: 0.4rem; }
.bloc-corps article p, .bloc-corps li > p { margin-bottom: 0.6em; }

.trio { display: grid; gap: 2rem 2.2rem; }
@media (min-width: 700px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Cycle de vie : une vraie suite, donc numérotée. */
.cycle { counter-reset: etape; display: grid; gap: 0; }
.cycle li { counter-increment: etape; position: relative; padding: 0 0 1.6rem 3.6rem; }
.cycle li::before { content: counter(etape); position: absolute; left: 0; top: 0.05rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; font: 500 0.95rem/1 var(--chasse); border: 2px solid var(--accent); color: var(--accent); border-radius: 50%; background: var(--papier); }
.cycle li::after { content: ""; position: absolute; left: calc(1.15rem - 1px); top: 2.5rem; bottom: 0.2rem; border-left: 2px dotted var(--filet-fort); }
.cycle li:last-child { padding-bottom: 0.4rem; }
.cycle li:last-child::after { display: none; }

/* Blocs repliables sur téléphone : ouverts partout ailleurs, fermés par le script sur petit écran. */
.repli > summary { display: none; }
@media (max-width: 700px) {
  .repli > summary { display: block; cursor: pointer; padding: 0.8rem 2.4rem 0.8rem 0.9rem; border: 2px solid var(--accent); border-radius: 3px; font: 600 1rem/1.3 var(--texte); color: var(--accent); list-style: none; position: relative; }
  .repli > summary::-webkit-details-marker { display: none; }
  .repli > summary::after { content: "+"; position: absolute; right: 0.9rem; top: 0.7rem; font: 400 1.4rem/1 var(--chasse); }
  .repli[open] > summary::after { content: "\2212"; }
  .repli[open] > summary { margin-bottom: 1rem; }
  .heros-zone .repli > summary { color: var(--hero-texte); border-color: rgba(241, 247, 243, 0.55); }
  .repli-hero { margin-top: 0.8rem; }
  .repli-hero[open] > summary { margin-bottom: 0.6rem; }
}
h2:focus, h2:focus-visible { outline-offset: 6px; }

/* Fonctions : lignes de registre. */
.registre { margin: 0; }
.registre > div { display: grid; gap: 0.25rem 2rem; padding: 1rem 0; border-top: 1px solid var(--filet); }
.registre > div:last-child { border-bottom: 1px solid var(--filet); }
@media (min-width: 700px) { .registre > div { grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); } }
.registre dt { font: 600 1.15rem/1.25 var(--display); }
.registre dd { margin: 0; color: var(--encre-2); }
.etiquette { display: inline-block; vertical-align: middle; margin-left: 0.3rem; padding: 0.1rem 0.4rem; font: 500 0.66rem/1.3 var(--chasse); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cuivre-texte); border: 1px solid var(--cuivre-filet); border-radius: 2px; white-space: nowrap; }

/* Captures. */
.vue { margin: 2.2rem 0 0; }
.vue-lien { display: block; }
.vue img { width: 100%; border: 1px solid var(--filet-fort); box-shadow: 8px 8px 0 var(--ombre); background: var(--surface); }
.vue figcaption { margin-top: 1.1rem; font-size: 0.9rem; color: var(--encre-2); max-width: 46em; }
.vue-etroite { max-width: 700px; }
.vues { max-width: 760px; }
@media (max-width: 759px) {
  /* Sur téléphone, les trois captures se font défiler d'un côté à l'autre : la page reste courte. */
  .vues { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 1rem 0; max-width: none; }
  .vues .vue { flex: 0 0 86%; scroll-snap-align: start; margin-top: 1.4rem; }
  .vues .vue img { box-shadow: 4px 4px 0 var(--ombre); }
}
.mots { margin: 2rem 0 0; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--filet); border-left: 4px double var(--cuivre-filet); }
.mots > div { display: grid; gap: 0.1rem 1.2rem; padding: 0.55rem 0; border-top: 1px solid var(--filet); }
.mots > div:first-child { border-top: 0; }
@media (min-width: 700px) { .mots > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.mots dt { font: 600 1rem/1.3 var(--display); }
.mots dd { margin: 0; font-size: 0.95rem; color: var(--encre-2); }
.aparte { font-size: 0.88rem; color: var(--encre-2); margin-top: 1.8rem; }

.garanties { display: grid; gap: 1.8rem 2.2rem; }
@media (min-width: 700px) { .garanties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Étapes : suite réelle. */
.pas { counter-reset: pas; display: grid; gap: 2rem; }
.pas li { counter-increment: pas; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 0.4rem; }
.pas li::before { content: counter(pas); font: 600 3rem/0.95 var(--display); color: var(--cuivre); grid-row: 1 / span 3; }
.pas li > * { grid-column: 2; }
.pas li p:last-child { margin-bottom: 0; }

/* FAQ : éléments natifs, utilisables au clavier. */
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { cursor: pointer; padding: 1rem 2.4rem 1rem 0; font: 600 1.12rem/1.3 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 0.85rem; font: 400 1.5rem/1 var(--chasse); color: var(--cuivre-texte); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.1rem; color: var(--encre-2); max-width: 46em; }

/* État du produit. */
.etat { display: grid; gap: 1.8rem 2rem; }
@media (min-width: 760px) { .etat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.etat section { border-top: 4px double var(--filet-fort); padding-top: 0.8rem; }
.etat li { position: relative; padding-left: 1rem; margin-bottom: 0.65rem; font-size: 0.97rem; color: var(--encre-2); }
.etat li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.4rem; height: 2px; background: var(--cuivre); }

.mention { font-size: 0.95rem; color: var(--encre-2); max-width: 40em; }
.contact-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.contact-ligne .mono { font-size: 1.05rem; }
[hidden] { display: none !important; }

/* Pied de page. */
.pied { background: var(--hero); color: var(--hero-texte); padding-block: 2.6rem; --focus: var(--hero-focus); }
.pied-grille { display: grid; gap: 1.8rem 3rem; }
@media (min-width: 760px) { .pied-grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.marque-pied { margin: 0 0 0.8rem; }
.pied-reserve { color: var(--hero-doux); font-size: 0.92rem; max-width: 40em; margin: 0; }
.pied-reserve + .pied-reserve { margin-top: 0.8rem; }
.pied a { color: var(--hero-texte); }
.pied li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.pied .mono { color: var(--hero-doux); font-size: 0.9rem; margin-left: 0.4rem; }

/* Page 404. */
.page-simple { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem 0; background: var(--hero); color: var(--hero-texte); --focus: var(--hero-focus); }
.page-simple h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.2rem); margin: 1.5rem 0 1rem; }
.page-simple p { color: var(--hero-doux); max-width: 34em; }

/* Pages légales : texte long, lisible, sans colonne latérale. */
.entete-simple .bouton { margin-left: auto; }
.page-legale { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem); }
.texte-legal { max-width: 50rem; }
.page-legale h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; text-wrap: balance; margin-bottom: 0.6rem; }
.page-legale .maj { color: var(--encre-2); font-size: 0.95rem; margin-bottom: 1.6rem; }
.sommaire { background: var(--surface); border: 1px solid var(--filet); border-left: 4px double var(--cuivre-filet); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.sommaire p { font: 600 0.78rem/1.3 var(--chasse); text-transform: uppercase; letter-spacing: 0.08em; color: var(--encre-2); margin-bottom: 0.5rem; }
.sommaire ol { list-style: decimal; padding-left: 1.5rem; }
.sommaire li { margin-bottom: 0.2rem; font-size: 0.97rem; }
.page-legale section { padding-top: 1.6rem; margin-top: 1.8rem; border-top: 1px solid var(--filet); scroll-margin-top: 1rem; }
.page-legale h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; margin-bottom: 0.8rem; text-wrap: balance; }
.page-legale h3 { font-size: 1.12rem; line-height: 1.25; margin: 1.3rem 0 0.4rem; }
.page-legale ul, .page-legale ol.liste { list-style: disc; padding-left: 1.3rem; margin: 0 0 1em; }
.page-legale ol.liste { list-style: decimal; }
.page-legale li { margin-bottom: 0.35em; }
.identite { display: grid; gap: 0.15rem 1.5rem; margin: 0 0 1rem; }
.identite dt { font: 600 0.78rem/1.4 var(--chasse); text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-2); margin-top: 0.7rem; }
.identite dd { margin: 0; }
@media (min-width: 700px) {
  .identite { grid-template-columns: 14rem minmax(0, 1fr); }
  .identite dt { margin-top: 0; padding-block: 0.5rem; border-top: 1px solid var(--filet); }
  .identite dd { padding-block: 0.5rem; border-top: 1px solid var(--filet); }
}
.encadre { background: var(--cuivre-fond); border: 1px solid var(--cuivre-filet); padding: 0.9rem 1.1rem; margin: 0 0 1.2rem; }
.encadre p:last-child { margin-bottom: 0; }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1.2rem; }
.tableau caption { text-align: left; font-weight: 600; padding-bottom: 0.4rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-top: 1px solid var(--filet); }
.tableau thead th { font: 600 0.74rem/1.3 var(--chasse); text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-2); border-top: 0; border-bottom: 2px solid var(--filet-fort); }
@media (max-width: 699px) {
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau, .tableau tbody, .tableau tr, .tableau td, .tableau th { display: block; }
  .tableau caption { display: block; width: 100%; }
  .tableau tr { border-top: 2px solid var(--filet-fort); padding: 0.6rem 0; }
  .tableau td, .tableau th { border: 0; padding: 0.25rem 0; }
  .tableau td::before { content: attr(data-label); display: block; font: 600 0.72rem/1.3 var(--chasse); text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-2); }
}
.pied-liens { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.pied-liens li { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .bloc { padding-block: 2.3rem; }
  .aujourdhui { padding-block: 1.2rem; }
  .aujourdhui-liste { gap: 0.7rem; }
  .heros { padding-block: 1.2rem 2rem; gap: 1.6rem; }
  .heros h1 { font-size: 1.7rem; }
  .surtitre { font-size: 0.7rem; margin-bottom: 0.7rem; }
  .chapo { margin-top: 0.9rem; font-size: 1rem; }
  .actions { margin-top: 1.2rem; }
  .actions .bouton { width: 100%; }
  .note-heros { font-size: 0.85rem; }
  .legende-fiche { font-size: 0.78rem; margin-top: 1rem; }
  .etapes { gap: 0.3rem; }
  .etapes li { font-size: 0.62rem; padding: 0.35rem 0.4rem; }
  .sceau-precedente { font-size: 0.7rem; }
  .fiche-titre { margin-bottom: 0.4rem; }
  .equilibre { margin-block: 0.5rem; }
  .vues .vue { flex-basis: 88%; }
  .bloc-titre p { font-size: 0.93rem; }
  .trio { gap: 1.2rem; }
  .garanties { gap: 1.2rem; }
  .registre > div { padding: 0.8rem 0; }
  .cycle li { padding-bottom: 1.1rem; }
  .fiche { padding-inline: 0.8rem; box-shadow: 6px 6px 0 var(--hero-profond); }
  .fiche-titre { font-size: 1.25rem; }
  .fiche-tete { padding-right: 0; flex-direction: column; margin-top: 2.3rem; }
  .tampon-grand { top: 0.7rem; right: 0.6rem; font-size: 0.72rem; }
  .lignes th, .lignes td { padding-inline: 0.2rem; font-size: 0.82rem; }
  .lignes th:first-child, .lignes td:first-child { width: 36%; }
  .num { font-size: 0.7rem; letter-spacing: -0.02em; }
  .lignes th:first-child, .lignes td:first-child { width: 32%; }
  .lignes tfoot th { font-size: 0.78rem; }
  .lignes tfoot .num { font-size: 0.66rem; font-weight: 400; padding-left: 0.1rem; padding-right: 0.1rem; letter-spacing: -0.04em; }
  .compte { display: block; margin: 0; }
  .pas li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .pas li::before { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .haut::after, .menu, .commandes { display: none; }
  .haut, .pied, .page-simple { background: #fff; color: #000; }
}
