/* ---------- Polices (hébergées sur le site, aucun appel à Google) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Couleurs et réglages ---------- */
:root {
  --ground: #0A100D;
  --surface: #111915;
  --surface-2: #16211B;
  --line: #22302A;
  --line-strong: #3A4B42;
  --text: #E9E8E0;
  --text-strong: #F1F0E8;
  --text-soft: #C3C8C1;
  --muted: #A9B3AD;
  --dim: #8E9A93;
  --accent: #F2CF3A;
  --accent-hover: #FFE27A;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ground); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--ground); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--accent { background: var(--accent); color: var(--ground); }
.btn--accent:hover { background: var(--accent-hover); color: var(--ground); }
.btn--ghost { border-color: #5B6A62; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: var(--text-strong); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid #1C2822;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.nav__brand {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
}
.nav__brand:hover { color: var(--text-strong); }
.nav__menu { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__menu a:not(.btn) { color: #C9CDC6; }
.nav__menu a:not(.btn):hover { color: var(--text-strong); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { flex-wrap: wrap; }
  .nav__brand { font-size: 20px; }
  .nav__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: 1px solid #2E3D35; border-radius: 2px; cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
    display: block; width: 20px; height: 1.6px; background: var(--text); border-radius: 1px;
    transition: transform .25s ease, background-color .25s ease;
  }
  .nav__toggle-bars { position: relative; }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -6px; }
  .nav__toggle-bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); background: var(--accent); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }

  .nav__menu {
    display: none; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 0 24px; border-top: 1px solid #1C2822;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) {
    min-height: 52px; display: flex; align-items: center;
    border-bottom: 1px solid #1C2822;
    font-family: var(--font-display); font-stretch: 80%; font-weight: 700;
    font-size: 26px; text-transform: uppercase; color: var(--text);
  }
  .nav__cta { margin-top: 20px; min-height: 52px; }
}

/* ---------- Haut de page ---------- */
.hero { background: #000; display: flex; flex-direction: column; }
.hero__bar { height: clamp(28px, 6vh, 64px); background: #000; }
.hero__screen {
  position: relative; overflow: hidden;
  min-height: 520px; height: min(78vh, 760px);
  display: flex; align-items: flex-end;
  background: var(--surface-2);
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 40%; }
.hero__scrim { position: absolute; inset: auto 0 0 0; height: 75%; background: linear-gradient(to top, rgba(6, 10, 8, .88), rgba(6, 10, 8, 0)); }
.hero__rec {
  position: absolute; top: 20px; left: var(--gutter);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: #C9CDC6;
}
.hero__rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #D9483B; animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: 0; } }
.hero__content { position: relative; padding-bottom: clamp(32px, 6vh, 56px); }
.hero__kicker { margin-bottom: 18px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #C9CDC6; }
.hero__title {
  max-width: 900px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  font-size: clamp(46px, 7vw, 104px); line-height: .95; text-transform: uppercase;
  color: var(--text-strong);
}
.hero__subtitle {
  margin-top: clamp(18px, 3vh, 28px); max-width: 640px;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.45;
  color: var(--accent); text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(24px, 3vw, 40px); }
.section--last { padding-bottom: clamp(80px, 10vw, 120px); }
.section__head { margin-bottom: clamp(32px, 4vw, 48px); }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__index { margin-bottom: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.section__title {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  font-size: clamp(38px, 5vw, 68px); line-height: 1; text-transform: uppercase;
  color: var(--accent); text-wrap: balance;
}
.section__intro { max-width: 440px; color: var(--muted); }
.subhead { margin: clamp(56px, 7vw, 80px) 0 clamp(24px, 3vw, 32px); font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 26px; color: var(--text-strong); }

/* ---------- Projets ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  grid-auto-flow: row dense;
  gap: 40px 28px;
}
.project { display: flex; flex-direction: column; gap: 16px; }
.project__thumb {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  color: var(--text);
}
.project__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project__thumb:hover img, .project__thumb:focus-visible img { transform: scale(1.03); }
.project__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
}
.project__badge {
  position: absolute; top: 12px; left: 14px;
  background: var(--accent); color: var(--ground);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  padding: 4px 8px; text-transform: uppercase;
}
.project__duration {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(10, 16, 13, .75); padding: 3px 7px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text);
}
.project__meta { display: flex; flex-direction: column; gap: 4px; }
.project__type { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.project__title { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--text-strong); }
.project__toggle {
  align-self: flex-start; min-height: 44px;
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 10px 16px; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--accent);
}
.project__toggle:hover { border-color: var(--accent); }
.project__toggle-icon { font-family: var(--font-mono); }

.series { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.series[hidden] { display: none; }
.series__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.series__title { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 22px; color: var(--text-strong); }
.series__period { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.series__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.series__grid--vertical { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.series__item { display: flex; flex-direction: column; gap: 8px; }
.series__item .project__thumb { aspect-ratio: var(--thumb-ratio, 16 / 9); }
.series__label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.projects__fallback { margin: 0; padding-left: 20px; }

/* ---------- Offres ---------- */
.offers { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.offer { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); padding: clamp(26px, 3.5vw, 40px); }
.offer__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.offer__title { font-family: var(--font-display); font-stretch: 85%; font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--text-strong); }
.offer__text { color: var(--text-soft); }
.offer__price { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); padding-top: 20px; }
.step__num { margin-bottom: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step__name { margin-bottom: 6px; font-weight: 600; color: var(--text-strong); }
.step__text { font-size: 15px; color: var(--muted); }

/* ---------- À propos ---------- */
.about__text { display: flex; flex-direction: column; gap: 22px; max-width: 760px; color: var(--muted); }
.about__text .section__index { margin-bottom: 0; }
.about__lead { font-size: 19px; color: #DADCD4; }
.about--photo { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.about__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Matériel ---------- */
.gear { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gear__card { margin: 0; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line-strong); padding-top: 20px; }
.gear__photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border: 1px solid var(--line); order: -1; }
.gear__card:has(.gear__photo) { border-top: 0; padding-top: 0; }
.gear__card figcaption { display: flex; flex-direction: column; gap: 4px; }
.gear__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gear__title { font-weight: 600; color: var(--text-strong); }
.gear__text { font-size: 15px; color: var(--muted); }

.promises { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.promise { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.promise__title { font-weight: 600; color: var(--text-strong); }
.promise__text { font-size: 15px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(36px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.contact__intro { display: flex; flex-direction: column; gap: 22px; color: var(--text-soft); }
.contact__intro .section__index { margin-bottom: 0; }
.contact__links { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; font-size: 16px; overflow-wrap: anywhere; }

.form { display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.form__row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px;
  background: var(--ground); color: var(--text);
  border: 1px solid #2E3D35; border-radius: 2px;
  padding: 0 14px; font: inherit; font-size: 16px;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 130px; }
.field select { padding: 0 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__legal { font-size: 13px; color: var(--dim); }
.form__submit { min-height: 52px; width: 100%; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { font-size: 15px; min-height: 1.6em; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #F08A7E; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid #1C2822; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-block: 32px; font-size: 14px; color: var(--dim); }
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a { color: var(--dim); }
.site-footer__links a:hover { color: var(--text); }

/* ---------- Lecteur vidéo ---------- */
.player { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.player[hidden] { display: none; }
.player__backdrop { position: absolute; inset: 0; background: rgba(4, 7, 5, .92); }
.player__dialog { position: relative; width: 100%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.player__bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.player__title { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 20px; color: var(--text-strong); }
.player__close {
  flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--text); cursor: pointer;
}
.player__close:hover { color: var(--accent); border-color: var(--accent); }
.player__frame {
  --rw: 16; --rh: 9;
  aspect-ratio: var(--rw) / var(--rh);
  width: min(100%, calc(76vh * var(--rw) / var(--rh)));
  width: min(100%, calc(76svh * var(--rw) / var(--rh)));
  background: #000;
}
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__note { font-size: 13px; color: var(--dim); text-align: center; }
body.is-locked { overflow: hidden; }

/* ---------- Pages légales ---------- */
.legal { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(80px, 10vw, 120px); max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1; text-transform: uppercase; color: var(--accent); margin-bottom: 40px; }
.legal h2 { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 24px; color: var(--text-strong); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; }
.legal__back { display: inline-block; margin-bottom: 32px; font-size: 15px; }

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
