/* ═══════════════════════════════════════════════════════════
   RBK BÂTIMENT — MAIN CSS
   Premium dark theme · Gold accent · Outfit + Syne
═══════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── TOKENS ── */
:root {
  --bg:       #111113;   /* Noir Satiné */
  --bg2:      #161618;   /* légèrement plus sombre */
  --bg3:      #1C1C1E;   /* encore plus sombre */
  --fg:       #f2ede4;   /* texte principal clair */
  --fg2:      #c8c0b0;   /* texte secondaire */
  --dim:      #b8b0a8;   /* texte atténué — éclairci pour lisibilité */
  --gold:     #c9a84c;
  --gold2:    #e8cc7a;
  --gold3:    #f5e0a0;
  --line:     rgba(255,255,255,0.07);
  --line2:    rgba(200,168,76,0.15);
  --radius:   0px;
  --ease:     cubic-bezier(.16,1,.3,1);
  --ease2:    cubic-bezier(.25,1,.5,1);
}

/* ── BASE ── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

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

/* ── TYPOGRAPHY ── */
.t-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .6rem; font-weight: 600; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gold);
}
.t-tag::before { content: ''; width: 20px; height: 1px; background: var(--gold); flex-shrink: 0; }

.t-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 9vw, 9.5rem);
  font-weight: 800; line-height: .92; letter-spacing: -.03em;
}
.t-h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800; line-height: .95; letter-spacing: -.025em;
}
.t-h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.015em;
}
em.gold { font-style: italic; font-weight: 400; color: var(--gold); }
.t-body {
  font-size: clamp(.94rem, 1vw + .3rem, 1.08rem);
  font-weight: 300; color: var(--dim); line-height: 1.85;
}
.t-body.wide { max-width: 580px; }
.t-body.narrow { max-width: 420px; }

/* ── CURSOR ── */
#cur, #cur2 {
  display: none; position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
#cur {
  width: 10px; height: 10px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(200,168,76,.6);
  transition: width .15s, height .15s, background .2s;
}
#cur2 {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(200,168,76,.75);
  transition: width .35s var(--ease2), height .35s var(--ease2), border-color .25s;
}
/* Doit venir APRÈS les règles de base pour l'écraser en cascade */
@media (pointer: fine) {
  body { cursor: none; }
  #cur, #cur2 { display: block; }
}
body.cursor-hover #cur  { width: 18px; height: 18px; }
body.cursor-hover #cur2 { width: 58px; height: 58px; border-color: rgba(200,168,76,.95); }
body.cursor-click #cur  { width: 6px; height: 6px; background: var(--gold2); }

/* ── PROGRESS BAR ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold2));
  z-index: 1001; width: 0; transition: width .08s linear;
}

/* ── PAGE LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity .8s var(--ease), visibility .8s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
  color: var(--fg); letter-spacing: -.02em;
}
.loader-logo span { color: var(--gold); }
.loader-bar { width: 180px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--gold); width: 0; animation: loaderFill 1.4s var(--ease) forwards; }
@keyframes loaderFill { to { width: 100%; } }
.loader-pct { font-size: .62rem; letter-spacing: .3em; color: var(--dim); }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem clamp(1.5rem, 5vw, 4rem);
  transition: background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(17,17,19,.95);
  backdrop-filter: blur(20px) saturate(1.5);
  border-color: var(--line);
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800;
  letter-spacing: .02em; color: #f2ede4;
  display: flex; align-items: center; gap: .45rem;
  transition: color .5s;
}
#nav.scrolled .nav-logo { color: #f2ede4; }
.nav-logo span { color: var(--gold); }
.nlm { color: var(--gold); flex-shrink: 0; transition: transform .4s var(--ease); }
.nav-logo:hover .nlm { transform: scale(1.08); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: .67rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(242,237,228,.75);
  transition: color .3s; position: relative;
}
#nav.scrolled .nav-links a { color: rgba(242,237,228,.75); }
#nav.scrolled .nav-links a:hover { color: #f2ede4; }
#nav.scrolled .nav-links a.active { color: #f2ede4; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transition: transform .3s var(--ease); transform-origin: left;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--fg); }

.nav-actions {
  display: flex; align-items: center; gap: .75rem;
}
.nav-tel {
  font-size: .62rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(242,237,228,.5);
  transition: color .3s;
}
.nav-tel:hover { color: rgba(242,237,228,.85); }
#nav.scrolled .nav-tel { color: rgba(242,237,228,.5); }
#nav.scrolled .nav-tel:hover { color: rgba(242,237,228,.85); }
.nav-devis {
  font-size: .63rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #09090b;
  background: linear-gradient(160deg, #E2C97E 0%, #C9A84C 60%, #A8862E 100%);
  padding: .52rem 1.25rem; border-radius: 99px;
  transition: opacity .25s, transform .2s; white-space: nowrap;
}
.nav-devis:hover { opacity: .88; transform: scale(1.04); }
.nav-devis:active { transform: scale(.97); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: .3rem;
}
.nav-burger span {
  width: 22px; height: 1px; background: #f2ede4;
  transition: transform .3s var(--ease), opacity .3s, background .5s;
  display: block;
}
#nav.scrolled .nav-burger span { background: #f2ede4; }
#nav.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav.open .nav-burger span:nth-child(2) { opacity: 0; }
#nav.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; }
}

/* ── MOBILE NAV ── */
#mobile-nav {
  position: fixed; inset: 0; z-index: 790;
  background: var(--bg); display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 2.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
#mobile-nav.open { opacity: 1; visibility: visible; }
#mobile-nav a {
  font-family: 'Syne', sans-serif; font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800; color: var(--dim); letter-spacing: -.02em;
  transition: color .3s;
}
#mobile-nav a:hover { color: var(--gold); }
#mobile-nav .mob-tel {
  font-size: .7rem; letter-spacing: .25em; color: var(--gold);
  text-transform: uppercase; margin-top: 1rem;
}
#mobile-nav .mob-devis {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #09090b;
  background: linear-gradient(160deg, #E2C97E 0%, #C9A84C 60%, #A8862E 100%);
  padding: .75rem 2rem; border-radius: 99px;
  margin-top: .5rem; display: inline-block;
}
#mobile-nav .mob-devis:hover { opacity: .88; }

/* ── LAYOUT HELPERS ── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 5rem); }
.section { padding: clamp(5rem, 12vh, 10rem) clamp(1.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.section.center { max-width: 1320px; margin: 0 auto; }
.section-full { padding: clamp(5rem, 12vh, 10rem) clamp(1.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 8rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .grid-3 { grid-template-columns: 1fr; } }

/* ── BUTTON STYLES ── */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: 'Syne', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .3s, color .3s;
  cursor: none;
}
.btn-gold { background: var(--gold); color: var(--bg); padding: 1rem 2.5rem; }
.btn-gold:hover { background: var(--gold2); transform: scale(1.03); }
.btn-outline {
  border: 1px solid rgba(200,168,76,.35); color: var(--gold);
  padding: .9rem 2.2rem; background: transparent;
}
.btn-outline:hover { background: rgba(200,168,76,.06); border-color: var(--gold); }
.btn-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

/* ── PHOTO SECTION TEXT — toujours blanc sur fond photo ── */
.hero-inner,
.page-hero-inner,
.fullphoto-inner,
.cta-inner { color: #f2ede4; }
.hero-inner .t-tag,
.page-hero-inner .t-tag { color: var(--gold); }
.hero-inner .t-body,
.page-hero-inner .t-body { color: rgba(242,237,228,.65); }
.hero-inner .hero-h1 { color: #f2ede4; }
.page-hero-inner h1 { color: #f2ede4; }
.page-hero-inner .breadcrumb,
.page-hero-inner .breadcrumb a { color: rgba(242,237,228,.5); }
.page-hero-inner .breadcrumb .current { color: var(--gold); }
.page-hero-inner .breadcrumb .sep { color: rgba(242,237,228,.2); }
.cta-inner h2 { color: #f2ede4; }

/* ── TICKER ── */
.ticker-wrap {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: .85rem 0; background: var(--bg);
}
.ticker-track { display: flex; white-space: nowrap; animation: ticker 28s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 1.2rem;
  font-family: 'Syne', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase; color: var(--dim);
  padding-right: 2.5rem;
}
.ticker-item b { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── MARQUEE TEXT ── */
.marquee-section {
  overflow: hidden; width: 100%; max-width: 100vw;
  padding: clamp(3rem, 9vh, 8rem) 0; border-bottom: 1px solid var(--line);
  /* force un layer GPU pour que overflow:hidden clippe correctement sous Safari */
  transform: translateZ(0);
}
.marquee-row {
  display: flex; white-space: nowrap;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 8vw, 7rem); /* réduit de 3.5rem → 2.2rem : évite le débordement mobile */
  font-weight: 800; line-height: 1.05;
  will-change: transform;
}
.marquee-row.row-a { animation: marqA 20s linear infinite; }
.marquee-row.row-b { animation: marqA 24s linear infinite reverse; }
.marquee-row span { padding: 0 2rem; color: transparent; -webkit-text-stroke: 1px rgba(201,168,76,.4); }
.marquee-row span.hl { color: var(--gold); -webkit-text-stroke: none; }
@keyframes marqA { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 480px) {
  .marquee-row span { padding: 0 1rem; } /* réduit les espaces inter-mots sur petit écran */
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.from-left  { transform: translateX(-40px) translateY(0); }
.reveal.from-right { transform: translateX(40px) translateY(0); }
.reveal.scale-in   { transform: scale(.94); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .22s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .52s; }
.reveal.d5 { transition-delay: .7s; }

/* ── SPLIT TEXT ── */
.split-word { display: inline-block; overflow: hidden; }
.split-word-inner { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .8s var(--ease), opacity .6s; }
.split-word.on .split-word-inner { transform: translateY(0); opacity: 1; }

/* ── PARALLAX CONTAINER ── */
.parallax-wrap { overflow: hidden; }
.parallax-img { transform: scale(1.15); will-change: transform; }

/* ── STAT ITEMS ── */
.stat-item { flex-shrink: 0; }
.stat-item .n {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 800; color: var(--fg); line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-item .n sup { font-size: .5em; color: var(--gold); vertical-align: super; }
.stat-item .l { font-size: .65rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-top: .4rem; }
/* Lock counter width to final value to prevent layout reflow during animation */
.counter { display: inline-block; min-width: var(--counter-w, auto); }

/* ── CARD BASE ── */
.card {
  background: var(--bg2); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: border-color .4s, transform .4s var(--ease);
}
.card:hover { border-color: var(--line2); transform: translateY(-3px); }
.card-glow::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(200,168,76,.08) 0%, transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.card:hover .card-glow::before { opacity: 1; }
.card-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold2));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover .card-bar { transform: scaleX(1); }

/* ── SERVICE CARDS GRID ── */
.services-border-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin-top: 3rem;
}
/* CTA centré dans sa cellule — même taille que les autres */
.services-border-grid > .svc-cell:last-child {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
@media (max-width: 750px) {
  .services-border-grid { grid-template-columns: 1fr 1fr; }
  .services-border-grid > .svc-cell:last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .services-border-grid { grid-template-columns: 1fr; }
  .services-border-grid > .svc-cell:last-child { grid-column: auto; }
}
.svc-cell {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  position: relative; overflow: hidden; transition: background .4s;
}
.svc-cell:hover { background: rgba(255,255,255,.025); }
.svc-cell-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.svc-cell:hover .svc-cell-bar { transform: scaleX(1); }
.svc-n { font-family: 'Syne', sans-serif; font-size: 2.8rem; font-weight: 800; color: rgba(255,255,255,.04); line-height: 1; margin-bottom: .8rem; }
.svc-ico { width: 1.8rem; height: 1.8rem; margin-bottom: .8rem; display: block; color: var(--gold); flex-shrink: 0; }
.svc-ico svg { width: 100%; height: 100%; }
.svc-title { font-size: .73rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.svc-desc { font-size: .88rem; font-weight: 300; color: var(--dim); line-height: 1.75; }

/* ── STICKY SCROLL PANELS ── */
.sticky-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 400vh; border-bottom: 1px solid var(--line); }
.sticky-left { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sticky-img-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: opacity .6s ease;
}
.sticky-img-layer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(17,17,19,0) 55%, rgba(17,17,19,1));
}
.sticky-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.sticky-bg-num {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  font-family: 'Syne', sans-serif; font-size: 9rem; font-weight: 800;
  color: rgba(255,255,255,.03); line-height: 1; pointer-events: none;
}
.sticky-right { padding: 0; }
.sticky-panel {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.sticky-panel:last-child { border-bottom: none; }
.sp-num { font-family: 'Syne', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); opacity: .6; margin-bottom: 1.8rem; }
.sp-list { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: .9rem; }
.sp-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: .93rem; font-weight: 300; color: var(--dim); line-height: 1.7; }
.sp-list li::before { content: '→'; color: var(--gold); flex-shrink: 0; }

/* Image par panel sur mobile — cachée sur desktop */
.sp-mobile-img {
  display: none;
  width: 100%; height: 52vw; min-height: 200px; max-height: 320px;
  background-size: cover; background-position: center;
  margin: 0 0 1.6rem;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.sp-mobile-img.on { opacity: 1; transform: translateY(0); }
.sp-mobile-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(17,17,19,.9));
}

@media (max-width: 860px) {
  .sticky-wrap { grid-template-columns: 1fr; min-height: auto; }
  .sticky-left { position: relative; height: 50vw; min-height: 260px; }
  .sticky-img-layer::after { background: linear-gradient(to bottom, transparent, rgba(17,17,19,1)); }
  .sticky-panel { min-height: auto; padding: 2.5rem 1.5rem; }
  /* Panel 01 : sp-mobile-img masqué (image déjà visible dans sticky-left) */
  .sticky-panel:first-child .sp-mobile-img { display: none !important; }
  /* Panels 02–04 : affichage avec animation on-scroll */
  .sticky-panel:not(:first-child) .sp-mobile-img { display: block; }
}

/* ── PROCESS STEPS ── */
.pstep {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  cursor: default; transition: padding-left .3s var(--ease), background .3s;
}
.pstep:first-child { border-top: 1px solid var(--line); }
.pstep:hover { padding-left: .6rem; background: rgba(255,255,255,.018); }
.pstep-n { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: rgba(200,168,76,.18); line-height: 1.3; }
.pstep h4 { font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--fg); margin-bottom: .4rem; }
.pstep p  { font-size: .88rem; font-weight: 300; color: var(--dim); line-height: 1.75; }

/* ── ZONES CHIPS ── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  padding: .4rem .95rem; border: 1px solid rgba(200,168,76,.2);
  color: var(--gold); background: rgba(200,168,76,.03);
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── CONTACT FORM ── */
.ff { display: flex; flex-direction: column; gap: .45rem; }
.ff label { font-size: .63rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.ff input, .ff textarea, .ff select {
  width: 100%; background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--fg); font-family: 'Outfit', sans-serif;
  font-size: .84rem; font-weight: 300;
  padding: .8rem 1rem; outline: none;
  border-radius: 0; appearance: none;
  transition: border-color .3s, background .3s;
}
.ff input:focus, .ff textarea:focus, .ff select:focus {
  border-color: rgba(200,168,76,.5);
  background: rgba(255,255,255,.04);
}
.ff textarea { resize: vertical; min-height: 100px; }
.ff select option { background: var(--bg); color: var(--fg); }

/* ── FULLPHOTO ── */
.fullphoto { position: relative; height: 75vh; overflow: hidden; display: flex; align-items: flex-end; }
.fullphoto-bg { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
.fullphoto-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,1) 0%, rgba(9,9,11,.55) 45%, rgba(9,9,11,.1) 100%);
}
.fullphoto-inner { position: relative; z-index: 2; padding: clamp(2.5rem, 5vw, 5rem); max-width: 1320px; width: 100%; }
.fp-quote {
  font-family: 'Syne', sans-serif; font-size: clamp(1.4rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.25; max-width: 680px; margin-bottom: 1.2rem;
}
.fp-attr {
  font-size: .65rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}

/* ── CTA SECTION ── */
.cta-section {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 15vh, 14rem) clamp(1.5rem, 5vw, 5rem);
  text-align: center;
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(.25) brightness(.35);
  transform: scale(1.05);
}
.cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(9,9,11,.5) 0%, rgba(9,9,11,.92) 100%);
}
.cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.cta-tel { margin-top: 1.5rem; font-size: .65rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.cta-tel a { color: var(--gold); transition: color .3s; }
.cta-tel a:hover { color: var(--gold2); }

/* ── CONTACT SECTION ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.contact-left { padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.contact-right { padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem); }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--line); }
}
.ci-list { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
.ci-item {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  transition: background .3s, padding-left .3s;
}
.ci-item:hover { padding-left: .4rem; }
.ci-ico {
  width: 40px; height: 40px; border: 1px solid rgba(200,168,76,.2);
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--gold); transition: background .3s, border-color .3s, color .3s;
}
.ci-ico svg { width: 16px; height: 16px; }
.ci-item:hover .ci-ico { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.ci-label { font-size: .63rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ci-val { font-size: .85rem; font-weight: 300; color: var(--fg); margin-top: .12rem; }

/* ── FOOTER ── */
footer {
  background: #0A0A0C;
  border-top: none;
}
.foot-gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,168,76,.5) 30%, rgba(200,168,76,.8) 50%, rgba(200,168,76,.5) 70%, transparent 100%);
}
.foot-inner {
  max-width: 1400px; margin: 0 auto;
  padding: clamp(3rem,6vw,5rem) clamp(1.5rem,5vw,5rem) clamp(2rem,4vw,3.5rem);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2rem,4vw,3.5rem);
}
@media (max-width: 1024px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .foot-inner { grid-template-columns: 1fr; } }

/* brand col */
.foot-brand {}
.foot-logo-link {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-bottom: 1.2rem; text-decoration: none;
}
.foot-logo-link .nlm { color: var(--gold); flex-shrink: 0; }
.foot-logo-texts { display: flex; flex-direction: column; line-height: 1; }
.foot-logo-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(1.3rem,2.5vw,1.7rem); letter-spacing: .08em;
  background: linear-gradient(160deg, #E2C97E 0%, #C9A84C 50%, #A8862E 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.foot-logo-sub {
  font-size: .58rem; letter-spacing: .4em; color: rgba(255,255,255,.2);
  text-transform: uppercase; font-weight: 500; margin-top: .25rem;
}
.foot-tagline {
  font-style: italic; color: rgba(200,168,76,.6);
  font-size: .8rem; line-height: 1.5; margin-bottom: 1.5rem; max-width: 22ch;
}
.foot-contacts { display: flex; flex-direction: column; gap: .65rem; }
.foot-contact-row {
  display: flex; align-items: flex-start; gap: .55rem;
}
.foot-contact-row svg { flex-shrink: 0; margin-top: .1rem; color: rgba(200,168,76,.45); }
.foot-contact-row a, .foot-contact-row span {
  font-size: .86rem; color: rgba(255,255,255,.35);
  transition: color .3s; line-height: 1.4;
}
.foot-contact-row a:hover { color: rgba(255,255,255,.65); }

/* col headings */
.foot-col-title {
  font-size: .63rem; letter-spacing: .32em; text-transform: uppercase;
  font-weight: 600; color: rgba(200,168,76,.65); margin-bottom: 1.2rem;
}

/* links list */
.foot-col-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.foot-col-list a {
  font-size: .86rem; color: rgba(255,255,255,.32); transition: color .3s;
}
.foot-col-list a:hover { color: rgba(255,255,255,.65); }
.foot-col-list .foot-devis-link {
  color: var(--gold); font-weight: 500;
}
.foot-col-list .foot-devis-link:hover { color: #E2C97E; }

/* departments */
.foot-deps { display: flex; flex-wrap: wrap; gap: .5rem; }
.foot-dep {
  font-size: .72rem; color: rgba(200,168,76,.5);
  border: 1px solid rgba(200,168,76,.14);
  padding: .2rem .65rem; border-radius: 99px;
}

/* bottom bar */
.foot-bottom-wrap {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem,5vw,5rem) clamp(1.5rem,3vw,2rem);
}
.foot-divider {
  height: 1px; background: rgba(255,255,255,.05); margin-bottom: 1.4rem;
}
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem;
}
.foot-bottom span, .foot-bottom a {
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.22);
}
.foot-bottom a:hover { color: rgba(255,255,255,.5); }

/* ── HERO PAGE INNER ── */
.page-hero {
  min-height: 60vh; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  padding: clamp(8rem, 18vh, 16rem) clamp(1.5rem, 5vw, 5rem) clamp(4rem, 8vh, 7rem);
}
.page-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 10s ease-out;
}
.page-hero-bg.loaded { transform: scale(1); }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    /* Voile latéral gauche — protège le titre */
    linear-gradient(to right,
      rgba(0,0,0,.70) 0%,
      rgba(0,0,0,.45) 30%,
      rgba(0,0,0,.15) 55%,
      rgba(0,0,0,0)   72%
    ),
    /* Vignette basse solide — corps de texte */
    linear-gradient(to top,
      rgba(9,9,11,1)   0%,
      rgba(9,9,11,.85) 18%,
      rgba(9,9,11,.30) 42%,
      rgba(9,9,11,0)   60%
    ),
    /* Assombrissement global léger */
    rgba(0,0,0,.20);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1320px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: .6rem;
  font-size: .65rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.8rem;
}
.breadcrumb a { color: var(--dim); transition: color .3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,.2); }
.breadcrumb .current { color: var(--gold); }

/* ── REALISATIONS GRID ── */
.real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 3rem; }
@media (max-width: 750px) { .real-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .real-grid { grid-template-columns: 1fr; } }
.real-item {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  background: var(--bg2); cursor: none;
}
.real-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.real-item:hover img { transform: scale(1.07); }
.real-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,.92) 0%, rgba(9,9,11,.2) 60%, transparent 100%);
  opacity: 0; transition: opacity .4s; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem;
}
.real-item:hover .real-overlay { opacity: 1; }
.real-cat { font-size: .63rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.real-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; color: var(--fg); line-height: 1.2; }
.real-loc { font-size: .65rem; color: var(--dim); margin-top: .3rem; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 0; cursor: none; gap: 1rem;
  font-size: .96rem; font-weight: 400; color: var(--fg2);
  transition: color .3s;
}
.faq-q:hover { color: var(--fg); }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0; border: 1px solid var(--line2);
  display: grid; place-items: center;
  font-size: .7rem; color: var(--gold);
  transition: transform .4s var(--ease), background .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold); color: var(--bg); }
.faq-a { height: 0; overflow: hidden; transition: height .4s var(--ease); }
.faq-a-inner { padding-bottom: 1.2rem; font-size: .93rem; font-weight: 300; color: var(--dim); line-height: 1.8; max-width: 680px; }

/* ── INTRO PHOTO ── */
.intro-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.intro-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.intro-img-wrap:hover img { transform: scale(1.04); }
.intro-img-label {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: rgba(45,48,50,.88); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: .55rem 1rem;
  font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}

/* ── TEAM CARD ── */
.team-card { position: relative; overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.team-card:hover img { transform: scale(1.03); }
.team-info { padding: 1.2rem 0; }
.team-name { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; }
.team-role { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }

/* ── HORIZONTAL SCROLL SECTION ── */
.hscroll-outer { overflow: hidden; position: relative; }
.hscroll-track { display: flex; gap: 1.5rem; padding: 0 clamp(1.5rem, 5vw, 5rem); transition: transform .6s var(--ease2); }
.hscroll-card { flex: 0 0 clamp(280px, 30vw, 380px); border: 1px solid var(--line); padding: 2rem; background: var(--bg2); transition: border-color .3s; }
.hscroll-card:hover { border-color: var(--line2); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(200,168,76,.28); color: var(--gold);
  padding: .38rem 1rem; background: rgba(200,168,76,.04);
}

/* ── NUMBER COUNTER ── */
.counter { display: inline-block; }

/* ── NOTIFICATION TOAST ── */
#toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 2000;
  background: var(--bg2); border: 1px solid var(--line2);
  padding: 1rem 1.5rem; max-width: 320px;
  font-size: .8rem; color: var(--fg); font-weight: 300;
  transform: translateY(120%) scale(.95); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s;
}
#toast.show { transform: translateY(0) scale(1); opacity: 1; }
#toast strong { color: var(--gold); display: block; margin-bottom: .3rem; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; }

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .55rem; letter-spacing: .25em; text-transform: uppercase; color: var(--dim);
}
.scroll-hint-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ── PHOTO FRAME DECO ── */
.photo-frame { position: relative; }
.photo-frame::before {
  content: ''; position: absolute; top: -12px; right: -12px;
  width: 60%; height: 60%; border: 1px solid rgba(200,168,76,.2);
  z-index: -1; pointer-events: none;
}
.photo-frame::after {
  content: ''; position: absolute; bottom: -12px; left: -12px;
  width: 40%; height: 40%; border: 1px solid rgba(200,168,76,.12);
  z-index: -1; pointer-events: none;
}

/* ── MEDIA QUERIES ── */
@media (max-width: 600px) {
  .page-hero { min-height: 50vh; }
  .fullphoto { height: 55vh; }
  /* case study gallery moins haute en colonne unique */
  .cs-gallery { min-height: 280px; }
  /* stat band dans les hero pages */
  .num-item .n { font-size: clamp(2rem, 10vw, 2.5rem); }
}

/* Touch: curseur visible, pointer-events rétablis */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto !important; }
  .btn, .filter-btn, .cf-btn-primary, .cf-btn-outline,
  .proj-card, .nav-burger, .faq-q { cursor: pointer !important; }
}

/* ── FILE INPUT (formulaires devis / contact) ── */
.form-file-label {
  display: flex; align-items: center; gap: .9rem;
  border: 1px dashed rgba(255,255,255,.15); padding: .85rem 1.1rem;
  cursor: pointer; transition: border-color .3s, background .3s;
  background: var(--bg2);
}
.form-file-label:hover { border-color: var(--gold); background: rgba(201,168,76,.06); }
.form-file-icon { flex-shrink: 0; color: var(--gold); }
.form-file-name { font-size: .88rem; color: var(--dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-file-btn {
  font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); padding: .3rem .8rem;
  flex-shrink: 0; transition: background .2s, color .2s;
}
.form-file-label:hover .form-file-btn { background: var(--gold); color: var(--bg); }
.form-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form-file-hint { font-size: .68rem; color: var(--dim); margin-top: .4rem; }
