/* ==========================================================================
   VERTEC Madagascar — Feuille de style principale
   Design : futuriste, épuré, inspiré du verre (transparence, reflets, lumière)
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-2: #0f1013;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eaf1f8;
  --muted: #8b97a8;
  --faint: #5a6577;
  --brand: #E84C19;
  --accent: #E84C19;
  --accent-rgb: 232, 76, 25;
  --orb1: #8a2e0f;
  --orb2: #3d1607;
  --accent-2: #ff9a5c;
  --accent-3: #ffb47f;
  --danger: #ff6b81;
  --glow: 0 0 40px rgba(var(--accent-rgb), 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #170600; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--accent); color: #170600; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Fond global : grille + halos ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-fx .orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45;
  animation: float 18s ease-in-out infinite alternate;
}
.bg-fx .orb-1 { width: 520px; height: 520px; background: var(--orb1); top: -180px; right: -120px; }
.bg-fx .orb-2 { width: 420px; height: 420px; background: var(--orb2); top: 40vh; left: -200px; animation-delay: -6s; }
@keyframes float { to { transform: translate3d(-60px, 80px, 0) scale(1.1); } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-sm { padding: clamp(56px, 7vw, 96px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.gradient-text {
  background: linear-gradient(100deg, #fff 5%, var(--accent-2) 40%, var(--accent) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { display: grid; gap: 8px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split {
  max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}

/* ---------- Boutons ---------- */
.btn {
  --b: var(--border-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--b); background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { border-color: var(--text); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 50%, var(--accent));
  background-size: 200% 100%;
  color: #170600; border-color: transparent;
  box-shadow: 0 10px 40px -10px rgba(var(--accent-rgb), 0.6);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 50px -8px rgba(var(--accent-rgb), 0.85); transform: translateY(-2px); border-color: transparent; }
.btn-ghost { background: var(--surface); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
  font-family: var(--font-display); font-weight: 500;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo .logo-mark { height: 36px; width: auto; color: var(--brand); filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.45)); transition: filter .4s; }
.logo:hover .logo-mark { filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.8)); }
.logo-text { display: grid; line-height: 1; }
.logo-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -0.02em; }
.logo-text small { font-size: 0.55rem; letter-spacing: 0.36em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav { flex-wrap: nowrap; min-width: 0; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 999px; white-space: nowrap; flex: none;
  font-size: 0.92rem; color: var(--muted); transition: color .25s, background .25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent); transform: translateX(-50%);
}
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-inner .logo { flex: none; }
.header-phone { font-size: 0.86rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.header-phone:hover { color: var(--text); }
.header-phone svg { width: 16px; height: 16px; color: var(--accent); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(7, 8, 10, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); padding: 6px 0;
  color: var(--muted); border-bottom: 1px solid var(--border);
  transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .2s;
}
.mobile-menu nav a[aria-current="page"], .mobile-menu nav a:hover { color: var(--text); }
.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .25s; }
.mobile-menu .btn { margin-top: 32px; width: 100%; }
.mobile-menu .mm-foot { margin-top: 24px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 36px; margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--border); max-width: 560px;
}
.hero-meta div { display: grid; gap: 2px; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; }
.hero-meta span { font-size: 0.82rem; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.1; width: 100%; max-width: 520px; justify-self: end; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass-stack { position: absolute; inset: 0; perspective: 1400px; }
.pane {
  position: absolute; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 45%, rgba(var(--accent-rgb), 0.08));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 40px 80px -30px rgba(0,0,0,0.8);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  animation: drift 9s ease-in-out infinite alternate;
}
.pane::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.35) 48%, transparent 56%);
  background-size: 250% 100%; animation: sheen 6s ease-in-out infinite;
  mix-blend-mode: overlay;
}
.pane-1 { width: 62%; height: 72%; top: 6%; left: 4%; transform: rotateY(-18deg) rotateX(8deg); }
.pane-2 { width: 54%; height: 60%; top: 26%; left: 36%; transform: rotateY(-22deg) rotateX(6deg) translateZ(60px);
  background: linear-gradient(140deg, rgba(255, 154, 92,0.22), rgba(255,255,255,0.03) 50%, rgba(var(--accent-rgb), 0.18)); animation-delay: -3s; }
.pane-3 { width: 30%; height: 34%; top: 60%; left: 12%; transform: rotateY(-12deg) rotateX(10deg) translateZ(120px);
  background: linear-gradient(140deg, rgba(255, 180, 127,0.18), rgba(255,255,255,0.02)); animation-delay: -5s; }
.pane-label {
  position: absolute; left: 18px; bottom: 16px; font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.pane-dim {
  position: absolute; right: 16px; top: 14px; font-size: 0.7rem; color: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
@keyframes drift { to { translate: 0 -16px; } }
@keyframes sheen { 0%, 20% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--faint);
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Page hero (pages internes) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(70px, 10vw, 130px)) 0 clamp(50px, 7vw, 90px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 16ch; }
.breadcrumb { display: flex; gap: 10px; font-size: 0.82rem; color: var(--faint); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border); overflow: hidden; padding: 26px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--faint);
  display: inline-flex; align-items: center; gap: 64px; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: 0.7em; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cartes « verre » ---------- */
.glass {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }

/* Grille des solutions */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.solution-card {
  display: flex; flex-direction: column; padding: 30px; min-height: 340px; overflow: hidden;
  transition: transform .5s var(--ease), border-color .3s;
}
.solution-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.solution-card .num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.75rem; color: var(--faint); }
.solution-card .icon {
  width: 64px; height: 64px; margin: 26px 0 auto; color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.45));
}
.solution-card h3 { margin-top: 28px; }
.solution-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.solution-card .link-arrow { margin-top: auto; font-size: 0.9rem; }
.solution-card.feature {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(255, 154, 92,0.06) 60%, rgba(255,255,255,0.02));
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process-step { position: relative; padding: 0 28px 0 0; }
.process-step::before {
  counter-increment: step; content: "0" counter(step);
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--bg-2);
  font-family: var(--font-display); font-size: 0.95rem; color: var(--accent);
  position: relative; z-index: 1; margin-bottom: 28px;
}
.process-step::after {
  content: ""; position: absolute; top: 27px; left: 54px; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.process-step:last-child::after { display: none; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.feature-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 500; }
.feature-list span { color: var(--muted); font-size: 0.92rem; }

.visual-panel {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.28), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 154, 92,0.3), transparent 55%),
    var(--bg-2);
}
.visual-panel .shard {
  position: absolute; border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(140deg, rgba(255,255,255,0.16), rgba(255,255,255,0.01));
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.visual-panel .s1 { inset: 12% 30% 40% 10%; clip-path: polygon(0 0, 100% 8%, 86% 100%, 6% 88%); }
.visual-panel .s2 { inset: 34% 8% 14% 38%; clip-path: polygon(10% 0, 100% 0, 92% 100%, 0 84%); }
.visual-panel .s3 { inset: 62% 52% 8% 14%; clip-path: polygon(0 10%, 100% 0, 80% 100%, 4% 100%); }
.visual-panel .badge {
  position: absolute; left: 22px; bottom: 22px; right: 22px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.visual-panel .badge strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.visual-panel .badge span { font-size: 0.82rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1; margin-bottom: 10px; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px, 7vw, 96px);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(255, 154, 92,0.25), transparent 60%),
    var(--bg-2);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 12px; max-width: 18ch; }
.cta-band p { color: var(--muted); margin: 0; max-width: 52ch; }

/* ---------- Solutions (page détail) ---------- */
.solution-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center;
  padding: clamp(50px, 7vw, 90px) 0; border-top: 1px solid var(--border);
}
.solution-row:nth-child(even) .solution-media { order: 2; }
.solution-media {
  position: relative; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.18), transparent 55%), var(--bg-2);
  display: grid; place-items: center;
}
.solution-media svg { width: 42%; height: auto; color: var(--accent); filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.45)); }
.solution-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solution-media .tag {
  position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 999px; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; background: rgba(7, 8, 10,0.6); border: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 0.84rem; color: var(--muted);
}

/* ---------- Réalisations ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 0.9rem; transition: all .25s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
.gallery-item { margin: 0;
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-2); transition: opacity .4s, transform .5s var(--ease);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img, .gallery-item:hover .gen { transform: scale(1.05); }
.gallery-item .gen { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
  background: linear-gradient(transparent, rgba(7, 8, 10,0.92));
}
.gallery-item figcaption small { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.gallery-item figcaption strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }

/* Visuels génératifs (en attendant les photos réelles) */
.gen-1 { background: radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb), 0.35), transparent 45%), linear-gradient(160deg, #1c100a, #07080a); }
.gen-2 { background: radial-gradient(circle at 80% 20%, rgba(255, 154, 92,0.4), transparent 50%), linear-gradient(200deg, #17110d, #07080a); }
.gen-3 { background: radial-gradient(circle at 50% 80%, rgba(255, 180, 127,0.3), transparent 50%), linear-gradient(170deg, #140d0a, #07080a); }
.gen::before, .gen::after {
  content: ""; position: absolute; border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.01));
}
.gen::before { inset: 14% 38% 30% 12%; transform: skewY(-6deg); }
.gen::after { inset: 30% 10% 16% 46%; transform: skewY(4deg); }
.gen-2::before { inset: 10% 14% 50% 14%; transform: skewX(-8deg); }
.gen-3::after { inset: 46% 20% 10% 20%; transform: none; border-radius: 50% 50% 0 0; }

/* ---------- Agences ---------- */
.agencies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agency { padding: 26px; display: grid; gap: 16px; align-content: start; transition: transform .5s var(--ease), border-color .3s; }
.agency:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.agency .region { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.agency h3 { margin: 0; }
.agency a.tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); color: var(--accent); font-size: 1.05rem; }
.agency a.tel svg { width: 16px; height: 16px; }
.agency .pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(255, 180, 127,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 180, 127,0); } 100% { box-shadow: 0 0 0 0 rgba(255, 180, 127,0); } }
.agency-top { display: flex; justify-content: space-between; align-items: center; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { padding: 30px; display: grid; gap: 10px; }
.contact-card svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.contact-card a { font-family: var(--font-display); font-size: 1.1rem; word-break: break-word; }
.contact-card a:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }


/* ---------- Carte du réseau d'agences ---------- */
.map-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.map-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 8px; }
.map-row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .25s, background .25s, transform .4s var(--ease);
}
.map-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; transition: all .25s; }
.map-row-name { flex: 1; display: grid; font-family: var(--font-display); font-weight: 500; line-height: 1.3; }
.map-row-name small { font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--faint); }
.map-row-tel { font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.map-row:hover, .map-row.active { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.07); transform: translateX(4px); }
.map-row:hover .dot, .map-row.active .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.map-row.active .map-row-tel { color: var(--accent); }

.map-wrap {
  position: relative; border-radius: 28px; border: 1px solid var(--border); overflow: hidden;
  background: radial-gradient(circle at 70% 40%, rgba(var(--accent-rgb), 0.12), transparent 60%), var(--bg-2);
  padding: clamp(16px, 3vw, 32px);
}
.mg-map { display: block; width: 100%; height: auto; max-height: min(620px, 78vh); margin: 0 auto; overflow: visible; }
.map-grat line { stroke: rgba(255, 255, 255, 0.05); stroke-width: 0.6; }
.map-grat text { fill: var(--faint); font-size: 7px; font-family: ui-monospace, Menlo, monospace; }
.map-coast { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: coast 3.5s var(--ease) forwards; }
@keyframes coast { to { stroke-dashoffset: 0; } }
.map-link { fill: none; stroke: rgba(var(--accent-rgb), 0.5); stroke-width: 0.9; stroke-dasharray: 3 4; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }

.map-pin { cursor: pointer; outline: none; }
.map-pin .pin-hit { fill: transparent; }
.map-pin .pin-core { fill: var(--accent); stroke: #fff; stroke-width: 1.2; transition: transform .3s var(--ease); }
.map-pin.hq .pin-core { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.map-pin .pin-halo { fill: rgba(var(--accent-rgb), 0.22); transition: transform .35s var(--ease), fill .3s; transform: scale(.6); }
.map-pin .pin-ring { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.map-pin:nth-child(2) .pin-ring { animation-delay: .4s; } .map-pin:nth-child(3) .pin-ring { animation-delay: .8s; }
.map-pin:nth-child(4) .pin-ring { animation-delay: 1.2s; } .map-pin:nth-child(5) .pin-ring { animation-delay: 1.6s; }
.map-pin:nth-child(6) .pin-ring { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.4); opacity: 0; } }
.map-pin:hover .pin-halo, .map-pin.active .pin-halo, .map-pin:focus-visible .pin-halo { transform: scale(1.5); fill: rgba(var(--accent-rgb), 0.35); }
.map-pin:hover .pin-core, .map-pin.active .pin-core { transform: scale(1.35); }
.map-pin:focus-visible .pin-core { stroke: #fff; stroke-width: 2.5; }

.map-tip {
  position: absolute; z-index: 5; min-width: 220px; padding: 16px 18px; border-radius: 14px;
  background: rgba(14, 15, 18, 0.88); border: 1px solid rgba(var(--accent-rgb), 0.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(var(--accent-rgb), 0.5);
  display: grid; gap: 4px; transform: translate(-50%, calc(-100% - 18px));
  animation: tipIn .25s var(--ease);
}
.map-tip.below { transform: translate(-50%, 18px); }
@keyframes tipIn { from { opacity: 0; margin-top: 6px; } }
.map-tip-region { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.map-tip-name { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.map-tip-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; margin-top: 4px; }
.map-tip-tel svg { width: 15px; height: 15px; }
.map-tip-tel:hover { text-decoration: underline; text-underline-offset: 3px; }
.map-tip-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.map-tip-cta svg { width: 13px; height: 13px; }
.map-tip-cta:hover { color: var(--text); }
.map-compass { position: absolute; top: 18px; right: 20px; font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; color: var(--faint); letter-spacing: .1em; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-wrap { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 640px) {
  .map-tip { min-width: 190px; padding: 12px 14px; }
}

/* ==========================================================================
   Formulaire de devis
   ========================================================================== */
.quote-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.quote-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.steps-nav { padding: 24px; display: grid; gap: 4px; }
.steps-nav .step-link {
  display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; color: var(--faint);
  transition: color .3s, background .3s; font-size: 0.95rem;
}
.steps-nav .step-link b {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  border: 1px solid var(--border-strong); font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  transition: all .3s;
}
.steps-nav .step-link.active { color: var(--text); background: var(--surface-2); }
.steps-nav .step-link.active b { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.steps-nav .step-link.done { color: var(--muted); }
.steps-nav .step-link.done b { background: var(--accent); color: #170600; border-color: var(--accent); }
.aside-help { padding: 24px; font-size: 0.9rem; color: var(--muted); }
.aside-help strong { color: var(--text); font-family: var(--font-display); font-weight: 500; display: block; margin-bottom: 6px; }
.aside-help a { color: var(--accent); }

.progress { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 36px; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: var(--glow); transition: width .6s var(--ease); }

.quote-form { padding: clamp(24px, 4vw, 48px); }
.form-step { display: none; animation: stepIn .6s var(--ease); }
.form-step.active { display: block; }
.no-js .form-step { display: block; margin-bottom: 48px; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.form-step > header { margin-bottom: 30px; }
.form-step > header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.form-step > header p { color: var(--muted); margin: 0; }

.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option label {
  display: grid; gap: 14px; align-content: start; height: 100%; padding: 20px 18px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  transition: border-color .25s, background .25s, transform .4s var(--ease), box-shadow .3s;
}
.type-option label:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.type-option svg { width: 34px; height: 34px; color: var(--muted); transition: color .3s; }
.type-option strong { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; line-height: 1.25; }
.type-option small { color: var(--faint); font-size: 0.78rem; line-height: 1.4; }
.type-option input:checked + label {
  border-color: var(--accent); background: rgba(var(--accent-rgb), 0.07);
  box-shadow: inset 0 0 0 1px var(--accent), 0 10px 40px -20px var(--accent);
}
.type-option input:checked + label svg { color: var(--accent); }
.type-option input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
.field-grid.three { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.86rem; color: var(--muted); }
.field label .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.025);
  transition: border-color .25s, background .25s, box-shadow .25s; outline: none;
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b97a8' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.select option { background: var(--bg-2); color: var(--text); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.04); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 0.8rem; display: none; }
.field.invalid .error { display: block; }
.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; }
.input-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 0.85rem; pointer-events: none; }

.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; pointer-events: none; }
.check-pill label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-size: 0.88rem; color: var(--muted); transition: all .25s;
}
.check-pill label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--faint); transition: all .25s; }
.check-pill input:checked + label { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb), 0.07); }
.check-pill input:checked + label::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.check-pill input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Articles multiples */
.items { display: grid; gap: 16px; }
.item-card { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,0.02); }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.item-head h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.item-head h3 i { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem; color: var(--accent); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 7px; }
.remove-item { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 0.85rem; padding: 6px 10px; border-radius: 8px; }
.remove-item:hover { color: var(--danger); background: rgba(255,107,129,0.08); }
.add-item {
  width: 100%; margin-top: 14px; padding: 18px; border-radius: 16px; cursor: pointer;
  border: 1px dashed var(--border-strong); background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: all .25s;
}
.add-item:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.04); }
.area-preview { font-size: 0.82rem; color: var(--faint); margin-top: 4px; font-family: ui-monospace, Menlo, monospace; }

.dropzone {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: 34px 20px; cursor: pointer;
  border: 1px dashed var(--border-strong); border-radius: 14px; background: rgba(255,255,255,0.02); transition: all .25s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.05); }
.dropzone svg { width: 30px; height: 30px; color: var(--accent); }
.dropzone small { color: var(--faint); }
.dropzone input { display: none; }
.file-list { display: grid; gap: 6px; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.file-list div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: var(--surface); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.form-nav .spacer { flex: 1; }
.no-js .form-nav [data-prev], .no-js .form-nav [data-next] { display: none; }

.summary { display: grid; gap: 14px; }
.summary-block { padding: 22px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.summary-block h4 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-family: var(--font-display); }
.summary-block dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; font-size: 0.92rem; }
.summary-block dt { color: var(--faint); }
.summary-block dd { margin: 0; }
.summary-edit { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 0.82rem; float: right; }

.form-alert { display: none; padding: 16px 18px; border-radius: 12px; margin-top: 20px; font-size: 0.92rem; }
.form-alert.show { display: block; }
.form-alert.error { background: rgba(255,107,129,0.1); border: 1px solid rgba(255,107,129,0.35); color: #ffc2cc; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,16,24,0.25); border-top-color: #170600; animation: spin .8s linear infinite; display: none; }
.loading .spinner { display: inline-block; }
.loading .btn-label-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Succès */
.success-wrap { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.success-icon {
  width: 96px; height: 96px; margin: 0 auto 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); box-shadow: var(--glow), inset 0 0 30px rgba(var(--accent-rgb), 0.2); color: var(--accent);
}
.success-icon svg { width: 42px; height: 42px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref-code { display: inline-block; margin: 10px 0 34px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border-strong); font-family: ui-monospace, Menlo, monospace; color: var(--accent); }

/* ---------- Pages légales ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 80px 0 36px; margin-top: 40px; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-top h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; font-family: var(--font-display); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a { color: var(--muted); font-size: 0.94rem; transition: color .2s; }
.footer-top a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 0.94rem; margin: 20px 0 24px; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); transition: all .25s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-word {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(4rem, 19vw, 17rem); line-height: 0.8;
  letter-spacing: -0.04em; text-align: center; margin: 70px 0 30px; user-select: none;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.22), rgba(255,255,255,0.05) 55%, rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.84rem; color: var(--faint); padding-top: 28px; border-top: 1px solid var(--border); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }

/* Bouton flottant devis (mobile) */
.fab-quote {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; display: none;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.fab-quote.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }


/* ---------- Plaque FORTEC (hero) ---------- */
.pane-4 {
  width: 36%; height: 40%; top: 0; left: 62%; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transform: rotateY(-14deg) rotateX(6deg) translateZ(150px);
  background: linear-gradient(140deg, rgba(76, 230, 160, 0.42), rgba(30, 140, 100, 0.12) 55%, rgba(120, 255, 200, 0.28));
  border-color: rgba(140, 255, 205, 0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 30px 70px -25px rgba(30, 200, 130, 0.55), 0 0 0 0 rgba(76, 230, 160, 0.5);
  animation: drift 9s ease-in-out infinite alternate, glowGreen 2.8s ease-in-out infinite; animation-delay: -1.5s, 0s;
  transition: box-shadow .4s, border-color .3s;
}
.pane-4:hover, .pane-4:focus-visible { border-color: #b5ffe0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 30px 80px -20px rgba(30, 200, 130, 0.85); }
@keyframes glowGreen { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 30px 70px -25px rgba(30, 200, 130, 0.55), 0 0 0 8px rgba(76, 230, 160, 0.12); } }
.pane-4 .pane-label { color: #fff; font-size: 0.78rem; line-height: 1.35; bottom: 40px; }
.pane-new {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 6px 20px -6px var(--accent);
}
.pane-4 .pane-new { position: absolute; top: 14px; left: 14px; }
.pane-4 .pane-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.pane-more { position: absolute; left: 18px; bottom: 14px; font-size: 0.72rem; color: #c9ffe8; font-family: var(--font-display); letter-spacing: .04em; }
.pane-4:hover .pane-more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bande partenaires & photo ---------- */
.partner-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.partner-logo {
  display: grid; gap: 8px; justify-items: start; padding: 16px 20px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .4s var(--ease);
  font: inherit; color: inherit; text-align: left;
}
.partner-logo:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-2px); }
.partner-logo img { height: 30px; width: auto; }
.partner-logo span { font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.visual-panel.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual-panel.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,8,10,0.75)); }
.visual-panel.photo .badge { z-index: 1; }

/* ---------- Stories ---------- */
.stories-layout { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.story-player {
  position: relative; width: min(400px, 80vw); aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9), 0 0 60px -20px rgba(var(--accent-rgb), 0.35);
}
.story-stage, .story-slide { position: absolute; inset: 0; margin: 0; }
.story-slide { opacity: 0; transition: opacity .6s var(--ease); }
.story-slide.active { opacity: 1; }
.story-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.story-slide.active img { animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.story-bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; gap: 4px; }
.story-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.3); overflow: hidden; }
.story-bar i { display: block; height: 100%; width: 0; background: #fff; }
.story-bar.done i { width: 100%; }
.story-head {
  position: absolute; top: 24px; left: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.story-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,8,10,0.7); border: 1px solid var(--accent); }
.story-avatar svg { height: 18px; width: auto; color: var(--brand); }
.story-title { color: rgba(255,255,255,0.75); }
.story-pause { margin-left: auto; width: 30px; height: 30px; border: 0; background: none; color: #fff; cursor: pointer; opacity: .85; }
.story-pause svg { width: 18px; height: 18px; margin: auto; }
.story-player.paused .story-pause svg rect:last-child { display: none; }
.story-player::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; z-index: 2; }
.story-nav { position: absolute; top: 70px; bottom: 0; width: 38%; z-index: 2; background: none; border: 0; cursor: pointer; }
.story-nav.prev { left: 0; } .story-nav.next { right: 0; width: 62%; }

.story-bubbles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.story-bubble { display: grid; justify-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; color: var(--muted); }
.story-bubble .ring {
  display: block; width: 72px; height: 72px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, var(--accent), #ffb27f, #ff6a2e, var(--accent));
  transition: transform .35s var(--ease), filter .3s;
}
.story-bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.story-bubble.seen .ring { background: rgba(255,255,255,0.18); }
.story-bubble.active .ring { transform: scale(1.12); background: conic-gradient(from 210deg, var(--accent), #ffd2b3, var(--accent)); filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), .6)); }
.story-bubble.active { color: var(--text); }
.story-bubble:hover .ring { transform: scale(1.08); }
.bubble-label { font-size: 0.74rem; letter-spacing: .04em; }

/* ---------- Modale FORTEC ---------- */
.modal {
  padding: 0; border: 1px solid rgba(140, 255, 205, 0.35); border-radius: 26px; background: #0b0d0f; color: var(--text);
  width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.9), 0 0 80px -30px rgba(76, 230, 160, 0.45);
}
.modal::backdrop { background: rgba(3, 4, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-inner { position: relative; }
.modal-close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(7,8,10,0.7); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { border-color: var(--text); }
.modal-hero {
  padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 56px) 30px;
  background: radial-gradient(600px 260px at 20% 0%, rgba(76, 230, 160, 0.22), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgba(var(--accent-rgb), 0.16), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.fortec-logo { width: min(280px, 70%); height: auto; margin: 22px 0 26px; }
.modal-hero h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.gradient-green { background: linear-gradient(100deg, #b5ffe0, #4ce6a0 60%, #26b47c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal-hero .lead strong { color: var(--text); }
.modal-grid { padding: 30px clamp(22px, 5vw, 56px) clamp(28px, 5vw, 48px); }
.modal-grid h3 { margin: 36px 0 16px; font-size: 1.3rem; }
.fortec-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fortec-why div { padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: grid; gap: 4px; }
.fortec-why strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: #7af0bd; }
.fortec-why span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.temper-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.temper-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding-bottom: 20px; position: relative; }
.temper-steps li::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 1px; background: linear-gradient(rgba(76,230,160,.6), rgba(var(--accent-rgb), .3)); }
.temper-steps li:last-child::before { display: none; }
.temper-steps b {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500;
  border: 1px solid rgba(76, 230, 160, 0.6); color: #7af0bd; background: rgba(76, 230, 160, 0.08);
}
.temper-steps li:nth-child(3) b, .temper-steps li:nth-child(4) b { border-color: var(--accent); color: #ff9a5c; background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 20px -4px rgba(var(--accent-rgb), .6); }
.temper-steps strong { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.temper-steps p { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }
.fortec-feuillete { margin-top: 18px; padding: 4px 22px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.fortec-feuillete h3 { margin-top: 18px; }
.fortec-feuillete p { color: var(--muted); margin: 0; }
.fortec-products { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fortec-products li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.86rem; color: var(--muted); }
.fortec-products li.new { border-color: rgba(var(--accent-rgb), .55); color: var(--text); }
.fortec-products li.new::after { content: " · nouveau"; color: var(--accent); font-size: .75rem; }
.modal-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
body.modal-open { overflow: hidden; }

/* ---------- Galerie (photos réelles) + visionneuse ---------- */
.gallery-item > a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-item figcaption { pointer-events: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(3, 4, 6, 0.94); display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: modalIn .35s var(--ease);
}
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px #000; }
.lightbox figcaption { color: var(--muted); font-size: 0.92rem; }
.lb-close, .lb-nav {
  position: absolute; border: 1px solid var(--border-strong); background: rgba(14,15,18,.7); color: var(--text);
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Page Saint-Gobain ---------- */
.sg-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.sg-hero h1 { max-width: 14ch; }
.sg-badge { padding: 36px 30px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.sg-badge img { width: min(260px, 100%); height: auto; }
.sg-badge .sg-x { color: var(--accent); font-size: 1.4rem; }
.sg-badge p { margin: 0; color: var(--muted); font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase; }
.sg-family { padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--border); }
.sg-family-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; margin-bottom: 28px; }
.sg-family-head .num { font-family: ui-monospace, Menlo, monospace; color: var(--accent); font-size: .85rem; }
.sg-family-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.sg-family-head p { grid-column: 2; margin: 6px 0 0; }
.sg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sg-card { padding: 26px; display: flex; flex-direction: column; }
.sg-type { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.sg-card h3 { font-size: 1.25rem; }
.sg-card p { color: var(--muted); font-size: 0.93rem; }
.sg-card .chips { margin: auto 0 0; padding-top: 10px; }
.sg-legal { font-size: 0.78rem; color: var(--faint); max-width: 80ch; margin-top: 30px; }

@media (max-width: 1499px) { .header-phone { display: none; } }
@media (max-width: 1240px) { .nav a { padding: 8px 10px; font-size: 0.88rem; } }
@media (max-width: 1100px) {
  .stories-layout { grid-template-columns: auto auto; justify-content: center; }
  .stories-intro { grid-column: 1 / -1; }
  .sg-grid { grid-template-columns: 1fr 1fr; }
  .fortec-why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sg-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stories-layout { grid-template-columns: 1fr; justify-items: center; }
  .stories-intro { justify-self: stretch; }
  .story-bubbles { order: -1; grid-auto-flow: column; overflow-x: auto; max-width: 100%; padding: 4px 4px 8px; justify-self: stretch; }
  .story-bubble .ring { width: 62px; height: 62px; }
  .story-player { width: 100%; }
  .stories-layout .story-bubbles { order: 1; }
  .stories-intro { order: 0; } .story-player { order: 2; }
  .sg-grid { grid-template-columns: 1fr; }
  .pane-4 { width: 42%; height: 44%; left: 56%; }
  .pane-4 .pane-label { font-size: .7rem; }
  .temper-steps li { grid-template-columns: 38px 1fr; gap: 12px; }
  .temper-steps b { width: 38px; height: 38px; }
  .temper-steps li::before { left: 18px; top: 38px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: block; }
  .agencies { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
  .steps-nav { grid-template-columns: repeat(4, 1fr); padding: 10px; }
  .steps-nav .step-link { flex-direction: column; gap: 6px; font-size: 0.75rem; text-align: center; }
  .aside-help { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .solution-row { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; justify-self: center; margin-top: 24px; aspect-ratio: 1 / 0.9; }
  .hero { min-height: auto; }
  .solution-row:nth-child(even) .solution-media { order: 0; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .solution-card.feature { grid-column: span 2; }
  .process { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .process-step:nth-child(2)::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cta-band { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  :root { --header-h: 66px; }
  .header-cta .btn { display: none; }
  .hero { padding-top: calc(var(--header-h) + 10px); }
  .hero-meta { gap: 24px; margin-top: 44px; }
  .solutions-grid, .agencies, .gallery, .field-grid, .field-grid.three { grid-template-columns: 1fr; }
  .solution-card.feature, .gallery-item.wide { grid-column: auto; }
  .gallery-item.tall { grid-row: auto; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .summary-block dl { grid-template-columns: 1fr; gap: 2px; }
  .summary-block dd { margin-bottom: 10px; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1; }
  .fab-quote { display: inline-flex; }
  .scroll-hint { display: none; }
  .steps-nav .step-link span { display: none; }
  .quote-form { padding: 22px 16px; }
  .item-card { padding: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .bg-fx, .fab-quote { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Intro : une plaque de verre se découpe et devient le logo Vertec
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(700px 420px at 50% 42%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    radial-gradient(900px 600px at 85% 100%, rgba(61, 22, 7, 0.6), transparent 70%),
    var(--bg);
}
.no-js .intro, html.intro-done .intro { display: none; }
html.js:not(.intro-done) body { overflow: hidden; }
.intro-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 60%);
  animation: introGrid 3s var(--ease) both;
}
@keyframes introGrid { from { opacity: 0; transform: scale(1.15); } }
.intro-stage { position: relative; display: grid; justify-items: center; text-align: center; padding: 24px; }

.intro-mark { --mw: clamp(112px, 24vw, 170px); position: relative; width: var(--mw); aspect-ratio: 29.4 / 35.1; }
.intro-strip {
  position: absolute; box-sizing: border-box;
  left: var(--sx); width: var(--sw); top: 0; height: 100%;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 55%, rgba(var(--accent-rgb), 0.12));
  border: 1px solid rgba(255,255,255,0.32);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation:
    stripIn .8s var(--ease) .15s both,
    stripCut .35s ease 1.05s both,
    stripMorph 1.05s cubic-bezier(.7, 0, .2, 1) calc(1.4s + var(--d)) forwards,
    stripOut .5s ease 2.75s forwards;
}
.intro-strip:first-child { border-radius: 6px 0 0 6px; }
.intro-strip:nth-child(5) { border-radius: 0 6px 6px 0; }
@keyframes stripIn { from { opacity: 0; transform: translateY(26px) rotateX(18deg); } to { opacity: 1; transform: none; } }
@keyframes stripCut { to { border-color: rgba(255, 210, 180, 0.85); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35); } }
@keyframes stripMorph {
  to {
    left: var(--bx); width: var(--bw); top: var(--by); height: var(--bh);
    background: rgba(var(--accent-rgb), 0.05); border-radius: 0;
    border-color: #E84C19; border-width: calc(var(--mw) * 0.45 / 29.4);
    box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.55);
  }
}
@keyframes stripOut { to { opacity: 0; } }
.intro-sheen {
  position: absolute; inset: -2px; pointer-events: none; border-radius: 6px;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 60%);
  background-size: 250% 100%; mix-blend-mode: overlay;
  animation: introSheen 1.1s ease .35s both, stripOut .3s ease 1.3s forwards;
}
@keyframes introSheen { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.intro-logo {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.55));
  animation: introFade .6s ease 2.55s forwards;
}
@keyframes introFade { to { opacity: 1; } }
.intro-word { display: grid; margin-top: 30px; line-height: 1; }
.intro-word strong {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2.6rem, 8vw, 4rem);
  animation: wordIn 1s var(--ease) 2.6s both;
}
.intro-word small {
  margin-top: 12px; font-size: clamp(0.62rem, 1.6vw, 0.8rem); letter-spacing: 0.55em; text-transform: uppercase; color: var(--muted);
  animation: wordIn 1s var(--ease) 2.8s both;
}
@keyframes wordIn { from { opacity: 0; letter-spacing: 0.4em; filter: blur(8px); } }
.intro-word small { animation-name: smallIn; }
@keyframes smallIn { from { opacity: 0; letter-spacing: 1.1em; filter: blur(6px); } }
.intro-enter { margin-top: 44px; min-height: 56px; padding: 0 30px; font-size: 1rem; animation: btnIn .8s var(--ease) 3.25s both; }
.intro-enter b { font-weight: 700; }
@keyframes btnIn { from { opacity: 0; transform: translateY(16px); } }
.intro-skip {
  position: absolute; right: 20px; bottom: 20px; background: none; border: 0; cursor: pointer;
  color: var(--faint); font-size: 0.8rem; letter-spacing: .08em; padding: 8px 10px;
  animation: introFade .4s ease .8s both;
}
.intro-skip:hover { color: var(--text); }
.intro.leaving { animation: introOut .9s var(--ease) forwards; pointer-events: none; }
.intro.leaving .intro-stage { animation: stageOut .9s var(--ease) forwards; }
@keyframes introOut { 60% { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes stageOut { to { transform: scale(1.18); filter: blur(10px); opacity: 0; } }

/* ---------- Horaires & statut ouvert / fermé ---------- */
.open-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 500; white-space: nowrap; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--muted);
}
.open-status i { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; flex: none; }
.open-status.open { color: #7ff0b0; border-color: rgba(61, 220, 132, 0.35); background: rgba(61, 220, 132, 0.08); }
.open-status.open i { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulseGreen 2.2s infinite; }
.open-status.soon { color: #ffc37a; border-color: rgba(255, 170, 60, 0.4); background: rgba(255, 170, 60, 0.08); }
.open-status.soon i { background: #ffaa3c; }
.open-status.closed { color: #ff9a9a; border-color: rgba(255, 107, 107, 0.3); background: rgba(255, 107, 107, 0.06); }
.open-status.closed i { background: #ff6b6b; }
@keyframes pulseGreen { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.agency-top { gap: 10px; flex-wrap: wrap; }
.hours { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 6px; font-size: 0.83rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding: 3px 8px; margin: 0 -8px; border-radius: 6px; }
.hours li span:first-child { color: var(--faint); white-space: nowrap; }
.hours li span:last-child { text-align: right; }
.hours li.today { background: rgba(var(--accent-rgb), 0.08); color: var(--text); }
.hours li.today span:first-child { color: var(--accent); font-weight: 500; }
.hours li.today span:first-child::after { content: " · aujourd’hui"; font-weight: 400; color: var(--faint); font-size: .75rem; }
.map-tip .open-status { justify-self: start; margin-top: 6px; }

/* ==========================================================================
   Vera — chat-jeu (guide verre)
   ========================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.vc-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(255, 180, 140, 0.5); cursor: pointer; padding: 0; color: #fff;
  background: radial-gradient(circle at 30% 25%, #ff8a5c, var(--accent) 55%, #a8320c);
  box-shadow: 0 16px 40px -10px rgba(var(--accent-rgb), 0.75), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .4s var(--ease), box-shadow .3s;
}
.vc-launcher:hover { transform: translateY(-3px) scale(1.04); }
.vc-launcher::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.55);
  animation: vcRing 2.6s ease-out infinite;
}
@keyframes vcRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.vc-launcher.active::before { display: none; }
.vc-orb { display: grid; place-items: center; width: 100%; height: 100%; }
.vc-orb svg { width: 24px; height: auto; }
.vc-launcher.active .vc-orb svg { opacity: 0; }
.vc-launcher.active .vc-orb::after { content: "×"; position: absolute; font-size: 2rem; line-height: 1; font-weight: 300; }
.vc-dot {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  background: #fff; color: var(--accent); font: 600 0.75rem/22px var(--font-display); box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.vc-hint {
  position: absolute; right: 78px; top: 50%; transform: translate(10px, -50%); white-space: nowrap; pointer-events: none;
  padding: 10px 16px; border-radius: 14px; background: rgba(14, 15, 18, 0.92); border: 1px solid rgba(var(--accent-rgb), .45);
  font-size: 0.86rem; color: var(--text); opacity: 0; transition: opacity .4s, transform .4s var(--ease);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.8);
}
.vc-launcher.hinting:not(.active) .vc-hint, .vc-launcher:hover:not(.active) .vc-hint { opacity: 1; transform: translate(0, -50%); }

.vc-panel {
  position: fixed; right: 22px; bottom: 100px; z-index: 150; width: min(400px, calc(100vw - 32px));
  height: min(640px, calc(100dvh - 130px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(20, 16, 14, 0.94), rgba(9, 10, 12, 0.96));
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(var(--accent-rgb), .12), 0 0 60px -20px rgba(var(--accent-rgb), .4);
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.vc-panel.open { opacity: 1; transform: none; }

.vc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--border); }
.vc-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--brand);
  background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.45); box-shadow: 0 0 18px -4px rgba(var(--accent-rgb), .6);
}
.vc-avatar svg { width: 17px; height: auto; }
.vc-who { flex: 1; display: grid; line-height: 1.25; }
.vc-who strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.vc-who span { font-size: 0.74rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.vc-who span i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.vc-icon {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--muted);
  cursor: pointer; font-size: 1.15rem; line-height: 1; display: grid; place-items: center;
}
.vc-icon:hover { color: var(--text); border-color: var(--border-strong); }

/* Carte de la quête */
.vc-map { padding: 8px 14px 10px; border-bottom: 1px solid var(--border); background: radial-gradient(300px 80px at 50% 0%, rgba(var(--accent-rgb), .10), transparent); }
.vc-map svg { width: 100%; height: 58px; overflow: visible; }
.vc-trail { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2; stroke-dasharray: 3 5; }
.vc-trail-done { fill: none; stroke: var(--accent); stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), .8)); transition: stroke-dashoffset .9s var(--ease); }
.vc-node circle { fill: #15171b; stroke: rgba(255,255,255,.25); stroke-width: 1.4; transition: all .4s; }
.vc-node text { fill: var(--faint); font: 600 7px var(--font-display); text-anchor: middle; }
.vc-node.done circle { fill: var(--accent); stroke: #ffb27f; }
.vc-node.done text { fill: #fff; }
.vc-node.current circle { stroke: #fff; }
.vc-node:last-of-type text { font-size: 8px; }
.vc-token { transition: transform .9s var(--ease); }
.vc-token circle:first-child { fill: rgba(var(--accent-rgb), .18); stroke: rgba(255,178,127,.7); stroke-width: 1; animation: vcToken 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.vc-token circle:last-child { fill: #fff; }
@keyframes vcToken { 50% { transform: scale(1.25); opacity: .6; } }
.vc-panel:not(.questing) .vc-token { opacity: .55; }
.vc-map-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.vc-xp { padding: 2px 9px; border-radius: 999px; background: rgba(255, 200, 80, .08); border: 1px solid rgba(255, 200, 80, .25); color: #ffd27a; }
.vc-xp.bump { animation: vcBump .6s var(--ease); }
@keyframes vcBump { 40% { transform: scale(1.25); box-shadow: 0 0 16px rgba(255,200,80,.5); } }

/* Messages */
.vc-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.vc-body::-webkit-scrollbar { width: 6px; } .vc-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.vc-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; animation: vcIn .35s var(--ease) both; word-wrap: break-word; }
@keyframes vcIn { from { opacity: 0; transform: translateY(8px); } }
.vc-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.vc-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent), #ff7a45); color: #fff; border-bottom-right-radius: 5px; }
.vc-msg a { color: #ff9a5c; text-decoration: underline; text-underline-offset: 2px; }
.vc-msg small { color: var(--faint); }
.vc-msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.vc-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: vcDots 1s infinite; }
.vc-msg.typing span:nth-child(2) { animation-delay: .15s; } .vc-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vcDots { 40% { transform: translateY(-4px); opacity: .4; } }
.vc-list { margin: 8px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.vc-list li { padding-left: 2px; }
.vc-status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; }
.vc-status i { width: 7px; height: 7px; border-radius: 50%; background: #6b7280; }
.vc-status.open { color: #7ff0b0; } .vc-status.open i { background: #3ddc84; }
.vc-status.soon { color: #ffc37a; } .vc-status.soon i { background: #ffaa3c; }
.vc-status.closed { color: #ff9a9a; } .vc-status.closed i { background: #ff6b6b; }

.vc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: stretch; }
.vc-choice {
  display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.06); color: var(--text);
  font: 500 0.84rem/1.3 var(--font-body); animation: vcIn .4s var(--ease) both;
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.vc-choice .ico { font-size: 1.25rem; flex: none; }
.vc-choice:hover, .vc-choice:focus-visible { background: rgba(var(--accent-rgb), 0.16); border-color: var(--accent); transform: translateY(-2px); }
.vc-choices.locked .vc-choice:not(.picked) { opacity: .3; }
.vc-choice.picked { background: var(--accent); border-color: var(--accent); }
.vc-choices:has(.vc-choice:nth-child(odd):last-child) .vc-choice:last-child { grid-column: 1 / -1; }

/* Trésor */
.vc-msg.card { max-width: 100%; align-self: stretch; padding: 0; background: none; border: 0; }
.vc-treasure {
  position: relative; overflow: hidden; padding: 18px; border-radius: 18px;
  border: 1px solid rgba(255, 200, 80, 0.45);
  background: radial-gradient(260px 120px at 15% 0%, rgba(255, 200, 80, 0.18), transparent 70%), radial-gradient(260px 140px at 100% 100%, rgba(var(--accent-rgb), .22), transparent 70%), #111216;
  box-shadow: 0 0 40px -12px rgba(255, 190, 80, 0.5);
}
.vc-treasure h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin: 10px 0 8px; }
.vc-treasure ul { margin: 0 0 10px; padding-left: 18px; color: var(--muted); font-size: .86rem; display: grid; gap: 4px; }
.vc-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,200,80,.15); color: #ffd27a; border: 1px solid rgba(255,200,80,.35); }
.vc-note { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.vc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-btn { padding: 9px 14px; border-radius: 999px; font: 500 .84rem var(--font-display); text-decoration: none !important; border: 1px solid var(--border-strong); color: var(--text) !important; }
.vc-btn.primary { background: linear-gradient(120deg, var(--accent), #ff7d4a); border-color: transparent; color: #fff !important; box-shadow: 0 8px 20px -8px var(--accent); }
.vc-btn:hover { filter: brightness(1.1); }
.vc-shards { position: absolute; inset: 0; pointer-events: none; }
.vc-shards i {
  position: absolute; top: 40%; left: 50%; width: 8px; height: 14px; opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,178,127,.5)); clip-path: polygon(50% 0, 100% 60%, 30% 100%, 0 40%);
  animation: vcShard 1.2s var(--ease) .1s forwards;
}
.vc-shards i:nth-child(odd) { background: linear-gradient(135deg, #ffd27a, var(--accent)); }
.vc-shards i:nth-child(1) { --tx: -120px; --ty: -70px; --r: 200deg; } .vc-shards i:nth-child(2) { --tx: 110px; --ty: -80px; --r: -160deg; }
.vc-shards i:nth-child(3) { --tx: -150px; --ty: 20px; --r: 120deg; } .vc-shards i:nth-child(4) { --tx: 150px; --ty: 30px; --r: -220deg; }
.vc-shards i:nth-child(5) { --tx: -60px; --ty: -110px; --r: 300deg; } .vc-shards i:nth-child(6) { --tx: 70px; --ty: -120px; --r: -90deg; }
.vc-shards i:nth-child(7) { --tx: -170px; --ty: -40px; --r: 60deg; } .vc-shards i:nth-child(8) { --tx: 175px; --ty: -30px; --r: -40deg; }
.vc-shards i:nth-child(9) { --tx: -90px; --ty: 90px; --r: 160deg; } .vc-shards i:nth-child(10) { --tx: 95px; --ty: 85px; --r: -180deg; }
.vc-shards i:nth-child(11) { --tx: 10px; --ty: -140px; --r: 240deg; } .vc-shards i:nth-child(12) { --tx: -20px; --ty: 120px; --r: -260deg; }
.vc-shards i:nth-child(13) { --tx: 130px; --ty: 110px; --r: 140deg; }
@keyframes vcShard {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(1.1); }
}

/* Raccourcis & saisie */
.vc-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 4px; scrollbar-width: none; }
.vc-quick::-webkit-scrollbar { display: none; }
.vc-chip { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--muted); font-size: .78rem; cursor: pointer; white-space: nowrap; }
.vc-chip:hover { color: var(--text); border-color: rgba(var(--accent-rgb), .5); }
.vc-input { display: flex; gap: 8px; padding: 10px 12px 12px; }
.vc-input input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text); outline: none; font-size: .9rem;
}
.vc-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.vc-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.vc-input button svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .vc-launcher { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .fab-quote { right: auto; left: 16px; }
  .vc-hint { display: none; }
  .vc-panel { inset: 0; width: 100%; height: 100dvh; right: 0; bottom: 0; border-radius: 0; border: 0; background: #0b0c0e; z-index: 160; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.vc-open-mobile { overflow: hidden; }
  .vc-panel.open ~ .vc-launcher, .vc-launcher.active { display: none; }
  .vc-choices { grid-template-columns: 1fr 1fr; }
  .vc-msg { font-size: .92rem; }
}
@media print { .vc-launcher, .vc-panel { display: none !important; } }

/* ---------- Illustrations des solutions (dessins d'architecte) ---------- */
.solution-card .illus {
  display: block; margin: -30px -30px 22px; aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(circle at 70% 20%, rgba(var(--accent-rgb), 0.10), transparent 60%), #0d0f12;
}
.solution-card .illus img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.solution-card:hover .illus img { transform: scale(1.05); }
.solution-card.feature .illus { aspect-ratio: auto; height: 260px; }
.solution-card .num { position: absolute; top: 14px; right: 16px; z-index: 1; }
.solution-card { min-height: 0; }
.solution-media {
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.12), transparent 60%), #0d0f12;
}
.solution-media img { object-fit: contain; padding: 4% 3% 2%; filter: none; }
.solution-media .tag { z-index: 1; }

/* ==========================================================================
   Thèmes événementiels (couleurs pilotées par assets/js/content.js)
   ========================================================================== */
.theme-decor { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.theme-decor span {
  position: absolute; top: -40px; opacity: .75; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  animation: themeFall linear infinite; will-change: transform;
}
@keyframes themeFall {
  0% { transform: translate3d(0, -40px, 0) rotate(0); }
  50% { transform: translate3d(var(--sway), 50vh, 0) rotate(160deg); }
  100% { transform: translate3d(0, 110vh, 0) rotate(320deg); }
}
.theme-toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 95; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px;
  border-radius: 999px; background: rgba(14, 15, 18, .9); border: 1px solid rgba(var(--accent-rgb), .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.8), 0 0 30px -10px rgba(var(--accent-rgb), .6);
  font-size: .88rem; animation: toastIn .6s var(--ease) both;
}
.theme-toast .tt-emoji { font-size: 1.2rem; }
.theme-toast button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--muted); cursor: pointer; flex: none; }
.theme-toast button:hover { color: var(--text); }
.theme-toast.out { opacity: 0; transform: translate(-50%, -10px); transition: all .4s; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } }
[data-theme="independance"] .gradient-text { background: linear-gradient(100deg, #fff 10%, #ff6b7a 45%, #2bd17e 90%); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 640px) { .theme-toast { font-size: .8rem; top: calc(var(--header-h) + 8px); border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .theme-decor { display: none; } }

/* Photo réelle à la place de l'illustration (choisie depuis l'admin) */
.illus.has-photo img, .solution-media.has-photo img { object-fit: cover; padding: 0; }

/* Texte de présentation (référencement local) */
.seo-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 24ch; margin-bottom: 22px; }
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--muted); }
.seo-cols p { margin: 0; }
.seo-cols a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .6); text-underline-offset: 3px; }
.seo-cols a:hover { color: var(--accent); }
.seo-cols b { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .seo-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Espaces publicitaires verticaux (uniquement quand les marges le permettent)
   ========================================================================== */
.ad-rail { display: none; --adw: 160px; }
@media (min-width: 1480px) and (max-width: 1639px) {
  .ad-rail { --adw: 104px; }
}
@media (min-width: 1480px) {
  .ad-rail {
    display: block; position: fixed; top: calc(var(--header-h) + 40px); z-index: 40; width: var(--adw);
    left: calc((100vw - var(--maxw)) / 4 - var(--adw) / 2); animation: adIn .8s var(--ease) both .6s;
  }
  .ad-rail.droite { left: auto; right: calc((100vw - var(--maxw)) / 4 - var(--adw) / 2); }
  .ad-label { display: block; text-align: center; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
  .ad-stack { position: relative; width: var(--adw); aspect-ratio: 160 / 600; max-height: calc(100vh - var(--header-h) - 90px); }
  .ad-slot {
    position: absolute; inset: 0; display: block; border-radius: 14px; overflow: hidden;
    opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s, transform .4s var(--ease);
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  }
  .ad-slot.active { opacity: 1; visibility: visible; }
  a.ad-slot:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--accent-rgb), .5); }
  .ad-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
  html.js:not(.intro-done) .ad-rail { visibility: hidden; }
}
@keyframes adIn { from { opacity: 0; transform: translateY(14px); } }
@media print { .ad-rail { display: none !important; } }
