:root {
  --bg: #07080a;
  --amber-rgb: 245, 177, 76;
  --amber: #f5b14c;
  --amber-deep: #e8902b;
  --amber-glow: rgba(var(--amber-rgb), 0.55);
  --text: #f4ede2;
  --text-muted: #9a948a;
  --border: rgba(var(--amber-rgb), 0.18);
  --lion: #36b24a;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ===== Test couleur : DA bleu électrique / IA ===== */
body.theme-blue {
  --amber-rgb: 61, 180, 255;
  --amber: #3db4ff;
  --amber-deep: #1e78ff;
  --text: #e9f2ff;
  --text-muted: #8fa3bd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Canvas 3D + voile ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(circle at 50% 35%, transparent 28%, rgba(7,8,10,0.55) 78%, rgba(7,8,10,0.85) 100%);
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  background: var(--bg); transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: 0.3em; color: var(--amber); text-shadow: 0 0 30px var(--amber-glow); }
.loader-logo { height: 2.6rem; width: auto; filter: drop-shadow(0 0 30px var(--amber-glow)); animation: loaderPulse 1.6s ease-in-out infinite; }
@keyframes loaderPulse { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
.loader-bar { width: 140px; height: 2px; background: rgba(var(--amber-rgb),0.15); overflow: hidden; position: relative; }
.loader-bar::after { content:""; position:absolute; inset:0; background: var(--amber); transform: translateX(-100%); animation: load 1.1s ease-in-out infinite; }
@keyframes load { 50% { transform: translateX(0);} 100% { transform: translateX(100%);} }

/* ---------- Progression ---------- */
#progress { position: fixed; top:0; left:0; right:0; height:2px; z-index:60; background: transparent; }
#progress span { display:block; height:100%; width:0%; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); box-shadow: 0 0 12px var(--amber-glow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem);
}
.brand { display:flex; align-items:center; gap:0.7rem; text-decoration:none; color: var(--text); }
.brand-mark { display:inline-flex; align-items:center; justify-content:center; width:2.4rem; height:2.4rem; border:1px solid var(--amber); border-radius:50%; font-family: var(--font-display); font-weight:700; font-size:0.8rem; letter-spacing:0.1em; color: var(--amber); }
.brand-text { font-family: var(--font-display); font-weight:700; letter-spacing:0.18em; font-size:0.95rem; }
.brand-text em { font-style: normal; opacity:0.5; font-weight:400; }
.brand-logo { height: 2.6rem; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 2.1rem; } }
.site-nav { display:flex; align-items:center; gap:2rem; }
.site-nav a { color: var(--text); text-decoration:none; font-size:0.8rem; letter-spacing:0.15em; text-transform:uppercase; opacity:0.75; transition: opacity 0.2s, color 0.2s; }
.site-nav a:hover { opacity:1; }
.nav-cta { border:1px solid var(--border); border-radius:999px; padding:0.5rem 1.1rem; color: var(--amber) !important; opacity:1 !important; }
.nav-cta:hover { background: rgba(var(--amber-rgb),0.1); }
.theme-switch { cursor:pointer; font-family: var(--font-body); border:1px solid var(--border); border-radius:999px; padding:0.5rem 1rem; background: rgba(var(--amber-rgb),0.08); color: var(--amber); font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; transition: background 0.2s, border-color 0.2s; }
.theme-switch:hover { background: rgba(var(--amber-rgb),0.18); border-color: var(--amber); }

/* ---------- Layout sections ---------- */
.content { position: relative; z-index: 10; }
/* section contact : fond blanc "Apple" comme les cartes chapitres */
#contact { position: relative; isolation: isolate; overflow: hidden; color: #0a0b0d;
  background:
    radial-gradient(80% 55% at 50% 32%, rgba(var(--amber-rgb), 0.12), transparent 62%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 48%, #eef0f4 100%); }
#contact .eyebrow { color: var(--amber-deep); }
#contact .lead { margin-bottom: 0.5rem; }
#contact .button { margin-top: 1.9rem; }
#contact h2 { color: #0a0b0d; }
#contact .lead { color: #5b6473; }
.panel { min-height: 100vh; display:flex; flex-direction: column; justify-content:center; padding: 7rem clamp(1.5rem, 8vw, 9rem); }
.panel--center { align-items:center; text-align:center; }
.panel--block { gap: 3.5rem; }

.reveal { opacity:0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1), filter 1s ease; }
.reveal.visible { opacity:1; transform:none; filter:none; }

.block-head { max-width: 720px; }
.eyebrow { display:inline-block; margin-bottom:1.25rem; color: var(--amber); font-size:0.78rem; letter-spacing:0.28em; text-transform:uppercase; }
h1 { font-family: var(--font-display); font-weight:700; font-size: clamp(2.6rem, 7vw, 6rem); line-height:0.98; letter-spacing:-0.02em; margin-bottom:1.75rem; }
h2 { font-family: var(--font-display); font-weight:700; font-size: clamp(2rem, 5vw, 3.8rem); line-height:1.02; letter-spacing:-0.02em; margin-bottom:1.25rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); opacity:0.88; line-height:1.6; max-width: 60ch; }
.panel p { color: var(--text-muted); font-size:1.05rem; line-height:1.75; }
.block-head p { max-width: 56ch; }
.panel--center p { margin-left:auto; margin-right:auto; }

.hero-actions { display:flex; flex-wrap:wrap; gap:1rem; margin-top:2.25rem; justify-content:center; }
.scroll-hint { display:inline-block; margin-top:3rem; font-size:0.8rem; letter-spacing:0.2em; text-transform:uppercase; color: var(--text-muted); animation: float 2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(8px); opacity:0.5; } }

/* ---------- Boutons ---------- */
.button { display:inline-flex; align-items:center; gap:0.6rem; padding:1rem 2.1rem; border-radius:999px; background: var(--amber); color:#1a1206; text-decoration:none; font-weight:700; letter-spacing:0.02em; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px var(--amber-glow); }
.button--ghost { background: transparent; color: var(--text); border:1px solid var(--border); }
.button--ghost:hover { border-color: var(--amber); box-shadow:none; }

/* ---------- Cartes expertises ---------- */
.cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:1.25rem; }
.card { padding:2rem 1.75rem; border:1px solid var(--border); border-radius:1.1rem; background: rgba(var(--amber-rgb),0.03); backdrop-filter: blur(8px); transition: transform 0.3s, border-color 0.3s, background 0.3s; }
.card:hover { transform: translateY(-6px); border-color: var(--amber); background: rgba(var(--amber-rgb),0.07); }
.card-icon { display:inline-block; font-size:1.6rem; color: var(--amber); margin-bottom:1rem; }
.card h3 { font-family: var(--font-display); font-size:1.2rem; margin-bottom:0.6rem; }
.card p { color: var(--text-muted); font-size:0.95rem; line-height:1.65; }

/* ---------- Showcase produits ---------- */
.showcase { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items:center; }
.showcase--reverse .showcase-visual { order: 2; }
.tags { display:flex; flex-wrap:wrap; gap:0.6rem; margin-bottom:1.1rem; }
.tag { font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; padding:0.35rem 0.7rem; border-radius:999px; border:1px solid var(--border); color: var(--text-muted); }
.tag--live { color:#7ee0a0; border-color: rgba(126,224,160,0.35); background: rgba(126,224,160,0.08); }
.tag--soon { color: var(--amber); border-color: var(--border); background: rgba(var(--amber-rgb),0.08); }
.showcase-info h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom:0.9rem; }
.showcase-info > p { color: var(--text); opacity:0.85; margin-bottom:1.3rem; max-width: 46ch; }
.features { list-style:none; display:grid; gap:0.7rem; }
.features li { position:relative; padding-left:1.6rem; color: var(--text-muted); font-size:0.98rem; line-height:1.5; }
.features li::before { content:"▸"; position:absolute; left:0; color: var(--amber); }
.note { display:inline-block; margin-top:1.25rem; font-size:0.8rem; color: var(--amber); opacity:0.6; font-style:italic; }

/* ---------- Mockups (placeholders) ---------- */
.showcase-visual { display:flex; justify-content:center; }
.mockup { width:100%; max-width:460px; border:1px solid var(--border); border-radius:0.9rem; overflow:hidden; background:#0d0e11; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(var(--amber-rgb),0.05); }
.mockup-bar { display:flex; gap:0.4rem; padding:0.7rem 0.9rem; background:#131419; border-bottom:1px solid rgba(255,255,255,0.05); }
.mockup-bar span { width:0.6rem; height:0.6rem; border-radius:50%; background: rgba(var(--amber-rgb),0.3); }
.mockup-screen { position:relative; aspect-ratio: 16/10; padding:1.4rem; display:flex; flex-direction:column; gap:0.9rem; background: radial-gradient(circle at 70% 10%, rgba(var(--amber-rgb),0.16), transparent 55%), #0a0b0e; }
.mockup-screen::after { content: attr(data-label); position:absolute; bottom:0.9rem; right:1.1rem; font-family: var(--font-display); font-weight:700; font-size:0.85rem; letter-spacing:0.08em; color: var(--amber); opacity:0.9; }
.mock-row { height:0.7rem; border-radius:4px; background: rgba(255,255,255,0.08); }
.mock-row.short { width:55%; }
.mock-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:0.6rem; flex:1; }
.mock-grid.two { grid-template-columns: repeat(2,1fr); }
.mock-grid i { border-radius:6px; background: linear-gradient(160deg, rgba(var(--amber-rgb),0.18), rgba(255,255,255,0.04)); border:1px solid rgba(var(--amber-rgb),0.1); }
.mock-cal { display:grid; grid-template-columns: repeat(4,1fr); gap:0.5rem; flex:1; }
.mock-cal i { border-radius:5px; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.04); }
.mock-cal i:nth-child(2), .mock-cal i:nth-child(5), .mock-cal i:nth-child(8) { background: rgba(var(--amber-rgb),0.22); border-color: rgba(var(--amber-rgb),0.3); }

/* ---------- Procédé (étapes) ---------- */
.steps { display:grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap:1.5rem; counter-reset: step; }
.step { padding:1.75rem; border-left:1px solid var(--border); }
.step-num { font-family: var(--font-display); font-size:0.9rem; color: var(--amber); letter-spacing:0.1em; }
.step h3 { font-family: var(--font-display); font-size:1.25rem; margin:0.6rem 0 0.5rem; }
.step p { color: var(--text-muted); font-size:0.95rem; line-height:1.6; }

/* ---------- Flash de transition entre mondes ---------- */
.worldflash {
  position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.92), rgba(var(--amber-rgb),0.5) 45%, rgba(var(--amber-rgb),0) 75%);
  mix-blend-mode: screen;
}

/* ---------- Monde LION (section immersive) ---------- */
.world { position: relative; }
.world-intro { min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 7rem clamp(1.5rem, 8vw, 9rem) 2rem; }

/* Talents : 3 colonnes côte à côte (gauche → droite), par-dessus la supernova */
.talents--rows { position: relative; z-index: 2; width: min(1160px, 92%); margin: 0 auto; padding-bottom: 26vh;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); align-items: stretch; }
.talents--rows .talent { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 2.4rem 1.9rem 2.1rem; border: 1px solid var(--border); border-radius: 1.3rem;
  background: linear-gradient(165deg, rgba(24, 18, 10, 0.55), rgba(8, 9, 12, 0.45)); backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -45px rgba(0,0,0,0.85);
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.55s cubic-bezier(.22,.61,.36,1), border-color 0.4s ease, box-shadow 0.4s ease; }
.talents--rows.visible .talent { opacity: 1; transform: none; }
.talents--rows.visible .talent:nth-child(2) { transition-delay: 0.12s; }
.talents--rows.visible .talent:nth-child(3) { transition-delay: 0.24s; }
/* trait d'accent ambre en haut, qui s'étend au survol */
.talents--rows .talent::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 38%;
  background: linear-gradient(90deg, var(--amber), transparent); transition: width 0.5s ease; }
.talents--rows .talent:hover { transform: translateY(-8px); border-color: rgba(var(--amber-rgb), 0.5);
  box-shadow: 0 44px 100px -45px rgba(0,0,0,0.9), 0 0 70px -34px var(--amber-glow); }
.talents--rows.visible .talent:hover { transition-delay: 0s; }
.talents--rows .talent:hover::before { width: 100%; }

.t-num { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; margin-bottom: 1.2rem;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--amber-rgb), 0.32); transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease; }
.talent:hover .t-num { color: rgba(var(--amber-rgb), 0.14); -webkit-text-stroke-color: var(--amber); }

.t-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1.3rem;
  border-radius: 0.9rem; color: var(--amber); background: rgba(var(--amber-rgb), 0.1); border: 1px solid rgba(var(--amber-rgb), 0.28);
  transition: transform 0.4s ease, box-shadow 0.4s ease; }
.t-icon svg { width: 1.6rem; height: 1.6rem; }
.talent:hover .t-icon { transform: scale(1.08); box-shadow: 0 0 28px -6px var(--amber-glow); }

.t-body h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.01em; margin: 0 0 0.55rem; }
.t-body p { color: var(--text-muted); line-height: 1.65; font-size: 0.95rem; margin: 0 0 1.2rem; }

.talent-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.talent-tags li { font-size: 0.72rem; letter-spacing: 0.02em; color: var(--text-muted);
  padding: 0.3rem 0.75rem; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.03); transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.talent:hover .talent-tags li { border-color: rgba(var(--amber-rgb), 0.4); color: var(--text); background: rgba(var(--amber-rgb), 0.07); }

.t-arrow { margin-top: auto; color: var(--amber); font-size: 1.4rem; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.talent:hover .t-arrow { opacity: 1; transform: none; }

@media (max-width: 820px) { .talents--rows { grid-template-columns: 1fr; max-width: 460px; } }
.world-intro h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.stage { min-height: 56vh; display: flex; align-items: center; padding: 2.5rem clamp(1.5rem, 8vw, 9rem); }
.stage--left  { justify-content: flex-start; }
.stage--right { justify-content: flex-end; }
.stage-caption {
  max-width: 420px;
  padding: 2rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(10px);
}
.stage--right .stage-caption { text-align: right; }
.stage-tag { display: inline-block; margin-bottom: 0.5rem; color: var(--amber); font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.05em; }
.stage-caption h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 0.4rem; line-height: 1.1; }
.stage-caption p { color: var(--text-muted); line-height: 1.55; }

.world-logo { display: block; width: min(360px, 70%); margin: 0 auto 1.75rem; filter: drop-shadow(0 8px 30px rgba(0,0,0,0.6)); }
.stage-photo { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0.7rem; margin-bottom: 1.25rem; border: 1px solid var(--border); }

@media (max-width: 720px) {
  .stage--left, .stage--right { justify-content: center; }
  .stage--right .stage-caption { text-align: left; }
}

/* ---------- Galerie SaaS (vraies captures) ---------- */
.saas-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.saas-shot { border: 1px solid var(--border); border-radius: 0.9rem; overflow: hidden; background: #0d0e11; box-shadow: 0 24px 60px -28px rgba(0,0,0,0.8); transition: transform 0.3s, border-color 0.3s; }
.saas-shot:hover { transform: translateY(-5px); border-color: var(--amber); }
.saas-shot img { display: block; width: 100%; height: auto; }
.saas-shot figcaption { padding: 0.9rem 1.1rem; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); }
@media (max-width: 720px) { .saas-gallery { grid-template-columns: 1fr; } }

/* ---------- Fond vidéo "supernova" (remplace les particules) ---------- */
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #07080a; transition: opacity 0.6s ease; }
.bg-video.dim { opacity: 0; }

/* ---------- Démos "scrub" : vidéo métier plein écran + logiciel devant ---------- */
.intro-band {
  position: relative; min-height: 92vh; overflow: hidden; isolation: isolate; color: #0a0b0d;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(var(--amber-rgb), 0.10), transparent 62%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 48%, #eef0f4 100%);
}
.intro-band::before {
  content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none; filter: blur(85px); opacity: 0.5;
  background:
    radial-gradient(26% 26% at 28% 32%, rgba(var(--amber-rgb), 0.40), transparent 60%),
    radial-gradient(24% 24% at 72% 66%, rgba(var(--amber-rgb), 0.26), transparent 60%);
  animation: auroraDrift 16s ease-in-out infinite alternate;
}
.intro-band .eyebrow { color: var(--amber-deep); }
.intro-band h2 { color: #0a0b0d; }
.intro-band .lead { color: #5b6473; opacity: 1; }
/* filigrane : un seul module — l'emblème vert LION en grand, très discret */
.intro-band--lion::before { display: none; } /* on retire la lueur */
.intro-band--lion::after { display: none; } /* filigrane retiré : le logo apparaît déjà dans la démo en dessous */
.scrub-scene { position: relative; height: 480vh; }
.scene-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #07080a; }
.scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,10,0.72) 0%, rgba(7,8,10,0.42) 26%, rgba(7,8,10,0.42) 70%, rgba(7,8,10,0.82) 100%); }
.scene-label { position: absolute; top: clamp(5rem, 11vh, 7rem); left: clamp(1.5rem, 8vw, 9rem); z-index: 3; }

.scene-progress { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.6rem; }
.scene-progress i { width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.2); transition: background 0.3s; }
.scene-progress i.active { background: var(--amber); }

.demo-stage { position: relative; z-index: 2; width: min(720px, 86%); display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }

/* ----- Tableau de bord "vivant" ----- */
.live-dash {
  position: relative; width: 100%; padding: 1.1rem 1.2rem 1.4rem;
  border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(12,14,16,0.74); backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); overflow: hidden;
}
.ld-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.82rem; color: var(--text-muted); }
.ld-brand { font-family: var(--font-display); letter-spacing: 0.1em; color: var(--text); }
.ld-brand b { color: var(--lion); }
.ld-user em { color: var(--lion); font-style: normal; }

.ld-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.ld-kpi { padding: 0.8rem 0.9rem; border-radius: 0.7rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 0.25rem; }
.ld-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.03em; }
.ld-val { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.55rem); color: var(--text); }
.ld-trend { font-size: 0.7rem; color: var(--lion); }

.ld-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0.7rem; margin-top: 0.7rem; }
.ld-chart { padding: 0.8rem 0.9rem; border-radius: 0.7rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.ld-chart svg { width: 100%; height: 120px; display: block; margin-top: 0.4rem; }
.ld-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.live-dash.in .ld-line { transition: stroke-dashoffset 1.8s ease 0.2s; stroke-dashoffset: 0; }
.ld-area { opacity: 0; }
.live-dash.in .ld-area { transition: opacity 1s ease 0.8s; opacity: 1; }

.ld-side { display: flex; flex-direction: column; gap: 0.7rem; }
.ld-list { padding: 0.8rem 0.9rem; border-radius: 0.7rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 0.45rem; }
.ld-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text); opacity: 0; transform: translateX(10px); }
.live-dash.in .ld-item { animation: ldrow 0.5s ease forwards; }
.live-dash.in .ld-item:nth-of-type(2) { animation-delay: 0.45s; }
.live-dash.in .ld-item:nth-of-type(3) { animation-delay: 0.9s; }
@keyframes ldrow { to { opacity: 1; transform: none; } }
.ld-item i { font-style: normal; font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 99px; }
.ld-item i.ok { color: #7ee0a0; background: rgba(126,224,160,0.12); }
.ld-item i.wait { color: var(--amber); background: rgba(var(--amber-rgb),0.12); }
.ld-item i.ship { color: #9bc4ff; background: rgba(155,196,255,0.12); }
.ld-conform { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: 0.7rem; background: rgba(54,178,74,0.1); border: 1px solid rgba(54,178,74,0.25); }
.ld-shield { font-size: 1.4rem; }
.ld-conform b { color: var(--text); font-size: 0.9rem; display: block; }
.ld-conform span { font-size: 0.72rem; color: var(--text-muted); }

/* surbrillance de la fonction active */
.focusable { transition: box-shadow 0.4s, transform 0.4s, border-color 0.4s; }
.focusable.focus { border-color: var(--lion); box-shadow: 0 0 0 1px var(--lion), 0 0 40px -6px rgba(54,178,74,0.55); transform: translateY(-2px); }

/* curseur factice */
.ld-cursor { position: absolute; left: 50%; top: 40%; z-index: 5; color: #fff; font-size: 1.1rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); transition: left 0.7s cubic-bezier(.5,.05,.2,1), top 0.7s cubic-bezier(.5,.05,.2,1); pointer-events: none; }
.ld-cursor::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ld-cursor.click::after { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--lion); transform: translate(-50%, -50%); animation: ldclick 0.55s ease-out; }
@keyframes ldclick { from { width: 8px; height: 8px; opacity: 1; } to { width: 44px; height: 44px; opacity: 0; } }

/* notif vente */
.ld-toast { position: absolute; right: 1rem; bottom: 1rem; z-index: 5; padding: 0.55rem 0.9rem; border-radius: 0.6rem; background: rgba(54,178,74,0.15); border: 1px solid rgba(54,178,74,0.35); color: #b8f0c8; font-size: 0.78rem; opacity: 0; transform: translateY(10px); }
.live-dash.in .ld-toast { animation: ldtoast 0.6s ease 2.4s forwards; }
@keyframes ldtoast { to { opacity: 1; transform: none; } }

/* ----- Transition "chapitre" : écran clair façon Apple ----- */
.chapter {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8rem clamp(1.5rem, 8vw, 9rem);
  overflow: hidden; isolation: isolate;
  color: #0a0b0d;
  background:
    radial-gradient(80% 60% at 50% 28%, rgba(var(--amber-rgb), 0.10), transparent 62%),
    linear-gradient(180deg, #fbfbfd 0%, #ffffff 48%, #eef0f4 100%);
}
/* lueur d'accent douce et animée */
.chapter-aurora {
  position: absolute; inset: -25%; z-index: -2; pointer-events: none;
  filter: blur(80px); opacity: 0.55;
  background:
    radial-gradient(26% 26% at 28% 32%, rgba(var(--amber-rgb), 0.45), transparent 60%),
    radial-gradient(24% 24% at 72% 66%, rgba(var(--amber-rgb), 0.30), transparent 60%);
  animation: auroraDrift 16s ease-in-out infinite alternate;
}
@keyframes auroraDrift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.18); } }
/* fines lignes de séparation haut / bas */
.chapter::before, .chapter::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 1px; height: 6rem; background: linear-gradient(var(--amber), transparent); opacity: 0.45; }
.chapter::before { top: 0; }
.chapter::after { bottom: 0; background: linear-gradient(transparent, var(--amber)); }

.chapter-inner { position: relative; max-width: 720px; }
.chapter-kicker { display: inline-block; margin-bottom: 1.5rem; color: var(--amber-deep); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }
.chapter-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); z-index: -1; font-family: var(--font-display); font-weight: 700; font-size: clamp(12rem, 34vw, 26rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(10, 11, 13, 0.07); pointer-events: none; }
.chapter h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 1.2rem; color: #0a0b0d; }
.chapter p { color: #5b6473; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; max-width: 46ch; margin: 0 auto; }
.chapter .scroll-hint { color: #9aa1ad; margin-top: 2.5rem; }
.chapter--soon .chapter-kicker { color: #9aa1ad; }

/* ----- Fenêtre application : vrais fragments découpés du SaaS ----- */
.app-window { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: auto 1fr; height: 46vh; border-radius: 0.9rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: #f6f7f9; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9); }
.app-side { height: 100%; width: auto; display: block; }
.app-main { position: relative; background: #fff; overflow: hidden; }
.app-topbar { height: 34px; display: flex; align-items: center; gap: 0.4rem; padding: 0 0.8rem; background: #eef0f3; border-bottom: 1px solid #e3e6ea; }
.app-topbar .tl { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.app-url { margin-left: 0.6rem; font-size: 0.72rem; color: #8a93a0; }
.app-views { position: absolute; top: 34px; left: 0; right: 0; bottom: 0; }
.app-view { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; overflow: hidden; }
.app-view.active { opacity: 1; transform: none; }
.app-view img { width: 100%; height: auto; display: block; }
.app-window--solo { grid-template-columns: 1fr; }
.app-window--solo .app-main { background: #0e1320; }
.app-window--solo .app-view { display: flex; align-items: center; justify-content: center; }
.app-window--solo .app-view img { width: 100%; height: 100%; object-fit: contain; }
/* fenêtre "nue" : pas de barre navigateur, 16:9, image entière, halo ambre */
.app-window--bare { width: auto; height: 46vh; aspect-ratio: 16 / 9; max-width: 90%; margin: 0 auto;
  box-shadow: 0 50px 110px -45px rgba(0,0,0,0.95), 0 0 110px -38px rgba(var(--amber-rgb), 0.4), inset 0 1px 0 rgba(255,255,255,0.08); }
.app-window--bare .app-views { top: 0; }
.app-window--bare .app-view img { object-fit: cover; } /* remplit le cadre, pas de bande noire */
#hub-demo .app-window--bare .app-view img { object-position: left center; } /* on garde la gauche du hub visible */
.demo-stage--lion, .demo-stage--hub { width: min(840px, 88%); }

/* bouton "Accéder à la démo" (or) sous l'écran */
.demo-cta { display: inline-flex; align-items: center; gap: 0.5rem; align-self: center; margin-top: 0.2rem;
  padding: 0.72rem 1.6rem; border-radius: 0.7rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.01em; color: #0a0b0d;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  border: 1px solid rgba(var(--amber-rgb), 0.6);
  box-shadow: 0 12px 34px -12px rgba(var(--amber-rgb), 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
.demo-cta span { transition: transform 0.25s ease; }
.demo-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(var(--amber-rgb), 0.8); }
.demo-cta:hover span { transform: translateX(3px); }

/* ----- Disposition : écran à gauche, texte à droite ----- */
.demo-stage--split { width: min(1180px, 92%); display: grid; grid-template-columns: 1.5fr 0.82fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.demo-stage--split .demo-screen { position: relative; }
.demo-stage--split .app-window--bare { width: 100%; height: auto; max-width: none; }
.demo-stage--split .demo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; text-align: left; }
.demo-stage--split .demo-title { margin: 0; }
.demo-stage--split .demo-caps { position: relative; width: 100%; max-width: none; height: auto; min-height: 14.5rem; }
.demo-stage--split .demo-cap { text-align: left; }
.demo-stage--split .demo-cap .demo-step { position: relative; padding-left: 2.6rem; }
.demo-stage--split .demo-cap .demo-step::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.9rem; height: 1px; background: var(--amber); }
.demo-stage--split .demo-cap p { margin-left: 0; margin-right: 0; max-width: 44ch; }
.demo-stage--split .demo-cta { align-self: flex-start; margin-top: 0.5rem; }
@media (max-width: 860px) {
  .demo-stage--split { grid-template-columns: 1fr; gap: 1.2rem; }
  .demo-stage--split .demo-text { align-items: center; text-align: center; }
  .demo-stage--split .demo-cap { text-align: center; }
  .demo-stage--split .demo-cap p { margin-left: auto; margin-right: auto; }
  .demo-stage--split .demo-cta { align-self: center; }
}
/* LION : vidéo métier visible en permanence — voile plus clair + halo cinéma autour de l'écran */
#lion-demo .scene-tint {
  background:
    radial-gradient(120% 80% at 50% 46%, transparent 0%, transparent 30%, rgba(7,8,10,0.55) 72%, rgba(7,8,10,0.8) 100%),
    linear-gradient(180deg, rgba(7,8,10,0.42) 0%, rgba(7,8,10,0.18) 26%, rgba(7,8,10,0.18) 70%, rgba(7,8,10,0.55) 100%);
}
#lion-demo .tour-floor { height: 34px; }
/* logo affiché par défaut (avant le 1er calcul JS) → pas de flash de la 1re image */
#lion-demo { --logo: 1; }
/* intro + final : l'interface s'efface et la vidéo métier passe en pleine lumière */
#lion-demo .demo-stage { transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: calc(1 - var(--logo, 0)); transform: scale(calc(1 - 0.05 * var(--logo, 0))); }
#lion-demo .scene-progress { transition: opacity 0.25s ease; opacity: calc(1 - var(--logo, 0)); }
#lion-demo .scene-tint { transition: opacity 0.25s linear; opacity: calc(1 - 0.55 * var(--logo, 0)); }
/* logo LION en blanc, par-dessus la vidéo : apparaît à l'intro puis revient au final */
#lion-demo .finale-logo { position: absolute; top: 50%; left: 50%; z-index: 3; pointer-events: none;
  width: min(560px, 64%); aspect-ratio: 1169 / 313; background: #fff;
  -webkit-mask: url('assets/lion-logo.png') center / contain no-repeat;
          mask: url('assets/lion-logo.png') center / contain no-repeat;
  transform: translate(-50%, -50%) translateY(calc((1 - var(--logo, 0)) * 28px));
  filter: drop-shadow(0 12px 45px rgba(0,0,0,0.55));
  opacity: var(--logo, 0); transition: opacity 0.25s ease, transform 0.25s ease; }

/* ----- BusinessHub : même mise en place (intro + final) ----- */
#hub-demo { --logo: 1; }
#hub-demo .demo-stage { transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: calc(1 - var(--logo, 0)); transform: scale(calc(1 - 0.05 * var(--logo, 0))); }
#hub-demo .scene-progress { transition: opacity 0.25s ease; opacity: calc(1 - var(--logo, 0)); }
#hub-demo .scene-tint { transition: opacity 0.25s linear; opacity: calc(1 - 0.5 * var(--logo, 0)); }
#hub-demo .tour-floor { height: 34px; }
/* wordmark "BusinessHub" en blanc, par-dessus la vidéo : intro puis final */
#hub-demo .finale-logo--text { position: absolute; top: 50%; left: 50%; z-index: 3; pointer-events: none;
  transform: translate(-50%, -50%) translateY(calc((1 - var(--logo, 0)) * 28px));
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6.5vw, 5rem); letter-spacing: -0.01em;
  color: #fff; text-shadow: 0 12px 45px rgba(0,0,0,0.6); white-space: nowrap;
  opacity: var(--logo, 0); transition: opacity 0.25s ease, transform 0.25s ease; }
.demo-title { text-align: center; }
.demo-title .eyebrow { font-size: 0.8rem; }

/* ---------- Visite guidée du SaaS (scrollytelling : écran fixe + pas) ---------- */
.tour { position: relative; padding: 6rem 0 7rem; background: #07080a; }
/* fond vidéo métier derrière la visite guidée (fixe, affiché seulement pendant la section) */
.tour-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.tour-bg.show { opacity: 1; }
.tour-bg video { width: 100%; height: 100%; object-fit: cover; }
.tour-bg-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,10,0.72) 0%, rgba(7,8,10,0.68) 50%, rgba(7,8,10,0.82) 100%); }
.tour-head { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto 1.5rem; padding: 0 1.5rem; }
.tour-inner { position: relative; z-index: 1; width: min(1200px, 92%); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tour-screen { position: sticky; top: 14vh; perspective: 1800px; }
/* halo ambre + plaque de profondeur derrière la fenêtre */
.tour-screen::before { content: ""; position: absolute; inset: -8% -6% -14%; z-index: 0; background: radial-gradient(60% 55% at 50% 45%, rgba(var(--amber-rgb), 0.22), transparent 70%); filter: blur(20px); pointer-events: none; }
.tour-window {
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 0.9rem; overflow: hidden; background: #0e1320;
  transform-style: preserve-3d;
  transform: none; /* la 3D est déjà dans les images V2 — pas de double inclinaison */
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), box-shadow 0.4s ease;
  box-shadow:
    0 60px 120px -45px rgba(0,0,0,0.95),
    0 25px 55px -45px rgba(0,0,0,0.8),
    0 0 110px -35px rgba(var(--amber-rgb), 0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
/* reflet verre diagonal qui balaie l'écran */
.tour-window::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: linear-gradient(108deg, transparent 28%, rgba(255,255,255,0.13) 44%, rgba(255,255,255,0.04) 52%, transparent 64%);
  mix-blend-mode: screen; opacity: 0.7;
}
.tour-shots { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0e1320; transform: translateZ(1px); }
.tour-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.7s ease; }
.tour-shot.active { opacity: 1; animation: tourZoom 16s ease-out forwards; }
@keyframes tourZoom { from { transform: scale(1.0); } to { transform: scale(1.06); } }
/* reflet au sol sous la fenêtre */
.tour-floor { position: relative; z-index: 0; height: 70px; margin: -2px 6% 0; border-radius: 50%; background: radial-gradient(50% 100% at 50% 0%, rgba(var(--amber-rgb), 0.30), transparent 72%); filter: blur(16px); transform: perspective(1800px) rotateX(60deg) scaleY(0.55); opacity: 0.8; pointer-events: none; }

/* barre de navigation des étapes (cliquable, sous l'écran) */
.tour-nav { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.tour-nav button { cursor: pointer; font-family: var(--font-body); display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.78rem; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.tour-nav button b { font-family: var(--font-display); color: var(--amber); font-size: 0.72rem; }
.tour-nav button:hover { border-color: var(--amber); color: var(--text); }
.tour-nav button.active { background: rgba(var(--amber-rgb), 0.16); border-color: var(--amber); color: var(--text); }
.tour-steps { display: flex; flex-direction: column; }
.tour-step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: opacity 0.4s ease; }
.tour-step.active { opacity: 1; }
.tour-step-num { font-family: var(--font-display); color: var(--amber); font-size: 0.9rem; letter-spacing: 0.15em; }
.tour-step h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 0.5rem 0 0.7rem; }
.tour-step p { color: var(--text-muted); line-height: 1.7; max-width: 42ch; }
.tour-stats { list-style: none; display: flex; gap: 1.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.tour-stats li { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--text); opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.tour-step.active .tour-stats li { opacity: 1; transform: none; }
.tour-step.active .tour-stats li:nth-child(2) { transition-delay: 0.1s; }
.tour-step.active .tour-stats li:nth-child(3) { transition-delay: 0.2s; }
.tour-stats li span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.03em; }
@media (max-width: 860px) {
  .tour-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .tour-screen { top: 7vh; }
  .tour-step { min-height: 68vh; }
}
.app-video { position: absolute; top: 34px; left: 0; width: 100%; height: calc(100% - 34px); object-fit: cover; display: block; background: #0d0e11; }

/* curseur + notif adaptés au fond clair de l'app */
.ld-cursor { color: #16181d; filter: drop-shadow(0 1px 2px rgba(255,255,255,0.9)); z-index: 6; }
.ld-toast { color: #1f7a3a; background: #eafaf0; border-color: rgba(54,178,74,0.4); }
.ld-toast.show { animation: ldtoast 0.6s ease forwards; }

@media (max-width: 820px) { .app-window { height: 52vh; grid-template-columns: 1fr; } .app-side { display: none; } }

/* légendes d'étapes */
.demo-caps { position: relative; width: 100%; max-width: 640px; min-height: 11rem; }
.demo-cap { position: absolute; inset: 0; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.demo-cap.active { opacity: 1; transform: none; }
.demo-cap .demo-step { display: inline-block; font-family: var(--font-display); font-weight: 500; color: var(--amber); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 0.7rem; }
.demo-cap h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 0.7rem; color: var(--text); }
.demo-cap p { color: var(--text-muted); line-height: 1.75; font-size: 1.02rem; margin: 0 auto; max-width: 50ch; }

@media (max-width: 820px) {
  .ld-kpis { grid-template-columns: repeat(2, 1fr); }
  .ld-row { grid-template-columns: 1fr; }
  .demo-caps { height: 9rem; }
  .app-window { height: 46vh; grid-template-columns: 1fr; }
  .app-side { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { position:relative; z-index:10; overflow:hidden; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 8vw, 9rem) 1.8rem; border-top:1px solid var(--border); background: #07080a; color: var(--text-muted); }
/* fond vidéo supernova atténué */
.footer-bg { position:absolute; inset:0; z-index:0; overflow:hidden; }
.footer-bg video { width:100%; height:100%; object-fit:cover; opacity:0.55; }
.footer-bg-tint { position:absolute; inset:0; background: linear-gradient(180deg, rgba(7,8,10,0.97) 0%, rgba(7,8,10,0.74) 38%, rgba(7,8,10,0.7) 70%, rgba(7,8,10,0.88) 100%); }
.footer-inner, .footer-bottom { position:relative; z-index:1; }
.footer-inner { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 1180px; margin: 0 auto; }
.footer-brand p { margin-top: 0.9rem; line-height: 1.6; font-size: 0.9rem; max-width: 34ch; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--text); display: inline-flex; gap: 0.45em; }
.footer-logo span { color: var(--amber); }
.footer-logo-img { height: 2.4rem; width: auto; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 0.4rem; opacity: 0.85; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap:0.8rem; max-width:1180px; margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 0.82rem; letter-spacing: 0.04em; }
.footer-tag { color: var(--amber); opacity:0.7; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Pages légales ---------- */
.legal-page { background: #07080a; color: var(--text); min-height: 100vh; }
.legal-head { position: sticky; top: 0; z-index: 10; display:flex; align-items:center; justify-content:space-between; padding: 1rem clamp(1.5rem, 8vw, 9rem); border-bottom: 1px solid var(--border); background: rgba(7,8,10,0.85); backdrop-filter: blur(10px); }
.legal-head .footer-logo { font-size: 1.1rem; }
.legal-head a.back { color: var(--text-muted); text-decoration:none; font-size: 0.88rem; transition: color 0.25s; }
.legal-head a.back:hover { color: var(--amber); }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 2rem) 6rem; }
.legal .eyebrow { color: var(--amber); }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; margin: 0.6rem 0 0.4rem; }
.legal .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 2.4rem 0 0.8rem; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); line-height: 1.75; font-size: 0.96rem; }
.legal ul { padding-left: 1.2rem; margin: 0.6rem 0; display: flex; flex-direction: column; gap: 0.35rem; }
.legal a { color: var(--amber); }
.legal .todo { color: var(--amber-deep); background: rgba(var(--amber-rgb), 0.1); border: 1px dashed rgba(var(--amber-rgb), 0.45); border-radius: 0.4rem; padding: 0.05rem 0.4rem; font-size: 0.9em; }
.legal .card { border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.3rem 1.5rem; background: rgba(255,255,255,0.02); margin-top: 1rem; }
.legal .card p { margin: 0.25rem 0; }

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap:2rem; }
  .showcase--reverse .showcase-visual { order:0; }
}
@media (max-width: 720px) {
  .site-nav { gap:1rem; }
  .site-nav a:not(.nav-cta) { display:none; }
  .panel { padding: 6rem 1.5rem; }
}
