/* ================================================================
   DIV PRODUCTIONS — style.css
   divproductions.fr
   ================================================================
   NOTE RGPD : Ce fichier n'importe aucune police externe.
   Polices système utilisées pour la conformité CNIL.
   Pour héberger Cormorant Garamond localement, télécharger les
   fichiers .woff2 sur fonts.google.com et remplacer --serif.
   ================================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg:           #040404;
  --surface:      #090909;
  --surface-2:    #0f0f0f;
  --border:       #1a1a1a;
  --border-2:     #222222;
  --muted:        #2e2e2e;
  --mid:          #5e5e5e;
  --body:         #9a9690;
  --light:        #cbc7c0;
  --white:        #e8e4de;

  --accent:       #9b1515;
  --accent-h:     #b01c1c;
  --accent-glow:  rgba(155, 21, 21, 0.14);

  /* Status colors — palettes cinema / editorial */
  --status-prod:  #c0392b;
  --status-dev:   #b89a5a;
  --status-wip:   #7a7a7a;
  --status-vis:   #4e8c6a;

  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono:  'Courier New', Courier, monospace;

  --section-v: 9rem;
  --pad-h:     4rem;
  --max-w:     1280px;
  --nav-h:     56px;
  --card-radius: 0px;
}

@media (max-width: 768px) {
  :root {
    --section-v: 5.5rem;
    --pad-h:     1.5rem;
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img       { display: block; width: 100%; }
a         { color: inherit; text-decoration: none; }
button    { cursor: pointer; font-family: inherit; background: none; border: none; }
ul, ol    { list-style: none; }

/* ── LAYOUT ────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-h); }
.section   { padding: var(--section-v) 0; }

/* ── TYPOGRAPHY UTILITIES ───────────────────────────────── */
.label {
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mid);
}
.label-accent { color: var(--accent); }

/* Section intro tag — ligne + texte */
.section-tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.54rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.4rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--mid);
  flex-shrink: 0;
}

.serif-display {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── SCROLL REVEAL — progressive enhancement ─────────────
   IMPORTANT : les éléments sont VISIBLES par défaut (sans JS).
   Seul html.js-ready (ajouté par script.js dès le chargement)
   active l'animation d'entrée. Évite le contenu invisible si
   l'IntersectionObserver ne se déclenche pas.
   ─────────────────────────────────────────────────────────── */
.reveal {
  transition: opacity 0.85s ease, transform 0.85s ease;
}
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}
html.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.9rem 1.9rem;
  border: 1px solid;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--body);
  border-color: var(--border-2);
}
.btn-outline:hover {
  border-color: var(--light);
  color: var(--light);
}

/* ════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-h);
  background: rgba(4, 4, 4, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.nav-brand img {
  height: 26px;
  width: auto;
  display: block;
  filter: invert(1) brightness(0.9);
}
.nav-brand-text {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.22s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 0.58rem !important;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-2);
  transition: border-color 0.22s, color 0.22s !important;
  color: var(--light) !important;
}
.nav-cta:hover {
  border-color: var(--white) !important;
  color: var(--white) !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
/* État ouvert du hamburger — croix */
.nav-burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 199;
    border-top: 1px solid var(--border);
  }
  .nav-links.open   { display: flex; }
  .nav-links a      { font-size: 0.7rem; }
  .nav-burger       { display: flex; }
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
#accueil {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--nav-h) var(--pad-h) 7rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 65% 0%, rgba(139,20,20,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(139,20,20,0.04) 0%, transparent 45%);
}

/* Vidéo hero — boucle cinématique */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.55) grayscale(12%);
}

/* Overlay dégradé sombre par-dessus la vidéo */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,5,0.5)  0%,
    rgba(5,5,5,0.08) 45%,
    rgba(5,5,5,0.72) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Grain cinéma par-dessus tout */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
  opacity: 0.035;
  animation: grain 10s steps(10) infinite;
  z-index: 3;
  pointer-events: none;
}
@keyframes grain {
  0%,100% { transform:translate(0,0);     }
  10%      { transform:translate(-2%,-3%); }
  20%      { transform:translate(3%,1%);   }
  30%      { transform:translate(-1%,2%);  }
  40%      { transform:translate(2%,-2%);  }
  50%      { transform:translate(-3%,1%);  }
  60%      { transform:translate(1%,3%);   }
  70%      { transform:translate(-2%,-1%); }
  80%      { transform:translate(3%,2%);   }
  90%      { transform:translate(-1%,-3%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.54rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.4rem;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-logo-large {
  height: clamp(72px, 11vw, 152px);
  width: auto;
  filter: invert(1) brightness(0.92);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.8rem;
}
.hero-title .hero-sub {
  display: block;
  font-size: 0.33em;
  font-weight: 300;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.6rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--body);
  max-width: 460px;
  margin-bottom: 3.2rem;
  line-height: 1.95;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: var(--pad-h);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.hero-scroll-indicator span {
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 0.7; transform: scaleY(0.6); }
}

/* ════════════════════════════════════════════════════════
   MANIFESTE
   ════════════════════════════════════════════════════════ */
#manifeste {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifeste-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8rem;
  align-items: start;
}

.manifeste-aside-num {
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: 300;
  line-height: 0.9;
  color: rgba(255,255,255,0.04);
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}
.manifeste-aside-label { margin-top: 1rem; }

.manifeste-body h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.manifeste-text {
  font-size: 1.04rem;
  line-height: 2.15;
  color: var(--body);
  max-width: 560px;
}
.manifeste-text p { margin-bottom: 1.7rem; }
.manifeste-text p:last-child { margin-bottom: 0; }
.manifeste-text strong { color: var(--light); font-weight: 400; }
.manifeste-text em     { font-style: italic; color: var(--light); }

@media (max-width: 768px) {
  .manifeste-inner { grid-template-columns: 1fr; gap: 2rem; }
  .manifeste-aside-num { font-size: 3.5rem; margin-bottom: 0.5rem; }
}

/* ════════════════════════════════════════════════════════
   PROJETS
   ════════════════════════════════════════════════════════ */
.projets-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}
.projets-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.projets-total {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
}

.projets-category { margin-bottom: 5.5rem; }

.category-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.category-name {
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.category-name.c-production    { color: var(--status-prod); }
.category-name.c-dev-avance    { color: var(--status-dev); }
.category-name.c-developpement { color: var(--status-wip); }
.category-name.c-vision        { color: var(--status-vis); }

.category-count {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
  margin-left: auto;
}

/* Grilles projets — grille éditoriale uniforme : toujours 3 colonnes */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .projets-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .projets-grid { grid-template-columns: 1fr; }
}

/* Carte projet */
.projet-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.projet-card:hover { background: var(--surface-2); }

.projet-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.projet-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.projet-card:hover .projet-poster img { transform: scale(1.06); }

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--surface-2) 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}
.poster-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(155,21,21,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
}
.poster-placeholder .pp-initial {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  user-select: none;
}

.projet-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,4,4,0.92) 0%,
    rgba(4,4,4,0.3) 40%,
    transparent 70%
  );
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.projet-card:hover .projet-poster-overlay { opacity: 1; }

.poster-overlay-top { align-self: flex-end; }
.poster-overlay-plus {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1;
  transition: border-color 0.22s;
}
.projet-card:hover .poster-overlay-plus { border-color: rgba(255,255,255,0.5); }

.projet-info {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.projet-status {
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.projet-status.c-production    { color: var(--status-prod); }
.projet-status.c-dev-avance    { color: var(--status-dev); }
.projet-status.c-developpement { color: var(--status-wip); }
.projet-status.c-vision        { color: var(--status-vis); }

.projet-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.projet-format {
  font-size: 0.67rem;
  color: var(--mid);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ── Filmographie ───────────────────────────────────────── */
.filmographie {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.filmographie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.filmographie-header h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--light);
}

.filmo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .filmo-grid { grid-template-columns: repeat(2, 1fr); }
}

.filmo-card {
  display: block;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
}
.filmo-card:hover { background: var(--surface-2); }
.filmo-poster {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--surface-2);
}
.filmo-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}
.filmo-card:hover .filmo-poster img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
.filmo-info { padding: 1.1rem 1.3rem 1.3rem; }
.filmo-title {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--light);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.filmo-meta { font-size: 0.64rem; color: var(--mid); letter-spacing: 0.02em; }

/* ════════════════════════════════════════════════════════
   FONDATEURS
   ════════════════════════════════════════════════════════ */
#fondateurs {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fondateurs-header { margin-bottom: 4rem; }
.fondateurs-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}

.fondateurs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
@media (max-width: 800px) {
  .fondateurs-grid { grid-template-columns: 1fr; }
}

.fondateur-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.8rem 2.5rem;
  transition: background 0.3s;
}
.fondateur-card:hover { background: var(--surface-2); }
.fondateur-portrait {
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  margin-bottom: 1.6rem;
  flex-shrink: 0;
}
.fondateur-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s;
}
.fondateur-card:hover .fondateur-portrait img { filter: grayscale(0%); }
.fondateur-portrait-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--muted);
}

.fondateur-role {
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.fondateur-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.fondateur-title { font-size: 0.76rem; color: var(--mid); margin-bottom: 1.6rem; letter-spacing: 0.02em; }
.fondateur-bio { font-size: 0.875rem; color: var(--body); line-height: 1.9; }

/* ════════════════════════════════════════════════════════
   ACTUALITÉS
   ════════════════════════════════════════════════════════ */
.actualites-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}
.actualites-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
}

.actu-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, padding 0.25s, margin 0.25s;
}
.actu-item:hover { background: var(--surface); padding: 2.2rem 2rem; margin: 0 -2rem; }

.actu-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.1rem;
}
.actu-tag {
  font-size: 0.53rem;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.actu-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.actu-text { font-size: 0.88rem; color: var(--body); }

@media (max-width: 600px) {
  .actu-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .actu-item:hover { margin: 0; padding: 2rem 0; }
}

/* ════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}
.contact-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.contact-desc {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.92;
  margin-bottom: 2.5rem;
}
.contact-email-block {
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
}
.contact-email-label {
  font-size: 0.57rem;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}
.contact-email-link {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.22s;
}
.contact-email-link:hover { color: var(--accent); }

.contact-card {
  border: 1px solid var(--border);
  padding: 2.2rem 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: var(--border-2); }
.contact-card-label {
  font-size: 0.54rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.2rem;
}
.contact-card p { font-size: 0.9rem; color: var(--body); line-height: 1.88; }
.contact-card strong { color: var(--light); font-weight: 400; }

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand img {
  height: 18px;
  width: auto;
  filter: invert(1) brightness(0.35);
}
.footer-brand span {
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--body); }

.footer-bottom {
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom span { font-size: 0.7rem; color: var(--muted); }
.footer-bottom a {
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--body); }

/* ════════════════════════════════════════════════════════
   MODAL PROJET (slide-in depuis la droite)
   ════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.88);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(620px, 100%);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 401;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
  padding: 4rem 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.modal-panel.open { transform: none; }

.modal-close-btn {
  position: sticky;
  top: 0;
  float: right;
  width: 34px; height: 34px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--mid);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.22s, color 0.22s;
  z-index: 10;
  margin-bottom: 1rem;
}
.modal-close-btn:hover { border-color: var(--white); color: var(--white); }

.modal-poster-wrap {
  aspect-ratio: 2/3;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--surface-2);
}
.modal-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-poster-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--border-2);
}

.modal-body-status {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.modal-body-status.c-production    { color: var(--status-prod); }
.modal-body-status.c-dev-avance    { color: var(--status-dev); }
.modal-body-status.c-developpement { color: var(--status-wip); }
.modal-body-status.c-vision        { color: var(--status-vis); }

.modal-body-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.modal-body-format {
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}
.modal-body-logline {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.modal-body-desc {
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.9;
  margin-bottom: 2rem;
}
.modal-meta-table { border-top: 1px solid var(--border); }
.modal-meta-row {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.modal-meta-k {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  min-width: 100px;
  flex-shrink: 0;
}
.modal-meta-v { font-size: 0.82rem; color: var(--light); }

@media (max-width: 768px) {
  .modal-panel { padding: 3rem 1.5rem; }
}

/* ════════════════════════════════════════════════════════
   CONSENTEMENT RGPD — Modale centrée (conforme CNIL)
   ════════════════════════════════════════════════════════ */

/* Conteneur global — invisible par défaut */
#cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
#cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Fond flouté semi-opaque */
.ck-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,4,4,0.88);
  backdrop-filter: blur(10px) saturate(0.8);
  -webkit-backdrop-filter: blur(10px) saturate(0.8);
}

/* Boîte centrale */
.ck-modal-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-2);
  width: 100%;
  max-width: 560px;
  padding: 2.8rem 2.8rem 2rem;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
  transform: translateY(18px);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
#cookie-banner.visible .ck-modal-box {
  transform: translateY(0);
}

/* En-tête : tag RGPD + logo */
.ck-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}
.ck-rgpd-tag {
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(155,21,21,0.35);
  padding: 0.3rem 0.7rem;
  display: inline-block;
}
.ck-logo {
  height: 18px;
  width: auto;
  filter: invert(1) brightness(0.4);
  display: block;
}

/* Titre */
.ck-modal-title {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  line-height: 1.15;
}

/* Corps du texte */
.ck-modal-body {
  margin-bottom: 2rem;
}
.ck-modal-body p {
  font-size: 0.85rem;
  color: var(--body);
  line-height: 1.82;
  margin-bottom: 0.9rem;
}
.ck-modal-body p:last-child { margin-bottom: 0; }
.ck-modal-body strong { color: var(--light); font-weight: 400; }

/* Boutons principaux — taille égale, importance égale (CNIL) */
.ck-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.ck-modal-btn {
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 1rem;
  border: 1px solid;
  background: none;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
/* Refuser — outline (CNIL : visibilite egale a Accepter) */
.ck-modal-btn--refuse {
  border-color: var(--border-2);
  color: var(--light);
}
.ck-modal-btn--refuse:hover {
  border-color: var(--light);
  color: var(--white);
}
/* Accepter — rempli mais sans suprematie visuelle */
.ck-modal-btn--accept {
  border-color: var(--white);
  background: var(--white);
  color: var(--bg);
}
.ck-modal-btn--accept:hover {
  background: transparent;
  color: var(--white);
}

/* Liens secondaires */
.ck-modal-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}
.ck-modal-link {
  font-size: 0.68rem;
  color: var(--mid);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}
.ck-modal-link:hover {
  color: var(--light);
  text-decoration: underline;
  text-decoration-color: var(--border-2);
}
.ck-modal-sep { font-size: 0.65rem; color: var(--muted); }

/* Mention legale finale */
.ck-modal-legal {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.7;
}
.ck-modal-legal a {
  color: var(--mid);
  text-decoration: underline;
  text-decoration-color: var(--muted);
}
.ck-modal-legal a:hover { color: var(--body); }

@media (max-width: 520px) {
  .ck-modal-box { padding: 2rem 1.5rem 1.5rem; }
  .ck-modal-actions { grid-template-columns: 1fr; }
}

/* Boutons de la modale de preferences */
.ck-btn {
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border: 1px solid;
  background: none;
  transition: all 0.22s;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.ck-refuse          { border-color: var(--border-2); color: var(--mid); }
.ck-refuse:hover    { border-color: var(--light); color: var(--light); }
.ck-customize       { border-color: var(--border-2); color: var(--mid); }
.ck-customize:hover { border-color: var(--body); color: var(--body); }
.ck-accept          { background: var(--white); border-color: var(--white); color: var(--bg); }
.ck-accept:hover    { background: transparent; color: var(--white); }

/* ── Preferences cookies (modale secondaire) */
#cookie-prefs-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(4,4,4,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#cookie-prefs-modal.open { opacity: 1; pointer-events: auto; }

.ck-prefs-box {
  background: var(--surface);
  border: 1px solid var(--border-2);
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  max-height: 92vh;
  overflow-y: auto;
}
.ck-prefs-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.ck-prefs-desc {
  font-size: 0.82rem;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.ck-pref-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.ck-pref-info h4 { font-size: 0.85rem; font-weight: 500; color: var(--light); margin-bottom: 0.3rem; }
.ck-pref-info p  { font-size: 0.76rem; color: var(--mid); line-height: 1.6; }

/* Toggle switch */
.ck-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.ck-toggle input { opacity: 0; width: 0; height: 0; }
.ck-slider {
  position: absolute;
  inset: 0;
  background: var(--border-2);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.3s;
}
.ck-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--mid);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}
.ck-toggle input:checked + .ck-slider { background: var(--accent); }
.ck-toggle input:checked + .ck-slider::before { transform: translateX(18px); background: var(--white); }
.ck-toggle input:disabled + .ck-slider { opacity: 0.5; cursor: not-allowed; }

.ck-prefs-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════
   PAGES LEGALES
   ════════════════════════════════════════════════════════ */
.legal-wrap { padding-top: var(--nav-h); }
.legal-hero {
  padding: 5.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  margin-top: 0.7rem;
}
.legal-body {
  padding: 4rem 0;
  max-width: 720px;
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}
.legal-body h3 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
.legal-body p {
  font-size: 0.9rem;
  color: var(--body);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.legal-body a       { color: var(--light); text-decoration: underline; text-decoration-color: var(--muted); }
.legal-body ul      { margin: 0.5rem 0 1rem 1.5rem; }
.legal-body li      { font-size: 0.9rem; color: var(--body); line-height: 1.8; margin-bottom: 0.3rem; }
.legal-note {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-size: 0.84rem;
  color: var(--mid);
  font-style: italic;
}
.legal-field {
  display: inline;
  font-family: var(--mono);
  font-size: 0.85em;
  color: #7a6a4e;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 0 0.3em;
  border-radius: 2px;
}
