/* ==========================================================================
   PORTFOLIO — PIERRICK BOUTTE-MILAZZO
   Feuille de style principale.
   Sommaire :
     1. Variables & reset            7. Travail + filtres
     2. Préloader                    8. Popup projet
     3. Grain + curseur              9. Popup CV
     4. Header / navigation         10. Footer
     5. Effet chrome                11. Bouton + formulaire de contact
     6. Hero / À propos             12. Responsive divers
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --bg: #050505;          /* noir profond du site */
  --accent: #F56A2A;      /* orange accent */
  --off: #F5F3EE;         /* blanc cassé */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }
html.loading { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--off);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #050505; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245,243,238,.15); border-radius: 999px; }

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font-family: inherit; }
img, video, iframe { max-width: 100%; display: block; }

/* Le curseur personnalisé remplace le curseur natif (souris uniquement),
   sauf dans les zones de saisie. */
@media (hover: hover) and (pointer: fine) {
  html.cursor-on, html.cursor-on * { cursor: none !important; }
  html.cursor-on .contact-panel, html.cursor-on .contact-panel * { cursor: auto !important; }
  html.cursor-on .cv-panel iframe { cursor: auto !important; }
}
html.native-zone #cursor-dot, html.native-zone #cursor-ring { opacity: 0 !important; }

.icon {
  width: 15px; height: 15px; flex: 0 0 15px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   2. PRÉLOADER
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 1.1s cubic-bezier(0.87, 0, 0.13, 1);
}
#preloader.done { transform: translateY(-100%); }
#preloader .name-mask { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
#preloader .name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  transition: transform 0.9s cubic-bezier(0.87, 0, 0.13, 1);
}
#preloader.done .name { transform: translateY(-115%); }
#preloader .bar-wrap {
  margin-top: 2.4rem; width: 240px;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  transition: opacity .4s ease;
}
#preloader.done .bar-wrap { opacity: 0; }
#preloader .bar { width: 100%; height: 1px; background: rgba(245,243,238,.15); }
#preloader .bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width .15s ease-out; }
#preloader .pct { font-size: 11px; letter-spacing: .25em; color: rgba(245,243,238,.5); }

/* ==========================================================================
   3. GRAIN + CURSEUR PERSONNALISÉ
   ========================================================================== */
.grain {
  position: fixed; inset: -200px; z-index: 60; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-2%,-4%); }
  20% { transform: translate(-6%,2%); } 30% { transform: translate(3%,-6%); }
  40% { transform: translate(-4%,5%); } 50% { transform: translate(5%,0); }
  60% { transform: translate(-3%,4%); } 70% { transform: translate(4%,-3%); }
  80% { transform: translate(-5%,-2%); } 90% { transform: translate(2%,5%); }
}

#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 999px;
  transform: translate(-50%,-50%); opacity: 0; z-index: 130;
}
#cursor-dot {
  width: 10px; height: 10px; background: var(--accent);
  transition: width .4s var(--ease), height .4s var(--ease), opacity .3s;
}
#cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(245,243,238,.35); z-index: 129;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  transition: width .5s var(--ease), height .5s var(--ease),
    border-color .4s, background-color .4s, opacity .3s;
  mix-blend-mode: difference;
}
#cursor-ring span { opacity: 0; transition: opacity .3s; }
body.cur-link #cursor-ring { width: 60px; height: 60px; border-color: rgba(245,106,42,.6); }
body.cur-project #cursor-dot { width: 0; height: 0; }
body.cur-project #cursor-ring {
  width: 110px; height: 110px; background: rgba(245,106,42,.92);
  border-color: transparent; mix-blend-mode: normal; color: #050505;
}
body.cur-project #cursor-ring span { opacity: 1; }
@media (hover: none), (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

/* ==========================================================================
   4. HEADER / NAVIGATION
   ========================================================================== */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.5rem 1rem; transition: padding .7s var(--ease);
}
header.scrolled { padding: .75rem 1rem; }
/* Verre dépoli dès le chargement : les liens restent lisibles sur le
   showreel ; l'effet se renforce légèrement au scroll. */
.header-inner {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 2rem; border-radius: 999px;
  background: rgba(5,5,5,.35);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(245,243,238,.08);
  transition: all .7s var(--ease);
  position: relative; z-index: 50;
}
header.scrolled .header-inner {
  background: rgba(5,5,5,.55);
  border-color: rgba(245,243,238,.10);
  padding-top: .65rem; padding-bottom: .65rem;
}
.logo {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
}
nav.desktop { display: flex; gap: 2.4rem; }
nav.desktop a {
  position: relative; font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .25rem 0;
  transition: color .5s;
}
nav.desktop a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0; background: var(--accent);
  transition: width .5s var(--ease);
}
nav.desktop a:hover::after { width: 100%; }
nav.desktop a.active::after { width: 100%; }
/* Le lien actif quitte le chrome pour l'accent orange */
nav.desktop a.chrome.active,
#mobile-menu a.chrome.active {
  background-image: none;
  color: var(--accent);
}

#burger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; }
#burger span { display: block; width: 20px; height: 1px; background: var(--off); transition: transform .5s var(--ease); }
#burger.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
#burger.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

#mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(5,5,5,.95);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .7s var(--ease);
}
#mobile-menu.open { opacity: 1; pointer-events: auto; }
#mobile-menu a {
  font-family: var(--font-display); font-size: 2.4rem; text-transform: uppercase;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), color .4s;
}
#mobile-menu.open a { opacity: 1; transform: translateY(0); }

@media (max-width: 767px) {
  nav.desktop { display: none; }
  #burger { display: flex; }
  .header-inner { padding: .25rem 1.25rem; }
}

/* ==========================================================================
   5. EFFET CHROME — reflets métalliques, réactifs à la souris
   ========================================================================== */
.chrome {
  background-image: linear-gradient(100deg,
    #2e2e2e 0%, #fdfdfd 10%, #6a6a6a 20%, #ffffff 32%,
    #3d3d3d 44%, #ececec 54%, #565656 64%, #ffffff 76%,
    #424242 88%, #d8d8d8 100%);
  background-size: 220% auto;
  background-position: var(--chrome-pos, 50%) 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.10))
          drop-shadow(0 0 45px rgba(245,106,42,.08));
}
/* Version "XL" pour les grands titres : un balayage lumineux périodique
   passe sur le métal, comme un reflet de studio. */
.chrome-xl {
  background-image:
    linear-gradient(115deg,
      rgba(255,255,255,0) 42%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 58%),
    linear-gradient(100deg,
      #2e2e2e 0%, #fdfdfd 10%, #6a6a6a 20%, #ffffff 32%,
      #3d3d3d 44%, #ececec 54%, #565656 64%, #ffffff 76%,
      #424242 88%, #d8d8d8 100%);
  background-size: 250% 100%, 220% auto;
  animation: chrome-sweep 8s cubic-bezier(.6,.05,.28,.91) infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5))
          drop-shadow(0 1px 0 rgba(255,255,255,.12))
          drop-shadow(0 0 55px rgba(245,106,42,.10));
}
@keyframes chrome-sweep {
  0%, 52%   { background-position: -140% 0, var(--chrome-pos, 50%) 50%; }
  88%, 100% { background-position: 240% 0,  var(--chrome-pos, 50%) 50%; }
}

/* ==========================================================================
   ÉLÉMENTS COMMUNS AUX SECTIONS
   ========================================================================== */
section, footer { position: relative; }
.wrap { max-width: 1700px; margin: 0 auto; padding: 7rem 1.5rem; }
@media (min-width: 768px) { .wrap { padding: 9rem 3rem; } }

/* Apparition au scroll (opacity + translation + flou) */
.reveal {
  opacity: 0; transform: translateY(36px); filter: blur(10px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Masque de révélation ligne par ligne — le padding compense la ligne
   serrée pour ne pas couper les descendantes (g, p, y…). */
.line-mask {
  display: block; overflow: hidden;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.line-mask > span {
  display: block; transform: translateY(115%);
  transition: transform 1.1s var(--ease);
  padding-bottom: .14em; margin-bottom: -.14em;
}
.line-mask.in > span { transform: translateY(0); }

.label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,243,238,.4); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid rgba(245,243,238,.1);
  padding-bottom: 1.6rem; margin-bottom: 2.5rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1; letter-spacing: -0.02em;
}
.section-head .label { display: none; }
@media (min-width: 768px) { .section-head .label { display: block; padding-bottom: .4rem; } }

/* ==========================================================================
   6. HERO + À PROPOS
   ========================================================================== */
#hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
}
/* z-index:0 isole le contexte d'empilement : la vidéo (z-index:1) passe
   au-dessus du fond de secours, mais reste sous les overlays et textes. */
.hero-media { position: absolute; inset: 0; will-change: transform; z-index: 0; }
.hero-media video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; user-select: none;
}
/* Fond animé affiché si la vidéo est absente ou illisible */
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(245,106,42,.16) 0%, transparent 55%),
    radial-gradient(100% 80% at 85% 80%, rgba(245,106,42,.10) 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 60%, #000 100%);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: heroDrift 18s ease-in-out infinite;
}
@keyframes heroDrift {
  0%,100% { background-position: 0% 0%, 100% 100%, 0 0; }
  50% { background-position: 20% 15%, 80% 85%, 0 0; }
}
.hero-overlay { position: absolute; inset: 0; background: rgba(5,5,5,.25); }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 35%, rgba(5,5,5,.3) 100%);
  pointer-events: none;
}
.hero-caption { position: absolute; left: 1.5rem; bottom: 2.2rem; z-index: 2; }
@media (min-width: 768px) { .hero-caption { left: 3rem; bottom: 3rem; } }
.hero-caption .section-title { font-size: clamp(2.8rem, 7vw, 6.5rem); }
.hero-caption .hero-sub {
  margin-top: .7rem; font-size: 11px; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(245,243,238,.55);
}
.scroll-hint {
  position: absolute; bottom: 2.2rem; right: 1.5rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: .8;
}
@media (min-width: 768px) { .scroll-hint { right: 3rem; bottom: 3rem; } }
.scroll-hint small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(245,243,238,.7); }
.scroll-hint i {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* --- À propos : tient sur un écran (desktop) --- */
#about { display: flex; align-items: stretch; }
#about .wrap {
  width: 100%; display: flex; flex-direction: column; justify-content: center;
  padding-top: 6.5rem; padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  #about { min-height: 100svh; }
  #about .wrap { min-height: 100svh; }
}
#about .cols { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  #about .cols { grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
}
#about .tagline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.02em;
}
#about .mini-infos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem 1.4rem;
  margin-top: 2rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(245,243,238,.1);
}
#about .mini-infos .info-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,243,238,.4);
}
#about .mini-infos p.value {
  margin-top: .4rem; font-family: var(--font-display);
  font-size: 13px; line-height: 1.45;
}
#about .story .lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.25; margin-bottom: 1.1rem;
}
#about .story p:not(.lead) {
  font-size: clamp(.85rem, .95vw, .95rem);
  line-height: 1.62; color: rgba(245,243,238,.68);
  margin-bottom: .95rem;
}
#about .story p:last-child { margin-bottom: 0; }
/* Écrans peu hauts : on resserre pour rester sur 100vh */
@media (min-width: 1024px) and (max-height: 800px) {
  #about .wrap { padding-top: 5.5rem; padding-bottom: 2rem; }
  #about .section-head { margin-bottom: 1.6rem; padding-bottom: 1.1rem; }
  #about .story p:not(.lead) { font-size: .82rem; line-height: 1.55; margin-bottom: .75rem; }
  #about .tagline { font-size: clamp(1.8rem, 3vw, 3rem); }
  #about .mini-infos { gap: 1rem 1.2rem; margin-top: 1.4rem; padding-top: 1.3rem; }
}

/* ==========================================================================
   7. TRAVAIL + FILTRES
   ========================================================================== */
#work .section-head { margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.8rem; }
.filter-btn {
  padding: .6rem 1.25rem; border-radius: 999px;
  border: 1px solid rgba(245,243,238,.14);
  font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,243,238,.6);
  transition: color .45s var(--ease), border-color .45s var(--ease),
    background-color .45s var(--ease), transform .45s var(--ease);
}
.filter-btn sup {
  font-size: 9px; margin-left: .35rem; color: rgba(245,243,238,.35);
  transition: color .45s;
}
.filter-btn:hover { border-color: rgba(245,106,42,.5); color: var(--off); transform: translateY(-1px); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #050505; }
.filter-btn.active sup { color: rgba(5,5,5,.55); }

.gallery { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.card {
  position: relative; display: block; width: 100%;
  overflow: hidden; border-radius: 2px; text-align: left;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card.filter-out { opacity: 0; transform: scale(.96); pointer-events: none; }
.card.filter-hidden { display: none; }
.card .thumb { position: relative; width: 100%; overflow: hidden; aspect-ratio: 4/3; }
.card .art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: scale(1);
  transition: transform 1.2s var(--ease);
}
.card:hover .art { transform: scale(1.06); }
.card .art span {
  font-family: var(--font-display); font-weight: 500;
  font-size: 5rem; opacity: .14; user-select: none;
}
.card .dim {
  position: absolute; inset: 0; background: rgba(5,5,5,.2);
  transition: opacity .7s;
}
.card:hover .dim { opacity: 0; }
.card .grad {
  position: absolute; inset: auto 0 0 0; height: 66%;
  background: linear-gradient(to top, rgba(5,5,5,.9), rgba(5,5,5,.2) 60%, transparent);
}
.card .num {
  position: absolute; top: 1rem; left: 1rem;
  font-size: 11px; letter-spacing: .15em; color: rgba(245,243,238,.45);
}
.card .year { position: absolute; top: 1rem; right: 1rem; font-size: 11px; letter-spacing: .15em; color: rgba(245,243,238,.6); }
.card .meta { position: absolute; inset: auto 0 0 0; padding: 1.4rem; }
.card .cat-mask { display: block; overflow: hidden; }
.card .cat {
  display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  transform: translateY(1rem); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.card:hover .cat { transform: translateY(0); opacity: 1; }
.card h3 {
  margin-top: .25rem; font-family: var(--font-display); font-weight: 500;
  font-size: 1.7rem; transition: transform .5s var(--ease);
}
.card:hover h3 { transform: translateY(-4px); }
.gallery-empty {
  grid-column: 1 / -1; padding: 4rem 0; text-align: center;
  font-size: 14px; color: rgba(245,243,238,.4);
}

/* ==========================================================================
   8. POPUP PROJET
   ========================================================================== */
#modal {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  overflow-y: auto; opacity: 0; pointer-events: none;
  clip-path: inset(8% 8% 8% 8% round 24px);
  transition: clip-path .9s var(--ease), opacity .9s var(--ease);
}
#modal.open {
  opacity: 1; pointer-events: auto;
  clip-path: inset(0 0 0 0 round 0);
}
#modal .close {
  position: fixed; top: 1.25rem; right: 1.25rem; z-index: 10;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(245,243,238,.15);
  background: rgba(5,5,5,.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease);
}
#modal .close:hover { transform: rotate(90deg); }
#modal .inner {
  max-width: 1400px; margin: 0 auto; padding: 6rem 1.5rem 7rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s;
}
#modal.open .inner { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) { #modal .inner { padding: 8rem 3rem 7rem; } }
#modal .visual {
  position: relative; aspect-ratio: 16/9; width: 100%;
  overflow: hidden; border-radius: 6px; margin-bottom: 3.5rem;
  display: flex; align-items: center; justify-content: center;
}
#modal .visual span { font-family: var(--font-display); font-size: 7rem; opacity: .14; user-select: none; }
#modal .visual video { width: 100%; height: 100%; object-fit: contain; background: #000; }
#modal .cols { display: grid; gap: 3rem; }
@media (min-width: 1024px) { #modal .cols { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }
#modal .kicker { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
#modal h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98;
}
#modal .desc { margin-top: 2rem; max-width: 42rem; font-size: 1.1rem; line-height: 1.7; color: rgba(245,243,238,.7); }
#modal .facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem;
  border-top: 1px solid rgba(245,243,238,.1); padding-top: 2rem;
  font-size: 14px;
}
@media (min-width: 1024px) {
  #modal .facts { border-top: 0; border-left: 1px solid rgba(245,243,238,.1); padding: 0 0 0 2.5rem; }
}
#modal .facts .value { margin-top: .5rem; font-family: var(--font-display); font-size: 15px; line-height: 1.4; }
#modal .facts .full { grid-column: span 2; }
/* Lien externe (YouTube, Behance…) affiché à la place des informations */
.modal-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent) !important;
  border-bottom: 1px solid rgba(245,106,42,.35);
  transition: border-color .4s, gap .4s;
}
.modal-link:hover { border-color: var(--accent); gap: .7rem; }
.modal-link svg { flex: 0 0 auto; transition: transform .4s var(--ease); }
.modal-link:hover svg { transform: translate(1px, -1px); }
/* Galerie photos sous le texte */
#modal .m-photos { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; }
@media (min-width: 768px) { #modal .m-photos { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
#modal .m-photos img { width: 100%; border-radius: 6px; display: block; }

/* ==========================================================================
   9. POPUP CV
   ========================================================================== */
#cv-modal {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(5,5,5,.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease);
}
#cv-modal.open { opacity: 1; pointer-events: auto; }
/* Le PDF seul : 80 % de la hauteur, format A4, parfaitement centré */
.cv-box {
  position: relative;
  height: 80svh;
  aspect-ratio: 595 / 842;      /* proportions d'une page A4 */
  max-width: 92vw;
  transform: translateY(24px) scale(.98);
  transition: transform .6s var(--ease);
}
#cv-modal.open .cv-box { transform: translateY(0) scale(1); }
.cv-panel {
  width: 100%; height: 100%;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(245,243,238,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: #1a1a1a;
}
.cv-panel iframe { width: 100%; height: 100%; border: 0; }
/* Croix discrète, posée juste au-dessus du PDF */
.cv-close {
  position: absolute; top: -3rem; right: 0;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid rgba(245,243,238,.18);
  color: var(--off);
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease), border-color .4s;
}
.cv-close:hover { transform: rotate(90deg); border-color: var(--accent); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
footer .wrap { padding-bottom: 0; }
footer .glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 620px; height: 420px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(245,106,42,.14) 0%, transparent 70%);
  filter: blur(40px);
}
footer .cta {
  display: inline-block; margin-top: 1rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 9vw, 7rem); line-height: .95; letter-spacing: -0.02em;
}
footer .grid {
  display: grid; gap: 3.5rem; margin-top: 6rem;
  border-top: 1px solid rgba(245,243,238,.1); padding: 3.5rem 0;
}
@media (min-width: 768px) { footer .grid { grid-template-columns: 1fr 1fr; margin-top: 8rem; padding: 4rem 0; } }
footer .who p.name { font-family: var(--font-display); font-size: 1.4rem; }
footer .who nav { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
footer .who nav a, footer .links a {
  position: relative; width: fit-content;
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,243,238,.6); transition: color .5s;
}
footer .who nav a::after, footer .links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .5s var(--ease);
}
footer .who nav a:hover, footer .links a:hover { color: var(--accent); }
footer .who nav a:hover::after, footer .links a:hover::after { width: 100%; }
footer .links { display: flex; flex-direction: column; gap: .8rem; }
@media (min-width: 768px) { footer .links { align-items: flex-end; } }
footer .bottom {
  display: flex; justify-content: center;
  border-top: 1px solid rgba(245,243,238,.1); padding: 2rem 0;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(245,243,238,.35);
  text-align: center;
}

/* ==========================================================================
   11. BOUTON + FORMULAIRE DE CONTACT
   ========================================================================== */
.contact-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-top: 2.2rem; padding: .95rem 1.9rem;
  border: 1px solid rgba(245,106,42,.5); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--off);
  transition: background-color .5s var(--ease), color .5s var(--ease),
    border-color .5s var(--ease), transform .5s var(--ease);
}
.contact-btn svg { transition: transform .5s var(--ease); }
.contact-btn:hover {
  background: var(--accent); border-color: var(--accent); color: #050505;
  transform: translateY(-2px);
}
.contact-btn:hover svg { transform: translate(2px, -2px); }

#contact-modal {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(5,5,5,.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease);
}
#contact-modal.open { opacity: 1; pointer-events: auto; }
.contact-panel {
  position: relative; width: 100%; max-width: 560px;
  max-height: 90svh; overflow-y: auto;
  background: #0a0a0a; border: 1px solid rgba(245,243,238,.1);
  border-radius: 14px; padding: 2.5rem;
  transform: translateY(24px) scale(.98);
  transition: transform .6s var(--ease);
}
#contact-modal.open .contact-panel { transform: translateY(0) scale(1); }
@media (max-width: 560px) { .contact-panel { padding: 1.8rem; } }
.contact-panel .close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(245,243,238,.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease);
}
.contact-panel .close:hover { transform: rotate(90deg); }
.contact-panel h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1;
  margin: .6rem 0 1.8rem;
}
.contact-panel .field { margin-bottom: 1.4rem; }
.contact-panel label {
  display: block; margin-bottom: .5rem;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(245,243,238,.4);
}
.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  width: 100%; padding: .75rem 0;
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(245,243,238,.15);
  color: var(--off); font-family: var(--font-sans); font-size: 15px;
  border-radius: 0; outline: none; resize: vertical;
  transition: border-color .4s;
}
.contact-panel input::placeholder,
.contact-panel textarea::placeholder { color: rgba(245,243,238,.25); }
.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus { border-bottom-color: var(--accent); }
.contact-panel select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23F56A2A' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat; background-position: right .2rem center;
}
.contact-panel select option { background: #0a0a0a; color: var(--off); }
.contact-panel .submit { margin-top: .6rem; }
.contact-panel .hint { margin-top: 1.1rem; font-size: 12px; color: rgba(245,243,238,.35); }
.form-error {
  display: none; margin-top: 1rem;
  font-size: 13px; color: #ff9d9d;
}
/* Confirmation après envoi (remplace le formulaire) */
.form-done {
  display: none; flex-direction: column; align-items: center;
  gap: .9rem; padding: 2.5rem 0 1.5rem; text-align: center;
}
.form-done svg {
  width: 52px; height: 52px; color: var(--accent);
  animation: done-pop .7s var(--ease);
}
@keyframes done-pop {
  0% { transform: scale(.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.form-done p {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.4rem;
}
.form-done small { font-size: 13px; color: rgba(245,243,238,.5); }
