/* ============================
   Gustav Cyber — UI (Dark Brand)
   ============================ */

/* 0) Tokens – Palette */
:root {
    /* Brand */
    --bg: #0b1220;
    /* fond global (bleu-marine) */
    --panel: #10192d;
    /* cartes/panneaux */
    --line: rgba(255, 255, 255, .08);

    --text: #f6f9fc;
    /* texte principal clair */
    --muted: #a8b6c9;
    /* texte secondaire (lisible aa) */

    --accent: #00e0ff;
    /* cyan Gustav */
    --accent-2: #7b61ff;
    /* violet Gustav */

    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 224, 255, .10);

    --logo-size: 60px;
    --logo-size-sm: 60px;
    --footer-logo: 52px;
    --header-h: 88px;

    --ok: #10b981;
    --bad: #ef4444;
}

/* 1) Base */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    scroll-behavior: smooth
}

[id] {
    scroll-margin-top: calc(var(--header-h) + 6px)
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: "Poppins", system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(0, 224, 255, .08), transparent 60%),
        radial-gradient(900px 500px at 95% 0%, rgba(123, 97, 255, .06), transparent 60%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 10vh;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: 90%;
    margin: auto;
    padding: 0px 15px 0px 15px;
}

.center {
    text-align: center
}

.muted {
    color: var(--muted)
}

.small {
    font-size: .9rem
}

/* 2) Background canvas */
.behind {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

.bg-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--bg)
}

header,
main,
section,
footer {
    position: relative;
    z-index: 1
}

/* 3) Header / Nav */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid rgba(11, 18, 32, .08);
}

.header__inner {
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto; /* logo | centre | nav/burger */
    align-items: center;
}

.brand--logo-only {
    justify-self: start;
}

.brand__img {
    height: var(--logo-size);
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    justify-self: end;
}

.nav a {
    color: #e8f5ff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
    text-decoration: none;
    padding: 4px 6px;
    font-size: 18px;
}

.nav a:hover,
.nav a.active {
    color: #001321;
    background: rgba(0, 224, 255, .18);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0, 224, 255, .35) inset;
}

/* === Nouveau bouton Sections (centré) === */
.header-center {
    justify-self: center;
    position: relative;
}

.sections-button {
    background: transparent;
    border: 0;
    font-size: 18px;
    font-family: "Poppins", system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: #0b1220;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .2s;
}

.sections-button:hover {
    background: rgba(0,224,255,0.1);
}

.sections-button .caret {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Menu dropdown des sections */
.sections-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    padding: 6px 0;
}

.sections-menu.open {
    display: block;
}

.sections-menu a {
    display: block;
    padding: 8px 14px;
    color: #0b1220;
    text-decoration: none;
    white-space: nowrap;
}

.sections-menu a:hover {
    background: rgba(0,224,255,0.12);
    color: var(--accent);
}

.sections-menu a.active {
    font-weight: bold;
    color: var(--accent);
}

.nav-sections {
  display: none; /* caché en desktop */
}

@media (max-width:960px) {
  .nav-sections {
    display: block; /* visible uniquement dans le burger */
  }
}

/* Burger */
.burger {
    display: none;
    background: #d3d3d3;
    border: 0;
    cursor: pointer;
    border-radius: 6px;
    justify-self: end;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0b1220;
    margin: 5px 0;
    transition: .2s;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ✅ Responsive */
@media (max-width:960px) {
    .header {
        --header-h: 76px;
    }

    .brand__img {
        height: var(--logo-size-sm);
    }

    .burger {
        display: block;
    }

    /* Menu mobile */
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: rgba(10, 16, 28, .96);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        display: block;
        color: #e8f5ff;
        padding: 12px 16px;
        text-decoration: none;
    }

    .nav a:hover,
    .nav a.active {
        background: rgba(0, 224, 255, .15);
        color: #00e0ff;
        box-shadow: none;
    }

    /* On masque le bouton Sections sur mobile */
    .header-center {
        display: none;
    }
}

/* 4) Buttons / badges */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600
}

.btn--primary {
    background: var(--accent);
    color: #001321;
    box-shadow: 0 6px 20px rgba(0, 224, 255, .25);
}

.btn--primary:hover {
    background: var(--accent-2);
    color: #fff
}

.btn--light:hover {
    opacity: .9
}

.btn--ghost {
    background: rgba(255, 255, 255, .1);
    border: 1px solid var(--line);
    color: #eaf3ff
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .16)
}

.btn--line {
    border: 1px solid var(--line)
}

/* 5) Sections / hero */
.hero__content {
    text-align: center;
}

.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 15px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    padding: 6px 10px;
    border-radius: 999px;
    color: #eaf3ff;
}

.section {
    padding: 68px 0;
    position: relative
}

.hero {
    align-content: center;
    padding-top: calc(var(--header-h) + 50px);
    min-height: 400px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center
}

.hero h1 {
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.05;
    margin: 14px 0;
    color: #f3fbff;
    text-shadow: 0 2px 18px rgba(0, 224, 255, .12), 0 1px 0 rgba(0, 0, 0, .4)
}

.accent {
    color: var(--accent)
}

.lead {
    font-size: 18px;
    color: #d2e7ff
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    align-items: center;
    justify-content: center
}

.hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    text-align: center
}

@media (max-width:960px) {
    .hero__grid {
        grid-template-columns: 1fr
    }
}

/* 6) Code card (terminal) */
.codecard {
    background: #0d1428;
    color: #e8efff;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;

    /* ✅ fix mobile */
    max-width: 100%;
    box-sizing: border-box;
    max-height: 100%;
}

.codecard__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
    color: #c9d5f3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block
}

.red {
    background: #f87171
}

.yellow {
    background: #fbbf24
}

.green {
    background: #34d399
}

.filename {
    margin-left: 2px;
    opacity: .9
}

.copy {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #e9f2ff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.copy:hover {
    background: rgba(255, 255, 255, .06)
}

pre {
    margin: 0;
    padding: 14px 16px;
    overflow: auto;
    font-size: 14px;
    line-height: 1.5;
    color: #e8efff;

    /* ✅ fix texte qui déborde */
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: auto;
}

.code-hint {
    margin: 8px 0 8px 8px;
    font-size: 12px;
    color: #c9d5f3;
    opacity: .9;
}

#snippet1 {
    background: #0b1422;
    color: #a8ffb0;
    box-shadow: 0 10px 30px rgba(1, 10, 22, .55);
    border: 1px solid rgba(255, 255, 255, .06);
    height: 300px;
    overflow-y: auto;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ✅ Bonus mobile */
@media (max-width: 960px) {
    .codecard pre {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* 7) Cartes génériques */
.card {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 224, 255, .05);
}

/* 8) Footer */
.footer {
    border-top: 1px solid rgba(11, 18, 32, .08);
    background: rgba(255, 255, 255, .95);
    /* ✅ clair translucide partout */
    color: #0b1220;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 10px
}

.footer__logo img {
    height: var(--footer-logo);
    width: auto;
    display: block
}

.footer__nav {
    display: flex;
    gap: 16px
}

.footer__nav a:hover {
    color: var(--accent)
}

/* 9) Sections thématiques */

/* ===== Contact ===== */
.cform {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    margin-top: 10px
}

.cform__left {
    padding-right: 8px
}

.pills {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.pill,
.pills li {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eaf3ff
}

.pills .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent)
}

.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.contact-mail .ico {
    font-weight: 700
}

.cform__right .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.cform .field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.cform label {
    font-size: .9rem;
    color: var(--muted)
}

.cform input,
.cform textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #5b6b7a;
    border-radius: 12px;
    background: #fff;
    color: #0b1220;
    font-size: 1rem;
}

.cform .field.with-ico {
    position: relative
}

.cform .field.with-ico .ico {
    position: absolute;
    left: 14px;
    bottom: 12px;
    width: 20px;
    height: 20px;
    color: #6b7a89;
    opacity: .9;
    pointer-events: none;
    z-index: 1
}

.cform .field.with-ico input,
.cform .field.with-ico textarea {
    padding-left: 44px
}

.cform .span-2 {
    grid-column: span 2
}

.cform .agree {
    margin-top: 4px
}

#contactForm.cform__right {
    text-align: center;
}

.btn--sheen {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-right: 48px;
    margin-top: 1%;
}

.btn--sheen .btn-label {
    flex: 1;
    text-align: center
}

.btn--sheen .btn-ico {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    opacity: .95
}

@media (max-width:960px) {
    .cform {
        grid-template-columns: 1fr
    }

    .cform__right .grid {
        grid-template-columns: 1fr
    }

    .cform .span-2 {
        grid-column: span 1
    }
}

/* ===== Section separators (subtil) ===== */
.section+.section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 22px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
    pointer-events: none
}

/* on ne zèbre plus en blanc les sections dark */
.section:not(.hero):nth-of-type(even) {
    background: transparent
}

.section:not(.hero):nth-of-type(even) .container {
    padding-bottom: 40px
}

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease
}

.reveal.in {
    opacity: 1;
    transform: none
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.04)
    }
}

.pulse-once {
    animation: pulse-soft .45s ease 1
}

/* ===== Usecases ===== */
#usecases .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px
}

#usecases .card {
    position: relative;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 16px 16px 64px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0) inset;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    min-height: 120px
}

#usecases .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 12, 40, .18)
}

#usecases .card .u-ico {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    color: var(--tone-color, var(--accent));
    opacity: .95;
    z-index: 1
}

#usecases .card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tone-color, var(--accent)), transparent 70%)
}

#usecases .card::after {
    content: "";
    position: absolute;
    left: -18px;
    top: -18px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(12px);
    background: color-mix(in srgb, var(--tone-color, #22d3ee) 16%, transparent);
    opacity: .28;
    pointer-events: none
}

/* tons */
#usecases .card.tone-phishing {
    --tone-color: #06b6d4
}

#usecases .card.tone-malware {
    --tone-color: #8b5cf6
}

#usecases .card.tone-ddos {
    --tone-color: #ef4444
}

#usecases .card.tone-ransom {
    --tone-color: #f59e0b
}

#usecases .card.tone-vuln {
    --tone-color: #22c55e
}

#usecases .card.tone-rgpd {
    --tone-color: #10b981
}

#usecases .card.tone-siem {
    --tone-color: #a78bfa
}

#usecases .card.tone-pra {
    --tone-color: #f97316
}

/* ===== Glossary ===== */
.glossary-toolbar {
    margin: 12px 0 20px
}

#gSearch {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0b1220
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 20px;
    align-items: start;
    /* 🔑 empêche les cellules de "danser" */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* avant 260px */
    max-width: 1400px;  /* optionnel : si tu veux une largeur max */
    margin: 0 auto;
}

.gcard {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 16px 16px 56px;
    box-shadow: 0 0 20px rgba(0, 224, 255, .05);
    transition: transform .2s ease, box-shadow .2s ease;
    min-height: 110px;
    overflow: hidden;
    will-change: transform, box-shadow;
    /* 🔑 réserve la place */
}

.gcard:hover {
    transform: translateY(-2px);
    /* petit effet lift */
    box-shadow: 0 8px 24px rgba(2, 12, 40, .18);
}

.gcard .u-ico {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 28px;
    height: 28px;
    font-size: 22px;
    opacity: .95;
    color: var(--tone-color, var(--accent))
}

.gcard::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tone-color, var(--accent)), transparent 70%)
}

.gcard h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700
}

.gcard p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.4
}

/* tons */
.gcard.tone-ddos {
    --tone-color: #ef4444
}

.gcard.tone-rgpd {
    --tone-color: #10b981
}

.gcard.tone-mfa {
    --tone-color: #06b6d4
}

.gcard.tone-siem {
    --tone-color: #8b5cf6
}

.gcard.tone-pra {
    --tone-color: #f59e0b
}

.gcard.tone-vuln {
    --tone-color: #22c55e
}

.gcard.tone-ransom {
    --tone-color: #f59e0b
}

.gcard.tone-shadow {
    --tone-color: #ec4899
}

.gcard.tone-waf {
    --tone-color: #3b82f6
}

.gcard.tone-zt {
    --tone-color: #a78bfa
}

/* ===== Features ===== */

.intro {
    text-align: center;
    font-size: 18px;
    color: #d2e7ff
}

#features .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px
}

#features .fcard {
    position: relative;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 16px 20px 64px;
    box-shadow: 0 0 20px rgba(0, 224, 255, .05);
    transition: transform .2s ease, box-shadow .2s ease;
    min-height: 130px;
    overflow: hidden
}

#features .fcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(11, 18, 32, .18)
}

#features .fcard .u-ico {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 22px;
    color: var(--tone-color, var(--accent));
    opacity: .95
}

#features .fcard::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tone-color, var(--accent)), transparent 70%)
}

#features .fcard::after {
    content: "";
    position: absolute;
    left: -18px;
    top: -18px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(12px);
    background: color-mix(in srgb, var(--tone-color, #22d3ee) 16%, transparent);
    opacity: .28;
    pointer-events: none
}

#features .fcard h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #eaf3ff
}

#features .fcard p {
    margin: 0;
    color: #c6d3e4;
    font-size: .92rem;
    line-height: 1.4
}

/* tons */
#features .fcard.tone-bridge {
    --tone-color: #06b6d4
}

#features .fcard.tone-exfil {
    --tone-color: #8b5cf6
}

#features .fcard.tone-block {
    --tone-color: #ef4444
}

/* ===== Legal page ===== */
#legal .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 16px
}

#legal .resource {
    position: relative;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 16px 20px 60px;
    box-shadow: 0 0 20px rgba(0, 224, 255, .05);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    min-height: 120px
}

#legal .resource:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(11, 18, 32, .18)
}

#legal .resource .source-tag {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tone-color, var(--accent));
    text-decoration: none
}

#legal .resource .source-tag:hover {
    text-decoration: underline
}

#legal .resource::before {
    content: "📑";
    position: absolute;
    top: 18px;
    left: 16px;
    font-size: 22px;
    color: var(--tone-color, var(--accent))
}

#legal .resource:nth-child(1) {
    --tone-color: #06b6d4
}

#legal .resource:nth-child(2) {
    --tone-color: #8b5cf6
}

#legal .resource:nth-child(3) {
    --tone-color: #10b981
}

#legal .resource:nth-child(4) {
    --tone-color: #ef4444
}

#legal .resource:nth-child(5) {
    --tone-color: #f59e0b
}

#legal .resource:nth-child(6) {
    --tone-color: #22c55e
}

#legal .resource:nth-child(7) {
    --tone-color: #8b5cf6
}

#legal .resource:nth-child(8) {
    --tone-color: #06b6d4
}

#legal .resource:nth-child(9) {
    --tone-color: #ef4444
}

#legal .resource h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700
}

#legal .resource p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.4
}

/* Liens Legal/Glossaire */
#legal a,
.glossary-list a {
    color: #0057ff;
    text-decoration: underline;
    font-weight: 500
}

#legal a:hover,
.glossary-list a:hover {
    color: var(--accent)
}

/* === Titres de sections === */
.section h2 {
    color: var(--accent);
    /* Cyan Gustav */
    font-weight: 700;
    margin-bottom: 24px;
}

/* === Cards Intégration === */
.integration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.integration-card {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 224, 255, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.integration-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
    border-radius: 16px 16px 0 0;
}

.integration-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 224, 255, .18);
}

.integration-card .ico {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    color: var(--accent);
}

/* === Header & Footer (clairs translucides) — desktop only === */
@media (min-width: 961px) {
    .header {
        background: rgba(255, 255, 255, .92);
        color: #0b1220;
        border-bottom: 1px solid rgba(11, 18, 32, .08);
    }

    .nav a {
        color: #0b1220;
        text-shadow: none;
    }

    .nav a:hover,
    .nav a.active {
        color: var(--accent);
        background: rgba(0, 224, 255, .12);
        box-shadow: 0 0 0 1px rgba(0, 224, 255, .25) inset;
    }

    .footer {
        background: rgba(255, 255, 255, .95);
        color: #0b1220;
        border-top: 1px solid rgba(11, 18, 32, .08);
    }

    .footer__nav a {
        color: #0b1220;
    }

    .footer__nav a:hover {
        color: var(--accent);
    }
}

/*A choisir pour séparer les sections actuellement barres bleues*/
.section+.section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    /* plus épais */
    background: linear-gradient(90deg,
            var(--accent) 0%,
            var(--accent-2) 70%,
            transparent 100%);
    opacity: .4;
    /* tu peux monter ou descendre */
    pointer-events: none;
}

/* ===== Risks ===== */
#risks .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
    justify-items: stretch;
}

#risks .stat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 16px;
    min-height: 160px;

    background: var(--panel);           /* ✅ ton patch intégré */
    color: var(--text);                 /* ✅ texte clair par défaut */
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.35),
                0 0 0 1px rgba(0,224,255,.15) inset;

    transition: transform .2s ease, box-shadow .2s ease;
    visibility: visible;
    opacity: 1;
    z-index: 1;
}

#risks .stat.has-ico {
    padding-left: 64px;
}

#risks .stat .ico {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 28px;
    height: 28px;
    opacity: .95;
    z-index: 2;
    color: var(--tone-color, var(--accent));
}

#risks .stat .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);   /* ✅ chiffres cyan */
    text-align: center;
}

#risks .stat .stat-label {
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.35;
    color: var(--text);     /* ✅ blanc/gris clair */
}

#risks .stat .source-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;       /* ✅ pastille claire */
    color: #0b1220;         /* ✅ texte foncé dedans */
    border: 1px solid var(--line);
    z-index: 3;
}

#risks .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 8px; /* un peu plus épais pour mieux voir */
    background: linear-gradient(
        90deg,
        var(--tone-color, var(--accent)),
        transparent 70%
    );
    border-radius: 16px 16px 0 0; /* arrondi seulement en haut */
    z-index: 2;
}

#risks .stat::after {
    content: "";
    position: absolute;
    left: -18px;
    top: -18px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
    background: color-mix(in srgb, var(--tone-color, #22d3ee) 18%, transparent);
    opacity: .28;
}

#risks .stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(11, 18, 32, .18),
                0 0 0 1px rgba(0,224,255,.22) inset;
}

/* tons */
#risks .stat.tone-shield { --tone-color: #22d3ee; }
#risks .stat.tone-file   { --tone-color: #8b5cf6; }
#risks .stat.tone-euro   { --tone-color: #10b981; }
#risks .stat.tone-clock  { --tone-color: #f59e0b; }
#risks .stat.tone-db     { --tone-color: #ec4899; }
#risks .stat.tone-alert  { --tone-color: #ef4444; }

@media (max-width:960px) {
    #risks .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:600px) {
    #risks .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== RISKS — fix chevauchement + aération ===== */
#risks .stat{
  /* 14px (top badge) + ~48px (hauteur badge) + 8px (barre ::before) + 8px (air) ≈ 78 */
  padding: 78px 24px 22px;       /* avant 20px 16px */
  line-height: 1.55;
  gap: 12px;                     /* espace entre les éléments internes */
}

#risks .stat.has-ico{
  padding-left: 88px;            /* avant 64px, laisse respirer l’icône */
}

#risks .stat > * + *{
  margin-top: 8px;               /* au cas où gap ne s’applique pas partout */
}

/* Bulle source : reste en haut, mais ne déborde pas */
#risks .stat .source-tag{
  top: 30px;
  right: 14px;
  z-index: 4;
  display: inline-flex;
  max-width: calc(100% - 28px - 14px); /* évite qu’elle morde sur le bord */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Icône un peu décollée */
#risks .stat .ico{
  top: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  z-index: 3;
}

/* La barre déco ne bloque pas les clics */
#risks .stat::before{ pointer-events: none; }

/* + espace ENTRE les cartes */
#risks .stats-grid{ gap: 28px; }

/* Mobile: on arrête de coller des absolus partout */
@media (max-width: 700px){
  #risks .stat{
    padding: 22px 18px;          /* badge replacé dans le flow, donc padding normal */
    gap: 10px;
  }
  #risks .stat.has-ico{ padding-left: 18px; }
  #risks .stat .source-tag{
    position: relative;           /* sort du absolu → se place au début de la carte */
    top: auto; right: auto;
    align-self: flex-start;
    margin-bottom: 6px;
    max-width: 100%;
    white-space: normal;
  }
}

/*GLOSSAIRE FOOTER*/
/* Spacer pour isoler le footer */
.glossary-spacer {
    height: 100px;
    /* tu ajustes la valeur (80–120px) selon ton rendu */
    width: 100%;
}

/* ===== Login page spécifique ===== */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.login-card {
    background: var(--panel);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: fadeIn .6s ease;
}

.login-card h1 {
    margin: 0 0 20px;
    font-size: 1.6rem;
    color: var(--accent);
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-card input {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 1rem;
    color: #0b1220;
}

.login-card button {
    margin-top: 10px;
}

.login-footer {
    margin-top: 18px;
    font-size: .85rem;
    color: var(--muted);
}

.error {
    color: var(--bad);
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h));
    /* espace sous le header */
    padding: 20px;
}

img.brand_img {
    margin-left: 10%;
    max-height: 64px;
}

/* ✅ Footer responsive */
@media (max-width: 961px) {
    .footer__inner {
        flex-direction: column;
        /* passe en colonne */
        align-items: center;
        /* centre le contenu */
        text-align: center;
        gap: 16px;
        /* espace entre les blocs */
    }

    .footer__left {
        flex-direction: column;
        /* logo + texte en pile */
        align-items: center;
        gap: 8px;
    }

    .footer__nav {
        flex-wrap: wrap;
        /* permet retour à la ligne */
        justify-content: center;
        gap: 12px;
    }

}

.nav-admin {
    color: #22d3ee;
    font-weight: bold;
    margin-left: 15px;
    text-decoration: none;
}

.nav-admin:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

.nav-logout {
    color: #ef4444;
    /* rouge */
    margin-left: 15px;
    text-decoration: none;
}

.nav-logout:hover {
    color: #dc2626;
    text-decoration: underline;
}
/* ==========================
   SECTION DEMO VIDÉO
   ========================== */

#demo-scenarios {
  position: relative;
  background: radial-gradient(ellipse at center, #0b1622 0%, #060b12 100%);
  color: #fff;
  padding: 80px 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.video-demo {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.video-demo h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #00bfff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

/* Wrapper vidéo centré et ajusté */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
  background: #000;
}

/* Vidéo fluide */
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9; /* Garde le bon ratio */
  border: none;
}

/* Effet subtil au survol */
.video-wrapper:hover video {
  filter: brightness(1.08);
  transition: filter 0.3s ease;
}

/* Responsive mobile */
@media (max-width: 768px) {
  #demo-scenarios {
    padding: 60px 10px;
  }

  .video-demo h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .video-wrapper {
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.25);
  }
}


