/* =========================================================================
   SEMA — Inspection en bâtiment
   Dark + gold brand styling. Fonts/tokens grounded in Lumos Design System.
   ========================================================================= */

/* ---- Fonts ------------------------------------------------------------- */
@font-face {
  font-family: 'Merriweather';
  src: url('fonts/Merriweather-VariableFont_opsz_wdth_wght.ttf') format('truetype-variations');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('fonts/Merriweather-Italic-VariableFont_opsz_wdth_wght.ttf') format('truetype-variations');
  font-weight: 300 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Surfaces — anthracite (neutral charcoal grey) */
  --ink:          #141416;
  --ink-2:        #1a1a1d;
  --charcoal:     #202023;
  --charcoal-2:   #2a2a2e;
  --charcoal-3:   #34343a;
  --hero-veil:    20, 20, 22;

  /* Gold — refined metallic range */
  --gold:         #c9a14a;
  --gold-bright:  #ffc857;
  --gold-light:   #f1d99a;
  --gold-deep:    #a07726;
  --gold-grad:    linear-gradient(118deg, #f6e7b4 0%, #e1c172 24%, #c9a14a 48%, #f0d98f 68%, #ab7f2e 100%);
  --gold-line:    linear-gradient(90deg, transparent, rgba(201,161,74,.55) 18%, rgba(241,217,154,.9) 50%, rgba(201,161,74,.55) 82%, transparent);

  /* Text on dark */
  --cream:        #f4eee2;
  --text:         rgba(244,238,226,0.78);
  --text-dim:     rgba(244,238,226,0.52);
  --text-faint:   rgba(244,238,226,0.34);

  /* Lines */
  --hair:         rgba(201,161,74,0.18);
  --hair-soft:    rgba(244,238,226,0.08);

  --font-serif:   'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  9999px;

  --maxw:         1240px;
  --gutter:       clamp(20px, 5vw, 64px);

  --ease:         cubic-bezier(.22,.61,.36,1);
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
  --ease-out-expo:  cubic-bezier(.16, 1, .3, 1);
  --shadow-gold:  0 18px 50px -18px rgba(201,161,74,0.35);
  --shadow-deep:  0 30px 80px -30px rgba(0,0,0,0.85);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: inherit; }
::selection { background: rgba(201,161,74,0.3); color: var(--cream); }

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 11vw, 168px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---- Typography -------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.is-centered::after {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--cream); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; }

.h-display {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h-section {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h-sub { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 700; }

.lede {
  font-size: clamp(1.075rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.65;
  color: var(--text);
  font-weight: 300;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
em.gold-em { font-style: italic; color: var(--gold-light); font-weight: 500; }

.hairline {
  height: 1px; border: 0; width: 100%;
  background: var(--gold-line);
  opacity: .6;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold {
  position: relative;
  color: #2a1d07;
  background: linear-gradient(120deg, #f7e7b0, #e6c170 38%, #cba24c 60%, #f1d893 100%);
  box-shadow: 0 14px 34px -12px rgba(201,161,74,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(201,161,74,0.75), inset 0 1px 0 rgba(255,255,255,0.55); }
.btn--gold:active { transform: translateY(-1px) scale(.99); }
.btn--ghost {
  color: var(--cream);
  border: 1.5px solid rgba(201,161,74,0.45);
  background: rgba(201,161,74,0.04);
}
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); background: rgba(201,161,74,0.1); transform: translateY(-3px); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---- Reveal animation -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: padding .5s var(--ease);
}
.nav.scrolled {
  background: rgba(16,9,18,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--hair);
}
.nav.scrolled .nav__inner { padding-block: 13px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark { width: 50px; height: 50px; flex: none; transition: width .5s var(--ease), height .5s var(--ease); }
.nav.scrolled .brand__mark { width: 44px; height: 44px; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--cream);
  padding-left: 0.3em;
}
.brand__tag {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
  font-weight: 600;
}

.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__menu { display: flex; align-items: center; gap: 30px; list-style: none; padding: 0; }
.nav__menu a {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  position: relative; padding: 6px 0; letter-spacing: 0.01em;
  transition: color .3s var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold-grad); transition: width .35s var(--ease);
}
.nav__menu a:hover { color: var(--gold-light); }
.nav__menu a:hover::after { width: 100%; }

.nav__cta { display: inline-flex; }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--hair); display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-light); transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,161,74,0.08); transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; }
html[data-theme="dark"] .theme-toggle .i-moon,
html[data-theme="light"] .theme-toggle .i-sun { display: none; }

.drawer__theme {
  margin-top: 22px; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold-light); font-weight: 600; font-size: 0.95rem; padding: 10px 4px;
}
.drawer__theme svg { width: 22px; height: 22px; }
html[data-theme="dark"] .drawer__theme .i-moon,
html[data-theme="dark"] .drawer__theme .label-light,
html[data-theme="light"] .drawer__theme .i-sun,
html[data-theme="light"] .drawer__theme .label-dark { display: none; }

.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--hair); align-items: center; justify-content: center;
  color: var(--gold-light);
}
.nav__burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(12,7,16,0.97);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer__close { position: absolute; top: 24px; right: var(--gutter); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--gold-light); }
.drawer__close svg { width: 24px; height: 24px; }
.drawer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.drawer a {
  font-family: var(--font-serif); font-size: clamp(1.55rem, 6.5vw, 2.2rem); font-weight: 700;
  color: var(--cream); display: block; padding: 14px 0; border-bottom: 1px solid var(--hair-soft);
  transition: color .3s, padding-left .3s;
}
.drawer a:hover { color: var(--gold-light); padding-left: 12px; }
.drawer .btn { margin-top: 30px; align-self: stretch; width: 100%; font-size: 1rem; padding: 16px 24px; white-space: normal; text-align: center; line-height: 1.2; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 140px 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--ink); }
.hero__photo {
  position: absolute; inset: -8%;
  will-change: transform;
}
/* Scène photo : couche qui émule background cover, pour ancrer les halos en % image */
.hero__scene {
  position: absolute; inset: 0;
  background: url('assets/hero-house.png') center right / cover no-repeat;
}
/* anchor overlay: darken left for text, fade bottom into the band */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, var(--ink) 0%, rgba(var(--hero-veil),0.94) 20%, rgba(var(--hero-veil),0.62) 40%, rgba(var(--hero-veil),0.28) 60%, rgba(var(--hero-veil),0.08) 100%),
    linear-gradient(180deg, rgba(var(--hero-veil),0.5) 0%, transparent 24%, transparent 60%, rgba(var(--hero-veil),0.85) 88%, var(--ink) 100%);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2; opacity: .4;
  pointer-events: none;
}
.hero__glow--gold { width: 460px; height: 460px; top: -140px; right: 6%; background: radial-gradient(circle, rgba(255,200,87,0.42), transparent 65%); }

@media (max-width: 760px) {
  .hero__scene { background-position: 68% center; }
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(var(--hero-veil),0.6) 0%, rgba(var(--hero-veil),0.4) 28%, rgba(var(--hero-veil),0.55) 58%, rgba(var(--hero-veil),0.9) 84%, var(--ink) 100%),
      linear-gradient(96deg, var(--ink) 0%, rgba(var(--hero-veil),0.72) 45%, rgba(var(--hero-veil),0.45) 100%);
  }
}

.hero__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.hero__content { max-width: 880px; }
.hero h1 { margin-top: 26px; }
.hero h1 .l1 { display: block; color: var(--cream); }
.hero h1 .l2 { display: block; }
.hero__tagline {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem);
  color: var(--gold-light); margin-top: 30px; letter-spacing: 0.01em;
}
.hero__lede { margin-top: 18px; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }

.hero__promises {
  display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 54px;
  padding-top: 34px; border-top: 1px solid var(--hair);
}
.promise { display: flex; align-items: center; gap: 12px; }
.promise svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.promise span { font-size: 0.96rem; font-weight: 600; color: var(--cream); letter-spacing: 0.01em; }
.promise small { display: block; font-size: 0.74rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.02em; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint);
}
.scroll-hint .mouse { width: 22px; height: 36px; border: 1.5px solid var(--hair); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* =========================================================================
   STATS / band
   ========================================================================= */
.band { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-block: 1px solid var(--hair); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 12px clamp(16px, 3vw, 40px); text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--hair); }
.stat__num { font-family: var(--font-serif); font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-size: 0.82rem; color: var(--text-dim); margin-top: 12px; letter-spacing: 0.04em; }

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.sec-head { max-width: 760px; }
.sec-head.is-centered { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head .lede { margin-top: 22px; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(48px, 6vw, 76px); }
.svc {
  position: relative; padding: 38px 34px 36px; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(244,238,226,0.045), rgba(244,238,226,0.015));
  border: 1px solid var(--hair);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}
.svc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(241,217,154,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.svc:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow-deep), var(--shadow-gold); background: linear-gradient(165deg, rgba(244,238,226,0.075), rgba(244,238,226,0.02)); }
.svc:hover::after { opacity: 1; }
.svc:hover .svc__icon { transform: scale(1.08) rotate(-3deg); color: var(--gold-bright); }
.svc__icon {
  width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: rgba(201,161,74,0.12); color: var(--gold-light); margin-bottom: 26px;
  transition: transform .5s var(--ease), color .5s var(--ease);
  border: 1px solid rgba(201,161,74,0.2);
}
.svc__icon svg { width: 28px; height: 28px; }
.svc h3 { font-size: 1.4rem; margin-bottom: 12px; }
.svc p { font-size: 0.96rem; color: var(--text); line-height: 1.62; }
.svc__tag { position: absolute; top: 22px; right: 22px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #2a1d07; background: var(--gold-grad); padding: 6px 12px; border-radius: var(--radius-pill); }
.svc--feature { grid-column: span 1; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about { position: relative; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__media { position: relative; }
.about__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid var(--hair); background: linear-gradient(160deg, var(--charcoal-2), var(--ink));
  box-shadow: var(--shadow-deep);
}
.about__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(155deg, rgba(241,217,154,0.55), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.about__frame picture { position: absolute; inset: 0; display: block; }
.about__photo { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; bottom: -38px; left: -22px; z-index: 3;
  background: linear-gradient(160deg, var(--charcoal-2), var(--charcoal));
  border: 1px solid var(--hair); border-radius: 16px; padding: 20px 24px;
  box-shadow: var(--shadow-deep); display: flex; align-items: center; gap: 16px;
  max-width: 270px;
}
.about__badge svg { width: 34px; height: 34px; color: var(--gold); flex: none; }
.about__badge b { color: var(--cream); font-family: var(--font-serif); font-size: 1.05rem; display: block; }
.about__badge small { color: var(--text-dim); font-size: 0.78rem; }

.about__name { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-top: 10px; }
.about__role { color: var(--gold); font-weight: 600; letter-spacing: 0.04em; margin-top: 8px; font-size: 1rem; }
.about__bio { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.about__bio p { color: var(--text); }
.about__sign { margin-top: 30px; font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold-light); }
.about__creds { list-style: none; padding: 0; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.about__creds li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--cream); font-weight: 500; }
.about__creds svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }

/* =========================================================================
   DEMARCHE (process)
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hair); }
.step__num { font-family: var(--font-serif); font-weight: 800; font-size: 1.1rem; color: var(--gold); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%; margin-bottom: 22px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--text); }

/* =========================================================================
   CERTIFICATIONS
   ========================================================================= */
.certs { background: linear-gradient(180deg, var(--ink), var(--ink-2)); border-block: 1px solid var(--hair); }
.certs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 60px); }
.cert {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  padding: 32px 18px; border-radius: var(--radius); border: 1px solid var(--hair);
  background: rgba(244,238,226,0.02);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.cert:hover { transform: translateY(-6px); border-color: rgba(201,161,74,0.4); background: rgba(201,161,74,0.05); }
.cert__ic { width: 52px; height: 52px; color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.cert__ic svg { width: 44px; height: 44px; }
.cert__ic--img { width: auto; height: 52px; }
.cert__ic--img img { width: auto; height: 100%; object-fit: contain; }
/* CEI logo swaps with theme: white mark on dark, blue mark on light */
html[data-theme="dark"] .cert__ic--img .cei-dark,
html[data-theme="light"] .cert__ic--img .cei-light { display: none; }
.cert__ic--wide { height: 46px; }
.cert b { font-size: 0.98rem; color: var(--cream); font-weight: 700; letter-spacing: 0.02em; }
.cert small { font-size: 0.76rem; color: var(--text-dim); line-height: 1.4; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.form { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }

.form-section { }
.form-section__head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.form-section__ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(201,161,74,0.12); border: 1px solid rgba(201,161,74,0.2); display: flex; align-items: center; justify-content: center; color: var(--gold-light); }
.form-section__ic svg { width: 19px; height: 19px; }
.form-section__head h3 { font-size: 1.18rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid--addr { grid-template-columns: 2fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.req { color: #e0807f; margin-left: 2px; }

/* Segmented control (report language) */
.seg { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 150px; padding: 14px 26px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--hair); background: rgba(244,238,226,0.04);
  font-weight: 600; color: var(--text); letter-spacing: 0.01em;
  transition: all .3s var(--ease);
}
.seg label:hover { border-color: rgba(201,161,74,0.4); color: var(--cream); }
.seg input:checked + label {
  background: var(--gold-grad); color: #2a1d07; border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(201,161,74,0.5);
}
.seg input:focus-visible + label { box-shadow: 0 0 0 3px rgba(201,161,74,0.25); }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-dim); text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: rgba(244,238,226,0.04); border: 1px solid var(--hair); border-radius: 12px;
  padding: 14px 16px; color: var(--cream); transition: border-color .3s, background .3s, box-shadow .3s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a14a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(244,238,226,0.06); box-shadow: 0 0 0 3px rgba(201,161,74,0.12); }
.form__submit { margin-top: 4px; }
.form__note { font-size: 0.8rem; color: var(--text-faint); margin-top: 14px; }
.form__success { display: none; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 12px; background: rgba(201,161,74,0.1); border: 1px solid rgba(201,161,74,0.35); color: var(--gold-light); font-weight: 600; margin-top: 16px; }
.form__success svg { width: 22px; height: 22px; flex: none; }
.form.sent .form__success { display: flex; }

.contact__info { display: flex; flex-direction: column; gap: 4px; }
.info-card { background: linear-gradient(160deg, rgba(244,238,226,0.04), rgba(244,238,226,0.01)); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); }
.info-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair-soft); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(201,161,74,0.12); border: 1px solid rgba(201,161,74,0.2); display: flex; align-items: center; justify-content: center; color: var(--gold-light); }
.info-row__ic svg { width: 21px; height: 21px; }
.info-row b { display: block; color: var(--cream); font-size: 1.05rem; font-family: var(--font-serif); }
.info-row a, .info-row span { color: var(--text); font-size: 0.95rem; }
.info-row a:hover { color: var(--gold-light); }
.info-row small { display: block; color: var(--text-dim); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink-2); border-top: 1px solid var(--hair); padding-block: clamp(56px, 7vw, 90px) 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__brand { max-width: 360px; }
.footer__brand .brand { margin-bottom: 22px; }
.footer__brand p { color: var(--text-dim); font-size: 0.95rem; }
.footer__col h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 700; }
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer__col a, .footer__col span { color: var(--text-dim); font-size: 0.95rem; transition: color .3s; }
.footer__col a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--text); transition: all .35s var(--ease); }
.socials a:hover { color: var(--gold-light); border-color: var(--gold); transform: translateY(-3px); background: rgba(201,161,74,0.08); }
.socials svg { width: 19px; height: 19px; }
.footer__bottom { margin-top: clamp(44px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--hair-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer__bottom p { font-size: 0.84rem; color: var(--text-faint); }
.footer__bottom a { color: var(--text-dim); }
.footer__bottom a:hover { color: var(--gold-light); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 1024px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__media { max-width: 440px; }
  /* Le parallaxe décale la photo hors de sa boîte de mise en page, d'une
     valeur qui dépend du défilement : l'écart sous l'image deviendrait
     imprévisible. Sur une colonne, on fige la photo dans sa boîte. */
  .about__frame { transform: none !important; }
  /* La photo est trop étroite pour qu'un badge en surimpression épargne le
     logo brodé sur le chandail : il passe donc dans le flux, sous l'image. */
  .about__badge {
    position: static; margin-top: 18px; max-width: none;
    padding: 14px 18px; gap: 13px; border-radius: 14px;
  }
  .about__badge svg { width: 25px; height: 25px; }
  .about__badge b { font-size: 0.92rem; }
  .about__badge small { font-size: 0.7rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat:nth-child(2)::before { display: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--hair); padding-top: 28px; }
  .stat:nth-child(4) { border-top: 1px solid var(--hair); padding-top: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .form-grid--3, .form-grid--addr { grid-template-columns: 1fr; }
  .seg label { min-width: 0; flex: 1; }
  .footer__top { grid-template-columns: 1fr; }
  .about__creds { grid-template-columns: 1fr; }
  .hero__promises { gap: 18px; }
}
@media (max-width: 420px) {
  .certs-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   LIGHT THEME — bright background, pale greys, deeper gold
   ========================================================================= */
html[data-theme="light"] {
  --ink:          #f3f4f6;
  --ink-2:        #e9ebee;
  --charcoal:     #e1e4e8;
  --charcoal-2:   #eef0f2;
  --charcoal-3:   #d9dde1;
  --hero-veil:    243, 244, 246;

  --cream:        #1b1e24;
  --text:         rgba(27,30,36,0.82);
  --text-dim:     rgba(27,30,36,0.56);
  --text-faint:   rgba(27,30,36,0.40);

  --hair:         rgba(31,34,40,0.13);
  --hair-soft:    rgba(31,34,40,0.07);

  --gold:         #9c7320;
  --gold-light:   #856017;
  --gold-grad:    linear-gradient(118deg, #b8862f 0%, #9c6f23 28%, #c9a24d 55%, #8a6420 100%);

  --shadow-deep:  0 24px 60px -28px rgba(31,34,40,0.28);
  --shadow-gold:  0 18px 50px -22px rgba(156,115,32,0.28);
}

html[data-theme="light"] body { background: var(--ink); }

html[data-theme="light"] .nav.scrolled {
  background: rgba(243,244,246,0.85);
}
html[data-theme="light"] .drawer { background: rgba(243,244,246,0.97); }

html[data-theme="light"] .hero__scene {
  background-image: url('assets/hero-house-light.png');
  animation: dayRise 3s var(--ease) .9s both;
}
html[data-theme="light"] .hlight { display: none; }

/* Light mode: white halo behind hero text for legibility over the bright photo */
html[data-theme="light"] .hero h1 .l1,
html[data-theme="light"] .hero__lede,
html[data-theme="light"] .hero .promise span,
html[data-theme="light"] .hero .promise small,
html[data-theme="light"] .hero .eyebrow {
  text-shadow: 0 1px 10px rgba(255,255,255,0.9), 0 0 22px rgba(255,255,255,0.7);
}
html[data-theme="light"] .hero h1 .l2,
html[data-theme="light"] .hero__tagline,
html[data-theme="light"] .hero .promise svg {
  filter: drop-shadow(0 1px 6px rgba(255,255,255,0.95)) drop-shadow(0 0 16px rgba(255,255,255,0.85));
}
html[data-theme="light"] .hero__promises { border-top-color: rgba(31,34,40,0.22); }

/* Cards & surfaces become solid white with soft shadow on light */
html[data-theme="light"] .svc {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31,34,40,0.07), 0 10px 26px rgba(31,34,40,0.05);
}
html[data-theme="light"] .svc:hover {
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(31,34,40,0.13);
}
html[data-theme="light"] .info-card,
html[data-theme="light"] .cert {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(31,34,40,0.06), 0 8px 22px rgba(31,34,40,0.04);
}
html[data-theme="light"] .cert:hover { background: #ffffff; border-color: rgba(156,115,32,0.4); }

html[data-theme="light"] .about__frame {
  background: linear-gradient(160deg, #eef0f2, #e1e4e8);
}

html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea {
  background: #ffffff;
}
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus {
  background: #ffffff; box-shadow: 0 0 0 3px rgba(156,115,32,0.14);
}

html[data-theme="light"] .btn--gold { color: #2a1d07; }

/* =========================================================================
   CINEMATIC ENHANCEMENTS — chorégraphie hero, reveals raffinés, lueurs or
   ========================================================================= */

/* ---- Variantes de reveal ------------------------------------------------ */
[data-reveal="fade"] { transform: none; }
[data-reveal="mask"] {
  transform: none;
  clip-path: inset(6% 94% 6% 0 round var(--radius-lg));
  transition: clip-path 1.35s var(--ease-out-quint), opacity .9s var(--ease);
}
[data-reveal="mask"].in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

/* Traits des eyebrows : se dessinent vers l'extérieur à la révélation */
[data-reveal] .eyebrow::before, .eyebrow[data-reveal]::before {
  transform: scaleX(0); transform-origin: right center;
  transition: transform 1s var(--ease-out-quint) .25s;
}
[data-reveal] .eyebrow::after, .eyebrow[data-reveal]::after {
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1s var(--ease-out-quint) .25s;
}
[data-reveal].in .eyebrow::before, .eyebrow[data-reveal].in::before,
[data-reveal].in .eyebrow::after,  .eyebrow[data-reveal].in::after { transform: scaleX(1); }

/* ---- Hero : chorégraphie d'entrée --------------------------------------- */
@keyframes heroSettle { from { scale: 1.14; } to { scale: 1; } }
.hero__photo { animation: heroSettle 3.4s var(--ease-out-quint) .1s both; }

@keyframes glowIn { from { opacity: 0; } to { opacity: .4; } }
.hero__glow--gold { animation: glowIn 2.2s var(--ease) .8s both; }

.hero .eyebrow[data-reveal] { transition-delay: .15s; }
.hero .eyebrow[data-reveal]::before { transition-delay: .55s; }

.hero h1[data-reveal] { transform: none; transition: opacity .8s var(--ease) .25s; }
.hero h1 .l1, .hero h1 .l2 { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line-inner {
  display: block;
  transform: translateY(120%);
  transition: transform 1.15s var(--ease-out-quint);
}
.hero h1 .l1 .line-inner { transition-delay: .45s; }
.hero h1 .l2 .line-inner { transition-delay: .62s; }
.hero h1.in .line-inner { transform: none; }

/* Reflet doré qui balaie le titre une fois l'entrée terminée */
@keyframes goldSheen { from { background-position: 115% 0; } to { background-position: 0% 0; } }
.hero h1 .l2 .line-inner { background-size: 230% 100%; animation: goldSheen 3s var(--ease) 2s 1 both; }

.hero__tagline[data-reveal] { transition-delay: 1.05s; }
.hero__lede[data-reveal]    { transition-delay: 1.2s; }
.hero__cta[data-reveal]     { transition-delay: 1.35s; }

.hero__promises[data-reveal] { transform: none; transition-delay: 1.5s; }
.hero__promises .promise {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease-out-quint), transform .8s var(--ease-out-quint);
}
.hero__promises.in .promise { opacity: 1; transform: none; }
.hero__promises.in .promise:nth-child(1) { transition-delay: 1.55s; }
.hero__promises.in .promise:nth-child(2) { transition-delay: 1.67s; }
.hero__promises.in .promise:nth-child(3) { transition-delay: 1.79s; }

@keyframes hintIn { from { opacity: 0; } to { opacity: 1; } }
.scroll-hint { animation: hintIn 1.2s var(--ease) 2.3s both; }

/* ---- Barre de progression de lecture (nav) ------------------------------ */
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0); transform-origin: 0 50%;
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none; will-change: transform;
}
.nav.scrolled .nav__progress { opacity: 1; }

/* ---- Boutons dorés : reflet au survol ----------------------------------- */
.btn--gold { overflow: hidden; }
.btn--gold::after {
  content: ""; position: absolute; inset: -2px;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.45) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn--gold:hover::after { transform: translateX(130%); transition: transform .85s var(--ease); }

/* ---- Cartes services : lueur dorée qui suit la souris (desktop) --------- */
.svc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 40%), rgba(241,217,154,.09), transparent 62%);
  opacity: 0; transition: opacity .6s var(--ease);
  pointer-events: none;
}
.svc:hover::before { opacity: 1; }
html[data-theme="light"] .svc::before {
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 40%), rgba(156,115,32,.08), transparent 62%);
}

/* ---- Démarche : anneau des numéros qui s'illumine ----------------------- */
.step__num { transition: border-color .8s var(--ease), box-shadow .8s var(--ease); }
.step.in .step__num {
  border-color: rgba(201,161,74,.5);
  box-shadow: 0 0 0 7px rgba(201,161,74,.06), 0 6px 18px -6px rgba(201,161,74,.35);
  transition-delay: .5s;
}

/* ---- À propos : badge qui surgit après le rideau ------------------------ */
.about__badge {
  opacity: 0; transform: translateY(18px) scale(.95);
  transition: opacity .7s var(--ease-out-quint) .85s, transform .7s var(--ease-out-quint) .85s;
}
.about__media.in .about__badge { opacity: 1; transform: none; }

/* ---- Certifications : logo qui se soulève ------------------------------- */
.cert__ic { transition: transform .5s var(--ease); }
.cert:hover .cert__ic { transform: scale(1.07) translateY(-2px); }

/* ---- Drawer mobile : liens en cascade ----------------------------------- */
.drawer li, .drawer .btn, .drawer__theme {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease-out-quint), transform .55s var(--ease-out-quint);
}
.drawer.open li, .drawer.open .btn, .drawer.open .drawer__theme { opacity: 1; transform: none; }
.drawer.open li:nth-child(1) { transition-delay: .08s; }
.drawer.open li:nth-child(2) { transition-delay: .14s; }
.drawer.open li:nth-child(3) { transition-delay: .2s; }
.drawer.open li:nth-child(4) { transition-delay: .26s; }
.drawer.open .btn { transition-delay: .34s; }
.drawer.open .drawer__theme { transition-delay: .42s; }

/* ---- Bascule thème : icône qui pivote ----------------------------------- */
@keyframes themeSpin { from { transform: rotate(-100deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.theme-toggle.spin svg, .drawer__theme.spin svg { animation: themeSpin .55s var(--ease-out-quint); }

/* ---- Formulaire : confirmation qui surgit -------------------------------- */
@keyframes successIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.form.sent .form__success { animation: successIn .6s var(--ease-out-quint); }

/* ---- Reduced motion : tout est visible d'emblée -------------------------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { clip-path: none !important; }
  .hero h1 .line-inner,
  .hero__promises .promise,
  .about__badge,
  .drawer li, .drawer .btn, .drawer__theme { opacity: 1 !important; transform: none !important; }
  .hero__photo { animation: none !important; }
  .hero__glow--gold { opacity: .4 !important; }
  .scroll-hint { opacity: 1 !important; }
  .eyebrow::before, .eyebrow::after { transform: scaleX(1) !important; }
}

/* =========================================================================
   LA MAISON S'ÉVEILLE — les lumières s'allument une à une dans la photo
   ========================================================================= */

/* La photo démarre assombrie (maison endormie) puis la lumière revient */
@keyframes sceneWake {
  from { filter: brightness(.4) saturate(.72); }
  to   { filter: brightness(1) saturate(1); }
}
.hero__scene {
  animation: sceneWake 2.8s var(--ease) 1.5s both;
  will-change: filter;
}

/* Halos lumineux — masqués par défaut, activés si container queries dispo */
.hlight {
  display: none;
  position: absolute;
  mix-blend-mode: screen;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(255,214,148,.95) 0%,
    rgba(255,176,82,.45) 42%,
    rgba(255,140,40,0) 74%);
  opacity: 0;
}

/* Allumage avec micro-scintillement (fenêtres, entrée, garage) */
@keyframes lightOn {
  0%, 40% { opacity: 0; }
  45%     { opacity: .85; }
  52%     { opacity: .15; }
  60%     { opacity: 1; }
  72%     { opacity: .55; }
  100%    { opacity: var(--lo, .5); }
}
/* Allumage doux (paysager, reflet) */
@keyframes lightOnSoft {
  from { opacity: 0; }
  to   { opacity: var(--lo, .4); }
}
.hlight--flick { animation: lightOn 1.1s linear both; }
.hlight--soft  { animation: lightOnSoft 1.6s var(--ease) both; }

@supports (width: 1cqw) {
  .hero__photo { container-type: size; }
  /* Émulation exacte de cover (ratio image 1719/915 ≈ 1.8787), ancrage droite */
  .hero__scene {
    inset: auto; right: 0; top: 50%;
    transform: translateY(-50%);
    width:  max(100cqw, calc(100cqh * 1.8787));
    height: max(100cqh, calc(100cqw / 1.8787));
    background-size: 100% 100%;
    background-position: 0 0;
  }
  @media (max-width: 760px) {
    .hero__scene { right: auto; left: 68%; transform: translate(-68%, -50%); }
  }
  .hlight { display: block; }
}

/* Positions (% de l'image) · tailles · délais · intensité finale
   Centres mesurés par détection de clusters lumineux (scipy) sur la photo */
.hl1  { left: 59%;   top: 42%;   width: 9.5%; height: 13%; animation-delay: 1.45s; --lo: .5; }  /* salon étage g. */
.hl2  { left: 68.7%; top: 41.5%; width: 3.5%; height: 13%; animation-delay: 1.7s;  --lo: .45; } /* colonne vitrée c. */
.hl3  { left: 81.5%; top: 36.5%; width: 4%;   height: 9%;  animation-delay: 1.95s; --lo: .5; }  /* fenêtre balcon d. */
.hl4  { left: 89.5%; top: 34.5%; width: 4%;   height: 16%; animation-delay: 2.1s;  --lo: .55; } /* grande fenêtre d. */
.hl5  { left: 63%;   top: 61%;   width: 4%;   height: 14%; animation-delay: 2.35s; --lo: .7; }  /* porte d'entrée */
.hl6  { left: 61.4%; top: 58.2%; width: 6.5%; height: 3%;  animation-delay: 2.45s; --lo: .5; }  /* soffite entrée */
.hl7  { left: 73.4%; top: 57.9%; width: 4%;   height: 7%;  animation-delay: 2.6s;  --lo: .45; } /* spot garage g. */
.hl8  { left: 80.4%; top: 57.4%; width: 4%;   height: 7%;  animation-delay: 2.68s; --lo: .45; } /* spot garage d. */
.hl16 { left: 80.3%; top: 45.9%; width: 5%;   height: 6.6%;animation-delay: 2.5s;  --lo: .4; }  /* jardinières balcon */
.hl9  { left: 62.9%; top: 73.6%; width: 4%;   height: 5%;  animation-delay: 2.85s; --lo: .4; }  /* marches */
.hl10 { left: 51.7%; top: 72.5%; width: 4%;   height: 7%;  animation-delay: 2.95s; --lo: .45; } /* paysager g. 1 */
.hl13 { left: 43.8%; top: 70.7%; width: 4%;   height: 8%;  animation-delay: 3s;    --lo: .45; } /* paysager g. 2 */
.hl11 { left: 85.3%; top: 73%;   width: 4%;   height: 8%;  animation-delay: 3.05s; --lo: .5; }  /* arbustes d. */
.hl14 { left: 96.4%; top: 74.5%; width: 3.4%; height: 8.5%;animation-delay: 3.1s;  --lo: .45; } /* végétation extr. d. */
.hl12 { left: 56%;   top: 76.5%; width: 32%;  height: 9%;  animation-delay: 3.2s;  --lo: .2; }  /* bande reflet asphalte */
.hl15 { left: 63.3%; top: 82%;   width: 3.6%; height: 12%; animation-delay: 3.3s;  --lo: .25; } /* traînée reflet entrée */

/* =========================================================================
   BASCULE THÈME — révélation circulaire (View Transitions API)
   ========================================================================= */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero__scene { animation: none !important; filter: none !important; }
  .hlight { opacity: var(--lo, .5) !important; animation: none !important; }
}

/* =========================================================================
   LEVER DU JOUR — mode clair : aube fraîche, rayon de soleil, reflets vitres
   ========================================================================= */

/* La photo démarre fraîche et tamisée (aube) puis s'illumine */
@keyframes dayRise {
  from { filter: brightness(.87) saturate(.95); }
  to   { filter: brightness(1) saturate(1); }
}
/* Voile froid de l'aube qui se dissipe */
@keyframes dawnVeil { from { opacity: 1; } to { opacity: 0; } }
html[data-theme="light"] .hero__scene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(130,120,235,.4), rgba(170,130,230,.3) 55%, rgba(210,160,230,.2));
  mix-blend-mode: multiply;
  animation: dawnVeil 3.2s var(--ease) .9s both;
}

/* Rayon de soleil qui balaie la façade (une fois, pendant l'entrée) */
.sunray { display: none; position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
html[data-theme="light"] .sunray { display: block; }
@keyframes sunSweep {
  from { transform: translateX(-130%) rotate(14deg); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  to   { transform: translateX(290%) rotate(14deg); opacity: 0; }
}
.sunray::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 62%;
  background: linear-gradient(100deg,
    transparent 8%,
    rgba(255,214,140,.13) 35%,
    rgba(255,228,170,.24) 50%,
    rgba(255,214,140,.13) 65%,
    transparent 92%);
  mix-blend-mode: soft-light;
  animation: sunSweep 5.4s cubic-bezier(.4,0,.3,1) 2s both;
}

/* Reflets qui glissent sur les baies vitrées (coordonnées des fenêtres) */
.glint { display: none; position: absolute; overflow: hidden; pointer-events: none; z-index: 2; }
@keyframes glintSweep { to { transform: translateX(160%) skewX(-8deg); } }
.glint::before {
  content: ""; position: absolute; inset: -30% -80%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  mix-blend-mode: screen;
  transform: translateX(-160%) skewX(-8deg);
  animation: glintSweep 1.5s var(--ease) both;
}
.g1 { left: 59%;   top: 42%;   width: 9.5%; height: 13%; }  /* salon étage g. */
.g2 { left: 68.7%; top: 41.5%; width: 3.5%; height: 13%; }  /* colonne vitrée */
.g3 { left: 89.5%; top: 34.5%; width: 4%;   height: 16%; }  /* grande fenêtre d. */
.g1::before { animation-delay: 4.45s; }
.g2::before { animation-delay: 4.75s; }
.g3::before { animation-delay: 5.1s; }
@supports (width: 1cqw) {
  html[data-theme="light"] .glint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] .hero__scene { animation: none !important; filter: none !important; }
  html[data-theme="light"] .hero__scene::before { opacity: 0 !important; animation: none !important; }
  .sunray::before, .glint::before { animation: none !important; opacity: 0 !important; }
}


/* =========================================================================
   LUMOS FORM — web component de contact, thémé aux tokens SEMA
   ========================================================================= */
lumos-form {
  display: block;
  --lf-font: var(--font-sans);
  --lf-fg: var(--cream);
  --lf-muted: var(--text-dim);
  --lf-bg: transparent;
  --lf-accent: var(--gold);
  --lf-accent-contrast: #2a1d07;
  --lf-border: var(--hair);
  --lf-input-bg: rgba(244,238,226,0.04);
  --lf-focus-ring: rgba(201,161,74,0.22);
  --lf-radius: 12px;
  --lf-gap: 18px;
}
html[data-theme="light"] lumos-form { --lf-input-bg: #ffffff; }

/* Bouton de soumission : dégradé doré signature de SEMA (comme .btn--gold).
   !important car le composant style son bouton via une classe (spécificité > ::part). */
lumos-form::part(button) {
  background: var(--gold-grad) !important;
  color: #2a1d07 !important;
  border: 0 !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px -12px rgba(201,161,74,0.6), inset 0 1px 0 rgba(255,255,255,0.5) !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease) !important;
}
lumos-form::part(button):hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 22px 44px -14px rgba(201,161,74,0.75), inset 0 1px 0 rgba(255,255,255,0.55) !important;
}
lumos-form::part(button):active { transform: translateY(-1px) scale(.99) !important; }


/* Bascule de langue FR / EN */
.lang-toggle {
  height: 44px; padding: 0 15px; border-radius: var(--radius-pill); flex: none;
  border: 1px solid var(--hair); color: var(--gold-light);
  font-family: var(--font-sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,161,74,0.08); transform: translateY(-2px); }
@media (max-width: 1024px) { .nav .lang-toggle { display: none; } }
.drawer__lang {
  margin-top: 20px; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold-light); font-weight: 600; font-size: 0.95rem; padding: 10px 4px; letter-spacing: 0.06em;
}
.drawer__lang svg { width: 22px; height: 22px; }


/* Nav : contrôles (langue, thème, CTA) regroupés à droite → le menu respire */
.nav__actions { display: inline-flex; align-items: center; gap: 12px; }
