/* ═══════════════════════════════════════════════════════════
   Studio ESEO — Page Cinéséo
   Style de l'accueil (fond noir, ouverture plein écran sur photo,
   cartes grises, menu et pied de page identiques) avec un accent
   JAUNE DORÉ propre à Cinéséo (rouge = accueil, bleu = impression).
   Feuille autonome ; tailles et graisses : typo.css.

   Pour changer la couleur : modifier --accent (et --accent-rgb).
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir:   #0d0d0f;
  --blanc:  #f5f3ee;
  --gris:   #2a2a30;
  --muted:  #9a9aaa;
  --accent: #8b5cf6;             
  --accent-rgb: 245, 179, 1;
  --on-accent: #0d0d0f;          
  /* Le logo est en noir sur transparent : on l'inverse pour le rendre blanc sur fond sombre.
     Si ton fichier LOGOCINESEO.png est déjà clair ou en couleurs, remplace par « none ». */
  --logo-filter: invert(1) drop-shadow(0 4px 24px rgba(0,0,0,0.55));
}

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}

/* ── NAV (identique à l'accueil) ─────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(13,13,15,0.95), transparent);
}

.nav-logo {
  font-size: var(--fs-logo);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-logo);
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ── OUVERTURE ───────────────────────────────── */
.cin-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}

.cin-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(100,80,200,0.06) 0%, transparent 60%);
}

.cin-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(13,13,15,0.40), rgba(13,13,15,0.40)),
    linear-gradient(to top, rgba(13,13,15,0.92) 0%, transparent 60%),
    url("IMG_6139.jpg") center / cover no-repeat;
  pointer-events: none;
}

/* Fine ligne verticale d'accent, comme sur l'accueil */
.cin-hero::before {
  content: '';
  position: absolute;
  left: 48px; top: 120px; bottom: 80px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.4;
  z-index: 1;
}

.cin-hero-content { position: relative; z-index: 1; max-width: 760px; padding-left: 32px; }

.cin-label {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.cin-title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-title);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}
.cin-title span { color: var(--accent); }

.cin-desc {
  font-size: var(--fs-lead);
  color: #c4c4d0;
  max-width: 520px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

/* Logo bien visible, à droite de l'ouverture */
.cin-logo {
  position: relative; z-index: 1;
  width: clamp(340px, 48vw, 720px);
  height: auto;
  align-self: center;
  filter: var(--logo-filter);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.scroll-hint {
  position: absolute; z-index: 1;
  bottom: 32px; right: 48px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint::before { content: ''; width: 40px; height: 1px; background: var(--muted); }

/* ── SECTIONS ────────────────────────────────── */
.cin-section {
  padding: 100px 48px 110px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.section-num {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
}

.section-intro { font-size: var(--fs-sm); color: var(--muted); max-width: 320px; line-height: 1.8; }

/* ── ÉQUIPE : présentation fixe (aucun survol, aucune animation) ── */
.equipe { border-bottom: 1px solid rgba(255,255,255,0.08); }

.equipe-pole {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 24px 64px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.equipe-pole-name {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
}

.equipe-num {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent);
  margin-bottom: 10px;
}

.equipe-roles { margin: 0; }

.equipe-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.6;
}
.equipe-row:first-child { padding-top: 0; }
.equipe-row:last-child  { border-bottom: none; padding-bottom: 0; }

.equipe-row dt { color: var(--muted); font-size: var(--fs-sm); }
.equipe-row dd { color: var(--blanc); font-weight: var(--fw-medium); text-align: right; margin: 0; }

/* ── FILM ────────────────────────────────────── */
.video {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;                 /* ← centre la vidéo */
  aspect-ratio: 16 / 9;
  background: var(--gris);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  justify-content: center;
}

.btn-don {
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: 16px 36px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-don:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-ghost {
  background: var(--gris);
  color: var(--blanc);
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  transition: background 0.2s;
}
.btn-ghost:hover { background: #3a3a42; }

/* ── AUTRES COURTS MÉTRAGES (liste gérée depuis l'admin) ──── */
[hidden] { display: none !important; }

.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 56px 40px;
}
.film .video { max-width: none; margin: 0; }          /* dans la grille : pleine largeur de la carte */

.film-titre {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-title);
  margin-top: 20px;
}
.film-meta {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 8px;
}
.film-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; margin-top: 12px; max-width: 560px; }

/* ── FOOTER (identique à l'accueil) ──────────── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-size: var(--fs-logo);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-logo);
  text-transform: uppercase;
  color: var(--accent);
}
.footer-copy { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 1px; }

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }

  .cin-hero {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 28px;
    padding: 0 24px 60px;
  }
  .cin-hero::before { left: 24px; }
  .cin-hero-content { padding-left: 20px; }
  .cin-logo { width: clamp(130px, 38vw, 220px); align-self: flex-start; margin-left: 20px; }
  .scroll-hint { display: none; }

  .cin-section { padding: 64px 24px 72px; }
  .section-head { flex-direction: column; gap: 14px; }
  .equipe-pole { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }

  footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
}
