/* public/assets/css/site.css — Clain Digital */

/* Les polices et la palette viennent de tokens.css (chargé avant cette feuille). */

/* ---------- Identité : rôles du site branchés sur le système de design ---------- */
:root {
    --bg: var(--cd-surface);
    --bg-2: var(--cd-surface-alt);
    --surface: var(--cd-surface-card);
    --surface-2: var(--cd-surface-alt);
    --line: var(--cd-border);
    --line-strong: var(--cd-border-strong);
    --text: var(--cd-ink);
    --muted: var(--cd-slate);
    --dim: var(--cd-muted);

    /* teintes d'illustration, accordées à la palette */
    --violet: var(--cd-rubrique-ia);
    --cyan: var(--cd-rubrique-auto);
    --coral: var(--cd-rubrique-contact);
    --amber: var(--cd-ocre);
    --emerald: var(--cd-success);
    --blue: var(--cd-bleu-clain);
    --pink: #A84B6E;

    --accent: var(--cd-rubrique-accueil);
    --accent-2: var(--cd-ocre);
    --on-accent: var(--cd-on-brand);

    --font-display: var(--cd-font-serif);
    --font-body: var(--cd-font-sans);

    --radius: var(--cd-radius-lg);
    --radius-sm: var(--cd-radius-md);
    --container: 1180px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --header-h: 76px;

    --tint: var(--cd-tint);
    --chrome-bg: color-mix(in srgb, var(--cd-surface) 92%, transparent);
    --menu-bg: var(--cd-surface);
    --card-solid: var(--cd-surface-card);
    --tone-ok: var(--cd-success);
    --tone-bad: var(--cd-danger);
}

/* Une couleur par rubrique ; l'ocre reste l'accent secondaire partout */
.theme-ia { --accent: var(--cd-rubrique-ia); }
.theme-auto { --accent: var(--cd-rubrique-auto); }
.theme-web { --accent: var(--cd-rubrique-web); }
.theme-app { --accent: var(--cd-rubrique-app); }
.theme-seo { --accent: var(--cd-rubrique-seo); }
.theme-cyber { --accent: var(--cd-rubrique-cyber); }
.theme-contact { --accent: var(--cd-rubrique-contact); }
/* encres : accents utilisés comme couleur de texte, recalculées là où une page ou une carte change d'accent.
   Sur fond sombre on les éclaircit ; sur Calcaire les teintes de rubrique sont lisibles telles quelles. */
body, [class*="theme-"] {
    --accent-ink: color-mix(in srgb, var(--accent) 55%, #fff);
    --accent-2-ink: var(--cd-accent-ink);
    --emerald-ink: var(--cd-success);
}
[data-theme="light"] body, [data-theme="light"] [class*="theme-"] { --accent-ink: var(--accent); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    /* plus de dégradé : la « couleur de marque » de la page est son accent, à plat */
    --grad: var(--accent);
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-2-ink); outline-offset: 3px; border-radius: var(--cd-radius-md); }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--bg-2); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: var(--cd-radius-md); }
.skip-link:focus { left: 12px; }

/* ---------- Typographie ---------- */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
.h1 { font-size: clamp(2.4rem, 5.8vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.25; font-weight: 600; letter-spacing: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.grad-text { color: var(--accent-ink); font-style: italic; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.74rem; font-weight: 500; letter-spacing: var(--cd-tracking-label); text-transform: uppercase;
    color: var(--accent-2-ink);
    margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--grad); border-radius: var(--cd-radius-md); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 20px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ''; width: 28px; height: 2px; background: var(--grad); border-radius: var(--cd-radius-md); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.mark { width: 40px; height: 40px; flex: none; color: var(--text); }
.site-header .brand { flex: none; }
.mark-path { stroke-dasharray: 80; stroke-dashoffset: 0; }
.brand:hover .mark-path { animation: draw 0.9s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.logo-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; color: var(--text); }
.logo-text b { font-weight: 700; color: var(--cd-brand-ink); }

/* ---------- Boutons ---------- */
.btn {
    --btn-bg: transparent;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: var(--cd-radius-md); border: 1px solid transparent;
    font-weight: 500; font-size: 0.98rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn .ico { transition: transform 0.35s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn-primary { color: var(--on-accent); background: var(--accent); box-shadow: var(--cd-shadow-subtle); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }
/* CTA ocre : l'appel à l'action prioritaire, une seule fois par écran */
.btn-cta { color: var(--cd-on-accent); background: var(--cd-ocre); box-shadow: var(--cd-shadow-subtle); }
.btn-cta:hover { background: color-mix(in srgb, var(--cd-ocre) 88%, #000); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-2-ink); background: rgb(var(--tint) / 0.07); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 17px 30px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn-row.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-2-ink); }
.text-link .ico { transition: transform 0.3s var(--ease); }
.text-link:hover .ico { transform: translateX(5px); }

/* ---------- En-tête ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background 0.4s, border-color 0.4s, height 0.4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-stuck { height: 64px; background: var(--chrome-bg); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; gap: 2px; }
.nav-link { white-space: nowrap; padding: 8px 15px; border-radius: var(--cd-radius-md); font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.25s, background 0.25s; }
.nav-link:hover { color: var(--text); background: rgb(var(--tint) / 0.07); }
.nav-link.is-active { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: var(--cd-radius-lg); border: 1px solid var(--line-strong); background: rgb(var(--tint) / 0.04); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; border-radius: var(--cd-radius-md); background: var(--text); transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 24px) 24px 32px; background: var(--menu-bg); backdrop-filter: blur(22px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity 0.35s, transform 0.35s var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-link { font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; padding: 13px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); }
.mobile-menu.is-open .mobile-link { animation: rise 0.5s var(--ease) forwards; }
.mobile-menu.is-open .mobile-link:nth-child(2) { animation-delay: 0.05s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-link:nth-child(5) { animation-delay: 0.2s; }
.mobile-menu.is-open .mobile-link:nth-child(6) { animation-delay: 0.25s; }
.mobile-menu.is-open .mobile-link:nth-child(7) { animation-delay: 0.3s; }
.mobile-link.is-active { color: var(--accent-2-ink); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Décor ---------- */
.orb { display: none; }
.orb-a { width: 520px; height: 520px; background: var(--accent); top: -160px; left: -140px; }
.orb-b { width: 460px; height: 460px; background: var(--accent-2); bottom: -180px; right: -120px; animation-delay: -6s; opacity: 0.35; }
.orb-c { width: 300px; height: 300px; background: var(--coral); top: 40%; left: 55%; opacity: 0.16; animation-delay: -11s; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(40px, -30px, 0) scale(1.08); } 66% { transform: translate3d(-30px, 30px, 0) scale(0.95); } }
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 78%); opacity: 0.35; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 9vw, 110px)) 0 clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero:not(.hero-home) { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 76px)); }
.hero-home { min-height: min(100svh, 980px); display: flex; align-items: center; }
.hero canvas.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.3; }
.hero-home canvas.net { opacity: 0.5; }
.hero .card { background: var(--card-solid); backdrop-filter: blur(14px); }
.hero .orb, .hero .grid-bg { z-index: -2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-center { text-align: center; max-width: 980px; margin-inline: auto; }
.hero-center .lead { margin-inline: auto; }
.hero-center .btn-row { justify-content: center; }
.hero .lead { margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: var(--cd-radius-md); border: 1px solid var(--line-strong); background: rgb(var(--tint) / 0.04); backdrop-filter: blur(10px); font-size: 0.86rem; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 60%, transparent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.typed { display: inline-block; min-height: 1.05em; }
.typed::after { content: ''; display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.06em; background: var(--accent-2); vertical-align: -0.04em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--muted); font-size: 0.93rem; }
.hero-center .hero-points { justify-content: center; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--emerald-ink); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: var(--cd-radius-lg); }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: var(--cd-radius-md); background: var(--accent-2); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgb(var(--tint) / 0.02); 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; width: max-content; gap: 14px; padding: 20px 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--cd-radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.chip .ico { color: var(--accent-2-ink); }

/* ---------- Cartes ---------- */
.card { position: relative; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); transform: translateY(-3px); box-shadow: var(--cd-shadow-panel); }
.card > * { position: relative; }
.card p { color: var(--muted); margin-top: 12px; font-size: 0.98rem; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--cd-radius-lg); margin-bottom: 22px; color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 40%, transparent); font-size: 1.25rem; transition: transform 0.5s var(--ease); }
.card-num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); margin-bottom: 14px; }
.card .text-link { margin-top: 22px; color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* Bento des expertises */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.bento .card { grid-column: span 2; min-height: 290px; display: flex; flex-direction: column; }
.bento .card.wide { grid-column: span 3; }
.bento .card .text-link { margin-top: auto; padding-top: 22px; }
.bento .card-art { position: absolute; right: -30px; bottom: -30px; width: 170px; height: 170px; opacity: 0.1; color: var(--c); transition: transform 0.8s var(--ease), opacity 0.5s; }
.bento .card-art .ico { width: 100%; height: 100%; stroke-width: 0.7; }
.bento .card:hover .card-art { opacity: 0.18; }

/* ---------- Listes ---------- */
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 600; }
.checks .ico { margin-top: 3px; color: var(--accent-2-ink); padding: 3px; width: 1.5em; height: 1.5em; border-radius: 50%; background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line-strong); transform-origin: 0 50%; }
.step { counter-increment: step; position: relative; padding-top: 78px; }
.step::before { content: counter(step); position: absolute; top: 0; left: 0; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--on-accent); background: var(--accent); box-shadow: 0 0 0 8px var(--bg); }
.section-alt .step::before { box-shadow: 0 0 0 8px var(--bg-2); }
.step p { color: var(--muted); margin-top: 10px; font-size: 0.97rem; }

/* ---------- Onglets métiers ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tab { padding: 11px 20px; border-radius: var(--cd-radius-md); border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.3s var(--ease); }
.tab:hover { color: var(--text); border-color: var(--accent-2-ink); }
.tab[aria-selected="true"] { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.is-active { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tab-panel.is-active .card { animation: pop 0.6s var(--ease) both; }
.tab-panel.is-active .card:nth-child(2) { animation-delay: 0.08s; }
.tab-panel.is-active .card:nth-child(3) { animation-delay: 0.16s; }
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(0.97); } }

/* ---------- Fenêtres de démonstration ---------- */
.window { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--cd-shadow-card); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 10px; padding: 4px 14px; border-radius: var(--cd-radius-md); background: rgb(var(--tint) / 0.05); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-body { padding: 22px; }
.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px); } }

/* Conversation IA */
.chat { display: flex; flex-direction: column; gap: 12px; min-height: 330px; justify-content: flex-end; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: var(--cd-radius-lg); font-size: 0.95rem; line-height: 1.5; animation: pop 0.45s var(--ease) both; }
.msg.user { align-self: flex-end; background: var(--grad); color: var(--on-accent); font-weight: 500; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: rgb(var(--tint) / 0.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot small { display: block; margin-top: 8px; color: var(--accent-2-ink); font-size: 0.8rem; }
.dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 30% { transform: translateY(-6px); opacity: 1; } 0%, 60%, 100% { transform: none; opacity: 0.5; } }

/* Schéma d'automatisation */
.flow { position: relative; display: grid; gap: 14px; }
.flow-node { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--cd-radius-lg); background: rgb(var(--tint) / 0.045); border: 1px solid var(--line); animation: nodeglow 8s infinite; animation-delay: calc(var(--i) * 1.6s); }
.flow-node .card-icon { margin: 0; width: 44px; height: 44px; border-radius: var(--cd-radius-lg); font-size: 1.05rem; }
.flow-node b { display: block; font-size: 0.97rem; }
.flow-node small { color: var(--muted); font-size: 0.84rem; }
.flow-node em { margin-left: auto; font-style: normal; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--cd-radius-md); color: var(--emerald-ink); background: color-mix(in srgb, var(--emerald) 14%, transparent); opacity: 0; animation: done 8s infinite; animation-delay: calc(var(--i) * 1.6s); }
.flow-node:not(:last-child)::after { content: ''; position: absolute; left: 39px; top: 100%; width: 2px; height: 14px; background: var(--line-strong); }
.flow-node:not(:last-child)::before { content: ''; position: absolute; left: 36px; top: 100%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); opacity: 0; z-index: 1; animation: drop 8s infinite; animation-delay: calc(var(--i) * 1.6s + 1s); }
@keyframes nodeglow { 0%, 22%, 100% { border-color: var(--line); background: rgb(var(--tint) / 0.045); } 6%, 16% { border-color: var(--accent-2-ink); background: color-mix(in srgb, var(--accent-2) 10%, transparent); } }
@keyframes done { 0%, 12% { opacity: 0; transform: scale(0.8); } 18%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-4px); } 3% { opacity: 1; } 7% { opacity: 1; transform: translateY(14px); } 8%, 100% { opacity: 0; transform: translateY(14px); } }

/* Maquette de site qui se construit */
.mock { display: grid; gap: 12px; }
.mock > * { border-radius: var(--cd-radius-lg); background: rgb(var(--tint) / 0.07); opacity: 0; animation: build 9s infinite; animation-delay: calc(var(--i) * 0.45s); }
.mock-nav { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.mock-nav::before { content: ''; width: 18px; height: 18px; border-radius: var(--cd-radius-md); background: var(--grad); }
.mock-nav::after { content: ''; margin-left: auto; width: 74px; height: 14px; border-radius: var(--cd-radius-md); background: var(--grad); opacity: 0.85; }
.mock-hero { height: 150px; padding: 22px; background: color-mix(in srgb, var(--accent) 22%, transparent) !important; display: grid; align-content: center; gap: 10px; }
.mock-hero i { display: block; height: 14px; width: 70%; border-radius: var(--cd-radius-md); background: rgb(var(--tint) / 0.85); }
.mock-hero i:nth-child(2) { width: 46%; opacity: 0.55; height: 10px; }
.mock-hero i:nth-child(3) { width: 110px; height: 26px; margin-top: 6px; background: var(--text); }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: none !important; }
.mock-cols i { height: 78px; border-radius: var(--cd-radius-lg); background: rgb(var(--tint) / 0.07); }
.mock-line { height: 12px; width: 60%; }
@keyframes build { 0% { opacity: 0; transform: translateY(16px) scale(0.97); } 8%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-8px); } }
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.gauge { text-align: center; font-size: 0.78rem; color: var(--muted); }
.gauge svg { width: 62px; height: 62px; margin: 0 auto 8px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 5; }
.gauge .g-bg { stroke: rgb(var(--tint) / 0.08); }
.gauge .g-fg { stroke: var(--emerald); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; transition: stroke-dashoffset 2s var(--ease) 0.4s; }
.is-in .gauge .g-fg, .gauge.is-in .g-fg { stroke-dashoffset: 8; }

/* Résultats de recherche */
.serp { display: grid; gap: 10px; position: relative; }
.serp-search { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--cd-radius-md); background: rgb(var(--tint) / 0.07); border: 1px solid var(--line); color: var(--text); font-size: 0.95rem; margin-bottom: 8px; }
.serp-search .ico { color: var(--accent-ink); }
.serp-item { height: 66px; align-content: center; padding: 0 16px; border-radius: var(--cd-radius-lg); background: rgb(var(--tint) / 0.035); border: 1px solid var(--line); display: grid; gap: 7px; }
.serp-item i { display: block; height: 9px; border-radius: var(--cd-radius-md); background: rgb(var(--tint) / 0.14); width: 55%; }
.serp-item i:nth-child(2) { width: 85%; height: 7px; opacity: 0.6; }
.serp-item.you { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: var(--cd-shadow-panel); animation: climb 9s var(--ease) infinite; position: relative; z-index: 2; }
.serp-item.you b { font-size: 0.97rem; color: var(--accent-ink); display: flex; align-items: center; gap: 8px; }
.serp-item.you small { color: var(--muted); font-size: 0.84rem; }
@keyframes climb { 0%, 12% { transform: translateY(0); } 34%, 46% { transform: translateY(-76px); } 68%, 90% { transform: translateY(-152px); } 100% { transform: translateY(0); } }
.serp-item.o1 { animation: sink1 9s var(--ease) infinite; }
.serp-item.o2 { animation: sink2 9s var(--ease) infinite; }
@keyframes sink1 { 0%, 46% { transform: none; } 68%, 90% { transform: translateY(76px); } 100% { transform: none; } }
@keyframes sink2 { 0%, 12% { transform: none; } 34%, 90% { transform: translateY(76px); } 100% { transform: none; } }

/* Bouclier */
.radar { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.radar::before, .radar::after, .radar span { content: ''; position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.radar::before { inset: 0; }
.radar::after { inset: 16%; }
.radar span { inset: 32%; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 78%, color-mix(in srgb, var(--accent) 55%, transparent) 100%); animation: spin 4.5s linear infinite; mask-image: radial-gradient(circle, transparent 0, #000 1%); }
@keyframes spin { to { transform: rotate(360deg); } }
.radar-shield { position: relative; width: 38%; color: var(--accent-ink); animation: pulse 3s ease-in-out infinite; }
.radar-shield .ico { width: 100%; height: 100%; stroke-width: 1.1; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.threat { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 16px var(--coral); animation: threat 4.5s infinite; }
.threat:nth-of-type(1) { top: 16%; left: 68%; animation-delay: 0.6s; }
.threat:nth-of-type(2) { top: 70%; left: 80%; animation-delay: 1.7s; }
.threat:nth-of-type(3) { top: 78%; left: 22%; animation-delay: 2.9s; }
.threat:nth-of-type(4) { top: 24%; left: 14%; animation-delay: 3.9s; }
@keyframes threat { 0%, 100% { opacity: 0; transform: scale(0.4); } 8% { opacity: 1; transform: scale(1.2); } 20% { opacity: 1; transform: scale(1); background: var(--coral); } 30% { background: var(--emerald); box-shadow: 0 0 16px var(--emerald); opacity: 1; } 45% { opacity: 0; transform: scale(0.2); } }

/* ---------- Simulateurs ---------- */
.tool { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.field { display: grid; gap: 10px; margin-bottom: 26px; }
.field label, .field .label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 0.97rem; }
.field output { color: var(--accent-2-ink); font-family: var(--font-display); font-size: 1.1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: var(--cd-radius-md); background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgb(var(--tint) / 0.12) var(--p, 50%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: var(--cd-shadow-subtle); transition: transform 0.2s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.result { text-align: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.result-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 8vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; }
.result p { color: var(--muted); margin-top: 10px; }
.result-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.result-sub div { padding: 14px; border-radius: var(--cd-radius-lg); background: rgb(var(--tint) / 0.04); }
.result-sub b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.result-sub small { color: var(--muted); font-size: 0.82rem; }
.note { font-size: 0.84rem; color: var(--dim); margin-top: 16px; }

.quiz { display: grid; gap: 10px; }
.quiz label { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--cd-radius-lg); border: 1px solid var(--line); background: rgb(var(--tint) / 0.03); cursor: pointer; transition: border-color 0.3s, background 0.3s; font-size: 0.97rem; }
.quiz label:hover { border-color: var(--line-strong); }
.quiz input { position: absolute; opacity: 0; }
.quiz .box { flex: none; width: 24px; height: 24px; border-radius: var(--cd-radius-md); border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: all 0.3s var(--ease); }
.quiz .box .ico { width: 16px; height: 16px; stroke-width: 3; }
.quiz input:checked + .box { background: var(--accent); border-color: var(--accent-ink); color: var(--on-accent); transform: scale(1.08); }
.quiz label:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.quiz input:focus-visible + .box { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.meter { height: 12px; border-radius: var(--cd-radius-md); background: rgb(var(--tint) / 0.1); overflow: hidden; margin: 22px 0 14px; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--amber), var(--emerald)); background-size: 300px 100%; transition: width 0.7s var(--ease); }

/* ---------- Tarifs ---------- */
.price-flag { position: relative; display: inline-grid; gap: 2px; margin-top: 22px; padding: 13px 24px 14px 22px; border-radius: var(--cd-radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); box-shadow: 0 24px 60px -28px var(--accent); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.price-flag:hover { box-shadow: var(--cd-shadow-panel); }
.price-flag-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2-ink); }
.price-flag-amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.03em; }
.price-flag-amount small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-flag-note { font-size: 0.9rem; color: var(--muted); }
.hero .price-flag + .btn-row { margin-top: 20px; }
.price-card .price { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; letter-spacing: -0.03em; margin-top: 16px; line-height: 1.1; }
.price-card .price small { display: block; font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 4px; }
.price-card .price span { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* ---------- Comparatif de prix ---------- */
.compare { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare-head, .compare-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr) minmax(0, 0.8fr); gap: 20px; align-items: center; padding: 18px clamp(18px, 3vw, 30px); }
.compare-head { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); background: rgb(var(--tint) / 0.03); }
.compare-head span:last-child { color: var(--accent-2-ink); text-align: right; }
.compare-row { border-top: 1px solid var(--line); transition: background 0.3s, transform 0.3s var(--ease); }
.compare-row:hover { background: rgb(var(--tint) / 0.05); }
.compare-label { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.compare-label .card-icon { margin: 0; width: 42px; height: 42px; border-radius: var(--cd-radius-lg); font-size: 1rem; flex: none; }
.compare-market s { display: block; color: var(--muted); text-decoration: none; font-weight: 600; }
.compare-market small { display: block; color: var(--dim); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }
.compare-ours { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; white-space: nowrap; color: var(--accent-ink); }
.compare-ours small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.compare + .note { max-width: 86ch; }
.nav-link-solo { border: 1px solid var(--line); background: rgb(var(--tint) / 0.04); }
@media (max-width: 1080px) { .nav-link-solo { display: none; } }
@media (max-width: 760px) {
    .compare-head { display: none; }
    .compare-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
    .compare-row:first-of-type { border-top: 0; }
    .compare-label { grid-column: 1 / -1; }
    .compare-ours { align-self: start; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgb(var(--tint) / 0.03); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgb(var(--tint) / 0.05); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--tint) / 0.07); font-size: 1.3rem; font-weight: 400; color: var(--accent-2-ink); transition: transform 0.4s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--accent); color: var(--on-accent); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Appel à l'action ---------- */
.cta-section { padding-top: 0; }
.cta-band { position: relative; text-align: center; padding: clamp(48px, 8vw, 96px) clamp(22px, 6vw, 80px); border-radius: calc(var(--radius) + 10px); border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; isolation: isolate; }
.cta-band .lead { margin: 20px auto 0; }
.cta-aurora { display: none; }
.cta-band::before { content: ''; position: absolute; left: 50%; top: 0; width: 64px; height: 3px; margin-left: -32px; background: var(--cd-ocre); }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input { display: grid; gap: 8px; }
.input label { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.input input, .input select, .input textarea { width: 100%; padding: 15px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgb(var(--tint) / 0.04); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.input textarea { resize: vertical; min-height: 150px; }
.input select option { background: var(--surface); }
.input input::placeholder, .input textarea::placeholder { color: var(--dim); }
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--accent-ink); background: rgb(var(--tint) / 0.07); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 500; display: flex; gap: 12px; align-items: flex-start; }
.alert-ok { background: color-mix(in srgb, var(--cd-success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cd-success) 45%, transparent); color: var(--tone-ok); }
.alert-ko { background: color-mix(in srgb, var(--cd-danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cd-danger) 45%, transparent); color: var(--tone-bad); }
.contact-list { display: grid; gap: 16px; margin-top: 30px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .card-icon { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: 0.85rem; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-brand p { color: var(--muted); max-width: 46ch; margin-top: 20px; font-size: 0.95rem; }
.footer-place { display: flex; gap: 10px; align-items: center; }
.footer-place .ico { color: var(--accent-2-ink); }
.footer-col h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; transition: color 0.25s, padding-left 0.3s var(--ease); }
.footer-col a:hover { color: var(--text); padding-left: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.86rem; }

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1080px) {
    .main-nav { display: none; }
    .burger { display: inline-flex; }
    .bento .card, .bento .card.wide { grid-column: span 3; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .steps::before { display: none; }
}
@media (max-width: 900px) {
    body { font-size: 16px; }
    /* un décalage horizontal élargirait la page sur mobile */
    .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(34px); }
    .hero-grid, .split, .tool { grid-template-columns: minmax(0, 1fr); }
    .split.reverse > :first-child { order: 0; }
    .grid-3, .tab-panel.is-active { grid-template-columns: minmax(0, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-home { min-height: 0; }
    .scroll-hint { display: none; }
}
@media (max-width: 640px) {
    .container { width: min(var(--container), 100% - 32px); }
    .header-cta .btn { display: none; }
    .bento .card, .bento .card.wide { grid-column: 1 / -1; min-height: 0; }
    .grid-2, .grid-4, .steps, .form-row, .footer-top { grid-template-columns: minmax(0, 1fr); }
    .btn-row .btn { width: 100%; }
    .btn { white-space: normal; text-align: center; }
    .gauges { grid-template-columns: repeat(2, 1fr); }
    .hero-home .typed { display: block; min-height: 2.12em; }
    .hero-home canvas.net { opacity: 0.55; }
    .badge { text-align: left; }
    .orb-a { width: 320px; height: 320px; }
    .orb-b { width: 280px; height: 280px; }
    .window-body { padding: 16px; }
    .chat { min-height: 300px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .mock > *, .flow-node em { opacity: 1; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Thème clair ---------- */
[data-theme="light"] .card-num, [data-theme="light"] .card .text-link, [data-theme="light"] .card-icon { color: var(--c, var(--accent)); }

/* ---------- Sélecteur de thème ---------- */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--cd-radius-md); border: 1px solid var(--line); background: rgb(var(--tint) / 0.04); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 0; border-radius: var(--cd-radius-md); background: transparent; color: var(--muted); cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: rgb(var(--tint) / 0.1); color: var(--text); }
.theme-switch svg { width: 16px; height: 16px; flex: none; }
.theme-switch .lbl { display: none; }
html:not(.js) .theme-switch { display: none; }
.mobile-menu .theme-switch { align-self: flex-start; }
.mobile-menu .theme-switch .lbl { display: inline; }
/* l'en-tête complet (logo, six rubriques, thème, CTA) demande environ 1 340 px ; en dessous, menu burger */
@media (max-width: 1340px) { .main-nav { display: none; } .burger { display: inline-flex; } .header-cta .theme-switch { display: none; } }

/* ---------- Ouverture de l'agence (une fois par visite) ----------
   Rideau sombre dans les deux thèmes. Repères (secondes) :
   0,3 → 1,6 l'hexagone se dessine · 1,2 l'onde · 1,9 le point et son onde ocre · 1,8 → 2,8 le nom lettre à lettre
   2,7 la phrase · 3,2 le lieu · lecture jusqu'à 5,3 · 5,3 le contenu s'efface, les poignées et le trait s'allument
   6,1 → 7,4 les battants pivotent sur leurs gonds pendant que le site s'avance. */
.intro-splash { display: none; }
html.intro { overflow: hidden; }
html.intro .intro-splash { display: block; position: fixed; inset: 0; z-index: 1000; overflow: hidden; cursor: pointer; perspective: 1600px; background: transparent; }
html.intro-done .intro-splash { display: none; }

.intro-door {
    position: absolute; top: 0; bottom: 0; width: 50%;
    background: linear-gradient(90deg, #172130, #1D2B3B);
    backface-visibility: hidden; will-change: transform;
}
.intro-door-l { left: 0; transform-origin: left center; animation: intro-door-l 1.3s cubic-bezier(0.65, 0, 0.25, 1) 6.1s forwards; }
.intro-door-r { right: 0; transform-origin: right center; background: linear-gradient(270deg, #172130, #1D2B3B); animation: intro-door-r 1.3s cubic-bezier(0.65, 0, 0.25, 1) 6.1s forwards; }
/* moulure du panneau */
.intro-door::before { content: ''; position: absolute; inset: 7% 9%; border: 1px solid rgba(247, 243, 237, 0.05); border-radius: 2px; }
/* poignées ocre, près du centre */
.intro-door::after { content: ''; position: absolute; top: 50%; width: 4px; height: 64px; margin-top: -32px; border-radius: 3px; background: linear-gradient(180deg, #D9A06A, #C07A2E 60%, #94591C); box-shadow: 0 0 18px rgba(192, 122, 46, 0.45); opacity: 0; animation: intro-fade-in 0.5s ease 5.5s forwards; }
.intro-door-l::after { right: 22px; }
.intro-door-r::after { left: 22px; }

.intro-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, #C07A2E 20%, #E0B07A 50%, #C07A2E 80%, transparent); box-shadow: 0 0 22px 2px rgba(192, 122, 46, 0.55); transform: scaleY(0); animation: intro-seam 0.6s cubic-bezier(0.3, 0, 0.2, 1) 5.45s forwards, intro-fade-out 0.35s ease 6.2s forwards; }

.intro-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; animation: intro-leave 0.55s ease-in 5.3s forwards; }
.intro-content::before { content: ''; position: absolute; left: 50%; top: 42%; width: min(70vw, 620px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 158, 0.32), rgba(47, 107, 158, 0) 62%); opacity: 0; animation: intro-glow 3.2s ease-in-out 0.2s forwards; pointer-events: none; }
.intro-logo { position: relative; width: clamp(96px, 15vw, 132px); aspect-ratio: 1; }
.intro-mark { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 14px rgba(47, 107, 158, 0.35)); }
.intro-mark polygon, .intro-mark path { stroke-dasharray: 100; stroke-dashoffset: 100; }
.intro-mark polygon { animation: intro-draw 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.3s forwards; }
.intro-mark path { animation: intro-draw 0.8s ease-out 1.2s forwards; }
.intro-mark circle { transform-origin: 40px 40px; transform: scale(0); animation: intro-pop 0.45s cubic-bezier(0.3, 1.7, 0.5, 1) 1.9s forwards; }
.intro-ripple { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #C07A2E; opacity: 0; transform: scale(0.06); animation: intro-ripple 1.4s cubic-bezier(0.2, 0.6, 0.3, 1) 2s forwards; }

.intro-name { margin-top: 30px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1; letter-spacing: -0.01em; color: #F7F3ED; white-space: nowrap; }
.intro-name b { font-weight: 700; color: #7FAEDB; }
.intro-name span { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(8px); animation: intro-letter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(1.8s + var(--k, 0) * 0.07s); }
.intro-line { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.8vw, 1.6rem); color: #C9CFD6; }
.intro-line span { display: inline-block; clip-path: inset(0 100% 0 0); animation: intro-wipe 1s cubic-bezier(0.6, 0, 0.2, 1) 2.75s forwards; }
.intro-place { margin-top: 22px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: #D9A06A; opacity: 0; animation: intro-track 1s ease-out 3.25s forwards; }

.intro-skip { position: absolute; right: 20px; bottom: 20px; z-index: 2; padding: 8px 14px; border: 1px solid rgba(247, 243, 237, 0.18); border-radius: var(--cd-radius-md); background: transparent; color: #8898A8; font-size: 0.82rem; cursor: pointer; animation: intro-fade-out 0.3s ease 5.6s forwards; }
.intro-skip:hover { color: #F7F3ED; border-color: rgba(247, 243, 237, 0.4); }

/* le site s'avance quand les portes s'ouvrent */
html.intro .site-header, html.intro main { animation: intro-site 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 6.1s both; }

@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-pop { to { transform: scale(1); } }
@keyframes intro-ripple { 0% { opacity: 0.9; transform: scale(0.06); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes intro-glow { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); } 60% { opacity: 1; } 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); } }
@keyframes intro-letter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes intro-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-track { from { opacity: 0; letter-spacing: 0.7em; } to { opacity: 1; letter-spacing: 0.32em; } }
@keyframes intro-leave { to { opacity: 0; transform: translateY(-14px) scale(0.98); filter: blur(4px); } }
@keyframes intro-seam { to { transform: scaleY(1); } }
@keyframes intro-fade-in { to { opacity: 1; } }
@keyframes intro-fade-out { to { opacity: 0; } }
@keyframes intro-door-l { to { transform: rotateY(-100deg); } }
@keyframes intro-door-r { to { transform: rotateY(100deg); } }
@keyframes intro-site { from { transform: scale(1.06); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ---------- Outils sur mesure ---------- */
.offer-card .checks { margin-top: 18px; gap: 10px; }
.offer-card .checks li { font-size: 0.95rem; }
.offer-card .checks .ico { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 14%, transparent); }
[data-theme="light"] .offer-card .checks .ico { color: var(--c); }
.steps.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
.steps.steps-2::before { display: none; }
/* maquette de tableau de bord */
.dash { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; min-height: 300px; }
.dash-side { display: grid; align-content: start; gap: 10px; padding: 10px 0; border-right: 1px solid var(--line); }
.dash-side i { display: block; width: 22px; height: 22px; margin: 0 auto; border-radius: var(--cd-radius-md); background: rgb(var(--tint) / 0.08); }
.dash-side i:first-child { background: var(--accent); }
.dash-main { display: grid; gap: 14px; align-content: start; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-kpis div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--cd-radius-lg); background: var(--bg); }
.dash-kpis small { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.dash-kpis b { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; color: var(--text); }
.dash-kpis em { font-style: normal; font-size: 0.72rem; color: var(--accent-ink); }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 10px 12px 0; border: 1px solid var(--line); border-radius: var(--cd-radius-lg); }
.dash-chart span { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--accent) 70%, transparent); transform-origin: bottom; animation: dash-grow 1.2s var(--ease) both; animation-delay: calc(0.4s + var(--i) * 0.08s); }
.dash-chart span:last-child { background: var(--cd-ocre); }
.dash-rows { display: grid; gap: 8px; }
.dash-rows i { display: block; height: 10px; border-radius: 2px; background: rgb(var(--tint) / 0.08); }
.dash-rows i:nth-child(2) { width: 82%; }
.dash-rows i:nth-child(3) { width: 64%; }
@keyframes dash-grow { from { transform: scaleY(0); } }
@media (max-width: 640px) { .dash-kpis { grid-template-columns: 1fr 1fr; } .dash-kpis div:last-child { display: none; } .steps.steps-2 { grid-template-columns: minmax(0, 1fr); } }
.web-more { display: flex; gap: 24px; align-items: flex-start; }
.web-more .card-icon { flex: none; margin: 0; }
.web-more .eyebrow { margin-bottom: 8px; }
@media (max-width: 640px) { .web-more { flex-direction: column; } }

/* ---------- Accueil : l'agence ---------- */
.hero-home .badge { margin-inline: auto; }
.agency-lead { margin-top: 22px; }
.agency-text { margin-top: 16px; color: var(--muted); max-width: 62ch; }
/* l'accueil n'occupe plus tout l'écran : les savoir-faire se voient dès l'arrivée */
.hero.hero-home { min-height: 0; padding-bottom: clamp(36px, 5vw, 64px); }
.hero-home .scroll-hint { display: none; }
#savoir-faire { padding-top: clamp(36px, 5vw, 64px); }

/* ---------- Pages légales ---------- */
.legal-page .h2 { margin: 12px 0 28px; }
.legal-text { color: var(--muted); font-size: 1rem; }
.legal-text p { margin: 0 0 14px; }
.legal-text h2 { margin: 28px 0 10px; color: var(--text); }
.legal-text strong { color: var(--text); }
