/* ═══════════════════════════════════════════════════════════
   LR SYSTEMS - Design System Bi-chromie Jour/Nuit
   Metaphore : le site suit le cycle photoperiode
   Jour (haut)  -> croissance naturelle
   Nuit (bas)   -> pilotage par LED + donnees
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ─── JOUR ─── */
    --day-bg:     #f8fafc;
    --day-bg2:    #f1f5f9;
    --day-bg3:    #e2e8f0;
    --day-text:   #0f172a;
    --day-text2:  #475569;
    --day-text3:  #64748b;
    --day-card:   rgba(255, 255, 255, 0.7);
    --day-card-b: rgba(15, 23, 42, 0.06);
    --day-card-hover: rgba(255, 255, 255, 0.95);

    /* ─── NUIT ─── */
    --night-bg:   #0a1628;
    --night-bg2:  #060f1f;
    --night-bg3:  #030811;
    --night-text: #e8ecf4;
    --night-text2:#94a3b8;
    --night-text3:#64748b;
    --night-card: rgba(255, 255, 255, 0.04);
    --night-card-b: rgba(255, 255, 255, 0.07);
    --night-card-hover: rgba(255, 255, 255, 0.08);

    /* ─── ACCENTS ─── */
    --blue:       #3b82f6;
    --blue-glow:  rgba(59, 130, 246, 0.35);
    --cyan:       #06b6d4;
    --cyan-glow:  rgba(6, 182, 212, 0.35);
    --purple:     #8b5cf6;
    --green:      #10b981;
    --green-glow: rgba(16, 185, 129, 0.35);
    --amber:      #f59e0b;
    --red:        #ef4444;
    --red-far:    #dc2626;
    --red-glow:   rgba(239, 68, 68, 0.45);
    --sun:        #fbbf24;
    --sun-glow:   rgba(251, 191, 36, 0.4);

    /* ─── GEOMETRIE ─── */
    --radius:    16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-lg: 24px;

    /* ─── EASING ─── */
    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:  cubic-bezier(0.33, 1, 0.68, 1);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--day-bg);
    color: var(--day-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: 'cv02','cv03','cv04','cv11';
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Scroll progress bar globale */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 2px; z-index: 2000;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
    transform-origin: left; transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* Noise texture overlay (depth premium) */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
    mix-blend-mode: overlay;
}

/* ─── SECTIONS THEMES ─── */
.section-day   { background: var(--day-bg);   color: var(--day-text); }
.section-day2  { background: var(--day-bg2);  color: var(--day-text); }
.section-night { background: var(--night-bg); color: var(--night-text); }
.section-night2{ background: var(--night-bg2);color: var(--night-text); }
.section-deep  { background: var(--night-bg3);color: var(--night-text); }

/* Transitions entre sections */
.dusk-transition {
    height: 160px;
    background: linear-gradient(180deg,
        var(--day-bg2) 0%,
        #c9a96e 25%,
        #9b4e5a 55%,
        #1e1b4b 85%,
        var(--night-bg) 100%);
    position: relative; overflow: hidden;
}
.dusk-transition::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(251, 191, 36, 0.3), transparent 60%);
}
.dawn-transition {
    height: 120px;
    background: linear-gradient(180deg,
        var(--night-bg) 0%,
        #6366f1 40%,
        #c084fc 70%,
        var(--day-bg2) 100%);
    position: relative; overflow: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    transition: all 0.3s var(--ease);
}
.nav.scrolled {
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 4px 20px rgba(15,23,42,0.04);
}
.nav.night-mode {
    background: rgba(10, 22, 40, 0.75);
    border-bottom-color: rgba(255,255,255,0.06);
}
.nav.night-mode.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.nav-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Lobster', cursive; font-weight: 400;
    font-size: 22px; letter-spacing: 0.5px;
    color: var(--day-text);
    transition: color 0.3s var(--ease);
}
.nav.night-mode .nav-brand { color: var(--night-text); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    font-size: 14px; font-weight: 500;
    color: var(--day-text2);
    transition: color 0.2s var(--ease);
    position: relative;
}
.nav.night-mode .nav-links a { color: var(--night-text2); }
.nav-links a:hover { color: var(--blue); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
    height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 1px;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--day-text2); border-radius: 1px;
    transition: 0.3s var(--ease);
}
.nav.night-mode .nav-toggle span { background: var(--night-text2); }
.nav-logo-img, .footer-logo-img {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════════════════════
   HERO - JOUR (soleil, ciel, aurora)
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 140px 24px 100px;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            #bae6fd 0%,
            #dbeafe 25%,
            #e0f2fe 50%,
            #f0f9ff 80%,
            var(--day-bg) 100%);
}

/* Soleil flottant */
.hero-sun {
    position: absolute; top: 15%; right: 12%;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, #fef3c7 0%, #fde68a 30%, #fbbf24 60%, #f59e0b 100%);
    box-shadow:
        0 0 80px var(--sun-glow),
        0 0 160px rgba(251, 191, 36, 0.3),
        0 0 240px rgba(251, 191, 36, 0.15);
    animation: sunFloat 8s ease-in-out infinite;
    z-index: 1;
}
@keyframes sunFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-16px) scale(1.05); }
}

/* Nuages drifting */
.hero-clouds {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
    opacity: 0.6;
}
.cloud {
    position: absolute;
    background: radial-gradient(ellipse, rgba(255,255,255,0.9), rgba(255,255,255,0));
    border-radius: 50%;
    filter: blur(20px);
}
.cloud-1 { top: 20%; left: -10%; width: 400px; height: 100px; animation: cloudDrift 60s linear infinite; }
.cloud-2 { top: 50%; left: 20%; width: 300px; height: 80px; animation: cloudDrift 80s linear infinite; animation-delay: -20s; }
.cloud-3 { top: 70%; right: -10%; width: 500px; height: 120px; animation: cloudDrift 100s linear infinite reverse; }
@keyframes cloudDrift {
    0%   { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* Serre silhouette background */
.hero-greenhouse {
    position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1400px; height: 300px;
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.08));
    mask-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1400 300' xmlns='http://www.w3.org/2000/svg'><path d='M0,300 L0,220 Q700,100 1400,220 L1400,300 Z' fill='black'/></svg>");
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1400 300' xmlns='http://www.w3.org/2000/svg'><path d='M0,300 L0,220 Q700,100 1400,220 L1400,300 Z' fill='black'/></svg>");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    z-index: 1;
}

.hero-content { position: relative; z-index: 3; max-width: 820px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 99px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--blue);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px var(--green-glow);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(32px, 5.4vw, 64px);
    font-weight: 900; line-height: 1.08; letter-spacing: -1.8px;
    margin-bottom: 24px;
    color: var(--day-text);
    text-wrap: balance;
}
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7;
    color: var(--day-text2);
    max-width: 620px; margin: 0 auto 40px;
}
.hero-actions {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap;
}
.hero-trust {
    margin-top: 40px;
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 10px;
}
.trust-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px 9px 14px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--day-text2);
    letter-spacing: 0.1px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
    transition: all 0.25s var(--ease);
}
.trust-pill:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.95);
    border-color: rgba(16,185,129,0.2);
    color: var(--day-text);
    box-shadow: 0 4px 14px rgba(16,185,129,0.1);
}
.trust-dot {
    width: 6px; height: 6px; flex-shrink: 0;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
}

@media (max-width: 600px) {
    .trust-pill { padding: 8px 14px 8px 12px; font-size: 12.5px; gap: 8px; }
    .trust-dot { width: 5px; height: 5px; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS avec shimmer
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.25s var(--ease); border: none;
    position: relative; overflow: hidden;
    letter-spacing: 0.2px;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow:
        0 4px 14px rgba(59,130,246,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s var(--ease);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(59,130,246,0.45),
        inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover::before { left: 100%; }
.btn-outline {
    background: rgba(255,255,255,0.6);
    color: var(--day-text);
    border: 1px solid rgba(15,23,42,0.12);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(59,130,246,0.4);
    color: var(--blue);
    transform: translateY(-1px);
}
.btn-ghost {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(251,146,60,0.06));
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.22);
    backdrop-filter: blur(10px);
}
.btn-ghost::before {
    content: ''; display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(239,68,68,0.15);
    margin-right: 2px;
}
.btn-ghost:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.14), rgba(251,146,60,0.1));
    border-color: rgba(239,68,68,0.45);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239,68,68,0.18);
}
.section-night .btn-outline,
.section-night2 .btn-outline,
.section-deep .btn-outline {
    background: rgba(255,255,255,0.05);
    color: var(--night-text);
    border-color: rgba(255,255,255,0.15);
}
.section-night .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS COMMUNES
   ═══════════════════════════════════════════════════════════ */
.section { padding: 110px 0; position: relative; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; position: relative; z-index: 3; }
.section-tag {
    display: inline-block; padding: 6px 14px; border-radius: 99px;
    background: rgba(59,130,246,0.1);
    color: var(--blue);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 18px;
    border: 1px solid rgba(59,130,246,0.2);
}
.section-tag.red { background: rgba(239,68,68,0.1); color: #f87171; border-color: rgba(239,68,68,0.25); }
.section-tag.green { background: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.25); }
.section-tag.amber { background: rgba(251,191,36,0.1); color: var(--sun); border-color: rgba(251,191,36,0.25); }
.section-header h2 {
    font-size: clamp(30px, 4.5vw, 48px); font-weight: 800;
    letter-spacing: -1.2px; margin-bottom: 16px; line-height: 1.15;
}
.section-header p {
    font-size: 17px; color: var(--day-text2);
    line-height: 1.7; max-width: 600px; margin: 0 auto;
}
.section-night .section-header p,
.section-night2 .section-header p,
.section-deep .section-header p { color: var(--night-text2); }

/* ═══════════════════════════════════════════════════════════
   CHIFFRES CLES (JOUR)
   ═══════════════════════════════════════════════════════════ */
.stats-bar {
    padding: 70px 0;
    background: linear-gradient(180deg, var(--day-bg) 0%, var(--day-bg2) 100%);
    position: relative;
}
.stats-bar::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 600px 200px at 50% 50%, rgba(59,130,246,0.04), transparent);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 2;
}
.stat-card {
    text-align: left; padding: 22px 22px 24px;
    background: var(--day-card);
    border: 1px solid var(--day-card-b);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.stat-card::after {
    content: ''; position: absolute;
    top: 0; right: 0; width: 140px; height: 140px;
    background: radial-gradient(circle, var(--c,#3b82f6) 0%, transparent 70%);
    opacity: 0.06; transform: translate(40px,-40px);
    transition: all 0.4s var(--ease);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15,23,42,0.1);
    box-shadow: 0 12px 32px rgba(15,23,42,0.07);
}
.stat-card:hover::after { transform: translate(20px,-20px); opacity: 0.1; }
.stat-ico {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--c, #3b82f6);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--c,#3b82f6) 14%, transparent),
        color-mix(in srgb, var(--c2,var(--c,#3b82f6)) 6%, transparent));
    border: 1px solid color-mix(in srgb, var(--c,#3b82f6) 18%, transparent);
    margin-bottom: 14px;
    position: relative; z-index: 1;
}
.stat-ico svg { width: 20px; height: 20px; }
.stat-value {
    font-size: clamp(36px, 4.5vw, 52px); font-weight: 900;
    letter-spacing: -1.5px; line-height: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}
.stat-icon {
    font-size: 32px; line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 3px 6px rgba(59,130,246,0.15));
}
.stat-label {
    font-size: 13px; font-weight: 600;
    color: var(--day-text2);
    position: relative; z-index: 1;
}
.stat-label strong {
    display: block;
    font-size: 18px; font-weight: 800;
    color: var(--day-text);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}
.stat-sub {
    display: block; font-size: 13px; color: var(--day-text3);
    margin-top: 0;
    font-weight: 500; line-height: 1.5;
}
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   ECOSYSTEME BENTO - 2 heroes + 6 piliers (JOUR)
   ═══════════════════════════════════════════════════════════ */
.eco-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    max-width: 1200px; margin: 0 auto;
}
.eco-hero {
    grid-column: span 3;
    background: var(--day-card);
    border: 1px solid var(--day-card-b);
    border-radius: var(--radius-lg);
    padding: 32px 32px 28px;
    position: relative; overflow: hidden;
    transition: all 0.35s var(--ease);
    color: inherit;
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
}
.eco-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--eco-accent);
    opacity: 0.9;
}
.eco-hero::after {
    content: ''; position: absolute;
    top: -20%; right: -20%;
    width: 340px; height: 340px;
    background: radial-gradient(circle, var(--eco-glow), transparent 70%);
    pointer-events: none;
    transition: transform 0.5s var(--ease);
}
.eco-led  { --eco-accent: linear-gradient(90deg, #ef4444, #f59e0b); --eco-glow: rgba(239,68,68,0.14); --eco-color: #ef4444; }
.eco-soft { --eco-accent: linear-gradient(90deg, #3b82f6, #06b6d4); --eco-glow: rgba(59,130,246,0.14); --eco-color: #3b82f6; }
.eco-hero:hover {
    transform: translateY(-4px);
    background: var(--day-card-hover);
    box-shadow: 0 20px 50px rgba(15,23,42,0.08);
}
.eco-hero:hover::after { transform: translate(-30px, 30px); }
.eco-tag {
    display: inline-block; align-self: flex-start;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.3px;
    color: var(--day-text3);
    padding: 4px 11px; border-radius: 99px;
    background: rgba(15,23,42,0.04);
    margin-bottom: 18px;
    position: relative; z-index: 1;
}
.eco-hero-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 12px;
    position: relative; z-index: 1;
}
.eco-hero-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--eco-color);
    background: color-mix(in srgb, var(--eco-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--eco-color) 18%, transparent);
    flex-shrink: 0;
}
.eco-hero-icon svg { width: 24px; height: 24px; }
.eco-hero h3 {
    font-size: 26px; font-weight: 800; letter-spacing: -0.6px;
    color: var(--day-text);
}
.eco-hero p {
    font-size: 14.5px; line-height: 1.65; color: var(--day-text2);
    margin-bottom: 20px;
    position: relative; z-index: 1;
}
.eco-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(15,23,42,0.06);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    margin-bottom: 18px;
    position: relative; z-index: 1;
}
.eco-stats div { display: flex; flex-direction: column; gap: 2px; }
.eco-stats strong {
    font-size: 17px; font-weight: 800;
    color: var(--eco-color);
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}
.eco-stats span {
    font-size: 11px; color: var(--day-text3);
    text-transform: uppercase; letter-spacing: 0.4px;
    font-weight: 600;
}
.eco-link {
    font-size: 14px; font-weight: 600;
    color: var(--eco-color);
    margin-top: auto;
    position: relative; z-index: 1;
    transition: letter-spacing 0.2s var(--ease);
}
.eco-hero:hover .eco-link { letter-spacing: 0.3px; }

/* Piliers techniques (6 cartes compactes) */
.eco-pillar {
    grid-column: span 2;
    background: var(--day-card);
    border: 1px solid var(--day-card-b);
    border-radius: var(--radius);
    padding: 20px 22px 22px;
    transition: all 0.3s var(--ease);
    color: inherit;
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column; gap: 8px;
    position: relative; overflow: hidden;
}
.eco-pillar::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 32px; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--pc, #3b82f6);
    transition: width 0.3s var(--ease);
}
.eco-pillar:hover {
    transform: translateY(-3px);
    background: var(--day-card-hover);
    border-color: color-mix(in srgb, var(--pc,#3b82f6) 22%, transparent);
    box-shadow: 0 10px 28px rgba(15,23,42,0.06);
}
.eco-pillar:hover::before { width: 64px; }
.eco-pillar-ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--pc, #3b82f6);
    background: color-mix(in srgb, var(--pc,#3b82f6) 12%, transparent);
    margin-bottom: 4px;
}
.eco-pillar-ico svg { width: 18px; height: 18px; }
.eco-pillar h4 {
    font-size: 16px; font-weight: 700; letter-spacing: -0.2px;
    color: var(--day-text);
}
.eco-pillar p {
    font-size: 13px; color: var(--day-text2); line-height: 1.55;
}

@media (max-width: 960px) {
    .eco-bento { grid-template-columns: repeat(6, 1fr); gap: 14px; }
    .eco-hero { grid-column: span 6; padding: 26px 24px 24px; }
    .eco-pillar { grid-column: span 3; }
    .eco-hero h3 { font-size: 22px; }
}
@media (max-width: 560px) {
    .eco-pillar { grid-column: span 6; }
    .eco-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .eco-stats strong { font-size: 15px; }
}

/* Legacy: 2 colonnes (utilise ailleurs) */
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.solution-card {
    background: var(--day-card);
    border: 1px solid var(--day-card-b);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    transition: all 0.35s var(--ease);
    position: relative; overflow: hidden;
    backdrop-filter: blur(10px);
}
.solution-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.solution-card.led::before { background: linear-gradient(90deg, var(--red), var(--amber)); }
.solution-card.soft::before { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.solution-card::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--glow, rgba(59,130,246,0.08)), transparent 70%);
    transform: translate(100px, -100px);
    transition: transform 0.5s var(--ease);
}
.solution-card.led { --glow: rgba(239, 68, 68, 0.1); }
.solution-card.soft { --glow: rgba(59, 130, 246, 0.1); }
.solution-card:hover {
    transform: translateY(-4px);
    background: var(--day-card-hover);
    box-shadow: 0 20px 50px rgba(15,23,42,0.08);
}
.solution-card:hover::after { transform: translate(50px, -50px); }
.solution-icon-wrap {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; position: relative;
}
.solution-card.led .solution-icon-wrap {
    background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(251,146,60,0.08));
    color: var(--red);
    box-shadow: 0 4px 20px rgba(239,68,68,0.15);
}
.solution-card.soft .solution-icon-wrap {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(6,182,212,0.08));
    color: var(--blue);
    box-shadow: 0 4px 20px rgba(59,130,246,0.15);
}
.solution-icon-wrap svg { width: 28px; height: 28px; }
.solution-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--day-text3); margin-bottom: 8px;
    padding: 3px 10px; border-radius: 99px;
    background: rgba(15,23,42,0.04);
}
.solution-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.8px; }
.solution-card p { font-size: 15px; color: var(--day-text2); line-height: 1.7; margin-bottom: 20px; }
.solution-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--blue);
    transition: gap 0.2s var(--ease);
}
.solution-link:hover { gap: 10px; color: var(--cyan); }

/* ═══════════════════════════════════════════════════════════
   LR LIGHT (NUIT - où les LEDs prennent le relais)
   ═══════════════════════════════════════════════════════════ */
#lr-light {
    position: relative; overflow: hidden;
}
#lr-light::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(239,68,68,0.12), transparent 60%),
        radial-gradient(ellipse 500px 300px at 80% 70%, rgba(220,38,38,0.08), transparent 60%);
    pointer-events: none;
}

/* ── SPECTROGRAMME UNIFIE ── */
.spectrum-section {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius-lg); padding: 36px;
    margin-bottom: 40px; position: relative;
}
.spectrum-header {
    text-align: center; margin-bottom: 24px;
}
.spectrum-header h3 {
    font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.spectrum-subtitle {
    font-size: 13px; color: var(--night-text3); font-style: italic;
}

/* Legende des 3 eclairages */
.spectrum-legend-unified {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 18px;
}
.leg-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.leg-swatch {
    width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
}
.leg-lr .leg-swatch {
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
    box-shadow: 0 0 6px rgba(239,68,68,0.5);
}
.leg-horti .leg-swatch {
    background: linear-gradient(135deg, #64748b, #1f2937);
    box-shadow: 0 0 6px rgba(31,41,55,0.5);
}
.leg-classi .leg-swatch {
    background: linear-gradient(135deg, #eab308, #a16207);
    box-shadow: 0 0 6px rgba(234,179,8,0.4);
}
.leg-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--night-text); }
.leg-item em { display: block; font-size: 11px; color: var(--night-text3); font-style: normal; margin-top: 1px; }

/* Chart conteneur - degrade de fond soigne */
.spectrum-chart {
    position: relative; width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    aspect-ratio: 1400/420;
    /* Degrade sombre elegant : nuit profonde avec touche bleue lointaine */
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59,130,246,0.08), transparent 70%),
        radial-gradient(ellipse 60% 80% at 85% 70%, rgba(239,68,68,0.06), transparent 60%),
        linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0a1628 100%);
}
/* Vignette subtile sur les bords pour donner de la profondeur */
.spectrum-chart::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
    pointer-events: none; z-index: 1;
}
.spec-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: fill;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
    z-index: 2;
}
.spec-img.is-visible { opacity: 1; }

/* Reperes verticaux aux longueurs d'onde cle (sous la zone plot) */
.spectrum-markers {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 16px; pointer-events: none;
}
.spectrum-markers .mk {
    position: absolute; top: 0;
    width: 2px; height: 10px; border-radius: 1px;
    transform: translateX(-50%);
}
.mk-blue    { background: #2563eb; box-shadow: 0 0 6px rgba(37,99,235,0.6); }
.mk-green   { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.6); }
.mk-orange  { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.6); }
.mk-red     { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.mk-darkred { background: #7f1d1d; box-shadow: 0 0 6px rgba(127,29,29,0.6); }
/* 2 boutons independants */
.spectrum-controls {
    display: flex; justify-content: center; gap: 14px;
    margin-top: 20px; flex-wrap: wrap;
    position: relative; z-index: 2;
}
.spectrum-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 99px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--night-text2);
    font-family: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.3s var(--ease);
    letter-spacing: 0.2px;
}
.spectrum-btn .btn-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #475569;
    transition: all 0.3s var(--ease);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.spectrum-btn:hover {
    transform: translateY(-1px);
    color: var(--night-text);
    border-color: rgba(255,255,255,0.2);
}

/* Bouton Horticole actif : bleu */
.btn-horti.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(37,99,235,0.1));
    border-color: rgba(59,130,246,0.6);
    color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(59,130,246,0.2);
}
.btn-horti.active .btn-dot {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59,130,246,0.8);
}

/* Bouton Classique actif : ambre */
.btn-classi.active {
    background: linear-gradient(135deg, rgba(251,191,36,0.16), rgba(245,158,11,0.1));
    border-color: rgba(251,191,36,0.55);
    color: #fde68a;
    box-shadow: 0 4px 16px rgba(251,191,36,0.18);
}
.btn-classi.active .btn-dot {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251,191,36,0.8);
}

/* Panneau ecart - s'anime avec la superposition */
.spectrum-diff {
    max-height: 0; overflow: hidden; opacity: 0;
    margin-top: 0;
    transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease), margin-top 0.4s var(--ease);
    position: relative; z-index: 2;
}
.spectrum-diff.active {
    max-height: 500px; opacity: 1;
    margin-top: 24px;
}
.diff-title {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: #fca5a5; margin-bottom: 18px; text-align: center;
}
.diff-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.diff-item {
    text-align: center; padding: 22px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
}
.diff-item:hover {
    background: rgba(239,68,68,0.05);
    border-color: rgba(239,68,68,0.3);
    transform: translateY(-2px);
}
.diff-value {
    font-size: 32px; font-weight: 900; letter-spacing: -1px;
    line-height: 1; margin-bottom: 8px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}
.diff-label {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--night-text); margin-bottom: 8px;
}
.diff-desc {
    font-size: 12.5px; color: var(--night-text2);
    line-height: 1.55;
}
@media (max-width: 768px) {
    .diff-grid { grid-template-columns: 1fr; }
    .spectrum-legend-unified { grid-template-columns: 1fr; }
}

/* Product photo */
.product-photo {
    border-radius: var(--radius-lg); overflow: hidden;
    margin-bottom: 32px; position: relative;
    border: 1px solid rgba(239,68,68,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 40px rgba(239,68,68,0.08);
}
.product-photo img {
    width: 100%; max-height: 440px; object-fit: cover;
}
.product-photo-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 28px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 14px; font-weight: 500; color: #e8ecf4;
}

/* Product showcase specs */
.product-showcase {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius-lg); padding: 40px;
    margin-bottom: 40px; position: relative; z-index: 2;
}
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 28px; }
.spec-group h4 {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--night-text3); margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--night-card-b);
}
.spec-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; font-size: 13.5px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: var(--night-text2); }
.spec-row strong { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--night-text); }
.spec-row.highlight {
    background: rgba(239,68,68,0.06);
    margin: 0 -12px; padding: 10px 12px; border-radius: 8px;
}
.spec-row .accent { color: #f87171; font-size: 16px; font-weight: 800; }
.product-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.04);
    font-size: 12px; color: var(--night-text2);
    border: 1px solid rgba(255,255,255,0.05);
}
.badge-icon {
    font-weight: 800; font-size: 11px; color: var(--night-text);
    background: linear-gradient(135deg, var(--red), var(--amber));
    padding: 4px 9px; border-radius: 5px;
}

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 2; }
.why-card {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius); padding: 28px 24px;
    transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.why-card::before {
    content: ''; position: absolute;
    top: -50%; right: -50%; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(239,68,68,0.12), transparent 70%);
    opacity: 0; transition: opacity 0.4s var(--ease);
}
.why-card:hover { border-color: rgba(239,68,68,0.25); transform: translateY(-3px); }
.why-card:hover::before { opacity: 1; }
.why-num {
    font-size: 36px; font-weight: 900;
    background: linear-gradient(135deg, rgba(239,68,68,0.5), rgba(251,146,60,0.3));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px; letter-spacing: -1.5px;
}
.why-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 2; }
.why-card p { font-size: 13px; color: var(--night-text2); line-height: 1.65; position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════
   LOGICIEL FRUTERASCAN (NUIT PROFONDE)
   ═══════════════════════════════════════════════════════════ */
#logiciel {
    position: relative; overflow: hidden;
}
#logiciel::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 15% 20%, rgba(59,130,246,0.1), transparent 60%),
        radial-gradient(ellipse 500px 400px at 85% 80%, rgba(6,182,212,0.08), transparent 60%);
    pointer-events: none;
}

/* Dashboard demo live */
.dashboard-demo {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius-lg); padding: 32px;
    margin-bottom: 48px; position: relative; overflow: hidden;
}
.dashboard-demo::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top left, rgba(59,130,246,0.06), transparent 50%);
    pointer-events: none;
}
.dashboard-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
    position: relative; z-index: 2;
}
.dashboard-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 16px; font-weight: 700;
}
.dashboard-title::before {
    content: ''; width: 10px; height: 10px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
    animation: pulse 1.5s ease-in-out infinite;
}
.dashboard-status {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; color: var(--green);
    text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 12px; border-radius: 99px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
}
.dashboard-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; position: relative; z-index: 2;
}
.widget {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--night-card-b);
    border-radius: 12px; padding: 18px;
    transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.widget:hover { background: rgba(255,255,255,0.04); border-color: rgba(59,130,246,0.2); }
.widget-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--night-text3);
    margin-bottom: 10px;
}
.widget-value {
    font-size: 28px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--night-text); line-height: 1;
    letter-spacing: -0.8px;
    transition: color 0.3s var(--ease);
}
.widget-unit {
    font-size: 14px; font-weight: 600;
    color: var(--night-text2); margin-left: 3px;
}
.widget-trend {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; margin-top: 6px;
    color: var(--green);
}
.widget-trend.down { color: var(--red); }
.widget-spark {
    height: 32px; margin-top: 10px;
    position: relative; overflow: hidden;
}
.widget-spark svg { width: 100%; height: 100%; }
.widget.temp .widget-value { color: #fb923c; }
.widget.hr .widget-value { color: var(--cyan); }
.widget.vpd .widget-value { color: var(--purple); }
.widget.dli .widget-value { color: var(--sun); }
.widget.drain .widget-value { color: var(--green); }
.widget-spark svg { overflow: visible; }
.spark-dot { transition: cx 0.5s cubic-bezier(0.16,1,0.3,1), cy 0.5s cubic-bezier(0.16,1,0.3,1); }

/* Sous-titre dashboard avec badge donnees reelles */
.dashboard-sub {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px; flex-wrap: wrap;
    position: relative; z-index: 2;
}
.data-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 99px;
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(6,182,212,0.1));
    border: 1px solid rgba(16,185,129,0.3);
    color: #6ee7b7;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
}
.data-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green-glow);
    animation: pulse 1.5s ease-in-out infinite;
}
.data-note { font-size: 11.5px; color: var(--night-text3); }
.status-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: var(--green);
    margin-right: 6px;
    box-shadow: 0 0 8px var(--green-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Status badge VPD (optimal / warning / critical) */
.widget-status {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 99px;
    text-transform: uppercase; letter-spacing: 0.8px;
    vertical-align: middle; margin-left: 6px;
}
.widget-status.ok { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.widget-status.warn { background: rgba(251,191,36,0.15); color: #fcd34d; border: 1px solid rgba(251,191,36,0.3); }
.widget-status.bad { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* Progression 24h */
.dashboard-progress {
    margin-top: 22px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative; z-index: 2;
}
.progress-track {
    width: 100%; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,0.05);
    overflow: hidden; position: relative;
}
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 25%, #fb923c 50%, #8b5cf6 75%, #1e3a8a 100%);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(251,191,36,0.4);
    transition: width 0.5s linear;
}
.progress-labels {
    display: flex; justify-content: space-between;
    font-size: 10px; font-weight: 600;
    color: var(--night-text3);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   MONITOR SCREEN - Mockup ecran de monitoring realiste
   ═══════════════════════════════════════════════════════════ */
.monitor-screen {
    margin-bottom: 48px; position: relative; z-index: 2;
    border-radius: 14px;
    overflow: hidden;
    background: #0a1322;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 2px 10px rgba(0,0,0,0.3);
}

/* Chrome fenetre */
.screen-chrome {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
    border-bottom: 1px solid rgba(0,0,0,0.3);
    height: 38px;
}
.traffic-lights { display: flex; gap: 7px; }
.tl { width: 12px; height: 12px; border-radius: 50%; display: block; }
.tl-red { background: #ff5f56; }
.tl-amber { background: #ffbd2e; }
.tl-green { background: #27c93f; }
.screen-url {
    flex: 1;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px;
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    font-size: 11.5px; color: var(--night-text2);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    max-width: 420px;
    margin: 0 auto;
}
.screen-actions { display: flex; gap: 6px; }
.sa-btn {
    width: 28px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 4px;
    color: var(--night-text3);
    font-size: 14px; cursor: pointer;
    transition: all 0.15s;
}
.sa-btn:hover { background: rgba(255,255,255,0.06); color: var(--night-text); }

/* Corps app - 3 colonnes */
.screen-body {
    display: grid;
    grid-template-columns: 220px 1fr 250px;
    gap: 0;
    min-height: 560px;
}

/* Sidebar gauche */
.screen-sidebar {
    background: rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 20px 12px;
    display: flex; flex-direction: column; gap: 18px;
}
.side-section {}
.side-title {
    font-size: 10px; font-weight: 700;
    color: var(--night-text3);
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 10px; padding: 0 10px;
}
.zone-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 13px; color: var(--night-text2);
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 3px;
}
.zone-item:hover { background: rgba(255,255,255,0.04); color: var(--night-text); }
.zone-item.active {
    background: linear-gradient(90deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
    border-left: 2px solid var(--blue);
    padding-left: 8px;
    color: var(--night-text);
}
.zone-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.zone-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.zone-dot.amber { background: var(--amber); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.zone-dot.red { background: var(--red); }
.zone-name { flex: 1; font-weight: 500; }
.zone-badge {
    font-size: 11.5px; font-weight: 700;
    color: var(--night-text2);
    font-variant-numeric: tabular-nums;
}
.zone-item.active .zone-badge { color: var(--blue); }
.side-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: 6px;
    font-size: 13px; color: var(--night-text2);
    cursor: pointer; transition: all 0.15s;
    margin-bottom: 2px;
}
.side-link:hover { background: rgba(255,255,255,0.04); color: var(--night-text); }
.side-link .count {
    background: rgba(255,255,255,0.06);
    padding: 2px 8px; border-radius: 10px;
    font-size: 10.5px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Main area */
.screen-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.main-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.main-title { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.main-sub { font-size: 12px; color: var(--night-text3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.main-tags { display: flex; gap: 8px; }
.live-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 99px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #6ee7b7;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
}
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Tabs navigation */
.tabs-nav {
    display: flex; gap: 2px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.04);
}
.tab-btn {
    flex: 1;
    padding: 8px 14px;
    background: transparent;
    border: none; border-radius: 6px;
    color: var(--night-text2);
    font-family: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer; transition: all 0.2s var(--ease);
}
.tab-btn:hover { color: var(--night-text); background: rgba(255,255,255,0.04); }
.tab-btn.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(6,182,212,0.12));
    color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}

/* Panels */
.tab-panel {
    display: none;
    flex-direction: column; gap: 14px;
    animation: panelFadeIn 0.3s var(--ease);
}
.tab-panel.active { display: flex; }
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Extra legend colors */
.cleg-drain span { background: var(--green); }
.cleg-ec span { background: #0ea5e9; }
.cleg-poids span { background: var(--amber); }

/* Grid cols */
.values-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.values-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Equip cards for pilotage tab */
.equip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.equip-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s var(--ease);
}
.equip-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
.equip-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.equip-icon {
    width: 38px; height: 38px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.equip-head > div:nth-child(2) { flex: 1; min-width: 0; }
.equip-name { font-size: 13px; font-weight: 700; color: var(--night-text); line-height: 1.2; }
.equip-sub { font-size: 11px; color: var(--night-text3); margin-top: 2px; }
.equip-state {
    padding: 4px 10px; border-radius: 99px;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    background: rgba(100,116,139,0.15);
    color: #64748b;
    border: 1px solid rgba(100,116,139,0.3);
}
.equip-state.on {
    background: rgba(16,185,129,0.18);
    color: #34d399;
    border-color: rgba(16,185,129,0.4);
    box-shadow: 0 0 8px rgba(16,185,129,0.25);
    animation: equipPulse 2s ease-in-out infinite;
}
.equip-state.off {
    background: rgba(100,116,139,0.12);
    color: #64748b;
    border-color: rgba(100,116,139,0.25);
}
.equip-state.static {
    background: rgba(59,130,246,0.12);
    color: #93c5fd;
    border-color: rgba(59,130,246,0.3);
}
@keyframes equipPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(16,185,129,0.25); }
    50%      { box-shadow: 0 0 16px rgba(16,185,129,0.5); }
}
.equip-info {
    display: flex; flex-direction: column; gap: 6px;
}
.equip-info > div {
    display: flex; justify-content: space-between;
    font-size: 12px;
}
.equip-info span { color: var(--night-text3); }
.equip-info strong {
    color: var(--night-text); font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
    .values-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
    .equip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .values-grid.cols-4, .values-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
    .equip-grid { grid-template-columns: 1fr; }
    .tabs-nav { flex-wrap: wrap; }
}

/* Graphique */
.chart-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 16px 18px;
}
.chart-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; flex-wrap: wrap; gap: 10px;
}
.chart-title { font-size: 14px; font-weight: 700; color: var(--night-text); }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; }
.cleg {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--night-text2);
}
.cleg span {
    width: 18px; height: 2.5px; border-radius: 1px;
    display: inline-block;
}
.cleg-temp span { background: #fb923c; }
.cleg-hr span { background: var(--cyan); }
.cleg-vpd span { background: var(--purple); }
.main-chart {
    display: block;
    width: 100%; height: auto;
    aspect-ratio: 1000/340;
}

/* Valeurs grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.val-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 9px;
    transition: all 0.2s;
}
.val-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.vc-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.vc-temp .vc-icon { background: rgba(251,146,60,0.12); color: #fb923c; }
.vc-hr .vc-icon { background: rgba(6,182,212,0.12); color: var(--cyan); }
.vc-vpd .vc-icon { background: rgba(139,92,246,0.12); color: var(--purple); }
.vc-drain .vc-icon { background: rgba(16,185,129,0.12); color: var(--green); }
.vc-ec .vc-icon { background: rgba(14,165,233,0.12); color: #0ea5e9; }
.vc-sub .vc-icon { background: rgba(132,204,22,0.12); color: #84cc16; }
.vc-body { flex: 1; min-width: 0; }
.vc-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--night-text3); margin-bottom: 2px;
}
.vc-value {
    font-size: 18px; font-weight: 800;
    color: var(--night-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.vc-value span {
    font-size: 11px; font-weight: 500;
    color: var(--night-text2); margin-left: 2px;
}

/* Sidebar alertes */
.screen-alerts {
    background: rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.05);
    padding: 20px 14px;
}
.screen-alerts .side-title { padding: 0; margin-bottom: 12px; }
.alert-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px; border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 8px;
}
.alert-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0; margin-top: 4px;
}
.alert-item.ok .alert-dot { background: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.alert-item.info .alert-dot { background: var(--blue); box-shadow: 0 0 6px var(--blue-glow); }
.alert-item.warn .alert-dot { background: var(--amber); box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.alert-item.bad .alert-dot { background: var(--red); }
.alert-item strong {
    display: block;
    font-size: 12.5px; font-weight: 700;
    color: var(--night-text);
    margin-bottom: 2px;
}
.alert-item span {
    font-size: 11px; color: var(--night-text2);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .screen-body { grid-template-columns: 180px 1fr; }
    .screen-alerts { display: none; }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .screen-body { grid-template-columns: 1fr; min-height: auto; }
    .screen-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 14px; flex-direction: row; overflow-x: auto; }
    .side-section:nth-child(2) { display: none; }
    .screen-url { display: none; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Feature highlight capteurs */
.feature-highlight {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.04));
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: var(--radius-lg); padding: 44px 40px; margin-bottom: 40px;
    position: relative; overflow: hidden; z-index: 2;
}
.feature-highlight::before {
    content: ''; position: absolute;
    top: -100px; right: -100px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.12), transparent 60%);
    pointer-events: none;
}
.fh-tag {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--cyan); margin-bottom: 10px;
}
.fh-content h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.6px; }
.fh-content > p { font-size: 15px; color: var(--night-text2); line-height: 1.7; margin-bottom: 28px; max-width: 680px; }
.sensor-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    position: relative; z-index: 2;
}
.sensor-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s var(--ease);
}
.sensor-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(59,130,246,0.25);
    transform: translateY(-2px);
}
.sensor-item svg {
    width: 22px; height: 22px; flex-shrink: 0;
    color: var(--cyan); margin-top: 2px;
}
.sensor-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.sensor-item span { font-size: 12px; color: var(--night-text2); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════
   SCREENSHOTS CAROUSEL (NUIT)
   ═══════════════════════════════════════════════════════════ */
.screenshots-section {
    margin-bottom: 48px; position: relative; z-index: 2;
}
.screenshots-header { margin-bottom: 24px; text-align: center; }
.screenshots-header h3 { font-size: 24px; font-weight: 800; margin-top: 8px; letter-spacing: -0.5px; }
.screenshots-carousel {
    position: relative; border-radius: var(--radius-lg);
    overflow: hidden; background: #000;
    border: 1px solid var(--night-card-b);
    aspect-ratio: 16/8.5;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(59,130,246,0.08);
    transform-style: preserve-3d;
    perspective: 1400px;
}
.screenshot-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.6s var(--ease);
    display: flex; flex-direction: column;
}
.screenshot-slide.active { opacity: 1; z-index: 1; }
.screenshot-slide img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.screenshot-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 28px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    font-size: 14px; font-weight: 500; color: var(--night-text2);
}
.screenshots-nav {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    margin-top: 20px;
}
.ss-prev, .ss-next {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--night-card);
    border: 1px solid var(--night-card-b);
    color: var(--night-text); font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s var(--ease);
}
.ss-prev:hover, .ss-next:hover {
    background: var(--night-card-hover);
    border-color: var(--blue); color: var(--blue);
    transform: scale(1.05);
}
.ss-dots { display: flex; gap: 8px; }
.ss-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.15); cursor: pointer;
    transition: all 0.3s var(--ease);
}
.ss-dot.active {
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue-glow);
    width: 28px; border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   MODULES GRID avec effet glow souris
   ═══════════════════════════════════════════════════════════ */
.modules-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-bottom: 48px; position: relative; z-index: 2;
}
.module-card {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius); padding: 30px 26px;
    transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
    cursor: default;
}
.module-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent, #3b82f6), transparent);
    opacity: 0; transition: opacity 0.3s var(--ease);
}
/* Glow qui suit la souris */
.module-card::after {
    content: '';
    position: absolute;
    top: var(--my, 50%); left: var(--mx, 50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--glow-color, rgba(59,130,246,0.15)), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0; transition: opacity 0.3s var(--ease);
    pointer-events: none;
}
.module-card:hover {
    background: var(--night-card-hover);
    border-color: rgba(59,130,246,0.2);
    transform: translateY(-3px);
}
.module-card:hover::before { opacity: 1; }
.module-card:hover::after { opacity: 1; }
.module-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; position: relative; z-index: 2;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 20%, transparent);
}
.module-icon svg { width: 24px; height: 24px; }
.module-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 2; }
.module-card p { font-size: 13px; color: var(--night-text2); line-height: 1.65; position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════
   INTERFACE SECTION
   ═══════════════════════════════════════════════════════════ */
.interface-section { position: relative; z-index: 2; }
.interface-header { margin-bottom: 28px; text-align: center; }
.interface-header h3 { font-size: 24px; font-weight: 800; margin-top: 8px; letter-spacing: -0.5px; }
.interface-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.interface-card {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius); padding: 28px 22px; text-align: center;
    transition: all 0.3s var(--ease);
}
.interface-card:hover {
    background: var(--night-card-hover);
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.2);
}
.if-icon { margin-bottom: 14px; color: var(--blue); }
.if-icon svg { width: 30px; height: 30px; margin: 0 auto; }
.interface-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.interface-card p { font-size: 12.5px; color: var(--night-text2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   TIMELINE "Comment ca marche" (NUIT)
   ═══════════════════════════════════════════════════════════ */
.timeline-section {
    position: relative; z-index: 2;
    margin: 60px 0;
}
.timeline {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; position: relative;
}
.timeline::before {
    content: ''; position: absolute;
    top: 34px; left: 8%; right: 8%; height: 2px;
    background: linear-gradient(90deg,
        transparent, var(--blue), var(--cyan), var(--green), transparent);
    opacity: 0.4;
}
.timeline-step {
    text-align: center; position: relative;
    padding: 0 12px;
}
.timeline-num {
    width: 68px; height: 68px; border-radius: 50%;
    margin: 0 auto 20px; display: flex;
    align-items: center; justify-content: center;
    background: var(--night-bg);
    border: 2px solid var(--blue);
    font-size: 22px; font-weight: 800;
    color: var(--blue);
    box-shadow: 0 0 30px rgba(59,130,246,0.3), inset 0 0 20px rgba(59,130,246,0.05);
    position: relative; z-index: 2;
    font-variant-numeric: tabular-nums;
}
.timeline-step:nth-child(2) .timeline-num { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 30px rgba(6,182,212,0.3); }
.timeline-step:nth-child(3) .timeline-num { border-color: var(--green); color: var(--green); box-shadow: 0 0 30px rgba(16,185,129,0.3); }
.timeline-step:nth-child(4) .timeline-num { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 30px rgba(251,191,36,0.3); }
.timeline-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.timeline-step p { font-size: 13px; color: var(--night-text2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   SCIENCE (NUIT profonde)
   ═══════════════════════════════════════════════════════════ */
#science { position: relative; overflow: hidden; }
#science::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.25), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.2), transparent);
    background-size: 100% 100%;
    pointer-events: none;
    opacity: 0.6;
}
.science-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    position: relative; z-index: 2;
}
.science-card {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius); padding: 32px 28px;
    transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.science-card:hover {
    background: var(--night-card-hover);
    border-color: rgba(139,92,246,0.25);
    transform: translateY(-3px);
}
.sc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sc-icon {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0;
}
.sc-icon.vpd { background: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }
.sc-icon.phyto { background: var(--red); box-shadow: 0 0 12px var(--red-glow); }
.sc-icon.light { background: var(--sun); box-shadow: 0 0 12px var(--sun-glow); }
.sc-icon.irrig { background: var(--cyan); box-shadow: 0 0 12px var(--cyan-glow); }
.sc-icon.climat { background: var(--green); box-shadow: 0 0 12px var(--green-glow); }
.sc-icon.nutri { background: var(--purple); box-shadow: 0 0 12px rgba(139,92,246,0.4); }
.sc-header h4 { font-size: 15px; font-weight: 700; }
.sc-models, .sc-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sc-models span, .sc-metrics span {
    padding: 4px 11px; border-radius: 99px;
    font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.06);
    color: var(--night-text2);
    border: 1px solid rgba(255,255,255,0.06);
}
.science-card p { font-size: 13px; color: var(--night-text2); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   PROTOCOLES (NUIT)
   ═══════════════════════════════════════════════════════════ */
.proto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 2; }
.proto-item {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius-sm); padding: 22px 20px;
    transition: all 0.25s var(--ease);
}
.proto-item:hover {
    background: var(--night-card-hover);
    border-color: rgba(59,130,246,0.2);
    transform: translateY(-2px);
}
.proto-item strong { display: block; font-size: 15px; margin-bottom: 6px; font-weight: 700; }
.proto-item span { font-size: 12.5px; color: var(--night-text2); }

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION (NUIT)
   ═══════════════════════════════════════════════════════════ */
.faq-wrap { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.faq-item {
    background: var(--night-card);
    border: 1px solid var(--night-card-b);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: all 0.3s var(--ease);
    overflow: hidden;
}
.faq-item.open {
    background: var(--night-card-hover);
    border-color: rgba(59,130,246,0.25);
}
.faq-q {
    width: 100%; padding: 20px 24px;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; text-align: left;
    color: var(--night-text);
    font-size: 15px; font-weight: 600;
    transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(59,130,246,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s var(--ease);
    color: var(--blue); font-size: 16px; font-weight: 700;
}
.faq-item.open .faq-icon {
    background: var(--blue); color: #fff;
    transform: rotate(45deg);
}
.faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
    padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 24px 20px; }
.faq-a p { font-size: 14px; color: var(--night-text2); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   CONTACT (DAWN - retour vers le jour)
   ═══════════════════════════════════════════════════════════ */
#contact {
    background: linear-gradient(180deg,
        var(--night-bg) 0%,
        #1e293b 30%,
        #64748b 60%,
        var(--day-bg2) 100%);
    color: var(--day-text);
}
#contact .section-header h2 { color: var(--day-text); }
#contact .section-header p { color: var(--day-text2); }
.contact-form { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--day-text2); margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 13px 18px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(15,23,42,0.1);
    color: var(--day-text); font-family: inherit; font-size: 14px;
    transition: all 0.25s var(--ease);
    backdrop-filter: blur(10px);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--day-text3); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { text-align: center; padding: 48px 0; }
.form-success .success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(16,185,129,0.12); color: var(--green);
    font-size: 32px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(16,185,129,0.3);
}
.form-success h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--day-text2); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    padding: 44px 0 36px;
    background: var(--day-bg2);
    border-top: 1px solid rgba(15,23,42,0.06);
}
.footer-inner {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: 'Lobster', cursive; font-size: 20px; font-weight: 400; display: block; color: var(--day-text); }
.footer-tagline { font-size: 11.5px; color: var(--day-text3); display: block; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-links a {
    font-size: 13px; color: var(--day-text2);
    transition: color 0.2s var(--ease);
    font-weight: 500;
}
.footer-links a:hover { color: var(--blue); }
.footer-company { text-align: right; }
.footer-copy { font-size: 12px; color: var(--day-text3); margin-bottom: 3px; }
.footer-siret { font-size: 11px; color: var(--day-text3); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════ */
.legal-page {
    padding: 130px 0 80px; min-height: 80vh;
    background: var(--day-bg);
    color: var(--day-text);
}
.legal-header {
    text-align: center; max-width: 760px; margin: 0 auto 56px;
    padding-bottom: 36px; border-bottom: 1px solid rgba(15,23,42,0.08);
}
.legal-header h1 {
    font-size: clamp(32px, 4.5vw, 44px); font-weight: 800;
    letter-spacing: -1px; margin-bottom: 14px; line-height: 1.2;
}
.legal-update { font-size: 12.5px; color: var(--day-text3); font-style: italic; }
.legal-section { max-width: 820px; margin: 0 auto 40px; }
.legal-section h2 {
    font-size: 22px; font-weight: 700;
    margin-bottom: 16px; color: var(--day-text);
    padding-left: 16px;
    border-left: 3px solid var(--blue);
    line-height: 1.3;
}
.legal-section p {
    font-size: 15px; line-height: 1.75;
    color: var(--day-text2); margin-bottom: 14px;
}
.legal-section p strong { color: var(--day-text); font-weight: 600; }
.legal-section a {
    color: var(--blue); text-decoration: underline;
    text-decoration-color: rgba(59,130,246,0.3);
    text-underline-offset: 3px; transition: color 0.2s;
}
.legal-section a:hover { color: var(--cyan); }
.legal-list { list-style: none; padding: 0; margin: 14px 0; }
.legal-list li {
    font-size: 14.5px; line-height: 1.7;
    color: var(--day-text2);
    padding: 8px 0 8px 22px; position: relative;
    border-bottom: 1px dashed rgba(15,23,42,0.06);
}
.legal-list li:last-child { border-bottom: none; }
.legal-list li::before {
    content: '▸'; position: absolute; left: 0; top: 8px;
    color: var(--blue); font-size: 13px;
}
.legal-list li strong { color: var(--day-text); font-weight: 600; }
.legal-highlight {
    background: rgba(59,130,246,0.06);
    border-left: 3px solid var(--blue);
    padding: 16px 20px; border-radius: 8px;
    margin: 18px 0 !important;
}
.cookie-table-wrap {
    overflow-x: auto; margin: 18px 0;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15,23,42,0.08);
}
.cookie-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cookie-table thead { background: rgba(59,130,246,0.06); }
.cookie-table th {
    padding: 14px 16px; text-align: left; font-weight: 700;
    color: var(--day-text); font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(15,23,42,0.08);
}
.cookie-table td {
    padding: 13px 16px; color: var(--day-text2);
    border-bottom: 1px solid rgba(15,23,42,0.04);
    vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code {
    background: rgba(15,23,42,0.06); padding: 2px 7px;
    border-radius: 4px; font-family: 'Courier New', monospace;
    font-size: 12px; color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════
   ERROR PAGE 404
   ═══════════════════════════════════════════════════════════ */
.error-page {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    padding: 40px 24px; text-align: center;
    background:
        radial-gradient(ellipse 800px 600px at 50% 30%, rgba(59,130,246,0.08), transparent),
        var(--day-bg);
}
.error-content { max-width: 480px; }
.error-code {
    font-size: clamp(90px, 16vw, 160px); font-weight: 900;
    line-height: 1; letter-spacing: -5px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #10b981);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 20px;
}
.error-content h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.error-content p { font-size: 16px; color: var(--day-text2); margin-bottom: 32px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   FADE IN
   ═══════════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .two-cols { grid-template-columns: 1fr; }
    .why-grid, .sensor-grid, .modules-grid,
    .science-grid, .interface-grid, .proto-grid,
    .stats-grid, .timeline, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { display: none; }
    .product-specs { grid-template-columns: 1fr; }
    .hero-sun { width: 120px; height: 120px; right: 5%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: fixed; top: 68px; left: 0; right: 0;
        background: rgba(248,250,252,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column; padding: 26px; gap: 22px;
        border-bottom: 1px solid rgba(15,23,42,0.08);
    }
    .nav.night-mode .nav-links {
        background: rgba(10,22,40,0.98);
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 16px; }
    .nav-links a::after { display: none; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

    .hero { padding: 110px 20px 70px; }
    .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
    .hero-sub { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .hero-sun { width: 80px; height: 80px; top: 12%; right: -5%; opacity: 0.7; }

    .section { padding: 70px 0; }
    .section-header { margin-bottom: 40px; }

    .stats-grid, .why-grid, .sensor-grid, .modules-grid,
    .science-grid, .interface-grid, .proto-grid,
    .timeline, .dashboard-grid { grid-template-columns: 1fr; }

    .feature-highlight { padding: 28px 22px; }
    .product-showcase { padding: 26px 22px; }
    .spectrum-section, .dashboard-demo { padding: 24px 18px; }

    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .footer-brand { justify-content: center; }
    .footer-company { text-align: center; }

    .legal-section h2 { font-size: 18px; }
    .legal-section p, .legal-list li { font-size: 14px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero { padding: 100px 18px 60px; }
}

/* ═══════════════════════════════════════════════════════════
   DEEP-DIVE SECTIONS (dans #logiciel, ambiance nuit)
   ═══════════════════════════════════════════════════════════ */
.deep-dive { margin: 100px 0; padding: 40px 0; position: relative; }
.deep-dive + .deep-dive { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 100px; }
.deep-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.deep-tag {
    display: inline-block; padding: 6px 14px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 999px; color: #60a5fa;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; margin-bottom: 18px;
}
.deep-irrig .deep-tag { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #34d399; }
.deep-piloto .deep-tag { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.3); color: #a78bfa; }
.deep-head h3 {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    letter-spacing: -1px; line-height: 1.15;
    color: var(--night-text); margin-bottom: 18px;
}
.deep-head p { font-size: 17px; line-height: 1.7; color: var(--night-text2); }

/* Climat viz jour/nuit */
.climat-viz {
    max-width: 1100px; margin: 0 auto 72px;
    background: linear-gradient(180deg, rgba(251,191,36,0.04) 0%, rgba(99,102,241,0.06) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 28px 36px 24px; position: relative;
}
.cviz-label-top { display: flex; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.ck-tag { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: 0.8px; text-transform: uppercase; }
.ck-day { background: rgba(251,191,36,0.18); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.ck-night { background: rgba(99,102,241,0.18); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.climat-curve { width: 100%; height: 220px; display: block; }
.cviz-caption { text-align: center; font-size: 13px; color: var(--night-text2); font-style: italic; margin-top: 8px; }

/* Section Capteurs & sondes */
.sensors-section {
    max-width: 920px; margin: 90px auto 72px;
    padding: 40px 36px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
}
.sensors-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.sensors-head h3 {
    font-size: 26px; font-weight: 800;
    letter-spacing: -0.5px; color: var(--night-text);
    margin: 12px 0 10px;
}
.sensors-head p { font-size: 14.5px; line-height: 1.6; color: var(--night-text2); }
.sensors-list {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px 20px;
}
.sensors-list li {
    padding: 10px 0 10px 20px;
    position: relative;
    font-size: 13.5px;
    color: var(--night-text);
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.sensors-list li::before {
    content: '';
    position: absolute; left: 0; top: 17px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #60a5fa;
    opacity: 0.7;
}

/* Header helpers pour sections */
.feat-head { text-align: center; margin-bottom: 32px; }
.feat-head h4, .sb-head h4, .fv-head h4 {
    font-size: 22px; font-weight: 800; color: var(--night-text);
    letter-spacing: -0.3px; margin-top: 10px;
}

/* Liste simple pour deep-dives (climat / irrigation / pilotage) */
.simple-list {
    list-style: none; padding: 0; margin: 0 auto;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.simple-list li {
    padding: 16px 4px 16px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--night-text);
    font-size: 15.5px;
    font-weight: 500;
    position: relative;
    transition: background 0.2s;
}
.simple-list li::before {
    content: '';
    position: absolute; left: 2px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52,211,153,0.4);
}
.simple-list li:hover {
    background: rgba(255,255,255,0.02);
}

/* Liste fonctions essentielles (sobre, sans gros icones) */
.fn-section { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.fn-section .section-tag { margin-bottom: 18px; }
.fn-list {
    list-style: none; padding: 0; margin: 0;
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
}
.fn-list li {
    padding: 14px 0 14px 24px;
    position: relative;
    font-size: 14.5px;
    color: var(--night-text2);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fn-list li:last-child { border-bottom: none; }
.fn-list li::before {
    content: '';
    position: absolute; left: 0; top: 21px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px rgba(52,211,153,0.6);
}
.fn-list strong {
    color: var(--night-text);
    font-weight: 700;
    margin-right: 6px;
}
.fn-list li span {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--night-text2);
}
.fn-list-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 24px;
    max-width: 960px;
    margin: 0 auto;
}
.fn-list-3 li {
    border-bottom: none;
    padding: 12px 0 12px 20px;
}
.fn-list-3 li::before { top: 19px; }

/* Irrigation visu */
.irrig-viz {
    max-width: 1100px; margin: 0 auto 72px;
    background: rgba(16,185,129,0.04);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: var(--radius-lg);
    padding: 26px 30px 22px;
}
.iv-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.iv-title { font-size: 14px; color: var(--night-text); font-weight: 700; }
.iv-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.iv-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--night-text2); font-weight: 600; }
.iv-leg span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.iv-weight span { background: #10b981; }
.iv-cycle span { background: #06b6d4; }
.iv-drain span { background: #fbbf24; }
.irrig-curve { width: 100%; height: 260px; display: block; }
.iv-foot {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px; margin-top: 8px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.iv-stat { text-align: center; }
.iv-stat strong {
    display: block; font-size: 22px; font-weight: 800;
    color: #10b981; font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px; margin-bottom: 4px;
}
.iv-stat em { font-style: normal; font-size: 12px; color: var(--night-text2); letter-spacing: 0.3px; }

/* Features grid */
.feat-section, .ferti-section { max-width: 1200px; margin: 0 auto 72px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.feat-grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feat-card {
    background: var(--night-card); border: 1px solid var(--night-card-b);
    border-radius: var(--radius); padding: 20px 22px;
    transition: all 0.3s var(--ease);
}
.feat-card:hover { transform: translateY(-2px); background: var(--night-card-hover); border-color: rgba(255,255,255,0.14); }
.fc-head {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: var(--night-text); margin-bottom: 10px;
}
.fc-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.feat-card p { font-size: 13px; color: var(--night-text2); line-height: 1.55; margin: 0; }


/* Scenario builder */
.scenario-builder { max-width: 1100px; margin: 0 auto 72px; text-align: center; }
.sb-frame {
    display: inline-block; text-align: left;
    background: rgba(139,92,246,0.04);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: var(--radius-lg);
    padding: 30px 32px; min-width: 320px; max-width: 100%;
}
.sb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.sb-badge {
    font-size: 11px; font-weight: 800; padding: 5px 11px;
    border-radius: 6px; letter-spacing: 1px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.sb-if { background: rgba(59,130,246,0.2); color: #60a5fa; }
.sb-then { background: rgba(139,92,246,0.2); color: #a78bfa; }
.sb-check { background: rgba(16,185,129,0.2); color: #34d399; }
.sb-chip {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px; border-radius: 8px;
    font-size: 13px; color: var(--night-text); font-weight: 500;
}
.sb-chip.sb-act { border-color: rgba(139,92,246,0.3); color: #c4b5fd; }
.sb-chip.sb-ok {
    border-color: rgba(16,185,129,0.3);
    color: #6ee7b7; background: rgba(16,185,129,0.08);
}
.sb-chip.sb-ok::before { content: '\2713 '; font-weight: 900; color: #10b981; }
.sb-op, .sb-and, .sb-plus {
    font-size: 13px; font-weight: 700; color: var(--night-text3);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.sb-and, .sb-plus { color: #60a5fa; font-size: 12px; }
.sb-val { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: #fbbf24; font-weight: 700; }
.sb-arrow { text-align: center; font-size: 20px; color: var(--night-text3); padding: 4px 0; }
.sb-caption { font-size: 13px; color: var(--night-text2); max-width: 720px; margin: 20px auto 0; line-height: 1.6; font-style: italic; }

/* Filtration synoptique */
.filtration-viz { max-width: 1200px; margin: 0 auto 72px; }
.filt-synoptique {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    padding: 40px 24px;
    background: linear-gradient(180deg, rgba(6,182,212,0.05) 0%, rgba(139,92,246,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow-x: auto; flex-wrap: wrap;
}
.fs-block { flex: 1; min-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.fs-label { font-size: 11px; color: var(--night-text3); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; }
.fs-caption {
    font-size: 11.5px; color: var(--night-text2);
    font-weight: 500; text-align: center; line-height: 1.35;
    max-width: 120px;
}
.fs-out-icon {
    width: 56px; height: 66px;
    display: flex; align-items: center; justify-content: center;
    color: #22d3ee;
}
.fs-out-icon svg { width: 40px; height: 40px; opacity: 0.7; }
.fs-tank {
    width: 56px; height: 70px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px 6px 10px 10px;
    position: relative; overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.fs-tank-fill {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, #06b6d4 0%, #0e7490 100%);
    transition: height 0.5s ease;
}
.fs-pump {
    width: 48px; height: 48px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #34d399 0%, #0e7a47 80%);
    position: relative; box-shadow: 0 0 14px rgba(16,185,129,0.35);
    display: flex; align-items: center; justify-content: center;
}
.fs-rotor {
    width: 32px; height: 32px;
    border: 3px solid #fff; border-top-color: transparent;
    border-radius: 50%; display: block;
    animation: spin 1.2s linear infinite;
}
.fs-pump.active::after {
    content: ''; position: absolute; inset: -4px;
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 50%;
    animation: pulsePing 2s ease-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulsePing { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.fs-filter {
    width: 56px; height: 66px;
    background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
    border-radius: 4px; border: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; justify-content: space-evenly; align-items: center;
    padding: 4px; position: relative;
}
.fs-grain {
    width: 40px; height: 8px;
    background: linear-gradient(90deg, #92400e 0%, #d97706 50%, #92400e 100%);
    border-radius: 3px; opacity: 0.7;
}
.fs-ozone {
    width: 56px; height: 66px;
    background: linear-gradient(180deg, rgba(139,92,246,0.3) 0%, rgba(139,92,246,0.1) 100%);
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 6px; position: relative; overflow: hidden;
}
.fs-bubble {
    position: absolute; width: 8px; height: 8px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(167,139,250,0.4) 100%);
    border-radius: 50%;
    animation: bubbleUp 3s ease-in-out infinite;
}
.fs-bubble:nth-child(1) { left: 10px; animation-delay: 0s; }
.fs-bubble:nth-child(2) { left: 26px; animation-delay: 1s; }
.fs-bubble:nth-child(3) { left: 42px; animation-delay: 2s; }
@keyframes bubbleUp {
    0% { bottom: -10px; opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; }
    100% { bottom: 70px; opacity: 0; transform: scale(1.2); }
}
.fs-pipe {
    width: 30px; height: 4px;
    background: linear-gradient(90deg, rgba(6,182,212,0.1) 0%, rgba(6,182,212,0.4) 50%, rgba(6,182,212,0.1) 100%);
    background-size: 20px 4px; border-radius: 2px;
    align-self: center; margin-top: 10px;
    position: relative; flex-shrink: 0;
}
.fs-pipe.fs-flow::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(6,182,212,0.9) 50%, transparent 100%);
    animation: flow 2s linear infinite;
}
@keyframes flow { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.fv-head { text-align: center; margin-bottom: 28px; }
.filt-legend { display: flex; justify-content: center; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.fl-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--night-text2); font-weight: 600; }
.fl-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }

@media (max-width: 768px) {
    .deep-dive { margin: 64px 0; padding: 24px 0; }
    .deep-dive + .deep-dive { padding-top: 64px; }
    .filt-synoptique { padding: 24px 12px; gap: 10px; justify-content: center; }
    .fs-pipe { width: 18px; }
    .metric-grid, .pc-grid, .feat-grid, .feat-grid-4 { grid-template-columns: 1fr; }
    .sb-row { padding: 6px 0; }
    .sb-chip, .sb-val { font-size: 12px; padding: 4px 9px; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX SCREENSHOTS
   ═══════════════════════════════════════════════════════════ */
.screenshots-carousel img { cursor: zoom-in; transition: transform 0.3s var(--ease); }
.screenshots-carousel img:hover { transform: scale(1.01); }
.screenshots-hint {
    text-align: center; margin-top: 14px;
    font-size: 12px; color: var(--night-text3);
    font-style: italic;
    opacity: 0.7;
}
.lightbox {
    position: fixed; inset: 0;
    background: rgba(3,8,17,0.92);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
    animation: lbFadeIn 0.2s ease-out;
}
.lightbox.open { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-inner {
    max-width: 92vw; max-height: 88vh;
    display: flex; flex-direction: column;
    align-items: center; gap: 16px;
}
.lb-inner img {
    max-width: 92vw; max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.lb-caption {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    color: #e2e8f0;
    max-width: 80vw;
    text-align: center;
}
.lb-close, .lb-prev, .lb-next {
    position: fixed;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}
.lb-close {
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    font-size: 24px; font-weight: 300;
}
.lb-prev, .lb-next {
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 28px; font-weight: 400;
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    transform: scale(1.08);
}
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 600px) {
    .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 22px; }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 20px; }
}

/* Modules-section enrichi */
.modules-section { max-width: 1200px; margin: 80px auto 72px; }
.modules-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.modules-head h3 {
    font-size: clamp(26px, 3.6vw, 36px); font-weight: 800;
    letter-spacing: -0.8px; line-height: 1.2;
    color: var(--night-text); margin: 14px 0;
}
.modules-head p { font-size: 16px; color: var(--night-text2); line-height: 1.65; }
.module-feats {
    list-style: none; padding: 0; margin: 16px 0 0;
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 2px;
}
.module-feats li {
    font-size: 13px; line-height: 1.55;
    color: var(--night-text2);
    padding: 6px 0 6px 24px;
    position: relative;
}
.module-feats li::before {
    content: '';
    position: absolute; left: 0; top: 11px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background-color: var(--accent, #60a5fa);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 9px 9px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.92;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #60a5fa) 12%, transparent);
}
.module-card { --accent: #60a5fa; }
.module-card[data-accent="#f59e0b"] { --accent: #f59e0b; }
.module-card[data-accent="#10b981"] { --accent: #10b981; }
.module-card[data-accent="#8b5cf6"] { --accent: #8b5cf6; }
.module-card[data-accent="#ef4444"] { --accent: #ef4444; }
.module-card[data-accent="#ec4899"] { --accent: #ec4899; }
.module-card[data-accent="#14b8a6"] { --accent: #14b8a6; }
.module-card[data-accent="#f97316"] { --accent: #f97316; }
.module-card[data-accent="#0ea5e9"] { --accent: #0ea5e9; }

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
