/* ═══════════════════════════════════════════════════════════════════════
 * OGMA DESIGN SYSTEM — Système de design complet
 * OGMA Systems — Conciergerie IA sur mesure
 * ═══════════════════════════════════════════════════════════════════════
 * Version : 1.0.0
 * Style   : "Technical Mono" + "Tactile Craft"
 * Palette : Noir & Blanc + Bleu Pétrole / Cyber
 *
 * TABLE DES MATIÈRES :
 * 1. Variables CSS (:root)
 * 2. @font-face (polices auto-hébergées)
 * 3. Reset & Base
 * 4. Composants
 * 5. Layout & Grille
 * 6. Animations
 * 7. Accessibilité
 * 8. Responsive
 * 9. Modernisation SOTA 2026 (Progressive Enhancement)
 * ═══════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────
 * 1. VARIABLES CSS
 * ───────────────────────────────────────────────────────────────────── */

:root {
    /* ── Palette validée (9 couleurs identitaires) ── */
    --color-primary:        #0A0A0A;  /* Noir profond — fonds, texte     */
    --color-primary-light:  #FFFFFF;  /* Blanc pur — fonds secondaires   */
    --color-accent:         #1A5276;  /* Bleu Pétrole — CTA, titres      */
    --color-accent-cyber:   #00D4FF;  /* Bleu Cyber — highlights (fonds sombres UNIQUEMENT) */
    --color-accent-dark:    #0891B2;  /* Bleu Cyber foncé — hover, bordures actives */
    --color-neutral-light:  #F0F4F8;  /* Gris glacé — sections alternées */
    --color-neutral-mid:    #64748B;  /* Gris ardoise — texte secondaire (fonds clairs) */
    --color-text-on-dark:   #94A3B8;  /* Gris clair — texte sur fonds sombres 5.76:1 AA ✅ */
    --color-neutral-dark:   #1E293B;  /* Gris charbon — cartes sombres   */
    --color-success:        #00B67A;  /* Vert émeraude — confirmations   */

    /* ── Couleurs fonctionnelles (feedback UI) ── */
    --color-error:          #EF4444;  /* Rouge — erreurs formulaire      */
    --color-warning:        #F59E0B;  /* Ambre — alertes                 */
    --color-info:           #3B82F6;  /* Bleu — informations             */

    /* ── Contraste WCAG 2.1 AA — Règles d'usage ──────────────────────
     *
     * SUR FOND CLAIR (#FFFFFF, #F0F4F8) :
     *   Texte    → --color-primary (#0A0A0A)      ratio 19.8:1 ✅ AAA
     *   Liens    → --color-accent  (#1A5276)       ratio  7.1:1 ✅ AAA
     *   Sous-titre → --color-neutral-mid (#64748B) ratio  4.6:1 ✅ AA
     *   ⚠️ NE PAS utiliser --color-accent-cyber (#00D4FF) → ratio 2.1:1 ✗
     *
     * SUR FOND SOMBRE (#0A0A0A, #1E293B) :
     *   Texte    → --color-primary-light (#FFFFFF)  ratio 19.8:1 ✅ AAA
     *   Liens    → --color-accent-cyber (#00D4FF)   ratio  9.7:1 ✅ AAA
     *   Sous-titre → --color-text-on-dark (#94A3B8) ratio  5.8:1 ✅ AA
     *
     * ───────────────────────────────────────────────────────────────── */

    /* ── Typographie ── */
    --font-heading:  'Space Grotesk', system-ui, sans-serif;
    --font-body:     'Inter', system-ui, sans-serif;
    --font-mono:     'JetBrains Mono', ui-monospace, monospace;

    /* Échelle typographique — petits corps (statiques) */
    --text-xs:    0.75rem;    /* 12px */
    --text-sm:    0.875rem;   /* 14px */
    --text-base:  1rem;       /* 16px */
    --text-lg:    1.125rem;   /* 18px */
    --text-xl:    1.25rem;    /* 20px */

    /* Échelle typographique — titres fluides (clamp 320→1440px) */
    --text-2xl:   clamp(1.25rem, 1.18rem + 0.36vw, 1.5rem);     /* 20→24px · H4 */
    --text-3xl:   clamp(1.5rem, 1.39rem + 0.54vw, 1.875rem);    /* 24→30px · H3 */
    --text-4xl:   clamp(1.75rem, 1.61rem + 0.71vw, 2.25rem);    /* 28→36px · H2 */
    --text-5xl:   clamp(2rem, 1.71rem + 1.43vw, 3rem);           /* 32→48px · H1 */
    --text-6xl:   clamp(2.5rem, 2.14rem + 1.79vw, 3.75rem);     /* 40→60px */
    --text-hero:  clamp(2.75rem, 2.25rem + 2.5vw, 4.5rem);      /* 44→72px · Hero */

    /* Interlignes */
    --leading-tight:    1.1;
    --leading-snug:     1.25;
    --leading-normal:   1.5;
    --leading-relaxed:  1.75;

    /* Letter spacing */
    --tracking-tight:   -0.025em;
    --tracking-normal:   0;
    --tracking-wide:     0.05em;
    --tracking-wider:    0.1em;

    /* ── Espacement (échelle 4px) ── */
    --space-1:   0.25rem;   /*  4px */
    --space-2:   0.5rem;    /*  8px */
    --space-3:   0.75rem;   /* 12px */
    --space-4:   1rem;      /* 16px */
    --space-6:   1.5rem;    /* 24px */
    --space-8:   2rem;      /* 32px */
    --space-12:  3rem;      /* 48px */
    --space-16:  4rem;      /* 64px */
    --space-24:  6rem;      /* 96px */
    --space-32:  8rem;      /* 128px */

    /* ── Animations ── */
    --transition-fast:    150ms ease;
    --transition-normal:  300ms ease;
    --transition-slow:    500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Ombres ── */
    --shadow-sm:  0 1px 2px  rgba(10, 10, 10, 0.06);
    --shadow-md:  0 4px 6px  rgba(10, 10, 10, 0.08);
    --shadow-lg:  0 10px 25px rgba(10, 10, 10, 0.12);
    --shadow-xl:  0 20px 50px rgba(10, 10, 10, 0.18);

    /* ── Rayons de bordure ── */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-full: 9999px;

    /* ── Largeurs max ── */
    --container-sm:  640px;
    --container-md:  768px;
    --container-lg:  1024px;
    --container-xl:  1280px;

    /* ── Layout ── */
    --header-height: 80px;
}


/* ─────────────────────────────────────────────────────────────────────
 * 2. @FONT-FACE — Polices auto-hébergées (RGPD : zéro requête Google)
 * ───────────────────────────────────────────────────────────────────── */

/* Space Grotesk — Titres */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/space-grotesk-v16-latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
    size-adjust: 105%;
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/space-grotesk-v16-latin-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
    size-adjust: 105%;
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-v16-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
    size-adjust: 105%;
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* Inter — Corps de texte */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v18-latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 20%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-v18-latin-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 20%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v18-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 20%;
    line-gap-override: 0%;
}

/* JetBrains Mono — Accents techniques, code, données */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/jetbrains-mono-v18-latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
}


/* ─────────────────────────────────────────────────────────────────────
 * 3. RESET & BASE
 * ───────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%; /* 16px base */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth scroll sauf si l'utilisateur préfère reduced motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--color-primary-light);
    background-color: var(--color-primary);
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--color-primary-light);
    margin-bottom: var(--space-6);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* Paragraphes */
p {
    margin-bottom: var(--space-4);
    max-width: 70ch; /* Lisibilité optimale */
}

/* Liens — Bleu Cyber sur body sombre (ratio 12.6:1 ✅ AAA) */
a {
    color: var(--color-accent-cyber);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Listes — base (avant :where() Bricks pour cascade correcte) */
ul, ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

li {
    margin-bottom: var(--space-2);
}

/* Listes dans Bricks — styling premium fond sombre */
:where(.brxe-text, .brxe-text-basic, .brxe-post-content) ul {
    list-style: none;
    padding-left: 0;
    margin: var(--space-6) 0;
}

:where(.brxe-text, .brxe-text-basic, .brxe-post-content) ul li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: var(--space-3);
    color: var(--color-text-on-dark);
    line-height: var(--leading-relaxed);
}

:where(.brxe-text, .brxe-text-basic, .brxe-post-content) ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent-cyber);
    font-weight: 700;
}

/* Listes centrées dans sections text-center (Founders Club, etc.) */
.text-center .brxe-text ul {
    display: inline-block;
    text-align: left;
    max-width: 550px;
}

.text-center .brxe-text ul li {
    padding-left: 1.8em;
    text-indent: -1.8em;
}

.text-center .brxe-text ul li::before {
    content: none;
}

/* Label bold dans les listes = accent visuel (Souveraineté, definitions) */
:where(.brxe-text, .brxe-text-basic, .brxe-post-content) ul li > strong:first-child {
    color: var(--color-primary-light);
}

/* Listes dans les cards — compact, bullet Cyber */
.card ul {
    list-style: none;
    padding-left: 0;
    margin: var(--space-4) 0;
}

.card ul li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: var(--space-2);
    color: var(--color-text-on-dark);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.card ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-accent-cyber);
    font-weight: 700;
    font-size: var(--text-base);
}

a:hover {
    color: var(--color-accent-dark);
}

/* Liens sur fond sombre — Bleu Cyber autorisé */
.section-dark a,
.section-charcoal a {
    color: var(--color-accent-cyber);
}

.section-dark a:hover,
.section-charcoal a:hover {
    color: var(--color-primary-light);
}

/* Sélection de texte */
::selection {
    background-color: var(--color-accent);
    color: var(--color-primary-light);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Séparateur */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-accent) 20%,
        var(--color-accent-cyber) 80%,
        transparent
    );
    margin: var(--space-12) 0;
}

/* Code inline */
code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background-color: var(--color-neutral-light);
    color: var(--color-accent);
    padding: 0.125em 0.375em;
    border-radius: var(--radius-sm);
}


/* ─────────────────────────────────────────────────────────────────────
 * 4. COMPOSANTS
 * ───────────────────────────────────────────────────────────────────── */

/* ── Boutons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    text-decoration: none;
    padding: var(--space-3) var(--space-6);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

/* .btn:focus-visible supprimé — aligné sur *:focus-visible premium (Section 7) */

/* Primaire — Bleu Pétrole, plein */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-light);
    border-color: var(--color-accent);
}

/* Hero — Glow Cyber sur boutons bleus */
.hero .btn-primary,
.hero .brxe-button[style*="background"] {
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.6),
        0 0 60px rgba(0, 212, 255, 0.4),
        0 0 120px rgba(0, 212, 255, 0.25);
}

.hero .btn-primary:hover,
.hero .brxe-button[style*="background"]:hover {
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.8),
        0 0 80px rgba(0, 212, 255, 0.5),
        0 0 160px rgba(0, 212, 255, 0.3);
}

/* Hero — Glow Cyber sur bouton secondaire (contour) "Découvrir nos solutions" */
.hero .btn-secondary,
.hero .brxe-button:not([style*="background"]) {
    text-shadow:
        0 0 4px  rgba(0, 212, 255, 0.9),
        0 0 12px rgba(0, 212, 255, 0.6);
    box-shadow:
        /* Noyau : bordure lumineuse */
        0 0 4px  rgba(0, 212, 255, 0.6),
        0 0 10px rgba(0, 212, 255, 0.4),
        /* Halo : glow visible */
        0 0 25px rgba(0, 212, 255, 0.3),
        0 0 50px rgba(0, 212, 255, 0.15),
        /* Inner glow */
        inset 0 0 8px rgba(0, 212, 255, 0.2);
}

.hero .btn-secondary:hover,
.hero .brxe-button:not([style*="background"]):hover {
    text-shadow:
        0 0 6px  rgba(0, 212, 255, 1),
        0 0 18px rgba(0, 212, 255, 0.8);
    box-shadow:
        0 0 6px  rgba(0, 212, 255, 0.8),
        0 0 15px rgba(0, 212, 255, 0.6),
        0 0 35px rgba(0, 212, 255, 0.4),
        0 0 70px rgba(0, 212, 255, 0.2),
        inset 0 0 12px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondaire — Contour */
.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Ghost — Texte seul */
.btn-ghost {
    background-color: transparent;
    color: var(--color-accent);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.btn-ghost::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.btn-ghost:hover {
    color: var(--color-accent-dark);
}

.btn-ghost:hover::after {
    transform: translateX(4px);
}

/* CTA — Version large et proéminente */
.btn-cta {
    background-color: var(--color-accent);
    color: var(--color-primary-light);
    border-color: var(--color-accent);
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
}

.btn-cta:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 82, 118, 0.35);
}

/* Variantes sur fond sombre */
.section-dark .btn-secondary,
.section-charcoal .btn-secondary {
    color: var(--color-accent-cyber);
    border-color: var(--color-accent-cyber);
}

.section-dark .btn-secondary:hover,
.section-charcoal .btn-secondary:hover {
    background-color: var(--color-accent-cyber);
    color: var(--color-primary);
}

.section-dark .btn-ghost,
.section-charcoal .btn-ghost {
    color: var(--color-accent-cyber);
}

/* ── Cartes ── */

.card {
    background-color: var(--color-neutral-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 212, 255, 0.15);
}

/* Contenu interne des cartes = flex column stretch */
.card > .brxe-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

/* Badge wrapper (premier <p> contenant .badge ou .trust-bar) — hauteur fixe pour aligner H3 */
.card > .brxe-text > p:first-child {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

/* Trust-bar à l'intérieur d'une carte = reset complet → style badge pill */
.card .trust-bar {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: var(--color-accent-cyber);
    background: rgba(0, 212, 255, 0.1);
    border: 1.5px solid var(--color-accent-cyber);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.12);
}

/* Titres cartes — premium */
.card h3,
.card h4 {
    color: #FFFFFF;
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texte cartes — lisible, aéré */
.card p {
    color: var(--color-text-on-dark);
    line-height: var(--leading-relaxed);
    font-size: var(--text-base);
}

/* Paragraphe descriptif dans carte = flex-grow pour pousser blockquote en bas */
.card > .brxe-text > p:not(:first-child) {
    flex: 1;
}

/* Blockquote dans carte — compact & premium */
.card blockquote {
    margin: var(--space-4) 0 0 0;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    border-left: 2px solid var(--color-accent-cyber);
    background: rgba(0, 212, 255, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}
.card blockquote p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.card-light {
    background-color: var(--color-neutral-light);
    border: 1px solid rgba(100, 116, 139, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-normal);
}

.card-light:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

/* ── Badges ── */

.badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(0, 182, 122, 0.08);
}

.badge-cyber {
    border-color: var(--color-accent-cyber);
    color: var(--color-accent-cyber);
}

.badge-success {
    border-color: var(--color-success);
    color: var(--color-success);
}

/* Badges sur fonds sombres — Cyber (#00D4FF) pour contraste AA */
.card .badge,
.pricing-card .badge,
.section-charcoal .badge {
    color: var(--color-accent-cyber);
    border-color: var(--color-accent-cyber);
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.12);
}

/* Badge hero — tricolore Bleu Blanc Rouge */
.hero .badge {
    background:
        linear-gradient(var(--color-primary), var(--color-primary)) padding-box,
        linear-gradient(90deg, #002395 0%, #FFFFFF 50%, #ED2939 100%) border-box;
    border: 3px solid transparent; /* Bordure tricolore épaisse */
    box-shadow: 0 0 8px rgba(0, 35, 149, 0.35), 0 0 8px rgba(237, 41, 57, 0.35); /* Halo relief tricolore */
    color: #FFFFFF;
    padding: 0.2rem 0.55rem;
    font-size: 0.6rem;
    line-height: 1.4;
}

/* Badge parcours — label carrière (section Fondateur) */
.badge-parcours {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-accent-cyber);
    margin-bottom: var(--space-2);
}

/* Badges vides — sécurité (ogma_div sans texte rendu) */
.badge:empty,
[class*="badge"]:empty {
    display: none;
}

/* ── Trust Bar — bandeau de confiance plein-largeur ── */
.trust-bar {
    display: block;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: var(--space-4) var(--space-6);
    margin-top: var(--space-8);
    background: linear-gradient(135deg, rgba(0, 182, 122, 0.18), rgba(0, 212, 255, 0.18));
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: var(--radius-md);
    color: var(--color-accent-cyber);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15), inset 0 0 12px rgba(0, 212, 255, 0.06);
}

/* ── Séparateur décoratif ── */

.divider {
    border: none;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-accent) 30%,
        var(--color-accent-cyber) 70%,
        transparent
    );
    margin: var(--space-16) 0;
    max-width: 200px;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}


/* ─────────────────────────────────────────────────────────────────────
 * 5. LAYOUT & GRILLE
 * ───────────────────────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* Sections */
.section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .section {
        padding-top: var(--space-24);
        padding-bottom: var(--space-24);
    }
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-primary-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-primary-light);
}

.section-dark p {
    color: var(--color-text-on-dark);
}

.section-light {
    background-color: var(--color-neutral-light);
    color: var(--color-primary);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--color-primary);
}

/* Liens Bleu Pétrole sur sections claires (ratio 7.6:1 ✅ AAA) */
.section-light a {
    color: var(--color-accent);
}

/* Hover → Bleu Cyber foncé (ratio 3.3:1 sur #F0F4F8 — AA large text)
   ⚠️ NE PAS utiliser accent-cyber ici : ratio 1.6:1 sur fond clair = FAIL */
.section-light a:hover {
    color: var(--color-accent-dark);
}

.section-charcoal {
    background-color: var(--color-neutral-dark);
    color: var(--color-primary-light);
}

.section-charcoal h1,
.section-charcoal h2,
.section-charcoal h3,
.section-charcoal h4,
.section-charcoal h5,
.section-charcoal h6 {
    color: var(--color-primary-light);
}

.section-charcoal p {
    color: var(--color-text-on-dark);
}

/* Bento Grid — Grille adaptative */
.bento-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

@media (min-width: 1024px) {
    .bento-grid {
        gap: var(--space-8);
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grille 2/3 colonnes explicites */
.grid-2 {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Flexbox utilitaires */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Hero buttons — alignement gauche */
.hero .flex-center {
    justify-content: flex-start;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/* Texte alignement */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }


/* ─────────────────────────────────────────────────────────────────────
 * 6. ANIMATIONS
 * ───────────────────────────────────────────────────────────────────── */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Classes d'animation
 * fill-mode: backwards — applique le from-keyframe pendant le delay,
 * puis libère le compositing layer GPU à la fin de l'animation.
 * Évite le flou sur background-clip: text (gradient text). */
.animate-fade-in {
    animation: fadeIn var(--transition-slow) backwards;
}

.animate-slide-up {
    animation: slideUp var(--transition-slow) backwards;
}

.animate-slide-left {
    animation: slideLeft var(--transition-slow) backwards;
}

.animate-slide-right {
    animation: slideRight var(--transition-slow) backwards;
}

.animate-scale-in {
    animation: scaleIn var(--transition-slow) backwards;
}

/* Délais échelonnés (pour animations en cascade) */
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* Hover lift (cartes, éléments interactifs) */
.hover-lift {
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ── Héros ── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--space-32);
    padding-bottom: var(--space-16);
}

.hero-inner {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
}

/* ═══════════════════════════════════════════════════════════
   HERO VIDEO BACKGROUND PREMIUM — rc11
   ═══════════════════════════════════════════════════════════ */

/* ── Override du shorthand existant ── */
.hero--gradient {
    background-color: var(--color-primary) !important;
    background-image: none !important;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* ── Vidéo plein écran (injectée via JS) ── */
.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
    opacity: 0.65;                                  /* Valeur finale déclarée sur l'élément */
    filter: brightness(0.75) saturate(0.85);
    /* backwards : applique from-keyframe (opacity:0) pendant le delay 200ms,
     * anime 0→0.65, puis l'animation SE TERMINE et l'élément utilise
     * son propre opacity:0.65. Chromium libère l'état animation du compositor.
     * Avec forwards, l'animation restait "active" indéfiniment → overlap
     * detection plus agressive → risque de promotion grayscale AA sur les siblings. */
    animation: heroVideoReveal 1.8s cubic-bezier(0.2, 0, 0.2, 1) backwards 200ms;
}

/* ── Overlay sombre sur vidéo (::before) ── */
/* rc60b calibré (5 itérations). rc63 overlay renforcé revert → valeurs d'origine
   car +15/+10/+15% tuait le glow neon et assombrissait excessivement. */
.hero--gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.40) 0%,
        rgba(10, 10, 10, 0.22) 40%,
        rgba(10, 10, 10, 0.50) 100%
    );
}

/* ── Keyframes vidéo ── */
@keyframes heroVideoReveal {
    from { opacity: 0; }
    to   { opacity: 0.65; }
}

/* ── Accessibilité ── */
@media (prefers-reduced-motion: reduce) {
    .hero__video {
        animation: none !important;
        opacity: 0.65 !important;
    }
}

@media (prefers-contrast: more) {
    .hero__video {
        opacity: 0.35 !important;
        filter: brightness(0.5) saturate(0.7) !important;
    }
    .hero--gradient::before {
        background: linear-gradient(
            180deg,
            rgba(10, 10, 10, 0.75) 0%,
            rgba(10, 10, 10, 0.65) 40%,
            rgba(10, 10, 10, 0.80) 100%
        );
    }
    .hero h1, .hero h2, .hero h3, .hero .brxe-heading {
        text-shadow: none !important;
    }
}

/* Centrage flex pour tout container .text-center dans une section */
.brxe-section .brxe-container.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Hero — alignement gauche premium ── */
.hero .container,
.hero-inner .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
    /* z-index + position:relative = stacking context (paint ordering, CSS concept).
     * Ceci NE crée PAS de compositor layer GPU (seuls transform, filter, opacity,
     * will-change, backdrop-filter en créent). Le z-index:1 donne au compositor
     * Chromium une information de layering claire : le container est UN bloc
     * au-dessus de la vidéo (z:-2) et de l'overlay (z:-1). Sans z-index explicite
     * (auto), chaque élément enfant est testé individuellement pour overlap avec
     * la vidéo compositor layer → risque de fausse promotion → grayscale AA. */
}

/* Force left-align: override .text-center class from Bricks deployer */
.hero .container.text-center,
.hero .brxe-container.text-center {
    align-items: flex-start;
    text-align: left;
}

.hero .container *,
.hero .container h1,
.hero .container p,
.hero .container .brxe-text-basic,
.hero .container .brxe-text,
.hero .container .brxe-heading {
    text-align: left;
}

/* ── Hero H1 + badge layout ── */
.hero h1 {
    max-width: 50ch;
    text-align: left;
    flex: 1 1 auto;
    /* ── TEXTE NU — ZÉRO propriété GPU ──
     * background-clip: text → grayscale AA (Chromium, Windows).
     * filter / text-shadow / position: relative + ::after → GPU layer.
     * text-rendering: optimizeLegibility → fractional glyph positions → blur at 125-150% DPI.
     * -webkit-font-smoothing: antialiased (html hérité) → peut forcer grayscale AA.
     * SOLUTION : couleur solide, text-rendering auto, override !important complet
     * du .text-gradient-cyber deployer. Gradient reste actif hors hero vidéo. */
    color: var(--color-accent-cyber) !important; /* #00D4FF — 9.7:1 AAA */
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    text-rendering: auto !important;              /* Override optimizeLegibility (html + .text-gradient-cyber) */
    -webkit-font-smoothing: auto !important;      /* Override antialiased hérité de html — laisse ClearType décider */
}

/* Headings hero — glow Cyber visible (max 16px — neon CyberBlue sans blur)
 * 3 px  white core     → lisibilité bords
 * 8 px  cyan serré     → neon immédiat
 * 16 px cyan halo 0.25 → halo visible (÷3.75 vs ancien 60px, opacité ÷1.4)
 * 4 px  drop shadow    → ancrage */
.hero h2,
.hero h3,
.hero .brxe-heading {
    text-shadow:
        0 0 3px  rgba(255, 255, 255, 0.7),
        0 0 8px  rgba(0, 212, 255, 0.85),
        0 0 16px rgba(0, 212, 255, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Badge "Hébergé en France" — après le sous-titre, aligné en bas du texte */
.hero .badge {
    align-self: flex-start;
    margin-top: var(--space-2);
    margin-bottom: var(--space-6);
    color: var(--color-primary-light) !important;
    font-weight: 600;
    order: 5; /* Après h1 (order 1), p (order 2), avant boutons */
}

/* Flow naturel : h1 → p → badge → boutons (tout en bas) */
.hero h1 { order: 1; }
.hero p,
.hero .brxe-text-basic { order: 2; }
.hero .flex-center,
.hero .brxe-block,
.hero .btn-group,
.hero [class*="button"]:not(.badge) { order: 10; }

.hero .container {
    flex-wrap: wrap;
}
/* Boutons occupent toute la largeur pour rester en bas */
.hero .flex-center {
    width: 100%;
}

.hero p,
.hero .brxe-text-basic {
    max-width: 55ch;
    font-size: var(--text-lg);
    color: var(--color-primary-light); /* Blanc pur — lisibilité maximale sur vidéo */
    margin-bottom: var(--space-8);
    text-align: left;
    align-self: flex-start;
    text-shadow:
        /* Noyau : éclat blanc-cyan */
        0 0 3px  rgba(255, 255, 255, 0.7),
        0 0 6px  rgba(0, 212, 255, 0.9),
        /* Halo : cyan visible */
        0 0 15px rgba(0, 212, 255, 0.7),
        0 0 30px rgba(0, 212, 255, 0.5),
        /* Aura : ambient */
        0 0 60px rgba(0, 212, 255, 0.25),
        /* Ombre portée lisibilité */
        0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-inner p,
.hero-inner .brxe-text-basic {
    max-width: 55ch;
    font-size: var(--text-lg);
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-8);
    text-align: center;
}

@media (min-width: 768px) {
    .hero p,
    .hero-inner p {
        font-size: var(--text-xl);
    }
}

/* .badge-floating SUPPRIMÉ — DT-01 dead code (remplacé par .badge dans deployer rc17) */

/* ── Section CTA final (fond Bleu Pétrole plein) ── */

.section-cta {
    background-color: var(--color-accent);
    color: var(--color-primary-light);
    text-align: center;
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.section-cta > .brxe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-cta h2 {
    color: var(--color-primary-light);
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

.section-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-8);
}

/* CTA inversé (blanc sur Bleu Pétrole) */
.section-cta .btn-primary,
.btn-primary--inverted {
    background-color: var(--color-primary-light);
    color: var(--color-accent);
    border-color: var(--color-primary-light);
}

.section-cta .btn-primary:hover,
.btn-primary--inverted:hover {
    background-color: transparent;
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

/* ── Pricing Cards ── */

.pricing-grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background-color: var(--color-neutral-dark);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Tier mis en avant (VanGuard) */
.pricing-card--featured {
    border-color: var(--color-accent-cyber);
    position: relative;
}

.pricing-card--featured::before {
    content: '⭐ Recommandé';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    background-color: var(--color-accent-cyber);
    color: var(--color-primary);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .pricing-card--featured {
        transform: scale(1.05);
        z-index: 1;
    }

    .pricing-card--featured:hover {
        transform: scale(1.05) translateY(-4px);
    }
}

.pricing-card h3 {
    color: var(--color-primary-light);
    margin-bottom: var(--space-2);
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.pricing-card .price small {
    display: block;
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-on-dark);
    margin-top: var(--space-1);
}

.pricing-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-8);
    flex-grow: 1;
}

.pricing-card ul li {
    position: relative;
    padding-left: var(--space-6);
    color: var(--color-text-on-dark);
    font-size: var(--text-sm);
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* ── Formulaire (CF7 Audit) ── */

.form--audit {
    max-width: var(--container-md);
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-8);
    background: var(--color-neutral-light);
    border-radius: var(--radius-lg);
}

.shadow--lg {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.form-grid,
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .form-grid,
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field,
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.form-field label,
.form-group label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-neutral-dark);
}

.form-field input,
.form-field select,
.form-field textarea,
.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    background: var(--color-primary-light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.15);
}

.form-field--full,
.form-group--full {
    grid-column: 1 / -1;
}

.consent-row,
.form-group--consent {
    font-size: var(--text-sm);
    color: var(--color-neutral-dark);
    line-height: 1.5;
    grid-column: 1 / -1;
}

.consent-row a,
.form-group--consent a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ── Accordéon / FAQ ── */

.accordion {
    max-width: var(--container-md);
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accordion-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-6) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary-light);
    text-align: left;
    line-height: var(--leading-snug);
    transition: color var(--transition-fast);
}

.accordion-trigger:hover {
    color: var(--color-accent-cyber);
}

.accordion-trigger::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    color: var(--color-accent-cyber);
    flex-shrink: 0;
    margin-left: var(--space-4);
    transition: transform var(--transition-normal);
}

.accordion-item[open] .accordion-trigger::after,
.accordion-trigger[aria-expanded="true"]::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-content {
    padding-bottom: var(--space-6);
    color: var(--color-text-on-dark);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    max-width: 65ch;
}

/* ── Étapes / Timeline ── */

.steps {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    counter-reset: step-counter;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    counter-increment: step-counter;
    position: relative;
    padding-left: var(--space-12);
}

@media (min-width: 768px) {
    .step {
        padding-left: 0;
        text-align: center;
    }
}

.step::before {
    content: counter(step-counter);
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-accent-cyber);
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}

@media (min-width: 768px) {
    .step::before {
        position: static;
        display: block;
        margin-bottom: var(--space-4);
        font-size: var(--text-4xl);
    }
}

.step h3,
.step h4 {
    color: var(--color-primary-light);
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.step p {
    color: var(--color-text-on-dark);
    font-size: var(--text-sm);
}

/* ── Compteurs métriques ── */

/* Sous-titre intro centré (uniquement dans containers text-center, ex: section métriques) */
.text-center .brxe-text > p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.metrics-grid {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* 4e item (seul sur sa ligne) — centré sous les 3 */
    .metrics-grid > .metric:nth-child(4):last-child {
        grid-column: 2 / 3;
    }
}

.metric {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-accent-cyber);
    line-height: 1;
    margin-bottom: var(--space-3);
    text-shadow:
        0 0 40px rgba(0, 212, 255, 0.6),
        0 0 80px rgba(0, 212, 255, 0.3);
}

@media (min-width: 1024px) {
    .metric-value {
        font-size: var(--text-6xl);
    }
}

.metric-label {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: var(--space-2);
    max-width: 28ch;
    min-height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-source {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-on-dark);
    letter-spacing: var(--tracking-wide);
}

/* ── Tableau comparatif (DORA, process) ── */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
}

.table thead {
    border-bottom: 2px solid var(--color-accent-cyber);
}

.table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent-cyber);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-size: var(--text-xs);
    text-align: left;
    padding: var(--space-4) var(--space-6);
    width: 50%;
}

.table td {
    color: var(--color-text-on-dark);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table td:first-child {
    color: var(--color-primary-light);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(0, 212, 255, 0.05);
}

/* Variante sur fond sombre */
.section-dark .table td,
.section-charcoal .table td {
    border-color: rgba(255, 255, 255, 0.06);
}

/* .feature-list SUPPRIMÉ — DT-52 dead code (remplacé par :where(.brxe-text) ul) */

/* ── Tables (contenus réglementaires, comparatifs) ── */

.brxe-text table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-8) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brxe-text table thead th {
    background: rgba(26, 82, 118, 0.35);
    color: var(--color-accent-cyber);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: var(--space-4) var(--space-6);
    text-align: left;
    border-bottom: 2px solid var(--color-accent-cyber);
}

.brxe-text table tbody td {
    padding: var(--space-3) var(--space-6);
    color: var(--color-text-on-dark);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.brxe-text table tbody tr:last-child td {
    border-bottom: none;
}

.brxe-text table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Première colonne = label, accent visuel */
.brxe-text table tbody td:first-child {
    font-weight: 500;
    color: var(--color-primary-light);
    white-space: nowrap;
}

/* Responsive : scroll horizontal sur mobile */
@media (max-width: 767px) {
    .brxe-text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .brxe-text table thead th,
    .brxe-text table tbody td {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }
    .brxe-text table tbody td:first-child {
        white-space: normal;
    }
}

/* ── Blockquote stylisé (résultats métier) ── */

blockquote {
    border-left: 3px solid var(--color-accent-cyber);
    padding-left: var(--space-6);
    margin: var(--space-8) 0;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-primary-light);
    font-style: normal;
    line-height: var(--leading-relaxed);
}

/* .result-quote SUPPRIMÉ — DT-52 dead code (non utilisé dans deployer) */

/* Respect prefers-reduced-motion : TOUTES les animations off */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Contraste élevé — Windows High Contrast / préférence utilisateur */
@media (prefers-contrast: more) {
    :root {
        --color-bg: #000000;
        --color-text: #ffffff;
        --color-accent: #00ffff;
    }
    .badge,
    .trust-bar {
        border-width: 3px;
    }
}

/* Forced colors (Windows High Contrast Mode) — boutons et badges visibles */
@media (forced-colors: active) {
    .btn,
    .btn-primary,
    .btn-secondary {
        border: 2px solid ButtonText;
    }
    .badge {
        border: 2px solid ButtonText;
    }
}


/* ─────────────────────────────────────────────────────────────────────
 * 7. ACCESSIBILITÉ (WCAG 2.1 AA)
 * ───────────────────────────────────────────────────────────────────── */

/* Skip to content — premier lien de la page, visible uniquement au focus */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 10000;
    padding: var(--space-3) var(--space-6);
    background-color: var(--color-accent);
    color: var(--color-primary-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}

/* Screen reader only — contenu accessible mais invisible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible — double ring premium + glow diffus (box-shadow) */
*:focus-visible {
    outline: 2px solid transparent;
    box-shadow:
        0 0 0 2px rgba(15, 23, 42, 1),
        0 0 0 4px rgba(0, 212, 255, 0.8),
        0 0 12px rgba(0, 212, 255, 0.25);
    border-radius: 4px;
    transition: box-shadow 140ms ease-out;
}

.section-dark *:focus-visible,
.section-charcoal *:focus-visible {
    box-shadow:
        0 0 0 2px rgba(10, 10, 10, 1),
        0 0 0 4px rgba(0, 212, 255, 0.8),
        0 0 12px rgba(0, 212, 255, 0.25);
}

*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    *:focus-visible {
        transition: none;
    }
}


/* ─────────────────────────────────────────────────────────────────────
 * 8. RESPONSIVE — Mobile First
 * ───────────────────────────────────────────────────────────────────── */

/* ── Small–Large : supprimé ──
 * Les tokens clamp() (--text-5xl, --text-4xl…) gèrent déjà
 * le scaling fluide 320→1440px. Pas d'escalade par breakpoint.
 * Tailles de base définies en section 2 (h1→h6).
 */

/* Mobile : titres plus petits */
@media (max-width: 639px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }

    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }
}


/* ─────────────────────────────────────────────────────────────────────
 * 9. MODERNISATION SOTA 2026 — Progressive Enhancement
 * ─────────────────────────────────────────────────────────────────────
 * Features CSS modernes avec dégradation gracieuse.
 * Les navigateurs non-compatibles ignorent les blocs @supports / @view-transition.
 * Seuil : CanIUse >90% = inclusion directe, <95% = @supports obligatoire.
 *
 * 3.1 CSS Nesting — SKIP (refactor intégral du design system, risque > bénéfice)
 * 3.2 @scope — SKIP (support ~85% < seuil 90%, BEM existant suffit)
 * ───────────────────────────────────────────────────────────────────── */

/* 3.3 — Container Queries : badges adaptatifs en conteneurs étroits (~93%) */
@supports (container-type: inline-size) {
    .trust-bar {
        container-type: inline-size;
    }

    @container (max-width: 300px) {
        .badge {
            font-size: var(--text-xs);
            padding: var(--space-1) var(--space-2);
        }
    }
}

/* 3.4 — Scroll-driven reading bar (~80%, @supports obligatoire)
 * Barre de progression de lecture, 3px accent cyber en haut de page.
 * Masquée en prefers-reduced-motion (animation décorative). */
@supports (animation-timeline: scroll()) {
    .c-reading-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--color-accent-cyber);
        transform-origin: 0 50%;
        transform: scaleX(0);
        animation: reading-progress linear both;
        animation-timeline: scroll();
        z-index: 9999;
        pointer-events: none;
    }

    @keyframes reading-progress {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }

    @media (prefers-reduced-motion: reduce) {
        .c-reading-bar {
            display: none;
        }
    }
}

/* 3.5 — View Transitions : fade subtil entre navigations de pages (~78%)
 * Progressive enhancement pure — navigateurs non-compatibles ignorent le bloc. */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: vt-fade-out 150ms ease-out;
}

::view-transition-new(root) {
    animation: vt-fade-in 150ms ease-in;
}

@keyframes vt-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes vt-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 3.6 — :has() : enrichissements UX conditionnels (~93%) */
@supports selector(:has(*)) {
    /* Accent gauche sur les champs contenant un input focusé */
    .form-field:has(input:focus, select:focus, textarea:focus),
    .form-group:has(input:focus, select:focus, textarea:focus) {
        box-shadow: inset 3px 0 0 var(--color-accent);
    }

    /* Indicateur d'erreur pour champs invalides (après interaction utilisateur) */
    .form-field:has(:invalid:not(:placeholder-shown)),
    .form-group:has(:invalid:not(:placeholder-shown)) {
        box-shadow: inset 3px 0 0 var(--color-error, #ef4444);
    }
}


/* ═══════════════════════════════════════════════════════════════════════
 * 10. PREMIUM PATTERNS — CSS Premium Catalogue v1.3
 * ═══════════════════════════════════════════════════════════════════════
 * Source  : DeepResearch Catalogue + Plan v1.3 (7 audits intégrés)
 * Phases  : 0 (Quick Wins) → 5 (Scroll-driven)
 * Budget  : Total design-system.css < 80 000 bytes
 * ═══════════════════════════════════════════════════════════════════════ */

/* ── 10.1 Gradient Text Premium (Phase 0 · QA.1) ── */

.text-gradient-cyber {
    background: linear-gradient(135deg, var(--color-accent-cyber) 0%, var(--color-accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-rendering: optimizeLegibility;
}

.text-gradient-petrole {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-rendering: optimizeLegibility;
}

.text-gradient-signature {
    background: linear-gradient(135deg, var(--color-accent) 20%, var(--color-accent-cyber) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-rendering: optimizeLegibility;
}

.text-gradient-cyber-on-light {
    background: linear-gradient(135deg, var(--color-neutral-dark) 30%, var(--color-accent-cyber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-rendering: optimizeLegibility;
}

.text-gradient-petrole-on-light {
    background: linear-gradient(135deg, var(--color-neutral-dark) 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-rendering: optimizeLegibility;
}

.text-gradient-signature-on-light {
    background: linear-gradient(135deg, var(--color-neutral-dark) 20%, var(--color-accent-cyber) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-rendering: optimizeLegibility;
}

/* ── Gradient text : PAS d'animation CSS.
 * Toute animation (même opacity seule) crée un compositor layer GPU.
 * background-clip: text rasterise le texte en texture basse résolution
 * sur ce layer → flou visible (surtout à scaling non-entier 125/150%).
 * Le H1 apparaît immédiatement = meilleur LCP + texte net. ── */
[class*="text-gradient-"][class*="animate-"] {
    animation: none;
}

@media (prefers-contrast: more) {
    .text-gradient-cyber,
    .text-gradient-petrole,
    .text-gradient-signature,
    .text-gradient-cyber-on-light,
    .text-gradient-petrole-on-light,
    .text-gradient-signature-on-light {
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        -webkit-text-fill-color: currentColor;
        color: #e0faff; /* Cyan clair — contraste max sur #0a0a0a */
        filter: none;
        text-shadow: none;
    }
}

/* ── 10.2 Accent partiel (Phase 0 · QA.4) ── */

.text-accent { color: var(--color-accent-cyber); }
.text-accent-petrole { color: var(--color-accent); }

/* ── 10.3 Underline reveal hover (Phase 1 · QA.2a) ── */

.underline-hover {
    position: relative;
    display: inline-block;
}

.underline-hover::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-cyber));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.underline-hover:hover::after,
.underline-hover:focus-visible::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .underline-hover::after {
        transition: none;
        transform: scaleX(1);
        opacity: 0;
    }
    .underline-hover:hover::after {
        opacity: 1;
    }
}

/* ── 10.4 Ligne décorative avant titre (Phase 1 · QA.3) ── */

.title-decorated::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-cyber));
    margin-bottom: var(--space-3);
    border-radius: var(--radius-full);
}

.title-decorated--center::before {
    margin-left: auto;
    margin-right: auto;
}

.title-decorated--vertical {
    position: relative;
    padding-left: 1.5rem;
}
.title-decorated--vertical::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    margin-bottom: 0;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-cyber));
}

@supports (animation-timeline: view()) {
    .title-decorated--animated::before {
        transform: scaleX(0);
        transform-origin: 0 50%;
        animation: ogma-line-grow 1ms ease-out both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }
}

@keyframes ogma-line-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── 10.5 Section separators (Phase 1 · QE.4) ── */

.section-separator {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-cyber) 100%);
    border: none;
    margin: 0;
}

@supports (animation-timeline: view()) {
    .section-separator--animated {
        transform: scaleX(0);
        transform-origin: 0 50%;
        animation: ogma-separator-grow 1ms ease-out both;
        animation-timeline: view();
        animation-range: entry 0% cover 30%;
    }
}

@keyframes ogma-separator-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .section-separator--animated {
        animation: none;
        transform: scaleX(1);
    }
}

/* ── 10.6 Status tags (Phase 2 · QC.3) ── */

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.badge-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-status--active {
    color: var(--color-success);
    border: 1px solid rgba(0, 182, 122, 0.3);
    background: rgba(0, 182, 122, 0.08);
}
.badge-status--active::before {
    background: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
}

.badge-status--new {
    color: var(--color-accent-cyber);
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
}
.badge-status--new::before {
    background: var(--color-accent-cyber);
    box-shadow: 0 0 6px var(--color-accent-cyber);
}

@keyframes ogma-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.badge-status--pulse::before {
    animation: ogma-status-pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .badge-status--pulse::before {
        animation: none;
    }
}

/* ── 10.7 Shine CTA (Phase 3 · QD.2) ── */

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 80%
    );
    transform: skewX(-20deg);
    will-change: transform;
}

.btn-shine:hover::before {
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(-20deg) translateX(350%);
}

@media (prefers-reduced-motion: reduce) {
    .btn-shine::before { display: none; }
}

@media (hover: none) {
    .btn-shine::before { display: none; }
}

/* ── 10.8 Border glow hover (Phase 3 · QD.3) ── */

.btn-border-glow {
    position: relative;
}

.btn-border-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid transparent;
    background: conic-gradient(
        from 0deg,
        var(--color-accent) 0deg,
        var(--color-accent-cyber) 90deg,
        transparent 180deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 220ms ease-out;
    pointer-events: none;
}

.btn-border-glow:hover::after,
.btn-border-glow:focus-visible::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .btn-border-glow::after {
        transition: none;
    }
}

/* ── 10.9 Blur reveal (Phase 4 · QB.1) ── */

@supports not (animation-timeline: view()) {
    .reveal-blur {
        filter: blur(8px);
        opacity: 0;
        transform: translateY(12px);
        transition: filter 600ms ease-out, opacity 600ms ease-out, transform 600ms ease-out;
        will-change: opacity, transform, filter;
    }

    .reveal-blur.is-visible {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0);
    }
}

@supports (animation-timeline: view()) {
    .reveal-blur {
        animation: ogma-blur-reveal 1ms ease-out both;
        animation-timeline: view();
        animation-range: entry 0% cover 35%;
    }
}

@keyframes ogma-blur-reveal {
    from { filter: blur(8px); opacity: 0; transform: translateY(12px); }
    to   { filter: blur(0);   opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-blur {
        filter: none;
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}

/* ── 10.10 Staggered reveal (Phase 4 · QB.2) ── */

@supports not (animation-timeline: view()) {
    .reveal-stagger > * {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 500ms ease-out, transform 500ms ease-out;
    }

    .reveal-stagger.is-visible > * {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
    .reveal-stagger > *:nth-child(2) { transition-delay: 150ms; }
    .reveal-stagger > *:nth-child(3) { transition-delay: 300ms; }
    .reveal-stagger > *:nth-child(4) { transition-delay: 450ms; }
    .reveal-stagger > *:nth-child(5) { transition-delay: 600ms; }
    .reveal-stagger > *:nth-child(6) { transition-delay: 750ms; }
}

@supports (animation-timeline: view()) {
    .reveal-stagger > * {
        animation: ogma-stagger-reveal 1ms ease-out both;
        animation-timeline: view();
        animation-range: entry 0% cover 35%;
    }

    .reveal-stagger > *:nth-child(2) { animation-range: entry 8% cover 43%; }
    .reveal-stagger > *:nth-child(3) { animation-range: entry 16% cover 51%; }
}

@keyframes ogma-stagger-reveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}

/* ── 10.11 Underline scroll-driven (Phase 5 · QA.2b) ── */

@supports (animation-timeline: view()) {
    .underline-scroll {
        position: relative;
        display: inline-block;
    }

    .underline-scroll::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--color-accent), var(--color-accent-cyber));
        transform: scaleX(0);
        transform-origin: 0 50%;
        animation: ogma-underline-scroll 1ms ease-out both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    @keyframes ogma-underline-scroll {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }
}

/* ── 10.12 Glow pulse badge (Phase 2 · QC.2 — P2 budget OK) ── */

@keyframes ogma-glow-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 255, 0.12); }
    50%      { box-shadow: 0 0 18px rgba(0, 212, 255, 0.3), 0 0 36px rgba(0, 212, 255, 0.1); }
}

.badge-glow-pulse {
    animation: ogma-glow-pulse 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .badge-glow-pulse {
        animation: none;
        box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
    }
}

/* ── 10.13 Clip-path reveal (Phase 4 · QB.3 — P2/opt budget OK) ── */

@supports not (animation-timeline: view()) {
    .reveal-clip {
        clip-path: inset(0 100% 0 0);
        transition: clip-path 700ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal-clip.is-visible {
        clip-path: inset(0 0 0 0);
    }
}

@supports (animation-timeline: view()) {
    .reveal-clip {
        clip-path: inset(0);
        animation: ogma-clip-reveal 1ms ease-out both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
        transition: none;
    }
}

@keyframes ogma-clip-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-clip {
        clip-path: none;
        animation: none;
        transition: none;
    }
}

/* ── 10.14 Shimmer gradient text (Phase 6 · QA.1bis — hero tagline only) ── */

.text-gradient-shimmer {
    background: linear-gradient(
        90deg,
        var(--color-accent-cyber) 0%,
        var(--color-accent) 50%,
        var(--color-accent-cyber) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ogma-shimmer 3s ease-in-out infinite;
}

@keyframes ogma-shimmer {
    0%   { background-position: 200% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .text-gradient-shimmer {
        animation: none;
        background-position: 0% 50%;
    }
}

/* ── 10.15 Animated gradient border badge (@property · Phase 6 · QC.1) ── */

@property --ogma-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.badge-gradient-border {
    position: relative;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: none;
    background: var(--color-neutral-dark);
    isolation: isolate;
}

.badge-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--ogma-border-angle),
        var(--color-accent-cyber) 0%,
        var(--color-accent) 33%,
        var(--color-accent-cyber) 66%,
        var(--color-accent) 100%
    );
    z-index: -1;
    animation: ogma-border-rotate 4s linear infinite;
}

.badge-gradient-border::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: var(--color-neutral-dark);
    z-index: -1;
}

@keyframes ogma-border-rotate {
    to { --ogma-border-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .badge-gradient-border::before {
        animation: none;
        background: linear-gradient(135deg, var(--color-accent-cyber), var(--color-accent));
    }
}

@media (hover: none) {
    .badge-gradient-border::before {
        animation-play-state: paused;
        background: linear-gradient(135deg, var(--color-accent-cyber), var(--color-accent));
    }
}
