/* =========================================================
   Sacha Prod · style sombre, ambiance cinéma
   ========================================================= */
:root {
  --noir: #0d0b09;
  --noir-2: #15110e;
  --noir-3: #1e1915;
  --ligne: rgba(239, 230, 216, .12);
  --texte: #efe6d8;
  --texte-2: #cbbfae;
  --gris: #8f8275;
  --orange: #e0773a;
  --orange-2: #c8622a;
  --ambre: #f2b98c;
  --rayon: 6px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  /* anciens noms, encore utilisés dans quelques pages */
  --brun: var(--noir);
  --brun-2: var(--texte-2);
  --creme: var(--texte);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--noir); }
body {
  background: var(--noir);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grain de pellicule */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .06; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}
::selection { background: var(--orange); color: var(--noir); }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.solide {
  background: rgba(13, 11, 9, .82);
  backdrop-filter: blur(14px);
  padding: 13px 36px;
  border-bottom-color: var(--ligne);
}
.logo img { height: 46px; width: auto; transition: height .4s; }
.header.solide .logo img { height: 38px; }
.logo .sombre { display: none !important; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--texte); font-size: 14px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; transition: color .2s;
}
.nav a:hover { color: var(--ambre); }
.nav .cta {
  border: 1px solid rgba(239, 230, 216, .35); padding: 10px 20px; border-radius: 999px;
  transition: background .25s, border-color .25s, color .25s;
}
.nav .cta:hover { background: var(--orange); border-color: var(--orange); color: var(--noir); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 26px; height: 1.5px; background: var(--texte); margin: 7px 0; transition: .3s; }

/* ---------- Vitrine ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden; background: #000;
}
.hero-media { position: absolute; inset: 0; animation: ouverture 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ouverture { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-media video, .hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: 177.78vh; height: 56.25vw;
  transform: translate(-50%, -50%);
  object-fit: cover; border: 0; pointer-events: none;
}
.hero-media video { width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 25%, rgba(0, 0, 0, .35) 45%, rgba(13, 11, 9, .97) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, transparent 65%);
}
.hero h1, .hero p, .sur-titre { text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
/* Bandes cinéma */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-top: 5vh solid #000; border-bottom: 5vh solid #000;
  animation: bandes 2s cubic-bezier(.7, 0, .2, 1) .3s both;
}
@keyframes bandes { from { border-width: 50vh 0; } to { border-width: 5vh 0; } }
.hero-contenu { position: relative; z-index: 4; padding-bottom: 14vh; }
.sur-titre {
  display: flex; align-items: center; gap: 12px;
  font: 600 12px var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--texte-2); margin-bottom: 26px;
}
.sur-titre::before {
  content: "REC"; display: inline-flex; align-items: center; gap: 8px; color: var(--texte);
  padding-left: 16px; padding-right: 14px; border-right: 1px solid var(--ligne);
  background: radial-gradient(circle at 5px 50%, #e5482f 4px, transparent 5px) no-repeat;
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec { 50% { background-size: 0 0; } }
.aller-contenu { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--orange); color: var(--noir); padding: 10px 16px; border-radius: 6px; }
.aller-contenu:focus { left: 10px; }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 7.4vw, 112px); line-height: .98; letter-spacing: -.025em;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--ambre); font-weight: 300; }
.hero p { font-size: clamp(17px, 1.5vw, 20px); max-width: 540px; margin: 26px 0 38px; color: var(--texte-2); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange); color: var(--noir);
  padding: 16px 30px; border-radius: 999px; border: 0;
  font: 600 15px var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn::after { content: "→"; transition: transform .25s; }
.btn:hover { background: var(--ambre); transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(224, 119, 58, .6); }
.btn:hover::after { transform: translateX(4px); }
.defiler {
  position: absolute; z-index: 4; right: 36px; bottom: calc(5vh + 28px);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--texte-2);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px;
}
.defiler::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--texte-2), transparent); animation: tombe 2s ease-in-out infinite; }
@keyframes tombe { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
section { padding: 130px 0; position: relative; }
.etiquette {
  display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
}
.etiquette::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -.02em;
}
.entete-section { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; }

/* Filtres */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; }
.filtres button {
  background: transparent; border: 1px solid var(--ligne); color: var(--texte-2);
  padding: 9px 18px; border-radius: 999px; font: 500 13px var(--sans); letter-spacing: .06em;
  cursor: pointer; transition: .25s;
}
.filtres button:hover { border-color: var(--texte-2); color: var(--texte); }
.filtres button.actif { background: var(--texte); border-color: var(--texte); color: var(--noir); }

/* Grille projets */
.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
.carte { text-decoration: none; display: block; }
.carte .vignette {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--rayon); background: var(--noir-3);
}
.carte img {
  width: 100%; height: 100%; object-fit: cover; color: transparent;
  filter: brightness(.72) saturate(.9);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s;
}
.carte:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.05); }
.carte .vignette::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55));
  pointer-events: none;
}
.carte .lecture {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 78px; height: 78px;
  transform: translate(-50%, -50%) scale(.8); opacity: 0;
  border-radius: 50%; border: 1px solid rgba(239, 230, 216, .7);
  backdrop-filter: blur(6px); background: rgba(13, 11, 9, .25);
  display: grid; place-items: center; transition: .4s;
}
.carte:hover .lecture { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.carte .lecture svg { width: 20px; margin-left: 4px; fill: var(--texte); }
.carte .badge {
  position: absolute; z-index: 2; top: 16px; left: 16px;
  background: rgba(13, 11, 9, .6); backdrop-filter: blur(6px); color: var(--texte);
  border: 1px solid var(--ligne);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.carte h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-top: 20px; line-height: 1.15; transition: color .25s; }
.carte:hover h3 { color: var(--ambre); }
.carte p { color: var(--gris); font-size: 15.5px; margin-top: 4px; }
.carte.large { grid-column: 1 / -1; }
.carte.large .vignette { aspect-ratio: 2.39 / 1; }
.carte.large h3 { font-size: 36px; }
.vide { color: var(--gris); padding: 40px 0; }

/* Services */
.services { background: var(--noir-2); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.liste-services { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--ligne); }
.service { padding: 36px 30px 10px 0; transition: background .3s; }
.service + .service { padding-left: 30px; border-left: 1px solid var(--ligne); }
.service .num { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 18px; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; margin: 12px 0 12px; }
.service p { color: var(--gris); font-size: 15.5px; }

/* À propos */
.apropos .grille-apropos { display: grid; grid-template-columns: 5fr 6fr; gap: 84px; align-items: center; }
.apropos .photo { position: relative; }
.apropos .photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon);
  filter: saturate(.85) contrast(1.05);
}
.apropos .photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid var(--orange); border-radius: var(--rayon); z-index: -1; opacity: .7;
}
.apropos .texte p { margin-top: 20px; color: var(--texte-2); font-size: 18px; }
.apropos .infos { display: flex; gap: 48px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--ligne); flex-wrap: wrap; }
.apropos .infos strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 40px; color: var(--ambre); line-height: 1.05; }
.apropos .infos span { font-size: 13px; letter-spacing: .06em; color: var(--gris); }

/* Témoignages */
.temoignages { background: var(--noir-2); border-top: 1px solid var(--ligne); }
.liste-avis { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 50px; }
.avis { background: var(--noir-3); border: 1px solid var(--ligne); padding: 34px; border-radius: var(--rayon); }
.avis blockquote { font-family: var(--serif); font-weight: 300; font-size: 21px; line-height: 1.45; }
.avis blockquote::before { content: "“"; display: block; font-size: 60px; line-height: .6; color: var(--orange); margin-bottom: 10px; }
.avis cite { display: block; margin-top: 22px; font-style: normal; font-weight: 600; }
.avis cite span { display: block; font-weight: 400; color: var(--gris); font-size: 14px; }

/* Contact */
.contact { border-top: 1px solid var(--ligne); }
.contact .grille-contact { display: grid; grid-template-columns: 4fr 6fr; gap: 84px; }
.contact .intro { margin-top: 20px; color: var(--texte-2); }
.contact .coord { margin-top: 34px; display: grid; gap: 20px; }
.contact .coord a, .contact .coord div { text-decoration: none; display: flex; gap: 14px; align-items: center; font-size: 17px; }
.contact .coord svg { width: 20px; height: 20px; flex: none; stroke: var(--orange); fill: none; stroke-width: 1.6; }
.contact .coord a:hover { color: var(--ambre); }
.contact .coord small { color: var(--gris); }
form .ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-bottom: 8px; }
form .champ { margin-bottom: 20px; }
form input, form select, form textarea {
  width: 100%; padding: 15px 16px; border-radius: var(--rayon);
  border: 1px solid var(--ligne); background: var(--noir-2); color: var(--texte);
  font: 16px var(--sans); transition: border-color .2s, background .2s;
}
form input::placeholder, form textarea::placeholder { color: #5f554c; }
form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
form select option { background: var(--noir-2); }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--orange); background: var(--noir-3); }
form textarea { min-height: 150px; resize: vertical; }
.cache { display: none; }

/* Pied de page */
.pied { background: #080706; color: var(--gris); padding: 60px 0 44px; font-size: 14px; border-top: 1px solid var(--ligne); }
.pied .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pied img { height: 40px; width: auto; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--texte); }

/* ---------- Page projet ---------- */
.page-projet { padding-top: 130px; }
.retour { display: inline-flex; gap: 8px; text-decoration: none; color: var(--gris); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 30px; }
.retour:hover { color: var(--texte); }
.projet-titre { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 40px; }
.projet-titre h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 6.5vw, 92px); line-height: 1; letter-spacing: -.025em; }
.meta { display: flex; gap: 40px; flex-wrap: wrap; }
.meta div span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.meta div strong { font-weight: 500; }
.lecteur { aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: #000; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
.lecteur iframe { width: 100%; height: 100%; border: 0; }
.projet-texte { max-width: 720px; margin: 64px auto 0; font-size: 19px; color: var(--texte-2); }
.projet-texte p + p { margin-top: 18px; }
.lite-yt { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.lite-yt img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: filter .4s; }
.lite-yt:hover img { filter: brightness(1); }
.lite-yt .lecture, .lite-yt:hover .lecture {
  position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(239, 230, 216, .8); background: rgba(13, 11, 9, .35);
  backdrop-filter: blur(6px); display: grid; place-items: center; transition: transform .35s, background .35s;
}
.lite-yt:hover .lecture { transform: translate(-50%, -50%) scale(1.08); background: var(--orange); border-color: var(--orange); }
.lite-yt .lecture svg { width: 24px; margin-left: 5px; fill: var(--texte); }
.couverture-projet { width: 100%; border-radius: var(--rayon); }
.grille.un { grid-template-columns: 1fr; }

/* Galerie photo */
.galerie { columns: 3 320px; column-gap: 14px; }
.galerie-item {
  display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden;
  border-radius: var(--rayon); background: var(--noir-3); cursor: zoom-in;
}
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s; filter: brightness(.92); }
.galerie-item:hover img { transform: scale(1.04); filter: brightness(1); }
.visionneuse {
  position: fixed; inset: 0; z-index: 300; background: rgba(5, 4, 3, .97);
  display: grid; place-items: center; padding: 56px 72px;
}
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain; border-radius: 3px; box-shadow: 0 30px 120px rgba(0, 0, 0, .8); }
.visionneuse button {
  position: absolute; background: none; border: 1px solid var(--ligne); color: var(--texte);
  width: 52px; height: 52px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; transition: .25s;
}
.visionneuse button:hover { background: var(--texte); color: var(--noir); }
.v-fermer { top: 20px; right: 20px; }
.v-prec { left: 16px; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.v-compteur { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: var(--gris); }

/* Pages simples (merci, 404) */
.simple { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 24px 80px; }
.simple h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 6vw, 72px); line-height: 1.05; }
.simple p { margin: 20px auto 36px; max-width: 460px; color: var(--texte-2); }
.pied-zones { flex-basis: 100%; order: 3; font-size: 13px; color: #6d6258; }
.pied-liens { display: flex; gap: 18px; flex-wrap: wrap; }

.appel {
  margin: 100px 0 0; background: var(--noir-2); border: 1px solid var(--ligne); border-radius: 14px;
  padding: 60px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.appel h2 { font-size: clamp(30px, 3.8vw, 48px); }
.suivant { margin-top: 100px; }

/* Apparition */
.revele { opacity: 0; transform: translateY(30px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.revele.vu { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  section { padding: 90px 0; }
  .header, .header.solide { padding: 13px 20px; }
  .header.solide { backdrop-filter: none; background: rgba(13, 11, 9, .96); }
  .logo img { height: 38px; }
  .burger { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; height: 100vh; background: var(--noir); flex-direction: column; justify-content: center; gap: 30px;
    transform: translateY(-100%); visibility: hidden;
    transition: transform .5s cubic-bezier(.7, 0, .2, 1), visibility .5s;
  }
  .nav.ouvert { transform: none; visibility: visible; }
  .nav a { font: 300 34px var(--serif); letter-spacing: 0; text-transform: none; }
  .nav .cta { font: 600 15px var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; }
  .menu-ouvert .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-ouvert .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .hero::before { border-width: 3vh 0; animation: none; }
  .hero-contenu { padding-bottom: 12vh; }
  .grille { grid-template-columns: 1fr; }
  .carte.large .vignette { aspect-ratio: 16 / 9; }
  .carte.large h3 { font-size: 28px; }
  .liste-services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--ligne); }
  .apropos .grille-apropos, .contact .grille-contact { grid-template-columns: 1fr; gap: 60px; }
  .apropos .photo { max-width: 420px; }
  .projet-titre { grid-template-columns: 1fr; }
  .appel { padding: 38px 28px; }
  .defiler { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .liste-services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0 8px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--ligne); }
  form .ligne { grid-template-columns: 1fr; gap: 0; }
  .sur-titre { letter-spacing: .18em; font-size: 11px; }
  .visionneuse { padding: 60px 8px; }
  .v-prec, .v-suiv { top: auto; bottom: 10px; transform: none; }
  .galerie { columns: 2 140px; column-gap: 8px; }
  .galerie-item { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .revele { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  body::after, .hero-media, .hero::before, .sur-titre::before { animation: none; }
}
