/* ====================================================
   BG PLOMBERIE — HERO FX v2 (Cinématographique Éditorial)
   Remplace complètement le hero original.
   100% additif sur le reste du site (style.css intact).
   ==================================================== */


/* ============================================================
   HERO — RESET DU STYLE D'ORIGINE
   ============================================================ */

#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #08070a;
  display: block;
  padding: 0;
}


/* ============================================================
   1. IMAGE PLEIN ÉCRAN AVEC KEN BURNS LENT
   ============================================================ */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../images/sdb-hero.webp') 65% 35% / cover no-repeat;
  transform-origin: 65% 50%;
  animation: kenBurnsSlow 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurnsSlow {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.20) translate(-2%, -3%); }
}


/* ============================================================
   2. VOILE DÉGRADÉ POUR LISIBILITÉ
   ============================================================ */

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(95deg,
      rgba(8,7,10,0.92) 0%,
      rgba(8,7,10,0.7)  28%,
      rgba(8,7,10,0.30) 55%,
      rgba(8,7,10,0.15) 75%,
      rgba(8,7,10,0.55) 100%),
    linear-gradient(180deg,
      rgba(8,7,10,0.62) 0%,
      rgba(8,7,10,0.20) 18%,
      transparent 35%,
      transparent 70%,
      rgba(8,7,10,0.85) 100%);
}


/* ============================================================
   3. HALO CUIVRÉ DERRIÈRE LE TEXTE
   ============================================================ */

.hero-halo {
  position: absolute;
  left: -15%;
  top: 0; bottom: 0;
  width: 65%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 60% at 30% 55%,
    rgba(184,115,51,0.18), transparent 70%);
  mix-blend-mode: screen;
}


/* ============================================================
   4. GRAIN ARGENTIQUE
   ============================================================ */

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  background-size: 200px;
  animation: grainShift 8s steps(8) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, -3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-1%, 3%); }
  100% { transform: translate(0, 0); }
}


/* ============================================================
   5. BRAISES DORÉES QUI MONTENT
   ============================================================ */

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-embers .ember {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD7A0 0%, #B87333 50%, transparent 75%);
  box-shadow: 0 0 8px rgba(255,180,100,0.6);
  opacity: 0;
  animation: emberRise linear infinite;
  will-change: transform, opacity;
}
@keyframes emberRise {
  0%   { transform: translateY(0) translateX(0) scale(0.4); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-105vh) translateX(var(--drift, 40px)) scale(1.2); opacity: 0; }
}


/* ============================================================
   6. CONTENU PRINCIPAL — ÉDITORIAL, ALIGNÉ À GAUCHE
   ============================================================ */

#hero .hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  max-width: 64%;
  pointer-events: none;
  align-items: flex-start;
  text-align: left;
  gap: 0;
}
#hero .hero-content > * { pointer-events: auto; }


/* Eyebrow avec trait qui se trace */
#hero .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--c4);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: heroSlideRight 1.2s 0.9s ease forwards;
  transform: none;
}
#hero .hero-eyebrow::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--c4);
  animation: heroDrawLine 1.2s 1.1s cubic-bezier(.22,.68,0,1) forwards;
}
@keyframes heroDrawLine { to { width: 50px; } }
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(-15px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ============================================================
   7. TITRE ÉDITORIAL + SHIMMER SUR "RÉNOVATION"
   ============================================================ */

#hero .hero-title {
  font-family: var(--fs);
  font-weight: 300;
  font-size: clamp(3.2rem, 6.8vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: #fff;
  text-shadow: 0 4px 35px rgba(0,0,0,0.6);
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  text-align: left;
}
#hero .hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
#hero .hero-title .line .inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: heroWordIn 1.4s cubic-bezier(.22,.68,0,1) forwards;
}
#hero .hero-title .line:nth-child(1) .inner { animation-delay: 0.7s; }
#hero .hero-title .line:nth-child(2) .inner { animation-delay: 0.95s; }
@keyframes heroWordIn { to { transform: translateY(0); opacity: 1; } }

#hero .hero-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(90deg,
    var(--c2) 0%,
    var(--c4) 25%,
    var(--c6) 45%,
    #FFE8C8  55%,
    var(--c4) 70%,
    var(--c2) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroShimmer 7s linear 2.2s infinite;
  padding: 0 0.05em;
}
@keyframes heroShimmer {
  0%   { background-position: 220% 0; }
  100% { background-position: -120% 0; }
}


/* ============================================================
   8. TRAIT FIN CUIVRE SOUS LE TITRE
   ============================================================ */

#hero .hero-rule {
  margin-top: 2rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--c3), var(--c5), transparent);
  animation: heroRuleDraw 1.4s 2.0s cubic-bezier(.22,.68,0,1) forwards;
  opacity: 1 !important;
}
@keyframes heroRuleDraw { to { width: 80px; } }


/* ============================================================
   9. SOUS-TITRE
   ============================================================ */

#hero .hero-sub {
  margin-top: 2.2rem;
  max-width: 540px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245,222,200,0.88) !important;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroSubIn 1.2s 2.4s ease forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
@keyframes heroSubIn { to { opacity: 1; transform: translateY(0); } }


/* ============================================================
   10. CTAs — boutons éditoriaux avec glow magnétique
   ============================================================ */

#hero .hero-btns {
  margin-top: 2.8rem;
  display: flex;
  gap: 1.2rem;
  opacity: 0;
  animation: heroSubIn 1.2s 2.7s ease forwards;
  transform: translateY(20px);
  flex-wrap: wrap;
  justify-content: flex-start;
}

#hero .hero-btns .btn-p,
#hero .hero-btns .btn-g {
  position: relative;
  padding: 1.25rem 2.6rem !important;
  font-family: var(--fb);
  font-size: 0.78rem !important;
  font-weight: 500;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2),
              background 0.4s ease,
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  border: 1px solid transparent;
  overflow: hidden;
  will-change: transform;
  animation: none !important;
}

#hero .hero-btns .btn-p {
  background: linear-gradient(135deg, var(--c3) 0%, var(--c4) 50%, var(--c3) 100%) !important;
  background-size: 200% 200% !important;
  color: #1a0e08 !important;
  box-shadow: 0 12px 38px rgba(184,115,51,0.45) !important;
}
#hero .hero-btns .btn-p:hover {
  background-position: 100% 100% !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(232,191,160,0.55) !important;
  opacity: 1 !important;
}

#hero .hero-btns .btn-g {
  border-color: rgba(245,222,200,0.42) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.35) !important;
}
#hero .hero-btns .btn-g:hover {
  border-color: var(--c5) !important;
  background: rgba(184,115,51,0.18) !important;
  transform: translateY(-2px);
}

#hero .hero-btns .btn-p::before,
#hero .hero-btns .btn-g::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle 100px at var(--bx, 50%) var(--by, 50%),
    rgba(255,232,200,0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
  pointer-events: none;
}
#hero .hero-btns .btn-p:hover::before,
#hero .hero-btns .btn-g:hover::before { opacity: 1; }


/* ============================================================
   11. CAPTION CÔTÉ DROIT
   ============================================================ */

.hero-caption {
  position: absolute;
  right: 3rem;
  bottom: 6.5rem;
  z-index: 6;
  max-width: 280px;
  text-align: right;
  opacity: 0;
  animation: heroSubIn 1.4s 3.0s ease forwards;
  transform: translateY(20px);
  pointer-events: none;
}
.hero-caption .num {
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--c4);
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-end;
}
.hero-caption .num::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--c4);
}
.hero-caption .cap-title {
  font-family: var(--fs);
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
  margin-top: 0.4rem;
  line-height: 1.3;
}
.hero-caption .cap-meta {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
}


/* ============================================================
   12. FOOTER CINÉMATOGRAPHIQUE DU HERO
   ============================================================ */

.hero-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 1.4rem 3.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(245,222,200,0.14);
  opacity: 0;
  animation: heroFadeUp 1.4s 2.9s ease forwards;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-foot .info {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(245,222,200,0.7);
}
.hero-foot .info a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.hero-foot .info a:hover { color: var(--c5); }
.hero-foot .info.right { text-align: right; }

.hero-foot .scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(212,149,106,0.7);
  padding-left: 0.5em;
}
.hero-foot .scroll-cue .track {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--c4), transparent);
  position: relative;
  overflow: hidden;
}
.hero-foot .scroll-cue .track::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--c6));
  animation: heroScrollGleam 2.4s ease-in-out infinite;
}
@keyframes heroScrollGleam {
  0% { top: -30%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}


/* ============================================================
   13. NAV DU SITE — MEILLEURE LISIBILITÉ SUR LE HERO
   ============================================================ */

#nav:not(.s) .nlinks a {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
#nav:not(.s) .nlogo-text {
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
#nav:not(.s) .nav-tel {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}


/* ============================================================
   14. SCROLL PROGRESS BAR
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg,
    var(--c1) 0%, var(--c3) 30%, var(--c5) 60%, var(--c3) 100%);
  z-index: 999;
  box-shadow: 0 0 10px rgba(184,115,51,0.5);
  transition: width 0.1s ease-out;
  pointer-events: none;
}


/* ============================================================
   15. SERVICE CARDS — GLOW SUIVANT LA SOURIS (conservé)
   ============================================================ */

.svc-card { --mx: 50%; --my: 50%; }
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 360px at var(--mx) var(--my),
    rgba(184, 115, 51, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.svc-card:hover::before { opacity: 1; }
.svc-card > * { position: relative; z-index: 1; }


/* ============================================================
   16. REAL-ITEMS — KEN BURNS DOUX (conservé)
   ============================================================ */

.real-item img {
  transition: transform 1.4s cubic-bezier(.22,.68,0,1) !important;
  will-change: transform;
}
.real-item:hover img { transform: scale(1.07) !important; }
.real-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.5s ease;
  pointer-events: none;
  z-index: 2;
}
.real-item:hover::after {
  border-color: rgba(184, 115, 51, 0.4);
}


/* ============================================================
   17. RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  #hero .hero-content {
    max-width: 90%;
    padding: 0 1.8rem;
  }
  .hero-caption { display: none; }
  .hero-foot {
    padding: 1rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    text-align: center;
  }
  .hero-foot .info.right { text-align: center; }
  .hero-foot .scroll-cue { padding: 0; }
  .hero-veil {
    background:
      linear-gradient(180deg,
        rgba(8,7,10,0.78) 0%,
        rgba(8,7,10,0.35) 22%,
        rgba(8,7,10,0.30) 65%,
        rgba(8,7,10,0.92) 100%);
  }
}
@media (max-width: 540px) {
  #hero .hero-btns { flex-direction: column; align-items: stretch; width: 100%; }
  #hero .hero-btns .btn-p,
  #hero .hero-btns .btn-g { text-align: center; padding: 1rem 1.5rem !important; }
  #hero .hero-title { font-size: 3rem; }
}


/* ============================================================
   18. ACCESSIBILITÉ — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-grain,
  .hero-embers .ember,
  #hero .hero-title em,
  .hero-foot .scroll-cue .track::after {
    animation: none !important;
  }
  #hero .hero-title .line .inner,
  #hero .hero-eyebrow,
  #hero .hero-sub,
  #hero .hero-btns,
  .hero-caption,
  .hero-foot {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  #hero .hero-eyebrow::before,
  #hero .hero-rule { width: 50px !important; animation: none !important; }
  .scroll-progress { display: none; }
}
