/* data.rlbrt.fr — concept « Plan coté ».
   Papier calque et mine graphite ; le rouge est réservé aux cotes et à l'humain.
   Trait continu = en service ; trait interrompu = prévu, pas encore activé (convention du dessin technique). */

@font-face { font-family: "Archivo"; src: url(../fonts/archivo.woff2) format("woff2"); font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url(../fonts/b612mono-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url(../fonts/b612mono-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --calque: #eef2f1;
  --quadrillage: #d9e5e5;
  --mine: #1e2a2c;
  --mine-2: #4a5b5c;
  --cote: #a8232b;
  --hachure: #93a9aa;
  --titre: "Archivo", "Arial Narrow", sans-serif;
  --mono: "B612 Mono", ui-monospace, "Cascadia Mono", monospace;
  --pas: 1.25rem;
  --gouttiere: clamp(1rem, 4vw, 3rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --calque: #141a1b; --quadrillage: #1e2829; --mine: #e2ebe9; --mine-2: #a9b9b8;
    --cote: #ff8f87; --hachure: #3e5052; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  color: var(--mine);
  background-color: var(--calque);
  background-image:
    linear-gradient(var(--quadrillage) 1px, transparent 1px),
    linear-gradient(90deg, var(--quadrillage) 1px, transparent 1px);
  background-size: var(--pas) var(--pas);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
body { margin: 0; font: 400 1.0625rem/1.6 var(--titre); font-stretch: 100%; }
::selection { background: var(--cote); color: var(--calque); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--cote); }
:focus-visible { outline: 2px dashed var(--cote); outline-offset: 3px; }
.d, code, pre, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.d { font-size: .94em; }
p, ul, ol, dl, table, figure, pre { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; font-stretch: 112%; text-wrap: balance; }
.manque { color: var(--mine-2); font-style: italic; text-decoration: underline dashed var(--cote); text-underline-offset: .25em; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: var(--gouttiere); top: -4rem; background: var(--mine); color: var(--calque); padding: .5rem .75rem; z-index: 2; }
.evitement:focus { top: .5rem; }

/* ---------- En-tête ---------- */
.entete { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 2rem; padding: 1rem var(--gouttiere); max-width: 80rem; margin: 0 auto; }
.marque { font-weight: 800; font-stretch: 125%; font-size: 1.25rem; letter-spacing: .04em; text-decoration: none; }
.entete nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.entete nav a { display: inline-block; padding: .35rem 0; }

main { max-width: 80rem; margin: 0 auto; padding: 0 var(--gouttiere); }
section { padding-block: clamp(3rem, 8vw, 5.5rem) 0; }
section > h2 { font-size: clamp(1.625rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.015em; max-width: 34ch; margin-bottom: 1.25rem; }
.texte { max-width: 38rem; }
.texte + .texte { margin-top: .9rem; }

/* ---------- RLBRT ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem 4rem; align-items: end; padding-top: clamp(2rem, 6vw, 4.5rem); }
.intro h1 { font-size: clamp(2.125rem, 4.8vw, 3.875rem); line-height: 1.02; letter-spacing: -.022em; }
.intro .texte { font-size: 1.125rem; }
.activites { list-style: none; padding: 0; margin-top: clamp(2rem, 5vw, 3rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); border-top: 2px solid var(--mine); }
.activites li { padding: 1.25rem 2rem 1.25rem 0; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .75rem; }
.activites li + li { border-left: 1px solid var(--mine); padding-left: 2rem; }
.activites h2 { font-size: 1.25rem; grid-column: 2; }
.activites p { grid-column: 2; margin-top: .35rem; color: var(--mine-2); }
.activites p a { color: var(--mine); }
.rep { grid-row: span 3; width: 1.75rem; height: 1.75rem; border: 1.5px solid var(--mine); border-radius: 50%; display: grid; place-items: center; font: 700 .8125rem/1 var(--mono); }

/* ---------- Planches (produit) ---------- */
.produit-tete { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem 4rem; align-items: start; margin-bottom: 1.75rem; }
.statut { border: 1px dashed var(--mine); padding: .75rem 1rem; font-size: .9375rem; }
.statut b { display: block; font-weight: 600; }
.feuille { border: 2px solid var(--mine); background: var(--calque); }
.feuille-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--mine); }
.onglets { display: flex; flex-wrap: wrap; gap: .25rem; }
.onglets a, .bascule button { font: 700 .8125rem/1 var(--mono); color: var(--mine); background: transparent; border: 1px solid var(--mine); padding: .65rem .8rem; text-decoration: none; cursor: pointer; min-height: 2.5rem; }
.onglets a:hover, .bascule button:hover { border-color: var(--cote); }
.onglets a, .bascule button { touch-action: manipulation; }
.onglets a[aria-selected="true"] { border-color: var(--cote); color: var(--cote); box-shadow: inset 0 -3px 0 var(--cote); }
.bascule { display: inline-flex; }
.bascule button + button { border-left: 0; }
.bascule button[aria-pressed="true"] { background: var(--mine); color: var(--calque); }

.planche { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; border-top: 1px solid var(--mine); }
.planche:first-of-type { border-top: 0; }
.js .planche[hidden] { display: none; }
.planche > h3 { grid-column: 1 / -1; padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 0; font-size: 1.375rem; line-height: 1.2; }
.planche > h3 .num { font: 700 .875rem var(--mono); color: var(--mine-2); display: block; margin-bottom: .25rem; font-stretch: 100%; }
.vue { grid-column: 1; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2rem; }
.cartouche-planche { grid-column: 2; grid-row: 2; align-self: end; margin: 0 1rem 1rem 0; }

.cote { position: relative; height: 1.75rem; color: var(--cote); }
.cote::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--cote); }
.cote::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--cote), var(--cote)) left / 1px 100% no-repeat, linear-gradient(var(--cote), var(--cote)) right / 1px 100% no-repeat; }
.cote > span { position: relative; z-index: 1; display: block; width: max-content; margin: 0 auto; padding: 0 .5rem; background: var(--calque); font: 700 .9375rem/1.75rem var(--mono); }
.barre { display: flex; height: 4rem; border: 2px solid var(--mine); margin: .5rem 0; }
.barre .ecoule { flex: 0 0 var(--ecoule); border-right: 2px solid var(--cote); background: repeating-linear-gradient(-45deg, var(--hachure) 0 1px, transparent 1px 8px); }
/* Valeurs au relevé du 08.10.2026 ; site.js les recalcule chaque jour. */
.planche { --ecoule: 50%; }
.p1 { --ecoule: 93.5%; } .p2 { --ecoule: 81.1%; } .p3 { --ecoule: 75.2%; }
.reste { display: flex; justify-content: flex-end; }
.reste .cote { flex: 0 0 calc(100% - var(--ecoule)); min-width: 1px; }
.reste .cote > span { position: absolute; right: 0; top: 1.75rem; margin: 0; padding: 0; background: none; }
.bornes { display: flex; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .875rem; color: var(--mine-2); }
.bornes b { display: block; font: 700 1rem var(--mono); color: var(--mine); }
.bornes .auj { margin-left: auto; text-align: right; }
.bornes > :last-child { text-align: right; }
.reperes { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem 2rem; }
.reperes li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .5rem; align-items: start; }
.reperes .k { grid-column: 2; color: var(--mine-2); font-size: .875rem; }
.reperes .v { grid-column: 2; }
.reperes .rep { grid-row: span 2; }
.note { margin-top: 1.5rem; font-size: .875rem; color: var(--mine-2); max-width: 46rem; }
.coupe { font: 400 .875rem/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2rem;
  background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--hachure) 40%, transparent) 10px 11px); }
.coupe:focus-visible { outline-offset: -4px; }
.js [data-vue="humain"] .coupe, .js [data-vue="agent"] .vue { display: none; }
.coupe-titre { display: block; font: 700 .8125rem var(--mono); color: var(--cote); margin-bottom: .75rem; }

table.cartouche { border-collapse: collapse; font-size: .875rem; border: 2px solid var(--mine); background: var(--calque); width: 100%; }
.cartouche caption { text-align: left; font-weight: 700; font-stretch: 112%; padding-bottom: .3rem; }
.cartouche th, .cartouche td { border: 1px solid var(--mine); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.cartouche th { font-weight: 500; color: var(--mine-2); width: 7.5rem; }

/* ---------- Méthode ---------- */
.ensemble { margin-top: 1rem; border: 2px solid var(--mine); background: var(--calque); padding: 1rem; }
.ensemble svg { display: block; width: 100%; height: auto; }
.ensemble .vertical { display: none; max-width: 24rem; margin: 0 auto; }
.ensemble figcaption { margin-top: .75rem; font-size: .875rem; color: var(--mine-2); }
svg .bloc { fill: var(--calque); stroke: var(--mine); stroke-width: 2; }
svg .bloc.prevu { stroke-dasharray: 8 5; }
svg .bloc.humain { stroke: var(--cote); stroke-width: 3; }
svg .fleche { stroke: var(--mine); stroke-width: 1.5; fill: none; }
svg .fleche.prevu { stroke-dasharray: 6 4; }
svg .pointe { fill: var(--mine); }
svg .attache { stroke: var(--mine-2); stroke-width: 1; }
svg .rond { fill: var(--calque); stroke: var(--mine); stroke-width: 1.5; }
svg text { fill: var(--mine); font-family: var(--titre); font-size: 15px; }
svg .t-num { font-family: var(--mono); font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
svg .t-bloc { font-weight: 600; text-anchor: middle; }
svg .t-sous { fill: var(--mine-2); font-size: 13px; text-anchor: middle; }
svg .t-humain { fill: var(--cote); }
.nomenclature { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .9375rem; background: var(--calque); }
.nomenclature caption { text-align: left; font-weight: 700; font-stretch: 112%; font-size: 1.125rem; padding-bottom: .5rem; }
.nomenclature th, .nomenclature td { border: 1px solid var(--mine); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.nomenclature thead th { font-weight: 600; border-bottom-width: 2px; }
.nomenclature td:first-child { font: 700 .875rem var(--mono); text-align: center; width: 3.5rem; }
.etat { font: 700 .8125rem var(--mono); }
.etat.prevu { border: 1px dashed currentColor; padding: .1rem .35rem; color: var(--mine-2); }
.etat.humain { color: var(--cote); }

/* ---------- Données & RGPD, contact ---------- */
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem 3rem; max-width: 64rem; }
.deux h3 { font-size: 1.125rem; margin-bottom: .4rem; }
.deux ul { padding-left: 1.1rem; }
.deux li + li { margin-top: .35rem; }
.suite { margin-top: 1.5rem; }
.contact { padding-bottom: clamp(3rem, 8vw, 5rem); }
.appel { display: inline-block; margin-top: 1rem; font: 700 clamp(1.125rem, 3vw, 1.625rem)/1.2 var(--mono); padding: .9rem 1.2rem; border: 2px solid var(--mine); text-decoration: none; background: var(--calque); overflow-wrap: anywhere; }
.appel:hover { border-color: var(--cote); }

/* ---------- Pied de page : cartouche légal ---------- */
.pied { max-width: 80rem; margin: 0 auto; padding: 0 var(--gouttiere) 2rem; }
.pied table.cartouche { font-size: .875rem; }
.pied .cartouche td a { white-space: nowrap; }
.pied-liens { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .75rem; font-size: .875rem; }

/* ---------- Pages de texte ---------- */
.page { max-width: 46rem; padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: 4rem; }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.page h2 { font-size: 1.375rem; margin: 2.25rem 0 .6rem; }
.page p + p, .page ul + p, .page p + ul { margin-top: .75rem; }
.page ul { padding-left: 1.2rem; }
.page li + li { margin-top: .35rem; }
.page dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; border-top: 1px solid var(--mine); padding-top: .75rem; }
.page dt { color: var(--mine-2); }
.page dd { margin: 0; }
.introuvable .cote { max-width: 24rem; margin: 2rem 0 1.5rem; }
.introuvable .cote::before { border-top-style: dashed; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-vue="agent"] .coupe { animation: coupe .4s cubic-bezier(.16, 1, .3, 1); }
  @keyframes coupe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
}

@media (max-width: 56rem) {
  .intro, .produit-tete { grid-template-columns: 1fr; }
  .activites li + li { border-left: 0; border-top: 1px solid var(--mine); padding-left: 0; }
  .planche { grid-template-columns: 1fr; }
  .cartouche-planche { grid-column: 1; grid-row: auto; margin: 0 1rem 1rem; }
  .bornes { flex-wrap: wrap; }
  .bornes .auj { order: 3; flex-basis: 100%; margin-left: 0; text-align: left; }
  .ensemble .horizontal { display: none; }
  .ensemble .vertical { display: block; }
  .nomenclature thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nomenclature, .nomenclature tbody, .nomenclature tr, .nomenclature td { display: block; width: auto; }
  .nomenclature tr { border: 1px solid var(--mine); border-top: 0; display: grid; grid-template-columns: 3rem 1fr; }
  .nomenclature tr:first-child { border-top: 1px solid var(--mine); }
  .nomenclature td { border: 0; padding: .4rem .6rem; }
  .nomenclature td:first-child { grid-row: span 3; width: auto; border-right: 1px solid var(--mine); }
  .nomenclature td:not(:first-child) { grid-column: 2; }
  .nomenclature td[data-titre]::before { content: attr(data-titre) " : "; color: var(--mine-2); }
}

@media print {
  @page { size: A4; margin: 12mm; }
  html { background: #fff; color: #000; }
  :root { --calque: #fff; --mine: #000; --mine-2: #333; --cote: #a8232b; }
  .entete nav, .bascule, .onglets, .evitement, .appel { display: none !important; }
  .planche[hidden] { display: grid !important; }
  .planche, .ensemble, .nomenclature { break-inside: avoid; }
  .coupe { display: none !important; }
  .vue { display: block !important; }
  a { text-decoration: none; }
  section { padding-top: 8mm; }
}
