/* polices hébergées sur le site : aucun appel à un service tiers */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../assets/fonts/red-hat-display-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/red-hat-text-400.woff2') format('woff2');
}

:root {
  --paper: #ffffff;
  --sand: #f5f2e6;
  --ink: #12201b;
  --ink-dim: #4c5b53;
  --forest: #163832;
  --forest-light: #204a42;
  --forest-deep: #0e2622;
  --gold: #f0b429;
  --gold-deep: #96600f;
  --line: #ddd6c1;
  --on-forest: #f5f2e6;
  --on-forest-dim: rgba(245, 242, 230, 0.66);
  --line-on-forest: rgba(245, 242, 230, 0.16);
  --card: #ffffff;

  /* halo de la mise en lumière du premier écran */
  --lum-halo: rgba(240, 180, 41, 0.5);
  --lum-sweep: rgba(240, 180, 41, 0.14);

  /* jetons de bande, redéfinis par chaque section colorée */
  --band-bg: var(--paper);
  --band-line: var(--line);
  --band-dim: var(--ink-dim);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1411;
    --sand: #121a16;
    --ink: #eef0ea;
    --ink-dim: #9ba69f;
    --forest: #16302a;
    --forest-light: #1d3b33;
    --forest-deep: #0a1512;
    --gold-deep: #d99b1e;
    --line: rgba(238, 240, 234, 0.14);
    --card: #17201c;
    --lum-halo: rgba(255, 216, 140, 0.8);
    --lum-sweep: rgba(240, 180, 41, 0.22);
  }
}
:root[data-theme="dark"] {
  --paper: #0d1411;
  --sand: #121a16;
  --ink: #eef0ea;
  --ink-dim: #9ba69f;
  --forest: #16302a;
  --forest-light: #1d3b33;
  --forest-deep: #0a1512;
  --gold-deep: #d99b1e;
  --line: rgba(238, 240, 234, 0.14);
  --card: #17201c;
  --lum-halo: rgba(255, 216, 140, 0.8);
  --lum-sweep: rgba(240, 180, 41, 0.22);
}

* { box-sizing: border-box; }
html {
  color-scheme: light dark;
  scroll-behavior: smooth;
  /* le menu est fixe : on s'arrête juste en dessous, pas sous lui */
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Red Hat Text', system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 40px);
  position: relative;
}
h1, h2, h3, .display {
  font-family: 'Red Hat Display', 'Red Hat Text', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--gold); }
}
:root[data-theme="dark"] .eyebrow { color: var(--gold); }
.on-forest .eyebrow { color: var(--gold); }

a { color: inherit; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
img, svg { max-width: 100%; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.wordmark img { height: 30px; width: auto; display: block; }
/* deux versions du logo : texte sombre par defaut, texte blanc en mode sombre */
.wordmark .logo-sombre { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .logo-clair { display: none; }
  :root:not([data-theme="light"]) .wordmark .logo-sombre { display: block; }
}
:root[data-theme="dark"] .wordmark .logo-clair { display: none; }
:root[data-theme="dark"] .wordmark .logo-sombre { display: block; }
nav.primary {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.5vw, 34px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.8vw, 36px);
}
nav.primary a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
nav.primary a:hover, nav.primary a:focus-visible { color: var(--ink); }
nav.primary a.btn-gold { color: #241703; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #241703; }
nav.primary a.btn-gold { white-space: nowrap; }
.btn-gold:hover, .btn-gold:focus-visible { background: #f5c14f; }
.btn-ghost-forest { border-color: var(--line-on-forest); color: var(--on-forest); background: transparent; }
.btn-ghost-forest:hover, .btn-ghost-forest:focus-visible { border-color: var(--on-forest-dim); }
.btn-ghost-light { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { border-color: var(--ink-dim); }
.btn-outline { border-color: var(--gold-deep); color: var(--gold-deep); background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: rgba(240,180,41,0.12); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* ---------- bascule clair / sombre ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-dim);
  cursor: pointer;
}
.theme-toggle:hover, .theme-toggle:focus-visible {
  color: var(--ink);
  border-color: var(--ink-dim);
}
/* l'ampoule est allumee en mode clair, eteinte en mode sombre */
.theme-toggle .filament { fill: var(--gold); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .filament { fill: none; }
}
:root[data-theme="dark"] .theme-toggle .filament { fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle { transition: color 0.2s ease, border-color 0.2s ease; }
  .theme-toggle .filament { transition: fill 0.25s ease; }
}

.nav-toggle { display: none; }

/* sous 460px, l'en-tete porte quatre elements : on resserre pour que le
   numero tienne sur une ligne sans faire deborder la page */
@media (max-width: 460px) {
  .wordmark img { height: 26px; }
  nav.primary { gap: 8px; }
  nav.primary a.btn-gold { padding: 9px 12px; font-size: 0.88rem; }
  .theme-toggle { width: 34px; height: 34px; }
}

@media (max-width: 720px) {
  nav.primary { gap: 10px; }
  nav.primary .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 6px 9px;
    cursor: pointer;
  }
  header.site[data-open="true"] .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    padding: 14px clamp(18px, 4vw, 40px) 20px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
}

section { padding-block: clamp(52px, 9vw, 96px); position: relative; }
.band-forest {
  background: var(--forest);
  color: var(--on-forest);
  --band-bg: var(--forest);
  --band-line: var(--line-on-forest);
  --band-dim: var(--on-forest-dim);
}
.band-sand { background: var(--sand); --band-bg: var(--sand); }
.band-forest .eyebrow, .band-forest .fact-list .k { color: var(--gold); }
.band-forest .btn-outline { border-color: var(--gold); color: var(--gold); }
.band-forest .btn-outline:hover, .band-forest .btn-outline:focus-visible { background: rgba(240, 180, 41, 0.14); }
.band-forest .fact-list li { border-bottom-color: var(--line-on-forest); }
.band-forest .ink-dim, .band-forest p { color: var(--on-forest-dim); }
.band-forest h2, .band-forest h3 { color: var(--on-forest); }
.band-forest + .band-forest { border-top: 1px solid var(--line-on-forest); }

/* signature diagonal seam between a light section and the next band */
.seam { position: relative; }
.seam::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(28px, 4vw, 48px);
  background: var(--forest);
  clip-path: polygon(0 100%, 100% 40%, 100% 100%);
}

/* burger reworked as a light switch, echoing the intro */
.nav-switch {
  position: relative;
  display: block;
  width: 21px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(160deg, #f4f0e4, #d6cfbd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.nav-rocker {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fbf8f0, #e2dbc9);
  box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: perspective(70px) rotateX(9deg);
}
.nav-led {
  position: absolute;
  bottom: 3px;
  left: 50%;
  margin-left: -4px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #b4ad9b;
}
.nav-toggle[aria-expanded="true"] .nav-rocker {
  transform: perspective(70px) rotateX(-9deg);
  background: linear-gradient(0deg, #fbf8f0, #e2dbc9);
  box-shadow: 0 -2px 3px -1px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}
.nav-toggle[aria-expanded="true"] .nav-led {
  background: var(--gold);
  box-shadow: 0 0 6px 1px rgba(240, 180, 41, 0.8);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-rocker { transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1), background 0.2s ease; }
  .nav-led { transition: background 0.2s ease, box-shadow 0.2s ease; }
}

/* ---------- hero ---------- */
.hero { overflow: hidden; isolation: isolate; }
/* la nappe de lumière qui traverse le premier écran, une seule fois */
.hero::before {
  content: "";
  position: absolute;
  inset: -35% -55%;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--lum-sweep), transparent 72%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  line-height: 1.0;
  margin-top: 10px;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--band-dim);
  max-width: 46ch;
  margin-top: 18px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.spec-card {
  background: var(--forest-light);
  border: 1px solid var(--line-on-forest);
  color: var(--on-forest);
  --band-line: var(--line-on-forest);
  --band-dim: var(--on-forest-dim);
  border-radius: 4px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* fond vert : il faut l'or clair, l'or sombre n'y passe pas (1,88:1) */
.spec-card .eyebrow { display: block; margin-bottom: 14px; color: var(--gold); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--band-line);
  font-size: 0.95rem;
}
.spec-row:first-of-type { border-top: none; }
.spec-row dt { color: var(--band-dim); }
/* même fiche, posée sur une bande claire */
.spec-card.is-light {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  --band-line: var(--line);
  --band-dim: var(--ink-dim);
}
.spec-card.is-light .eyebrow { color: var(--gold-deep); }
.spec-row dd { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.88rem; text-align: right; }

.bolt-mark {
  position: absolute;
  top: clamp(-16px, -2vw, -4px);
  right: clamp(-12px, -1.5vw, 0px);
  width: clamp(64px, 9vw, 96px);
  aspect-ratio: 100 / 130;
  height: auto;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}
.bolt-mark path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s ease-out .2s forwards; }
@media (prefers-reduced-motion: reduce) { .bolt-mark path { animation: none; stroke-dashoffset: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 64px);
  align-items: start;
}
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.fact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.fact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  font-size: 0.95rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.fact-list .k { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--gold-deep); }

/* ---------- services ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 5vw, 44px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 10px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--band-line);
  border: 1px solid var(--band-line);
}
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--band-bg);
  padding: 28px clamp(20px, 3vw, 32px);
  position: relative;
}
.service-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}
.service-card .tag svg { width: 12px; height: 12px; }
.service-card h3 { font-size: 1.2rem; margin-top: 10px; font-family: 'Red Hat Text', sans-serif; font-weight: 700; }
.service-card p { margin-top: 10px; color: var(--ink-dim); font-size: 0.96rem; }

/* ---------- syndics ---------- */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 4vw, 38px) clamp(24px, 5vw, 56px);
}
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }
.pillars li { position: relative; padding-left: 28px; }
.pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 17px;
  background: var(--gold);
  clip-path: polygon(58% 0, 17% 56%, 46% 56%, 42% 100%, 83% 38%, 54% 38%);
}
.pillars h3 { font-family: 'Red Hat Text', sans-serif; font-weight: 700; font-size: 1.05rem; }
.pillars p { margin: 6px 0 0; color: var(--band-dim); font-size: 0.95rem; }

/* syndics whose buildings he works in */
.clients { margin-top: clamp(38px, 6vw, 60px); }
.clients .eyebrow { display: block; margin-bottom: 18px; }
.clients-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
.clients-grid li {
  background: #fff;
  border-radius: 4px;
  min-height: 92px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clients-grid img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* callout for the private-customer side of the business */
.note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
  color: var(--ink-dim);
  max-width: 48ch;
}
.note strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* ---------- process ---------- */
.steps {
  --gap: clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(28px, 5vw, 44px);
}
/* circuit: a node per step, a wire from each node to the next */
.step { position: relative; padding-top: 30px; }
.step:nth-child(2) { --i: 1; }
.step:nth-child(3) { --i: 2; }
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
}
.step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: calc(100% + var(--gap));
  height: 2px;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 0 / 100% 100%, var(--band-line);
}
.step:last-child::before { display: none; }
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 0; padding-left: 32px; }
  .step::after { top: 11px; }
  .step::before { top: 17px; left: 5px; width: 2px; height: calc(100% + var(--gap)); }
}
.step .step-num {
  font-family: 'Red Hat Display', sans-serif; font-weight: 900;
  font-size: 2.2rem;
  /* sur le papier, l'or clair tombe a 1,86:1 : c'est l'or sombre qu'il faut */
  color: var(--gold-deep);
  line-height: 1;
}
.step h3 { font-size: 1.1rem; margin-top: 12px; font-family: 'Red Hat Text', sans-serif; font-weight: 700; }
.step p { margin-top: 8px; color: var(--band-dim); font-size: 0.95rem; }

/* ---------- reviews ---------- */
.reviews-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.rating-badge { display: flex; align-items: center; gap: 10px; }
.rating-badge .stars { color: var(--gold-deep); letter-spacing: 2px; font-size: 1rem; }
.band-forest .rating-badge .stars { color: var(--gold); }
.rating-badge .label { font-size: 0.92rem; color: var(--band-dim); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  border-left: 3px solid var(--gold);
}
/* la carte est claire meme posee sur une bande foncee : le texte doit suivre,
   sinon il herite du creme de .band-forest et disparait sur le blanc */
.review-card p.quote { font-size: 1.02rem; margin: 0 0 16px; color: var(--ink); }
.review-card .who { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-dim); }
.review-card .who .name { font-weight: 600; color: var(--ink); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* the bolt lights up when the answer opens */
.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 17px;
  background: var(--line);
  clip-path: polygon(58% 0, 17% 56%, 46% 56%, 42% 100%, 83% 38%, 54% 38%);
  transition: background 0.2s ease, transform 0.2s ease;
}
.faq details[open] summary::after { background: var(--gold); transform: scale(1.12); }
.faq summary:hover::after { background: var(--gold-deep); }
.faq details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--ink-dim);
  max-width: 68ch;
}
.clients-note {
  margin: 18px 0 0;
  font-size: 0.92rem;
  color: var(--band-dim);
  max-width: 70ch;
}

/* ---------- coverage ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}
@media (max-width: 780px) { .coverage { grid-template-columns: 1fr; } }
.coverage h2 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--band-dim); }
.field input, .field textarea, .field select {
  background: var(--forest-light);
  border: 1px solid var(--line-on-forest);
  border-radius: 3px;
  color: var(--on-forest);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.98rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f0b429' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-note { font-size: 0.82rem; color: var(--on-forest-dim); margin-top: -2px; }
.form-note a { color: var(--gold); }
.contact-info dl { display: grid; gap: 18px; margin: 24px 0 0; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .row svg { flex: none; margin-top: 3px; color: var(--gold); }
.contact-info dt { font-size: 0.78rem; color: var(--on-forest-dim); font-family: 'IBM Plex Mono', monospace; margin: 0; }
.contact-info dd { margin: 2px 0 0; font-size: 1rem; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ---------- legal pages ---------- */
.legal-page { padding-block: clamp(48px, 8vw, 88px); }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-top: 10px;
}
.legal-lede {
  margin: 18px 0 0;
  font-size: 1.1rem;
  color: var(--ink-dim);
}
.legal-page h2 {
  font-size: 1.25rem;
  font-family: 'Red Hat Text', sans-serif;
  font-weight: 700;
  margin-top: clamp(32px, 5vw, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legal-page p { margin: 12px 0 0; color: var(--ink-dim); }
.legal-page a { color: var(--gold-deep); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legal-page a { color: var(--gold); }
}
:root[data-theme="dark"] .legal-page a { color: var(--gold); }

.legal-facts { margin: 18px 0 0; display: grid; gap: 0; }
.legal-facts > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.legal-facts > div:first-child { border-top: none; }
@media (max-width: 620px) {
  .legal-facts > div { grid-template-columns: 1fr; gap: 4px; }
}
.legal-facts dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.legal-facts dd { margin: 0; color: var(--ink); }

/* visible marker for the information still to be supplied before going live */
mark.todo {
  background: rgba(240, 180, 41, 0.18);
  border-left: 3px solid var(--gold);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 0 3px 3px 0;
}
.legal-back { margin-top: clamp(36px, 6vw, 56px); }

/* ---------- footer ---------- */
footer.site {
  background: var(--forest-deep);
  color: rgba(245,242,230,0.72);
  padding-block: 40px;
  font-size: 0.85rem;
}
footer.site .foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(245,242,230,0.14);
}
footer.site .legal { max-width: 62ch; line-height: 1.6; }
footer.site .legal strong { color: #f5f2e6; }
footer.site .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .foot-links a { text-decoration: none; color: rgba(245,242,230,0.72); }
footer.site .foot-links a:hover { color: #f5f2e6; }
footer.site .foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  align-items: center;
}
footer.site .foot-wordmark { display: flex; align-items: center; gap: 8px; font-family: 'Red Hat Display', sans-serif; font-weight: 900; color: #f5f2e6; font-size: 0.95rem; }
footer.site .foot-wordmark svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, nav.primary a { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}

/* ---------- scroll reveals: blocks "power up" as they come into view ---------- */
/* two live wires reaching for each other as you scroll; they meet at the bottom of the page */
.current-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  pointer-events: none;
}
.current-wire {
  position: absolute;
  top: 1px;
  height: 2px;
  width: calc(var(--progress, 0) * 50%);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  box-shadow: 0 0 6px rgba(240, 180, 41, 0.45);
}
.current-wire.left { left: 0; }
.current-wire.right { right: 0; background: linear-gradient(270deg, var(--gold-deep), var(--gold)); }
/* stripped copper tip at the end of each wire */
.current-wire::after {
  content: "";
  position: absolute;
  top: -1px;
  height: 4px;
  width: 7px;
  border-radius: 1px;
  background: linear-gradient(180deg, #e8a35c, #a85f1c);
}
.current-wire.left::after { right: -1px; }
.current-wire.right::after { left: -1px; }
.current-wire[style*="--progress: 0"]::after { opacity: 0; }

.current-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff6d8;
  opacity: 0;
}
/* contact made: the circuit closes with a spark */
.current-bar.connected .current-wire {
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.85);
}
.current-bar.connected .current-wire::after { background: var(--gold); }
.current-bar.connected .current-spark { animation: spark-pop 0.6s ease-out; }
@keyframes spark-pop {
  0%   { opacity: 0; transform: scale(0.2); }
  25%  { opacity: 1; transform: scale(1); box-shadow: 0 0 14px 6px rgba(240, 180, 41, 0.85); }
  100% { opacity: 0; transform: scale(1.7); box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .current-bar.connected .current-spark { animation: none; }
}

/* a short gold wire leading into each section label */
main .eyebrow:not(.spec-card .eyebrow)::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: left;
}

/* Seul le premier ecran se revele : tout le reste de la page s'affiche
   normalement, sans animation au defilement. */
.reveal-ready .hero [data-r] { opacity: 0; }

.reveal-ready .hero .eyebrow:not(.spec-card .eyebrow)::before { transform: scaleX(0); }
.reveal-ready .hero .eyebrow.lit:not(.spec-card .eyebrow)::before {
  animation: wire-in 0.6s ease-out calc(var(--d, 0ms) + 120ms) forwards;
}
@keyframes wire-in {
  0%   { transform: scaleX(0); box-shadow: 0 0 8px 1px var(--gold); }
  70%  { transform: scaleX(1); box-shadow: 0 0 8px 1px var(--gold); }
  100% { transform: scaleX(1); box-shadow: none; }
}

/* ---- premier écran : le contenu se révèle sous la lumière qui passe ----
   Seul bloc anime du site : la lumiere arrive, le texte sort d'un flou,
   s'embrase une fraction de seconde, puis le halo retombe — l'etat final
   est exactement le rendu obtenu sans animation. */
.reveal-ready .hero.lights-on::before { animation: hero-sweep 1.9s ease-out both; }
@keyframes hero-sweep {
  0%   { opacity: 0; transform: translate3d(-34%, -12%, 0) scale(0.5); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(28%, 8%, 0) scale(1.2); }
}
.hero { --halo: 22px; }
.hero h1 { --halo: 50px; }
.reveal-ready .hero [data-r].lit {
  animation: hero-lumiere 1.25s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both;
}
@keyframes hero-lumiere {
  0%   { opacity: 0; transform: translateY(10px); filter: blur(9px); text-shadow: 0 0 0 transparent; }
  38%  { opacity: 1; filter: blur(0); text-shadow: 0 0 var(--halo) var(--lum-halo); }
  100% { opacity: 1; transform: none; filter: none; text-shadow: 0 0 0 transparent; }
}
/* le halo est une lueur de texte : il ne doit pas baver dans les boutons */
.hero .btn { text-shadow: none; }
/* la fiche d'intervention s'allume d'un bloc, comme un panneau lumineux */
.reveal-ready .hero .spec-card[data-r].lit {
  animation: hero-fiche 1.4s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both;
}
@keyframes hero-fiche {
  0%   { opacity: 0; transform: translateY(12px); box-shadow: 0 0 0 0 transparent; }
  40%  { opacity: 1; box-shadow: 0 0 46px -8px var(--lum-halo); }
  100% { opacity: 1; transform: none; box-shadow: 0 0 0 0 transparent; }
}

/* hero: the quote button gets a jolt, the bolt draws once the card is lit */
.reveal-ready .hero-ctas.lit .btn-gold { animation: jolt 1s ease-out calc(var(--d, 0ms) + 450ms) both; }
@keyframes jolt {
  0%   { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(240, 180, 41, 0); }
}
.reveal-ready .hero .bolt-mark path { animation: none; }
.reveal-ready .hero .spec-card.lit .bolt-mark path { animation: draw 1.1s ease-out calc(var(--d, 0ms) + 500ms) forwards; }

.service-card .tag svg { transition: filter 0.2s ease; }
.service-card:hover .tag svg { filter: drop-shadow(0 0 4px var(--gold)); }

/* ---------- bandeau de consentement ---------- */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--paper);
  color: var(--ink);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.45);
}
.consent[hidden] { display: none; }
.consent-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 32px);
}
.consent-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
  max-width: 68ch;
}
.consent-text strong { color: var(--ink); }
.consent-text a { color: var(--gold-deep); }
/* refuser et accepter doivent rester aussi accessibles l'un que l'autre */
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent-actions .btn { padding: 10px 22px; }
@media (max-width: 720px) {
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions { justify-content: stretch; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in 0.35s ease-out both; }
  @keyframes consent-in { from { transform: translateY(100%); } to { transform: none; } }
}
@media print { .consent { display: none !important; } }

/* ---------- cursor sparks ---------- */
.spark-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.spark {
  position: absolute;
  margin: 0;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(240, 180, 41, 0.55));
  animation: spark-fade 0.6s ease-out forwards;
}
.spark svg { width: 100%; height: 100%; display: block; }
@keyframes spark-fade {
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 14px)) rotate(var(--r, 0deg)) scale(0.5);
  }
}

/* ---------- power-on overlay ---------- */
.power-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 46%, rgba(240, 180, 41, 0.06), transparent 34%),
    #050807;
}
.power-overlay[data-state="flicker"] {
  pointer-events: none;
  animation: lights-on 1.1s linear forwards;
}
.power-overlay[data-state="fade"] {
  pointer-events: none;
  animation: lights-fade 0.3s ease forwards;
}
@keyframes lights-on {
  0%   { opacity: 1; }
  8%   { opacity: 0.2; }
  13%  { opacity: 1; }
  24%  { opacity: 0.35; }
  29%  { opacity: 0.9; }
  33%  { opacity: 0.1; }
  38%  { opacity: 0.75; }
  52%  { opacity: 0.05; }
  100% { opacity: 0; }
}
@keyframes lights-fade { to { opacity: 0; } }

.power-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.power-switch {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
}
.switch-plate {
  position: relative;
  display: block;
  width: 136px;
  height: 136px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f4f0e4, #d6cfbd);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.switch-rocker {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 30px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbf8f0 0%, #e4ddcc 100%);
  box-shadow:
    0 6px 8px -2px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
  transform: perspective(260px) rotateX(9deg);
  transform-origin: 50% 50%;
  transition: transform 0.22s cubic-bezier(.3, 1.6, .5, 1), background 0.22s ease, box-shadow 0.22s ease;
}
.switch-shade {
  position: absolute;
  inset: 0;
  background: #050807;
  opacity: 0.68;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.switch-led {
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 14px;
  height: 4px;
  margin-left: -7px;
  border-radius: 2px;
  background: #ffae2b;
  box-shadow: 0 0 6px 1px rgba(255, 174, 43, 0.9), 0 0 18px 4px rgba(255, 174, 43, 0.35);
  animation: led-pulse 2.2s ease-in-out infinite;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
@keyframes led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.power-switch:hover .switch-shade { opacity: 0.58; }
.power-switch:active .switch-rocker { transform: perspective(260px) rotateX(3deg); }

.power-switch.is-on .switch-rocker {
  transform: perspective(260px) rotateX(-9deg);
  background: linear-gradient(0deg, #fbf8f0 0%, #e4ddcc 100%);
  box-shadow:
    0 -4px 8px -2px rgba(0, 0, 0, 0.22),
    inset 0 -2px 0 rgba(255, 255, 255, 0.9);
}
.power-switch.is-on .switch-shade { opacity: 0; }
.power-switch.is-on .switch-led {
  animation: none;
  background: #b8b09d;
  box-shadow: none;
}
.power-switch:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.power-hint {
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 230, 0.5);
  animation: hint-in 0.8s ease 0.6s both;
  transition: opacity 0.2s ease;
}
.power-overlay[data-state] .power-hint { opacity: 0; }
@keyframes hint-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .switch-rocker, .switch-shade, .switch-led, .power-hint { transition: none; animation: none; }
}

/* le courant arrive dans la section visée par une ancre */
section.arrived::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.6);
  transform-origin: left;
  pointer-events: none;
  animation: arrive-sweep 0.9s ease-out forwards;
}
@keyframes arrive-sweep {
  0%   { opacity: 0; transform: scaleX(0); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  section.arrived::before { animation: none; display: none; }
}

/* ---------- page 404 ---------- */
.notfound { padding-block: clamp(64px, 12vw, 140px); }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-top: 10px; }
.notfound .legal-lede { max-width: 46ch; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.notfound-map {
  list-style: none;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 24px;
  font-size: 0.95rem;
}
@media (max-width: 700px) { .notfound-map { grid-template-columns: 1fr 1fr; } }
.notfound-map a { color: var(--ink-dim); text-decoration: none; }
.notfound-map a:hover { color: var(--gold-deep); text-decoration: underline; }

/* ---------- impression et captures pleine page ----------
   Ces contextes ne font pas défiler la page : sans cela, tout resterait éteint. */
@media print {
  .power-overlay, .current-bar, .spark-layer { display: none !important; }
  .hero::before { display: none !important; }
  .reveal-ready .hero [data-r] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .reveal-ready .hero .eyebrow::before {
    animation: none !important;
    transform: none !important;
  }
  .reveal-ready .bolt-mark path { animation: none !important; stroke-dashoffset: 0 !important; }
  .faq details { break-inside: avoid; }
  .faq details p { display: block !important; }
}
