/* Scène Expert · feuille de style du site premium
   Charte : blanc cassé, noir profond, gris chauds ; rouge rideau #8E1B2E en accent unique ; bleu « méthode » #2F5D7A pour les encadrés de méthode.
   Polices libres auto-hébergées : Source Serif 4 (titres), Source Sans 3 (texte). */
@font-face { font-family: "SE Serif"; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SE Serif"; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "SE Serif"; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SE Sans"; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SE Sans"; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SE Sans"; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f3ee; --paper: #fffdf9; --ink: #16130f; --ink-2: #3d3730; --muted: #5f574d; --line: #d9d2c7; --line-2: #bdb4a7;
  --accent: #8e1b2e; --accent-ink: #ffffff; --accent-soft: #f4e6e8; --methode: #2f5d7a; --methode-soft: #e8eff4;
  --todo-bg: #fff1a8; --todo-ink: #3a3000;
  --serif: "SE Serif", Georgia, "Times New Roman", serif; --sans: "SE Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --w: 1240px; --g: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131210; --paper: #1b1917; --ink: #eee9e1; --ink-2: #d3ccc1; --muted: #a9a094; --line: #34302b; --line-2: #4a443d;
    --accent: #e0788a; --accent-ink: #1a0c0f; --accent-soft: #2c1a1d; --methode: #8fb6d1; --methode-soft: #18232b;
    --todo-bg: #6b5a00; --todo-ink: #fff6c4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131210; --paper: #1b1917; --ink: #eee9e1; --ink-2: #d3ccc1; --muted: #a9a094; --line: #34302b; --line-2: #4a443d;
  --accent: #e0788a; --accent-ink: #1a0c0f; --accent-soft: #2c1a1d; --methode: #8fb6d1; --methode-soft: #18232b;
  --todo-bg: #6b5a00; --todo-ink: #fff6c4; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Marqueurs à compléter : surlignés, visibles, impossibles à rater */
mark.todo, .todo { background: var(--todo-bg); color: var(--todo-ink); padding: .05em .3em; border-radius: 2px; font-style: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Grille et rythme */
.in { max-width: var(--w); margin: 0 auto; padding: 0 var(--g); }
.sec { padding: clamp(48px, 6.5vw, 88px) 0; }
.sec.tight { padding: clamp(32px, 4.5vw, 56px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sur { font: 600 .78rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1em; display: flex; align-items: center; gap: .8em; }
.sur::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--g); }
.c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.c-off1 { grid-column: 6 / span 7; }
@media (max-width: 860px) { .cols > * { grid-column: 1 / -1 !important; } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Boutons : l'accent rouge est réservé aux actions */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.on-image { background: transparent; color: #fff; border-color: #fff; }
.btn.on-image:hover { background: #fff; color: #16130f; }
.btn.on-image.fill { background: #fff; color: #16130f; }
.btn.on-image.fill:hover { background: transparent; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.lien { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.lien::after { content: " →"; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* En-tête */
.tete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tete .in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.marque-t { display: flex; flex-direction: column; }
.marque b { font: 600 1.02rem/1 var(--sans); letter-spacing: .28em; }
.marque small { font: 600 .7rem/1 var(--sans); color: var(--muted); letter-spacing: .3em; margin-top: 6px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .96rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--accent); color: var(--ink); }
.nav .panier-lien span { display: inline-block; min-width: 1.4em; text-align: center; margin-left: 4px; font-size: .78rem; border: 1px solid var(--line-2); border-radius: 99px; }
.menu-btn { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); min-height: 44px; padding: 0 16px; font: 600 .95rem var(--sans); }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--g) 20px; }
  .nav.ouvert { display: flex; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* Fil d'Ariane */
.ariane { font-size: .86rem; color: var(--muted); padding-top: 28px; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ariane li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.ariane a { text-decoration: none; }

/* Accueil plein cadre */
.plein { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; color: #fff; background: #0d0c0b; overflow: hidden; }
.plein img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plein::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.15) 0%, rgba(10,9,8,.25) 45%, rgba(10,9,8,.82) 100%); }
.plein .in { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); }
.plein .nom { font: 600 clamp(2rem, 4.6vw, 3.6rem)/1.05 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .45em; }
.plein h1 { max-width: 22ch; color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.plein .phrase { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); max-width: 44ch; color: #efe9e1; }
.credit-img { position: absolute; right: var(--g); bottom: 14px; z-index: 1; font-size: .74rem; color: #d9d2c8; font-style: italic; }
.bandeau { position: relative; min-height: 46vh; display: flex; align-items: flex-end; color: #fff; background: #0d0c0b; overflow: hidden; }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.2), rgba(10,9,8,.8)); }
.bandeau .in { position: relative; z-index: 1; width: 100%; padding-bottom: 48px; }
.bandeau h1 { color: #fff; max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.bandeau .sur { color: #fff; }
.titre-page { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.titre-page h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 22ch; }

/* Chiffres sourcés */
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); }
.reperes div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.reperes b { display: block; font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.reperes span { font-size: .95rem; color: var(--ink-2); }
.reperes small { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }

/* Listes éditoriales numérotées */
.liste-num { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--ink); }
.liste-num > li { counter-increment: n; display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.liste-num > li::before { content: counter(n, decimal-leading-zero); font: 600 1.1rem/1.4 var(--serif); color: var(--accent); }
.liste-num h3 { margin-bottom: .3em; }
.liste-num p { margin: 0; color: var(--ink-2); }

/* Catalogue */
.filtres { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; padding: 24px 0; border-bottom: 1px solid var(--line); }
.filtres label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.filtres select { min-height: 44px; min-width: 220px; }
.compteur { margin-left: auto; color: var(--muted); font-size: .92rem; }
.filtre-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.filtre-action[hidden] { display: none; }
.filtre-action p { margin: 0; }
.coll-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding: 56px 0 14px; margin-bottom: 0; }
.coll-titre h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; }
.coll-titre p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 52ch; text-align: right; }
.grille-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px var(--g); padding-top: 32px; }
.carte-guide { display: flex; flex-direction: column; text-decoration: none; }
.carte-guide .couv { background: var(--paper); border: 1px solid var(--line); aspect-ratio: 3 / 4; overflow: hidden; }
.carte-guide .couv img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.carte-guide:hover .couv img { transform: scale(1.025); }
.carte-guide h3 { font-size: 1.18rem; margin: 16px 0 6px; }
.carte-guide p { font-size: .94rem; color: var(--ink-2); margin: 0 0 8px; }
.carte-guide .meta { font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin-top: auto; }
.carte-guide[hidden] { display: none; }

/* Fiche guide */
.fiche { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(32px, 6vw, 96px); align-items: start; padding-top: 32px; }
.fiche-cote { position: sticky; top: 96px; }
@media (max-width: 960px) { .fiche { grid-template-columns: 1fr; } .fiche-cote { position: static; } }
.fiche-couv { border: 1px solid var(--line); background: var(--paper); max-width: 420px; }
.achat { margin-top: 28px; border-top: 1px solid var(--ink); padding-top: 20px; }
.achat fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.achat legend, .panier-conditions legend { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.licence { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.licence input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; }
.licence b { font-weight: 600; }
.licence small { grid-column: 2 / 4; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.licence .prix { font-family: var(--serif); font-weight: 600; text-align: right; }
.prix-unique { grid-template-columns: 1fr auto; cursor: default; padding-top: 0; }
.prix-unique small { grid-column: 1 / 3; }
.qualite { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.qualite label, .case { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.qualite input, .case input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.case { font-size: .88rem; color: var(--ink-2); margin: 10px 0; }
.achat .btn { width: 100%; margin-top: 8px; }
.achat .alt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.achat .alt a { font-weight: 600; }
.achat .note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.volume { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin: 0 0 8px; }
.volume div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.volume b { display: block; font: 600 1.6rem/1.1 var(--serif); }
.volume span { font-size: .84rem; color: var(--muted); }
.bloc { padding: 40px 0; border-top: 1px solid var(--line); }
.bloc:first-child { border-top: 0; padding-top: 0; }
.bloc > h2 { font-size: 1.6rem; }
.puces { list-style: none; padding: 0; margin: 0; }
.puces li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.puces li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 1px; background: var(--accent); }
.situation { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; border-left: 2px solid var(--accent); padding-left: 22px; color: var(--ink-2); }
.situation small { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
details.sommaire { border-bottom: 1px solid var(--line); }
details.sommaire summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: grid; grid-template-columns: 48px 1fr 24px; gap: 12px; }
details.sommaire summary::-webkit-details-marker { display: none; }
details.sommaire summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; text-align: right; }
details.sommaire[open] summary::after { content: "–"; }
details.sommaire summary .n { font-family: var(--serif); color: var(--accent); }
details.sommaire ul { margin: 0 0 16px 60px; padding: 0; list-style: none; font-size: .94rem; color: var(--ink-2); }
details.sommaire li { padding: 3px 0; }
.sommaire-ctl { display: flex; gap: 16px; margin-bottom: 8px; }
.sommaire-ctl button { background: none; border: 0; padding: 4px 0; color: var(--ink); font: 600 .9rem var(--sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Planches d'architecte */
.planches { display: grid; grid-template-columns: 1fr; gap: 32px; }
.planche { margin: 0; background: #fbfaf7; border: 1px solid #cfc7bb; padding: clamp(12px, 2vw, 22px); color: #16130f; }
.planche-img { background: #fff; border: 1px solid #e3ddd3; }
.planche img { width: 100%; }
.planche figcaption { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-variant: small-caps; margin-top: 12px; display: flex; gap: 14px; line-height: 1.5; color: #3d3730; }
.pl-n { color: #8e1b2e; font-weight: 600; white-space: nowrap; }
.apercu-pdf { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--paper); margin-top: 24px; }
.apercu-pdf .ico { width: 42px; height: 54px; border: 1px solid var(--ink); display: grid; place-items: center; font: 600 .7rem var(--sans); letter-spacing: .08em; flex: none; }

/* Photos */
.photo { margin: 2em 0; }
.portrait { margin: 0 auto; max-width: 180px; }
.portrait img { width: 100%; height: auto; }
.portrait figcaption { font-size: .86rem; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 860px) { .portrait { max-width: 160px; margin: 0 auto 32px; } }
.photo figcaption, .legende { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.credit { display: block; font-style: italic; font-size: .8rem; color: var(--muted); }

/* Encadrés des guides */
.encadre { padding: 16px 20px; margin: 1.4em 0; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.encadre.methode { border-left-color: var(--methode); background: var(--methode-soft); }
.encart-projet { margin: 2em 0; padding: 26px 28px; border: 1px solid var(--accent); }
.encart-projet .sur { margin-bottom: .7em; }
.encart-projet .q { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.src { font-size: .82rem; color: var(--muted); margin-top: -.4em; }
.src b { font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.src.est b { color: var(--methode); }
.tbl { overflow-x: auto; margin: 1.4em 0; border-top: 1px solid var(--ink); }
.tbl table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
ul.check { list-style: none; padding-left: 0; }
ul.check li::before { content: "☐ "; color: var(--accent); }

/* Lecture du guide pilier */
.lecture { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lecture nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; font-size: .9rem; }
.lecture nav ol { list-style: none; margin: 0; padding: 0; }
.lecture nav li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.lecture nav a { text-decoration: none; }
.lecture nav .verrou { color: var(--muted); }
@media (max-width: 960px) { .lecture { grid-template-columns: minmax(0, 1fr); } .lecture nav { position: static; max-height: none; } }
.chapitre { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.chapitre > h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.partie { padding: 32px 0; border-top: 1px solid var(--ink); margin-bottom: 32px; }
.verrouille { border: 1px solid var(--ink); padding: clamp(24px, 4vw, 48px); background: var(--paper); }

/* Missions de conseil */
.mission { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--g); padding: 36px 0; border-bottom: 1px solid var(--line); }
.mission:first-of-type { border-top: 1px solid var(--ink); }
.mission .n { font: 600 1.2rem/1.3 var(--serif); color: var(--accent); }
.mission dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.mission dt { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.mission dd { margin: 0; }
.mission.en-avant { border-left: 4px solid var(--accent); padding-left: 24px; background: var(--paper); }
.avantage { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 12px 0; }
.avantage b { background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--sans); padding: 6px 10px; }
.avantage s, s.barre { color: var(--muted); }
.remise { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .mission { grid-template-columns: 1fr; } .mission .n { margin-bottom: 8px; } .mission dl { margin-top: 16px; } }

/* Références : fiches projet */
.ref { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--g); padding: 48px 0; border-bottom: 1px solid var(--line); }
.ref-fig { margin: 0; } .ref-fig img { width: 100%; height: auto; display: block; border: 1px solid var(--line); } .ref-fig figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.ref-img { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, var(--bg) 12px, var(--bg) 24px); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 20px; }
.fiche-tech { display: grid; grid-template-columns: 150px 1fr; gap: 0; border-top: 1px solid var(--ink); margin: 0 0 24px; }
.fiche-tech dt, .fiche-tech dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.fiche-tech dt { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 12px; }
@media (max-width: 860px) { .ref { grid-template-columns: 1fr; } }

/* Formulaires */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .plein-l { grid-column: 1 / -1; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .94rem; }
label small, .aide { font-weight: 400; color: var(--muted); font-size: .86rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=file], select, textarea { width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--sans); border-radius: 0; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--accent); background: var(--accent-soft); }
.erreur { color: var(--accent); font-size: .88rem; margin-top: 4px; }
.ok { display: none; border-left: 3px solid var(--methode); background: var(--methode-soft); padding: 14px 18px; }
.ok.vu { display: block; }
.hp { display: none; }

/* Panier et devis */
.panier-ligne { display: grid; grid-template-columns: 1fr 140px 44px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.panier-ligne select { margin: 0; }
.panier-ligne button { background: none; border: 1px solid var(--line-2); color: var(--ink); min-height: 44px; cursor: pointer; }
.pl-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pl-nb { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panier-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding: 12px 0; margin: 8px 0 16px; font-size: 1.15rem; }
.panier-total b { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.panier-conditions { border: 0; padding: 0; margin: 0 0 20px; }
#panier-cartes details { margin-top: 16px; }
#panier .panier-ligne { grid-template-columns: 1fr auto auto; gap: 24px; }
.panier-ligne .suppr { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font: inherit; font-size: .9rem; letter-spacing: .02em; color: var(--ink-2); transition: color .2s, border-color .2s, background .2s; }
.panier-ligne .suppr:hover, .panier-ligne .suppr:focus-visible { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.panier-ligne .suppr svg { flex: none; }
@media (max-width: 760px) { #panier .panier-ligne { grid-template-columns: 1fr auto; } #panier .panier-ligne .px { grid-row: 2; } #panier .panier-ligne .suppr { grid-row: 1 / 3; grid-column: 2; } }
@media (max-width: 760px) { .panier-ligne { grid-template-columns: 1fr 44px; } .panier-ligne select, .panier-ligne .px { grid-column: 1 / 2; } }
.devis { background: #fff; color: #16130f; border: 1px solid #cfc7bb; padding: clamp(20px, 4vw, 48px); margin-top: 32px; }
.devis h2 { font-size: 1.8rem; color: #16130f; }
.devis table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 20px 0; }
.devis th, .devis td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #ddd6cb; vertical-align: top; }
.devis td.m, .devis th.m { text-align: right; white-space: nowrap; }
.devis .entete { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: .9rem; }
.devis mark.todo { background: #fff1a8; color: #3a3000; }

/* Étapes */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 var(--g); counter-reset: e; }
.etapes li { counter-increment: e; border-top: 1px solid var(--ink); padding: 20px 0; }
.etapes li::before { content: counter(e, decimal-leading-zero); display: block; font: 600 1.6rem/1 var(--serif); color: var(--accent); margin-bottom: 12px; }
.etapes b { display: block; margin-bottom: 6px; }
.etapes span { color: var(--ink-2); font-size: .95rem; }

/* Questions fréquentes */
details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--ink); }
details.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; position: relative; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-bottom: 18px; max-width: 70ch; }

/* Articles et glossaire */
.article-liste { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.article-liste li { display: grid; grid-template-columns: 56px 1fr 220px; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.article-liste .n { font: 600 1rem var(--serif); color: var(--accent); }
.article-liste h3 { font-size: 1.2rem; margin: 0 0 4px; }
.article-liste p { margin: 0; font-size: .92rem; color: var(--muted); }
.article-liste .etat { font-size: .85rem; text-align: right; color: var(--muted); }
@media (max-width: 760px) { .article-liste li { grid-template-columns: 40px 1fr; } .article-liste .etat { grid-column: 2; text-align: left; } }
.glossaire { display: grid; grid-template-columns: 240px 1fr; border-top: 1px solid var(--ink); }
.glossaire dt, .glossaire dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glossaire dt { font-family: var(--serif); font-weight: 600; padding-right: 16px; }
@media (max-width: 700px) { .glossaire { grid-template-columns: 1fr; } .glossaire dt { border-bottom: 0; padding-bottom: 0; } }
.lettres { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 20px; }
.lettres a { text-decoration: none; font-weight: 600; min-width: 28px; min-height: 32px; display: inline-grid; place-items: center; }

/* Bandeau d'appel : toujours sombre avec texte clair, en mode clair comme en mode sombre */
.appel { --appel-fond: #16130f; --appel-texte: #f6f3ee; background: var(--appel-fond); color: var(--appel-texte); padding: clamp(56px, 8vw, 100px) 0; }
.appel h2 { color: var(--appel-texte); max-width: 22ch; }
.appel p { color: var(--appel-texte); opacity: .85; max-width: 52ch; }
.appel a:not(.btn) { color: var(--appel-texte); }
.appel .btn { background: var(--appel-texte); color: var(--appel-fond); border-color: var(--appel-texte); }
.appel .btn:hover { background: transparent; color: var(--appel-texte); }
.appel .btn.ghost { background: transparent; color: var(--appel-texte); border-color: var(--appel-texte); }
.appel .btn.ghost:hover { background: var(--appel-texte); color: var(--appel-fond); }

/* Pied de page */
.pied { border-top: 1px solid var(--ink); padding: 56px 0 28px; font-size: .92rem; }
.pied .cols { gap: 32px var(--g); }
.pied h2 { font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 3px 0; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .signature { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .86rem; }
.theme-btn { background: none; border: 1px solid var(--line-2); color: var(--ink); min-height: 36px; padding: 0 12px; font: .85rem var(--sans); cursor: pointer; }

/* Apparition douce, désactivée si l'utilisateur demande moins de mouvement */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .apparait { opacity: 1; transform: none; }
}
.no-js .apparait { opacity: 1; transform: none; }

@media print {
  .tete, .pied, .appel, .no-print, .ariane { display: none !important; }
  body { background: #fff; color: #000; }
  .devis { border: 0; padding: 0; margin: 0; }
  .sec { padding: 0; }
}
[hidden] { display: none !important; }
.couv-html { aspect-ratio: 3 / 4; height: 100%; background: #f6f3ee; color: #16130f; border: 1px solid #16130f; margin: 6%; display: flex; flex-direction: column; padding: 10%; font-family: var(--serif); }
.couv-html span { font: 600 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8e1b2e; }
.couv-html b { font-size: 1.3rem; line-height: 1.15; margin-top: 18%; }
.couv-html i { margin-top: auto; align-self: flex-end; font-style: normal; font-size: 2.6rem; color: #8e1b2e; line-height: 1; }

/* Accueil : étagère de couvertures et cartes références */
/* Accueil : planches en fondu enchaîné */
.fondu-scene { position: relative; display: grid; }
.fondu-diapo { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1.4s ease, visibility 0s linear 1.4s; }
.fondu-diapo.actif { opacity: 1; visibility: visible; transition: opacity 1.4s ease, visibility 0s; }
.fondu-diapo .planche-img { aspect-ratio: 14 / 9; display: flex; align-items: center; justify-content: center; }
.fondu-diapo img { width: 100%; height: 100%; object-fit: contain; }
.fondu-diapo figcaption a { color: inherit; }
.fondu-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px; font-size: .85rem; letter-spacing: .08em; color: var(--muted); }
.fondu-nav button { background: none; border: 1px solid var(--line-2); color: var(--ink); width: 40px; height: 40px; cursor: pointer; font: inherit; font-size: 1rem; }
.fondu-nav button:hover, .fondu-nav button:focus-visible { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .fondu-diapo, .fondu-diapo.actif { transition: none; } }
/* Accueil : bandeau défilant des couvertures (pause au survol, arrêt si l'utilisateur réduit les animations) */
.defile { margin-top: 48px; overflow: hidden; padding: 12px 0 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.defile-piste { display: flex; width: max-content; animation: defile 90s linear infinite; }
.defile:hover .defile-piste, .defile:focus-within .defile-piste { animation-play-state: paused; }
.defile-serie { display: flex; gap: clamp(14px, 1.8vw, 24px); padding-right: clamp(14px, 1.8vw, 24px); }
.defile a { display: block; flex: none; width: clamp(130px, 14vw, 190px); aspect-ratio: 3 / 4; background: var(--paper); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 10px 24px -14px rgba(22,19,15,.35); transition: transform .35s ease, box-shadow .35s ease; }
.defile a:hover, .defile a:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 30px -16px rgba(22,19,15,.45); }
.defile img, .defile .couv-html { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .defile { overflow-x: auto; } .defile-piste { animation: none; } .defile-serie[aria-hidden] { display: none; } }
.etagere { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); margin-top: 48px; }
.etagere a { display: block; aspect-ratio: 3 / 4; background: var(--paper); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 10px 24px -14px rgba(22,19,15,.35); transition: transform .35s ease, box-shadow .35s ease; }
.etagere a:hover { transform: translateY(-6px); box-shadow: 0 18px 30px -16px rgba(22,19,15,.45); }
.etagere img, .etagere .couv-html { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .etagere { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.refs-accueil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 48px; }
.carte-ref { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.carte-ref .ci { aspect-ratio: 4 / 3; overflow: hidden; background: #0d0c0b; }
.carte-ref img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.carte-ref:hover img { transform: scale(1.04); }
.carte-ref h3 { font-size: 1.18rem; margin: 16px 0 6px; }
.carte-ref p { font-size: .94rem; color: var(--ink-2); margin: 0 0 8px; }
.carte-ref .meta { font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .refs-accueil { grid-template-columns: 1fr; } }
.defile-refs .defile-piste { animation-duration: 70s; }
.defile-refs a.carte-ref { display: flex; width: clamp(260px, 30vw, 360px); flex: none; aspect-ratio: auto; background: none; border: 0; overflow: visible; box-shadow: none; }
.defile-refs a.carte-ref:hover, .defile-refs a.carte-ref:focus-visible { transform: none; box-shadow: none; }
.defile-refs .carte-ref p { white-space: normal; }
@media (prefers-reduced-motion: reduce) { .defile-refs .defile-serie[aria-hidden] { display: none; } }

/* Ressources : couverture du guide pilier et guides par profil */
.res-couv { display: block; aspect-ratio: 3 / 4; max-width: 340px; border: 1px solid var(--line); box-shadow: 0 16px 34px -18px rgba(22,19,15,.45); overflow: hidden; }
.res-couv img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .res-couv { max-width: 240px; margin-bottom: 28px; } }
.profils-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 var(--g); margin-top: 40px; border-top: 1px solid var(--ink); }
.profil { padding: 24px 0; border-bottom: 1px solid var(--line); }
.profil h3 { font-size: 1.12rem; margin: 0 0 10px; }
.profil ul { list-style: none; padding: 0; margin: 0 0 6px; }
.profil li { padding: 3px 0 3px 18px; position: relative; font-size: .95rem; }
.profil li::before { content: ""; position: absolute; left: 0; top: .9em; width: 10px; height: 1px; background: var(--accent); }
.profil a { color: var(--ink); }

/* Logos hexagonaux AS (ART-SCENIQUE) et SE (Scène Expert) */
.logos { display: flex; gap: 4px; flex: none; }
.hexa { width: 50px; height: 44px; flex: none; display: block; }
@media (max-width: 520px) { .hexa { width: 40px; height: 35px; } .logos { gap: 3px; } .marque { gap: 10px; } }
.marque small.metier { font: 400 .72rem/1 var(--sans); letter-spacing: .04em; margin-top: 4px; }
@media (max-width: 360px) { .marque small.metier { display: none; } }
