/* =========================================================
   Bastien Bonnet--Ladregarde — Portfolio
   Papier clair · vert British Racing · bordeaux
   Titres : Archivo étendu · Texte : IBM Plex Sans
   ========================================================= */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --f-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --green: #1F5A44;
  --green-2: #2A7257;
  --green-tint: #E2ECE4;
  --bordeaux: #8E1B2E;
  --bordeaux-2: #A8263B;
  --rose-tint: #F5E6E4;
  --sand-tint: #F2EADB;

  --bg: #F6F3EE;
  --surface: #FCFAF6;
  --surface-2: #EFEBE3;
  --ink: #18221E;
  --ink-2: #3A4842;
  --muted: #66726C;
  --line: rgba(24, 34, 30, .1);
  --line-2: rgba(24, 34, 30, .2);
  --glass: rgba(252, 250, 246, .72);
  --glass-line: rgba(255, 255, 255, .8);
  --shadow-sm: 0 1px 2px rgba(24,34,30,.05), 0 4px 14px -6px rgba(24,34,30,.12);
  --shadow: 0 1px 2px rgba(24,34,30,.04), 0 18px 40px -22px rgba(24,34,30,.28);

  /* alias utilisés par les démos */
  --brg-2: var(--green-2);
  --accent: var(--bordeaux);
  --gold: #B8935A;
  --data: var(--green-2);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #17211D;
  --surface: #1E2A25;
  --surface-2: #24322C;
  --ink: #EEE9E0;
  --ink-2: #D2CCC1;
  --muted: #A3ADA7;
  --line: rgba(238, 233, 224, .1);
  --line-2: rgba(238, 233, 224, .2);
  --glass: rgba(30, 42, 37, .72);
  --glass-line: rgba(255, 255, 255, .08);
  --green-tint: #23382F;
  --rose-tint: #3A2529;
  --sand-tint: #332E25;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25), 0 4px 14px -6px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 18px 40px -22px rgba(0,0,0,.6);
  --accent: #D0465B;
  --brg-2: #5DB08A;
  --data: #5DB08A;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16.5px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
sup { font-size: .6em; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: #F6F3EE; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.small { font-size: .86rem; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 40px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fond ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.g1 { width: 50vw; height: 50vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(42,114,87,.16), transparent 70%); }
.g2 { width: 44vw; height: 44vw; right: -14vw; top: 20vh; background: radial-gradient(circle, rgba(184,147,90,.16), transparent 70%); }
.gridlines { display: none; }
.grain {
  position: absolute; inset: -50%; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .03; }

/* ---------- Verre (navigation, filtres, télémétrie) ---------- */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), var(--shadow);
}
[data-theme="dark"] .glass { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow); }

/* ---------- Typo ---------- */
.kicker { font: 600 .9rem/1.3 var(--f-head); font-stretch: 105%; color: var(--green-2); margin-bottom: 12px; }
.display, .h1, .h2, .h3, .h4 { font-family: var(--f-head); color: var(--ink); }
.display { font-weight: 850; font-stretch: 125%; font-size: clamp(2.5rem, 6.6vw, 5.6rem); line-height: .96; letter-spacing: -.035em; margin-bottom: 26px; }
.display .line { display: block; }
.display .line + .line { color: var(--green); }
[data-theme="dark"] .display .line + .line { color: #7CC4A0; }
.h1 { font-weight: 800; font-stretch: 115%; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 20px; max-width: 20ch; text-wrap: balance; }
.h2 { font-weight: 780; font-stretch: 112%; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.06; letter-spacing: -.025em; max-width: 24ch; text-wrap: balance; }
.h3 { font-weight: 700; font-stretch: 105%; font-size: 1.2rem; letter-spacing: -.012em; line-height: 1.2; margin-bottom: 10px; }
.h4 { font-weight: 650; font-size: 1rem; margin-bottom: 12px; }
.lead { font-size: clamp(1.07rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.lead-sm { font-size: 1.08rem; color: var(--ink-2); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; transition: gap .3s var(--ease); }
[data-theme="dark"] .text-link { color: #7CC4A0; }
.text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.text-link:hover { gap: 12px; }

/* ---------- Boutons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 10px;
  font: 600 .95rem/1 var(--f-body); white-space: nowrap;
  transition: transform .3s var(--ease), background .25s, box-shadow .3s var(--ease), color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); flex: none; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: .88rem; border-radius: 9px; }
.btn-block { width: 100%; margin-top: 16px; }
.btn-solid { background: var(--green); color: #FBF8F2; box-shadow: 0 6px 16px -8px rgba(31,90,68,.6); }
.btn-solid:hover { background: var(--green-2); box-shadow: 0 10px 22px -10px rgba(31,90,68,.7); }
[data-theme="dark"] .btn-solid { background: #2E7D5D; }
.btn-line { border: 1.5px solid var(--line-2); background: var(--surface); }
.btn-line:hover { border-color: var(--green-2); color: var(--green); }
[data-theme="dark"] .btn-line:hover { color: #7CC4A0; }
.btn-glass { border: 1.5px solid var(--line-2); background: var(--surface); }
.btn-ghost { border: 1.5px dashed var(--line-2); }
.btn-ghost:hover { border-style: solid; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; transition: background .25s; flex: none; }
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding-inline: 14px; pointer-events: none; }
.nav {
  pointer-events: auto; max-width: 1180px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 12px; border-radius: 16px;
  transition: transform .5s var(--ease);
}
.nav-wrap.is-hidden .nav { transform: translateY(-130%); }
.brand { display: flex; align-items: center; gap: 10px; }
.mono-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--green); color: #F6F3EE; font: 800 .85rem/1 var(--f-head); font-stretch: 120%; letter-spacing: -.02em; }
.brand-name { font: 700 .95rem/1 var(--f-head); font-stretch: 110%; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 9px; font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--line); }
.nav-links a[aria-current="page"] { color: var(--green); background: var(--green-tint); font-weight: 600; }
[data-theme="dark"] .nav-links a[aria-current="page"] { color: #8FD1AF; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.theme-toggle svg:last-child { display: none; }
[data-theme="dark"] .theme-toggle svg:first-child { display: none; }
[data-theme="dark"] .theme-toggle svg:last-child { display: block; }
.menu-toggle { display: none; }
.menu-toggle svg:last-child { display: none; }

/* ---------- Animations ---------- */
.hero-in { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 80ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.nav { view-transition-name: nav; }

/* ---------- Sections ---------- */
main { padding-top: 104px; }
.sec { padding-block: clamp(52px, 7vw, 92px); }
.sec-tight { padding-block: 16px 80px; }
.sec-head { margin-bottom: 40px; }
.sec-head .lead { margin-top: 16px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head-row .sec-head { margin: 0; }
.page-hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: 36px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 64px); align-items: center; min-height: calc(100svh - 160px); padding-block: 24px 50px; }
.hero-pitch { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin-bottom: 22px; }
.domain-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.domain-list li { font-size: .88rem; font-weight: 500; padding: 7px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.domain-list li:nth-child(1) { background: var(--green-tint); border-color: transparent; color: var(--green); }
.domain-list li:nth-child(3) { background: var(--rose-tint); border-color: transparent; color: var(--bordeaux); }
[data-theme="dark"] .domain-list li:nth-child(1) { color: #8FD1AF; }
[data-theme="dark"] .domain-list li:nth-child(3) { color: #E6919E; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.telemetry { padding: 18px; border-radius: var(--r-lg); margin: 0; overflow: hidden; }
.tm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.tm-title { font: 650 .95rem/1.2 var(--f-head); font-stretch: 105%; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.seg button { padding: 6px 13px; border-radius: 8px; font-size: .84rem; font-weight: 500; color: var(--muted); transition: color .25s, background .25s; }
.seg button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.tm-chart { width: 100%; height: auto; aspect-ratio: 52 / 30; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.tm-grid line { stroke: var(--line); }
.tm-line { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; transition: stroke .6s; }
.tm-area { fill: url(#tmFill); }
[data-mode="market"] .tm-line { stroke: var(--bordeaux); }
[data-theme="dark"] .tm-line { stroke: #5DB08A; }
[data-theme="dark"] [data-mode="market"] .tm-line { stroke: #D0465B; }
.tm-cursor { stroke: var(--ink); stroke-opacity: .25; stroke-dasharray: 3 4; }
.tm-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.tm-read { display: grid; grid-template-columns: .8fr 1fr 1.35fr; gap: 8px; margin-top: 12px; }
.tm-read > div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-read span { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.tm-read b { font: 500 .95rem/1.3 var(--f-num); white-space: nowrap; }
.tm-cap { margin-top: 12px; font-size: .84rem; color: var(--muted); }

/* ---------- Profil 30 s ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.quick-grid > div { padding: 20px 22px; }
.quick-grid > div + div { border-left: 1px solid var(--line); }
.quick-grid p:last-child { margin: 0; line-height: 1.5; font-size: .96rem; }
.q-label { font: 650 .82rem/1.2 var(--f-head); font-stretch: 105%; color: var(--green-2); margin-bottom: 6px; }

/* ---------- Intro + méthode ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 84px); align-items: start; }
.signature { margin: 0; font-family: var(--f-head); font-weight: 750; font-stretch: 110%; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 60px; counter-reset: m; }
.method li { counter-increment: m; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; }
.method li::before { content: counter(m); position: absolute; top: 16px; right: 18px; font: 800 1.6rem/1 var(--f-head); font-stretch: 125%; color: var(--line-2); }
.method h3 { font-family: var(--f-head); font-weight: 700; font-stretch: 110%; font-size: 1.1rem; margin-bottom: 8px; }
.method p { color: var(--muted); font-size: .94rem; margin: 0; }
.method li:nth-child(1) { background: var(--green-tint); border-color: transparent; }

/* ---------- Projets à la une (accueil) ---------- */
.features { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.feature { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feature.is-big { grid-row: span 2; }
.feature:not(.is-big) { flex-direction: row; }
.feature-cover { overflow: hidden; }
.feature.is-big .feature-cover { aspect-ratio: 16 / 11; }
.feature:not(.is-big) .feature-cover { flex: 0 0 42%; }
.feature-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feature h3 { font: 750 1.35rem/1.12 var(--f-head); font-stretch: 110%; letter-spacing: -.02em; }
.feature.is-big h3 { font-size: 1.75rem; }
.feature p { color: var(--muted); margin: 0; }
.cover-svg { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card-link:focus-visible { outline: 2px solid var(--green-2); outline-offset: -3px; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--green); }
[data-theme="dark"] .more { color: #7CC4A0; }
.more svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .feature:hover, .prow:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .feature:hover .cover-svg, .prow:hover .cover-svg { transform: scale(1.04); }
  .feature:hover .more svg, .prow:hover .more svg { transform: translateX(4px); }
}
.meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .86rem; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8rem; font-weight: 500; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }

.status { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; padding: 4px 9px 4px 8px; border-radius: 6px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-done { color: var(--green); background: var(--green-tint); }
.status-wip { color: var(--bordeaux); background: var(--rose-tint); }
.status-wip i { animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.status-concept { color: #7A6235; background: var(--sand-tint); }
.status-concept i { background: transparent; border: 1.5px solid currentColor; }
[data-theme="dark"] .status-done { color: #8FD1AF; }
[data-theme="dark"] .status-wip { color: #EE8D9C; }
[data-theme="dark"] .status-concept { color: #D9BE8A; }

/* ---------- Index des projets (lignes) ---------- */
.prows { display: flex; flex-direction: column; gap: 16px; }
.prow {
  position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr) 260px; gap: 26px; align-items: stretch;
  padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.prow-cover { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.prow-main { padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.prow h2 { font: 780 1.55rem/1.08 var(--f-head); font-stretch: 112%; letter-spacing: -.02em; }
.prow-tag { font-weight: 500; color: var(--ink-2); margin: 0; }
.prow-sum { color: var(--muted); margin: 0; font-size: .95rem; }
.prow-side { padding: 12px 14px 12px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.prow-side p { margin: 0 0 8px; font-size: .92rem; }
.side-label { font: 650 .78rem/1.2 var(--f-head) !important; font-stretch: 105% !important; color: var(--green-2); margin-bottom: 4px !important; }
.prow.is-hidden { display: none; }

/* ---------- Frise (accueil) ---------- */
.htl-wrap { overflow-x: auto; scrollbar-width: none; padding: 10px 0 26px; }
.htl-wrap::-webkit-scrollbar { display: none; }
.htl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); width: max(100%, 1200px); padding-inline: max(20px, calc((100vw - var(--wrap)) / 2)); position: relative; }
.htl::before { content: ""; position: absolute; left: 0; right: 0; top: 47px; height: 2px; background: var(--line); }
.htl li { position: relative; padding-right: 20px; display: flex; flex-direction: column; gap: 4px; }
.htl-y { font: 800 1.8rem/1 var(--f-head); font-stretch: 120%; letter-spacing: -.03em; }
.htl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--green); margin: 10px 0; position: relative; z-index: 1; }
.htl .is-future .htl-dot { border-color: var(--bordeaux); border-style: dashed; }
.htl .is-future .htl-y { color: var(--bordeaux); }
.htl b { font-weight: 600; }

/* ---------- Bandeau contact ---------- */
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end;
  padding: clamp(28px, 5vw, 52px); border-radius: 24px;
  background: var(--green-tint); border: 1px solid rgba(31,90,68,.12);
}
.band .h2 { color: var(--green); }
[data-theme="dark"] .band .h2 { color: #A9DEC2; }
.band-text { margin: 14px 0 0; color: var(--ink-2); max-width: 52ch; }
.band-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.band-actions .copy-email { grid-column: 1 / -1; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.about-text p { max-width: 64ch; }
.about-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.side-card, .fact-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--green-2); opacity: .8; }
.langs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.langs li:last-child { border: 0; }
.interest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.interest { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.interest.i0 { background: var(--green-tint); border-color: transparent; }
.interest.i2 { background: var(--rose-tint); border-color: transparent; }
.interest.i3 { background: var(--sand-tint); border-color: transparent; }
.interest p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.skills { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.skill-groups { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 96px; }
.skill-groups button { text-align: left; padding: 14px 16px; border-radius: 12px; font-weight: 600; color: var(--muted); border: 1px solid transparent; transition: all .25s var(--ease); }
.skill-groups button:hover { color: var(--ink); background: var(--line); }
.skill-groups button[aria-selected="true"] { color: var(--green); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .skill-groups button[aria-selected="true"] { color: #8FD1AF; }
.skill-panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: panel .45s var(--ease-out); }
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
.sp-intro { max-width: 64ch; margin-bottom: 24px; }
.sp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.skill-list { display: flex; flex-direction: column; gap: 6px; }
.skill-chip { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 500; transition: all .2s var(--ease); }
.skill-chip:hover { border-color: var(--line-2); }
.skill-chip.is-on { background: var(--green); color: #FBF8F2; border-color: var(--green); }
.count { font: 500 .75rem/1 var(--f-num); padding: 3px 6px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
.skill-chip.is-on .count, .filter.is-on .count { background: rgba(255,255,255,.2); color: inherit; }
.skill-projects { display: flex; flex-direction: column; gap: 8px; }
.skill-projects .eyebrow { font: 650 .82rem/1.2 var(--f-head); color: var(--green-2); margin-bottom: 4px; }
.skill-projects a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; transition: transform .25s var(--ease), border-color .25s; animation: panel .4s var(--ease-out) both; }
.skill-projects a:hover { transform: translateX(4px); border-color: var(--green-2); }
.skill-projects .sp-empty { color: var(--muted); font-size: .95rem; }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
.tl-when { padding-top: 22px; font: 500 .86rem/1.3 var(--f-num); color: var(--muted); text-align: right; }
.is-now .tl-when { color: var(--bordeaux); }
.tl-card { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); border-left: 3px solid var(--green-2); }
.is-now .tl-card { border-left-color: var(--bordeaux); }
.tl-card h3 { font: 720 1.08rem/1.25 var(--f-head); font-stretch: 108%; letter-spacing: -.01em; }
.tl-org { margin: 4px 0 10px; color: var(--muted); font-size: .93rem; }
.tl-card .tags { margin-top: 12px; }
.tl-card > :last-child, .tl-card .ticks li:last-child { margin-bottom: 0; }

/* ---------- Filtres ---------- */
.filters { padding: 12px; border-radius: 16px; display: grid; gap: 10px; margin-bottom: 18px; position: sticky; top: 80px; z-index: 5; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter { padding: 8px 12px; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: all .2s var(--ease); }
.filter:hover { background: var(--line); }
.filter.is-on { background: var(--green); color: #FBF8F2; }
.status-row { padding-top: 10px; border-top: 1px solid var(--line); gap: 14px; }
.st-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.st-toggle input { accent-color: var(--green); width: 16px; height: 16px; }
.st-toggle input:not(:checked) + .status { opacity: .45; }
.result-count { margin: 4px 0 16px; }
.empty { text-align: center; padding: 40px 0; }

/* ---------- Page projet ---------- */
.proj-hero { padding-top: 20px; padding-bottom: 36px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; margin-bottom: 26px; transition: color .2s, gap .3s var(--ease); }
.back:hover { color: var(--ink); gap: 12px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.proj-hero .meta-line { margin-bottom: 16px; }
.proj-hero .lead { margin-bottom: 30px; }
.proj-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 21 / 8; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.proj-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 40px; }
.proj-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.facts dt { font: 650 .8rem/1.2 var(--f-head); font-stretch: 105%; color: var(--green-2); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; }
.toc ol { display: flex; flex-direction: column; gap: 2px; padding-left: 4px; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); font-size: .92rem; color: var(--muted); transition: all .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--green); border-left-color: var(--green); font-weight: 600; }
[data-theme="dark"] .toc a.is-active { color: #8FD1AF; border-left-color: #8FD1AF; }
.proj-sections { min-width: 0; display: flex; flex-direction: column; gap: 52px; }
.proj-h { font: 780 clamp(1.35rem, 2.2vw, 1.75rem)/1.1 var(--f-head); font-stretch: 112%; letter-spacing: -.02em; margin-bottom: 20px; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cp { padding: 24px; border-radius: var(--r-lg); }
.cp p:last-child { margin: 0; }
.cp-context { background: var(--surface); border: 1px solid var(--line); }
.cp-problem { background: var(--rose-tint); }
.cp-problem .kicker { color: var(--bordeaux); }
[data-theme="dark"] .cp-problem .kicker { color: #EE8D9C; }
.problem { font: 650 1.12rem/1.4 var(--f-head); font-stretch: 102%; letter-spacing: -.01em; color: var(--ink); }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--green); stroke-width: 2.2; padding: 3px; border-radius: 6px; background: var(--green-tint); margin-top: 1px; }
[data-theme="dark"] .checks svg { stroke: #8FD1AF; }
.steps { counter-reset: s; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 14px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 20px 30px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--green-2); font: 700 .82rem/1 var(--f-head); color: var(--green); }
[data-theme="dark"] .steps li::before { color: #8FD1AF; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.results li { padding: 18px 20px; border-radius: var(--r); background: var(--green-tint); font-weight: 500; color: var(--ink); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.flow li { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.flow-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--sand-tint); font: 700 .82rem/1 var(--f-head); color: #7A6235; }
.flow p { margin: 10px 0 0; font-size: .92rem; color: var(--ink-2); }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 10px; }
.pn { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .35s var(--ease), border-color .25s; }
.pn:hover { transform: translateY(-3px); border-color: var(--green-2); }
.pn .small { display: inline-flex; align-items: center; gap: 6px; }
.pn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pn b { font: 720 1.05rem/1.2 var(--f-head); font-stretch: 108%; }
.pn-next { text-align: right; align-items: flex-end; }

/* ---------- Démos ---------- */
.demo { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.demo-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.demo-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ctl { display: flex; flex-direction: column; gap: 8px; font-size: .86rem; color: var(--muted); }
.ctl output { font: 500 .92rem/1 var(--f-num); color: var(--ink); }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--green); cursor: grab; }
.demo-svg { width: 100%; height: auto; overflow: visible; }
.demo-svg text { font-family: var(--f-num); font-size: 11px; fill: var(--muted); }
.demo-svg .ax { stroke: var(--line-2); }
.demo-svg .gl { stroke: var(--line); }
.demo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 14px; }
.demo-kpis div { padding: 12px; border-radius: 10px; background: var(--surface-2); }
.demo-kpis span { display: block; font-size: .78rem; color: var(--muted); }
.demo-kpis b { font: 500 1rem/1.4 var(--f-num); }
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.timing-table { width: 100%; border-collapse: collapse; font-family: var(--f-num); font-size: .86rem; }
.timing-table th { text-align: left; font: 600 .78rem/1.2 var(--f-body); color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-2); }
.timing-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); transition: background .6s; }
.timing-table tr.flash td { background: var(--rose-tint); }
.timing-table .best { color: var(--green-2); font-weight: 700; }
.timing-table td:first-child { font-weight: 700; width: 36px; }
.table-scroll { overflow-x: auto; }

/* ---------- Parcours / CV ---------- */
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cv-toc { position: sticky; top: 96px; }
.cv-main { min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.mini-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-projects a { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 18px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .3s var(--ease), border-color .25s; }
.mini-projects a > span:first-child { grid-column: 1 / -1; }
.mini-projects b { font: 720 1.05rem/1.2 var(--f-head); font-stretch: 108%; grid-column: 1; }
.mini-projects .muted { grid-column: 1; }
.mini-projects svg { grid-column: 2; grid-row: 2 / 4; align-self: center; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mini-projects a:hover { transform: translateY(-3px); border-color: var(--green-2); }
.cv-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cv-skills > div { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lang-meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lang-meter li { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pdf-frame { padding: 8px; border-radius: 20px; height: min(1100px, 130vw); background: var(--surface-2); border: 1px solid var(--line); }
.pdf-frame object { width: 100%; height: 100%; border-radius: 13px; background: #fff; display: block; }
.pdf-fallback { height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 30px; color: #18221E; background: #F6F3EE; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .3s var(--ease), border-color .25s; }
a.contact-card:hover { transform: translateY(-3px); border-color: var(--green-2); }
.contact-card .q-label { margin-bottom: 2px; }
.cc-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--green-tint); color: var(--green); }
[data-theme="dark"] .cc-icon { color: #8FD1AF; }
.cc-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cc-value { font-weight: 600; word-break: break-all; }
.contact-form { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; color: var(--ink); width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(42,114,87,.15); }
.field.has-error input, .field.has-error textarea { border-color: var(--bordeaux-2); box-shadow: 0 0 0 4px rgba(168,38,59,.12); }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: var(--green-2); } .form-status.err { color: var(--bordeaux-2); }
.form-hint { margin: 0; }

/* ---------- Pied de page, toast ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 36px 0 46px; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-end; }
.footer-sig { font: 650 1.05rem/1.4 var(--f-head); font-stretch: 105%; max-width: 52ch; color: var(--ink-2); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; font-size: .93rem; color: var(--ink-2); transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; z-index: 80; pointer-events: none; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transition: all .4s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.nf { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .telemetry { max-width: 640px; }
  .interest-grid, .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid > div:nth-child(3) { border-left: 0; }
  .quick-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prow { grid-template-columns: 240px minmax(0, 1fr); }
  .prow-side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 14px 6px 4px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .prow-side .side-label, .prow-side > p:not(.side-label) { display: none; }
  .prow-side .more { margin: 0 0 0 auto; padding: 0; }
  .brand-name { display: none; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; left: 14px; right: 14px; top: 72px; flex-direction: column; gap: 4px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .3s var(--ease-out);
  }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .menu-toggle { display: inline-grid; }
  .nav.is-open .menu-toggle svg:first-child { display: none; }
  .nav.is-open .menu-toggle svg:last-child { display: block; }
  .intro-grid, .about-grid, .contact-grid, .band, .features, .cp-grid { grid-template-columns: 1fr; }
  .feature.is-big { grid-row: auto; }
  .band-actions { max-width: none; }
  .about-side, .skill-groups, .proj-aside, .cv-toc { position: static; }
  .skills { grid-template-columns: 1fr; }
  .skill-groups { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .skill-groups button { flex: none; }
  .proj-body, .cv-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .cv-skills { grid-template-columns: 1fr; }
  .filters { position: static; }
  .proj-cover { aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  main { padding-top: 90px; }
  .nav-actions .btn-sm span { display: none; }
  .nav-actions .btn-sm { padding: 0 11px; }
  .interest-grid, .sp-body, .field-row, .mini-projects, .lang-meter, .method, .quick-grid { grid-template-columns: 1fr; }
  .quick-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .feature:not(.is-big) { flex-direction: column; }
  .feature:not(.is-big) .feature-cover { flex: none; aspect-ratio: 16 / 9; }
  .prow { grid-template-columns: 1fr; gap: 14px; }
  .prow-main { padding: 0 6px; }
  .prow h2 { font-size: 1.35rem; }
  .tm-read { grid-template-columns: 1fr 1fr; }
  .tm-read > div:last-child { grid-column: 1 / -1; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-when { text-align: left; padding: 0; }
  .proj-nav { grid-template-columns: 1fr; }
  .pn-next { text-align: left; align-items: flex-start; }
  .hero-ctas .btn, .cv-actions .btn, .band-actions .btn { flex: 1 1 100%; }
  .pdf-frame { height: 70vh; }
  .display { font-size: clamp(2.1rem, 10.5vw, 3.2rem); font-stretch: 112%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-in, .reveal { opacity: 1 !important; transform: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  .nav-wrap, .backdrop, .band, .footer, .toast { display: none; }
  .reveal, .hero-in { opacity: 1; transform: none; }
}

/* Couvertures : le SVG remplit toujours son cadre */
.feature-cover, .prow-cover, .proj-cover { position: relative; overflow: hidden; }
.feature-cover > svg, .prow-cover > svg, .proj-cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature:not(.is-big) .feature-cover { min-height: 220px; }
.prow-cover { aspect-ratio: auto; min-height: 210px; }
@media (max-width: 640px) {
  .prow-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .feature:not(.is-big) .feature-cover { min-height: 0; }
}
