/* ─────────────────────────────────────────────────────────────
   Le Portulan — même charte que Cinabre : thème sombre « atlas »,
   encre froide, angles francs, rouge cinabre pour l'accent.
   Le cadre reste discret ; les couleurs appartiennent aux productions.
   ───────────────────────────────────────────────────────────── */

/* ─── Polices (servies par le site, licence SIL OFL) ─── */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/polices/SourceSans3-variable-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/polices/SourceSans3-variable-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/polices/Spectral-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/polices/Spectral-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/polices/Spectral-400-italique-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/polices/Spectral-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/polices/Spectral-500-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/polices/Spectral-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/polices/Spectral-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --nuit: #111317;
  --encre: #16191e;
  --ardoise: #1e2228;
  --ardoise-2: #272c34;
  --filet: rgba(220, 226, 232, 0.07);
  --filet-2: rgba(220, 226, 232, 0.14);
  --texte: #e4e3de;
  --texte-2: #9ba1a8;
  --texte-3: #646a72;
  --accent: #d8573c;
  --accent-clair: #e4674c;
  --vert: #6f9f7a;

  --police: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --police-titre: "Spectral", "Iowan Old Style", Georgia, serif;

  --largeur: 1240px;
  --gouttiere: clamp(16px, 3vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--nuit); color: var(--texte);
  font: 15px/1.5 var(--police);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
a { color: var(--texte); text-decoration-color: var(--filet-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -40px; z-index: 20; padding: 6px 10px; background: var(--accent); color: #fff; }
.evitement:focus { top: 8px; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; line-height: 1.2; margin: 0; }
::selection { background: rgba(216, 87, 60, 0.35); }

.bouton {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px;
  background: var(--ardoise); border: 0; border-radius: 2px;
  color: var(--texte); text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--ardoise-2); }
.bouton.principal { background: var(--accent); color: #fff; font-weight: 600; }
.bouton.principal:hover { background: var(--accent-clair); }
.badge {
  display: inline-block; margin-left: 10px; padding: 1px 7px 2px; vertical-align: middle;
  border-radius: 2px; background: rgba(216, 87, 60, 0.14); color: #ef8a70;
  font: 600 12px/1.4 var(--police); letter-spacing: 0.01em; white-space: nowrap;
}
.region { display: inline-flex; align-items: center; gap: 6px; color: var(--ct); }
.region i { width: 9px; height: 9px; border-radius: 1px; background: var(--ct); flex: none; }

/* ─── Barre du haut ─── */

.barre { position: sticky; top: 0; z-index: 10; background: var(--encre); border-bottom: 1px solid var(--filet); }
.barre-dedans {
  max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere);
  height: 52px; display: flex; align-items: center; gap: 24px;
}
.marque {
  display: flex; align-items: center; gap: 9px; flex: none;
  color: var(--texte); text-decoration: none;
  font: 600 22px/1 var(--police-titre); font-variant: small-caps; letter-spacing: 0.06em;
}
.marque b { color: var(--accent); font-weight: 600; }
.marque .rose { width: 22px; height: 22px; transition: transform 0.6s ease; }
.marque:hover .rose { transform: rotate(45deg); }
.onglets { display: flex; height: 100%; margin-left: auto; }
.onglets a {
  position: relative; display: flex; align-items: center; padding: 0 14px;
  color: var(--texte-2); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.onglets a:hover { color: var(--texte); }
.onglets a.actif { color: var(--texte); }
.onglets a.actif::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); }

/* ─── Pied de page ─── */

.pied { margin-top: 72px; border-top: 1px solid var(--filet); background: var(--encre); }
.pied-dedans {
  max-width: var(--largeur); margin: 0 auto; padding: 22px var(--gouttiere) 28px;
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  color: var(--texte-3); font-size: 13.5px;
}
.pied p { margin: 0; }
.pied-marque { margin-right: 6px; color: var(--texte-2); font: 600 15px var(--police-titre); font-variant: small-caps; letter-spacing: 0.05em; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pied a { color: var(--texte-2); text-decoration: none; }
.pied a:hover { color: var(--texte); }

/* ─── Accueil ─── */

.intro { position: relative; margin: 0 calc(-1 * var(--gouttiere)); padding: 56px var(--gouttiere) 40px; overflow: hidden; }
.intro-texte { position: relative; max-width: 690px; }
.intro h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -0.005em; margin-bottom: 18px; }
.intro p { margin: 0 0 10px; color: var(--texte-2); font-size: 16.5px; line-height: 1.6; }
.intro a.suite { color: var(--texte); white-space: nowrap; }
.intro a.suite::after { content: " →"; color: var(--accent); }
.rhumbs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rhumbs line { stroke: var(--filet); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rhumbs line.r-rouge { stroke: rgba(216, 87, 60, 0.22); }
.rhumbs line.r-vert { stroke: rgba(111, 159, 122, 0.16); }
.rhumbs .r-cercle { fill: none; stroke: var(--filet); vector-effect: non-scaling-stroke; }
.rhumbs .r-grande { fill: rgba(216, 87, 60, 0.16); }
.rhumbs .r-petite { fill: rgba(220, 226, 232, 0.05); }
@media (max-width: 760px) { .rhumbs { opacity: 0.5; } }

.catalogue-barre {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 10px 0; border-top: 1px solid var(--filet);
}
.filtres, .tri { display: flex; flex-wrap: wrap; gap: 4px; }
.filtre, .tri button {
  height: 30px; padding: 0 11px; background: none; border: 0; border-radius: 2px;
  color: var(--texte-2); cursor: pointer;
}
.filtre span { margin-left: 3px; color: var(--texte-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.filtre:hover, .tri button:hover { background: var(--ardoise); color: var(--texte); }
.filtre[aria-pressed="true"], .tri button[aria-pressed="true"] { background: var(--ardoise-2); color: var(--texte); font-weight: 600; }
.tri button { font-size: 13.5px; }

/* Bandeau chronologique : une production = un ruban sur l'axe des années */
.bandeau { display: none; position: relative; margin: 6px 0 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.js .bandeau { display: block; min-height: 1px; }
.bandeau-dedans { position: relative; min-width: 720px; }
.bandeau-axe { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; border-top: 1px solid var(--filet-2); }
.bandeau-axe span {
  position: absolute; top: 4px; transform: translateX(-50%);
  color: var(--texte-3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bandeau-axe span::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 4px; background: var(--filet-2); }
.bandeau-grille { position: absolute; top: 0; bottom: 20px; width: 1px; background: var(--filet); }
.ruban {
  position: absolute; height: 20px; display: flex; align-items: center;
  color: var(--ct); text-decoration: none; font-size: 12.5px; white-space: nowrap;
}
.ruban-barre { position: absolute; top: 2px; bottom: 2px; left: 0; min-width: 4px; background: color-mix(in srgb, var(--ct) 22%, transparent); border-left: 2px solid var(--ct); }
.ruban-nom { position: relative; padding: 0 6px; }
.ruban.a-gauche { flex-direction: row-reverse; }
.ruban.a-gauche .ruban-barre { left: auto; right: 0; border-left: 0; border-right: 2px solid var(--ct); }
.ruban.a-gauche .ruban-nom { text-align: right; }
.ruban.tout .ruban-barre { background: color-mix(in srgb, var(--ct) 9%, transparent); border-left: 0; }
.ruban.tout .ruban-nom::before { content: "← "; color: var(--texte-3); }
.ruban:hover .ruban-barre, .ruban.survol .ruban-barre { background: color-mix(in srgb, var(--ct) 40%, transparent); }
.ruban:hover .ruban-nom, .ruban.survol .ruban-nom { color: var(--texte); }
.ruban.cache { display: none; }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }
.carte {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--encre); border-radius: 2px; overflow: hidden;
  color: var(--texte); text-decoration: none;
  box-shadow: 0 0 0 1px var(--filet);
  transition: box-shadow 0.15s;
}
.carte:hover, .carte.survol { box-shadow: 0 0 0 1px var(--filet-2); }
.carte-image { display: block; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.carte-image img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.15s, transform 0.4s ease; }
.carte:hover .carte-image img, .carte.survol .carte-image img { opacity: 1; transform: scale(1.02); }
.carte-texte { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px 13px; border-top: 2px solid var(--ct); }
.carte-haut { display: flex; align-items: center; gap: 0; color: var(--texte-3); font-size: 12.5px; }
.carte-haut .badge { margin-left: 8px; font-size: 11.5px; }
.carte-date { margin-left: auto; }
.carte-titre { margin-top: 3px; font: 600 19px/1.25 var(--police-titre); }
.carte-sous-titre { color: var(--texte-2); font-size: 14px; }
.carte-bas { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; font-size: 13px; color: var(--texte-3); }
.carte.cache { display: none; }

/* ─── Page d'une production ─── */

.prod-tete { padding: 34px 0 18px; }
.fil { display: flex; gap: 8px; margin-bottom: 14px; color: var(--texte-3); font-size: 13.5px; }
.fil a { color: var(--texte-2); text-decoration: none; }
.fil a:hover { color: var(--texte); }
.prod-tete h1 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 500; }
.prod-tete h1 .badge { font-size: 13px; position: relative; top: -4px; }
.sous-titre { margin: 4px 0 0; color: var(--texte-2); font: italic 400 19px/1.35 var(--police-titre); }
.prod-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 14px 0 0; color: var(--texte-2); font-size: 14px; }
.prod-meta > * + *::before { content: "·"; margin: 0 10px; color: var(--texte-3); }
.prod-meta .region::before { margin: 0; }
.prod-meta a { color: var(--texte-2); }

/* La planche : barre d'outils, visionneuse, téléchargements */
.planche { margin: 4px calc(-1 * min(var(--gouttiere), 24px)) 0; }
.planche-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 36px; margin-bottom: 8px; }
.planche-barre, .telechargements { padding-left: min(var(--gouttiere), 24px); padding-right: min(var(--gouttiere), 24px); }
.variantes { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: var(--encre); border-radius: 2px; }
.variantes button {
  height: 30px; padding: 0 12px; background: none; border: 0; border-radius: 2px;
  color: var(--texte-2); cursor: pointer; white-space: nowrap;
}
.variantes button:hover { color: var(--texte); }
.variantes button[aria-selected="true"] { background: var(--ardoise-2); color: var(--texte); font-weight: 600; }
.outils { display: flex; gap: 2px; margin-left: auto; }
.outils button {
  min-width: 34px; height: 30px; padding: 0 10px; background: var(--encre); border: 0; border-radius: 2px;
  color: var(--texte-2); cursor: pointer; font-size: 14px;
}
.outils button[data-zoom="1"], .outils button[data-zoom="-1"] { font-size: 18px; line-height: 1; }
.outils button:hover { background: var(--ardoise); color: var(--texte); }

.variante { margin: 0; }
.visionneuse { position: relative; background: #0c0e11; border-radius: 2px; overflow: hidden; }
.visionneuse .plan img { display: block; width: 100%; height: auto; background: #fff; }
.visionneuse.pages .plan { display: flex; flex-direction: column; gap: 14px; }

/* avec JavaScript : la visionneuse zoomable */
.js .visionneuse { height: clamp(340px, calc(100vh - 290px), 940px); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.js .visionneuse.glisse { cursor: grabbing; }
.js .visionneuse .plan { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.js .visionneuse .plan img { width: 100%; height: 100%; -webkit-user-drag: none; }
.js .visionneuse.pages .plan { display: block; }
.js .visionneuse.pages .plan img { position: absolute; left: 0; width: 100%; height: auto; }
.astuce {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  padding: 8px 14px; border-radius: 2px; background: rgba(17, 19, 23, 0.9); color: var(--texte);
  font-size: 14px; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.astuce.visible { opacity: 1; }
.visionneuse:focus-visible { outline-offset: -2px; }

/* plein écran : l'API du navigateur, ou à défaut la classe .plein */
.planche:fullscreen, .planche.plein { margin: 0; padding: 10px; background: var(--nuit); display: flex; flex-direction: column; }
.planche.plein { position: fixed; inset: 0; z-index: 30; }
.planche:fullscreen .variante:not([hidden]), .planche.plein .variante:not([hidden]) { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.planche:fullscreen .visionneuse, .planche.plein .visionneuse { flex: 1; height: auto; touch-action: none; }
.planche:fullscreen .telechargements, .planche.plein .telechargements { display: none; }
body.plein-ouvert { overflow: hidden; }

.telechargements { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 0 0; }
.telech-titre { margin-right: 6px; color: var(--texte-3); font-size: 13.5px; }
.telechargements a {
  display: inline-flex; align-items: baseline; gap: 8px; height: 32px; padding: 0 12px; line-height: 32px;
  background: var(--encre); border-radius: 2px; color: var(--texte); text-decoration: none;
  box-shadow: 0 0 0 1px var(--filet);
}
.telechargements a b { font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; }
.telechargements a span { color: var(--texte-3); font-size: 12.5px; }
.telechargements a:hover { background: var(--ardoise); box-shadow: 0 0 0 1px var(--filet-2); }
.telechargements a:hover b { color: var(--accent-clair); }

.prod-corps { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px 56px; margin-top: 40px; }
.prod-corps h2, .prod-pied h2 { margin-bottom: 12px; font-size: 21px; font-weight: 500; }
.prod-texte p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: #cfcfca; max-width: 68ch; }
.liste-sources { margin: 0; padding: 0; list-style: none; counter-reset: source; }
.liste-sources li { position: relative; margin: 0 0 12px; padding-left: 30px; color: var(--texte-2); line-height: 1.55; counter-increment: source; }
.liste-sources li::before {
  content: counter(source); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 2px; background: var(--ardoise);
  color: var(--texte-2); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.liste-sources a { color: var(--texte); }
.liste-sources .licence, .liste-sources .usage, .liste-sources .note { color: var(--texte-2); }
.liste-sources .usage { display: block; margin-top: 2px; color: var(--texte-3); }
.liste-sources .note { display: block; margin-top: 2px; color: var(--texte-3); }
.a-preciser { margin: 0; padding: 10px 12px; border-radius: 2px; background: rgba(216, 87, 60, 0.1); color: #ef8a70; }

.prod-pied { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--filet); }
.prod-pied h2 { font-size: 18px; }
.prod-pied p { margin: 0; color: var(--texte-2); line-height: 1.6; }

.voisins { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.voisins a {
  display: flex; flex-direction: column; gap: 1px; max-width: 48%; padding: 10px 14px;
  background: var(--encre); border-radius: 2px; text-decoration: none;
  font: 500 17px/1.3 var(--police-titre);
}
.voisins a span { color: var(--texte-3); font: 13px var(--police); }
.voisins a[rel="prev"] span::before { content: "← "; }
.voisins a[rel="next"] { margin-left: auto; text-align: right; }
.voisins a[rel="next"] span::after { content: " →"; }
.voisins a:hover { background: var(--ardoise); }

/* La frise : démonstrations */
.frise-demo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px 40px; align-items: start; }
.frise-capture { display: block; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--filet-2); }
.frise-capture img { display: block; width: 100%; height: auto; transition: opacity 0.15s; }
.frise-capture:hover img { opacity: 0.9; }
.frise-actions h2 { margin: 0 0 8px; font-size: 21px; font-weight: 500; }
.frise-actions h2 ~ h2 { margin-top: 26px; }
.frise-actions p { margin: 0 0 10px; color: var(--texte-2); }
.demos { display: flex; flex-direction: column; gap: 6px; }
.demo {
  display: flex; flex-direction: column; padding: 10px 14px; border-radius: 2px;
  background: var(--encre); box-shadow: 0 0 0 1px var(--filet); text-decoration: none;
}
.demo b { font: 600 17px/1.3 var(--police-titre); }
.demo b::after { content: " ↗"; color: var(--accent); font-family: var(--police); font-weight: 400; }
.demo span { color: var(--texte-3); font-size: 13px; }
.demo:hover { background: var(--ardoise); box-shadow: 0 0 0 1px var(--filet-2); }
.fonctions { margin: 0; padding-left: 18px; color: var(--texte-2); line-height: 1.6; }
.fonctions li::marker { color: var(--accent); }

.jeu-attente { padding: 60px 24px; border-radius: 2px; background: var(--encre); text-align: center; color: var(--texte-2); }

/* ─── Pages de texte ─── */

.page-texte { max-width: 820px; padding-top: 40px; }
.page-texte h1 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 500; margin-bottom: 14px; }
.page-texte .chapo { margin: 0 0 30px; color: var(--texte-2); font-size: 17.5px; line-height: 1.6; }
.page-texte section { margin-top: 34px; scroll-margin-top: 70px; }
.page-texte h2 { margin-bottom: 10px; font-size: 23px; font-weight: 500; }
.page-texte p, .page-texte li { color: #cfcfca; font-size: 16px; line-height: 1.65; }
.page-texte p { margin: 0 0 12px; }
.page-texte ul { margin: 0 0 12px; padding-left: 20px; }
.page-texte li::marker { color: var(--accent); }
.mentions { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; margin: 0; }
.mentions dt { color: var(--texte-3); }
.mentions dd { margin: 0; color: var(--texte-2); line-height: 1.6; }

.sources-bloc { padding-top: 22px; border-top: 1px solid var(--filet); }
.sources-bloc h2 { display: flex; align-items: baseline; gap: 12px; font-size: 21px; }
.sources-bloc h2 a { text-decoration: none; border-left: 3px solid var(--ct, var(--texte-3)); padding-left: 10px; }
.sources-bloc h2 a:hover { color: #fff; }
.sources-bloc h2 small { color: var(--texte-3); font: 13px var(--police); }
.sources-bloc .liste-sources li { font-size: 15px; }

/* ─── Petits écrans ─── */

@media (max-width: 860px) {
  .prod-corps, .prod-pied, .frise-demo { grid-template-columns: 1fr; }
  .mentions { grid-template-columns: 1fr; gap: 2px; }
  .mentions dd { margin-bottom: 10px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .barre-dedans { gap: 10px; height: 48px; }
  .marque { font-size: 19px; }
  .marque .rose { width: 18px; height: 18px; }
  .onglets a { padding: 0 8px; font-size: 14px; }
  .onglets a.actif::after { left: 8px; right: 8px; }
  .intro { padding-top: 34px; }
  .grille { grid-template-columns: 1fr; }
  .outils button[data-zoom="0"] { display: none; }
  .js .visionneuse { height: 62vh; }
  .voisins { flex-direction: column; }
  .voisins a { max-width: none; }
}
@media (max-width: 400px) {
  .barre-dedans { gap: 6px; }
  .marque { gap: 7px; font-size: 17px; }
  .onglets a { padding: 0 6px; font-size: 13.5px; }
  .onglets a.actif::after { left: 6px; right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
