/* ─────────────────────────────────────────────
   Titouan Gallot · Monteur audiovisuel & cadreur
   ───────────────────────────────────────────── */

:root {
  --bg: #0d0d0d;
  --bg-2: #131313;
  --bg-3: #1b1b1b;
  --line: rgba(236, 235, 230, 0.1);
  --line-strong: rgba(236, 235, 230, 0.2);
  --text: #ecebe6;
  --soft: #c9c6bd;
  --muted: #8f8c85;
  --accent: #d8c4a3;
  --ok: #6fcf97;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
em { font-style: italic; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* ───────── Boutons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
  font-weight: 500; font-size: 15px; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ───────── En-tête ───────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, padding .3s;
}
.topbar.scrolled {
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 17px; letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 600; font-size: 15px; }
.brand-role { font-size: 12.5px; color: var(--muted); }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--soft); transition: color .2s; }
.nav a:hover { color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer; position: relative;
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ───────── Accueil ───────── */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: #000;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-bg.ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,13,13,.65) 0%, rgba(13,13,13,.15) 30%, rgba(13,13,13,.35) 60%, rgba(13,13,13,.96) 100%),
    linear-gradient(90deg, rgba(13,13,13,.75) 0%, rgba(13,13,13,.2) 65%, rgba(13,13,13,0) 100%);
}
.hero-content { padding-top: 140px; padding-bottom: 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(13,13,13,.35); backdrop-filter: blur(6px);
  font-size: 13px; color: var(--soft);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 207, 151, .18); }
.hero-title {
  margin: 0; max-width: 15ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 7vw, 108px); line-height: 1.0; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-title em { color: var(--accent); }
.hero-sub { margin: 26px 0 0; max-width: 54ch; color: var(--soft); font-size: clamp(16px, 1.25vw, 18px); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 26px;
}
.hero-caption { margin: 0; font-size: 12.5px; color: var(--muted); }
.hero-toggle {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13,13,13,.4); border: 1px solid var(--line-strong); cursor: pointer;
}
.hero-toggle svg { width: 14px; height: 14px; }
.hero-toggle .i-play { display: none; }
.hero-toggle.paused .i-play { display: block; }
.hero-toggle.paused .i-pause { display: none; }

/* ───────── Atouts ───────── */
.facts { border-block: 1px solid var(--line); background: var(--bg); }
.facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.fact span { font-size: 14px; color: var(--muted); }

/* ───────── Sections ───────── */
.section { padding: clamp(84px, 10vw, 140px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.label {
  margin: 0 0 16px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.section h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance;
}
.section h2 em { color: var(--accent); }
.section-intro { margin: 18px 0 0; color: var(--soft); max-width: 58ch; }

/* ───────── Filtres ───────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--line-strong);
  color: var(--soft); font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ───────── Vignettes vidéo ───────── */
.thumb {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3);
  cursor: pointer; aspect-ratio: 16 / 9;
}
.thumb.vertical { aspect-ratio: 9 / 16; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb img { transition: transform 1s var(--ease); }
.thumb video { opacity: 0; transition: opacity .4s; }
.thumb.playing video { opacity: 1; }
.thumb:hover img { transform: scale(1.03); }
.thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
.thumb-play {
  position: absolute; z-index: 2; left: 18px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: #fff;
}
.thumb-play i {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #0d0d0d; transition: transform .35s var(--ease);
}
.thumb-play svg { width: 15px; height: 15px; margin-left: 2px; }
.thumb:hover .thumb-play i, .thumb:focus-visible .thumb-play i { transform: scale(1.08); }
.thumb-dur { font-variant-numeric: tabular-nums; opacity: .85; }

/* Projet mis en avant */
.featured-list { display: grid; gap: clamp(56px, 7vw, 96px); }
.featured { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.featured.vertical { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.featured-meta { margin: 0 0 12px; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.featured h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; }
.featured-desc { margin: 0 0 22px; color: var(--soft); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; }
.tags li { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .2s;
}
.link-arrow:hover { border-color: var(--text); }

/* Grilles */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); margin-top: clamp(56px, 7vw, 96px); }
.grid:empty { display: none; }
.grid-h { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.grid-v { grid-template-columns: repeat(auto-fill, minmax(min(230px, 46%), 1fr)); }
.card { display: block; }
.card-info { padding-top: 14px; }
.card-meta { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.card-title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.grid-v .thumb-play { left: 12px; bottom: 12px; }
.grid-v .thumb-play i { width: 38px; height: 38px; }

.empty { color: var(--muted); }
.more {
  margin: clamp(56px, 7vw, 88px) 0 0; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--soft);
}
.more a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.more a:hover { border-color: var(--text); }

/* ───────── Services ───────── */
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
.service { padding: 40px 48px 44px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.service-n { display: block; margin-bottom: 20px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.service h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.service p { margin: 0; color: var(--soft); max-width: 52ch; }
.service ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service li { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--bg-3); color: var(--soft); }

/* ───────── À propos ───────── */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-text h2 { margin-bottom: 30px !important; }
.about-text p { color: var(--soft); max-width: 60ch; margin: 0 0 18px; font-size: 17px; }
.about-text strong { color: var(--text); font-weight: 500; }
.about-photo { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-facts { margin: 0; border-top: 1px solid var(--line-strong); }
.about-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.about-facts dd { margin: 0; }
.tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tools li { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); }

/* ───────── Méthode ───────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step-n { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* ───────── Contact ───────── */
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-links { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line-strong); }
.contact-links li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-k { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-links a { font-size: clamp(17px, 1.6vw, 20px); text-decoration: none; word-break: break-word; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--soft); }
.field .opt { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-strong);
  font: inherit; font-size: 16px; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field .invalid { border-color: #e5735c; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ───────── Pied de page ───────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.footer p { margin: 0; }
.footer-name { font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ───────── Lecteur ───────── */
.player { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.player::backdrop { background: rgba(8, 8, 8, 0.94); backdrop-filter: blur(6px); }
.player[open] { display: grid; place-items: center; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.player-inner {
  display: grid; grid-template-columns: minmax(0, auto) minmax(260px, 330px); gap: 36px; align-items: center;
  max-width: min(1400px, 96vw); padding: 24px;
}
.player-media video { border-radius: 8px; background: #000; max-height: 84vh; }
.player-media.horizontal video { width: min(960px, 64vw); aspect-ratio: 16 / 9; height: auto; }
.player-media.vertical video { height: 84vh; aspect-ratio: 9 / 16; }
.player-close {
  position: fixed; top: 18px; right: 18px; z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-strong); cursor: pointer;
}
.player-close svg { width: 18px; height: 18px; }
.player-close:hover { background: var(--text); color: var(--bg); }
.player-client { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.player-info h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.08; }
.player-desc { margin: 0 0 22px; color: var(--soft); font-size: 15px; }
.player-meta { margin: 0 0 24px; border-top: 1px solid var(--line); }
.player-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.player-meta dt { color: var(--muted); }
.player-meta dd { margin: 0; text-align: right; }
.player-nav { display: flex; gap: 8px; margin-bottom: 10px; }
.player-nav .btn { flex: 1; }
.player-cta { width: 100%; }

/* ───────── Apparitions ───────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .featured, .featured.vertical { grid-template-columns: 1fr; }
  .featured.vertical .thumb { max-width: 380px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 74px 12px auto 12px; flex-direction: column; gap: 0;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 18px; color: var(--text); border-radius: 8px; }
  .nav a:hover { background: var(--bg-3); }
  .menu-btn { display: block; }
  .topbar-right .btn { display: none; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 34px 0; border-left: 0; }
  .about, .contact-inner { grid-template-columns: 1fr; }

  .player-inner { grid-template-columns: 1fr; gap: 20px; padding: 72px 16px 28px; max-height: 100svh; overflow-y: auto; align-content: start; }
  .player[open] { place-items: start center; }
  .player-media { justify-self: center; width: 100%; }
  .player-media.horizontal video { width: 100%; }
  .player-media.vertical video { height: auto; width: min(100%, 48svh); margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-role { display: none; }
  .hero { min-height: max(600px, 100svh); }
  .hero-content { padding-top: 120px; }
  .hero-ctas .btn { flex: 1; }
  .hero-caption { font-size: 11.5px; }
  .facts-inner { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .fact strong { font-size: 23px; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .about-facts > div, .contact-links li { grid-template-columns: 1fr; gap: 6px; }
  .thumb-play { left: 12px; bottom: 12px; }
  .thumb-play i { width: 40px; height: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { transition: none; }
}
