/* ==========================================================================
   Frontiva — site public
   Sombre par défaut (style Apple), sections claires en alternance.
   ========================================================================== */

:root {
    --bg: #000;
    --bg-2: #0b0b0f;
    --card: #141418;
    --card-2: #1c1c21;
    --line: rgba(255, 255, 255, .09);
    --ink: #f5f5f7;
    --muted: #8e8e96;
    --blue: #2dafe6;
    --blue-2: #0a84ff;
    --violet: #a78bfa;
    --gold: #ffc83d;
    --pink: #f472b6;
    --green: #34d399;
    --light: #f5f5f7;
    --light-ink: #1d1d1f;
    --light-muted: #6e6e73;
    --radius: 28px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.035em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 44px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 44px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.light .muted { color: var(--light-muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Typo commune ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--ec, var(--blue)); margin-bottom: 14px; letter-spacing: 0; }
.sec-head { margin-bottom: 64px; max-width: 860px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2, .booking h2, .final-cta h2, .faq h2 { font-size: clamp(40px, 6.4vw, 80px); }
.lead { margin-top: 22px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 720px; }
.sec-head.center .lead { margin-inline: auto; }
.light .lead { color: var(--light-muted); }
.grad { background: linear-gradient(90deg, var(--blue) 0%, #7dd3fc 45%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-violet { background: linear-gradient(90deg, #c4b5fd, var(--violet), #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-gold { background: linear-gradient(90deg, #fde68a, var(--gold), #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-pink { background: linear-gradient(90deg, #f9a8d4, var(--pink), #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-green { background: linear-gradient(90deg, #6ee7b7, var(--green), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
    font-size: 17px; font-weight: 500; white-space: nowrap;
    transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--blue); color: #001018; box-shadow: 0 8px 30px -8px rgba(45, 175, 230, .7); }
.btn-primary:hover { background: #4cc0f0; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-ghost-dark { background: transparent; color: var(--light-ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.btn-white { background: #fff; color: #000; }
.btn-violet { background: var(--violet); color: #12052b; }
.btn-gold { background: var(--gold); color: #261900; }
.btn-green { background: var(--green); color: #002417; }
.btn-pink { background: var(--pink); color: #2a0016; }
.link { background: none; border: 0; color: var(--blue); font-size: 17px; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .06); color: #cfd8e3; font-size: 16px; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: 56px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(10, 10, 14, .72); }
.nav-inner { height: 100%; width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.nav-logo .logo { height: 21px; width: auto; }
.logo .logo-mark { fill: var(--blue); }
.logo .logo-text { fill: currentColor; }
.nav-links { display: flex; gap: 26px; margin-inline: auto; font-size: 13px; color: #d2d2d7; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.nav-lang, .nav-login { color: #d2d2d7; }
.nav-lang:hover, .nav-login:hover { color: #fff; }
.nav-lang { font-weight: 600; padding: 4px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.nav-sector {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
    border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 500;
    animation: pop .4s var(--ease);
}
.nav-sector .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc, var(--blue)); box-shadow: 0 0 10px var(--sc, var(--blue)); }
.nav-sector .x { opacity: .5; font-size: 15px; }
.nav-burger { display: none; width: 34px; height: 34px; border: 0; background: none; position: relative; }
.nav-burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: #fff; transition: transform .3s; }
.nav-burger span:first-child { top: 13px; }
.nav-burger span:last-child { top: 20px; }
.nav.open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Révélations au défilement ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Héros
   ========================================================================== */
.hero { position: relative; padding-top: 128px; overflow: clip; }
.hero-glow {
    position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
    background:
        radial-gradient(40% 45% at 30% 30%, rgba(45, 175, 230, .28), transparent 70%),
        radial-gradient(35% 40% at 75% 25%, rgba(167, 139, 250, .18), transparent 70%),
        radial-gradient(30% 30% at 55% 60%, rgba(255, 200, 61, .10), transparent 70%);
    filter: blur(10px);
    animation: drift 18s ease-in-out infinite alternate;
}
.hero-copy { position: relative; text-align: center; width: min(980px, 100% - 44px); margin-inline: auto; }
.hero .eyebrow { font-size: 19px; }
.hero-title { font-size: clamp(52px, 10vw, 124px); font-weight: 800; letter-spacing: -.05em; line-height: .98; }
.hero-sub { margin-top: 14px; font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.03em; color: var(--gold); }
.hero-lead { margin: 26px auto 0; max-width: 680px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .24s; }
.hero-copy .reveal:nth-child(5) { transition-delay: .32s; }

.hero-stage { position: relative; height: 210vh; margin-top: 40px; }
.hero-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; perspective: 1800px; }
.hero-window {
    --p: 0;
    position: relative; width: min(1240px, 94vw); aspect-ratio: 16 / 10; max-height: 82vh;
    border-radius: calc(22px - var(--p) * 8px); overflow: hidden;
    container-type: inline-size;
    background: #0d1626;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 160px -40px rgba(45, 175, 230, .5), 0 40px 80px -30px rgba(0, 0, 0, .9);
    transform: translateY(calc((1 - var(--p)) * -6vh)) rotateX(calc((1 - var(--p)) * 26deg)) scale(calc(.78 + var(--p) * .22));
    transform-origin: 50% 0;
    will-change: transform;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.play-film {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px;
    border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: #000; font-weight: 600; font-size: 17px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
    transition: transform .3s var(--ease), opacity .4s;
    opacity: calc(1 - var(--p) * 1.4);
}
.play-film:hover { transform: scale(1.05); }
.play-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; padding-left: 2px; }
.hero-caption {
    position: absolute; bottom: 6vh; left: 0; right: 0; display: flex; justify-content: center; gap: 22px;
    font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.03em; pointer-events: none;
}
.hero-caption span { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-caption.in span { opacity: 1; transform: none; }
.hero-caption.in span:nth-child(2) { transition-delay: .15s; color: #7dd3fc; }
.hero-caption.in span:nth-child(3) { transition-delay: .3s; color: var(--gold); }

.film { width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 22px; background: #000; color: var(--ink); overflow: hidden; }
.film::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(12px); }
.film video { width: 100%; }
.film-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); font-size: 22px; }
.film-empty { container-type: inline-size; text-align: center; padding-bottom: 28px; }
.film-empty .mock { aspect-ratio: 16 / 9; }
.film-empty p { margin: 22px 24px 18px; color: var(--muted); }

/* ---------- Maquette d'interface (héros) : tout en em, piloté par la largeur du conteneur ---------- */
.mock { font-size: 1.05cqw; height: 100%; display: flex; flex-direction: column; color: #cfe3f5; background: linear-gradient(180deg, #0f1a2c, #0a1220); }
.mock-top { display: flex; align-items: center; gap: 2em; height: 4.2em; padding: 0 2em; background: linear-gradient(90deg, #11365a, #145a8a); }
.mock-logo { height: 1.6em; width: auto; }
.mock-logo .logo-text { fill: #fff; }
.mock-logo .logo-mark { fill: #fff; }
.mock-icons { display: flex; gap: 1.1em; margin-left: auto; }
.mock-icons i { width: 1.4em; height: 1.4em; border-radius: .35em; border: .14em solid rgba(255, 255, 255, .65); }
.mock-icons i:nth-child(4) { border-color: var(--blue); background: rgba(45, 175, 230, .3); }
.mock-avatar { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: #7c3aed; color: #fff; font-weight: 700; }
.mock-body { flex: 1; display: grid; grid-template-columns: 15em 1fr 25em; gap: 1.2em; padding: 1.2em; min-height: 0; }
.mock-side, .mock-list, .mock-andy { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); border-radius: .9em; padding: 1.1em; display: flex; flex-direction: column; gap: .55em; overflow: hidden; }
.mock-side b { color: #fff; }
.mock-side small { margin-top: .8em; font-size: .78em; letter-spacing: .08em; color: #6b88a8; font-weight: 700; }
.mock-side span { display: flex; align-items: center; gap: .6em; font-size: .92em; }
.mock-side span em { width: .9em; height: .9em; border: .12em solid #5a7a9c; border-radius: .2em; }
.mock-side span.on em { background: var(--blue); border-color: var(--blue); }
.mock-h { display: flex; justify-content: space-between; align-items: center; font-size: 1.35em; font-weight: 700; color: #6fd0ff; margin-bottom: .6em; }
.mock-h span { font-size: .6em; font-weight: 500; padding: .5em 1em; border-radius: .5em; background: rgba(255, 255, 255, .08); color: #cfe3f5; }
.mock-group { margin-top: .5em; padding: .45em .8em; border-radius: .45em; background: #12537e; color: #fff; font-weight: 700; font-size: .85em; }
.mock-row { display: flex; align-items: center; gap: .8em; padding: .55em .8em; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: .95em; animation: rowIn .8s var(--ease) both; }
.mock-row i { width: 1.1em; height: .8em; border-radius: .15em; background: #6b88a8; }
.mock-row .st { margin-left: auto; }
.r1 { animation-delay: .3s; } .r2 { animation-delay: .45s; } .r3 { animation-delay: .6s; } .r4 { animation-delay: .75s; } .r5 { animation-delay: .9s; }
.st { font-style: normal; font-size: .78em; font-weight: 600; padding: .25em .8em; border-radius: 999px; white-space: nowrap; }
.s1 { background: rgba(52, 211, 153, .18); color: #6ee7b7; }
.s2 { background: rgba(255, 200, 61, .18); color: #fcd34d; }
.s3 { background: rgba(167, 139, 250, .2); color: #c4b5fd; }
.s0 { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.s4 { background: rgba(45, 175, 230, .2); color: #7dd3fc; }
.mock-total { margin-top: auto; font-size: .85em; color: #6b88a8; }
.mock-andy-h { display: flex; align-items: center; gap: .7em; font-weight: 700; color: #fff; }
.andy-av { display: inline-grid; place-items: center; flex: none; width: 2em; height: 2em; border-radius: 50%; background: conic-gradient(from 200deg, var(--blue), var(--violet), var(--gold), var(--blue)); color: #fff; font-weight: 800; font-size: .85em; }
.mock-bar { height: .55em; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mock-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--blue), #7dd3fc); border-radius: inherit; animation: grow 1.6s var(--ease) both .6s; }
.mock-bar.warn span { background: linear-gradient(90deg, #f97316, var(--gold)); }
.mock-bubble { font-size: .9em; line-height: 1.5; padding: 1em; border-radius: .8em; background: rgba(45, 175, 230, .08); border: 1px solid rgba(45, 175, 230, .25); animation: rowIn 1s var(--ease) both 1.1s; }
.mock-bubble b { display: block; color: #fff; margin-bottom: .3em; }
.mock-chip { font-size: .8em; padding: .55em .9em; border-radius: .6em; background: rgba(255, 255, 255, .05); animation: rowIn 1s var(--ease) both 1.4s; }
.mock-input { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85em; color: #6b88a8; padding: .7em .9em; border-radius: .7em; background: rgba(255, 255, 255, .06); }
.mock-input span { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--blue); color: #fff; }

/* ==========================================================================
   Énoncé (mots révélés au défilement)
   ========================================================================== */
.statement { padding: 18vh 0 10vh; }
.statement-text {
    width: min(1100px, 100% - 44px); margin-inline: auto;
    font-size: clamp(32px, 5.2vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1.12;
}
.statement-text .w { color: #2a2a2e; transition: color .35s; }
.statement-text .w.on { color: var(--ink); }
.statement-text .w.hl.on { color: var(--blue); }

/* ---------- Logos clients ---------- */
.clients { padding: 0 0 16vh; }
.clients-title { text-align: center; color: var(--muted); font-size: 15px; letter-spacing: .02em; margin-bottom: 36px; }
.clients-marquee {
    display: flex; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients-track {
    display: flex; align-items: center; gap: 88px; padding-right: 88px; margin: 0; list-style: none;
    flex-shrink: 0; animation: clients-scroll 38s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.clients-track img { display: block; width: auto; opacity: .55; transition: opacity .3s; }
.clients-track li:hover img { opacity: 1; }
@keyframes clients-scroll { to { transform: translateX(-100%); } }
@media (max-width: 620px) {
    .clients-track { gap: 56px; padding-right: 56px; }
    .clients-track img { transform: scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
    .clients-marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; flex-wrap: wrap; }
    .clients-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 40px 56px; padding: 0 16px; }
    .clients-track[aria-hidden] { display: none; }
}

/* ==========================================================================
   Sélecteur de secteurs
   ========================================================================== */
.sectors { padding: 120px 0 80px; }
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sector-card {
    --c: var(--blue);
    position: relative; isolation: isolate; text-align: left; display: flex; flex-direction: column; gap: 12px;
    min-height: 420px; padding: 30px 26px 26px; border-radius: var(--radius); border: 0;
    background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .4s, background .4s, opacity .4s, filter .4s;
}
.sector-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
    background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%);
    transition: opacity .5s;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.sector-card:hover::before, .sector-card[aria-checked="true"]::before { opacity: 1; }
.sector-card[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--c), 0 30px 80px -30px var(--c); transform: translateY(-6px); }
.sector-grid.has-pick .sector-card[aria-checked="false"] { opacity: .45; filter: saturate(.4); }
.sector-grid.has-pick .sector-card[aria-checked="false"]:hover { opacity: .85; filter: none; }
.sector-ico svg { width: 46px; height: 46px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sector-kicker { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.sector-title { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.sector-text { color: var(--muted); font-size: 15px; }
.sector-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.sector-mods span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #d2d2d7; }
.sector-go { font-size: 15px; font-weight: 600; color: var(--c); }
.sector-card .reveal, .sector-grid .reveal:nth-child(2) { transition-delay: .08s; }
.sector-grid .reveal:nth-child(3) { transition-delay: .16s; }
.sector-grid .reveal:nth-child(4) { transition-delay: .24s; }
.sector-reset { text-align: center; margin-top: 28px; }

/* Filtrage par secteur : on cache ce qui ne concerne pas le secteur choisi */
body[data-sector="agence"] [data-sectors]:not([data-sectors~="agence"]),
body[data-sector="interne"] [data-sectors]:not([data-sectors~="interne"]),
body[data-sector="terrain"] [data-sectors]:not([data-sectors~="terrain"]),
body[data-sector="fondation"] [data-sectors]:not([data-sectors~="fondation"]) { display: none !important; }

/* ==========================================================================
   Bento des modules
   ========================================================================== */
.bento-sec { padding: 80px 0 140px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-flow: dense; }
.bento-card {
    --c: var(--blue);
    position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 28px;
    border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .4s;
    animation: pop .6s var(--ease);
}
.bento-card.w2 { grid-column: span 2; }
.bento-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 30px 70px -40px var(--c); }
.bento-tag { font-size: 13px; font-weight: 600; color: var(--c); }
.bento-title { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; }
.bento-text { font-size: 15px; color: var(--muted); max-width: 36ch; }
.bento-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--c); opacity: 0; transform: translateX(-8px); transition: .4s var(--ease); }
.bento-card:hover .bento-more { opacity: 1; transform: none; }
.bento-art { position: absolute; right: -10px; bottom: -10px; width: 55%; height: 52%; pointer-events: none; opacity: .9; }
.bento-card.w2 .bento-art { width: 42%; height: 78%; }
.bento-art > span { position: absolute; inset: 0; display: flex; gap: 8px; padding: 16px; }
.art-kanban { align-items: flex-end; }
.art-kanban i { flex: 1; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, transparent), transparent); height: 60%; animation: bob 4s ease-in-out infinite; }
.art-kanban i:nth-child(2) { height: 85%; animation-delay: .4s; } .art-kanban i:nth-child(3) { height: 45%; animation-delay: .8s; } .art-kanban i:nth-child(4) { height: 70%; animation-delay: 1.2s; }
.art-list, .art-invoice, .art-chat, .art-po { flex-direction: column; justify-content: flex-end; }
.art-list i, .art-invoice i, .art-po i { height: 14px; border-radius: 6px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.art-list i:nth-child(odd) { width: 80%; } .art-invoice i:nth-child(2) { width: 60%; } .art-invoice i:nth-child(3) { width: 40%; background: var(--c); }
.art-po i { height: 40px; border-radius: 12px; } .art-po i:last-child { width: 70%; background: color-mix(in srgb, var(--c) 55%, transparent); }
.art-gantt { flex-direction: column; justify-content: flex-end; }
.art-gantt i { height: 16px; border-radius: 8px; background: var(--c); opacity: .6; width: 50%; animation: slide 5s var(--ease) infinite alternate; }
.art-gantt i:nth-child(2) { width: 65%; margin-left: 25%; opacity: .8; animation-delay: .6s; } .art-gantt i:nth-child(3) { width: 40%; margin-left: 10%; animation-delay: 1.2s; }
.art-clock::before { content: ""; position: absolute; right: 22px; bottom: 22px; width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--c); opacity: .8; }
.art-clock::after { content: ""; position: absolute; right: 75px; bottom: 75px; width: 3px; height: 44px; background: var(--c); transform-origin: bottom; animation: spin 6s linear infinite; }
.art-map { background: radial-gradient(circle at 30% 60%, color-mix(in srgb, var(--c) 30%, transparent) 0 5px, transparent 6px), radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--c) 30%, transparent) 0 5px, transparent 6px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 26px); border-radius: 20px; }
.art-map i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); animation: crew 7s ease-in-out infinite; }
.art-map i:nth-child(1) { left: 20%; top: 40%; } .art-map i:nth-child(2) { left: 60%; top: 25%; animation-delay: -2s; } .art-map i:nth-child(3) { left: 45%; top: 70%; animation-delay: -4s; }
.art-donut::before { content: ""; position: absolute; right: 20px; bottom: 20px; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--c) 0 55%, var(--gold) 0 80%, var(--green) 0); -webkit-mask: radial-gradient(circle, transparent 38px, #000 39px); mask: radial-gradient(circle, transparent 38px, #000 39px); }
.art-chat { align-items: flex-end; }
.art-chat i { height: 30px; border-radius: 16px; background: rgba(255, 255, 255, .08); width: 60%; }
.art-chat i:nth-child(2) { align-self: flex-start; width: 75%; background: color-mix(in srgb, var(--c) 30%, transparent); }
.art-layers { flex-direction: column; justify-content: flex-end; gap: 6px; }
.art-layers i { height: 24px; border-radius: 8px; background: color-mix(in srgb, var(--c) 25%, transparent); transform: skewX(-20deg); }
.art-layers i:last-child { background: var(--c); }

/* ==========================================================================
   Démo en direct : l'application
   ========================================================================== */
.live { padding: 140px 0 120px; background: radial-gradient(60% 50% at 50% 0%, rgba(45, 175, 230, .12), transparent 70%); }
.app-wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.app {
    --app-bg: #0c1422; --app-panel: #111c2e; --app-line: rgba(148, 180, 220, .12); --app-ink: #dbe7f5; --app-muted: #7d93ae;
    position: relative; height: min(760px, 86vh); min-height: 560px; display: flex; flex-direction: column;
    border-radius: 20px; overflow: hidden; background: var(--app-bg); color: var(--app-ink); font-size: 13px; letter-spacing: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 120px -40px rgba(45, 175, 230, .45);
}
.app-top { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 16px; background: linear-gradient(90deg, #0f3254, #13598a); flex: none; }
.app-brand .logo { height: 24px; width: auto; }
.app-brand .logo-mark { fill: #fff; }
.app-mods { display: flex; gap: 2px; margin-left: 10px; overflow-x: auto; scrollbar-width: none; }
.app-mod { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; color: rgba(255, 255, 255, .72); flex: none; }
.app-mod svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-mod:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.app-mod.on { background: rgba(255, 255, 255, .16); color: #fff; }
.app-mod .tip { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 20; padding: 4px 8px; border-radius: 6px; background: #000; color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.app-mod:hover .tip { opacity: 1; }
.app-search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); width: 240px; }
.app-search svg { width: 15px; height: 15px; fill: none; stroke: #cfe3f5; stroke-width: 2; flex: none; }
.app-search input { width: 100%; border: 0; background: none; color: #fff; font: inherit; outline: none; }
.app-search input::placeholder { color: rgba(255, 255, 255, .55); }
.app-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #7c3aed; color: #fff; font-weight: 700; flex: none; }
.app-body { position: relative; flex: 1; display: flex; min-height: 0; }
.app-drawer { width: 230px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--app-line); background: var(--app-panel); transition: margin .45s var(--ease), opacity .3s; }
.app.drawer-closed .app-drawer { margin-left: -230px; opacity: 0; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; font-size: 14px; }
.drawer-scroll { overflow-y: auto; padding: 0 14px 14px; }
.f-group { margin-top: 14px; }
.f-group > small { display: block; margin-bottom: 6px; font-size: 10px; letter-spacing: .1em; font-weight: 700; color: var(--app-muted); text-transform: uppercase; }
.f-opt { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; cursor: pointer; user-select: none; }
.f-opt:hover { background: rgba(255, 255, 255, .05); }
.f-opt input { appearance: none; width: 15px; height: 15px; margin: 0; border-radius: 4px; border: 1.5px solid #4f6a8a; display: grid; place-items: center; transition: .2s; }
.f-opt input:checked { background: var(--blue); border-color: var(--blue); }
.f-opt input:checked::after { content: ""; width: 7px; height: 4px; border: 2px solid #001018; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.f-opt em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--app-muted); }
.f-group select { width: 100%; height: 30px; border-radius: 8px; border: 1px solid var(--app-line); background: #0c1422; color: var(--app-ink); font: inherit; padding: 0 8px; }
.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--app-line); flex-wrap: wrap; }
.app-bar h3 { font-size: 18px; letter-spacing: -.02em; color: #6fd0ff; }
.app-bar small { color: var(--app-muted); }
.app-bar > div:nth-child(2) { margin-right: auto; }
.drawer-open { display: none; }
.app.drawer-closed .drawer-open { display: grid; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--app-muted, var(--muted)); transition: .25s; }
.seg button.on { background: rgba(255, 255, 255, .14); color: #fff; }
.app-content { flex: 1; overflow: auto; padding: 4px 18px 18px; }
.p-table { width: 100%; border-collapse: collapse; }
.p-table th { position: sticky; top: 0; z-index: 1; background: var(--app-bg); text-align: left; font-size: 11px; font-weight: 600; color: var(--app-muted); padding: 10px 8px; border-bottom: 1px solid var(--app-line); white-space: nowrap; }
.p-table td { padding: 9px 8px; border-bottom: 1px solid var(--app-line); white-space: nowrap; }
.p-table tbody tr.row { cursor: pointer; transition: background .2s; animation: rowIn .5s var(--ease) both; }
.p-table tbody tr.row:hover { background: rgba(45, 175, 230, .08); }
.p-table tr.grp td { padding: 6px 10px; background: #12466e; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .05em; border: 0; }
.p-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.p-table .late { color: #fb7185; }
.prog { display: inline-block; width: 70px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .08); vertical-align: middle; overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.prog i.over { background: linear-gradient(90deg, #f97316, #fb7185); }
.empty { padding: 60px 20px; text-align: center; color: var(--app-muted); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; height: 100%; padding-top: 14px; }
.board-col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); min-height: 200px; transition: background .2s, box-shadow .2s; }
.board-col.drop { background: rgba(45, 175, 230, .1); box-shadow: inset 0 0 0 1.5px var(--blue); }
.board-col > header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12px; padding: 2px 4px 6px; }
.board-card { padding: 10px 12px; border-radius: 10px; background: var(--app-panel); box-shadow: 0 0 0 1px var(--app-line), 0 6px 14px -8px rgba(0, 0, 0, .6); cursor: grab; touch-action: none; user-select: none; }
.board-card b { display: block; font-size: 12px; margin-bottom: 2px; }
.board-card small { color: var(--app-muted); }

.app-sheet {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: min(420px, 100%);
    background: #0f1a2b; border-left: 1px solid var(--app-line); box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .7);
    transform: translateX(105%); transition: transform .5s var(--ease); overflow-y: auto;
}
.app-sheet.open { transform: none; }
.sheet-h { position: sticky; top: 0; display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; background: #0f1a2b; border-bottom: 1px solid var(--app-line); }
.sheet-h h4 { font-size: 18px; letter-spacing: -.02em; }
.sheet-h small { color: var(--app-muted); }
.sheet-h .icon-btn { margin-left: auto; flex: none; }
.sheet-b { padding: 18px; display: grid; gap: 18px; }
.sheet-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet-kpis div { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.sheet-kpis small { display: block; color: var(--app-muted); font-size: 11px; }
.sheet-kpis b { font-size: 15px; }
.sheet-b h5 { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--app-muted); }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.status-pick button { border: 0; padding: 0; background: none; opacity: .45; transition: opacity .2s, transform .2s; }
.status-pick button.on, .status-pick button:hover { opacity: 1; }
.status-pick button.on { transform: scale(1.06); }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--app-line); }
.task input { accent-color: var(--blue); }
.task.done span { text-decoration: line-through; color: var(--app-muted); }
.task em { margin-left: auto; font-style: normal; color: var(--app-muted); font-size: 11px; }
.team { display: flex; }
.team span { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -6px; border-radius: 50%; border: 2px solid #0f1a2b; font-size: 11px; font-weight: 700; color: #fff; }
.sheet-andy { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(45, 175, 230, .08); border: 1px solid rgba(45, 175, 230, .22); line-height: 1.45; }
.app-dialog { width: min(420px, 92%); padding: 22px; border: 0; border-radius: 18px; background: #111c2e; color: var(--app-ink); box-shadow: 0 0 0 1px var(--app-line), 0 40px 100px rgba(0, 0, 0, .7); }
.app-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.app-dialog h4 { font-size: 20px; }
.app-dialog .hint { color: var(--app-muted); margin: 6px 0 14px; font-size: 13px; }
.app-dialog label { display: grid; gap: 4px; margin-bottom: 12px; font-size: 12px; color: var(--app-muted); }
.app-dialog select { height: 38px; border-radius: 10px; border: 1px solid var(--app-line); background: #0c1422; color: var(--app-ink); font: inherit; font-size: 14px; padding: 0 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.app-dialog .btn-ghost { color: var(--app-ink); }
.app-toast { position: absolute; left: 50%; bottom: 18px; z-index: 30; translate: -50% 20px; padding: 10px 16px; border-radius: 12px; background: #fff; color: #000; font-weight: 600; font-size: 13px; opacity: 0; pointer-events: none; transition: .4s var(--ease); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); }
.app-toast.show { opacity: 1; translate: -50% 0; }
.try-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.try-hints li { font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.dragging { position: fixed; z-index: 1000; pointer-events: none; transform: rotate(3deg) scale(1.04); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .7) !important; opacity: .95; transition: none !important; }
.placeholder { opacity: .25; }

/* ==========================================================================
   Sections modules : environnement commun
   ========================================================================== */
.mod-sec { padding: 150px 0; position: relative; }
.light { background: var(--light); color: var(--light-ink); color-scheme: light; }
.light .eyebrow { --ec-d: var(--blue-2); }
.mod-sec.dark { background: var(--bg); }
.feat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 64px; }
.feat b { display: block; font-size: 19px; margin-bottom: 6px; letter-spacing: -.02em; }
.feat p { color: var(--muted); font-size: 16px; }
.light .feat p { color: var(--light-muted); }
.kpi small { display: block; font-size: 12px; color: var(--light-muted); }
.kpi b { font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- CRM (clair) ---------- */
.crm { padding: 26px; border-radius: 32px; background: #fff; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05); }
.crm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; padding: 4px 6px 22px; }
.andy-tip { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #eef8fd; color: #0b4a68; font-size: 14px; max-width: 460px; transition: background .3s; }
.andy-tip.flash { animation: flash 1.2s var(--ease); }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.k-col { display: flex; flex-direction: column; gap: 10px; min-height: 360px; padding: 12px; border-radius: 20px; background: #f5f5f7; transition: background .25s, box-shadow .25s; }
.k-col.drop { background: #e6f5fc; box-shadow: inset 0 0 0 2px var(--blue); }
.k-col > header { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; }
.k-col > header b { font-size: 14px; }
.k-col > header span { font-size: 12px; color: var(--light-muted); font-variant-numeric: tabular-nums; }
.k-col > header i { display: block; height: 3px; border-radius: 3px; margin-top: 8px; background: var(--kc); grid-column: 1 / -1; }
.k-col > header { display: grid; grid-template-columns: 1fr auto; }
.k-card { padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 20px -12px rgba(0, 0, 0, .2); cursor: grab; touch-action: none; user-select: none; transition: transform .25s var(--ease), box-shadow .25s; }
.k-card:hover { transform: translateY(-2px); }
.k-card b { display: block; font-size: 14px; letter-spacing: -.01em; }
.k-card small { color: var(--light-muted); font-size: 12px; }
.k-card .k-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.k-card .k-val { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.k-card .av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; }
.k-card.won { animation: won 1s var(--ease); }

/* ---------- Planning (sombre) ---------- */
.planning-sec { background: radial-gradient(60% 50% at 80% 0%, rgba(167, 139, 250, .16), transparent 70%), var(--bg) !important; }
.sched { border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.sched-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-right: auto; }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.legend .ok { background: rgba(52, 211, 153, .6); } .legend .full { background: rgba(167, 139, 250, .7); } .legend .over { background: #fb7185; }
.sched-grid { display: grid; grid-template-columns: 190px repeat(5, minmax(130px, 1fr)); overflow-x: auto; }
.sched-grid > .h { padding: 12px 14px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.sched-grid > .h.today { color: var(--violet); }
.person { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.person .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.person b { display: block; font-size: 14px; }
.person small { color: var(--muted); font-size: 12px; }
.cell { position: relative; min-height: 92px; padding: 8px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: background .25s; }
.cell::after { content: attr(data-load); position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cell.full { background: rgba(167, 139, 250, .07); }
.cell.over { background: rgba(251, 113, 133, .12); }
.cell.over::after { color: #fb7185; font-weight: 700; }
.cell.drop { background: rgba(167, 139, 250, .18); box-shadow: inset 0 0 0 1.5px var(--violet); }
.chip { padding: 7px 9px; border-radius: 9px; font-size: 12px; font-weight: 600; line-height: 1.25; color: #fff; background: var(--cc, #6366f1); cursor: grab; touch-action: none; user-select: none; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .6); transition: transform .45s var(--ease), opacity .3s; }
.chip small { display: block; font-weight: 500; opacity: .8; font-size: 11px; }
.chip.moved { animation: pop .5s var(--ease); }

/* ---------- Temps (clair, onglets à gauche style Apple) ---------- */
.tabs-stage { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.tabs-list { display: grid; gap: 10px; }
.tabs-list button { text-align: left; padding: 20px 22px; border-radius: 22px; border: 0; background: transparent; color: var(--light-ink); transition: background .35s, box-shadow .35s; }
.tabs-list button b { display: block; font-size: 19px; letter-spacing: -.02em; }
.tabs-list button span { display: block; max-height: 0; overflow: hidden; color: var(--light-muted); font-size: 15px; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.tabs-list button.on { background: #fff; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .3); }
.tabs-list button.on span { max-height: 80px; opacity: 1; margin-top: 6px; }
.tabs-list button:not(.on):hover { background: rgba(0, 0, 0, .04); }
.tabs-view { position: relative; min-height: 520px; border-radius: 36px; background: linear-gradient(145deg, #fff8e1, #fde68a 60%, #fbbf24); overflow: hidden; }
.tab-pane { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.tab-pane.on { opacity: 1; transform: none; pointer-events: auto; }
.chrono { width: min(380px, 100%); padding: 34px 30px; border-radius: 30px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(20px); box-shadow: 0 40px 80px -40px rgba(120, 80, 0, .5); text-align: center; display: grid; gap: 6px; justify-items: center; }
.chrono small { color: var(--light-muted); font-weight: 600; }
.chrono-time { font-size: 60px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; font-weight: 700; }
.chrono-task { color: var(--light-muted); }
.chrono-btn { margin-top: 14px; width: 76px; height: 76px; border-radius: 50%; border: 0; background: #1d1d1f; display: grid; place-items: center; transition: transform .2s, background .3s; }
.chrono-btn:active { transform: scale(.92); }
.chrono-btn span { width: 0; height: 0; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; transition: .3s; }
.chrono-btn.run { background: #ef4444; }
.chrono-btn.run span { width: 22px; height: 22px; border: 0; border-radius: 4px; background: #fff; margin: 0; }
.chrono-log { width: 100%; margin-top: 10px; display: grid; gap: 6px; }
.chrono-log div { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: #f5f5f7; animation: rowIn .5s var(--ease); }
.week { width: min(560px, 100%); padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .9); box-shadow: 0 40px 80px -40px rgba(120, 80, 0, .5); }
.week table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.week th { color: var(--light-muted); font-weight: 600; padding: 6px; text-align: center; }
.week th:first-child, .week td:first-child { text-align: left; }
.week td { padding: 6px; text-align: center; border-top: 1px solid #eee; }
.week td button { width: 42px; height: 30px; border-radius: 8px; border: 0; background: #f5f5f7; font-weight: 600; color: var(--light-ink); transition: background .2s, transform .2s; }
.week td button:hover { background: #fde68a; }
.week td button:active { transform: scale(.92); }
.week tfoot td { font-weight: 700; }
.week .wk-total { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 700; }
.week .wk-total em { font-style: normal; color: #b45309; }
.approve { width: min(520px, 100%); display: grid; gap: 10px; }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: 0 20px 40px -30px rgba(120, 80, 0, .6); transition: transform .5s var(--ease), opacity .5s; }
.ap-row .av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; flex: none; }
.ap-row b { display: block; font-size: 15px; }
.ap-row small { color: var(--light-muted); }
.ap-row .warn { color: #c2410c; font-weight: 600; }
.ap-row button { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: #1d1d1f; color: #fff; font-size: 13px; font-weight: 600; }
.ap-row.ok { opacity: .55; }
.ap-row.ok button { background: #10b981; }
.ap-all { justify-self: end; }
.phone { position: relative; width: 270px; height: 540px; border-radius: 46px; background: #1d1d1f; padding: 12px; box-shadow: 0 50px 90px -40px rgba(120, 80, 0, .8); }
.phone-notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 1; }
.phone-screen { height: 100%; border-radius: 36px; background: linear-gradient(180deg, #0f1a2c, #13598a); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; }
.phone-screen small { color: #9ec7e6; }
.phone-clock { font-size: 64px; letter-spacing: -.04em; }
.phone-geo { font-size: 13px; color: #9ec7e6; }
.phone-punch { margin-top: 18px; width: 150px; height: 150px; border-radius: 50%; border: 0; background: radial-gradient(circle at 30% 30%, #6ee7b7, #10b981); color: #002417; font-size: 20px; font-weight: 700; box-shadow: 0 0 0 10px rgba(16, 185, 129, .2), 0 0 0 22px rgba(16, 185, 129, .08); transition: transform .2s, background .4s; }
.phone-punch:active { transform: scale(.94); }
.phone-punch.out { background: radial-gradient(circle at 30% 30%, #fda4af, #ef4444); color: #2a0008; box-shadow: 0 0 0 10px rgba(239, 68, 68, .2), 0 0 0 22px rgba(239, 68, 68, .08); }
.phone-off { font-size: 11px; color: #9ec7e6; }

/* ---------- Achats (fenêtre qui glisse par-dessus) ---------- */
.po-sec { padding: 0 !important; }
.po-scroll { height: 220vh; }
.po-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.po-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.po-layout .sec-head { margin: 0; }
.po-layout .sec-head h2 { font-size: clamp(36px, 4.6vw, 60px); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: #d2d2d7; }
.checks li::before { content: "✓"; color: var(--pink); font-weight: 700; }
.po-stack { position: relative; height: 610px; }
.win { position: absolute; border-radius: 20px; overflow: hidden; background: #16161b; box-shadow: 0 0 0 1px var(--line), 0 40px 100px -30px rgba(0, 0, 0, .9); }
.win-h { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #1f1f26; font-size: 12px; color: var(--muted); }
.win-h i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-h i:nth-child(2) { background: #febc2e; } .win-h i:nth-child(3) { background: #28c840; margin-right: 8px; }
.win-b { padding: 24px; }
.po-budget { inset: 0 90px 270px 0; }
.po-budget small { color: var(--muted); }
.po-total { display: block; font-size: 42px; letter-spacing: -.04em; margin: 2px 0 20px; }
.po-bars { display: grid; gap: 16px; }
.po-bars > div { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; gap: 12px; font-size: 14px; }
.po-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .6s var(--ease); }
.bar.pink i { background: var(--pink); } .bar.green i { background: var(--green); }
.po-order {
    --p: 0;
    width: 360px; right: 0; bottom: 0;
    transform: translate(calc((1 - var(--p)) * 120%), calc((1 - var(--p)) * 30px)) rotate(calc((1 - var(--p)) * 6deg));
    opacity: calc(var(--p) * 1.5);
    box-shadow: 0 0 0 1px rgba(244, 114, 182, .35), 0 50px 120px -30px rgba(244, 114, 182, .45);
}
.po-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.po-line.total { border: 0; font-size: 16px; font-weight: 700; }
.po-approve { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(52, 211, 153, .1); color: #6ee7b7; font-size: 13px; }

/* ---------- Chantier ---------- */
.field-sec { background: radial-gradient(60% 50% at 20% 10%, rgba(255, 200, 61, .12), transparent 70%), var(--bg) !important; }
.field { display: grid; grid-template-columns: 1.6fr 1fr; border-radius: 30px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.field-map { position: relative; min-height: 460px; background: #0d0d12; }
.field-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.road { fill: none; stroke: #2b2b33; stroke-width: 12; stroke-linecap: round; }
.road.thin { stroke-width: 6; }
.river { fill: none; stroke: rgba(45, 175, 230, .25); stroke-width: 18; }
.field-layer { position: absolute; inset: 0; }
.site { position: absolute; translate: -50% -50%; display: grid; place-items: center; }
.site i { width: 18px; height: 18px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.site span { position: absolute; top: 24px; white-space: nowrap; font-size: 11px; color: #d2d2d7; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .6); }
.crew { position: absolute; translate: -50% -50%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #1a1200; background: var(--cc); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cc) 25%, transparent), 0 0 24px var(--cc); transition: left 1.6s var(--ease), top 1.6s var(--ease); }
.crew::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--cc); animation: ping 2.4s ease-out infinite; }
.field-weather { position: absolute; left: 16px; top: 16px; padding: 8px 12px; border-radius: 12px; background: rgba(45, 175, 230, .16); color: #bae6fd; font-size: 13px; backdrop-filter: blur(8px); }
.field-panel { padding: 22px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); }
.field-panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.crew-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.crew-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); transition: background .4s; }
.crew-list li.changed { background: rgba(255, 200, 61, .12); }
.crew-list .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cc); flex: none; }
.crew-list b { display: block; font-size: 14px; }
.crew-list small { color: var(--muted); font-size: 12px; }
.crew-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--gold); white-space: nowrap; }
.field-note { color: var(--muted); font-size: 14px; min-height: 42px; }

/* ---------- Facturation (clair) ---------- */
.bill { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.bill-src, .bill-doc { border-radius: 28px; background: #fff; padding: 26px; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04); }
.bill-src-h { display: flex; justify-content: space-between; margin-bottom: 14px; }
.bill-src-h small { color: var(--light-muted); }
.bill-src ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bill-src li label { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.bill-src li label:hover { background: #f5f5f7; }
.bill-src li input { width: 20px; height: 20px; accent-color: #10b981; }
.bill-src li span { flex: 1; }
.bill-src li small { display: block; color: var(--light-muted); }
.bill-src li b { font-variant-numeric: tabular-nums; }
.bill-doc { position: relative; overflow: hidden; }
.bill-doc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.bill-doc-h .logo { height: 20px; width: auto; color: var(--light-ink); }
.bill-to { color: var(--light-muted); }
.bill-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.bill-table td { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.bill-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bill-table tr { animation: rowIn .45s var(--ease); }
.bill-tot { display: grid; gap: 6px; margin-bottom: 20px; }
.bill-tot div { display: flex; justify-content: space-between; color: var(--light-muted); font-variant-numeric: tabular-nums; }
.bill-tot .grand { color: var(--light-ink); font-size: 22px; font-weight: 700; padding-top: 10px; border-top: 1px solid #eee; }
.bill-stamp { position: absolute; right: 26px; top: 120px; padding: 10px 16px; border-radius: 12px; border: 3px solid #10b981; color: #059669; font-weight: 800; font-size: 14px; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: .5s var(--ease); pointer-events: none; background: rgba(255, 255, 255, .85); }
.bill-stamp.on { opacity: 1; transform: rotate(-8deg) scale(1); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; margin-top: 70px; font-size: 22px; font-weight: 700; color: #a1a1a6; letter-spacing: -.02em; }

/* ---------- Rapports ---------- */
.dash { padding: 26px; border-radius: 32px; background: linear-gradient(180deg, #111117, #0b0b0f); box-shadow: inset 0 0 0 1px var(--line); }
.dash-bar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.dash .seg button { color: var(--muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi-card { padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .04); }
.kpi-card small { color: var(--muted); font-size: 13px; }
.kpi-card b { display: block; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi-card em { font-style: normal; font-size: 13px; color: var(--muted); }
.kpi-card em.up { color: var(--green); }
.dash-charts { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; margin-top: 14px; }
.chart-card { padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .04); min-height: 250px; display: flex; flex-direction: column; gap: 14px; }
.chart-card small { color: var(--muted); font-size: 13px; }
.line-chart { width: 100%; height: auto; overflow: visible; }
.line-chart .line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.line-chart .line2 { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 6; }
.line-chart .area { fill: url(#none); fill: rgba(45, 175, 230, .12); }
.line-chart path { transition: d .9s var(--ease); }
.hbars { display: grid; gap: 12px; }
.hbars div { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.hbars em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbars .bar i { background: linear-gradient(90deg, var(--blue), #7dd3fc); }
.donut-wrap { position: relative; display: grid; place-items: center; flex: 1; }
.donut { width: 170px; height: 170px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; transition: stroke-dasharray 1s var(--ease), stroke-dashoffset 1s var(--ease); }
.donut-wrap b { position: absolute; font-size: 22px; letter-spacing: -.03em; }

/* ---------- Andy ---------- */
.andy-sec { background: radial-gradient(50% 60% at 70% 50%, rgba(45, 175, 230, .2), transparent 70%), radial-gradient(40% 50% at 90% 90%, rgba(167, 139, 250, .18), transparent 70%), #000; overflow: hidden; }
.andy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.andy-layout .sec-head { margin: 0; }
.chat { display: flex; flex-direction: column; height: 560px; border-radius: 30px; background: rgba(20, 20, 26, .75); backdrop-filter: blur(30px); box-shadow: inset 0 0 0 1px var(--line), 0 50px 120px -50px rgba(45, 175, 230, .6); overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-h small { color: var(--green); margin-left: auto; font-size: 12px; }
.chat-h small::before { content: "● "; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45; animation: rowIn .4s var(--ease); }
.msg.me { align-self: flex-end; background: var(--blue-2); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: rgba(255, 255, 255, .07); border-bottom-left-radius: 6px; }
.msg.ai ul { margin: 6px 0 0; padding-left: 18px; }
.msg.ai b { color: #7dd3fc; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.chat-sugg button { padding: 9px 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .07); font-size: 13px; transition: background .2s; text-align: left; }
.chat-sugg button:hover { background: rgba(45, 175, 230, .25); }
.chat-sugg button:disabled { opacity: .4; cursor: default; }

.einv { margin: 26px auto 0; max-width: 720px; text-align: center; color: var(--light-muted); font-size: 15px; }
.einv b { color: var(--light-ink, #1d1d1f); }
.einv a { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* ---------- Fondation ---------- */
.found-sec { padding: 160px 0; background: radial-gradient(60% 40% at 50% 0%, rgba(52, 211, 153, .16), transparent 70%), #000; }
.found-sec { overflow-x: clip; }
/* Keynote Fondation : 4 temps épinglés, data-step posé par site.js */
.fshow { position: relative; height: 420vh; margin: 40px 0 120px; }
.fshow-pin {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 40px;
    max-width: 1240px; margin: 0 auto; padding: 0 40px;
}
.fshow-copy { position: relative; height: 340px; }
.fshow-line { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s; pointer-events: none; }
.fshow-line h3 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.045em; margin: 0; }
.fshow-line p { margin: 24px 0 0; max-width: 420px; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); }
.fshow[data-step="0"] [data-s="0"], .fshow[data-step="1"] [data-s="1"], .fshow[data-step="2"] [data-s="2"], .fshow[data-step="3"] [data-s="3"] { opacity: 1; transform: none; filter: none; }
.fshow[data-step="1"] [data-s="0"], .fshow[data-step="2"] [data-s="1"], .fshow[data-step="3"] [data-s="2"] { transform: translateY(-40px); }

.fshow-scene { position: relative; height: min(78vh, 640px); display: grid; place-items: center; perspective: 1600px; }
/* le socle : une dalle verte vue en perspective, qui respire */
.fshow-slab {
    position: absolute; left: 6%; right: 6%; bottom: 14%; height: 34%;
    border-radius: 40px; display: grid; place-items: center;
    background: radial-gradient(70% 80% at 50% 30%, #6ee7b7, #10b981 45%, #047857 90%);
    transform: rotateX(68deg); transform-origin: 50% 100%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 60px 160px 10px rgba(52, 211, 153, .55);
    transition: box-shadow 1s, filter 1s;
}
.fshow-slab::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 211, 153, .35), transparent); filter: blur(30px); z-index: -1; animation: slab-breathe 4s ease-in-out infinite; }
@keyframes slab-breathe { 50% { opacity: .5; transform: scale(.92); } }
.fshow-slab svg { width: 26%; height: auto; opacity: .9; }
.fshow-slab .logo-mark { fill: #003a26; }
.fshow-slab-lbl { position: absolute; bottom: 4%; left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .32em; color: var(--green); }

/* la fenêtre de l'application, posée sur le socle */
.fshow-win {
    position: absolute; left: 12%; right: 12%; bottom: 30%; z-index: 2;
    border-radius: 18px; overflow: hidden; background: #0d1117;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 30px 80px -40px rgba(52, 211, 153, .8);
    opacity: 0; transform: translateY(-120px) scale(.9) rotateX(10deg); transform-origin: 50% 100%;
    transition: opacity .8s var(--ease), transform 1.1s cubic-bezier(.34, 1.3, .64, 1);
}
.fshow:not([data-step="0"]) .fshow-win { opacity: 1; transform: none; }
.fw-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #161b22; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .fw-bar i:nth-child(2) { background: #febc2e; } .fw-bar i:nth-child(3) { background: #28c840; }
.fw-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px; }
.fw-body { position: relative; height: clamp(250px, 34vh, 300px); }
.fw-panel { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.fshow[data-step="0"] .p1, .fshow[data-step="1"] .p1, .fshow[data-step="2"] .p2, .fshow[data-step="3"] .p3 { opacity: 1; }
.p1 { display: grid; grid-template-columns: 64px 1fr; }
.fw-side { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; background: rgba(255, 255, 255, .03); }
.fw-side b { height: 22px; border-radius: 6px; background: var(--green); margin-bottom: 8px; }
.fw-side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); } .fw-side i.on { background: rgba(52, 211, 153, .7); }
.fw-main { padding: 16px 20px; display: grid; align-content: start; gap: 8px; font-size: 13px; }
.fw-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fw-h b { font-size: 18px; }
.fw-h span { padding: 5px 12px; border-radius: 999px; background: var(--green); color: #002417; font-weight: 700; font-size: 12px; }
.fw-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.fw-row span { color: var(--muted); }
.fshow[data-step="1"] .fw-row { animation: row-in .6s var(--ease) both; }
.fshow[data-step="1"] .fw-row:nth-child(3) { animation-delay: .1s; } .fshow[data-step="1"] .fw-row:nth-child(4) { animation-delay: .2s; } .fshow[data-step="1"] .fw-row:nth-child(5) { animation-delay: .3s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-16px); } }
/* FileMaker → web : une ligne lumineuse balaie et révèle la nouvelle interface */
.fw-fm, .fw-new { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.fw-fm { background: #d4d0c8; }
.fw-new { background: linear-gradient(160deg, #0f1a2c, #0b3a5c); clip-path: inset(0 100% 0 0); }
.fw-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #6ee7b7; box-shadow: 0 0 24px 6px rgba(110, 231, 183, .8); opacity: 0; }
.fshow[data-step="2"] .fw-new { animation: fm-reveal 1.6s .5s var(--ease) forwards; }
.fshow[data-step="2"] .fw-scan { animation: fm-scan 1.6s .5s var(--ease) forwards; }
@keyframes fm-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes fm-scan { 0% { opacity: 1; left: 0; } 95% { opacity: 1; } 100% { opacity: 0; left: 100%; } }
.p2 .fm, .p2 .nw { max-width: 380px; }
.p3 { display: grid; align-content: center; gap: 14px; padding: 24px; }
.fw-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fw-kpis div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.fw-kpis small { display: block; color: var(--muted); font-size: 12px; }
.fw-kpis b { font-size: 17px; } .fw-kpis b.g { color: #6ee7b7; }
/* les connexions qui gravitent autour au 4e temps */
.fshow-chips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fshow-chips span {
    position: absolute; left: 50%; top: 45%; display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap;
    background: rgba(20, 24, 30, .8); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(110, 231, 183, .45), 0 10px 40px -10px rgba(52, 211, 153, .7);
    opacity: 0; transform: translate(-50%, -50%) scale(.4);
    transition: opacity .6s var(--ease) var(--d), transform .9s cubic-bezier(.34, 1.4, .64, 1) var(--d), left .9s cubic-bezier(.34, 1.2, .64, 1) var(--d), top .9s cubic-bezier(.34, 1.2, .64, 1) var(--d);
}
.fshow-chips .andy-av { font-style: normal; font-size: 11px; }
.fshow[data-step="3"] .fshow-chips span { opacity: 1; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(1); animation: chip-float 5s ease-in-out calc(var(--d) * 6 + 1s) infinite; }
@keyframes chip-float { 50% { translate: 0 -6px; } }
.fshow[data-step="3"] .fshow-win { transform: scale(.78); }
.fshow[data-step="3"] .fshow-slab { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 60px 200px 30px rgba(52, 211, 153, .8); }

.fshow-dots { position: absolute; right: 12px; top: 50%; translate: 0 -50%; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fshow-dots button { display: block; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: height .4s var(--ease), background .4s; }
.fshow[data-step="0"] [data-go="0"], .fshow[data-step="1"] [data-go="1"], .fshow[data-step="2"] [data-go="2"], .fshow[data-step="3"] [data-go="3"] { height: 28px; background: var(--green); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { padding: 28px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pillar span { font-size: 13px; font-weight: 700; color: var(--green); }
.pillar b { display: block; font-size: 20px; margin: 10px 0 8px; letter-spacing: -.02em; }
.pillar p { color: var(--muted); font-size: 15px; }
.migrate { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center; margin-top: 120px; }
.migrate h3 { font-size: clamp(32px, 4vw, 52px); }
.migrate p { color: var(--muted); margin-top: 18px; font-size: 18px; }
.migrate .hint { font-size: 14px; color: var(--green); }
.compare { position: relative; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 100px -40px rgba(52, 211, 153, .5); user-select: none; }
.cmp-old, .cmp-new { position: absolute; inset: 0; display: grid; place-items: center; padding: 26px; }
.cmp-old { background: #d4d0c8; }
.cmp-new { background: linear-gradient(160deg, #0f1a2c, #0b3a5c); clip-path: inset(0 0 0 var(--x)); }
.fm { width: 100%; max-width: 440px; background: #ece9d8; border: 2px solid #808080; font-family: Tahoma, Geneva, sans-serif; font-size: 12px; color: #000; letter-spacing: 0; box-shadow: 4px 4px 0 #808080; }
.fm-bar { background: linear-gradient(180deg, #0a246a, #3a6ea5); color: #fff; padding: 4px 8px; white-space: nowrap; overflow: hidden; font-size: 11px; }
.fm-body { padding: 14px; display: grid; gap: 8px; }
.fm-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 6px; }
.fm-row input { height: 22px; border: 2px inset #fff; background: #fff; font: inherit; padding: 0 4px; min-width: 0; }
.fm-btns { display: flex; gap: 6px; margin-top: 6px; }
.fm-btns span { padding: 3px 10px; border: 2px outset #fff; background: #d4d0c8; }
.nw { width: 100%; max-width: 440px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #dbe7f5; display: grid; gap: 14px; font-size: 14px; }
.nw-h { display: flex; justify-content: space-between; align-items: center; }
.nw-h b { font-size: 20px; color: #fff; }
.nw-t { color: #7d93ae; margin-top: -8px; }
.nw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nw-grid div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.nw-grid small { display: block; color: #7d93ae; font-size: 11px; }
.nw-grid b { color: #fff; } .nw-grid b.g { color: #6ee7b7; }
.nw .mock-bar { font-size: 14px; }
.nw-andy { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(52, 211, 153, .1); color: #a7f3d0; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; translate: -50% 0; background: #fff; z-index: 2; pointer-events: none; }
.cmp-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #000; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.cmp-lbl { position: absolute; bottom: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .6); color: #fff; pointer-events: none; }
.cmp-lbl.a { left: 14px; } .cmp-lbl.b { right: 14px; background: rgba(16, 185, 129, .8); color: #002417; }

/* ---------- Tarifs ---------- */
.pricing { padding: 150px 0; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .06); }
.plan h3 { font-size: 26px; }
.plan-for { color: var(--light-muted); font-size: 15px; min-height: 66px; }
.price b { font-size: 46px; letter-spacing: -.04em; }
.price span { color: var(--light-muted); }
.plan ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--blue-2); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan.featured { box-shadow: 0 0 0 2px var(--blue), 0 40px 90px -40px rgba(45, 175, 230, .6); }
.badge { position: absolute; top: -13px; left: 26px; padding: 5px 12px; border-radius: 999px; background: var(--blue); color: #001018; font-size: 12px; font-weight: 700; }
.dark-plan { background: #1d1d1f; color: var(--ink); }
.dark-plan .plan-for, .dark-plan .price span { color: var(--muted); }
.dark-plan li::before { color: var(--gold); }
.integ { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-top: 28px; padding: 34px 38px; border-radius: 28px; background: linear-gradient(120deg, #0b3a5c, #13598a 60%, #2dafe6); color: #fff; }
.integ h3 { font-size: 28px; }
.integ p { color: #cfe8f7; margin-top: 8px; max-width: 640px; }
.integ .btn-primary { background: #fff; color: #000; box-shadow: none; }
.fine { margin-top: 18px; text-align: center; font-size: 13px; color: var(--light-muted); }

/* ---------- Réservation ---------- */
.booking { padding: 150px 0; background: radial-gradient(50% 60% at 20% 30%, rgba(45, 175, 230, .2), transparent 70%), #000; }
.booking-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.booking-points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.booking-points li { padding-left: 22px; border-left: 2px solid var(--blue); }
.booking-points b { display: block; font-size: 19px; letter-spacing: -.02em; }
.booking-points span { color: var(--muted); }
.booking-cal { border-radius: 30px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); min-height: 640px; }
.calendly-inline-widget { min-width: 320px; height: 700px; }
.cal-fallback { display: grid; gap: 22px; padding: 36px; text-align: center; justify-items: center; }
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; max-width: 420px; }
.cal-days span { font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-days button { aspect-ratio: 1; border-radius: 50%; border: 0; background: transparent; color: #3a3a40; font-weight: 600; }
.cal-days button.free { background: rgba(45, 175, 230, .16); color: #7dd3fc; }
.cal-days button.free:hover { background: var(--blue); color: #001018; }
.cal-fallback p { color: var(--muted); }

/* ---------- FAQ, appel final, pied ---------- */
.faq { padding: 140px 0; }
.faq h2 { margin-bottom: 50px; font-size: clamp(36px, 5vw, 56px); }
.faq details { border-bottom: 1px solid #d2d2d7; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--light-muted); font-size: 17px; max-width: 700px; }
.final-cta { padding: 160px 0; background: radial-gradient(50% 70% at 50% 100%, rgba(45, 175, 230, .25), transparent 70%), #000; }
.final-cta h2 { font-size: clamp(40px, 6.4vw, 80px); }
.footer { padding: 60px 0 30px; background: #000; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-logo { height: 22px; width: auto; color: #fff; margin-bottom: 16px; }
.footer nav { display: grid; gap: 9px; align-content: start; }
.footer nav b { color: var(--ink); margin-bottom: 4px; }
.footer nav a:hover { color: #fff; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Pages secondaires (À propos, légal) ---------- */
.doc { padding: 150px 0 110px; }
.doc-body { color: #c7c7cc; font-size: 17px; line-height: 1.65; }
.doc-body h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.05; color: var(--ink); margin: 0; }
.doc-date { margin: 14px 0 40px; color: var(--muted); font-size: 14px; }
.doc-body h2 { margin: 44px 0 12px; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.doc-body a { color: var(--blue); }

/* Sign-in page */
.signin form { margin-top: 28px; }
.signin label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
.signin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signin-address { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.signin-address:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.signin-address input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; }
.signin-address span { color: var(--muted); }
.signin .signin-error { margin: 12px 0 0; color: var(--pink); font-size: 15px; }
.signin .signin-other { margin-top: 32px; font-size: 15px; }
.about-hero { padding: 170px 0 70px; background: radial-gradient(60% 60% at 50% 0%, rgba(45, 175, 230, .18), transparent 70%); }
.about-hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: -.05em; margin: 0; }
.about-hero .lead { margin-inline: auto; }
.about-story { padding: 20px 0 110px; }
.about-story p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: #c7c7cc; margin: 0 0 22px; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 56px; }
.about-facts div { padding: 26px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.about-facts b { display: block; font-size: 34px; letter-spacing: -.04em; }
.about-facts span { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes drift { to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes grow { from { width: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes slide { to { transform: translateX(18%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes crew { 33% { translate: 20px -10px; } 66% { translate: -12px 14px; } }
@keyframes ping { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes flash { 30% { background: #c7ecfb; } }
@keyframes won { 30% { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(16, 185, 129, .4); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .sector-grid, .bento, .plans, .pillars { grid-template-columns: repeat(2, 1fr); }
    .dash-kpis { grid-template-columns: repeat(2, 1fr); }
    .dash-charts { grid-template-columns: 1fr 1fr; }
    .dash-charts .chart-card:first-child { grid-column: 1 / -1; }
    .tabs-stage { grid-template-columns: 1fr; }
    .tabs-list { grid-template-columns: repeat(2, 1fr); }
    .po-layout, .andy-layout, .booking-layout, .migrate, .bill { grid-template-columns: 1fr; }
    .po-scroll { height: auto; }
    .po-sticky { position: relative; height: auto; padding: 120px 0; }
    .po-order { --p: 1 !important; }
    .field { grid-template-columns: 1fr; }
    .field-panel { border-left: 0; border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-links, .nav-login { display: none; }
    .nav-burger { display: block; }
    .nav.open { height: auto; }
    .nav.open .nav-links { display: flex; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 22px 20px; background: rgba(10, 10, 14, .96); font-size: 20px; }
    .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-actions .btn { display: none; }
    .hero-stage { height: 150vh; }
    .hero-window { aspect-ratio: 4 / 5; }
    .mock { font-size: 2.2cqw; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-side, .mock-andy { display: none; }
    .app { height: 78vh; }
    .app-drawer { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; box-shadow: 20px 0 50px rgba(0, 0, 0, .5); }
    .app-search { display: none; }
    .feat-row { grid-template-columns: 1fr; gap: 22px; }
    .crm-head { gap: 20px; }
    .andy-tip { margin-left: 0; }
    .fshow-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 90px 20px 0; align-items: start; }
    .fshow-copy { height: 210px; }
    .fshow-line { justify-content: flex-start; text-align: center; align-items: center; }
    .fshow-line p { margin-top: 14px; }
    .fshow-scene { height: 100%; max-height: 520px; }
    .fshow-dots { display: none; }
    .fshow[data-step="3"] .fshow-chips span { left: clamp(60px, var(--x), calc(100% - 60px)); }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .about-facts { grid-template-columns: 1fr; }
    .doc { padding: 120px 0 80px; }
    .sector-grid, .bento, .plans, .pillars, .tabs-list, .dash-kpis, .dash-charts { grid-template-columns: 1fr; }
    .bento-card.w2 { grid-column: auto; }
    .sector-card { min-height: 0; }
    .mod-sec, .pricing, .booking, .faq, .found-sec { padding: 100px 0; }
    .hero-caption { flex-direction: column; align-items: center; gap: 4px; }
    .po-stack { height: 560px; }
    .po-budget { inset: 0 0 160px 0; }
    .po-order { width: 92%; }
    .po-bars > div { grid-template-columns: 70px 1fr 80px; }
    .tabs-view { min-height: 560px; }
    .fshow-win { left: 2%; right: 2%; }
    .fw-main { padding: 12px; font-size: 11px; } .fw-row { grid-template-columns: 56px 1fr auto; padding: 7px 8px; }
    .p1 { grid-template-columns: 40px 1fr; } .fw-side { padding: 12px 8px; }
    .p2 .fm, .p2 .nw { font-size: 11px; } .nw { padding: 14px; gap: 10px; }
    .fw-kpis b { font-size: 13px; } .p3 { padding: 14px; }
    .fshow-chips span { font-size: 12px; padding: 7px 12px; }
    .integ { padding: 26px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
