/* =========================================================
   Maison PXL — Feuille de style
   Luxe minimaliste, noir & or
   ========================================================= */

:root {
  --black: #0A0A0A;
  --black-soft: #111111;
  --black-card: #151515;
  --line: rgba(201, 168, 106, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);

  --gold: #C9A86A;
  --gold-bright: #D4AF37;
  --gold-dim: rgba(201, 168, 106, 0.55);

  --white: #F4F1EA;
  --white-dim: rgba(244, 241, 234, 0.62);
  --white-faint: rgba(244, 241, 234, 0.40);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.005em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.12;
  margin: 0;
  max-width: 18ch;
  color: var(--white);
}

.italic { font-style: italic; }
.gold { color: var(--gold); }

/* Nom complet « Maison PXL » soudé sur une seule ligne */
.brand-inline { white-space: nowrap; }
/* Titre des témoignages : laisser « image à Maison PXL. » sur une seule ligne */
#temoignages .section-title { max-width: none; }
/* Le carrousel rond se termine net : pas besoin des 130px de bas de section. */
#temoignages { padding-bottom: 96px; }
#temoignages .section-head { margin-bottom: 56px; }
/* « Maison » en calligraphie (ex. titre des témoignages) */
.script-name {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.32em;
  line-height: 0.9;
  color: var(--gold);
  padding: 0 0.04em;
  text-shadow: 0 0 26px rgba(201, 168, 106, 0.35);
}
/* « PXL » en écriture normale, plus petit, juste à côté de « Maison » */
.brand-pxl {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.8em;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-left: -0.06em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.45s var(--ease);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #0A0A0A;
  box-shadow: 0 0 0 rgba(201, 168, 106, 0);
}
.btn-gold:hover {
  box-shadow: 0 12px 38px -10px rgba(201, 168, 106, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}
/* Au scroll : la barre blanche revient à l'identique */
.site-header.scrolled {
  background: #FFFFFF;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  transition: padding 0.5s var(--ease);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  line-height: 1;
}
.logo-img {
  display: block;
  height: 62px;
  width: auto;
  transition: height 0.5s var(--ease), transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.logo:hover .logo-img { transform: translateY(-1px); }

/* Bascule clair (en-tête sombre) / foncé (en-tête blanc au scroll) */
.logo-img-fonce { display: none; }
.site-header.scrolled .logo-img-clair { display: none; }
.site-header.scrolled .logo-img-fonce { display: block; }
.logo-name {
  font-family: var(--script);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #FFFFFF;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.site-header.scrolled .logo-name { color: #161616; }
.logo:hover .logo-name { opacity: 0.9; }
/* Initiale dorée : forme avec PXL le monogramme S · PXL.
   Couleur unie (pas de background-clip) pour ne pas rogner les déliés du S. */
.logo-initial {
  color: var(--gold-bright);
}
.logo-accent {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: center;
  padding-bottom: 2px;
  transition: color 0.4s var(--ease);
}

.nav { display: flex; gap: 38px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding: 4px 0;
  transition: color 0.35s var(--ease);
}
.site-header.scrolled .nav a { color: #161616; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: #fff; }
.site-header.scrolled .nav a:hover { color: #000; }
.nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 11px 30px;
  border-radius: 999px;
}
/* En haut (hero) : Contact en texte blanc, pas de pastille dorée */
.site-header:not(.scrolled) .nav-cta {
  background: none;
  color: #FFFFFF;
  box-shadow: none;
}
.site-header:not(.scrolled) .nav-cta:hover {
  color: var(--gold-bright);
  transform: none;
  box-shadow: none;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px; height: 1.5px;
  background: #FFFFFF;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled .burger span { background: #161616; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
  max-height: 0;
  overflow: hidden;
  background: #FFFFFF;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}
.mobile-menu.open { max-height: 460px; padding: 14px 32px 34px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.mobile-menu a {
  padding: 15px 0;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #161616;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.mobile-menu a.btn { margin-top: 22px; color: #0A0A0A; border: none; border-radius: 999px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #050505;
}
/* Canvas WebGL plein écran */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}
/* Repli statique (par défaut, et si pas de WebGL / mouvement réduit) */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background:
    radial-gradient(120% 90% at 74% 58%, rgba(120, 120, 120, 0.45) 0%, rgba(10, 10, 10, 0) 52%),
    linear-gradient(180deg, #060606 0%, #141414 55%, #050505 100%);
  background-size: cover;
  background-position: center;
}
/* Quand la scène WebGL est prête */
.hero.webgl-on .hero-canvas { display: block; }
.hero.webgl-on .hero-fallback { display: none; }

/* Fondu progressif du bas du hero vers le noir de la section suivante.
   z-index 1 : au-dessus du canvas, mais sous le texte (overlay z-index 2). */
.hero-bottom-fade {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 36%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.15) 38%,
    rgba(10, 10, 10, 0.6) 72%,
    var(--black) 100%);
}

/* Surcouche HTML */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
/* Halo sombre centré derrière le texte, pour la lisibilité sur la fumée */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 58% at 50% 50%,
    rgba(5, 5, 5, 0.62) 0%,
    rgba(5, 5, 5, 0.30) 55%,
    rgba(5, 5, 5, 0) 100%);
  pointer-events: none;
}

/* Texte centré au milieu de la page (horizontal + vertical),
   sous le header dont on réserve la hauteur. */
.hero-text {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  width: min(920px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 104px;
  padding-bottom: 48px;
  z-index: 2;
}
/* Intro plein écran : pixels qui forment le logo à l'arrivée */
.pixel-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #050505;
  transition: background-color 1.7s var(--ease), opacity 0.9s var(--ease);
}
.pixel-intro canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 1.25s var(--ease), opacity 1s var(--ease);
}
/* Sortie : le fond se dissout, le canvas rétrécit vers le logo du hero */
.pixel-intro.reveal { background-color: transparent; pointer-events: none; }
.pixel-intro.done { opacity: 0; pointer-events: none; }
body.intro-active { overflow: hidden; }

.pixel-logo {
  display: block;
  width: min(300px, 74vw);
  aspect-ratio: 1074 / 722;
  height: auto;
  margin: 0 auto 6px;
  pointer-events: none;
  /* Halo doux remonté sur « Maison » : on n'ajoute plus de lumière derrière le « PXL ». */
  background: radial-gradient(52% 62% at 50% 32%, rgba(201, 168, 106, 0.06), rgba(201, 168, 106, 0) 70%);
  /* Remonte le logo pour sortir le « PXL » du cœur lumineux de la fumée. */
  transform: translateY(-26px);
  transition: opacity 1s var(--ease);
}
@media (max-width: 600px) { .pixel-logo { width: min(330px, 86vw); transform: translateY(-18px); } }
/* Pendant l'intro, le logo pixel du hero est masqué ; il apparaît en fondu
   au moment où le logo de l'intro vient se poser à sa place. */
body.intro-active .pixel-logo { opacity: 0; }

.hero-text .eyebrow { margin-bottom: 14px; }
.hero-title {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--white);
}
.hero-sub {
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.4;
  color: var(--white-dim);
  max-width: 56ch;
  margin: 0 auto 24px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn { pointer-events: auto; }

/* ---------- Effets de lumière du hero ---------- */
/* Halo doré qui respire derrière le titre */
.hero-text::before {
  content: '';
  position: absolute;
  top: 46%; left: 50%;
  width: min(760px, 86vw);
  height: 360px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(212, 175, 55, 0.18) 0%,
    rgba(201, 168, 106, 0.09) 34%,
    rgba(201, 168, 106, 0) 70%);
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
  animation: heroGlow 7s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.09); }
}

/* Lueur chaude sur le titre */
.hero-title { text-shadow: 0 0 36px rgba(201, 168, 106, 0.20); }

/* Reflet doré balayé sur le mot « d'exception » */
.hero-title .gold {
  background: linear-gradient(100deg,
    #C9A86A 0%, #EBD69C 40%, #FFF6DC 50%, #EBD69C 60%, #C9A86A 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldShimmer 6s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%   { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text::before { animation: none; opacity: 0.7; }
  .hero-title .gold { animation: none; background-position: 50% 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  z-index: 2;
  pointer-events: none;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 9px;
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 13px); }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section-alt { background: var(--black-soft); }

/* Variante claire (fond crème, texte sombre) */
.section-light { background: var(--white); }
.section-light .section-title { color: #161616; }
.section-light .step h3 { color: #161616; }
.section-light .step p { color: rgba(22, 22, 22, 0.64); }
.section-light .step { border-top-color: rgba(22, 22, 22, 0.16); }
/* « Qui sommes-nous » sur fond clair : textes et cartes adaptés */
.section-light .about-lead { color: rgba(22, 22, 22, 0.72); }
.section-light .about-person {
  background: #FFFFFF;
  border-color: rgba(22, 22, 22, 0.12);
}
.section-light .about-person:hover { border-color: rgba(201, 168, 106, 0.5); }
.section-light .about-person h3 { color: #161616; }
.section-light .about-person p { color: rgba(22, 22, 22, 0.68); }
.section-light .about-note { border-top-color: rgba(22, 22, 22, 0.14); }
.section-light .about-note h3 { color: #161616; }
.section-light .about-note p { color: rgba(22, 22, 22, 0.7); }
.section-head { margin-bottom: 70px; }

/* ---------- Qui sommes-nous ---------- */
.about-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--white-dim);
  margin: 0 0 22px;
}
.about-section-lead { max-width: 64ch; margin-bottom: 60px; }

/* Haut de section : photo du duo + intro */
.about-top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.about-photo {
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85);
}
.about-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.about-intro .section-title { margin-bottom: 26px; }
.about-intro .about-lead { margin-bottom: 0; }

@media (max-width: 860px) {
  .about-top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
}

.about-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 56px;
}
.about-person {
  background: var(--black-card);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 42px 40px;
  transition: border-color 0.5s var(--ease);
}
.about-person:hover { border-color: var(--line); }
.about-person h3 { font-size: 1.9rem; margin: 0 0 6px; }
.about-role {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.about-person p { color: var(--white-dim); margin: 0; font-size: 15.5px; line-height: 1.75; }

.about-note {
  max-width: 760px;
  padding-top: 44px;
  border-top: 1px solid var(--line-soft);
}
.about-note h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 0 0 18px;
  color: var(--white);
}
.about-note p { color: var(--white-dim); margin: 0 0 18px; line-height: 1.75; }
.about-note .btn { margin-top: 10px; }

@media (max-width: 760px) {
  .about-duo { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
}

/* ---------- Portfolio ---------- */
.portfolio-carousel { position: relative; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow:hover { background: var(--gold); border-color: var(--gold); color: #0A0A0A; }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }

/* Scène du coverflow incurvé : chaque carte est positionnée en absolu par le JS. */
.coverflow {
  position: relative;
  height: clamp(430px, 26vw + 300px, 620px);
  margin-top: 12px;
  perspective: 1500px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.coverflow:focus { outline: none; }
.work {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(230px, 30vw, 340px);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease);
  cursor: pointer;
  opacity: 0;                 /* posé par le JS (évite le flash au chargement) */
}
.work.is-active { cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .work { transition: none; }
}
.work-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 34px rgba(244, 241, 234, 0.10);
  transition: transform 0.7s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.work-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.55) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.work:hover .work-media { transform: scale(1.015); border-color: var(--gold-dim); box-shadow: 0 0 48px rgba(244, 241, 234, 0.18); }
.work:hover .work-media::after { opacity: 1; }

.work-media { background: #0d0d0d; }
/* Image statique de la réalisation : remplit la carte, clic ouvre le site */
.work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ---- Étoiles scintillantes (section Réalisations) ---- */
#portfolio, #temoignages { position: relative; overflow: hidden; }
#portfolio .container, #temoignages .container { position: relative; z-index: 1; }
.stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stars .star {
  position: absolute;
  border-radius: 50%;
  background: #fdf6e6;
  opacity: 0;
  box-shadow: 0 0 4px rgba(255, 250, 235, 0.5);
  animation: twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--twd, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: var(--two, 0.8); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stars .star { animation: none; opacity: 0.35; }
}

/* Légende : uniquement sous la carte active (centrale). */
.work-meta {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90vw, 420px);
  text-align: center;
  padding-top: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.work.is-active .work-meta { opacity: 1; }
.work-meta h3 {
  font-size: 1.5rem;
  margin: 0 0 4px;
  transition: color 0.4s var(--ease);
}
.work.is-active:hover .work-meta h3 { color: var(--gold); }
.work-meta span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.service {
  background: var(--black-soft);
  padding: 48px 40px 52px;
  transition: background 0.5s var(--ease);
}
.section-alt .service { background: var(--black); }
.service:hover { background: var(--black-card); }
.service-icon {
  width: 46px; height: 46px;
  margin-bottom: 26px;
  color: var(--gold);
}
.service-icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { font-size: 1.6rem; margin: 0 0 12px; }
.service p { color: var(--white-dim); margin: 0; font-size: 15.5px; }

/* ---------- Tarifs ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}
.plan {
  position: relative;
  background: var(--black-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 46px 38px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.section .plan { background: var(--black-soft); }
.plan:hover { border-color: var(--line); transform: translateY(-4px); }

.plan-featured {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(201,168,106,0.06), rgba(201,168,106,0) 55%), var(--black-soft);
}
.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #0A0A0A;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  white-space: nowrap;
}

.plan-name { font-size: 1.9rem; margin: 0 0 6px; }
.plan-desc { color: var(--white-dim); font-size: 14.5px; margin: 0 0 26px; min-height: 42px; }
.plan-price {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  margin: 0 0 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.plan-from { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-faint); margin-bottom: 8px; }
.plan-cur { color: var(--gold); }

.plan-features { list-style: none; margin: 0 0 34px; padding: 0; flex: 1; }
.plan-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--white-dim);
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* Prestation en option (non comprise dans le prix) */
.plan-features li.plan-option {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  font-style: italic;
  color: var(--white-faint);
}
.plan-features li.plan-option::before {
  content: '+';
  top: 17px;
  width: auto; height: auto;
  border: none;
  transform: none;
  color: var(--gold-dim);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}
/* Options consécutives : pas de second filet, enchaînement fluide */
.plan-features li.plan-option + li.plan-option {
  margin-top: 0;
  padding-top: 10px;
  border-top: none;
}
.plan-features li.plan-option + li.plan-option::before { top: 9px; }

/* ---------- Processus ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 38px 0 0;
  border-top: 1px solid var(--line-soft);
  transition: border-color 0.5s var(--ease);
}
.step:hover { border-top-color: var(--gold); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
  opacity: 0.85;
}
.step h3 { font-size: 1.5rem; margin: 0 0 12px; }
.step-opt { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1rem; color: var(--gold); white-space: nowrap; }
.step p { color: var(--white-dim); margin: 0; font-size: 15px; }

/* ---------- Témoignages ---------- */
.testimonials {
  display: grid;
  /* Colonnes calées sur le diamètre du cercle vidéo (.vt-circle). */
  grid-template-columns: repeat(3, 320px);
  justify-content: center;
  gap: 28px;
}
.quote {
  margin: 0;
  width: 320px;
  height: 320px;
  display: flex;
  flex-direction: column;
  padding: 38px 30px;
  background: var(--black-soft);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.5s var(--ease);
}
.quote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 3.8rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.28;
  position: absolute;
  top: 10px; left: 22px;
}
.quote:hover { border-color: var(--line); }
.quote blockquote {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  font-style: italic;
  margin: 26px 0 16px;
  color: var(--white);
}
.quote figcaption strong { display: block; font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.03em; }
.quote figcaption span { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); }

/* ---------- Témoignages vidéo : carrousel de cartes rondes ---------- */
.video-carousel { position: relative; margin-top: 44px; }

/* Scène : chaque carte ronde est positionnée en absolu par le JS. */
.vt-ring {
  position: relative;
  height: 340px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.vt-ring:focus { outline: none; }

.vt-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease);
  opacity: 0;                 /* posé par le JS (évite le flash au chargement) */
}

.vt-circle {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  border: 1px solid rgba(201, 168, 106, 0.5);
  cursor: pointer;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.vt-card.is-active .vt-circle:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 50px -6px rgba(201, 168, 106, 0.38);
}

/* La vidéo reste masquée tant qu'on n'a pas lancé la lecture :
   on voit le texte, pas le visage. */
/* La vidéo est en 9/16 dans un disque. Pour la dézoomer, on la laisse
   moins large que le cercle : on voit alors 75 % de l'image au lieu de 56 %,
   et le fond doré réapparaît en deux croissants sur les côtés. */
.vt-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.vt-card.is-playing .vt-video { opacity: 1; }

.vt-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Marges larges : le texte doit rester dans le disque. */
  padding: 0 46px;
  transition: opacity 0.45s var(--ease);
}
.vt-card.is-playing .vt-cover { opacity: 0; pointer-events: none; }

.vt-play {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.38);
  background: transparent;
  color: #0A0A0A;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.vt-play svg { width: 17px; height: 17px; margin-left: 3px; }
/* Pendant le chargement de la vidéo, le bouton pulse doucement. */
.vt-card.is-loading .vt-play { animation: vtPulse 1.1s ease-in-out infinite; }
@keyframes vtPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.vt-circle:hover .vt-play { background: #0A0A0A; border-color: #0A0A0A; color: var(--gold-bright); }

.vt-cover h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 7px;
  color: #0A0A0A;
}
.vt-role {
  margin: 0 0 14px;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.68);
}
.vt-desc {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.48;
  color: rgba(10, 10, 10, 0.78);
}

/* Bouton discret pour revenir au texte pendant la lecture */
.vt-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  z-index: 3;
}
.vt-card.is-playing .vt-close { display: flex; }
.vt-close svg { width: 15px; height: 15px; }
.vt-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Contact ---------- */
.section-contact {
  background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-lead { color: var(--white-dim); max-width: 42ch; margin: 0 0 40px; }
.contact-coords { list-style: none; margin: 0; padding: 0; }
.contact-coords li {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-coords li span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-coords a { transition: color 0.35s var(--ease); }
.contact-coords a:hover { color: var(--gold); }

.contact-form {
  background: var(--black);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 44px 40px;
}
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 16px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--white-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #0d0d0d;
}
.form-note { font-size: 13.5px; margin: 18px 0 0; min-height: 20px; text-align: center; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 0 22px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-brand { max-width: 320px; }
.footer-logo-img { display: block; height: 66px; width: auto; }
.footer-brand p { color: #444444; font-size: 14px; margin: 10px 0 0; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a, .footer-social a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #161616;
  transition: color 0.35s var(--ease);
}
.footer-nav a:hover, .footer-social a:hover { color: var(--gold); }
.footer-social a { display: inline-flex; align-items: center; gap: 10px; }
.social-ico { width: 17px; height: 17px; flex: 0 0 auto; color: inherit; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  font-size: 12.5px;
  color: #555555;
  letter-spacing: 0.04em;
}
.footer-legal a { color: #161616; transition: color 0.3s var(--ease); }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Animations au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
/* will-change seulement tant que l'élément n'est pas encore révélé,
   pour ne pas laisser des dizaines de couches GPU actives au scroll */
.reveal:not(.in) { will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* Décalage progressif pour les grilles */
.portfolio-grid .work:nth-child(2), .services-grid .service:nth-child(2),
.pricing-grid .plan:nth-child(2), .steps .step:nth-child(2),
.testimonials .quote:nth-child(2) { transition-delay: 0.08s; }
.portfolio-grid .work:nth-child(3), .services-grid .service:nth-child(3),
.pricing-grid .plan:nth-child(3), .steps .step:nth-child(3),
.testimonials .quote:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4), .services-grid .service:nth-child(4) { transition-delay: 0.24s; }
.services-grid .service:nth-child(5) { transition-delay: 0.32s; }
.services-grid .service:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .portfolio-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 300px); }
  .quote { width: 300px; height: 300px; padding: 34px 26px; }
  .quote::before { font-size: 3.4rem; top: 8px; left: 19px; }
  .quote blockquote { font-size: 1.06rem; margin: 22px 0 14px; }
  .vt-ring { height: 320px; }
  .vt-card { width: 300px; }
  .vt-circle { width: 300px; height: 300px; }
  .vt-cover { padding: 0 42px; }
  .vt-cover h3 { font-size: 1.5rem; }
  .vt-desc { font-size: 0.96rem; }
  .vt-play { width: 42px; height: 42px; margin-bottom: 14px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .nav, .nav-cta { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }

  /* Hero : texte centré au milieu (plus de photo à contourner) */
  .hero-text {
    width: min(92vw, 600px);
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .hero-overlay::before {
    background: radial-gradient(80% 60% at 50% 50%,
      rgba(5, 5, 5, 0.60) 0%,
      rgba(5, 5, 5, 0.28) 60%,
      rgba(5, 5, 5, 0) 100%);
  }
  .hero-title { font-size: clamp(2.2rem, 7vw, 3.4rem); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .portfolio-grid, .services-grid, .steps { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 265px; }
  .quote { width: 265px; height: 265px; padding: 28px 22px; }
  .quote::before { font-size: 3rem; top: 6px; left: 16px; }
  .quote blockquote { font-size: 0.97rem; margin: 20px 0 12px; }
  .quote figcaption strong { font-size: 14px; }
  .quote figcaption span { font-size: 11px; }
  .services-grid { border: 1px solid var(--line-soft); }

  /* Hero compact sur mobile */
  .hero-text .eyebrow { margin-bottom: 14px; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.5rem); margin-bottom: 18px; }
  .hero-sub { font-size: 0.97rem; line-height: 1.6; margin-bottom: 22px; }
  .scroll-cue { display: none; }

  .vt-ring { height: 285px; }
  .vt-card { width: 265px; }
  .vt-circle { width: 265px; height: 265px; }
  .vt-cover { padding: 0 34px; }
  .vt-cover h3 { font-size: 1.34rem; margin-bottom: 5px; }
  .vt-role { font-size: 9.8px; margin-bottom: 11px; }
  .vt-desc { font-size: 0.88rem; line-height: 1.44; }
  .vt-play { width: 38px; height: 38px; margin-bottom: 12px; }
  .vt-play svg { width: 15px; height: 15px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .contact-form { padding: 32px 24px; }
}

/* ---------- Préférence mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
