/* Gabdeshaiesfilms — styles du site */

/* Polices hébergées avec le site (licence libre OFL, voir assets/fonts) */
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/big-shoulders-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #0B0C0E;
  --bg-2: #101215;
  --panel: #131519;
  --text: #F2F0EA;
  --muted: #C9CDD3;
  --dim: #A3A8B1;
  --line: #2B2E34;
  --line-2: #6B7079;
  --accent: #FF4B2B;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4vw, 56px);
}

*, *::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(--body);
  font-size: 17px;
  line-height: 1.55;
}

img, video { display: block; max-width: 100%; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--bg); padding: 10px 16px; font-weight: 600; }

.container { max-width: 1280px; margin: 0 auto; }

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 18px var(--pad);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 32px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Vidéo d'accueil ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 420px;
  max-height: 780px;
  overflow: hidden;
  background: var(--panel);
}

.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Titre de la page gardé pour Google et les lecteurs d'écran, mais invisible à l'écran */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero__down {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #FFFFFF;
}

/* ---------- Grille de projets ---------- */

.work { padding: 8px; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  color: var(--text);
}

.tile--feature { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.tile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tile__cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  background: rgba(11, 12, 14, 0.72);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile:hover .tile__cap,
.tile:focus-visible .tile__cap { opacity: 1; }

.tile__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tile--feature .tile__name { font-size: clamp(32px, 4.4vw, 64px); }

.tile__sub { font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.tile__cat { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* Écrans tactiles : pas de survol, le nom reste affiché en bas de la vignette */
@media (hover: none) {
  .tile__cap {
    opacity: 1;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    background: linear-gradient(to top, rgba(11, 12, 14, 0.88), rgba(11, 12, 14, 0) 62%);
  }
}

@media (max-width: 900px) {
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .tile--feature { aspect-ratio: 16 / 9; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 112px) var(--pad); }
.section--alt { background: var(--bg-2); }

.h2 { font-size: clamp(40px, 5vw, 72px); }

.lead { margin: 0; max-width: 640px; font-size: 19px; color: var(--muted); }

/* ---------- Reels ---------- */

.reels { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 72px; }

.reels__intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.reels__intro p { margin: 0; max-width: 520px; color: var(--muted); }

.reels__list { flex: 2 1 480px; display: flex; flex-wrap: wrap; gap: 8px; }

.tile--reel { flex: 1 1 150px; max-width: 300px; aspect-ratio: 9 / 16; }
.tile--reel .tile__name { font-size: 26px; }

/* ---------- À propos ---------- */

.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }

.about__photo {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 420px;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.about__body { flex: 2 1 380px; display: flex; flex-direction: column; gap: 28px; }

.services { max-width: 640px; margin: 0; padding: 0; list-style: none; }

.services li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
}

.services li:last-child { border-bottom: 1px solid var(--line-2); }

.services h3 {
  flex: 0 0 220px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.services p { flex: 1 1 260px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */

.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; }

.contact__intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }

.contact__title { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.92; }

.contact__links { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }

.contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 28px; margin: 0; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

.field input,
.field textarea {
  min-height: 48px;
  padding: 12px 2px;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
}

.field textarea { resize: vertical; }

.form__note { margin: 0; font-size: 14px; color: var(--dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  font: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
}

.btn:hover { color: var(--bg); filter: brightness(1.1); }

.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); filter: none; }

.form .btn { align-self: flex-start; }

/* ---------- Pied de page ---------- */

.site-footer { padding: 28px var(--pad); border-top: 1px solid var(--line); }

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--dim);
}

.site-footer .logo { min-height: 0; font-size: 22px; }

/* ---------- Page projet ---------- */

.project { padding: 16px var(--pad) clamp(64px, 8vw, 112px); }

.project .container { display: flex; flex-direction: column; gap: 40px; }

.back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }

.player video,
.player img,
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

.player--yt { display: flex; align-items: center; justify-content: center; color: var(--text); }
.player--yt:hover { color: var(--text); }

.player__shade { position: absolute; inset: 0; background: rgba(11, 12, 14, 0.35); }

.player__play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(11, 12, 14, 0.45);
  transition: transform 0.2s ease;
}

.player--yt:hover .player__play { transform: scale(1.06); }

.player__label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 72px; }

.project__title { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.project__title h1 { font-size: clamp(48px, 7vw, 108px); line-height: 0.92; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.project__subtitle { font-size: 20px; color: var(--muted); }

.project__info { flex: 1 1 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

.meta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 0; }
.meta div { display: flex; flex-direction: column; gap: 4px; }
.meta dt { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.meta dd { margin: 0; font-weight: 500; }

.stills { display: flex; flex-wrap: wrap; gap: 8px; }
.stills img { flex: 1 1 280px; min-width: 0; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.cta__title { font-size: clamp(36px, 4.4vw, 60px); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile__cap, .player__play { transition: none; }
}
