/* =========================================================
   Portfolio — Fabien Roux
   Grille suisse : traits noirs 2 px, angles droits, aplats.
   ========================================================= */

@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: optional; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Inter Tight"; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Space Mono"; font-weight: 400; font-display: swap; src: url("../fonts/space-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url("../fonts/space-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Space Mono"; font-weight: 700; font-display: swap; src: url("../fonts/space-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url("../fonts/space-mono-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #111;
  --paper: #fff;
  --ground: #E9E7E1;
  --soft: #F4F3EF;
  --blue: #2350D8;
  --red: #E33B2E;
  --line: 2px;
  --thin: 1.5px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--sans); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); padding: 8px 12px; z-index: 50; border: var(--line) solid var(--ink); }
.skip:focus { left: 8px; }
.short { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cadre : les traits de la grille sont les 2 px entre les cases ---------- */

.frame {
  max-width: 1200px; margin: 32px auto; border: var(--line) solid var(--ink);
  background: var(--ink); display: flex; flex-direction: column; gap: var(--line);
}
main { display: flex; flex-direction: column; gap: var(--line); outline: none; }
main > *, .top > .cell, .foot { background: var(--paper); }

/* ---------- En-tête ---------- */

.top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--line); }
.cell { padding: 14px 24px; display: flex; align-items: center; gap: 14px; min-height: 76px; }
.logo { width: 44px; height: 44px; flex: none; border: var(--line) solid var(--ink); background: var(--accent); display: grid; place-items: center; }
.logo svg { width: 28px; height: 28px; }
.name { text-decoration: none; display: flex; flex-direction: column; line-height: 1.25; }
.name b { font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.name span { font-family: var(--mono); font-size: 12px; }
.burger { display: none; }

.nav { gap: 26px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; }
.nav > a { text-decoration: none; padding: 8px 0; }
.nav > a:hover, .nav > a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-extra { display: none; }

.radio-btn {
  width: 44px; height: 44px; flex: none; border: var(--line) solid var(--ink); background: var(--accent);
  display: grid; place-items: center;
}
.radio-btn svg { width: 14px; height: 16px; fill: var(--ink); }
.i-pause { display: none !important; }
.is-playing .i-play, .is-playing > .v-toggle .i-play { display: none !important; }
.is-playing .i-pause { display: block !important; }
.radio-txt { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; }
.radio-top { display: flex; justify-content: space-between; gap: 8px; }
.radio-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--ink); animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.radio.is-playing .eq { display: flex; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 10px; } }

/* ---------- Bandeau ---------- */

.band { background: var(--accent) !important; padding: 28px var(--pad) 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.band h1 { font-weight: 400; font-size: clamp(28px, 6vw, 76px); line-height: .92; letter-spacing: -0.045em; text-transform: uppercase; }
.band-proj h1 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.035em; }
.band-cat { font-size: 20px; text-transform: uppercase; }

/* ---------- Filtres ---------- */

.projets { background: var(--ink) !important; display: flex; flex-direction: column; gap: var(--line); }
.filters { background: var(--paper); padding: 6px var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.filters-label { margin-right: 18px; }
.filters button { border: 0; background: none; min-height: 44px; padding: 0 2px; text-transform: uppercase; }
.filters button[aria-pressed="true"], .filters button:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- Cartes projets ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--line); }
.card { background: var(--soft); padding: 22px; text-decoration: none; display: flex; }
.card-in { flex: 1; display: flex; flex-direction: column; border: var(--thin) solid var(--ink); background: var(--paper); position: relative; }
.card-num { padding: 8px 12px; border-bottom: var(--thin) solid var(--ink); font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.card-title { padding: 12px 12px 16px; border-bottom: var(--thin) solid var(--ink); font-weight: 400; }
.t-main { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -0.025em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { display: block; margin-top: 4px; font-size: 14px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-hook { padding: 12px; border-bottom: var(--thin) solid var(--ink); font-size: 13px; line-height: 1.45; text-align: justify; hyphens: auto; flex: 1; }
.card-foot { display: grid; grid-template-columns: 3fr 2fr; height: 170px; }
.card-img { border-right: var(--thin) solid var(--ink); overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-meta { display: flex; flex-direction: column; }
.card-cat { flex: 1; background: var(--c); color: var(--i); border-bottom: var(--thin) solid var(--ink); display: grid; place-items: center; text-align: center; padding: 0 8px; font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; }
.card-count { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.card-count b { font-size: 26px; font-weight: 400; line-height: 1; }
.card:hover .t-main { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.js .card.is-extra, .card.is-hidden { display: none; }
.cards.show-all .card.is-extra:not(.is-hidden) { display: flex; }
.empty { background: var(--paper); padding: 28px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.more { background: var(--paper); border: 0; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.more:hover { background: var(--soft); }
.more-n { font-family: var(--mono); font-size: 13px; background: var(--accent); border: var(--thin) solid var(--ink); padding: 2px 8px; }
.more[hidden] { display: none; }

/* ---------- À propos ---------- */

.about { background: var(--ink) !important; display: flex; flex-wrap: wrap; gap: var(--line); }
.about-img { flex: 1 1 380px; min-height: 420px; background: var(--soft); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-txt { flex: 1 1 420px; background: var(--paper); padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.about-head { display: flex; justify-content: flex-end; }
.about-p { font-size: 17px; line-height: 1.55; max-width: 56ch; text-align: justify; hyphens: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 26px; border: var(--thin) solid var(--ink); background: var(--soft); text-decoration: none; font-size: 14px; }
.pill:hover { background: var(--accent); }

/* ---------- Contact ---------- */

.contact { background: var(--ink) !important; display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; gap: var(--line); }
.c-blue { background: var(--blue); }
.c-main { background: var(--paper); padding: 56px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.c-main h2 { font-weight: 500; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.c-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.c-mail, .c-tel { font-family: var(--mono); font-size: 18px; padding: 14px 22px; border: var(--thin) solid var(--ink); text-decoration: none; }
.c-mail { background: var(--accent); }
.c-mail:hover, .c-tel:hover { background: var(--ink); color: var(--paper); }
.c-side { display: grid; grid-template-rows: 2fr 1fr; gap: var(--line); }
.c-red { background: var(--red); } .c-white { background: var(--paper); }

/* ---------- Pied de page ---------- */

.foot { padding: 14px var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }

/* ---------- Page projet ---------- */

.pnav { padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.pnav a { text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; padding: 0 4px; }
.pnav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pnav-r { display: flex; align-items: center; gap: 18px; }

.infos { background: var(--ink) !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--line); }
.info { background: var(--paper); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.info .mono { font-size: 11px; }
.info b { font-weight: 400; font-size: 18px; text-transform: uppercase; }

.texte { padding: 32px var(--pad); columns: 2 340px; column-gap: 40px; font-size: 14.5px; line-height: 1.6; text-align: justify; hyphens: auto; }
.texte p + p { margin-top: 1em; }
.texte p { break-inside: avoid-column; }

/* Séparateurs jaunes (couleur d'accent) entre les visuels */
.medias { --gap: 6px; background: var(--accent) !important; display: flex; flex-direction: column; gap: var(--gap); }
.row { display: flex; gap: var(--gap); }
.media { flex: calc(var(--r) * 100) 1 0; min-width: 0; background: var(--soft); position: relative; aspect-ratio: var(--r); }
/* Pleine largeur : un visuel vertical ne dépasse pas la hauteur de l'écran, centré sur fond clair */
.row-plein .media { flex: 1 1 auto; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
.row-plein .zoom { height: auto; max-width: 100%; }
.row-plein .media:not(.media-video) img { width: auto; height: auto; max-width: 100%; max-height: 100vh; object-fit: contain; }
.row-plein .media-video video { width: auto; max-width: 100%; max-height: 82vh; }
.row-plein .media-video .v-bar { align-self: stretch; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: var(--paper); border: var(--thin) solid var(--ink); padding: 4px 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.zoom { display: block; height: 100%; cursor: zoom-in; }

/* Vidéo */
.media-video { background: var(--ink); display: flex; flex-direction: column; aspect-ratio: auto; }
.media-video video { aspect-ratio: var(--r); height: auto; background: var(--ink); }
.v-tag { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 4px 8px; pointer-events: none; }
.v-big { position: absolute; left: 50%; top: calc(50% - 23px); transform: translate(-50%, -50%); width: 88px; height: 88px; background: var(--accent); border: var(--line) solid var(--ink); display: grid; place-items: center; }
.v-big svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 4px; }
.media-video.is-started .v-big { display: none; }
/* Vidéo en boucle : lecture automatique sans son ; gros bouton seulement si le navigateur bloque la lecture */
.media-video.is-loop .v-big { display: none; top: 50%; }
.media-video.is-loop.needs-play .v-big { display: grid; }
.v-toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: var(--line) solid var(--ink); background: var(--accent); display: grid; place-items: center; }
.v-toggle svg { width: 12px; height: 14px; fill: var(--ink); }
.media-video.needs-play .v-toggle { display: none; }
.v-bar { display: flex; align-items: stretch; background: var(--paper); border-top: var(--line) solid var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; min-height: 46px; }
.v-bar button { border: 0; background: var(--paper); padding: 0 14px; text-transform: uppercase; }
.v-bar button:hover { background: var(--soft); }
.v-play { border-right: var(--line) solid var(--ink) !important; width: 48px; display: grid; place-items: center; }
.v-play svg { width: 12px; height: 14px; fill: var(--ink); }
.v-time { display: flex; align-items: center; padding: 0 12px; border-right: var(--line) solid var(--ink); min-width: 70px; }
.v-track { flex: 1; display: flex; align-items: center; padding: 0 14px; cursor: pointer; position: relative; }
.v-track::before { content: ""; position: absolute; left: 14px; right: 14px; height: 10px; border: var(--thin) solid var(--ink); }
.v-track i { position: relative; height: 10px; width: 0; background: var(--ink); }
.v-mute, .v-full { border-left: var(--line) solid var(--ink) !important; }
.v-mute[aria-pressed="true"] { background: var(--accent); }
.media-video.is-loop .v-tag { top: 14px; }
.media-video:fullscreen video { height: 100%; aspect-ratio: auto; object-fit: contain; }
.media-video:fullscreen { justify-content: center; }

/* Projet suivant */
.next { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: var(--line); background: var(--ink) !important; text-decoration: none; }
.next-txt { background: var(--paper); padding: 32px var(--pad); display: flex; flex-direction: column; gap: 10px; }
.next-txt .mono { font-size: 13px; }
.next-txt b { font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.next-arrow { background: var(--accent); display: grid; place-items: center; }
.next-arrow svg { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 3; transition: transform .2s; }
.next:hover .next-arrow svg { transform: translateX(6px); }
.notfound { padding: 40px var(--pad); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.nf-code { font-family: var(--mono); font-size: clamp(64px, 12vw, 140px); line-height: .9; letter-spacing: -0.05em; }

/* Projets proches (page projet) et suggestions (page 404) */
.proches { background: var(--ink) !important; display: flex; flex-direction: column; gap: var(--line); }
.proches-h { background: var(--paper); margin: 0; padding: 12px var(--pad); font-weight: 400; font-size: 13px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--line); }
.mini-card { background: var(--paper); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.mini-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); border-bottom: var(--thin) solid var(--ink); }
.mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mini-card:hover .mini-img img { transform: scale(1.04); }
.mini-txt { display: flex; justify-content: space-between; align-items: stretch; gap: 0; min-height: 52px; }
.mini-txt b { flex: 1; min-width: 0; font-weight: 400; font-size: 15px; line-height: 1.2; text-transform: uppercase; letter-spacing: -0.01em; padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-cat { flex: none; background: var(--c); color: var(--i); border-left: var(--thin) solid var(--ink); display: grid; place-items: center; padding: 0 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.mini-card:hover .mini-txt b { background: var(--accent); }

/* Mentions légales */
.legal { padding: 32px var(--pad) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; font-size: 14.5px; line-height: 1.6; }
.legal h2 { margin: 0 0 8px; font-weight: 400; }
.legal p { margin: 0 0 10px; }
.foot a { color: inherit; }

/* Copier l'adresse e-mail */
.c-mailrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.c-copy { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 0 16px; min-height: 44px; border: var(--thin) solid var(--ink); background: var(--paper); cursor: pointer; color: var(--ink); }
.c-copy:hover { background: var(--ink); color: var(--paper); }
.c-copy.is-ok { background: var(--ink); color: var(--paper); }

/* ---------- Visionneuse ---------- */

.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(17, 17, 17, .96); display: grid; grid-template-rows: auto 1fr; }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: stretch; background: var(--paper); border-bottom: var(--line) solid var(--ink); font-family: var(--mono); font-size: 13px; }
.lb-count { display: flex; align-items: center; padding: 0 20px; }
.lb-close { width: 60px; height: 56px; border: 0; border-left: var(--line) solid var(--ink); background: var(--accent); display: grid; place-items: center; }
.lb-close svg, .burger svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; fill: none; }
.lb-stage { display: grid; place-items: center; padding: 24px 84px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lb-prev, .lb-next { position: absolute; top: 50%; width: 56px; height: 56px; border: var(--line) solid var(--ink); background: var(--accent); font-size: 22px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   Téléphone
   ========================================================= */

@media (max-width: 700px) {
  .mini-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-cards .mini-card:nth-child(3) { display: none; }
  .mini-txt { flex-direction: column; }
  .mini-cat { border-left: 0; border-top: var(--thin) solid var(--ink); padding: 4px 10px; justify-items: start; }
  .mini-txt b { font-size: 13px; }
  .legal { padding: 22px 16px 28px; }
  :root { --pad: 16px; }
  .long { display: none; }
  .short { display: inline; }
  .frame { margin: 0; border-left: 0; border-right: 0; border-top: 0; }

  /* En-tête : identité + menu, radio en barre fine, menu déroulant */
  .top { grid-template-columns: 1fr; position: relative; z-index: 30; }
  .brand { padding: 0 0 0 16px; min-height: 70px; }
  .logo { width: 40px; height: 40px; }
  .logo svg { width: 24px; height: 24px; }
  .name b { font-size: 16px; }
  .name span { font-size: 11px; }
  .burger { display: grid; place-items: center; margin-left: auto; align-self: stretch; width: 70px; border: 0; border-left: var(--line) solid var(--ink); background: var(--paper); }
  .burger svg { width: 22px; }
  .burger .i-open { stroke: var(--ink); stroke-width: 2; fill: none; }
  .burger .i-close { display: none; }
  .menu-open .burger { background: var(--accent); }
  .menu-open .burger .i-open { display: none; }
  .menu-open .burger .i-close { display: block; }

  .radio { order: 2; min-height: 46px; padding: 0 14px 0 0; gap: 10px; }
  .radio-btn { width: 46px; height: 46px; border: 0; border-right: var(--line) solid var(--ink); }
  .radio-txt { display: flex; gap: 8px; font-size: 11px; }
  .radio-top { display: contents; }
  .radio-top span:first-child { order: 0; flex: none; }
  .radio-title { order: 1; flex: 1; }
  .radio-time { order: 2; flex: none; }

  .nav { order: 3; display: none; flex-direction: column; align-items: stretch; gap: var(--line); padding: 0; min-height: 0; background: var(--ink) !important; font-family: var(--sans); font-size: 24px; letter-spacing: -0.03em; }
  .menu-open .nav { display: flex; }
  .nav > a { background: var(--paper); min-height: 52px; display: flex; align-items: center; padding: 0 16px; text-decoration: none !important; }
  .nav > a[aria-current] { background: var(--accent); }
  .menu-extra { display: flex; flex-direction: column; gap: var(--line); }
  .menu-cats { background: var(--paper); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
  .menu-cats a { font-family: var(--mono); font-size: 12px; letter-spacing: 0; padding: 0 10px; min-height: 36px; display: inline-flex; align-items: center; border: var(--thin) solid var(--ink); text-decoration: none; }
  .menu-mail { background: var(--paper); padding: 0 16px; min-height: 44px; display: flex; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0; text-decoration: none; }
  .scrim { position: fixed; inset: 0; z-index: 20; background: rgba(17, 17, 17, .55); }

  /* Bandeau */
  .band { padding: 18px 16px 16px; }
  .band h1 { font-size: clamp(24px, 8vw, 34px); white-space: nowrap; line-height: 1; letter-spacing: -0.04em; }
  .band-proj h1 { white-space: normal; font-size: clamp(24px, 7.5vw, 30px); line-height: 1.02; }
  .band-proj { flex-direction: column; align-items: flex-start; }
  .band-cat { font-size: 16px; }

  /* Filtres : une ligne qui défile */
  .filters { flex-wrap: nowrap; overflow-x: auto; padding: 0 6px; gap: 0; scrollbar-width: none; font-size: 12px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters-label { display: none; }
  .filters button { flex: none; padding: 0 12px; }

  /* Cartes → vignettes sur 2 colonnes */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 0; background: var(--paper); }
  .card-in { border: 0; }
  .card-foot { display: contents; }
  .card-img { order: -1; height: 170px; border-right: 0; border-bottom: var(--thin) solid var(--ink); }
  .card-num { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 1px 5px; border: var(--thin) solid var(--ink); background: var(--paper); font-size: 11px; }
  .card-title { order: 0; border: 0; padding: 8px 10px 4px; }
  .t-main { font-size: 16px; }
  .t-sub { display: none; }
  .card-hook { display: none; }
  .card-meta { order: 1; flex-direction: row; align-items: center; gap: 6px; padding: 0 10px 10px; margin-top: auto; font-family: var(--mono); font-size: 11px; }
  .card-cat { flex: 1; display: flex; align-items: center; gap: 6px; background: none; color: var(--ink); border: 0; padding: 0; font-family: var(--mono); font-size: 11px; justify-content: flex-start; }
  .card-cat::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--c); border: var(--thin) solid var(--ink); }
  .card-count { flex: none; flex-direction: row; gap: 4px; font-size: 11px; }
  .card-count b { font-size: 11px; }
  .more { min-height: 56px; font-size: 17px; }

  /* À propos, contact */
  .about-img { flex-basis: 100%; min-height: 300px; height: 300px; }
  .about-txt { padding: 24px 16px; gap: 20px; }
  .about-head { justify-content: flex-start; }
  .about-p { font-size: 15px; }
  .pill { padding: 10px 20px; }
  .contact { grid-template-columns: 24px minmax(0, 1fr) 24px; }
  .c-main { padding: 32px 16px; flex-direction: column; align-items: stretch; }
  .c-main h2 { font-size: 36px; }
  .c-links { align-items: stretch; }
  .c-mail, .c-tel { font-size: 15px; text-align: center; }
  .foot { flex-direction: column; font-size: 11px; padding: 16px; }

  /* Page projet */
  .pnav { padding: 0 16px; font-size: 12px; }
  .pnav-r { gap: 4px; }
  .pnav-r a { padding: 0 10px; }
  .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info { padding: 12px 16px; }
  .info b { font-size: 15px; }
  .texte { padding: 22px 16px; columns: 1; font-size: 14.5px; }
  .medias { --gap: 4px; }
  .row-trio, .row-auto.n3 { flex-wrap: wrap; }
  .row-trio .media:first-child, .row-auto.n3 .media:first-child { flex-basis: 100%; }
  .v-big { width: 60px; height: 60px; top: calc(50% - 23px); }
  .v-big svg { width: 20px; height: 20px; }
  .v-time { display: none; }
  .v-bar button { padding: 0 10px; font-size: 11px; }
  .next { grid-template-columns: minmax(0, 1fr) 80px; }
  .next-txt { padding: 22px 16px; }
  .next-txt b { font-size: 20px; }
  .next-arrow svg { width: 32px; height: 32px; }
  .lb-stage { padding: 12px; }
  .lb-stage img { max-height: calc(100vh - 160px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; }
}

/* Réglage « réduire les animations » du système : pas de mouvement ni de lecture automatique */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover .card-img img, .mini-card:hover .mini-img img, .next:hover .next-arrow svg { transform: none; }
}

/* Aperçu d'un brouillon (admin) */
.apercu-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 18px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.apercu-bar b { background: var(--accent); color: var(--ink); padding: 2px 8px; font-weight: 400; }
.apercu-bar a { color: var(--paper); margin-left: auto; }

/* ===== Sélection privée (/s/…) ===== */
.selinfo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.selinfo span + span { color: #444; }
.selband { background: var(--blue) !important; color: #fff; }
.selband h1 { font-size: clamp(40px, 7vw, 84px); }
.selband-t { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.selband-t .mono { font-size: 13px; }
.selband-n { border: var(--thin) solid var(--ink); background: var(--paper); color: var(--ink); padding: 6px 12px; font-size: 13px; }
.selprojets { background: var(--ink) !important; display: flex; flex-direction: column; gap: var(--line); }
.selprojets-h { background: var(--paper); padding: 6px var(--pad); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.selprojets-h span + span { color: #444; }

/* Cartes (style de l'accueil) + carrousel au-delà de 3 projets */
.selcar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--line); }
.selcar.is-scroll { grid-template-columns: 64px minmax(0, 1fr) 64px; }
.selcar-side { background: var(--paper); display: grid; place-items: center; }
.selcar-btn { width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.selcar-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.selcar-btn:hover { background: var(--ink); }
.selcar-btn:disabled { background: #E9E7E1; color: #888; cursor: default; }
.selcar-view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.selcar-view::-webkit-scrollbar { display: none; }
.selcar-track { display: flex; gap: var(--line); }
.selcar-track .selcard { flex: 0 0 calc((100% - 2 * var(--line)) / 3); scroll-snap-align: start; box-sizing: border-box; }
.selcar-track.n1 .selcard { flex-basis: calc((100% - 2 * var(--line)) / 3); }
.selcar-track.n1::after, .selcar-track.n2::after { content: ""; flex: 1; background: var(--soft); }
.card-go { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--red); color: #fff; border-top: var(--thin) solid var(--ink); font-size: 13px; text-transform: uppercase; }
.selcard:hover .card-go { background: var(--ink); }
.selcard .card-hook { min-height: 4.4em; }

/* Bloc contact de la sélection */
.sc-main { display: flex; flex-direction: column; gap: var(--line); background: var(--ink); }
.sc-title { background: var(--paper); margin: 0; padding: 40px 32px 36px; font-weight: 500; font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.sc-cells { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--line); }
.sc-cells.n2 { grid-template-columns: 1.4fr 1fr; }
.sc-cells.n1 { grid-template-columns: 1fr; }
.sc-cell { background: var(--paper); padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.sc-cell .mono { font-size: 12px; }
.sc-mail { background: var(--accent); }
.sc-mail a { font-family: var(--mono); font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.sc-mail a:hover { text-decoration: underline; }
.sc-mail .c-copy { align-self: flex-start; min-height: 36px; font-size: 11px; }
.sc-link { justify-content: space-between; }
.sc-big { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; font-size: 22px; line-height: 1.1; text-transform: uppercase; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sc-link:hover { background: var(--ink); color: var(--paper); }
.selnav a { text-decoration: none; }

@media (max-width: 1000px) {
  .sc-cells, .sc-cells.n2 { grid-template-columns: 1fr 1fr; }
  .sc-cells.n3 .sc-mail { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .seltop { grid-template-columns: 1fr 1fr; }
  .seltop .brand { grid-column: 1 / -1; padding: 0 16px; }
  .seltop .selinfo { min-height: 0; padding: 10px 16px; font-size: 10.5px; }
  .selband h1 { font-size: clamp(30px, 11vw, 46px); white-space: normal; }
  .selband-n { font-size: 11px; }
  .selprojets-h { padding: 6px 16px; }
  /* Téléphone : cartes les unes sous les autres, pas de flèches */
  .selcar.is-scroll { grid-template-columns: minmax(0, 1fr); }
  .selcar-side { display: none; }
  .selcar-view { overflow: visible; }
  .selcar-track { flex-direction: column; }
  .selcar-track .selcard, .selcar-track.n1 .selcard { flex-basis: auto; }
  .selcar-track.n1::after, .selcar-track.n2::after { display: none; }
  .sc-title { padding: 28px 16px; }
  .sc-cells, .sc-cells.n2, .sc-cells.n3 { grid-template-columns: 1fr; }
  .sc-cells .sc-mail { grid-column: auto; }
  .sc-cell { padding: 16px; }
  .selcard .card-go { order: 10; }
}
