/*
 * Vitrine Stephanfo — charte perso (cf. ~/Developments/chartes/CHARTE-PERSO.md).
 * Seul fichier où une couleur est nommée. Filets de 1 px, pas d'ombre,
 * terracotta pour les actions, la navigation active et l'accent.
 */

@font-face { font-family: 'Geist Sans'; font-weight: 400; font-display: swap; src: url(fonts/geist-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Sans'; font-weight: 500; font-display: swap; src: url(fonts/geist-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Sans'; font-weight: 600; font-display: swap; src: url(fonts/geist-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

/* ══ Jetons ══════════════════════════════════════════════════════════ */

:root {
  --n-0: #ffffff;
  --n-25: #fbfaf9;
  --n-50: #f6f5f3;
  --n-100: #eeecea;
  --n-200: #e2dfdc;
  --n-300: #cbc7c2;
  --n-500: #807a73;
  --n-600: #5f5952;
  --n-700: #453f39;
  --n-800: #2c2823;
  --n-900: #1c1916;
  --n-950: #12100e;

  --brand-50: #fdf3ee;
  --brand-100: #fae2d6;
  --brand-300: #e99c78;
  --brand-500: #c2410c;
  --brand-600: #a83809;
  --brand-700: #8a2e08;

  --green-50: #eef6ef;
  --green-500: #3f7a4b;
  --green-700: #28502f;

  --surface-page: var(--n-0);
  --surface-subtle: var(--n-25);
  --surface-sunken: var(--n-50);
  --surface-selected: var(--brand-50);

  --text-title: var(--n-900);
  --text-body: var(--n-800);
  --text-muted: var(--n-600);
  --text-brand: var(--brand-600);
  --text-link: var(--brand-600);
  --text-link-hover: var(--brand-700);

  --border-subtle: var(--n-100);
  --border-default: var(--n-200);
  --border-strong: var(--n-300);
  --border-brand: var(--brand-500);
  --border-control: var(--n-500);
  --accent-mark: var(--brand-100);

  --action-primary: var(--brand-500);
  --action-primary-hover: var(--brand-600);
  --action-primary-text: var(--n-0);
  --action-secondary: var(--n-0);
  --action-secondary-hover: var(--n-50);

  --signal-ok-fg: var(--green-700);
  --signal-ok-bg: var(--green-50);
  --signal-ok-dot: var(--green-500);

  --font-sans: 'Geist Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px;

  --radius-badge: 4px;
  --radius-control: 6px;
  --radius-card: 8px;
  --motion: 120ms cubic-bezier(.2, 0, 0, 1);

  color-scheme: light;
}

/* Thème sombre : bruns très sombres, l'accent s'éclaircit. Suit le système,
   sauf choix explicite (data-theme sur <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-page: var(--n-950);
    --surface-subtle: #1a1714;
    --surface-sunken: #1f1b18;
    --surface-selected: #2a1a12;
    --text-title: #f4f1ee;
    --text-body: #ddd8d3;
    --text-muted: #a8a19a;
    --text-brand: #ef9b6d;
    --text-link: #ef9b6d;
    --text-link-hover: #f6bb99;
    --border-subtle: #26221e;
    --border-default: #332e29;
    --border-strong: #463f38;
    --border-brand: #ef9b6d;
  --border-control: #6f665e;
  --accent-mark: #3b2114;
    --border-control: #6f665e;
    --accent-mark: #3b2114;
    --action-primary: #dc7449;
    --action-primary-hover: #e99c78;
    --action-primary-text: var(--n-950);
    --action-secondary: #1a1714;
    --action-secondary-hover: #26221e;
    --signal-ok-fg: #a9d4b1;
    --signal-ok-bg: #1b2a1e;
    --signal-ok-dot: #6fae7c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: var(--n-950);
  --surface-subtle: #1a1714;
  --surface-sunken: #1f1b18;
  --surface-selected: #2a1a12;
  --text-title: #f4f1ee;
  --text-body: #ddd8d3;
  --text-muted: #a8a19a;
  --text-brand: #ef9b6d;
  --text-link: #ef9b6d;
  --text-link-hover: #f6bb99;
  --border-subtle: #26221e;
  --border-default: #332e29;
  --border-strong: #463f38;
  --border-brand: #ef9b6d;
  --border-control: #6f665e;
  --accent-mark: #3b2114;
  --action-primary: #dc7449;
  --action-primary-hover: #e99c78;
  --action-primary-text: var(--n-950);
  --action-secondary: #1a1714;
  --action-secondary-hover: #26221e;
  --signal-ok-fg: #a9d4b1;
  --signal-ok-bg: #1b2a1e;
  --signal-ok-dot: #6fae7c;
}

/* ══ Base ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--text-link); text-underline-offset: 3px; }
a:hover { color: var(--text-link-hover); }

:focus-visible { outline: 2px solid var(--border-brand); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { color: var(--text-title); margin: 0; letter-spacing: -0.014em; font-weight: 600; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-7); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 20;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-control);
  background: var(--action-primary); color: var(--action-primary-text);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: var(--action-primary-text); }

/* Traduction : seul le texte de la langue active est visible. */
html[lang="fr"] [lang="en"]:not(html),
html[lang="en"] [lang="fr"]:not(html) { display: none !important; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--surface-page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar .wrap { display: flex; align-items: center; gap: var(--sp-5); height: 60px; }

.brand { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-title); text-decoration: none; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-control);
  background: var(--action-primary);
  color: var(--action-primary-text);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: -0.02em;
}

.nav { display: flex; gap: var(--sp-5); margin-left: auto; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--text-title); }

.tools { display: flex; gap: var(--sp-2); }

.icon-button {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 var(--sp-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--action-secondary);
  color: var(--text-body);
  font: 500 13px/1 var(--font-sans);
  cursor: pointer;
  transition: background var(--motion);
}
.icon-button:hover { background: var(--action-secondary-hover); }
.icon-button svg { width: 18px; height: 18px; }

/* ══ Hero ════════════════════════════════════════════════════════════ */

.hero { padding: 104px 0 24px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; margin-top: var(--sp-4); }
.hero .eyebrow { font-size: 13px; }
.hero .eyebrow strong { color: var(--text-title); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--text-brand); }
.hero .lead { font-size: 19px; color: var(--text-muted); max-width: 62ch; margin: var(--sp-6) 0 0; }
.hero .lead + .lead { margin-top: var(--sp-3); color: var(--text-body); }


/* ══ Facettes et communautés ═════════════════════════════════════════ */

.facets { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; position: relative; }
.facet { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5) var(--sp-5) 0 0; }
.facet + .facet { padding-left: var(--sp-5); border-left: 1px solid var(--border-subtle); }
.facet strong { color: var(--text-title); font-weight: 600; font-size: 18px; letter-spacing: -0.014em; }
.facet-text { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.facet-links { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-top: auto; padding-top: var(--sp-2); font-size: 14px; }
.facet-links a { text-decoration: none; font-weight: 500; }
.facet-links a::after { content: '→'; content: '→' / ''; display: inline-block; margin-left: 4px; transition: transform 200ms var(--ease-out, ease); }
.facet-links a:hover::after { transform: translateX(3px); }

.community { padding: 112px 0 0; }
.community .wrap { border-top: 1px solid var(--border-default); padding-top: var(--sp-6); display: grid; grid-template-columns: 5fr 7fr; gap: 0 56px; }
.community .eyebrow { grid-column: 1 / -1; }
.community .eyebrow .num { color: var(--text-brand); margin-right: var(--sp-2); }
.community h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.026em; margin-top: var(--sp-3); }
.community p:not(.eyebrow) { color: var(--text-muted); font-size: 17px; margin: var(--sp-3) 0 0; max-width: 58ch; }

/* ══ Fiches projet ═══════════════════════════════════════════════════ */

.project { padding: 72px 0; }
.project + .project .wrap { border-top: 1px solid var(--border-subtle); padding-top: 72px; }
.project + .project { padding-top: 0; }

.project-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.project:nth-of-type(even) .project-grid { grid-template-columns: 7fr 5fr; }
.project:nth-of-type(even) .project-text { order: 2; }

.project-meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.project-meta .num { color: var(--text-brand); font-size: 13px; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 var(--sp-2);
  border-radius: var(--radius-badge);
  font-size: 12px; font-weight: 500;
  color: var(--signal-ok-fg); background: var(--signal-ok-bg);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal-ok-dot); }

.project h3 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -0.022em; margin-top: var(--sp-3); }
.tagline { font-size: 18px; color: var(--text-title); margin: var(--sp-3) 0 0; font-weight: 500; line-height: 1.45; }
.project p.desc { color: var(--text-muted); margin: var(--sp-4) 0 0; }

.features { list-style: none; padding: 0; margin: var(--sp-6) 0 0; border-top: 1px solid var(--border-subtle); }
.features li { padding: var(--sp-2) 0 var(--sp-2) var(--sp-5); border-bottom: 1px solid var(--border-subtle); position: relative; font-size: 15px; }
.features li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 1px; background: var(--border-brand); }

/* Ce qu'un bureau d'association veut savoir avant tout. */
.facts { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0 0; padding: var(--sp-4); border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--surface-subtle); }
.facts div { display: grid; grid-template-columns: 104px 1fr; gap: var(--sp-3); }
.facts dt { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-brand); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15px; }

/* La technique, pour qui la cherche : en dessous, en petit. */
.stack { margin: var(--sp-4) 0 0; font: 400 12px/1.6 var(--font-mono); color: var(--text-muted); }
.stack-label { font: 500 11px/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.06em; margin-right: var(--sp-2); }

.links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.button {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  height: 40px; padding: 0 var(--sp-4);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--action-secondary);
  color: var(--text-body);
  font: 500 14px/1 var(--font-sans);
  text-decoration: none;
  transition: background var(--motion);
}
.button:hover { background: var(--action-secondary-hover); color: var(--text-title); }
.button-primary { background: var(--action-primary); border-color: var(--action-primary); color: var(--action-primary-text); }
.button-primary:hover { background: var(--action-primary-hover); border-color: var(--action-primary-hover); color: var(--action-primary-text); }
.button svg { width: 16px; height: 16px; flex: none; }
.button-icon { width: 40px; padding: 0; justify-content: center; }

/* Captures : cadre à filet, jamais d'ombre. */
.shots { display: grid; gap: var(--sp-4); }
.shot { margin: 0; border: 1px solid var(--border-default); border-radius: var(--radius-card); overflow: hidden; background: var(--surface-sunken); }
.shot figcaption { font-size: 13px; color: var(--text-muted); padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--border-subtle); background: var(--surface-page); }
.shot img { width: 100%; }
.shot-link { display: block; cursor: zoom-in; }

.shots-browser .shot-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-subtle); }
.shots-browser .shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }

.shots-pair { grid-template-columns: 1fr 1fr; }
.shots-phones { grid-template-columns: 1fr 1fr; }
.shots-phones .shot { border-radius: 14px; }
.shots-phones .shot img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.shots-mixed { grid-template-columns: 1fr 1fr; align-items: start; }
.shots-mixed .shot-tall img { aspect-ratio: 9 / 14; object-fit: cover; object-position: top; }
.shots-mixed .shot-wide { grid-column: 1 / -1; }

/* ══ Pied ════════════════════════════════════════════════════════════ */


.contact { padding: 112px 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-8) 56px; padding: var(--sp-8); border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--surface-subtle); }
.contact h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin-top: var(--sp-3); max-width: 22ch; }
.contact p:not(.eyebrow) { color: var(--text-muted); margin: var(--sp-3) 0 0; }
.contact-alt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); font-size: 14px; }
.contact-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.contact-alt svg { width: 14px; height: 14px; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: var(--sp-4); }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-title); }
.field input,
.field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface-page);
  color: var(--text-body);
  font: 400 15px/1.5 var(--font-sans);
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--border-brand); outline-offset: 1px; border-color: var(--border-brand); border-radius: var(--radius-control); }
/* Champ piège : invisible pour les humains, rempli par les robots. */
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-top: var(--sp-5); }
.contact .form-note { flex: 1 1 220px; margin: 0; font-size: 13px; }
.contact .form-status { margin: var(--sp-3) 0 0; color: var(--text-title); font-size: 14px; }
.form-status [data-msg="ok"] { color: var(--signal-ok-fg); }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
/* Sans script, pas de jeton : on renvoie vers LinkedIn et GitHub. */
html:not(.js) .contact-form { display: none; }

.why { padding: 112px 0 0; }
.why .wrap { border-top: 1px solid var(--border-default); padding-top: var(--sp-6); }
.why h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.024em; margin-top: var(--sp-3); max-width: 24ch; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: var(--sp-8); }
.why h3 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-brand); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border-default); }
.reason { padding: var(--sp-4) 0; border-bottom: 1px solid var(--border-subtle); }
.reason strong { display: block; color: var(--text-title); font-weight: 600; font-size: 17px; }
.reason span { display: block; color: var(--text-muted); font-size: 15px; margin-top: var(--sp-1); }
.why-note { margin: var(--sp-5) 0 0; font-size: 14px; color: var(--text-muted); }

footer { border-top: 1px solid var(--border-subtle); padding: var(--sp-6) 0 var(--sp-8); font-size: 13px; color: var(--text-muted); }
footer .wrap { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text-title); }

/* Capture agrandie */
.lightbox { max-width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--surface-page); overflow: hidden; }
.lightbox::backdrop { background: color-mix(in oklch, var(--n-950) 82%, transparent); }
.lightbox img { width: auto; max-width: 100%; max-height: 92vh; }
.lightbox-close { position: absolute; top: var(--sp-2); right: var(--sp-2); }

/* Page 404 (texte dans les deux langues à la fois) */
.bilingual [lang][lang]:not(html) { display: revert !important; }
.not-found { min-height: 100vh; display: grid; align-items: center; padding: 64px 0; }
.not-found .brand { margin-bottom: 56px; }
.not-found h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin-top: var(--sp-3); }
.not-found .lead { font-size: 18px; color: var(--text-muted); max-width: 60ch; margin: var(--sp-4) 0 0; }
.not-found .lead + .lead { margin-top: var(--sp-2); font-size: 15px; }

/* ══ Mouvement ═══════════════════════════════════════════════════════
   Une vitrine s'autorise un peu plus que la charte applicative : des
   apparitions courtes (≤ 700 ms), une seule courbe, rien qui rebondit ni ne
   change d'échelle, déplacement de 16 px au plus. Tout est conditionné à
   .js (le contenu reste visible sans script) et coupé par
   prefers-reduced-motion. */

:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Barre de lecture : un filet terracotta qui suit le défilement. */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--action-primary);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

.topbar { border-bottom-color: transparent; transition: border-color var(--motion); }
.topbar.is-scrolled { border-bottom-color: var(--border-subtle); }

/* Navigation : le lien de la section lue est souligné. */
.nav a { position: relative; transition: color var(--motion); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--border-brand);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 240ms var(--ease-out);
}
.nav a.is-active { color: var(--text-title); }
.nav a.is-active::after { transform: scaleX(1); }

/* Ouverture : les éléments du hero montent l'un après l'autre. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { background-size: 0% 0.3em; } to { background-size: 100% 0.3em; } }

.js .hero .eyebrow,
.js .hero h1,
.js .hero .lead,
.js .hero .facet { animation: rise 700ms var(--ease-out) both; }
.js .hero h1 { animation-delay: 80ms; }
.js .hero .lead { animation-delay: 200ms; }
.js .hero .facet:nth-child(1) { animation-delay: 320ms; }
.js .hero .facet:nth-child(2) { animation-delay: 380ms; }
.js .hero .facet:nth-child(3) { animation-delay: 440ms; }
.js .hero .facet:nth-child(4) { animation-delay: 500ms; }

/* L'accent du titre se surligne une fois le titre posé : un trait de
   surligneur, pas un soulignement qu'on prendrait pour un lien. */
.hero h1 em {
  background: linear-gradient(var(--accent-mark), var(--accent-mark)) 0 88% / 100% 0.3em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .hero h1 em { animation: draw 800ms var(--ease-out) 650ms both; }

/* Le filet au-dessus des communautés se trace de gauche à droite. */
.facets::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--border-default); transform-origin: 0 50%;
}
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .facets::before { animation: rule 900ms var(--ease-out) 260ms both; }

/* Apparition au défilement, par blocs entiers. --d porte le décalage, posé
   par app.js. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Boutons : l'icône de lien sortant avance d'un cran. */
.button svg { transition: transform 200ms var(--ease-out); }
.button:hover svg:last-child:not(:first-child) { transform: translate(2px, -2px); }

/* Captures : au survol, le filet du cadre fonce d'un cran. */
.shot { transition: border-color 200ms var(--ease-out); }
.shot:hover { border-color: var(--border-strong); }

/* ══ Petits écrans ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .project-grid,
  .project:nth-of-type(even) .project-grid,
  .why-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .project:nth-of-type(even) .project-text { order: 0; }
  .facets { grid-template-columns: 1fr 1fr; row-gap: var(--sp-6); }
  .facet:nth-child(3) { padding-left: 0; border-left: 0; }
  .community .wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* La navigation passe sur une seconde ligne qui défile. */
  html { scroll-padding-top: 108px; }
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: var(--sp-3); column-gap: var(--sp-3); }
  .nav { order: 3; width: 100%; margin: 0; padding: var(--sp-3) 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .tools { margin-left: auto; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 var(--sp-4); }
  .hero { padding: 56px 0 40px; }
  .hero .lead { font-size: 17px; }
  .facets { grid-template-columns: 1fr; }
  .facet, .facet + .facet { padding: var(--sp-4) 0 0; border-left: 0; }
  .community, .why, .contact { padding-top: 72px; }
  .contact { padding-bottom: 72px; }
  .contact-grid { padding: var(--sp-5); }
  .project { padding: 56px 0; }
  .shots-phones { grid-template-columns: 1fr 1fr; }
  .shots-pair, .shots-mixed { grid-template-columns: 1fr 1fr; }
  .button, .icon-button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .skip-link, .contact-form, .lightbox, footer a { display: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { padding-top: 0; }
}
