/* lotasse-fpv — piste A « Galerie » : blanc, noir, la vidéo fait le reste. */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --text-2: #4a4a4a;
  --muted: #6b6f75;
  --line: #d9dbde;
  --placeholder: #e9ebee;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 4.5vw, 64px);
  --wrap: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #555; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- En-tête ---------- */
.site-head .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: clamp(20px, 3vw, 32px);
}
.brand { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: clamp(20px, 3vw, 40px); font-size: .95rem; }
.nav a { text-decoration: none; padding-block: 12px; }
.nav a[aria-current="page"], .nav .nav-contact { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px); align-items: end;
  padding-block: clamp(32px, 6vw, 72px) clamp(28px, 4vw, 56px);
}
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: .95;
  font-weight: 500; letter-spacing: -0.04em;
}
.hero p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 440px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.btn-link {
  display: inline-block; text-decoration: none; font-weight: 500;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 14px 26px;
}
.btn-link:hover { background: #fff; color: var(--ink); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

/* ---------- Showreel ---------- */
.showreel { position: relative; background: var(--placeholder); aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; overflow: hidden; }
.showreel video, .showreel iframe, .showreel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.showreel-caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: .9rem; color: var(--muted); }

/* Lecteur à la demande (miniature + bouton) */
.player { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.player:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.player img { transition: transform .5s ease; }
.player:hover img { transform: scale(1.02); }
.play {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.play svg { width: 18px; margin-left: 3px; }

/* Lecteur épuré : l'iframe ne reçoit aucun clic, un seul bouton lecture / pause par-dessus */
.live { position: absolute; inset: 0; background: #000; }
.live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--placeholder); pointer-events: none; }
.live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.poster { position: absolute; inset: 0; background: var(--placeholder); transition: opacity .3s ease; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live:not(.is-loading) .poster { opacity: 0; pointer-events: none; }
.toggle { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.toggle:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.toggle .play { opacity: 1; transition: opacity .2s ease; }
.live.is-playing:not(.is-loading) .toggle .play { opacity: 0; }
.live.is-playing .toggle:hover .play, .live.is-playing .toggle:focus-visible .play { opacity: .9; }
@media (hover: none) { .live.is-playing:not(.is-loading) .toggle .play { opacity: 0; } }

/* Reel Instagram : lecteur vertical d'Instagram, affiché au clic */
.player.is-ig { background: var(--placeholder); }
.ig-label { position: absolute; left: 16px; bottom: 14px; font-size: .85rem; color: var(--muted); }
.video .frame.is-tall, .is-tall { aspect-ratio: auto !important; height: min(760px, 92vh); background: #fff; display: flex; justify-content: center; }
.is-tall .ig-embed { position: static !important; width: min(400px, 100%) !important; height: 100% !important; border: 1px solid var(--line) !important; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(80px, 10vw, 140px); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: clamp(24px, 3vw, 40px);
}
.label { font-size: .95rem; font-weight: 500; }
@media (max-width: 560px) { .section-head { flex-direction: column; gap: 12px; } }

/* Filtres vidéos */
.filters { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .95rem; }
.filters button {
  all: unset; cursor: pointer; color: var(--muted); padding-block: 10px 4px;
  border-bottom: 1px solid transparent;
}
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.filters button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.video-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 24px);
}
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: var(--placeholder); overflow: hidden; }
.video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: .95rem; }
.video figcaption strong { font-weight: 400; }
.video .desc { margin-top: 6px; color: var(--text-2); font-size: .95rem; max-width: 52ch; }
.showreel-desc { margin-top: 6px; color: var(--text-2); max-width: 60ch; }
.video figcaption span { color: var(--muted); white-space: nowrap; }

/* ---------- Page Vidéos ---------- */
.page-head {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 64px); align-items: end;
  padding-block: clamp(32px, 6vw, 72px) clamp(40px, 5vw, 64px);
}
.page-head h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; font-weight: 500; letter-spacing: -0.045em; }
.page-head p { color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 440px; }
@media (max-width: 820px) { .page-head { grid-template-columns: 1fr; } }
.toolbar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: clamp(24px, 3vw, 40px);
}
.toolbar .count { color: var(--muted); font-size: .95rem; }
.video-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 24px); }
.video-grid.wide .video figcaption { font-size: 1.05rem; }
@media (max-width: 720px) { .video-grid.wide { grid-template-columns: 1fr; } }
.empty-state { border-top: 1px solid var(--ink); padding-top: 24px; display: grid; gap: 20px; justify-items: start; }
.empty-state p { color: var(--text-2); font-size: 1.1rem; max-width: 480px; }
.empty { color: var(--muted); }

/* Services et déroulé : rangées sur 12 colonnes */
.rows { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.rows > .label { grid-column: 1 / span 4; border-top: 1px solid var(--ink); padding-top: 20px; }
.rows > .list { grid-column: 5 / span 8; border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
  padding: 20px 0 28px; border-bottom: 1px solid var(--line);
}
.row h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.row p { color: var(--text-2); }
.row .step { color: var(--muted); font-size: .95rem; display: block; margin-bottom: 6px; font-weight: 400; letter-spacing: 0; }
@media (max-width: 820px) {
  .rows > .label { grid-column: 1 / -1; border-top: 0; padding-top: 0; margin-bottom: 16px; }
  .rows > .list { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-foot { padding-top: clamp(100px, 12vw, 160px); padding-bottom: 40px; }
.cta {
  border-top: 1px solid var(--ink); padding-top: clamp(32px, 4vw, 48px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap;
}
.cta p { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; font-weight: 500; letter-spacing: -0.035em; max-width: 760px; }
.cta a { font-size: clamp(1.15rem, 2vw, 1.75rem); letter-spacing: -0.02em; word-break: break-all; }
.legal-links { display: flex; gap: 24px; }
.legal a { color: var(--muted); }
.social { font-size: 1.05rem; }
.legal { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 72px); font-size: .82rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px;
  padding-top: clamp(32px, 6vw, 72px);
}
.contact-intro { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 24px; }
.contact-intro h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; font-weight: 500; letter-spacing: -0.04em; }
.contact-intro p { color: var(--text-2); font-size: 1.1rem; max-width: 420px; }
.mail-direct { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; word-break: break-all; }
.form { grid-column: 7 / span 6; display: grid; gap: 28px; }
@media (max-width: 900px) { .contact-intro, .form { grid-column: 1 / -1; } }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
label { font-size: .9rem; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0 10px; width: 100%; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px;
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.btn {
  font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 14px 26px; border-radius: 0; justify-self: start;
}
.btn:hover { background: #fff; color: var(--ink); }
.form-note { font-size: .88rem; color: var(--muted); }
.form-error { color: #b00020; font-size: .95rem; }
.form-error a { color: #b00020; }
.sent { grid-column: 7 / span 6; display: grid; gap: 20px; justify-items: start; border-top: 1px solid var(--ink); padding-top: 24px; align-self: start; }
.sent h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.sent h2:focus { outline: none; }
.sent p { color: var(--text-2); font-size: 1.1rem; max-width: 460px; }
.sent strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .sent { grid-column: 1 / -1; } }
[aria-invalid="true"] { border-bottom-color: #b00020; }
.btn:disabled { opacity: .55; cursor: progress; }

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