:root{
  --bg: #0b0b0b;           /* fond noir profond */
  --ink: #ffffff;          /* texte blanc */
  --muted: #cfcfcf;        /* texte secondaire */
  --line: rgba(255,255,255,.18); /* bordures très légères */
  --accent: #ffffff;       /* tu peux passer en #e6e6e6 pour un blanc un peu plus doux */
  --font-title: "Anton", "Goias", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Oswald", "Picific", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}

/* RESET propre et simple */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ display:block; max-width:100%; height:auto; }

/* === HEADER minimal (logo + bouton contact) === */
.site-header{
  position: sticky; /* reste visible en haut */
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,11,11,.96), rgba(11,11,11,.72));
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo{
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: .5px;
  font-size: clamp(18px, 2vw, 22px);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.contact-btn{
  appearance: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
  text-decoration: none;
}
.contact-btn:hover{ transform: translateY(-1px); border-color: var(--ink); background: rgba(255,255,255,.06); }

/* === SECTION HERO (titre + baseline optionnelle) === */
.hero{
  max-width: var(--maxw);
  margin: 56px auto 22px;
  padding: 0 20px;
}
.kicker{
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12px;
  margin-bottom: 8px;
}
h1{
  font-family: var(--font-title);
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}
.sub{
  color: var(--muted);
  max-width: 64ch;
  margin-top: 8px;
}

/* === GRILLE DE PROJETS EN LETTERBOX === */
.grid{
  max-width: var(--maxw);
  margin: 26px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* Carte “letterbox” 2.39:1 avec contour subtil */
.reel{
  grid-column: span 12; /* par défaut sur mobile */
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0e0e0e;
  /* ratio cinéma : 2.39:1 */
  aspect-ratio: 239 / 100;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* Effet léger au hover */
.reel:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.35); box-shadow: 0 10px 30px rgba(0,0,0,.45); }

/* Image plein cadre */
.reel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;           /* remplissage sans déformer */
  object-position: center;     /* ajuste si nécessaire (left / right / top) */
  filter: saturate(1.02) contrast(1.02);
  transition: transform .45s ease;
}
.reel:hover img{ transform: scale(1.03); }

/* Bandeau d’info (type de plan / titre / année) */
.reel .label{
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 2;
}
.pill{
  font-family: var(--font-title);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 6px 10px 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(2px);
  white-space: nowrap;
}
.title{
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
  padding: 6px 10px 5px;
  border-radius: 8px;
  color: var(--ink);
  max-width: 62vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Icône Play discrète au survol */
.play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.play::after{
  content: "";
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(transparent 30%, rgba(0,0,0,.35) 31%);
  mask:
    radial-gradient(circle 29px at center, #0000 97%, #000 98%)    /* trou du cercle */
    ,linear-gradient(#000 0 0);                                     /* remplissage */
  -webkit-mask-composite: source-out;
          mask-composite: exclude;
}
.reel:hover .play::after{ border-color: rgba(255,255,255,.35); }

/* Disposition responsive : mix de spans pour des rythmes variés */
@media (min-width: 640px){
  .span-6{ grid-column: span 6; }
  .span-8{ grid-column: span 8; }
  .span-4{ grid-column: span 4; }
  .span-12{ grid-column: span 12; }
}
@media (min-width: 980px){
  .grid{ gap: 22px; }
}

/* === SECTION CONTACT === */
footer{
  border-top: 1px solid var(--line);
  background: #0a0a0a;
}
.contact{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 20px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.contact h2{
  margin: 0 0 12px 0;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: clamp(26px, 4.3vw, 44px);
  line-height: 1;
}
.coords{
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}
.coords a{
  color: var(--ink);
  text-decoration-color: rgba(255,255,255,.25);
  text-underline-offset: 3px;
}
.coords a:hover{ text-decoration-color: rgba(255,255,255,.6); }
.footnote{
  color: #9a9a9a;
  margin-top: 24px;
  font-size: 13px;
}
/* ===== Lightbox YouTube ===== */
.ytbox{
position: fixed; inset: 0; z-index: 1000;
display: none; /* caché par défaut */
}
.ytbox.is-open{ display: grid; place-items: center; }

.ytbox__backdrop{
position: absolute; inset: 0;
background: rgba(0,0,0,.78);
backdrop-filter: blur(2px);
}

.ytbox__dialog{
position: relative;
width: min(1200px, 92vw);
/* ratio 16:9 pour YouTube. Si tu veux un look ciné, mets 239/100 */
aspect-ratio: 16 / 9;
background: #000;
border: 1px solid rgba(255,255,255,.18);
border-radius: 12px;
box-shadow: 0 30px 120px rgba(0,0,0,.7);
overflow: hidden;
}

.ytbox__frame, .ytbox__frame iframe{
position: absolute; inset: 0;
width: 100%; height: 100%;
border: 0;
}

.ytbox__close{
position: absolute; top: 8px; right: 8px;
width: 42px; height: 42px; line-height: 42px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,.22);
background: rgba(0,0,0,.55);
color: #fff; font-size: 28px; font-weight: 700;
cursor: pointer;
z-index: 2;
transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.ytbox__close:hover{ transform: translateY(-1px); border-color: #fff; background: rgba(255,255,255,.08); }
/* === Animation légère au scroll === */

/* état initial (invisible + légèrement décalé) */
.reel {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.8s ease, transform 0.8s ease;
}

/* quand visible à l’écran */
.reel.is-visible {
opacity: 1;
transform: translateY(0);
}

/* légère mise en scène au survol sur desktop */
@media (hover:hover) {
.reel:hover {
transform: translateY(-4px) scale(1.01);
}
}

/* === Adaptation mobile améliorée === */

/* petits écrans : 1 colonne */
@media (max-width: 599px) {
.grid {
grid-template-columns: 1fr;
gap: 14px;
}
}

/* tablettes : 2 colonnes */
@media (min-width: 600px) and (max-width: 899px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* écrans moyens et + : 3 à 4 colonnes selon largeur */
@media (min-width: 900px) {
.grid {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
}

/* petit confort : adoucir les transitions globales */
* {
scroll-behavior: smooth;
transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
/* ======= FIX: grille 12 colonnes + spans cohérents ======= */

/* Base: 12 colonnes partout */
.grid { grid-template-columns: repeat(12, 1fr) !important; }

/* Par défaut, une carte occupe toute la ligne (utile pour mobile) */
.grid .reel { grid-column: 1 / -1; }

/* Tablette (≥600px): 2 colonnes visuellement */
@media (min-width: 600px) and (max-width: 899px) {
/* 12-col toujours, on mappe les spans pour faire 2 colonnes */
.grid .span-4 { grid-column: span 6; }   /* 1/2 largeur */
.grid .span-6 { grid-column: span 6; }   /* 1/2 largeur */
.grid .span-8 { grid-column: span 12; }  /* pleine largeur */
.grid .span-12 { grid-column: span 12; } /* pleine largeur */
}

/* Desktop (≥900px): on retrouve tes spans d’origine */
@media (min-width: 900px) {
.grid .span-4  { grid-column: span 4; }
.grid .span-6  { grid-column: span 6; }
.grid .span-8  { grid-column: span 8; }
.grid .span-12 { grid-column: span 12; }
}

/* S’assure que les cartes utilisent toute leur largeur disponible */
.reel { width: 100%; }
.reel {
  perspective: 600px;
  transform-style: preserve-3d;
}
.reel img {
  transition: transform 0.6s ease, filter 0.6s ease;
}
.reel:hover img {
  transform: scale(1.02) rotateX(2deg) rotateY(-2deg);
  filter: brightness(1.05) contrast(1.05);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.08;
  mix-blend-mode: screen;
  z-index: 1;
}
h1 {
  background: linear-gradient(90deg, #fff 0%, #c7a65b 50%, #fff 100%);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.reel:hover::after {
  opacity: 1;
}
body {
  opacity: 0;
  animation: fadein 1.2s ease forwards;
}
@keyframes fadein {
  to { opacity: 1; }
}
