/* style.css — cleaned & organized */

/* =========================
   Variables / Base
========================= */
:root{
  --black: #0e0e0e;
  --white: #f2f2f2;

  --red: #7a1f1f;
  --red-hover: #ac2929;

  --max: 1300px;
  --pad: 20px;

  /* Projects */
  --proj-radius: 22px;
  --proj-gap: 14px;
  --proj-thumb-h: 220px;
  --proj-context-h: 90px;
  --grain-opacity: 0.18;
  --grain-size: 140px;
  --red-filter: brightness(0) saturate(100%) invert(16%) sepia(46%) saturate(2580%) hue-rotate(337deg) brightness(92%) contrast(96%);
  --nav-h: 84px;
}

/* =========================
   Reset
========================= */
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
html, body{ scroll-behavior: smooth; }
[id]{ scroll-margin-top: var(--nav-h); }
body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% -10%, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 40%, rgba(0,0,0,0) 80%),
    linear-gradient(180deg, rgba(255,255,255,.018) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0) 70%, rgba(255,255,255,.018) 100%);
  background-repeat: no-repeat;
  background-size: 200% 200%;
  background-position: center;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='.35'/></svg>");
  background-repeat: repeat;
  background-size: var(--grain-size) var(--grain-size);
  opacity: var(--grain-opacity);
  mix-blend-mode: soft-light;
}
h1,h2,h3{ font-family:"DM Serif Display", serif; font-weight:400; }
a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font: inherit; }

/* =========================
   Helpers / Layout
========================= */
.section{
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px var(--pad);
  background: transparent;
}
.muted{ opacity: .75; }

/* =========================
   Buttons
========================= */
.btn,
.hero-btn,
.nav-cta,
.btn--pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  background: var(--red);
  color: var(--white);

  border-radius: 999px;
  padding: 12px 18px;

  font-weight: 600;
  letter-spacing: .01em;

  cursor:pointer;
  transition: background 160ms ease, transform 140ms ease;
  will-change: transform;
}
.btn:hover,
.hero-btn:hover,
.nav-cta:hover,
.btn--pill:hover{
  background: var(--red-hover);
  transform: translateY(-1px);
}
.btn:active,
.hero-btn:active,
.nav-cta:active,
.btn--pill:active{
  transform: translateY(0);
}
.btn--secondary{
  background: var(--white);
  color: var(--black);
}
.btn--secondary:hover{ background: rgba(242,242,242,.80); }
.btn--outline{ background: transparent; }
.btn--outline:hover{ background: var(--red-hover); }
.btn--full{ width: 100%; justify-content: center; padding: 16px 18px; margin-top: 26px; }

/* =========================
   Nav
========================= */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 50;

  background: rgba(14,14,14,1);
  backdrop-filter: blur(10px);
  transition: background 220ms ease;
  border-bottom: 1px solid #1f1f1f;
}
.nav.is-solid{ background: rgba(14,14,14,1); }

.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.logo{
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 230px;
  overflow: hidden;
}
.logo img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}
.nav-links{
  list-style:none;
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a:not(.nav-cta){
  display:inline-block;
  padding: 10px 6px;
  font-size: 16px;
  color: var(--white);
  transition: color 220ms ease, opacity 220ms ease;
}
.nav-links a:not(.nav-cta):hover{
  color: var(--red-hover);
  opacity: 1;
}
.nav-cta{ padding: 10px 16px; font-size: 14px; }

/* =========================
   Hero
========================= */
.hero{
  height: 100svh;        /* mobile-friendly viewport */
  min-height: 100vh;     /* fallback */
  position: relative;
  display:flex;
  align-items:center;
  padding: 0 var(--pad);
  overflow:hidden;
}
.hero-media{
  position:absolute;
  inset:0;
  background: var(--black);
  overflow:hidden;       /* empêche tout débordement */
  pointer-events: none;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.70);
  pointer-events: none;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
}
.hero-content h2{ order: 1; }
.hero-content .hero-name{ order: 2; }
.hero-content .hero-actions{ order: 3; }
.hero h1,
.hero h2{
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero p{
  font-size: 18px;
  opacity: .85;
  max-width: 760px;
}
.hero .hero-name{
  font-size: 22px;
  opacity: .85;
  max-width: 760px;
  font-weight: 400;
  margin: 0;
}
.hero-actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* IMPORTANT : force la vidéo à remplir le hero et crop si besoin */
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;     /* remplit l’écran, crop les bords */
  object-position: center;
  transform: translateZ(0); /* évite certains micro bugs de rendu */
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.hero-video.is-ready{ opacity: 1; }
/* =========================
   Unfolds (scroll story)
========================= */
.unfolds{
  height: 700vh;
  position: relative;
  --ui: 0;
}
.unfolds-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.unfolds-bg{ position:absolute; inset:0; background: var(--white); }
.unfolds-text{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  padding: 0 var(--pad);
}
.phase{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%) translateY(var(--y, 0px));
  opacity: var(--o, 0);
  text-align:center;
  font-family:"DM Serif Display", serif;
  font-size: clamp(2.0rem, 4.2vw, 4.0rem);
  line-height: 1.05;
  max-width: 980px;
  color: rgb(
    calc(14 + (255 - 14) * var(--ui)),
    calc(14 + (255 - 14) * var(--ui)),
    calc(14 + (255 - 14) * var(--ui))
  );
  transition: opacity 420ms ease, transform 700ms cubic-bezier(.22,.61,.36,1), color 180ms linear;
 will-change: transform, opacity;
}
.scroll-hint{
  position: fixed;
  left: 50%;
  top: var(--shy, 120px);
  width: 26px;
  height: 42px;
  transform: translateX(-50%);
  border: 2px solid #0e0e0e;
  border-radius: 999px;
  opacity: .7;
  color: #0e0e0e;
  pointer-events: none;
  z-index: 5;
}
.scroll-hint::before{
  content:"";
  position:absolute;
  left:50%;
  top:10px;
  width:4px;
  height:8px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  animation: scrollDot 1.4s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ transform: translate(-50%, 0); opacity:.2; }
  40%{ opacity: .9; }
  100%{ transform: translate(-50%, 10px); opacity:0; }
}

/* HUD */
.hud{
  position:absolute; inset:0;
  pointer-events:none;
  color: rgb(
    calc(14 + (255 - 14) * var(--ui)),
    calc(14 + (255 - 14) * var(--ui)),
    calc(14 + (255 - 14) * var(--ui))
  );
}
.hud-rec{
  position:absolute;
  top: 96px; left: 24px;
  display:flex; align-items:center; gap:10px;
  opacity:0; transform: scale(0.5);
}
.hud-rec .dot{
  width:12px; height:12px; border-radius:999px;
  background: var(--red);
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
.hud-rec .rec-text{ letter-spacing:.14em; font-size: 14px; }

.hud-timer{
  position:absolute;
  top:96px; left:50%;
  transform: translateX(-50%);
  opacity:0;
  font-variant-numeric: tabular-nums;
  font-size:14px;
}
.hud-battery{
  position:absolute;
  top:96px; right:24px;
  display:flex; align-items:center; gap:10px;
  opacity:0;
  font-variant-numeric: tabular-nums;
  font-size:14px;
}
.battery-icon{
  width:30px; height:16px;
  border:2px solid currentColor;
  border-radius:3px;
  position:relative;
}
.battery-icon::after{
  content:"";
  position:absolute;
  right:-6px; top:50%;
  transform: translateY(-50%);
  width:4px; height:8px;
  border-radius:0 2px 2px 0;
  background: currentColor;
}
.battery-fill{
  position:absolute;
  left:3px; top:3px; bottom:3px;
  width: calc(100% - 6px);
  background: currentColor;
  transform-origin:left;
  transform: scaleX(1);
}

/* Side film guides */
.film{
  position:absolute;
  top:144px; bottom:80px;
  width:38px;
  opacity:0;
  transform: scaleY(0);
  transform-origin: top;
}
.film::before{
  content:"";
  position:absolute; inset:0;
  border-left:3px solid currentColor;
  border-right:3px solid currentColor;
  opacity:.9;
}
.film-left{ left:24px; }
.film-right{ right:24px; }

/* Rule of thirds grid */
.grid{ position:absolute; inset:0; }
.grid .v, .grid .h{
  position:absolute;
  background: currentColor;
  opacity:0;
  will-change: transform, opacity;
}
.grid .v{
  top:0; bottom:0; width:2px;
  transform-origin: top;
  transform: scaleY(0);
}
.grid .v1{ left:33.33%; }
.grid .v2{ left:66.66%; }
.grid .h{
  left:0; right:0; height:2px;
  transform-origin: left;
  transform: scaleX(0);
}
.grid .h1{ top:33.33%; }
.grid .h2{ top:66.66%; }

/* Focus corners */
.focus{
  position:absolute;
  opacity:0;
  transform: scale(0);
  --s:24px;
  background:
    linear-gradient(currentColor,currentColor) left top/var(--s) 2px no-repeat,
    linear-gradient(currentColor,currentColor) left top/2px var(--s) no-repeat,
    linear-gradient(currentColor,currentColor) right top/var(--s) 2px no-repeat,
    linear-gradient(currentColor,currentColor) right top/2px var(--s) no-repeat,
    linear-gradient(currentColor,currentColor) left bottom/var(--s) 2px no-repeat,
    linear-gradient(currentColor,currentColor) left bottom/2px var(--s) no-repeat,
    linear-gradient(currentColor,currentColor) right bottom/var(--s) 2px no-repeat,
    linear-gradient(currentColor,currentColor) right bottom/2px var(--s) no-repeat;
}
.focus-a{ top:160px; left:112px; width:110px; height:110px; }
.focus-b{ bottom:112px; right:112px; width:140px; height:140px; }

/* Center crosshair */
.crosshair{
  position:absolute;
  left:50%; top:50%;
  width:240px; height:240px;
  transform: translate(-50%,-50%) scale(0);
  opacity:0;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,0);
}
.crosshair::before, .crosshair::after{
  content:"";
  position:absolute;
  background: currentColor;
  opacity:.28;
}
.crosshair::before{ left:50%; top:0; bottom:0; width:2px; transform: translateX(-50%); }
.crosshair::after{ top:50%; left:0; right:0; height:2px; transform: translateY(-50%); }

/* Timeline */
.timeline{
  position:absolute;
  left:112px; right:112px;
  bottom:32px;
  height:10px;
  opacity:0;
  transform: scaleX(0);
  transform-origin:left;
}
.tl-base{ position:absolute; inset:0; background: currentColor; opacity:.65; }
.tl-left,.tl-right{ position:absolute; top:-4px; width:2px; height:18px; background: currentColor; opacity:.9; }
.tl-left{ left:0; } .tl-right{ right:0; }
.tl-play{ position:absolute; top:-4px; width:3px; height:18px; background: var(--red); left:0%; }

.hud-meta{
  position:absolute;
  left:112px;
  bottom:78px;
  display:flex;
  gap:16px;
  opacity:0;
  font-size:12px;
  letter-spacing:.02em;
}
.hud-frames{
  position:absolute;
  right:112px;
  bottom:78px;
  opacity:0;
  font-size:12px;
  font-variant-numeric: tabular-nums;
  letter-spacing:.02em;
}

/* Outer corners */
.corner{
  position:absolute;
  width:64px; height:64px;
  opacity:0;
  transform: scale(0);
  border-color: currentColor;
  border-style: solid;
}
.c-tl{ top:0; left:0; border-width: 3px 0 0 3px; }
.c-tr{ top:0; right:0; border-width: 3px 3px 0 0; }
.c-bl{ bottom:0; left:0; border-width: 0 0 3px 3px; }
.c-br{ bottom:0; right:0; border-width: 0 3px 3px 0; }

/* =========================
   Projects (homepage carousel)
========================= */
.projects-showcase{
  text-align: center;
  padding: 100px 0;
}
.projects-title{ margin-bottom: 100px; }
.projects-title h2{
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 12px;
}
.projects-title p{
  font-size: 18px;
  opacity: .85;
  max-width: 760px;
  margin: 0 auto;
}
.projects-carousel{ display:flex; justify-content:center; position: relative; }
.car-viewport{
  width: min(2000px, calc(100% - 80px));
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 100px;
}
.car-track{
  display: flex;
  align-items: stretch;
  gap: var(--proj-gap);
  width: 100%;
  justify-content: center;
  padding: 0;
  will-change: transform;
  transform: translateX(0);
}
.car-track.is-single{
  justify-content: center;
  width: 100%;
}
.projects-carousel .work-card{
  flex: 0 0 calc((100% - (var(--proj-gap) * 2)) / 3);
  max-width: calc((100% - (var(--proj-gap) * 2)) / 3);

  position: relative;
  height: auto;

  border-radius: var(--proj-radius);
  overflow: visible;

  background: transparent;
  border: none;
  padding: 0;

  cursor: pointer;
}
.projects-carousel .work-card.reveal{
  opacity: 1;
  transform: none;
  filter: none;
}
.projects-carousel .work-card:focus-visible{
  outline: 2px solid rgba(122,31,31,.85);
  outline-offset: 4px;
}
.projects-carousel .work-thumb{
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--proj-radius);
  overflow: hidden;
  z-index: 10;
}

.projects-carousel .work-thumb-media{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 520ms cubic-bezier(.22,.61,.36,1);
  z-index: 1;
}
.projects-carousel .work-card:hover .work-thumb-media{
  transform: scale(1.08);
}
.projects-carousel .work-thumb-border{
  position: absolute;
  inset: 0;
  border-radius: var(--proj-radius);
  pointer-events: none;
  z-index: 20;
  border: 1px solid rgba(255,255,255,.14);
}
.projects-carousel .work-card:hover .work-thumb-border{
  border: 2px solid var(--red);
}
.projects-carousel .work-overlay{
  position: absolute;
  inset: 0;                 /* couvre toute l'image */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* texte collé en bas */
  align-items: flex-start;
  gap: 6px;

  padding: 14px 18px 18px;

  /* Dégradé sur toute la hauteur de l'image */
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.60) 30%,
    rgba(0,0,0,0) 60%
  );

  border-radius: 0 0 var(--proj-radius) var(--proj-radius);
  overflow: hidden;

  pointer-events: none;
  z-index: 10;
}

.projects-carousel .work-kicker{
  color: var(--red);
  font-size: 16px;       /* un poil plus gros */
  font-weight: 700;      /* bold */
  line-height: 1.1;
  letter-spacing: .03em; /* plus “marqué” */
  text-shadow: 0 2px 10px rgba(0,0,0,.75); /* aide à la lisibilité */
}
.projects-carousel .work-name{
  font-family:"DM Serif Display", serif;
  font-size: 28px;
  line-height: 1.05;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  display: webkit-box ;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.projects-carousel .work-badge,
.projects-carousel .work-desc{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  box-shadow: none;
  font-size: 12.5px;
  pointer-events: none;
}

.projects-carousel .work-context{
  position: absolute;
  width: min(520px, calc(100%));          /* centré et plus petit que l’image */

  text-align: center;
  height: var(--proj-context-h);

  padding: 25px 16px;
  border-radius: 0 0 18px 18px;            /* coins haut carrés, bas arrondis */
  background: #7a1f1f;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,.85);

  opacity: 0;
  transform: translateY(-120px);
  transition: opacity 200ms ease, transform 360ms cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  z-index: 5;
}

.projects-carousel .work-card:hover .work-context{
  opacity: 1;
  transform: translateY(-18px);
}
.projects-carousel .work-thumb::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:64px;
  height:64px;
  transform: translate(-50%,-50%) scale(.96);
  border-radius:999px;
  background: var(--red);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events:none;
  z-index: 12;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.projects-carousel .work-thumb::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-38%,-50%);
  width:0;
  height:0;
  border-left: 18px solid rgba(255,255,255,.95);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  opacity: 0;
  pointer-events:none;
  z-index: 13;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.projects-carousel .work-card:hover .work-thumb::after,
.projects-carousel .work-card:hover .work-thumb::before{
  opacity: 1;
}
.projects-carousel .work-card:hover .work-thumb::after{
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--red);
}
.projects-carousel .work-card:hover .work-thumb::before{
  transform: translate(-38%, -50%) scale(1.08);
}
.car-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: auto;
  height: auto;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;

  color: rgba(255,255,255,.95);
  font-size: 44px;          /* taille de la flèche */
  line-height: 1;

  cursor: pointer;
  z-index: 40;

  display:flex;
  align-items:center;
  justify-content:center;

  transition: opacity 160ms ease, transform 160ms ease;
}

.car-arrow:hover{
  color: #ac2929;
}

.car-arrow:active{
  transform: translateY(-50%) scale(.98);
}
.car-arrow:focus-visible{
  outline: 2px solid rgba(122,31,31,.85);
  outline-offset: 4px;
}
.car-arrow--left{ left: -8px; }
.car-arrow--right{ right: -8px; }
.projects-cta{
  margin: 44px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* =========================
   Réalisations: media toggle
========================= */
.media-toggle{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.media-tab{
  min-width: 180px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease, color 160ms ease;
}
.media-tab:hover{ border-color: rgba(255,255,255,.28); color: #fff; }
.media-tab:active{ transform: translateY(1px); }
.media-tab.is-active{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.media-tab:focus-visible{
  outline: 2px solid rgba(122,31,31,.85);
  outline-offset: 3px;
}
.realisations-photos{ display: none; }
.realisations-media.is-photos .realisations-photos{ display: block; }
.realisations-media.is-photos .realisations-videos{ display: none; }

/* Photo catalogue (replaces carousel) */
.projects-photos{
  margin-top: 50px;
  padding-top: 70px;
}
.photo-catalogue{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}
.photo-catalogue::after{
  content:"";
  position:absolute;
  right: -120px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 1px solid rgba(122,31,31,.22);
  opacity: .35;
  pointer-events: none;
}
.photo-catalogue-head{
  text-align: center;
  margin-bottom: 28px;
}
.photo-catalogue-head h3{
  font-family:"DM Serif Display", serif;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  margin-bottom: 8px;
}
.photo-grid{
  position: relative;
  --cols: 3;
  --gap: 18px;
  min-height: 120px;
}
.photo-card{
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transition: transform 240ms cubic-bezier(.22,.61,.36,1), border-color 200ms ease, box-shadow 200ms ease;
  width: calc((100% - (var(--gap) * (var(--cols) - 1))) / var(--cols));
  cursor: pointer;
}
.photo-card::before{
  display: none;
}
.photo-card::after{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.photo-card:hover{
  transform: translateY(-4px);
  border-color: rgba(122,31,31,.45);
  box-shadow: 0 26px 70px rgba(0,0,0,.6);
}
.photo-card:focus-visible{
  outline: 2px solid rgba(122,31,31,.85);
  outline-offset: 4px;
}
.photo-card img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.photo-cat-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}
.photo-card.is-landscape{ aspect-ratio: 16 / 9; }
.photo-card.is-portrait{ aspect-ratio: 3 / 4; }

/* Photo modal */
.photo-modal{
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,6,6,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.photo-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}
.photo-modal-dialog{
  position: relative;
  width: min(1100px, 92vw);
  max-height: 86vh;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 260px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  z-index: 2;
}
.photo-modal-backdrop{
  position: absolute;
  inset: 0;
  z-index: 1;
}
.photo-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
}
.photo-modal-close:focus-visible{
  outline: 2px solid rgba(122,31,31,.85);
  outline-offset: 3px;
}
.photo-modal-media{
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.photo-modal-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-modal-side{
  background: #101010;
  border-left: 1px solid rgba(255,255,255,.08);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.photo-modal-title{
  font-family:"DM Serif Display", serif;
  font-size: 22px;
}
.photo-modal-text{
  font-size: 14px;
  line-height: 1.6;
}

/* Mobile bottom sheet (projects) */
.work-sheet{
  position: fixed;
  inset: 0;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 200ms ease;
}
.work-sheet.is-open{
  opacity: 1;
  pointer-events: auto;
}
.work-sheet-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}
.work-sheet-panel{
  position: relative;
  width: min(620px, 100%);
  background: #121212;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px 24px 0 0;
  padding: 20px 22px 26px;
  box-shadow: 0 -24px 60px rgba(0,0,0,.55);
  transform: translateY(110%);
  transition: transform 260ms cubic-bezier(.22,.61,.36,1);
  z-index: 2;
}
.work-sheet.is-open .work-sheet-panel{
  transform: translateY(0);
}
.work-sheet-close{
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 20px;
  cursor: pointer;
}
.work-sheet-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.work-sheet-title{
  margin-top: 14px;
  font-family:"DM Serif Display", serif;
  font-size: 26px;
  line-height: 1.1;
}
.work-sheet-text{
  margin-top: 10px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.5;
}
.work-sheet-watch{
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  justify-content: center;
}

/* =========================
   Méthode (timeline premium)
========================= */
.method{
  background: var(--white);
  color: var(--black);
  padding: 120px 0 140px;
}

.method-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.method-header{
  text-align: center;
  margin-bottom: 70px;
}

.method-header h2{
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.method-steps-nav{
  margin-top: 10px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .25em;
  color: rgba(14,14,14,.35);
  user-select: none;
}

/* Flow container + vertical line */
.method-flow{
  position: relative;
  display: grid;
  gap: 120px;
  padding-top: 10px;
  --line-progress: 0;
}

.method-flow::before{
  content:"";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(14,14,14,.14);
  transform: translateX(-50%);
}
.method-flow::after{
  content:"";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(122,31,31,.55);
  transform: translateX(-50%) scaleY(var(--line-progress));
  transform-origin: top;
  box-shadow: 0 0 12px rgba(122,31,31,.18);
}

/* Each step = 3 columns: left / middle / right */
.mstep{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  column-gap: 56px;
  align-items: center;
}

/* Reverse layout: media left + text right (like your mock) */
.mstep--reverse{
  grid-template-areas: "media mid text";
}
.mstep--reverse .mstep-media{ grid-area: media; }
.mstep--reverse .mstep-mid{ grid-area: mid; }
.mstep--reverse .mstep-text{ grid-area: text; }

.mstep:not(.mstep--reverse){
  grid-template-areas: "text mid media";
}
.mstep:not(.mstep--reverse) .mstep-text{ grid-area: text; }
.mstep:not(.mstep--reverse) .mstep-mid{ grid-area: mid; }
.mstep:not(.mstep--reverse) .mstep-media{ grid-area: media; }

/* Middle column dot + small horizontal connectors */
.mstep-mid{
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

.mstep-dot{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(122,31,31,.55);
  box-shadow: 0 0 0 6px rgba(122,31,31,.12);
  position: relative;
  transform: scale(0);
  opacity: 0;
  transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 200ms ease;
}

.mstep-dot::before,
.mstep-dot::after{
  content:"";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: rgba(14,14,14,.16);
  transform: translateY(-50%);
}

.mstep-dot::before{ right: 100%; margin-right: 10px; }
.mstep-dot::after{ left: 100%;  margin-left: 10px; }

/* Media card */
.mstep-media{
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(14,14,14,.06);
  border: 1px solid rgba(14,14,14,.10);
  box-shadow: 0 22px 60px rgba(14,14,14,.18);
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.22,.61,.36,1);
}

.mstep-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Text block */
.mstep-text{
  max-width: 560px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(.22,.61,.36,1);
}
 
.mstep.is-in .mstep-dot{
  transform: scale(1);
  opacity: 1;
}
.mstep.is-in .mstep-media,
.mstep.is-in .mstep-text{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mstep-num{
  font-family:"DM Serif Display", serif;
  font-size: 84px;
  line-height: 1;
  color: rgba(122,31,31,.16);
  margin: 0 0 6px;
}

.mstep-text h3{
  margin: 0 0 16px;
  font-family:"DM Serif Display", serif;
  font-size: 44px;
  line-height: 1.05;
}

.mstep-text p{
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(14,14,14,.78);
}

.mstep-sep{
  margin: 20px 0 14px;
  height: 1px;
  background: rgba(14,14,14,.12);
}

.mstep-deliv{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(14,14,14,.70);
}

.mstep-deliv-label{
  color: rgba(14,14,14,.85);
  font-weight: 600;
}

/* =========================
   Filters + Realisations grid
========================= */
.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
.photo-filters{
  margin: 10px auto 22px;
}
.chip{
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  opacity: .95;
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}
.chip:hover{
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
}
.chip:active{ transform: translateY(0); }
.chip.is-active{
  background: var(--red-hover);
  border-color: var(--red-hover);
}
.works-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.work-card--grid{
  grid-column: span 4;
  width: 100%;
  height: auto;
  flex: initial;
}
.works-grid .work-card--grid{
  position: relative;
  border-radius: var(--proj-radius);
  overflow: visible;
  background: transparent;
  border: none;
  padding: 0;
  padding-bottom: var(--proj-context-h);
  cursor: pointer;
  z-index: 0;
}
.works-grid .work-card--grid:hover,
.works-grid .work-card--grid:focus-visible,
.works-grid .work-card--grid:active{
  z-index: 2;
}
.works-grid .work-thumb{
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--proj-radius);
  overflow: hidden;
  z-index: 12;
}
.works-grid .work-thumb-media{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #111;
  transform: scale(1);
  transition: transform 520ms cubic-bezier(.22,.61,.36,1);
  z-index: 1;
}
.works-grid .work-thumb-border{
  position: absolute;
  inset: 0;
  border-radius: var(--proj-radius);
  pointer-events: none;
  z-index: 20;
  border: 1px solid rgba(255,255,255,.14);
}
.works-grid .work-card--grid:hover .work-thumb-media{
  transform: scale(1.06);
}
.works-grid .work-card--grid:hover .work-thumb-border{
  border: 2px solid var(--red);
}
.works-grid .work-overlay{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: var(--proj-context-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 18px 18px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.60) 30%,
    rgba(0,0,0,0) 60%
  );
  border-radius: 0 0 var(--proj-radius) var(--proj-radius);
  overflow: hidden;
  pointer-events: none;
  z-index: 18;
}
.works-grid .work-kicker{
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .03em;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}
.works-grid .work-name{
  font-family:"DM Serif Display", serif;
  font-size: 24px;
  line-height: 1.05;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.works-grid .work-desc{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  box-shadow: none;
  font-size: 12.5px;
  pointer-events: none;
}
.works-grid .work-context{
  position: absolute;
  width: min(520px, calc(100% - 24px));
  left: 50%;
  bottom: 0;
  text-align: left;
  height: var(--proj-context-h);
  padding: 18px 16px 10px;
  border-radius: 0 0 18px 18px;
  background: #7a1f1f;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,.85);
  opacity: 0;
  transform: translate(-50%, -120px);
  transition: opacity 200ms ease, transform 360ms cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  z-index: 8;
}
.works-grid .work-card--grid:hover .work-context{
  opacity: 1;
  transform: translate(-50%, -4px);
}
.works-grid .work-card--grid:active .work-context,
.works-grid .work-card--grid:focus-visible .work-context{
  opacity: 1;
  transform: translate(-50%, -4px);
}
.works-grid .work-thumb::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:56px;
  height:56px;
  transform: translate(-50%,-50%) scale(.96);
  border-radius:999px;
  background: var(--red);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events:none;
  z-index: 12;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.works-grid .work-thumb::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-38%,-50%);
  width:0;
  height:0;
  border-left: 16px solid rgba(255,255,255,.95);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0;
  pointer-events:none;
  z-index: 13;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.works-grid .work-card--grid:hover .work-thumb::after,
.works-grid .work-card--grid:hover .work-thumb::before{
  opacity: 1;
}
.works-grid .work-card--grid:active .work-thumb::after,
.works-grid .work-card--grid:active .work-thumb::before,
.works-grid .work-card--grid:focus-visible .work-thumb::after,
.works-grid .work-card--grid:focus-visible .work-thumb::before{
  opacity: 1;
}
.works-grid .work-card--grid:hover .work-thumb::after{
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--red);
}
.works-grid .work-card--grid:hover .work-thumb::before{
  transform: translate(-38%, -50%) scale(1.08);
}
.works-grid .work-card--grid:active .work-thumb::after,
.works-grid .work-card--grid:focus-visible .work-thumb::after{
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--red);
}
.works-grid .work-card--grid:active .work-thumb::before,
.works-grid .work-card--grid:focus-visible .work-thumb::before{
  transform: translate(-38%, -50%) scale(1.08);
}

/* =========================
   Modal video
========================= */
.modal{ position: fixed; inset: 0; display: none; z-index: 100; }
.modal.is-open{ display:block; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(14,14,14,.75); }
.modal-dialog{
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 90px auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(14,14,14,.92);
  backdrop-filter: blur(10px);
  overflow:hidden;
  padding: 14px;
}
.modal-close{
  position:absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--white);
  cursor:pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}
.modal-close:hover{
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
}
.modal-close:active{ transform: translateY(0); }
.modal-title{ padding: 8px 46px 10px 6px; font-weight: 600; letter-spacing: .01em; }
.video-frame{ width: 100%; aspect-ratio: 16/9; background: var(--black); border-radius: 14px; overflow:hidden; }
.video-frame iframe{ width:100%; height:100%; border:0; display:block; }

/* =========================
   About
========================= */
.about{
  display: block;
}
.about-content{
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  column-gap: 36px;
  align-items: start;
  grid-template-areas:
    "media title"
    "media text"
    "media actions";
}
.about-content h2{ grid-area: title; }
.about-content p{ grid-area: text; }
.about-actions{
  grid-area: actions;
  justify-self: center;
}
.about-media{ grid-area: media; }
.about-media{
  display: flex;
  justify-content: flex-start;
}
.about-photo{
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.about-photo img{
  width: 100%;
  height: auto;
  display: block;
}
.about-content h2{
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  margin-bottom: 12px;
}
.about-content p{
  font-size: 16px;
  line-height: 1.7;
}
.about-actions{
  margin-top: 70px;
  display: flex;
  justify-content: center;
}

/* =========================
   Contact
========================= */
.contact{
  background: transparent;
}
.contact .wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.contact-head{
  text-align: left;
  margin-bottom: 26px;
  max-width: 780px;
}
.contact-head h2{
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  margin-bottom: 8px;
}
.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: start;
}
.contact-form{
  display: grid;
  gap: 16px;
}
.field label{
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(255,255,255,.92);
}
.field input,
.field textarea{
  width: 100%;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.field textarea{ resize: vertical; min-height: 160px; }
.field input:focus,
.field textarea:focus{
  box-shadow: none;
}
.field input::placeholder,
.field textarea::placeholder{
  color: rgba(255,255,255,.45);
}
.contact-form .btn--full{
  margin-top: 10px;
  padding: 14px 18px;
  font-size: 15px;
  border: none;
  box-shadow: none;
}
.contact-form .btn--full:focus,
.contact-form .btn--full:focus-visible{
  outline: none;
  box-shadow: none;
}
.contact-form-status{
  margin: 4px 2px 0;
  min-height: 1.2em;
  font-size: 13px;
  color: rgba(255,255,255,.72);
}
.contact-form-status.is-success{
  color: #8fd6a4;
}
.contact-form-status.is-error{
  color: #ff8b8b;
}
.contact-panel{
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 6px 0 0;
}
.contact-panel h3{
  font-family:"DM Serif Display", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin-bottom: 12px;
}
.contact-links{
  display: grid;
  gap: 14px;
  margin: 26px 0 20px;
}
.contact-link{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.95);
  text-decoration: none;
  font-weight: 600;
}
.contact-link:hover{ color: #fff; }
.contact-link:hover .contact-ico{
  border-color: var(--red-hover);
  background: var(--red-hover);
}
.contact-link:hover .contact-ico svg{
  fill: #f2f2f2;
}
.contact-link:hover .contact-ico img{
  filter: none;
}
.contact-ico{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #f2f2f2;
  font-size: 14px;
}
.contact-ico svg,
.contact-ico img{
  width: 16px;
  height: 16px;
  display: block;
  fill: #f2f2f2;
}
.contact-sep{
  border: none;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 18px 0 12px;
}
.contact-footnote{
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.contact-form :focus-visible{
  outline: 2px solid rgba(122,31,31,.85);
  outline-offset: 3px;
  border-radius: 10px;
}

/* =========================
   Footer
========================= */
.site-footer{
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 100%);
}

.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px var(--pad) 36px;
}

.footer-top{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  column-gap: 36px;
  row-gap: 26px;
  align-items: start;
  margin-bottom: 26px;
}
.footer-logo{
  font-family:"DM Serif Display", serif;
  font-size: 22px;
  letter-spacing: .02em;
}
.footer-desc{
  margin-top: 10px;
  color: rgba(255,255,255,.68);
  max-width: 320px;
}
.footer-cta{ margin-top: 16px; }
.footer-mail{
  color: rgba(255,255,255,.86);
  text-decoration: none;
}
.footer-col .footer-title{
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: rgba(255,255,255,.85);
}
.footer-col ul{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a{
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.footer-col a:hover,
.footer-mail:hover{
  color: var(--red-hover);
}

.footer-contact .contact-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.82);
}
.footer-contact .contact-link:hover{ color: var(--red-hover); }

.footer-bottom{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  color: rgba(255,255,255,.62);
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 18px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.footer-bottom small{
  grid-column: 2;
  justify-self: center;
  font-size: 13px;
}
.footer-bottom a{
  grid-column: 3;
  justify-self: end;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: 13px;
}
.footer-bottom a:hover{ color: var(--red-hover); }

.footer-social{
  display: flex;
  gap: 14px;
}

.footer-social a{
  color: rgba(255,255,255,.70);
  text-decoration: none;
}

.footer-social a:hover{
  color: rgba(255,255,255,.95);
}

@media (max-width: 900px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px){
  .footer-top{
    grid-template-columns: 1fr;
  }
  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}
.social-icons{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.social-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);

  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.social-btn svg,
.social-btn img{
  width: 22px;
  height: 22px;
  display: block;
  fill: #f2f2f2;
  transition: fill 160ms ease;
}

.social-btn:hover{
  transform: translateY(-2px);
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.social-btn:hover svg{
  fill: #f2f2f2;
}
.social-btn:hover img{
  filter: none;
}

/* =========================
   Scroll reveal
========================= */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 900ms cubic-bezier(.22,.61,.36,1),
    transform 900ms cubic-bezier(.22,.61,.36,1),
    filter 900ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, filter;
}
.reveal.is-in{ opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal--slow{ transition-duration: 1200ms; }

/* Responsive */
@media (max-width: 980px){
  /* Projects */
  .car-arrow{ display:none; }
  .car-viewport{ width: calc(100% - 40px); }
  .car-track{ justify-content: flex-start; }
  .projects-carousel .work-card{
    flex: 0 0 80%;
    max-width: 80%;
  }
  :root{ --proj-thumb-h: 300px; --proj-context-h: 96px; }

  /* Photo catalogue */
  .photo-grid{
    --cols: 2;
  }

  /* Réalisations grid */
  .works-grid{ gap: 16px; }
  .work-card--grid{
    grid-column: span 12;
    height: auto;
    aspect-ratio: auto;
  }

  /* Unfolds HUD */
  .film{ display:none; }
  .focus-a,.focus-b{ display:none; }
  .timeline{ left: 24px; right: 24px; }
  .hud-meta{ left: 24px; }
  .hud-frames{ right: 24px; }

  /* Method (legacy layout) */
  .method-step,
  .method-step--reverse{
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 0;
  }
  .method-step--reverse .method-media{ order:1; }
  .method-step--reverse .method-text{ order:2; }
  .method-img{ height: 260px; }
  .method-num{ font-size: 56px; }
  .method-text h3{ font-size: 28px; }
  .method-flow::after{ display:none; }
  .mstep-dot{ opacity: 1; transform: scale(1); }
  .mstep-media,
  .mstep-text{
    opacity: 1;
    transform: none;
  }

  /* About */
  .about-content{ grid-column: span 12; }

  /* Contact */
  .contact-grid{ grid-template-columns: 1fr; gap: 34px; }

}
@media (max-width: 768px){
  html, body{
    overflow-x: hidden;
  }
  .modal.is-open{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
  }
  .modal-dialog{
    margin: 0;
    width: min(980px, calc(100% - 28px));
  }
  .projects-title h2{
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.05;
  }
  .projects-title p{
    font-size: 16px;
    max-width: 90%;
  }

  /* Projects: native horizontal scroll + snap */
  .projects-carousel{ align-items: stretch; }
  .car-viewport{
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 30px 140px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 45px;
    scroll-padding-right: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }
  .car-viewport::-webkit-scrollbar{ display: none; }
  .car-track{
    width: max-content;
    justify-content: flex-start;
    transform: none !important;
    padding-right: 6px;
  }
  .car-viewport.is-single{
    overflow-x: hidden;
  }
  .car-track.is-single{
    width: 100%;
    justify-content: center;
    padding-right: 0;
  }
  .car-track.is-single .work-card{
    flex: 0 0 min(520px, 90vw);
    max-width: min(520px, 90vw);
    min-width: min(520px, 90vw);
  }
  .projects-carousel .work-card{
    flex: 0 0 calc((100vw - 48px - var(--proj-gap)) / 2);
    max-width: calc((100vw - 48px - var(--proj-gap)) / 2);
    min-width: calc((100vw - 48px - var(--proj-gap)) / 2);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .projects-carousel .work-context{
    opacity: 1;
    height: auto;
    min-height: var(--proj-context-h);
    left: 0;
    right: 0;
    bottom: -90px;
    width: auto;
    transform: none;
    transition: none;
    border-radius: 0 0 18px 18px;
    padding-top: 70px;
  }
  .projects-carousel .work-card:hover .work-context{
    opacity: 1;
    transform: none;
  }
  .projects-carousel .work-kicker{ font-size: 14px; }
  .projects-carousel .work-name{ font-size: 22px; }
  .projects-carousel .work-desc{ font-size: 12px; }
  .projects-carousel .work-context{ font-size: 13px; }

  /* Hero type scale */
  .hero h2{
    font-size: clamp(2.5rem, 5.2vw, 2.2rem);
  }
  .hero .hero-name{
    font-size: 18px;
  }

  /* Photo catalogue */
  .photo-grid{
    --cols: 2;
    --gap: 14px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .photo-card{
    border-radius: 14px;
  }
  .photo-cat-badge{
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: .02em;
  }
  .photo-card.span-2{ grid-column: span 1; }
  .photo-catalogue::after{ display:none; }
  .photo-catalogue-head{
    text-align: center;
    margin-bottom: 20px;
  }
  .photo-catalogue-head h3{
    font-size: clamp(1.9rem, 6vw, 2.4rem);
  }
  .media-tab{
    min-width: 44%;
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Photo modal */
  .photo-modal-dialog{
    grid-template-columns: 1fr;
    width: min(94vw, 680px);
    max-height: 92vh;
  }
  .photo-modal-media{
    min-height: 44vh;
  }
  .photo-modal-side{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px 16px;
  }

  /* Réalisations grid: 2 columns on mobile */
  .work-card--grid{
    grid-column: span 6;
    height: auto;
    aspect-ratio: auto;
  }
  .works-grid{ gap: 12px; }
  .works-grid .work-overlay{
    gap: 4px;
    padding: 10px 12px 12px;
  }
  .works-grid .work-kicker{ font-size: 12px; }
  .works-grid .work-name{ font-size: 18px; }
  .works-grid .work-desc{
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 11px;
  }
  .works-grid .work-context{
    width: calc(100% - 14px);
    padding: 12px 12px 8px;
    font-size: 12px;
    line-height: 1.3;
    opacity: 1;
    transform: translate(-50%, 0);
    transition: none;
  }
  .works-grid .work-card--grid:hover .work-context,
  .works-grid .work-card--grid:active .work-context,
  .works-grid .work-card--grid:focus-visible .work-context{
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .filters .chip{
    font-size: 12px;
    padding: 8px 11px;
  }

  /* Methode: keep structure, reduce size + align content */
  .method{ padding: 90px 0 110px; }
  .method-header{ margin-bottom: 44px; }
  .method-flow{ gap: 56px; }
  .method-flow::before{ display:none; }
  .mstep{
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .mstep--reverse,
  .mstep:not(.mstep--reverse){
    grid-template-areas:
      "media"
      "text";
  }
  .mstep-mid{ display:none; }
  .mstep-media{
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
  }
  .mstep-text{
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    padding: 0 2px;
  }
  .mstep-num{ font-size: 56px; }
  .mstep-text h3{ font-size: 30px; }
  .mstep-text p{ font-size: 16px; line-height: 1.65; }

  /* About: stack + center */
  .about{
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .about-content{
    grid-template-columns: 1fr;
    row-gap: 20px;
    grid-template-areas:
      "title"
      "media"
      "text"
      "actions";
    justify-items: stretch;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }
  .about-media{
    padding: 0 16px;
    justify-content: center;
  }
  .about-photo{
    max-width: 320px;
  }
  .about-content h2{
    font-size: 2.1rem;
    max-width: none;
    margin: 0 auto;
    padding: 0 10px;
  }
  .about-content p{
    font-size: 15px;
    line-height: 1.65;
    max-width: none;
    margin: 0 auto;
    padding: 0 12px;
    text-align: center;
  }
  .about-actions{
    margin-top: 4px;
  }
  .about-actions .hero-btn,
  .projects-cta .btn{
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (hover: none) and (pointer: coarse){
  /* Disable hover-only effects on touch */
  .projects-carousel .work-card:hover .work-thumb-media{ transform: scale(1); }
  .projects-carousel .work-card:hover .work-thumb-border{ border: 1px solid rgba(255,255,255,.14); }
  .projects-carousel .work-card:hover .work-thumb::after,
  .projects-carousel .work-card:hover .work-thumb::before{
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal.is-in{
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .projects-carousel .work-thumb-media{ transition: none !important; }
  .projects-carousel .work-thumb::after,
  .projects-carousel .work-thumb::before{ transition: none !important; }
}
/* =========================
   Responsive nav + overlay
========================= */

.nav-toggle{
  display:none;
  width:56px;
  height:56px;

  -webkit-appearance:none;
  appearance:none;
  background: transparent;      /* pas de fond */
  border: 0;                    /* pas de contour */
  padding: 0;
  margin: 0;
  cursor:pointer;

  align-items:center;
  justify-content:center;

  position: relative;
  z-index: 60;
}

.nav-toggle .burger{
  width: 30px;                  /* plus large */
  height: 3px;                  /* plus épais */
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  position: relative;
  display: block;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after{
  content:"";
  position:absolute;
  left:0;
  width: 30px;                  /* même largeur que la barre centrale */
  height: 3px;                  /* même épaisseur */
  background: rgba(255,255,255,.92);
  border-radius: 999px;
}
.nav-toggle .burger::before{ top:-10px; }
.nav-toggle .burger::after{ top:10px; }


/* animate to X when nav.is-open */
.nav.is-open .nav-toggle .burger{ background: transparent; }
.nav.is-open .nav-toggle .burger::before{ top:0; transform: rotate(45deg); }
.nav.is-open .nav-toggle .burger::after{ top:0; transform: rotate(-45deg); }
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after{
  transition: transform 180ms ease, top 180ms ease, background 180ms ease;
}

/* Mobile nav + hero adjustments */
@media (max-width: 860px){
  :root{ --nav-h: 72px; }
  html, body{
    overflow-x: hidden;
  }
  .nav{
    left: 0;
    right: auto;
    width: 100dvw;
    max-width: 100dvw;
    overflow-x: clip;
  }
  .nav-toggle{ display:inline-flex; }
  .nav-links{ display:none !important; }

  .hero{
    height: 100svh;
    min-height: 100svh;
    padding: 0;
  }
  .hero-content{
    padding-top: calc(var(--nav-h) + 28px);
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .hero p{
    font-size: 16px;
    max-width: 34ch;
  }
  .hero-actions{
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-inner{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    width: 100%;
    max-width: 100dvw;
  }
  .logo{
    justify-self: start;
    min-width: 0;
    max-width: min(170px, calc(100dvw - 96px));
  }
  .logo img{
    max-height: 40px;
    width: 100%;
  }
  .nav-toggle{
    justify-self: end;
    width: 44px;
    height: 44px;
  }
  .nav-toggle .burger{
    width: 22px;
    height: 2px;
  }
  .nav-toggle .burger::before,
  .nav-toggle .burger::after{
    width: 22px;
    height: 2px;
  }
  .nav-toggle .burger::before{ top:-7px; }
  .nav-toggle .burger::after{ top:7px; }

  .overlay-close{
    width: 44px;
    height: 44px;
  }
  .overlay-close .burger{
    width: 22px;
    height: 2px;
  }
  .overlay-close .burger::before,
  .overlay-close .burger::after{
    width: 22px;
    height: 2px;
  }

  .nav-overlay .overlay-links{
    gap: 14px;
    width: min(420px, 86vw);
  }
  .nav-overlay .overlay-links a{
    font-size: clamp(18px, 4.8vw, 30px);
  }
  .nav-overlay .overlay-links .nav-cta{
    margin-top: 8px;
    width: min(360px, 84vw);
    padding: 12px 16px;
    font-size: clamp(18px, 4.8vw, 30px);
  }

  .hero h1{
    line-height: 1.05 !important;
  }
  .hero-btn{
    padding: 12px 16px;
    font-size: 8px;
    white-space: nowrap;
  }
  .hero-btn:active{
    transform: translateY(1px) scale(.98);
  }
}

/* Overlay fullscreen (circle grow animation via ::before — fiable partout) */
.nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 10000;

  pointer-events: none;
  opacity: 0;
  visibility: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  --cx: 50vw;
  --cy: 16px;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);

  /* IMPORTANT :
     - opacity est retardée à la fermeture pour laisser voir le rond qui se referme
     - visibility est cachée à la fin du rond */
  transition:
    opacity 220ms ease 700ms,
    visibility 0s linear 900ms;
}


.nav-overlay::before{
  content:"";
  position:absolute;
  left: var(--cx);
  top: var(--cy);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(14,14,14,.98);

  transform: translate(-50%, -50%) scale(0);
  transition: transform 900ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.nav-overlay.is-open{
  pointer-events: auto;
  opacity: 1;
  visibility: visible;

  /* ouverture: opacity immédiate */
  transition:
    opacity 180ms ease 0s,
    visibility 0s;
}


.nav-overlay.is-open::before{
  transform: translate(-50%, -50%) scale(120);
}

/* Center content */
.nav-overlay .overlay-links{
  position: relative;
  z-index: 1;

  list-style: none;
  margin: 0;
  padding: 0;

  width: min(520px, 88vw);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.nav-overlay .overlay-links a{
  display:inline-block;
  font-size: clamp(22px, 4.2vw, 42px);
  font-weight:700;
  line-height:1.1;
  text-decoration:none;
  color: rgba(255,255,255,.92);
}

.nav-overlay .overlay-links .nav-cta{
  margin-top: 12px;
  width: min(420px, 88vw);
  justify-content:center;
  text-align:center;
}
.nav-overlay .overlay-links{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-overlay.is-open .overlay-links{
  opacity: 1;
  transform: translateY(0);
}

/* Optional: hide overlay in desktop just in case */
@media (min-width: 861px){
  .nav-overlay{ display:none; }
}
.overlay-close{
  position: fixed;

  /* position exacte donnée par JS */
  left: var(--btnx, 50vw);
  top: var(--btny, 16px);
  transform: translate(-50%, -50%);

  width: 56px;
  height: 56px;

  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 10001; /* au-dessus de l’overlay */
}

/* Réutilise le même visuel que le burger */
.overlay-close .burger{
  width: 30px;
  height: 3px;
  background: transparent; /* en mode "X" seulement */
  border-radius: 999px;
  position: relative;
  display: block;
}
.overlay-close .burger::before,
.overlay-close .burger::after{
  content:"";
  position:absolute;
  left:0;
  width:30px;
  height:3px;
  background: rgba(255,255,255,.92);
  border-radius:999px;
  top:0;
  transform-origin: center;
}
.overlay-close .burger::before{ transform: rotate(45deg); }
.overlay-close .burger::after{ transform: rotate(-45deg); }
/* Bouton nav (par défaut caché, visible seulement mobile) */
.nav-cta--nav{
  display: none;
}


@media (max-width: 520px){
  .work-card--grid{
    grid-column: span 12;
  }
  .projects-carousel .work-card{
    flex: 0 0 calc(100vw - 80px);
    max-width: calc(100vw - 80px);
    min-width: calc(100vw - 80px);
  }
  .about-photo{
    max-width: 280px;
  }
  .about-content p{
    padding: 0 8px;
  }
  .photo-grid{
    --gap: 10px;
    width: 100%;
    max-width: 360px;
  }
  .hero-btn{
    padding: 12px 16px;
    font-size: 14px;
  }
  body{
    font-size: 15px;
  }
  h1{
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  h2{
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    line-height: 1.1;
  }
  h3{
    font-size: clamp(1.3rem, 5.6vw, 1.8rem);
  }
  .btn,
  .hero-btn,
  .nav-cta,
  .btn--pill{
    font-size: 10px;
    padding: 10px 14px;
  }
  .btn--full{
    padding: 14px 16px;
  }
  .nav-links a:not(.nav-cta){
    font-size: 14px;
  }
  .projects-title h2{
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
  }
  .projects-title p{
    font-size: 15px;
  }
  .projects-title{
    padding-left: 8px;
    padding-right: 8px;
  }
  .hero h2{
    font-size: 2.3rem;
  }
  .hero .hero-name{
    font-size: 16px;
  }
  .projects-carousel .work-kicker{ font-size: 12px; }
  .projects-carousel .work-name{ font-size: 20px; }
  .projects-carousel .work-desc{ font-size: 12px; }
  .projects-carousel .work-context{ font-size: 12px; }
  .photo-catalogue-head h3{
    font-size: clamp(1.6rem, 6.6vw, 2.1rem);
  }
  .method-text h3,
  .mstep-text h3{
    font-size: 24px;
  }
  .unfolds-text p{
    font-size: 1.2rem;
  }
  .method-header h2{
    font-size: 2rem;
  }
}
