/* ==========================================================================
   Imprimerie Cucuron — démonstration
   Deux registres, un seul parcours :
     .tradition   papier crème, slab, filets, frappe en creux, repères de calage
     .contemporain blanc, grille nette, sans empattement, hairlines
   La bascule entre les deux se fait par la bande .transition.
   Tout est fluide : aucune largeur fixe, aucun débordement horizontal.
   ========================================================================== */

/* ------------------------------------------------------------------ polices */
@font-face {
  font-family: "Bitter";
  src: url("polices/bitter-var.woff2") format("woff2-variations"),
       url("polices/bitter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("polices/inter-var.woff2") format("woff2-variations"),
       url("polices/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ jetons */
:root {
  /* registre tradition : papier et encre */
  --papier: #f6f1e5;
  --papier-creux: #efe7d6;
  --papier-clair: #fbf7ee;
  --encre: #17130f;          /* 16,4:1 sur le papier */
  --encre-2: #4a3f34;        /*  9,1:1 */
  --encre-3: #5a4d40;        /*  7,3:1 */
  --vermillon: #a8342a;      /*  5,8:1 sur papier, 6,4:1 sur blanc */
  --vermillon-fonce: #8f2a1f;/*  7,4:1 sur papier */
  --filet: #cdbfa6;
  --filet-fort: #a9977c;
  --repere: #8a7a62;

  /* registre contemporain */
  --blanc: #fbfbf9;
  --blanc-pur: #ffffff;
  --noir: #14161a;
  --gris: #55606e;           /*  6,2:1 sur blanc */
  --gris-clair: #7c8694;
  --trait: #e2e4e6;

  /* verdicts — lisibles sur blanc comme sur papier */
  --valide: #1c5a37;         /*  7,9:1 sur blanc */
  --valide-fond: #e8f1ea;
  --limite: #8a5610;         /*  5,9:1 sur blanc */
  --limite-fond: #f7eddc;
  --refus: #a8342a;          /*  6,4:1 sur blanc */
  --refus-fond: #f8e9e7;

  --police-titre: "Bitter", "Rockwell", "Bookman Old Style", Georgia, serif;
  --police-texte: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --police-chiffres: "Inter", "SF Mono", ui-monospace, "Courier New", monospace;

  --largeur: 68rem;
  --marge: clamp(1rem, 4vw, 3rem);
  --règle: 1px solid var(--trait);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
  /* texture papier : deux dégradés très doux, aucun fichier binaire */
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(900px 500px at 90% 0%, rgba(196, 173, 138, 0.18), transparent 65%);
  background-repeat: no-repeat;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: var(--vermillon); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--vermillon-fonce); }
strong { font-weight: 600; }
small { font-size: 0.8125rem; }

:focus-visible {
  outline: 3px solid var(--vermillon);
  outline-offset: 2px;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* --------------------------------------------------- bandeau démonstration */
.bandeau-demo {
  background: var(--encre);
  color: #f3ecdd;               /* 15,9:1 */
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.45rem 0;
}
.bandeau-demo .conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
}
.bandeau-demo strong {
  font-family: var(--police-texte);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: #ffd9b8;
  white-space: nowrap;
}
.bandeau-demo span { flex: 1 1 14rem; min-width: 0; }

/* ------------------------------------------------------- en-tête / masthead */
.entete {
  position: relative;
  border-bottom: 3px double var(--filet-fort);
  padding-block: clamp(0.9rem, 2.5vw, 1.6rem) clamp(0.6rem, 1.6vw, 0.9rem);
}
.entete .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.marque { min-width: 0; }
.marque .nom {
  display: block;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: clamp(1.15rem, 1rem + 1.6vw, 1.9rem);
  letter-spacing: 0.01em;
  color: var(--encre);
  text-decoration: none;
  line-height: 1.1;
}
.marque .nom:hover { color: var(--vermillon-fonce); }
.marque .devise {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-top: 0.25rem;
}

nav.principale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
nav.principale a {
  color: var(--encre-2);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
nav.principale a:hover { color: var(--vermillon-fonce); border-bottom-color: var(--vermillon); }
nav.principale a[aria-current="page"] {
  color: var(--encre);
  border-bottom: 2px solid var(--vermillon);
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  overflow: clip;             /* les repères de calage restent dans le cadre */
}
.hero .conteneur { position: relative; }

/* repères de calage : le cercle et la croix des traits de coupe */
.reperes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
.repere {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--repere);
  border-radius: 50%;
  opacity: 0.5;
  background:
    linear-gradient(var(--repere), var(--repere)) center / 1px 100% no-repeat,
    linear-gradient(var(--repere), var(--repere)) center / 100% 1px no-repeat;
}
.repere:nth-child(1) { top: 0; left: 0; }
.repere:nth-child(2) { top: 0; right: 0; }
.repere:nth-child(3) { bottom: 0; left: 0; }
.repere:nth-child(4) { bottom: 0; right: 0; }
@media (min-width: 62rem) { .reperes { display: block; } }

.surtitre {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin: 0 0 1rem;
}
.surtitre .puce { color: var(--vermillon); }

.hero-titre {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.2rem + 6.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
  color: var(--encre);
  /* frappe en creux : lumière sous le trait, ombre au-dessus */
  text-shadow: 0 -1px 0 rgba(23, 19, 15, 0.28), 0 1px 0 rgba(255, 255, 255, 0.85);
  max-width: 20ch;
}
.hero-titre .creux {
  color: var(--vermillon-fonce);
  text-shadow: 0 -1px 0 rgba(143, 42, 31, 0.3), 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-accroche {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--encre-2);
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

/* filet orné : deux filets et un losange */
.filet-orne {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0;
  color: var(--filet-fort);
}
.filet-orne::before, .filet-orne::after {
  content: "";
  flex: 1 1 auto;
  height: 3px;
  border-top: 1px solid var(--filet-fort);
  border-bottom: 1px solid var(--filet);
}
.filet-orne .losange {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--vermillon);
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.bouton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--encre);
  border-radius: 2px;
  text-decoration: none;
  background: var(--encre);
  color: #f7f2e7;                 /* 16,2:1 */
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bouton:hover { background: var(--vermillon-fonce); border-color: var(--vermillon-fonce); color: #fff; }
.bouton--second {
  background: transparent;
  color: var(--encre);
  border-color: var(--filet-fort);
}
.bouton--second:hover {
  background: transparent;
  color: var(--vermillon-fonce);
  border-color: var(--vermillon);
}

/* nuancier : les cinq teintes du site, nommées en clair */
.nuancier {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nuancier li {
  border: 1px solid var(--filet);
  background: var(--papier-clair);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--encre-2);
  min-width: 0;
}
.nuancier .teinte {
  display: block;
  height: 2.5rem;
  border-bottom: 1px solid var(--filet);
  /* liseré intérieur : sans lui, la teinte « papier crème » se confond avec le
     fond de la page et la case paraît vide */
  box-shadow: inset 0 0 0 1px rgba(23, 19, 15, 0.16);
}
.nuancier .nom-teinte { display: block; padding: 0.4rem 0.45rem 0.45rem; }
.nuancier .nom-teinte b { display: block; font-weight: 600; color: var(--encre); font-size: 0.8125rem; }
/* Les teintes sont posées par classe, jamais en attribut `style` : la politique
   de sécurité (style-src 'self') interdit les styles en ligne, et c'est très
   bien ainsi — un bloc de couleur doit rester dans la feuille de style. */
.teinte--noir { background: #17130f; }
.teinte--vermillon { background: #a8342a; }
.teinte--papier { background: #f6f1e5; }
.teinte--amiante { background: #cdbfa6; }
.teinte--terre { background: #4a3f34; }

/* -------------------------------------------------- registre contemporain */
.contemporain {
  background: var(--blanc);
  color: var(--noir);
  font-family: var(--police-texte);
}
.contemporain h2, .contemporain h3 { letter-spacing: -0.02em; }

/* bande de bascule entre les deux registres */
.transition {
  background: linear-gradient(180deg, var(--papier) 0%, var(--papier-creux) 1.5rem, var(--papier-creux) calc(100% - 1.5rem), var(--blanc) 100%);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--filet);
  border-bottom: var(--règle);
}
.transition .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.transition .trait {
  flex: 1 1 6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--filet-fort), var(--encre));
  min-width: 3rem;
}
.transition p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-2);
  white-space: nowrap;
}

/* sections */
.section { padding-block: clamp(2.25rem, 6vw, 4.5rem); }
.section--papier { background: var(--papier); }
.section--papier-creux { background: var(--papier-creux); border-block: 1px solid var(--filet); }
.section--blanc { background: var(--blanc); }
.section--blanc-pur { background: var(--blanc-pur); border-block: var(--règle); }

.section-tete { max-width: 52ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-tete h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.3rem);
  margin-bottom: 0.5rem;
}
.section-tete p { color: var(--encre-2); margin-bottom: 0; }
.contemporain .section-tete p { color: var(--gris); }

.etiq {
  display: inline-block;
  font-family: var(--police-texte);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermillon-fonce);
  margin-bottom: 0.6rem;
}

/* grilles */
.grille { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* cartes registre tradition : filets, pas d'ombre */
.carte-trad {
  border: 1px solid var(--filet);
  border-top: 3px solid var(--encre);
  background: var(--papier-clair);
  padding: 1.1rem 1.2rem 1.25rem;
  min-width: 0;
}
.carte-trad h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.carte-trad h3 .cadratin {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.4;
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  background: var(--vermillon-fonce);
  color: #fff;                 /* 8:1 */
  flex: 0 0 auto;
}
.carte-trad p { font-size: 0.9375rem; color: var(--encre-2); margin-bottom: 0.5rem; }

/* étapes contemporaines : numérotation nette, hairline */
.etape {
  border-top: 2px solid var(--noir);
  padding-top: 0.9rem;
  min-width: 0;
}
.etape .num {
  font-family: var(--police-chiffres);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--vermillon);
  display: block;
  margin-bottom: 0.35rem;
}
.etape h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.etape p { font-size: 0.9375rem; color: var(--gris); margin: 0; }

/* chiffres clés */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  margin: 0;
}
.chiffres > div { background: var(--blanc-pur); padding: 1rem 1.1rem; min-width: 0; }
.chiffres dt {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.3rem;
}
.chiffres dd {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.1;
  color: var(--noir);
}
.chiffres dd small {
  display: block;
  font-family: var(--police-texte);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gris);
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------- tableaux */
.tableau-cadre { border: 1px solid var(--trait); background: var(--blanc-pur); }
table.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
table.tableau caption {
  caption-side: top;
  text-align: left;
  padding: 0.85rem 1rem 0.35rem;
  font-size: 0.8125rem;
  color: var(--gris);
}
table.tableau th, table.tableau td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--trait);
  vertical-align: baseline;
}
table.tableau thead th {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  font-weight: 600;
  border-bottom: 1px solid var(--noir);
  background: var(--blanc);
}
table.tableau tbody tr:last-child td { border-bottom: 0; }
table.tableau .num-col { text-align: right; white-space: nowrap; }
table.tableau .fort { font-weight: 600; color: var(--noir); }
table.tableau tr.mise-en-avant { background: #fffdf6; }

/* sous 44rem : le tableau devient une liste de fiches, sans défilement latéral */
@media (max-width: 44rem) {
  /* l'en-tête est reporté dans des étiquettes (`data-label`), pas perdu pour
     autant : chaque cellule annonce sa colonne avant sa valeur. */
  table.tableau thead { display: none; }
  table.tableau, table.tableau tbody, table.tableau tr, table.tableau td { display: block; width: 100%; }
  table.tableau tr {
    border-bottom: 1px solid var(--trait);
    padding: 0.6rem 0;
  }
  table.tableau tr:last-child { border-bottom: 0; }
  table.tableau td {
    border: 0;
    padding: 0.18rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
    justify-content: space-between;
    text-align: right;
  }
  table.tableau td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gris);
    text-align: left;
    font-weight: 600;
  }
  table.tableau td:first-child {
    font-weight: 700;
    font-size: 0.9375rem;
    padding-bottom: 0.3rem;
  }
  table.tableau td:first-child::before { content: none; }
  table.tableau .num-col { text-align: right; }
}

/* ------------------------------------------------------------- formulaire */
.formulaire { max-width: 46rem; }
.champ { margin-bottom: 1.75rem; min-width: 0; }
.champ > legend, .champ > .etiquette {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.6rem;
  padding: 0;
}
.champ legend .obligatoire { color: var(--refus); }
.aide { font-size: 0.8125rem; color: var(--gris); margin: 0.4rem 0 0; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* choix du format : cartes radio, sans JavaScript */
.formats-radio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: 0.5rem;
}
.formats-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.formats-radio label {
  display: block;
  border: 1px solid var(--trait);
  background: var(--blanc-pur);
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.formats-radio label:hover { border-color: var(--gris-clair); }
.formats-radio input[type="radio"]:checked + label {
  border-color: var(--noir);
  background: #fffdf6;
  box-shadow: inset 0 0 0 1px var(--noir);
}
.formats-radio input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--vermillon);
  outline-offset: 2px;
}
.formats-radio .f-nom {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--noir);
  line-height: 1.25;
}
.formats-radio .f-dim {
  display: block;
  font-size: 0.75rem;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* zone de dépôt */
.zone-depot {
  border: 2px dashed var(--gris-clair);
  background: var(--blanc-pur);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  min-width: 0;
}
.zone-depot input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 0.875rem;
  color: var(--noir);
  background: var(--blanc);
  border: 1px solid var(--trait);
  padding: 0.6rem;
}
.zone-depot input[type="file"]::file-selector-button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--noir);
  background: var(--noir);
  color: #fff;
  border-radius: 2px;
  cursor: pointer;
}
.zone-depot ul { margin: 0.75rem 0 0; padding-left: 1.1rem; font-size: 0.8125rem; color: var(--gris); }
.zone-depot li { margin-bottom: 0.2rem; }

.bouton--large { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; font-size: 1rem; }

/* messages */
.message {
  border-left: 4px solid var(--refus);
  background: var(--refus-fond);
  color: #5f1b14;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
.message strong { display: block; margin-bottom: 0.2rem; color: var(--refus); }
.message code { font-size: 0.8125rem; word-break: break-word; }

/* --------------------------------------------------------------- verdicts */
.verdict {
  border: 1px solid var(--trait);
  border-top-width: 5px;
  background: var(--blanc-pur);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  margin-bottom: 2rem;
  min-width: 0;
}
.verdict--suffisant { border-top-color: var(--valide); }
.verdict--limite { border-top-color: var(--limite); }
.verdict--insuffisant { border-top-color: var(--refus); }

.verdict-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
  line-height: 1.2;
}
.pastille::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}
.verdict--suffisant .pastille { color: var(--valide); }
.verdict--limite .pastille { color: var(--limite); }
.verdict--insuffisant .pastille { color: var(--refus); }
.pastille--neutre { color: var(--gris); }
.verdict-titre {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.65rem);
  margin: 0;
  color: var(--noir);
}
.verdict-texte { color: var(--gris); margin-bottom: 1.25rem; max-width: 58ch; }

/* relevé de mesures : grille de définitions */
.releve {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  margin: 0 0 1.25rem;
}
.releve > div { background: var(--blanc-pur); padding: 0.75rem 0.9rem; min-width: 0; }
.releve dt {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 0.25rem;
}
.releve dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--noir);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.releve dd small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--gris); margin-top: 0.15rem; }
.releve dd .manque { color: var(--refus); }

/* jauge : la part du besoin couverte par le fichier */
.jauge {
  border: 1px solid var(--trait);
  background: var(--blanc);
  height: 0.85rem;
  margin: 0 0 0.4rem;
  position: relative;
  overflow: hidden;
}
/* repère du plancher de 150 dpi : la moitié de la jauge, puisque 150 est la
   moitié de 300. Sans ce trait, un remplissage à 47 % laisse croire qu'on est
   au-dessus du plancher alors qu'on est juste en dessous. */
.jauge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--noir);
  opacity: 0.5;
}
.jauge span {
  display: block;
  height: 100%;
  background: var(--valide);
}
.jauge--limite span { background: var(--limite); }
.jauge--insuffisant span { background: var(--refus); }
.jauge-legende {
  font-size: 0.8125rem;
  color: var(--gris);
  margin: 0 0 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* listes de formats imprimables */
.liste-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.liste-formats li { min-width: 0; }
.liste-formats a, .liste-formats span.pastille-format {
  display: inline-block;
  border: 1px solid var(--trait);
  background: var(--blanc);
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  color: var(--noir);
  text-decoration: none;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.liste-formats a:hover { border-color: var(--noir); background: #fffdf6; }
.liste-formats .px { display: block; font-size: 0.6875rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.liste-formats--faible a, .liste-formats--faible span.pastille-format { color: var(--limite); border-style: dashed; }
.vide { color: var(--gris); font-size: 0.875rem; font-style: italic; margin: 0 0 1.25rem; }

/* encadré méthode */
.encadre-methode {
  border: 1px solid var(--filet);
  border-left: 4px solid var(--vermillon);
  background: var(--papier-clair);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: var(--encre-2);
  margin-bottom: 2rem;
}
.encadre-methode h3 { font-size: 0.9375rem; margin-bottom: 0.35rem; color: var(--encre); }
.encadre-methode p:last-child { margin-bottom: 0; }
.encadre-methode code {
  font-family: var(--police-chiffres);
  font-size: 0.85em;
  background: var(--papier-creux);
  padding: 0.05rem 0.3rem;
  border: 1px solid var(--filet);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- atelier --- */
.specimen {
  border: 1px solid var(--filet);
  background: var(--papier-clair);
  padding: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
}
.specimen .gros-glyphe {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: clamp(3.5rem, 2rem + 10vw, 7rem);
  line-height: 0.85;
  margin: 0 0 0.5rem;
  color: var(--encre);
  text-shadow: 0 -2px 0 rgba(23, 19, 15, 0.3), 0 2px 0 rgba(255, 255, 255, 0.9);
}
.specimen .legende-glyphe { font-size: 0.8125rem; color: var(--encre-3); margin: 0; }

/* liste de définitions tradition */
.defilets { margin: 0; padding: 0; }
.defilets > div {
  border-top: 1px solid var(--filet);
  padding: 0.85rem 0;
  display: grid;
  gap: 0.15rem 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) {
  .defilets > div { grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); align-items: baseline; }
}
.defilets dt { font-family: var(--police-titre); font-weight: 700; color: var(--encre); }
.defilets dd { margin: 0; color: var(--encre-2); font-size: 0.9375rem; }

/* --------------------------------------------------------------- contact */
.fiche-contact {
  border: 1px solid var(--filet);
  border-top: 3px solid var(--vermillon);
  background: var(--papier-clair);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  min-width: 0;
}
.fiche-contact address { font-style: normal; font-size: 1.0625rem; line-height: 1.6; color: var(--encre); }
.fiche-contact .tel {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--encre);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}
.fiche-contact .tel:hover { color: var(--vermillon-fonce); }
.fiche-contact .courriel { overflow-wrap: anywhere; }

.liste-sources { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.liste-sources li { border-top: 1px solid var(--trait); padding: 0.6rem 0; }
.liste-sources li:first-child { border-top: 0; }
.liste-sources .quoi { display: block; color: var(--gris); font-size: 0.8125rem; }
.liste-sources a { overflow-wrap: anywhere; }

/* --------------------------------------------------------------- pied ---- */
.pied {
  background: var(--encre);
  color: #e8e0d0;                /* 14:1 */
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  font-size: 0.875rem;
  margin-top: 0;
}
.pied a { color: #ffd9b8; }
.pied a:hover { color: #fff; }
.pied .conteneur {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.pied h2 {
  font-family: var(--police-texte);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbbfa8;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.pied p, .pied ul { margin: 0 0 0.5rem; }
.pied ul { padding: 0; list-style: none; }
.pied li { margin-bottom: 0.25rem; }
.pied .mention-demo { color: #cbbfa8; font-size: 0.8125rem; }
.pied .bas-de-page {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(232, 224, 208, 0.25);
  padding-top: 0.85rem;
  font-size: 0.8125rem;
  color: #cbbfa8;
}

/* -------------------------------------------------------------- utilitaire */
.visuellement-cache {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Le lien d'évitement est hors écran sans être hors du cadre : `clip-path` au
   lieu d'un `left:-9999px`, qui créait une zone de défilement fantôme. */
.lien-evitement {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: #fff;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.lien-evitement:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}
.sans-marge { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.texte-petit { font-size: 0.8125rem; color: var(--gris); }
.contemporain .texte-petit { color: var(--gris); }
.gras { font-weight: 600; }
.mono { font-family: var(--police-chiffres); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   L'épreuve — panneau de droite du hero, registre tradition
   ========================================================================== */
.hero-grille { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 62rem) {
  .hero-grille {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.epreuve {
  position: relative;
  border: 1px solid var(--filet-fort);
  background: var(--papier-clair);
  padding: 0.75rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* le cadre prend la hauteur disponible : la colonne de droite finit avec la
   colonne de gauche, au lieu de laisser un vide sous la carte */
.epreuve .cadre {
  position: relative;
  background: var(--vermillon-fonce);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 13rem;
}
.epreuve .lettre {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: clamp(5rem, 3rem + 8vw, 9rem);
  line-height: 0.8;
  color: #ffffff;
  /* frappe en creux retournée : la lettre est pressée dans le vermillon */
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), 0 -1px 0 rgba(255, 255, 255, 0.22);
  user-select: none;
}
/* repères de calage aux quatre angles du cadre */
.epreuve .coin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.7);
  border-style: solid;
}
.epreuve .coin--hg { top: 0.6rem; left: 0.6rem; border-width: 1px 0 0 1px; }
.epreuve .coin--hd { top: 0.6rem; right: 0.6rem; border-width: 1px 1px 0 0; }
.epreuve .coin--bg { bottom: 0.6rem; left: 0.6rem; border-width: 0 0 1px 1px; }
.epreuve .coin--bd { bottom: 0.6rem; right: 0.6rem; border-width: 0 1px 1px 0; }
.epreuve figcaption {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--encre-3);
  padding: 0.7rem 0.15rem 0.15rem;
}
.epreuve figcaption b {
  display: block;
  font-family: var(--police-chiffres);
  letter-spacing: 0.06em;
  color: var(--encre);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

/* ==========================================================================
   Jauge de résolution — largeurs par classe (aucun style en ligne)
   Les sélecteurs sont portés à `.jauge .w-N` : `.jauge span` (une classe + un
   type) l'emporterait sinon sur un simple `.w-N`, et la barre resterait à zéro.
   ========================================================================== */
.jauge span { width: 0; }
.jauge .w-1 { width: 1%; } .jauge .w-2 { width: 2%; } .jauge .w-3 { width: 3%; }
.jauge .w-4 { width: 4%; } .jauge .w-5 { width: 5%; } .jauge .w-10 { width: 10%; }
.jauge .w-15 { width: 15%; } .jauge .w-20 { width: 20%; } .jauge .w-25 { width: 25%; }
.jauge .w-30 { width: 30%; } .jauge .w-35 { width: 35%; } .jauge .w-40 { width: 40%; }
.jauge .w-45 { width: 45%; } .jauge .w-50 { width: 50%; } .jauge .w-55 { width: 55%; }
.jauge .w-60 { width: 60%; } .jauge .w-65 { width: 65%; } .jauge .w-70 { width: 70%; }
.jauge .w-75 { width: 75%; } .jauge .w-80 { width: 80%; } .jauge .w-85 { width: 85%; }
.jauge .w-90 { width: 90%; } .jauge .w-95 { width: 95%; } .jauge .w-100 { width: 100%; }

/* valeur longue (nom de fichier déposé) : chasse fixe, plus petite */
.releve dd.valeur-longue {
  font-family: var(--police-chiffres);
  font-size: 0.9375rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* en-têtes de ligne des tableaux */
table.tableau tbody th {
  font-weight: 600;
  color: var(--noir);
  border-bottom: 1px solid var(--trait);
}
