/* GABOS Athletics — feuille de styles
   Valeurs reprises du Figma « GABOS Athletics — Site (version finale) » :
   desktop = frames 1470 px, mobile = frames 390 px. */

:root {
  --bg: #0c0b0e;
  --surface: #16141a;
  --surface-2: #211d26;
  --line: #2f2a35;
  --text: #f3efea;
  --muted: #9c95a3;
  --plum: #2c1a3f;
  --burgundy: #4e1a28;
  --accent: #8e2a45;
  --paper: #ede8e1;
  --ink: #111013;

  --f-black: 'Archivo Black', 'Arial Black', sans-serif;
  --f-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-narrow: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --f-arapey: 'Arapey', Georgia, serif;
  --f-bodoni: 'Bodoni Moda', 'Didot', serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;
  --f-body: 'Inter', system-ui, sans-serif;

  --gutter: 40px;
  --header-h: 88px;
  --brand-gradient: linear-gradient(115deg, var(--plum) 0%, var(--burgundy) 100%);
}
@media (max-width: 900px) { :root { --gutter: 16px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }

/* ---------- Typographie ---------- */
/* Arapey — grands titres serif */
.t-hero  { font: 400 176px/.88 var(--f-arapey); letter-spacing: -.03em; }
.t-sign  { font: 400 104px/.92 var(--f-arapey); letter-spacing: -.02em; }
/* Bodoni Moda italique */
.serif-xl { font: italic 400 80px/1 var(--f-bodoni); letter-spacing: -.01em; }
.serif-l  { font: italic 400 44px/1.05 var(--f-bodoni); }
/* Archivo Black */
.black-xl { font: 400 104px/.92 var(--f-black); letter-spacing: -.02em; }
.black-l  { font: 400 56px/1 var(--f-black); letter-spacing: -.01em; }
.black-m  { font: 400 32px/1.05 var(--f-black); }
/* Archivo / Archivo Narrow */
.sans-xl  { font: 400 104px/.92 var(--f-sans); letter-spacing: -.02em; }
.sans-l   { font: 400 56px/1 var(--f-sans); letter-spacing: -.01em; }
.narrow-l { font: 400 56px/1 var(--f-narrow); letter-spacing: -.01em; }
/* Utilitaires */
.mono   { font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.mono-s { font: 400 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.body-l { font: 300 20px/1.5 var(--f-body); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.block { display: block; }

@media (max-width: 900px) {
  .t-hero { font-size: 48px; }
  .t-sign { font-size: 48px; }
  .serif-xl { font-size: 36px; }
  .serif-l { font-size: 26.7px; }
  .black-xl, .sans-xl { font-size: 48px; }
  .black-l, .sans-l, .narrow-l { font-size: 30px; }
  .black-m { font-size: 16px; line-height: 1.2; }
  .body-l { font-size: 17px; }
}

/* ---------- Mise en page ---------- */
.wrap { padding-inline: var(--gutter); }
.section { padding: 120px var(--gutter); }
.section--tight-top { padding-top: 40px; }
.section--surface { background: var(--surface); }
.section--paper { background: var(--paper); color: var(--ink); }
@media (max-width: 900px) { .section { padding-block: 72px; } .section--tight-top { padding-top: 8px; } }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head .mono { color: var(--muted); display: block; margin-bottom: 16px; }
@media (max-width: 900px) { .section-head { margin-bottom: 28px; flex-wrap: wrap; align-items: flex-start; } .section-head--stack { flex-direction: column; } .section-head .mono { margin-bottom: 10px; font-size: 10px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 28px; border: 1px solid transparent; cursor: pointer; background: none;
  font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.btn::after { content: '→'; font: 400 16px/1 var(--f-body); letter-spacing: 0; transition: transform .2s; }
.btn:hover::after { transform: translateX(4px); }
.btn--no-arrow::after { display: none; }
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--primary:hover { background: #fff; }
.btn--secondary { color: var(--text); border-color: rgba(243, 239, 234, .5); }
.btn--secondary:hover { border-color: var(--text); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); }
.btn--link { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; color: var(--text); }

/* ---------- Tag & filtres ---------- */
.tag { display: inline-block; padding: 4px 8px; background: var(--accent); color: var(--text); font: 400 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } .chips::-webkit-scrollbar { display: none; } }
.chip {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  transition: background .2s, color .2s, border-color .2s;
}
.chip small { font-size: 10px; color: var(--muted); }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed='true'] { background: var(--text); border-color: var(--text); color: var(--ink); }
.chip[aria-pressed='true'] small { color: var(--ink); opacity: .7; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(12, 11, 14, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header--overlay { position: absolute; left: 0; right: 0; background: rgba(12, 11, 14, .35); border-bottom-color: rgba(243, 239, 234, .12); }
.header--overlay.is-scrolled { position: fixed; background: rgba(12, 11, 14, .85); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { width: 48px; height: 48px; border-radius: 50%; }
.logo b { display: block; font: 400 22px/1.1 var(--f-black); letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.logo small { display: block; font: 400 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .logo img { width: 38px; height: 38px; } .logo b { font-size: 18px; } }
.nav { display: flex; gap: 40px; }
.nav a { position: relative; color: var(--muted); font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding-block: 6px; transition: color .2s; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 16px; height: 2px; margin-left: -8px; background: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 24px; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.ig-link:hover { color: var(--text); }
.ig-icon { width: 20px; height: 20px; flex: none; }
.header .btn { padding: 14px 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1.6px; background: var(--text); margin: 6px 0; }
@media (max-width: 1100px) { .header__actions .ig-link { display: none; } }
@media (max-width: 900px) { .nav, .header__actions { display: none; } .menu-toggle { display: block; } }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto;
  padding: 0 var(--gutter) 32px; background: var(--brand-gradient);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { height: var(--header-h); flex: none; display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__close { background: none; border: 0; cursor: pointer; font: 400 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 20px; margin-block: auto; padding-block: 32px; }
.mobile-menu__nav a { display: flex; gap: 12px; align-items: flex-start; font: 400 34px/1.05 var(--f-sans); letter-spacing: -.01em; }
.mobile-menu__nav a small { font: 400 10px/1.4 var(--f-mono); color: var(--muted); padding-top: 4px; }
.mobile-menu__bottom { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.mobile-menu__bottom .ig-link { color: var(--text); }
body.menu-open { overflow: hidden; }
.menu-search { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.menu-search__field { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(243, 239, 234, .25); background: rgba(12, 11, 14, .25); }
.menu-search__field:focus-within { border-color: var(--text); }
.menu-search__field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; color: var(--text); }
.menu-search__field input::placeholder { color: var(--muted); }
.menu-search__results { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; flex: 1; }
.menu-search__results[hidden], .mobile-menu__nav[hidden] { display: none; }
.menu-result { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(243, 239, 234, .12); }
.menu-result img { width: 52px; height: 64px; object-fit: cover; flex: none; }
.menu-result b { display: block; font: 400 16px/1.2 var(--f-black); }
.menu-result small { color: var(--muted); }
.menu-search__all { align-self: flex-start; margin-top: 16px; }
.menu-search__empty { color: var(--muted); padding: 16px 0; }

/* ---------- Marqueur éditorial ---------- */
.issue { display: flex; flex-direction: column; gap: 12px; }
.issue__barcode { width: 96px; height: 18px; background: repeating-linear-gradient(90deg, var(--text) 0 3px, transparent 3px 5px, var(--text) 5px 6px, transparent 6px 8px, var(--text) 8px 10px, transparent 10px 11px, var(--text) 11px 12px, transparent 12px 15px); }
.issue ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font: 400 12px/1.4 var(--f-mono); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(760px, 100svh); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 32px) var(--gutter) 48px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.hero__bg--mobile { display: none; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 11, 14, .55) 0%, rgba(12, 11, 14, .1) 45%, rgba(12, 11, 14, .95) 100%); }
.hero__meta { display: flex; justify-content: space-between; align-items: flex-start; }
.hero__meta-right, .hero__scroll { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.hero__title { padding-top: 21px; }
.hero__title .t-hero { white-space: nowrap; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 32px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) {
  .hero { min-height: 760px; padding-bottom: 32px; }
  .hero__bg--desktop { display: none; }
  .hero__bg--mobile { display: block; object-position: center 20%; mix-blend-mode: normal; }
  .hero__meta-right .mono-s:last-child, .hero__scroll { display: none; }
  .hero__title .t-hero { font: 400 50px/.92 var(--f-black); letter-spacing: -.02em; white-space: normal; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}

/* Bandeau défilant */
.marquee { background: var(--paper); color: var(--ink); overflow: hidden; padding-block: 28px; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font: 400 32px/1 var(--f-black); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: '✦'; color: var(--accent); font: 400 16px/1 var(--f-body); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
@media (max-width: 900px) { .marquee { padding-block: 18px; } .marquee__track, .marquee__track span { gap: 20px; } .marquee__track span { font-size: 20px; } }

/* ---------- L’agence ---------- */
.intro { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 80px; }
.intro__mark { width: 120px; height: 120px; border-radius: 50%; margin-top: 24px; }
.intro__text { max-width: 1000px; }
.poles { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 48px; }
.poles div { border-top: 1px solid var(--line); padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .intro__mark { display: none; }
  .intro__text .sans-l { font: 400 30px/1 var(--f-arapey); text-align: center; }
  .poles { grid-template-columns: 1fr 1fr; margin-block: 28px; }
  .poles div { padding: 16px 0; gap: 6px; }
}

/* ---------- À la une ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 80px; align-items: center; }
.feature__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature__body { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.feature__body .body-l { max-width: 560px; color: var(--muted); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature__body { gap: 20px; } }

.dl { width: 100%; margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 24px; padding-block: 14px; border-top: 1px solid var(--line); }
.dl dt { font: 400 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.dl dd { margin: 0; font-size: 14px; line-height: 1.6; text-align: right; }

/* ---------- Cartes ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 26px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; } }
.card { display: flex; flex-direction: column; gap: 16px; }
.card[hidden] { display: none; }
.card__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__meta { display: flex; align-items: center; gap: 12px; }
.card__meta .mono-s { color: var(--muted); }
.card h3 { font: 400 20px/1.15 var(--f-black); }
.card p { margin-top: -8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 900px) { .card { gap: 12px; } .card h3 { font-size: 16px; } .card p { font-size: 13px; margin-top: -4px; } .card__meta { gap: 8px; flex-wrap: wrap; } }

/* Format couverture */
.cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; min-height: 820px; overflow: hidden; isolation: isolate; }
.cover__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cover:hover .cover__bg { transform: scale(1.03); }
.cover::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 11, 14, .35), rgba(12, 11, 14, 0) 50%, rgba(12, 11, 14, .6)); }
.cover__top, .cover__bottom { display: flex; justify-content: space-between; align-items: flex-start; }
.cover__center { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.cover__title { font: 300 44px/1 var(--f-body); letter-spacing: -.01em; text-transform: uppercase; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.covers[hidden] { display: none; }
@media (max-width: 900px) { .covers { grid-template-columns: 1fr; } .cover { min-height: 448px; padding: 20px; } .cover__title { font-size: 32px; } .covers .cover:nth-child(n+2) { display: none; } }

/* ---------- Univers ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; aspect-ratio: 335.5 / 491; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 24px; overflow: hidden; isolation: isolate; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(12, 11, 14, .55); transition: background .3s; }
.tile:hover::before { background: rgba(78, 26, 40, .55); }
.tile:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .tile { aspect-ratio: 174 / 220; padding: 14px; } }

/* ---------- Instagram ---------- */
.feed { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.feed a { aspect-ratio: 4 / 5; overflow: hidden; }
.feed img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .6s; }
.feed a:hover img { opacity: .8; transform: scale(1.04); }
@media (max-width: 900px) { .feed { grid-template-columns: repeat(3, 1fr); gap: 4px; } .feed-head .narrow-l { font-family: var(--f-black); } }

/* ---------- CTA ---------- */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.cta .black-xl { max-width: 1100px; }
@media (max-width: 900px) { .cta { text-align: left; align-items: stretch; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--brand-gradient); padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 80px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__cols h4 { margin: 0 0 14px; font: 400 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer__cols a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer__cols .ig-link { color: inherit; font: inherit; letter-spacing: 0; text-transform: none; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(243, 239, 234, .2); color: var(--muted); }
@media (max-width: 900px) {
  .footer { padding-top: 56px; padding-bottom: 24px; gap: 48px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  body[data-page='contact'] .footer .t-sign { font-family: var(--f-black); font-size: 48px; }
}

/* ---------- Pages intérieures ---------- */
.page-title { padding: 96px var(--gutter) 56px; display: flex; flex-direction: column; gap: 20px; }
.page-title__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
@media (max-width: 900px) { .page-title { padding-top: 48px; padding-bottom: 24px; gap: 12px; } .page-title__row { flex-direction: column; align-items: stretch; gap: 24px; } }

.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field label { font: 400 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; font-size: 16px; color: var(--text); transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .6; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.search { width: 400px; flex: none; }
@media (max-width: 900px) { .search { width: 100%; } }

.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px var(--gutter); border-block: 1px solid var(--line); }
.filterbar select { background: transparent; border: 0; color: var(--text); font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.filterbar select option { background: var(--surface); }
@media (max-width: 900px) { .filterbar { flex-direction: column; align-items: stretch; gap: 16px; padding-block: 16px; } .filterbar__sort { display: flex; justify-content: space-between; } }
.empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--muted); }
.empty[hidden] { display: none; }

/* Fiche projet */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding: 32px var(--gutter); color: var(--muted); }
.breadcrumb a:hover, .breadcrumb [aria-current] { color: var(--text); }
.project { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 80px; padding: 0 var(--gutter) 120px; align-items: start; }
.project__gallery { display: flex; flex-direction: column; gap: 12px; }
.project__media { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); }
.gallery__stage { position: relative; }
.gallery__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 1px solid rgba(243, 239, 234, .5); border-radius: 50%; background: rgba(12, 11, 14, .55); color: var(--text); font-size: 18px; cursor: pointer; transition: background .2s; }
.gallery__nav:hover { background: rgba(12, 11, 14, .85); }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }
.project__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.project__thumbs button { position: relative; padding: 0; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; opacity: .55; transition: opacity .2s; }
.project__thumbs button:hover { opacity: .85; }
.project__thumbs button[aria-current='true'] { border-color: var(--text); opacity: 1; }
.project__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
@media (max-width: 900px) { .gallery__nav { width: 40px; height: 40px; margin-top: -20px; } .project__thumbs { display: flex; overflow-x: auto; scrollbar-width: none; } .project__thumbs::-webkit-scrollbar { display: none; } .project__thumbs button { flex: none; width: 64px; } }
.project__info { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.project__info .body-l { max-width: 560px; }
.project__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; gap: 32px; padding-bottom: 72px; } .project__info { position: static; gap: 20px; } .breadcrumb { padding-block: 20px; } .project__actions [data-share] { display: none; } }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.prevnext a { padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 12px; transition: background .2s; }
.prevnext a:hover { background: var(--surface); }
.prevnext a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
@media (max-width: 900px) { .prevnext a { padding-block: 28px; } }

/* Ajustements d’espacement relevés sur le Figma (desktop) */
@media (min-width: 901px) {
  .intro > :last-child { padding-bottom: 56px; }
  .page-title .t-hero + .serif-l { margin-top: 20px; }
}

@media (max-width: 900px) { .intro > :last-child { padding-bottom: 60px; } .mission .intro > :last-child { padding-bottom: 30px; } }
.about-title h1 { margin-block: 21.44px; }
@media (max-width: 900px) { .about-title h1 { min-height: 121px; } .page-title .t-hero + .serif-l { margin-top: 10px; } }

/* À propos */
.about-film { width: 100%; height: 640px; object-fit: cover; }
@media (max-width: 900px) { .about-film { height: auto; aspect-ratio: 390 / 234; } .about-title .t-hero { font: 400 48px/.9 var(--f-sans); letter-spacing: -.02em; } .mission .sans-l { text-align: center; } }
.expertises { list-style: none; margin: 0; padding: 0; }
.expertises li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.expertises li > div { display: flex; align-items: center; gap: 32px; }
.expertises img { width: 160px; height: 100px; object-fit: cover; }
@media (max-width: 900px) { .expertises li { padding-block: 18px; } .expertises li > div { gap: 16px; } .expertises img { width: 88px; height: 64px; } }
.rubriques { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 0; margin: 0; }
.rubriques li { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.rubriques img { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--accent); padding: 4px; }
@media (max-width: 900px) { .rubriques { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } .rubriques img { width: 80px; height: 80px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 724fr) minmax(0, 587fr); gap: 80px; padding: 96px var(--gutter) 120px; }
.contact__left { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.form { background: var(--surface); padding: 48px; display: flex; flex-direction: column; gap: 32px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.form legend { font: 400 10px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding: 0; }
.form .chip input { position: absolute; opacity: 0; pointer-events: none; }
.form .chip:has(input:checked) { background: var(--text); border-color: var(--text); color: var(--ink); }
.form .chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__note { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 72px; } .form { padding: 24px 16px; margin-inline: calc(var(--gutter) * -1); } .form__row { grid-template-columns: 1fr; } .form .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; } }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strip img { width: 100%; height: 300px; object-fit: cover; }
@media (max-width: 900px) { .strip img { height: 140px; } }

/* Pages légales */
.legal { max-width: 820px; padding: 96px var(--gutter) 120px; }
.legal h2 { font: 400 22px/1.25 var(--f-black); margin: 48px 0 12px; }
.legal p { color: var(--muted); margin: 16px 0; }
.legal > :last-child { margin-bottom: 0; }
.legal ul { color: var(--muted); }
.todo { color: var(--paper); background: var(--accent); padding: 0 6px; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.legal__nav a { color: var(--muted); }
.legal__nav a[aria-current='page'] { color: var(--text); border-bottom: 1px solid var(--accent); }
.legal a:hover { color: var(--paper); }
@media (max-width: 900px) { .legal { padding-top: 48px; padding-bottom: 72px; } }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Expertises (À propos) ---------- */
.expertises > li.expertise { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 160px; align-items: center; gap: 40px; scroll-margin-top: calc(var(--header-h, 88px) + 24px); transition: background .3s; }
.expertise__head { display: flex; align-items: center; gap: 32px; }
.expertise__title { margin: 0; font-weight: 400; transition: color .3s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.expertise__body { display: flex; flex-direction: column; gap: 16px; }
.expertise__body .body-l { margin: 0; font-size: 17px; color: var(--muted); max-width: 440px; }
.expertise__projects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.expertise__projects a { display: inline-flex; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font: 400 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.expertise__projects a:hover, .expertise__projects a:focus-visible { background: var(--text); border-color: var(--text); color: var(--ink); }
.expertise img { transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .5s; filter: grayscale(.4); }
.expertise:hover img, .expertise:target img { transform: scale(1.06); filter: none; }
.expertise:hover .expertise__title, .expertise:target .expertise__title { transform: translateX(8px); }
.expertise:target { background: linear-gradient(90deg, rgba(142, 42, 69, .18), transparent 70%); }
.expertise:target .expertise__title { color: var(--paper); }
@media (max-width: 900px) {
  .expertises > li.expertise { grid-template-columns: 1fr 88px; gap: 16px 16px; }
  .expertise__head { gap: 16px; grid-column: 1; }
  .expertise img { grid-column: 2; grid-row: 1; }
  .expertise__body { grid-column: 1 / -1; }
  .expertise__body .body-l { font-size: 15px; }
}

/* Hero : expertises cliquables */
.hero__skills a { text-decoration: underline; text-decoration-color: rgba(243, 239, 234, .35); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.hero__skills a:hover { text-decoration-color: currentColor; }
.expertises .expertise__projects li { display: block; padding: 0; border: 0; }

/* Lien d'évitement (accessibilité clavier) */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--paper); color: var(--ink); font: 600 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; transition: top .2s; }
.skip-link:focus { top: 16px; }
.expertises .expertise__body { flex-direction: column; align-items: flex-start; gap: 16px; }
.expertises > li.expertise > * { min-width: 0; }
@media (max-width: 900px) { .expertises .expertise__body .body-l { max-width: none; } }

/* Expertises : titres plus petits */
.expertises .expertise__title { font-size: 64px; line-height: 1; }
.expertises .expertise__title.serif-xl { font-size: 56px; }
@media (max-width: 900px) {
  .expertises .expertise__title { font-size: 34px; }
  .expertises .expertise__title.serif-xl { font-size: 30px; }
}

/* Expertises : images au format portrait (comme les photos d'origine) */
.expertises > li.expertise { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 104px; }
.expertises .expertise img { width: 104px; height: 130px; object-fit: cover; object-position: center 25%; justify-self: end; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
@media (max-width: 900px) {
  .expertises > li.expertise { grid-template-columns: 1fr 64px; }
  .expertises .expertise img { width: 64px; height: 80px; }
}

/* ---------- Description du projet (section éditable) ---------- */
.project-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 80px; padding: 96px var(--gutter); border-top: 1px solid var(--line); }
.project-story__label { display: flex; flex-direction: column; gap: 16px; }
.project-story__label h2 { margin: 0; }
.project-story__text { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.project-story__text p { margin: 0; font: 300 clamp(17px, 1.5vw, 21px)/1.65 var(--f-body); color: var(--text); }
.project-story__text p:first-child::first-letter { font-size: 1.15em; }
.project-story__text p:empty { display: none; }
/* Section masquée tant qu'aucun paragraphe n'est rempli */
.project-story:not(:has(.project-story__text p:not(:empty))) { display: none; }
.project-story.is-empty { display: none; }
@media (max-width: 900px) { .project-story { grid-template-columns: 1fr; gap: 20px; padding-block: 56px; } }

/* ---------- Formulaire de contact ---------- */
.form__optional { text-transform: none; letter-spacing: 0; font-family: var(--f-body); opacity: .7; }
.field label [aria-hidden], .form__note [aria-hidden] { color: var(--accent); }
.field__error { margin: 0; min-height: 0; font-size: 13px; color: #ff8fa6; }
.field__error:empty { display: none; }
.field__foot { display: flex; justify-content: space-between; gap: 16px; }
.field__count { margin-left: auto; color: var(--muted); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #ff8fa6; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--line); background: transparent; display: grid; place-content: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input::after { content: '✓'; font-size: 13px; color: var(--ink); opacity: 0; }
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: #ff8fa6; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.field--check label { font: inherit; }
.form__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__actions .form__note { margin: 0; }
.form button[data-submit][aria-busy="true"] { opacity: .7; pointer-events: none; }
.form button[data-submit][aria-busy="true"]::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.5; border-left: 2px solid #ff8fa6; background: rgba(255, 143, 166, .08); }
.form__status.is-info { border-left-color: var(--muted); background: rgba(243, 239, 234, .05); }
.form__status a { text-decoration: underline; }
.form-success { background: var(--surface); padding: 56px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; outline: none; animation: fade-up .6s cubic-bezier(.2, .7, .2, 1); }
.form-success h2 { margin: 0; }
.form-success__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-content: center; background: var(--paper); color: var(--ink); font-size: 26px; }
.form-success__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .form-success { padding: 40px 16px; margin-inline: calc(var(--gutter) * -1); } }
.form[hidden], .form-success[hidden], .form__status[hidden], .project-story[hidden] { display: none; }
.field__count { white-space: nowrap; }
.expertise__cta { font: 600 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .2s; }
.expertise__cta:hover { border-color: var(--text); }
