/* =====================================================================
   BATTEMENT PRODUCTION — V2
   Palette : noir chaud + or (charte actuelle) + couleurs d'accent par type
   Polices : Bricolage Grotesque (titres) · Instrument Serif (accents) · Inter (texte)
===================================================================== */

@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --acc  { syntax: '<color>'; inherits: true; initial-value: #F3CD44; }
@property --acc2 { syntax: '<color>'; inherits: true; initial-value: #FF8A3D; }

:root {
  --bg: #0A0805;
  --bg-2: #110D08;
  --surface: #17120B;
  --surface-2: #211A10;
  --line: rgba(254, 244, 211, 0.09);
  --line-2: rgba(254, 244, 211, 0.16);
  --cream: #FEF4D3;
  --text: #EDE6D3;
  --muted: #A3967A;
  --gold: #D8AD48;
  --yellow: #F3CD44;
  --red: #E0303F;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Grain cinéma très léger */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--yellow); color: #1a1405; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(224,48,63,.6); animation: rec 1.6s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(224,48,63,.55); } 70% { box-shadow: 0 0 0 9px rgba(224,48,63,0); } 100% { box-shadow: 0 0 0 0 rgba(224,48,63,0); } }

h1, h2, h3 { font-family: var(--f-display); color: var(--cream); font-weight: 700; letter-spacing: -0.035em; line-height: .98; }
h2 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); }
h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.02em; }
em, .serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  color: var(--yellow); letter-spacing: -0.01em;
}
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 46ch; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.45rem; border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: linear-gradient(135deg, #F6D766, #D8AD48); color: #1A1405; box-shadow: 0 10px 30px -8px rgba(243,205,68,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { box-shadow: 0 16px 40px -8px rgba(243,205,68,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--cream); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: .65rem 1.1rem; font-size: .88rem; }

/* =====================================================================
   NAVIGATION — pilule flottante
===================================================================== */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(820px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(17, 13, 8, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, box-shadow .4s, top .4s var(--ease);
}
.nav.scrolled { background: rgba(17, 13, 8, .82); box-shadow: 0 12px 40px -12px rgba(0,0,0,.8); }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 700; color: var(--cream); letter-spacing: -0.02em; }
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo span { font-size: 1rem; }
.nav-links { display: flex; gap: .2rem; }
.nav-links a { padding: .55rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); background: rgba(255,255,255,.06); }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06); position: relative; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-burger span:nth-child(1) { top: 17px; } .nav-burger span:nth-child(2) { top: 24px; }
.menu-open .nav-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .nav-burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(10,8,5,.96); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 0 28px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mobile-menu a { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; color: var(--cream); letter-spacing: -0.03em; }
.mobile-menu .btn { margin-top: 1.5rem; align-self: flex-start; font-family: var(--f-body); font-size: 1rem; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
@media (max-width: 820px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-burger { display: block; }
}

/* =====================================================================
   HERO
===================================================================== */
.hero { padding: clamp(120px, 16vh, 170px) 0 0; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; top: -10%; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(216,173,72,.22), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-title {
  font-size: clamp(2.6rem, 1rem + 6.4vw, 6.4rem);
  margin: 1.4rem auto 1.4rem; max-width: 15ch;
}
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(40%); filter: blur(8px); animation: wordIn .9s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.hero-title em { position: relative; font-size: 1.08em; white-space: nowrap; }
.pulse-line { position: absolute; left: -2%; right: -2%; bottom: -.18em; height: .32em; width: 104%; overflow: visible; }
.pulse-line path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s 1s var(--ease) forwards, beat 2.4s 2.6s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beat { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.chip-video {
  display: inline-block; vertical-align: middle; width: 1.55em; height: .9em; margin: 0 .08em; border-radius: .22em; overflow: hidden;
  transform: rotate(-4deg) translateY(-.06em); box-shadow: 0 10px 30px -10px rgba(243,205,68,.6); border: 2px solid rgba(254,244,211,.8);
}
.chip-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-sub { margin: 0 auto; max-width: 54ch; color: var(--muted); font-size: clamp(1rem, .95rem + .35vw, 1.18rem); }
.hero-ctas { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-proof { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .8rem; font-size: .85rem; color: var(--muted); }
.logo-stack { display: flex; }
.logo-stack img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--bg); margin-left: -8px; }
.logo-stack img:first-child { margin-left: 0; }

.hero-stage { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding: 0 var(--gutter); }
.hero-frame {
  position: relative; max-width: 1240px; margin: 0 auto; aspect-ratio: 16/8.2; border-radius: var(--r-xl); overflow: hidden;
  transform: scale(var(--s, .88)); transform-origin: center top; transition: transform .1s linear;
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(216,173,72,.35);
}
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.frame-ui { position: absolute; inset: 0; pointer-events: none; font: 600 .78rem/1 var(--f-body); color: #fff; letter-spacing: .06em; }
.frame-ui > * { position: absolute; display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: 999px; background: rgba(0,0,0,.42); backdrop-filter: blur(8px); }
.frame-ui .tl { top: 18px; left: 18px; } .frame-ui .tr { top: 18px; right: 18px; font-variant-numeric: tabular-nums; }
.frame-ui .bl { bottom: 18px; left: 18px; } .frame-ui .br { bottom: 18px; right: 18px; pointer-events: auto; }
.frame-corners::before, .frame-corners::after { content: ''; position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.7); }
.frame-corners { position: absolute; inset: 60px; pointer-events: none; }
.frame-corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame-corners::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.float-tag {
  position: absolute; z-index: 3; padding: .55rem .95rem; border-radius: 999px; font-weight: 600; font-size: .85rem;
  color: #120d05; background: var(--c); box-shadow: 0 14px 30px -10px var(--c);
  transform: translateY(var(--py, 0)) rotate(var(--rot, 0deg)); transition: transform .2s linear;
}
@media (max-width: 760px) {
  .hero-frame { aspect-ratio: 4/5; }
  .frame-corners { inset: 34px; }
  .float-tag { display: none; }
}

/* =====================================================================
   CONFIANCE — marquee
===================================================================== */
.trust { padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.trust-title { text-align: center; font-size: .85rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 2rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-tile {
  height: 92px; min-width: 150px; padding: 0 1.4rem; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(255,255,255,.025); display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: background .3s, border-color .3s;
}
.logo-tile img { max-height: 60px; max-width: 120px; object-fit: contain; opacity: .85; transition: opacity .4s, transform .4s var(--ease); border-radius: 8px; }
.logo-tile:hover { background: rgba(255,255,255,.06); border-color: var(--line-2); }
.logo-tile:hover img { opacity: 1; transform: scale(1.08); }
.logo-tile.text { font-family: var(--f-display); font-weight: 700; color: var(--cream); font-size: 1.05rem; white-space: nowrap; }
.logo-tile.text small { font-family: var(--f-body); font-weight: 500; color: var(--muted); font-size: .8rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.stat { padding: 1.6rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.04), transparent); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); color: var(--cream); letter-spacing: -0.03em; line-height: 1.05; }
.stat b em { font-size: 1.05em; }
.stat span { color: var(--muted); font-size: .92rem; display: block; margin-top: .5rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* =====================================================================
   PROJETS — carrousel glissable
===================================================================== */
.projects { padding: clamp(4rem, 8vw, 7rem) 0; }
.track-ctrls { display: flex; gap: .5rem; align-items: center; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--cream); transition: background .25s, transform .25s; }
.round-btn:hover { background: rgba(255,255,255,.08); }
.track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter) 1rem;
  scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.track.dragging a { pointer-events: none; }
.p-card {
  position: relative; flex: 0 0 auto; height: clamp(360px, 52vh, 480px); border-radius: var(--r-lg); overflow: hidden;
  scroll-snap-align: start; background: var(--surface); isolation: isolate; user-select: none;
}
.p-card.h { width: clamp(300px, 46vw, 640px); }
.p-card.v { width: clamp(220px, 22vw, 290px); }
.p-card img, .p-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; -webkit-user-drag: none; }
.p-card video { opacity: 0; }
.p-card.playing video { opacity: 1; }
.p-card:hover img { transform: scale(1.05); }
.p-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,6,3,.92) 0%, rgba(8,6,3,.2) 45%, transparent 70%); z-index: 1; }
.p-tags { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: .4rem; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(10,8,5,.6); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.p-info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.p-info h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); }
.p-info p { color: rgba(237,230,211,.7); font-size: .88rem; margin-top: .35rem; }
.p-arrow { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; transition: background .3s, transform .4s var(--ease); }
.p-card:hover .p-arrow { background: var(--yellow); color: #1a1405; transform: rotate(-45deg); }
.p-card.more { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem; background: linear-gradient(150deg, #2a2110, #120d06); border: 1px solid var(--line-2); width: clamp(260px, 26vw, 340px); }
.p-card.more::after { display: none; }
.p-card.more h3 { font-size: 2.2rem; margin-bottom: 1.2rem; }

/* Curseur "Voir" */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  background: var(--yellow); color: #1a1405; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  pointer-events: none; transform: translate(var(--x), var(--y)) scale(0); transition: transform .25s var(--ease);
}
.cursor.on { transform: translate(var(--x), var(--y)) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* =====================================================================
   MÉTHODE — cartes empilées
===================================================================== */
.method { padding: clamp(4rem, 8vw, 7rem) 0; }
.steps { display: grid; gap: 1.2rem; }
.step {
  position: sticky; top: calc(96px + var(--i) * 18px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2) 70%);
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,.9);
  min-height: 420px;
}
.step-num { font-family: var(--f-serif); font-style: italic; font-size: 4.5rem; line-height: 1; color: var(--yellow); }
.step h3 { margin: .6rem 0 1rem; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); }
.step p { color: var(--muted); max-width: 42ch; }
.step-visual { position: relative; aspect-ratio: 16/11; border-radius: var(--r-lg); overflow: hidden; }
.step-visual img { width: 100%; height: 100%; object-fit: cover; }
.ui-card {
  position: absolute; left: 16px; bottom: 16px; padding: .9rem 1rem; border-radius: 14px; min-width: 210px;
  background: rgba(14,11,6,.78); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); font-size: .82rem;
}
.ui-card .file { display: flex; align-items: center; gap: .7rem; }
.ui-card .file + .file { margin-top: .55rem; }
.ui-card .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--c, #333); color: #120d05; font-weight: 800; font-size: .72rem; }
.ui-card small { display: block; color: var(--muted); font-size: .74rem; }
.ui-card .ok { margin-left: auto; color: #34D399; font-weight: 700; }
.ui-card.tr { left: auto; right: 16px; top: 16px; bottom: auto; min-width: 0; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; }
}

/* =====================================================================
   DEVIS À LA CARTE
===================================================================== */
.devis { padding: clamp(4rem, 8vw, 7rem) 0; transition: --acc .8s, --acc2 .8s; }
.devis-glow {
  position: absolute; inset: 10% 0 0; pointer-events: none; opacity: .5;
  background: radial-gradient(50% 45% at 75% 45%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%),
              radial-gradient(40% 40% at 20% 70%, color-mix(in srgb, var(--acc2) 18%, transparent), transparent 70%);
}
.devis-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.devis-head .lead { margin: 1rem auto 0; }
.configurator { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; align-items: start; }
.cfg-panel { padding: clamp(1.2rem, 2.5vw, 2rem); border-radius: var(--r-xl); background: rgba(23,18,11,.85); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.cfg-step + .cfg-step { margin-top: 1.9rem; }
.cfg-label { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--cream); margin-bottom: .9rem; font-size: .95rem; }
.cfg-label span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: rgba(255,255,255,.08); color: var(--muted); transition: background .4s, color .4s; }
.cfg-step.done .cfg-label span { background: var(--acc); color: #120d05; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.type {
  --c: #fff; position: relative; text-align: left; border-radius: var(--r-md); padding: 6px 6px 12px; border: 1.5px solid var(--line);
  background: rgba(255,255,255,.02); transition: border-color .35s, box-shadow .35s, transform .35s var(--ease), background .35s;
}
.type:hover { transform: translateY(-3px); border-color: var(--line-2); }
.type .thumb { aspect-ratio: 16/10; border-radius: 11px; overflow: hidden; position: relative; }
.type .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.6) brightness(.8); }
.type b { display: block; margin: .65rem .4rem 0; font-size: .92rem; color: var(--cream); font-weight: 600; line-height: 1.2; }
.type small { display: block; margin: .2rem .4rem 0; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.type .radio { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.type.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 18px 40px -18px var(--c); }
.type.on .thumb img { filter: none; transform: scale(1.06); }
.type.on .radio { background: var(--c); border-color: var(--c); }
.type.on .radio::after { content: '✓'; color: #120d05; font-size: .7rem; font-weight: 900; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.seg button { padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; color: var(--muted); font-weight: 500; transition: background .3s, color .3s; }
.seg button.on { background: var(--acc); color: #120d05; font-weight: 600; }
.cfg-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: .2rem; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.stepper button { width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; color: var(--cream); transition: background .25s; }
.stepper button:hover { background: rgba(255,255,255,.08); }
.stepper output { min-width: 3.2rem; text-align: center; font-weight: 700; color: var(--cream); font-variant-numeric: tabular-nums; }
.stepper-note { font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { padding: .55rem .95rem; border-radius: 999px; font-size: .86rem; border: 1px solid var(--line-2); color: var(--text); transition: background .3s, border-color .3s, color .3s; }
.chips button::before { content: '+ '; color: var(--muted); }
.chips button.on { background: color-mix(in srgb, var(--acc) 20%, transparent); border-color: var(--acc); color: var(--cream); }
.chips button.on::before { content: '✓ '; color: var(--acc); }
.cfg-foot { margin-top: 1.8rem; font-size: .82rem; color: var(--muted); }

/* Carte récap — couleurs dynamiques */
.summary {
  position: sticky; top: 96px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: #0f0b06; border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--acc) 60%, transparent);
  transition: border-color .8s, box-shadow .8s;
}
.summary::before {
  content: ''; position: absolute; inset: -40%; z-index: -1; opacity: .55; filter: blur(60px);
  background: conic-gradient(from var(--spin), var(--acc), transparent 30%, var(--acc2), transparent 70%, var(--acc));
  animation: spin 10s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
.summary-media { position: relative; aspect-ratio: 16/9; margin: 8px; border-radius: 22px; overflow: hidden; }
.summary-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform 1.2s var(--ease); }
.summary-media img.out { opacity: 0; transform: scale(1.08); }
.summary-media .tag { position: absolute; left: 12px; bottom: 12px; }
.summary-body { padding: 1rem 1.6rem 1.6rem; background: linear-gradient(to bottom, transparent, rgba(10,8,5,.55)); }
.summary-kicker { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255,255,255,.7); }
.pill-acc { padding: .3rem .7rem; border-radius: 999px; background: var(--acc); color: #120d05; font-weight: 700; font-size: .74rem; }
.summary h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); margin: .5rem 0 1rem; }
.summary ul { list-style: none; display: grid; gap: .45rem; font-size: .9rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px dashed rgba(255,255,255,.12); }
.summary li span:first-child { color: rgba(255,255,255,.6); }
.summary li span:last-child { color: var(--cream); font-weight: 600; text-align: right; }
.summary .price { display: flex; align-items: baseline; justify-content: space-between; margin: 1.3rem 0 .3rem; }
.summary .price b { font-family: var(--f-display); font-size: 2.2rem; color: #fff; letter-spacing: -0.03em; }
.summary .price small { color: rgba(255,255,255,.65); font-size: .82rem; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: .9rem 0 1.2rem; }
.progress i { height: 5px; border-radius: 4px; background: rgba(255,255,255,.12); transition: background .5s; }
.progress i.on { background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.btn-acc { width: 100%; justify-content: center; background: var(--acc); color: #120d05; padding: 1.05rem; font-size: 1rem; box-shadow: 0 14px 34px -12px var(--acc); transition: background .8s, box-shadow .8s, transform .35s var(--ease); }
.summary .alt { display: block; text-align: center; margin-top: .9rem; font-size: .88rem; color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .configurator { grid-template-columns: 1fr; }
  .summary { position: relative; top: 0; }
}
@media (max-width: 560px) { .types { grid-template-columns: repeat(2, 1fr); } }

/* Modale devis */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5,4,2,.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(520px, 100%); padding: 2rem; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); transform: translateY(20px); transition: transform .4s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box h3 { margin-bottom: .4rem; }
.modal-box p { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.field { display: grid; gap: .35rem; margin-bottom: .8rem; font-size: .82rem; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: var(--cream); font: inherit; font-size: .95rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acc); }
.modal-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }

/* =====================================================================
   RDV — calendrier
===================================================================== */
.rdv { padding: clamp(4rem, 8vw, 7rem) 0; }
.rdv-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rdv-contact { display: grid; gap: .6rem; margin-top: 2rem; }
.rdv-contact a { display: flex; align-items: center; gap: .8rem; color: var(--cream); font-weight: 500; }
.rdv-contact .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.socials { display: flex; gap: .6rem; margin-top: 1.6rem; }
.socials a { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--cream); transition: background .3s, color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--yellow); color: #120d05; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.cal { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; display: grid; grid-template-columns: 1fr; box-shadow: 0 40px 100px -40px rgba(216,173,72,.35); }
.cal-head { display: flex; gap: .9rem; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.cal-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #000; border: 1px solid var(--line-2); }
.cal-head b { color: var(--cream); display: block; }
.cal-head small { color: var(--muted); font-size: .82rem; }
.cal-body { display: grid; grid-template-columns: 1.3fr 1fr; }
.cal-month { padding: 1.2rem 1.4rem; }
.cal-month-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; color: var(--cream); font-weight: 600; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .72rem; color: var(--muted); padding-bottom: .4rem; text-transform: uppercase; }
.cal-grid button { aspect-ratio: 1; border-radius: 10px; font-size: .88rem; color: rgba(255,255,255,.25); cursor: default; }
.cal-grid button.av { color: var(--cream); background: rgba(243,205,68,.1); cursor: pointer; font-weight: 600; transition: background .25s; }
.cal-grid button.av:hover { background: rgba(243,205,68,.25); }
.cal-grid button.sel { background: var(--yellow); color: #120d05; }
.cal-slots { border-left: 1px solid var(--line); padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.cal-slots p { color: var(--muted); font-size: .85rem; margin-bottom: .3rem; text-transform: capitalize; }
.slot { padding: .75rem; border-radius: 12px; border: 1px solid var(--line-2); color: var(--cream); font-weight: 600; font-size: .9rem; transition: background .25s, border-color .25s; }
.slot:hover { border-color: var(--yellow); }
.slot.sel { background: var(--yellow); color: #120d05; border-color: var(--yellow); }
.cal-foot { padding: .9rem 1.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); gap: 1rem; }
@media (max-width: 900px) { .rdv-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cal-body { grid-template-columns: 1fr; } .cal-slots { border-left: 0; border-top: 1px solid var(--line); } }

/* =====================================================================
   FOOTER
===================================================================== */
.footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-top: 1px solid var(--line); margin-top: 2rem; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links div { display: grid; gap: .5rem; align-content: start; }
.footer-links b { color: var(--cream); font-size: .85rem; margin-bottom: .3rem; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .25s; }
.footer-links a:hover { color: var(--yellow); }
.footer-mark { margin: clamp(2.5rem, 6vw, 4rem) auto 1.5rem; width: 100%; opacity: .9; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--muted); }

/* =====================================================================
   PORTFOLIO
===================================================================== */
.pf-hero { padding: clamp(120px, 15vh, 160px) 0 clamp(3rem, 6vw, 5rem); }
.pf-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pf-hero h1 { font-size: clamp(2.8rem, 1.4rem + 5vw, 5.6rem); margin: 1.2rem 0 1.4rem; }
.pf-hero .lead { max-width: 48ch; }
.pf-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.pf-facts span { padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; color: var(--cream); }
.pf-facts span b { color: var(--yellow); font-weight: 700; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; height: clamp(420px, 44vw, 600px); }
.mosaic .m { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.mosaic .m:nth-child(1) { grid-row: span 2; }
.mosaic video { width: 100%; height: 100%; object-fit: cover; }
.mosaic .m .tag { position: absolute; left: 12px; bottom: 12px; }
.mosaic .m:nth-child(1) { animation: floaty 7s ease-in-out infinite; }
.mosaic .m:nth-child(3) { animation: floaty 8s 1s ease-in-out infinite reverse; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .pf-hero-grid { grid-template-columns: 1fr; } .mosaic { height: 480px; } }

.filters {
  position: sticky; top: 84px; z-index: 20; padding: .8rem 0; margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
}
.filters-inner { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.f-chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.f-chips::-webkit-scrollbar { display: none; }
.f-chip { --c: var(--cream); flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 500; color: var(--text); transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.f-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.f-chip sup { font-size: .7rem; color: var(--muted); }
.f-chip:hover { border-color: var(--c); }
.f-chip.on { background: var(--c); color: #120d05; border-color: var(--c); box-shadow: 0 8px 24px -10px var(--c); }
.f-chip.on i { background: #120d05; } .f-chip.on sup { color: rgba(18,13,5,.7); }
.search { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); min-width: 240px; background: rgba(255,255,255,.02); }
.search input { background: none; border: 0; color: var(--cream); font: inherit; font-size: .9rem; width: 100%; }
.search input:focus { outline: none; }
.pf-count { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 5rem; }
.pf-grid .p-card { width: auto; height: auto; aspect-ratio: 4/3.4; animation: cardIn .6s var(--ease) both; }
.pf-grid .p-card.big { grid-column: span 2; aspect-ratio: auto; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pf-empty { grid-column: 1 / -1; padding: 4rem 0; text-align: center; color: var(--muted); }
@media (max-width: 960px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pf-grid { grid-template-columns: 1fr; } .pf-grid .p-card.big { grid-column: auto; aspect-ratio: 4/3.4; } .search { min-width: 0; width: 100%; } }

.cta-band { margin: 0 auto 5rem; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-xl); text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(243,205,68,.18), transparent 60%), var(--surface); border: 1px solid var(--line-2); }
.cta-band .hero-ctas { margin-top: 1.6rem; }

/* ---------- Apparitions au scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .w { opacity: 1; transform: none; filter: none; }
}

/* =====================================================================
   MÉTHODE — illustrations d'interface (aucune image de projet)
===================================================================== */
.viz { background: radial-gradient(120% 90% at 0% 0%, #2a2112, #120e08 60%); border: 1px solid var(--line); }
.viz .ui-card { z-index: 3; }

/* 01 — Pré-production : scénario + storyboard */
.viz-pre .script {
  position: absolute; left: 7%; top: 9%; width: 46%; padding: 1rem 1.1rem; border-radius: 12px;
  background: #f6efdc; color: #2b2214; transform: rotate(-3deg); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
  display: flex; flex-direction: column; gap: .42rem;
}
.viz-pre .script b { font: 800 .78rem/1 var(--f-body); letter-spacing: .08em; }
.viz-pre .script small { font: 700 .58rem/1.2 'Courier New', monospace; color: #7a6a4a; margin-top: .35rem; }
.viz-pre .script i { display: block; height: 6px; border-radius: 3px; background: rgba(43,34,20,.18); }
.viz-pre .script i.hl { background: linear-gradient(90deg, #F3CD44, #F3CD44 60%, rgba(243,205,68,.4)); }
.viz-pre .board { position: absolute; right: 6%; top: 14%; width: 40%; display: grid; gap: .5rem; transform: rotate(3deg); }
.viz-pre .frame { border-radius: 10px; padding: .45rem; background: #1d170e; border: 1px solid var(--line-2); box-shadow: 0 16px 34px -18px rgba(0,0,0,.9); }
.viz-pre .frame svg { width: 100%; height: auto; aspect-ratio: 100/48; background: #f6efdc; border-radius: 6px; fill: none; stroke: #3a2e1a; stroke-width: 1.6; stroke-linecap: round; }
.viz-pre .frame span { display: block; margin-top: .3rem; font-size: .62rem; color: var(--muted); }
.viz-pre .swatches { position: absolute; left: 9%; bottom: 9%; display: flex; align-items: center; gap: .35rem; font-size: .7rem; color: var(--muted); }
.viz-pre .swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #120e08; margin-left: -8px; }
.viz-pre .swatches i:first-child { margin-left: 0; }
.viz-pre .swatches span { margin-left: .4rem; }
.viz-pre .checklist { left: auto; right: 6%; bottom: 7%; min-width: 0; }
.viz-pre .checklist .file { gap: .55rem; font-weight: 500; }
.viz-pre .checklist .ok { margin: 0; }
.viz-pre .todo { width: 13px; height: 13px; border-radius: 50%; border: 2px dashed var(--muted); animation: spinTodo 4s linear infinite; }
@keyframes spinTodo { to { transform: rotate(360deg); } }

/* 02 — Production : viseur caméra */
.viz-prod { background: #07060a; }
.viz-prod .bokeh { position: absolute; inset: 0; filter: blur(28px); }
.viz-prod .bokeh i { position: absolute; border-radius: 50%; opacity: .75; animation: drift 9s ease-in-out infinite alternate; }
.viz-prod .bokeh i:nth-child(1) { width: 45%; height: 60%; left: 8%; top: 20%; background: #F3CD44; }
.viz-prod .bokeh i:nth-child(2) { width: 35%; height: 50%; right: 10%; top: 8%; background: #E0303F; animation-delay: -3s; }
.viz-prod .bokeh i:nth-child(3) { width: 30%; height: 40%; right: 28%; bottom: 0; background: #FF8A3D; animation-delay: -5s; }
.viz-prod .bokeh i:nth-child(4) { width: 18%; height: 26%; left: 40%; top: 4%; background: #FEF4D3; opacity: .5; animation-delay: -7s; }
@keyframes drift { to { transform: translate(8%, -6%) scale(1.12); } }
.viz-prod .thirds { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.22) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.22) 66.66%, transparent calc(66.66% + .5px)),
    linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255,255,255,.22) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.22) 66.66%, transparent calc(66.66% + .5px)); }
.viz-prod .focus { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1.3; transform: translate(-50%, -50%); border: 2px solid #34D399; border-radius: 6px; animation: focus 3s ease-in-out infinite; }
@keyframes focus { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 45% { transform: translate(-50%, -50%) scale(1.12); opacity: .6; } 55% { transform: translate(-50%, -50%) scale(.96); opacity: 1; } }
.viz-prod .vf { position: absolute; display: flex; align-items: center; gap: .45rem; font: 600 .72rem/1 var(--f-body); color: #fff; letter-spacing: .06em; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.vf-tl { top: 16px; left: 16px; } .vf-tr { top: 16px; right: 16px; } .vf-bl { bottom: 18px; left: 16px; opacity: .85; }
.vf .tc { margin-left: .4rem; }
.batt { display: inline-flex; gap: 2px; padding: 2px; border: 1.5px solid #fff; border-radius: 3px; }
.batt i { width: 4px; height: 8px; background: #34D399; border-radius: 1px; }
.viz-prod .meters { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: auto auto; gap: 4px 6px; align-items: end; font: 700 .6rem/1 var(--f-body); color: #fff; }
.viz-prod .meters span { grid-row: 2; text-align: center; }
.viz-prod .meters div { grid-row: 1; display: flex; flex-direction: column-reverse; gap: 2px; animation: meter .9s steps(4) infinite alternate; }
.viz-prod .meters div:nth-of-type(2) { animation-duration: .7s; }
.viz-prod .meters i { width: 8px; height: 6px; border-radius: 1px; background: #34D399; }
.viz-prod .meters i:nth-child(n+6) { background: #F3CD44; } .viz-prod .meters i:nth-child(8) { background: #E0303F; }
@keyframes meter { from { clip-path: inset(70% 0 0 0); } to { clip-path: inset(10% 0 0 0); } }

/* 03 — Post-production : timeline de montage */
.viz-post .monitor { position: absolute; left: 5%; top: 7%; width: 56%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.viz-post .grade { position: absolute; inset: 0; background: linear-gradient(120deg, #3a2a10, #F3CD44 45%, #E0303F 80%, #2a0f20); animation: grade 6s ease-in-out infinite alternate; }
@keyframes grade { to { filter: hue-rotate(-35deg) saturate(1.3); } }
.viz-post .grade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.6%, rgba(255,255,255,.85) 50%, transparent 50.4%); }
.viz-post .monitor span { position: absolute; left: 10px; bottom: 8px; font-size: .62rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); padding: .25rem .5rem; border-radius: 999px; }
.viz-post .timeline { position: absolute; left: 5%; right: 5%; bottom: 7%; height: 34%; padding: .5rem .6rem; border-radius: 10px; background: #0d0a06; border: 1px solid var(--line-2); display: grid; grid-template-rows: auto 1fr 1fr 1fr; gap: 4px; }
.viz-post .ruler { display: flex; justify-content: space-between; font-size: .55rem; color: var(--muted); padding-left: 28px; font-variant-numeric: tabular-nums; }
.viz-post .trk { display: flex; gap: 6px; align-items: stretch; }
.viz-post .trk b { width: 22px; font-size: .58rem; color: var(--muted); display: grid; place-items: center; }
.viz-post .trk div { position: relative; flex: 1; }
.viz-post .trk i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 75%, #000); border: 1px solid var(--c); font: 600 .55rem/1 var(--f-body); font-style: normal; color: #0b0905; padding: 0 .35rem; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.viz-post .trk i.wave { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000) 0 2px, transparent 2px 4px), color-mix(in srgb, var(--c) 25%, #000); }
.viz-post .playhead { position: absolute; top: 4px; bottom: 4px; left: 34px; width: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); animation: play 7s linear infinite; }
.viz-post .playhead::before { content: ''; position: absolute; top: -2px; left: -4px; border: 5px solid transparent; border-top-color: var(--red); }
@keyframes play { to { left: calc(100% - 12px); } }
.viz-post .export { left: auto; right: 4%; top: 7%; bottom: auto; min-width: 0; width: 33%; }
.viz-post .export .file { gap: .5rem; font-size: .72rem; }
.viz-post .export small { font-size: .62rem; }
.viz-post .export .ico { width: 30px; height: 26px; font-size: .58rem; flex-shrink: 0; }


/* ajustements mise en page illustration 01 + curseur caché au chargement */
.cursor { --x: -200px; --y: -200px; }
.viz-pre .board { top: 8%; width: 34%; }
.viz-pre .frame:nth-child(3) { display: none; }
.viz-pre .checklist { left: 7%; right: auto; bottom: 6%; }
.viz-pre .swatches { left: auto; right: 7%; bottom: 9%; }

/* =====================================================================
   AJUSTEMENTS TÉLÉPHONE
===================================================================== */
.devis-bar { display: none; }
@media (max-width: 960px) {
  .devis-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: flex; align-items: center; gap: .75rem; padding: 10px 10px 10px 16px; border-radius: 999px;
    background: rgba(17,13,8,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent);
    box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--acc) 55%, transparent);
    transform: translateY(140%); transition: transform .45s var(--ease), border-color .8s, box-shadow .8s;
  }
  .devis-bar.show { transform: none; }
  .bar-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 12px var(--acc); flex-shrink: 0; }
  .bar-txt { flex: 1; min-width: 0; line-height: 1.15; }
  .bar-txt small { display: block; font-size: .7rem; color: var(--muted); }
  .bar-txt b { display: block; color: var(--cream); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .devis-bar .btn-acc { width: auto; padding: .7rem 1rem; font-size: .85rem; }
}
@media (max-width: 600px) {
  .hero-proof { flex-direction: column; gap: .6rem; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .cal-slots { display: grid; grid-template-columns: repeat(3, 1fr); }
  .cal-slots p { grid-column: 1 / -1; }
  .stat { padding: 1.2rem; }
  .p-card.h { width: 82vw; }
  .p-card.v { width: 56vw; }
  .step { padding: 1.2rem; }
  .step-num { font-size: 3.2rem; }
  .seg button { padding: .5rem .8rem; }
}

/* =====================================================================
   V2.1 — HALOS PROPRES + VERSION PLUS COMPACTE
===================================================================== */
:root { --max: 1160px; }

/* --- Halos : plus de bords coupés ni d'angles visibles --- */
.hero { overflow-x: clip; overflow-y: visible; }
.hero-glow { filter: none; width: min(1000px, 100%); background: radial-gradient(closest-side, rgba(216,173,72,.18), transparent); }
.hero-frame { box-shadow: 0 30px 90px -45px rgba(216,173,72,.45); }
/* Safari laisse "baver" le flou hors des coins arrondis : on le masque proprement */
.step-visual, .summary-media, .hero-frame, .p-card, .type .thumb { -webkit-mask-image: -webkit-radial-gradient(white, black); }
/* Carte devis : dégradé animé SANS filtre de flou (donc pas d'angles qui dépassent) */
@property --gx { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --gy { syntax: '<percentage>'; inherits: false; initial-value: 10%; }
.summary::before {
  inset: 0; filter: none; opacity: .5; animation: glowMove 9s ease-in-out infinite alternate;
  background:
    radial-gradient(55% 45% at var(--gx) var(--gy), var(--acc), transparent),
    radial-gradient(50% 50% at calc(100% - var(--gx)) calc(100% - var(--gy)), var(--acc2), transparent);
}
@keyframes glowMove { to { --gx: 80%; --gy: 40%; } }
.summary { box-shadow: 0 24px 60px -35px color-mix(in srgb, var(--acc) 70%, transparent); }
.cal { box-shadow: 0 30px 70px -45px rgba(216,173,72,.45); }

/* --- Rythme général --- */
.hero { padding-top: clamp(108px, 13vh, 136px); }
.hero-title { font-size: clamp(2.3rem, 1rem + 4.4vw, 4.5rem); margin: 1.1rem auto; max-width: 16ch; }
.hero-sub { font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }
.hero-ctas { margin-top: 1.5rem; }
.hero-proof { margin-top: 1.2rem; font-size: .8rem; }
.hero-stage { margin-top: clamp(2rem, 4vw, 3.2rem); }
.hero-frame { max-width: 1060px; }
.eyebrow { font-size: .75rem; padding: .38rem .8rem; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.2rem); }
.lead { font-size: .98rem; }
.btn { padding: .8rem 1.25rem; font-size: .9rem; }
.btn-sm { padding: .55rem 1rem; font-size: .84rem; }
.trust { padding: clamp(3rem, 6vw, 4.5rem) 0 1rem; }
.projects, .method, .devis, .rdv { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.logo-tile { height: 70px; min-width: 120px; padding: 0 1.1rem; }
.logo-tile img { max-height: 44px; max-width: 100px; }
.logo-tile.text { font-size: .92rem; }
.stats { margin-top: 2rem; gap: .8rem; }
.stat { padding: 1.15rem 1.3rem; border-radius: 18px; }
.stat b { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); }
.stat span { font-size: .85rem; margin-top: .35rem; }
.round-btn { width: 42px; height: 42px; }
.p-card { height: clamp(290px, 40vh, 380px); border-radius: 20px; }
.p-card.h { width: clamp(280px, 36vw, 500px); }
.p-card.v { width: clamp(190px, 17vw, 225px); }
.p-info h3 { font-size: clamp(1.1rem, .95rem + .5vw, 1.35rem); }
.p-info p { font-size: .8rem; }
.tag { font-size: .7rem; padding: .32rem .6rem; }
.p-arrow { width: 34px; height: 34px; }
.cursor { width: 72px; height: 72px; margin: -36px 0 0 -36px; font-size: .78rem; }

/* --- Méthode : les 3 étapes visibles d'un coup, sans scroll bloqué --- */
.steps { grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.step {
  position: relative; top: auto; grid-template-columns: 1fr; gap: .9rem; align-content: start;
  min-height: 0; padding: .7rem .7rem 1.2rem; border-radius: 22px; box-shadow: none;
}
.step-visual { order: -1; aspect-ratio: 560 / 385; border-radius: 15px; }
.step > div:not(.step-visual) { padding: 0 .45rem; }
.step-num { font-size: 1.7rem; vertical-align: -.05em; }
.step h3 { display: inline; margin: 0 0 0 .4rem; font-size: 1.3rem; }
.step p { margin-top: .55rem; font-size: .88rem; line-height: 1.5; }
/* l'illustration est dessinée à 560 px puis mise à l'échelle de la carte (cf. v2.js) */
.viz-stage { position: absolute; left: 0; top: 0; width: 560px; height: 385px; transform-origin: 0 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { padding: .7rem .7rem 1.1rem; } }

/* --- Devis : carte plus compacte, à la Ere --- */
.devis-head { margin-bottom: 2rem; }
.configurator { max-width: 980px; margin: 0 auto; grid-template-columns: 1.45fr 1fr; gap: .8rem; }
.cfg-panel { padding: clamp(1rem, 2vw, 1.4rem); border-radius: 22px; }
.cfg-step + .cfg-step { margin-top: 1.2rem; }
.cfg-label { font-size: .86rem; margin-bottom: .65rem; }
.cfg-label span { width: 20px; height: 20px; font-size: .68rem; }
.types { gap: .5rem; }
.type { padding: 4px 4px 8px; border-radius: 13px; }
.type .thumb { aspect-ratio: 16/9; border-radius: 9px; }
.type b { font-size: .8rem; margin: .45rem .3rem 0; }
.type small { font-size: .68rem; margin: .1rem .3rem 0; }
.type .radio { width: 17px; height: 17px; right: 9px; top: 9px; }
.type.on .radio::after { font-size: .6rem; }
.seg button { padding: .42rem .8rem; font-size: .8rem; }
.stepper button { width: 30px; height: 30px; font-size: 1rem; }
.stepper output { min-width: 2.6rem; font-size: .9rem; }
.stepper-note { font-size: .74rem; }
.chips { gap: .4rem; }
.chips button { padding: .42rem .75rem; font-size: .78rem; }
.cfg-foot { margin-top: 1.2rem; font-size: .76rem; }
.summary { top: 88px; border-radius: 22px; }
.summary-media { aspect-ratio: 16/8.5; margin: 6px; border-radius: 17px; }
.summary-body { padding: .7rem 1.1rem 1.1rem; }
.summary-kicker { font-size: .75rem; }
.pill-acc { font-size: .68rem; padding: .25rem .6rem; }
.summary h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); margin: .35rem 0 .7rem; }
.summary ul { font-size: .78rem; gap: .3rem; }
.summary li { padding-bottom: .3rem; }
.progress { margin: .7rem 0 .8rem; }
.summary .price { margin: .8rem 0 .1rem; }
.summary .price b { font-size: 1.5rem; }
.summary .price small { font-size: .74rem; }
.btn-acc { padding: .8rem; font-size: .88rem; }
.summary .alt { font-size: .78rem; margin-top: .6rem; }

/* --- RDV --- */
.rdv-grid { max-width: 1000px; margin: 0 auto; gap: clamp(1.5rem, 4vw, 3rem); }
.cal { border-radius: 22px; }
.cal-head { padding: .9rem 1.1rem; }
.cal-head img { width: 38px; height: 38px; }
.cal-month { padding: .9rem 1.1rem; }
.cal-grid button { font-size: .8rem; border-radius: 8px; }
.cal-slots { padding: .9rem; gap: .4rem; }
.slot { padding: .55rem; font-size: .82rem; }
.cal-foot { padding: .7rem 1.1rem; }
.socials a { width: 42px; height: 42px; }

/* --- Portfolio --- */
.pf-hero { padding: clamp(108px, 13vh, 136px) 0 clamp(2.5rem, 5vw, 4rem); }
.pf-hero h1 { font-size: clamp(2.4rem, 1.2rem + 3.4vw, 4.2rem); margin: 1rem 0 1.1rem; }
.mosaic { height: clamp(340px, 34vw, 460px); gap: .6rem; }
.f-chip { padding: .5rem .85rem; font-size: .82rem; }
.search { padding: .5rem .9rem; }
.pf-grid { gap: .8rem; }
.pf-grid .p-card { height: auto; }
.cta-band { padding: clamp(1.8rem, 4vw, 3rem); }

/* --- Footer simple --- */
.footer { padding: 2.5rem 0 1.5rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.footer-tag { font-family: var(--f-display); font-weight: 700; color: var(--cream); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; max-width: 16ch; }
.footer-mini { color: var(--muted); font-size: .82rem; margin-top: .6rem; }
.footer-links { gap: 2.5rem; }
.footer-links b { font-size: .8rem; }
.footer-links a { font-size: .85rem; }

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .p-card.h { width: 80vw; }
  .p-card.v { width: 52vw; }
  .footer-links { gap: 1.5rem; }
}

/* =====================================================================
   PORTFOLIO — VIDÉOS SIGNATURES (format vertical, comme sur Instagram)
===================================================================== */
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; align-items: start; }
.sig {
  position: relative; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 60% at 20% 15%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
              radial-gradient(80% 60% at 90% 95%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 70%), #120e08;
  border: 1px solid var(--line-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.sig:nth-child(2) { margin-top: 2.2rem; }
.sig:nth-child(3) { margin-top: 1.1rem; }
.sig:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 24px 50px -24px var(--c); }
.sig video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.sig::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,6,3,.85), transparent 55%); }
.sig-num { position: absolute; top: 12px; left: 14px; font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; color: #fff; opacity: .9; }
.sig-play {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 3px; font-size: .95rem; color: #120d05; background: var(--c);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); animation: sigPulse 2.4s infinite;
  transition: transform .4s var(--ease);
}
.sig:hover .sig-play { transform: translate(-50%, -50%) scale(1.12); }
@keyframes sigPulse { 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.sig-txt { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.sig-txt small { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.sig-txt b { display: block; margin-top: .25rem; font-family: var(--f-display); font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); color: var(--cream); line-height: 1.1; letter-spacing: -.02em; }
.sig-txt em { color: var(--c); }
@media (max-width: 600px) {
  .signatures { gap: .5rem; }
  .sig { border-radius: 14px; }
  .sig-play { width: 40px; height: 40px; font-size: .8rem; }
  .sig-num { font-size: 1.2rem; }
  .sig-txt { left: 9px; right: 9px; bottom: 10px; }
  .sig-txt small { font-size: .55rem; }
  .sig-txt b { font-size: .85rem; }
}

/* --- Portfolio : barre de filtres sur une seule ligne, fond plein --- */
.filters { top: 76px; padding: .6rem 0; background: rgba(10,8,5,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.filters-inner { flex-wrap: nowrap; }
.f-chips { flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.search { flex: 0 0 220px; min-width: 0; }
.pf-count { margin-top: .4rem; }
@media (max-width: 700px) {
  .filters-inner { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
}

/* --- Carte "Votre projet" en fin de grille --- */
.cta-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .8rem; padding: 1.4rem;
  background: radial-gradient(70% 90% at 100% 0%, rgba(243,205,68,.22), transparent 60%), linear-gradient(150deg, #241b0d, #120d06);
  border: 1px solid var(--line-2); min-height: 220px;
}
.cta-card::after { display: none; }
.cta-card h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.cta-card:hover { border-color: var(--yellow); }
.pf-grid .p-card.cta-card { aspect-ratio: auto; }

/* --- Vidéos signatures : format horizontal (1 grande + 2 petites) --- */
.signatures { grid-template-columns: 1fr 1fr; gap: .7rem; }
.sig { aspect-ratio: 5/4; margin-top: 0 !important; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.sig.sig-big { grid-column: 1 / -1; aspect-ratio: 16/9; }
.sig video { z-index: -2; }
.sig::after { z-index: -1; background: linear-gradient(to top, rgba(8,6,3,.85), transparent 50%); }
.sig .sig-play { top: 50%; opacity: .92; }
.sig-big .sig-play { width: 62px; height: 62px; font-size: 1.1rem; }
.sig-big .sig-txt b { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }

/* --- Lecteur plein écran --- */
.player { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(5,4,2,.88); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.player.open { opacity: 1; pointer-events: auto; }
.player-box { width: min(1100px, 100%); transform: scale(.96); transition: transform .4s var(--ease); }
.player.open .player-box { transform: none; }
.player-top { display: flex; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.player-top b { font-family: var(--f-display); color: var(--cream); font-size: 1.2rem; flex: 1; }
.player-top a { font-size: .85rem; color: var(--muted); }
.player-top a:hover { color: var(--yellow); }
.player-close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.player-close:hover { background: var(--yellow); color: #120d05; }
.player video { width: 100%; max-height: 80vh; border-radius: 16px; background: #000; }

/* --- Bouton son de la vidéo de présentation --- */
.frame-ui .sound-btn { cursor: pointer; font: 600 .78rem/1 var(--f-body); letter-spacing: .04em; color: #120d05; background: var(--yellow); border: 0; box-shadow: 0 8px 24px -8px rgba(243,205,68,.7); transition: transform .3s var(--ease), background .3s; animation: soundHint 2.4s 2s ease-in-out 3; }
.frame-ui .sound-btn:hover { transform: scale(1.05); }
.frame-ui .sound-btn.on { background: rgba(0,0,0,.45); color: #fff; box-shadow: none; animation: none; }
@keyframes soundHint { 50% { transform: scale(1.08); } }

/* --- Contrôles de la vidéo de présentation (son + pause) --- */
.frame-ui .sound-btn { display: none; } /* ancienne version */
.vid-ctrls { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; pointer-events: auto; z-index: 4; }
.vid-ctrls button { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.vid-ctrls svg { width: 20px; height: 20px; fill: currentColor; }
.pause-btn { width: 52px; height: 52px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25) !important; transition: background .3s, transform .3s var(--ease); }
.pause-btn:hover { background: rgba(0,0,0,.65); transform: scale(1.06); }
.pause-btn .i-play { display: none; }
.pause-btn.paused .i-play { display: block; } .pause-btn.paused .i-pause { display: none; }

.vid-ctrls .sound-btn {
  display: inline-flex !important; position: relative; overflow: hidden; gap: .6rem; height: 52px; padding: 0 1.4rem 0 1.15rem; border-radius: 999px;
  font: 700 .95rem/1 var(--f-body); color: #1a1405; background: linear-gradient(135deg, #FFE27A, #D8AD48);
  box-shadow: 0 12px 34px -8px rgba(243,205,68,.8), 0 0 0 0 rgba(243,205,68,.5), inset 0 1px 0 rgba(255,255,255,.6);
  animation: soundRing 2.2s ease-out infinite; transition: transform .3s var(--ease);
}
.vid-ctrls .sound-btn:hover { transform: scale(1.05); }
/* reflet qui traverse le bouton */
.vid-ctrls .sound-btn::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes soundRing { 0% { box-shadow: 0 12px 34px -8px rgba(243,205,68,.8), 0 0 0 0 rgba(243,205,68,.55), inset 0 1px 0 rgba(255,255,255,.6); } 70%, 100% { box-shadow: 0 12px 34px -8px rgba(243,205,68,.8), 0 0 0 16px rgba(243,205,68,0), inset 0 1px 0 rgba(255,255,255,.6); } }
.sound-btn .i-waves { display: none; }
.sound-btn.on .i-waves { display: block; } .sound-btn.on .i-mute { display: none; }
.vid-ctrls .sound-btn.on { color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); box-shadow: none; animation: none; border: 1px solid rgba(255,255,255,.25); }
.vid-ctrls .sound-btn.on::after { display: none; }
@media (max-width: 600px) {
  .vid-ctrls { bottom: 16px; }
  .pause-btn { width: 44px; height: 44px; }
  .vid-ctrls .sound-btn { height: 44px; font-size: .85rem; padding: 0 1.1rem 0 .95rem; }
  .frame-ui .bl { display: none; }
}

/* --- Avis Google --- */
.avis { padding: clamp(3rem, 6vw, 5rem) 0; }
.g-badge { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.2rem .8rem .8rem; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); transition: border-color .3s, transform .3s var(--ease); }
.g-badge:hover { border-color: var(--yellow); transform: translateY(-2px); }
.g-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #4285F4; font: 800 1.4rem/1 var(--f-body); }
.g-badge b { display: block; color: var(--cream); font-family: var(--f-display); font-size: 1.15rem; }
.g-stars { color: #FBBC05; letter-spacing: 2px; font-size: .85rem; }
.g-badge small { display: block; color: var(--muted); font-size: .76rem; }
.reviews { margin-bottom: 1.5rem; }
.reviews-track { animation-duration: 70s; align-items: stretch; }
.review { width: 320px; flex-shrink: 0; padding: 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.review-top { display: flex; align-items: center; gap: .7rem; }
.review-top img, .review-top .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-top .avatar { display: grid; place-items: center; background: var(--yellow); color: #120d05; font-weight: 800; }
.review-top b { display: block; color: var(--cream); font-size: .88rem; }
.review-top small { color: var(--muted); font-size: .74rem; }
.review-top .g-stars { margin-left: auto; font-size: .75rem; }
.review p { font-size: .86rem; color: var(--text); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.reviews-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 600px) { .review { width: 260px; } }

/* =====================================================================
   PAGE PROJET (inspirée de WeReal : grande vidéo, puis le reste en plus petit)
===================================================================== */
.pj { padding: clamp(96px, 12vh, 120px) 0 1rem; }
.pj-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; transition: color .25s; }
.pj-back:hover { color: var(--yellow); }
.pj-main {
  position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: #000;
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px -45px rgba(216,173,72,.45);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.pj-main video, .pj-main iframe, .pj-main .pj-img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.pj-bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%;
  background: var(--yellow); color: #120d05; font-size: 1.5rem; padding-left: 5px; box-shadow: 0 16px 40px -10px rgba(243,205,68,.8);
  transition: transform .3s var(--ease), opacity .3s; animation: sigPulse 2.4s infinite;
}
.pj-bigplay:hover { transform: translate(-50%, -50%) scale(1.08); }
.pj-main.playing .pj-bigplay { opacity: 0; pointer-events: none; }
.pj-ext { position: absolute; inset: 0; display: grid; place-items: center; }
.pj-ext img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(0) brightness(.6); }
.pj-ext-cta { position: relative; padding: .9rem 1.4rem; border-radius: 999px; background: var(--yellow); color: #120d05; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(243,205,68,.8); transition: transform .3s var(--ease); }
.pj-ext:hover .pj-ext-cta { transform: scale(1.05); }
.pj-main-title { margin-top: .6rem; font-size: .8rem; color: var(--muted); }

.pj-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(1.8rem, 4vw, 3rem); align-items: start; }
.pj-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pj-meta .tag { background: rgba(255,255,255,.04); }
.pj-year { font-size: .8rem; font-weight: 700; color: var(--yellow); margin-right: .3rem; }
.pj h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); margin: .8rem 0 .4rem; }
.pj-client { color: var(--muted); font-size: .9rem; }
.pj-intro { margin-top: 1.2rem; font-size: clamp(1rem, .95rem + .2vw, 1.1rem); line-height: 1.65; color: var(--text); max-width: 58ch; }
.pj-role { padding: 1.3rem 1.4rem; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.pj-role .eyebrow { margin-bottom: .9rem; }
.role-block + .role-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.role-block b { display: block; color: var(--cream); font-size: .92rem; margin-bottom: .45rem; }
.role-block ul { list-style: none; display: grid; gap: .35rem; }
.role-block li { position: relative; padding-left: 1.1rem; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.role-block li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

.pj-h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.pj-more { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pj-more .pj-h2 { margin-bottom: 1.2rem; }
.pj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.pj-item { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pj-thumb { position: relative; display: block; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .3s, transform .4s var(--ease); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.pj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pj-item:hover .pj-thumb { transform: translateY(-3px); border-color: var(--line-2); }
.pj-item:hover .pj-thumb img { transform: scale(1.05); }
.pj-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); color: var(--cream); background: radial-gradient(circle at 30% 20%, rgba(243,205,68,.18), transparent 60%); }
.pj-badge { position: absolute; left: 8px; bottom: 8px; padding: .3rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: #fff; background: rgba(10,8,5,.65); backdrop-filter: blur(8px); }
.pj-now { position: absolute; inset: 0; display: none; place-items: center; font-weight: 700; font-size: .8rem; color: #120d05; background: rgba(243,205,68,.82); }
.pj-item.current .pj-thumb { border-color: var(--yellow); }
.pj-item.current .pj-now { display: grid; }
.pj-item-title { display: block; margin-top: .5rem; font-size: .84rem; font-weight: 500; color: var(--cream); line-height: 1.3; }

.pj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pj-nav a { padding: 1.1rem 1.3rem; border-radius: 18px; border: 1px solid var(--line-2); transition: border-color .3s, background .3s; }
.pj-nav a:hover { border-color: var(--yellow); background: rgba(243,205,68,.05); }
.pj-nav a.next { text-align: right; }
.pj-nav small { display: block; color: var(--muted); font-size: .76rem; margin-bottom: .25rem; }
.pj-nav b { color: var(--cream); font-family: var(--f-display); font-size: 1.05rem; }
.pj-related { margin-top: clamp(2.5rem, 5vw, 4rem); }

@media (max-width: 900px) {
  .pj-body { grid-template-columns: 1fr; }
  .pj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pj-main { border-radius: 16px; }
  .pj-bigplay { width: 64px; height: 64px; font-size: 1.2rem; }
  .pj-nav { grid-template-columns: 1fr; }
  .pj-nav a.next { text-align: left; }
}

/* =====================================================================
   V2.2 — AJUSTEMENTS
===================================================================== */

/* --- Vidéo de présentation : son + pause en bas à droite, visibles au survol --- */
.frame-ui > .vid-ctrls { left: auto; right: 18px; bottom: 18px; transform: translateY(6px); padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; gap: .45rem; opacity: 0; transition: opacity .35s, transform .35s var(--ease); }
.hero-frame:hover .vid-ctrls, .vid-ctrls:focus-within { opacity: 1; transform: none; }
@media (hover: none) { .frame-ui > .vid-ctrls { opacity: 1; transform: none; } }
.pause-btn { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2) !important; }
.pause-btn svg { width: 14px; height: 14px; }
.vid-ctrls .sound-btn {
  height: auto; padding: .55rem .85rem; gap: .45rem; border-radius: 999px;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .04em; color: #120d05; background: var(--yellow);
  box-shadow: 0 8px 24px -8px rgba(243,205,68,.7); animation: none;
}
.vid-ctrls .sound-btn::after { display: none; }
.vid-ctrls .sound-btn svg { width: 15px; height: 15px; }
.vid-ctrls .sound-btn.on { background: rgba(0,0,0,.45); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.2); }
@media (max-width: 600px) { .frame-ui > .vid-ctrls { right: 12px; bottom: 12px; } .pause-btn { width: 34px; height: 34px; } .vid-ctrls .sound-btn { height: auto; font-size: .74rem; padding: .5rem .75rem; } }

/* --- Logo texte CSTAR --- */
.logo-tile.cstar { font-family: var(--f-body); font-weight: 800; letter-spacing: .08em; font-size: 1.1rem; }

/* --- Devis : carte gauche à la même hauteur que la carte droite --- */
.configurator { align-items: stretch; }
.summary { position: relative; top: auto; display: flex; flex-direction: column; }
.summary-body { flex: 1; display: flex; flex-direction: column; }
.summary .price { margin-top: auto; padding-top: .8rem; }
.cfg-panel { display: flex; flex-direction: column; }
.cfg-step + .cfg-step, .cfg-pair + .cfg-step, .cfg-step + .cfg-pair, .cfg-pair + .cfg-pair { margin-top: 1rem; }
.cfg-pair { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.cfg-pair .cfg-step + .cfg-step { margin-top: 0; }
.types .thumb { aspect-ratio: 16/8; }
.type small { display: none; }
.type b { margin-bottom: .1rem; }
.stepper-note { font-size: .7rem; margin-top: .35rem; }
.cfg-foot { margin-top: auto; padding-top: 1rem; }
.progress { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 760px) { .cfg-pair { grid-template-columns: 1fr; } }

/* --- Devis : visuel neutre tant que rien n'est choisi --- */
.summary-media { background: #0d0a06; }
.sum-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .7rem; text-align: center;
  background: radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%), #0d0a06;
  transition: opacity .6s;
}
.sum-placeholder.out { opacity: 0; }
.sum-placeholder img { width: 64px; height: 64px; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 6px 18px rgba(243,205,68,.4)); }
.sum-placeholder small { position: relative; z-index: 1; color: rgba(255,255,255,.7); font-size: .78rem; }
.ph-rings { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); }
.ph-rings i { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--acc) 60%, transparent); animation: ring 3s ease-out infinite; opacity: 0; }
.ph-rings i:nth-child(2) { animation-delay: 1s; } .ph-rings i:nth-child(3) { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.summary-media .sum-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform 1.2s var(--ease); }
.summary-media .sum-img.out { opacity: 0; transform: scale(1.08); }

/* --- Avis clients : cartes façon Ere --- */
.avis-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; margin-bottom: 2rem; }
.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.t-card { display: flex; flex-direction: column; gap: 1.1rem; min-height: 300px; padding: 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.t-stars { color: var(--yellow); letter-spacing: 4px; font-size: 1rem; }
.t-quote { flex: 1; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); line-height: 1.4; color: var(--cream); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.t-author { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.t-author img, .t-author .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.t-author .avatar { display: grid; place-items: center; background: var(--yellow); color: #120d05; font-weight: 800; }
.t-author b { display: block; color: var(--cream); font-size: .88rem; }
.t-author small { color: var(--muted); font-size: .75rem; }
/* carte mise en avant (comme la carte noire d'Ere, en version crème) */
.t-card.featured { background: linear-gradient(160deg, #FEF4D3, #E9D59A); border-color: transparent; transform: translateY(-10px); box-shadow: 0 30px 70px -35px rgba(243,205,68,.6); }
.t-card.featured .t-stars { color: #A0761A; }
.t-card.featured .t-quote, .t-card.featured .t-author b { color: #1a1405; }
.t-card.featured .t-author { border-color: rgba(26,20,5,.15); }
.t-card.featured .t-author small { color: #6b5a33; }
.t-card.featured .t-author .avatar { background: #1a1405; color: var(--yellow); }
.t-card.t-empty { grid-column: 1 / -1; max-width: 640px; margin: 0 auto; min-height: 0; text-align: center; align-items: center; transform: none; }
.t-empty-btn { background: #1a1405; color: var(--yellow); }
.t-nav { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.avis .reviews-actions { justify-content: center; margin-top: 1.6rem; }
@media (max-width: 860px) { .t-cards { grid-template-columns: 1fr; } .t-card.featured { transform: none; } .t-card { min-height: 0; } }
.types .thumb { aspect-ratio: 16/7; }
.cfg-foot { display: none; }
.cfg-panel { justify-content: space-between; }
[hidden] { display: none !important; }

/* =====================================================================
   PAGE MENTIONS LÉGALES
===================================================================== */
.legal { padding: clamp(108px, 13vh, 136px) 0 3rem; }
.legal-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal-head h1 { font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); margin: 1rem 0 .8rem; }
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.legal-toc { position: sticky; top: 96px; display: grid; gap: .25rem; padding: .6rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.legal-toc a { padding: .55rem .8rem; border-radius: 10px; font-size: .86rem; color: var(--muted); transition: background .25s, color .25s; }
.legal-toc a:hover { background: rgba(255,255,255,.05); color: var(--cream); }
.legal-body { display: grid; gap: .9rem; max-width: 760px; }
.legal-card { padding: clamp(1.2rem, 2.5vw, 1.8rem); border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-2)); scroll-margin-top: 100px; }
.legal-card h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-bottom: 1rem; }
.legal-card p { color: var(--text); font-size: .92rem; line-height: 1.7; }
.legal-card p + p { margin-top: .7rem; }
.legal-card a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.legal-card dl { display: grid; grid-template-columns: 190px 1fr; gap: .55rem 1rem; font-size: .9rem; }
.legal-card dt { color: var(--muted); }
.legal-card dd { color: var(--cream); }
.legal-card ul { list-style: none; display: grid; gap: .55rem; margin-top: .8rem; }
.legal-card li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--text); line-height: 1.6; }
.legal-card li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.legal-card li b { color: var(--cream); }
.legal-update { font-size: .78rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 800px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; }
  .legal-card dl { grid-template-columns: 1fr; gap: .1rem; }
  .legal-card dd { margin-bottom: .5rem; }
}

/* =====================================================================
   TÉLÉPHONE UNIQUEMENT (aucun effet sur ordinateur)
===================================================================== */
@media (max-width: 960px) {
  /* Devis : une seule colonne, chaque carte à sa hauteur naturelle */
  .configurator { grid-template-columns: 1fr; align-items: start; }
  .summary { position: relative; top: auto; }
  .summary-body { flex: none; }
  .summary .price { margin-top: .8rem; }
}
@media (max-width: 700px) {
  .types { grid-template-columns: repeat(2, 1fr); }
  .types .thumb { aspect-ratio: 16/8; }
  .type b { font-size: .78rem; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 auto; padding: .45rem .55rem; font-size: .76rem; }
  .summary-media { aspect-ratio: 16/8; }

  /* Méthode : cartes plus petites, qu'on fait défiler sur le côté */
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) .6rem; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 78%; scroll-snap-align: start; padding: .55rem .55rem .9rem; gap: .6rem; border-radius: 18px; }
  .step-visual { border-radius: 12px; }
  .step-num { font-size: 1.35rem; }
  .step h3 { font-size: 1.05rem; }
  .step p { font-size: .8rem; margin-top: .35rem; }
  .step > div:not(.step-visual) { padding: 0 .3rem; }
}

/* --- Formulaire de devis --- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.modal-box { max-height: calc(100vh - 32px); overflow-y: auto; }
.form-msg { min-height: 1.2em; font-size: .85rem; margin: .2rem 0 0; color: var(--muted); }
.form-msg.ok { color: #34D399; } .form-msg.err { color: #FF6B6B; }
#devis-send:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* --- Cal.com intégré --- */
.cal.cal-live { padding: .4rem; background: var(--surface); }

/* --- Cal.com : le calendrier prend toute la largeur sous le texte --- */
.rdv-grid:has(.cal-live) { grid-template-columns: 1fr; max-width: 1000px; }
.rdv-grid:has(.cal-live) > div:first-child { display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; align-items: end; }
.rdv-grid:has(.cal-live) > div:first-child > .eyebrow, .rdv-grid:has(.cal-live) > div:first-child > h2, .rdv-grid:has(.cal-live) > div:first-child > .lead { grid-column: 1; }
.rdv-grid:has(.cal-live) .rdv-contact { grid-column: 2; grid-row: 1 / 4; margin-top: 0; align-self: end; }
.rdv-grid:has(.cal-live) .socials { grid-column: 2; margin-top: 1rem; }
.cal.cal-live #cal-inline { min-height: 0 !important; }
@media (max-width: 760px) { .rdv-grid:has(.cal-live) > div:first-child { display: block; } .rdv-grid:has(.cal-live) .rdv-contact { margin-top: 1.5rem; } }

/* --- RDV : notre calendrier avec les vrais créneaux Cal.com --- */
.cal-arrows { display: flex; gap: .2rem; }
.cal-arrows button { width: 30px; height: 30px; border-radius: 8px; color: var(--cream); font-size: 1.1rem; transition: background .25s; }
.cal-arrows button:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.cal-arrows button:disabled { opacity: .25; cursor: default; }
.cal-grid.loading { opacity: .4; transition: opacity .2s; }
.cal-slots { max-height: 340px; }
.slot-list { display: grid; gap: .4rem; overflow-y: auto; padding-right: 4px; max-height: 290px; scrollbar-width: thin; }
#cal-confirm.disabled { opacity: .4; pointer-events: none; }
@media (max-width: 520px) { .slot-list { grid-template-columns: repeat(3, 1fr); max-height: 220px; } .cal-slots { max-height: none; } }

/* --- RDV téléphone : la liste des horaires prend toute la largeur --- */
@media (max-width: 600px) {
  .cal-slots { display: flex; flex-direction: column; }
  .slot-list { grid-template-columns: repeat(3, 1fr); width: 100%; }
}

/* --- Téléphone : vidéo de présentation horizontale en entier (16:9) + pilules autour, comme sur ordinateur --- */
@media (max-width: 760px) {
  .hero-stage { padding-top: 1.4rem; padding-bottom: 1.6rem; }
  .hero-frame { aspect-ratio: 16/9; border-radius: 18px; }
  .frame-corners { inset: 22px 30px; }
  .frame-corners::before, .frame-corners::after { width: 16px; height: 16px; }
  .frame-ui { font-size: .58rem; }
  .frame-ui > * { padding: .32rem .5rem; gap: .3rem; }
  .frame-ui .tl, .frame-ui .tr { top: 8px; } .frame-ui .tl { left: 8px; } .frame-ui .tr { right: 8px; }
  .frame-ui .bl { display: none; }
  .hero-stage { padding-top: 2.7rem; padding-bottom: 2.9rem; }
  .float-tag { display: block; font-size: .68rem; padding: .32rem .62rem; box-shadow: 0 8px 18px -8px var(--c); transform: rotate(var(--rot, 0deg)); }
  /* autour du cadre, jamais dessus : deux au-dessus, une en dessous */
  .hero-stage .float-tag:nth-of-type(1) { left: 5% !important; right: auto !important; top: 0 !important; bottom: auto !important; }
  .hero-stage .float-tag:nth-of-type(2) { right: 5% !important; left: auto !important; top: .35rem !important; bottom: auto !important; }
  .hero-stage .float-tag:nth-of-type(3) { left: 50% !important; right: auto !important; bottom: .2rem !important; top: auto !important; translate: -50% 0; }
}
@media (max-width: 760px) {
  .vid-ctrls { bottom: 8px; gap: .4rem; }
  .vid-ctrls .pause-btn { width: 30px; height: 30px; }
  .vid-ctrls .sound-btn { height: 30px; font-size: .66rem; padding: 0 .7rem 0 .6rem; gap: .3rem; }
  .vid-ctrls svg { width: 14px; height: 14px; }
}

/* --- Pilules du hero : changent de métier en fondu --- */
.float-tag { transition: transform .2s linear, opacity .35s ease, filter .35s ease; white-space: nowrap; }
.float-tag.swap { opacity: 0; filter: blur(4px); }
