/* ==========================================================================
   AI CABRA - DESIGN SYSTEM ÉPURÉ & ULTRA-MODERNE
   Sobriété, Lisibilité Haute Précision, Ergonomie & Dual Theme (OS + Choix)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables et Thèmes
   -------------------------------------------------------------------------- */
:root {
    /* Typographies système de précision */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace;

    /* Courbes & Physique d'animation discrète */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
    --transition-fast: 0.16s ease;
    --transition-medium: 0.26s ease;

    /* Rayons de courbure */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Constantes de marque sobres */
    --brand-blue: #0070F2;
    --brand-blue-hover: #0A60CC;
    --brand-accent: #6366F1;
    --brand-accent-subtle: rgba(99, 102, 241, 0.1);

    /* Max widths */
    --container-width: 1120px;
    --nav-height: 60px;
}

/* --------------------------------------------------------------------------
   THÈME CLAIR (Sobre, Blanc Pur & Nuances Ardoise)
   -------------------------------------------------------------------------- */
:root,
html[data-theme="light"] {
    color-scheme: light;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-code: #0F172A;
    --text-code: #E2E8F0;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-inverse: #FFFFFF;

    --border-subtle: #E2E8F0;
    --border-card: #E2E8F0;
    --border-active: #0070F2;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.07);

    --badge-bg-neutral: #F1F5F9;
    --badge-border-neutral: #E2E8F0;
    --badge-text-neutral: #334155;

    --badge-bg-blue: rgba(0, 112, 242, 0.07);
    --badge-border-blue: rgba(0, 112, 242, 0.2);
    --badge-text-blue: #0060D0;

    --badge-bg-green: rgba(16, 185, 129, 0.08);
    --badge-border-green: rgba(16, 185, 129, 0.25);
    --badge-text-green: #047857;

    --card-spotlight: rgba(0, 112, 242, 0.03);
    --brand-blue-glow: rgba(0, 112, 242, 0.16);
}

/* --------------------------------------------------------------------------
   THÈME SOMBRE (Sobre, Ardoise Foncé & Niveaux de Gris)
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --bg-primary: #0B0F17;
        --bg-secondary: #111827;
        --bg-surface: #141C2B;
        --bg-surface-elevated: #192438;
        --bg-glass: rgba(15, 23, 42, 0.88);
        --bg-code: #070B12;
        --text-code: #F1F5F9;

        --text-primary: #F8FAFC;
        --text-secondary: #94A3B8;
        --text-muted: #64748B;
        --text-inverse: #0B0F17;

        --border-subtle: rgba(255, 255, 255, 0.07);
        --border-card: rgba(255, 255, 255, 0.1);
        --border-active: rgba(0, 112, 242, 0.6);

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.55);

        --badge-bg-neutral: rgba(255, 255, 255, 0.06);
        --badge-border-neutral: rgba(255, 255, 255, 0.12);
        --badge-text-neutral: #CBD5E1;

        --badge-bg-blue: rgba(0, 112, 242, 0.15);
        --badge-border-blue: rgba(0, 112, 242, 0.3);
        --badge-text-blue: #5AB2FF;

        --badge-bg-green: rgba(16, 185, 129, 0.14);
        --badge-border-green: rgba(16, 185, 129, 0.3);
        --badge-text-green: #34D399;

        --card-spotlight: rgba(255, 255, 255, 0.03);
        --brand-blue-glow: rgba(56, 189, 248, 0.18);
    }
}

html[data-theme="dark"] {
    color-scheme: dark;

    --bg-primary: #0B0F17;
    --bg-secondary: #111827;
    --bg-surface: #141C2B;
    --bg-surface-elevated: #192438;
    --bg-glass: rgba(15, 23, 42, 0.88);
    --bg-code: #070B12;
    --text-code: #F1F5F9;

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-inverse: #0B0F17;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.1);
    --border-active: rgba(0, 112, 242, 0.6);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.55);

    --badge-bg-neutral: rgba(255, 255, 255, 0.06);
    --badge-border-neutral: rgba(255, 255, 255, 0.12);
    --badge-text-neutral: #CBD5E1;

    --badge-bg-blue: rgba(0, 112, 242, 0.15);
    --badge-border-blue: rgba(0, 112, 242, 0.3);
    --badge-text-blue: #5AB2FF;

    --badge-bg-green: rgba(16, 185, 129, 0.14);
    --badge-border-green: rgba(16, 185, 129, 0.3);
    --badge-text-green: #34D399;

    --card-spotlight: rgba(255, 255, 255, 0.03);
    --brand-blue-glow: rgba(56, 189, 248, 0.18);
}

/* --------------------------------------------------------------------------
   Reset & Fondations
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Équilibrage typographique et prévention des retours à la ligne orphelins */
h1, h2, h3, h4, h5, h6,
.hero-title,
.page-title,
.section-title,
.service-card-title,
.card-title,
.pillar-title,
.column-header h4,
.contact-band-title {
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
}

p,
.hero-subtitle,
.hero-tagline,
.page-lead,
.section-desc,
.service-card-desc,
.contact-band-text,
.footer-tagline,
.footer-contact-desc {
    text-wrap: pretty;
    overflow-wrap: break-word;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.65;
    font-size: 16px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    overflow-x: hidden;
    position: relative;
}

/* Bascule clair/sombre : des centaines d'éléments portent `transition: all`.
   Les animer tous en même temps donne une bascule molle et saccadée. Le temps
   d'une image, on les coupe : le nouveau thème apparaît d'un bloc. */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
    transition: none !important;
}

/* Discrète lueur d'ambiance au sommet */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1000px, 100vw);
    height: 380px;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 112, 242, 0.07), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.modern-wrapper,
.main-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px 60px;
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Navigation Flottante Sobre (Pill Island)
   -------------------------------------------------------------------------- */
.modern-header {
    position: sticky;
    top: 14px;
    z-index: 100;
    max-width: var(--container-width);
    margin: 14px auto 0;
    padding: 0 24px;
}

.modern-nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 14px 0 18px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color var(--transition-fast);
    position: relative;
    overflow: hidden;
}

html[data-theme="dark"] .modern-nav-pill {
    background: rgba(15, 23, 42, 0.74);
}

@media (prefers-reduced-transparency: reduce) {
    .modern-nav-pill,
    html[data-theme="dark"] .modern-nav-pill {
        background: var(--bg-surface);
    }
}

/* Barre de progression de lecture discrète */
.nav-scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue), #38BDF8);
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.08s ease-out;
}

.modern-nav-pill:hover {
    border-color: var(--border-active);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.015em;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-logo {
    display: block;
    width: 26px;
    height: 29px;
    transition: filter var(--transition-fast);
}

/* Rendu blanc haute lisibilité du logo en mode sombre */
@media (prefers-color-scheme: dark) {
    html[data-theme="dark"] .brand-logo,
    html[data-theme="dark"] .brand img {
        filter: brightness(0) invert(1);
    }
}

html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .brand img {
    filter: brightness(0) invert(1);
}

html[data-theme="light"] .brand-logo,
html[data-theme="light"] .brand img {
    filter: none;
}

/* Accents Typographiques Bicolores Haute Précision */
.brand-text-accent,
.hero-title .accent,
.hero-title .brand-text-accent,
.page-title .accent,
.page-title .brand-text-accent,
.section-title .accent,
.section-title .brand-text-accent {
    color: var(--brand-blue);
    background: linear-gradient(135deg, #0070F2 0%, #0284C7 50%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

html[data-theme="dark"] .brand-text-accent,
html[data-theme="dark"] .hero-title .accent,
html[data-theme="dark"] .hero-title .brand-text-accent,
html[data-theme="dark"] .page-title .accent,
html[data-theme="dark"] .page-title .brand-text-accent,
html[data-theme="dark"] .section-title .accent,
html[data-theme="dark"] .section-title .brand-text-accent {
    color: #38BDF8;
    background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 50%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.nav-menu-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--badge-bg-neutral);
}

.nav-link[aria-current="page"] {
    color: var(--brand-blue);
    background-color: var(--badge-bg-blue);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Bouton Sélecteur de Thème Sobre */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.theme-toggle-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sélecteur de Langue */
.lang-switch-badge {
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.lang-switch-badge:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* Boutons d'action sobres */
.btn-primary,
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--brand-blue);
    color: #FFFFFF !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 112, 242, 0.3);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary:hover,
.nav-cta-btn:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-1px);
}

.btn-primary:active,
.nav-cta-btn:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-1px);
}

/* Hamburger mobile */
.nav-mobile-toggle,
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.nav-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Hero Section Sobre
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 70px 0 45px;
    text-align: center;
    position: relative;
}

.hero-pill-badge,
.hero-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--badge-bg-neutral);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 22px;
    text-decoration: none;
    max-width: 100%;
    text-wrap: balance;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.hero-pill-badge:hover,
.hero-eyebrow-pill:hover {
    border-color: var(--brand-blue);
    color: var(--text-primary);
}

.status-dot-sober,
.hero-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10B981;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-title .accent {
    color: var(--brand-blue);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.hero-tagline {
    font-size: 1.02rem;
    font-weight: 450;
    color: var(--text-primary);
    max-width: 640px;
    margin: 0 auto 32px;
    padding: 10px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.hero-cta-group .btn-primary,
.hero-cta-group .btn-secondary,
.page-hero-actions .btn-primary,
.page-hero-actions .btn-secondary {
    padding: 11px 24px;
    font-size: 0.92rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Terminal Quick-Install Sobre (Intégré dans la carte technique) */
.terminal-install-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    background: var(--bg-code);
    color: var(--text-code);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin: 12px 0 16px;
    width: fit-content;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.terminal-install-bar:hover {
    border-color: rgba(0, 112, 242, 0.4);
    box-shadow: var(--shadow-md);
}

.terminal-prompt {
    color: #10B981;
    user-select: none;
}

.terminal-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    transition: color var(--transition-fast);
}

.terminal-copy-btn:hover {
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Section Prestations & Offre de Services
   -------------------------------------------------------------------------- */
.services-section {
    margin: 60px 0 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 20px;
    margin-top: 24px;
}

.service-card {
    min-width: 0;
    overflow-wrap: anywhere;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-card-header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--badge-bg-blue);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 20px;
    height: 20px;
}

.service-card-title {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-card-desc {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-card-features {
    list-style: none;
    margin-bottom: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.service-card-features li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
    line-height: 1.4;
}

.service-card-features li::before {
    content: "✓";
    color: var(--brand-blue);
    font-weight: 700;
    margin-right: 8px;
}

.service-card .card-link-primary {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Comparateur Stratégique Interactif (Approche Traditionnelle vs AI Cabra)
   -------------------------------------------------------------------------- */
.comparison-section-box {
    margin-top: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-toggle-group {
    display: inline-flex;
    background: var(--bg-body);
    padding: 3px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-card);
    gap: 3px;
}

.comparison-toggle-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 550;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.comparison-toggle-btn:hover {
    color: var(--text-primary);
}

.comparison-toggle-btn.active {
    background: var(--brand-blue);
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 112, 242, 0.25);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 840px) {
    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Filtrage dynamique interactif */
.comparison-grid[data-active-view="legacy"] .aicabra-column {
    display: none;
}
.comparison-grid[data-active-view="aicabra"] .legacy-column {
    display: none;
}
@media (min-width: 840px) {
    .comparison-grid[data-active-view="all"] .legacy-column,
    .comparison-grid[data-active-view="all"] .aicabra-column {
        display: flex;
    }
}

.comparison-column {
    background: var(--bg-body);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.aicabra-column {
    border-color: rgba(0, 112, 242, 0.35);
    background: linear-gradient(180deg, rgba(0, 112, 242, 0.035) 0%, transparent 100%), var(--bg-body);
}

.column-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.column-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.column-tag.highlight {
    color: var(--brand-blue);
}

.column-header h4 {
    margin: 0 0 4px;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
}

.column-header p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.comparison-list li strong {
    color: var(--text-primary);
    display: block;
    font-size: 0.91rem;
    margin-bottom: 2px;
}

.comp-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.comp-cross {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.comp-check {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

/* --------------------------------------------------------------------------
   Bento Grid 2.0 : Nos Programmes
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin: 60px 0 32px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 15px;
}

/* Carte Bento Sobre */
.bento-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.bento-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-sapfx { grid-column: span 12; }
.bento-cabria { grid-column: span 12; }
.bento-cabraflow { grid-column: span 12; }
.bento-sovereignty { grid-column: span 12; }

@media (min-width: 960px) {
    .bento-sapfx { grid-column: span 8; }
    .bento-cabria { grid-column: span 4; }
    .bento-cabraflow { grid-column: span 6; }
    .bento-sovereignty { grid-column: span 6; }
}

.card-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-live {
    background: var(--badge-bg-green);
    border: 1px solid var(--badge-border-green);
    color: var(--badge-text-green);
}

.badge-neutral {
    background: var(--badge-bg-neutral);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.badge-blue {
    background: var(--badge-bg-blue);
    border: 1px solid var(--badge-border-blue);
    color: var(--badge-text-blue);
}

.card-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Onglets de code sobres */
.code-tab-container {
    background: var(--bg-code);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 12px 0 20px;
}

.code-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
    padding-right: 8px;
}

.terminal-window-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.85;
}

.dot-close { background-color: #EF4444; }
.dot-min { background-color: #F59E0B; }
.dot-max { background-color: #10B981; }

.tab-buttons {
    display: flex;
    gap: 4px;
    /* Sans cette ligne, la bande d'onglets impose sa largeur de contenu et
       vient se superposer au bouton « Copier » sur petit écran. */
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 550;
    border-radius: var(--radius-xs);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: #FFFFFF;
}

.tab-btn.active {
    color: #FFFFFF;
    background: var(--brand-blue);
}

.code-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.code-copy-btn:hover {
    color: #FFFFFF;
}

.code-tab-panel {
    display: none;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-code);
    overflow-x: auto;
}

.code-tab-panel.active {
    display: block;
}

.code-tab-panel pre {
    margin: 0;
    white-space: pre;
}

.kw { color: #A5B4FC; font-weight: 600; }
.str { color: #38BDF8; }
.cmt { color: #64748B; font-style: italic; }
.num { color: #F59E0B; }

.card-links {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 600;
}

.card-link-primary {
    color: var(--brand-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.card-link-primary:hover {
    color: var(--brand-blue-hover);
    transform: translateX(2px);
}

.card-link-secondary {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-link-secondary:hover {
    color: var(--text-primary);
}

/* Visualisation CabrIA Sobre */
.cabria-visual-flow {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin: 12px 0 20px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.flow-step:last-child {
    border-bottom: none;
}

.flow-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--badge-bg-neutral);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Visualisation CabraFlow Sobre */
.cabraflow-visual {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
    margin: 12px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    text-align: center;
}

.flow-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.flow-bubble-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    font-size: 0.95rem;
}

.flow-bubble-icon svg {
    width: 18px;
    height: 18px;
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Bandeau de Chiffres & Preuves Vérifiées (Sober Navy Banner)
   -------------------------------------------------------------------------- */
.proof-section,
.kpi-hud-section {
    margin: 55px 0;
}

.proof-banner {
    background: #0D1726;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.proof-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 30px;
}

.proof-intro h3 {
    color: #FFFFFF;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.proof-intro p {
    color: #94A3B8;
    font-size: 0.98rem;
    line-height: 1.6;
}

.kpi-grid,
.kpi-hud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    text-align: center;
}

.kpi-card,
.kpi-hud-card {
    padding: 20px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.kpi-hud-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
}

.kpi-card:hover,
.kpi-hud-card:hover {
    border-color: rgba(0, 112, 242, 0.5);
    transform: translateY(-2px);
}

.kpi-number,
.kpi-hud-number {
    display: block;
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    font-weight: 750;
    font-family: var(--font-mono);
    color: #5AB2FF;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.kpi-hud-number {
    color: var(--brand-blue);
}

.kpi-card:nth-child(even) .kpi-number {
    color: #C084FC;
}

.kpi-label,
.kpi-hud-label {
    display: block;
    font-size: 0.88rem;
    color: #CBD5E1;
    font-weight: 450;
    line-height: 1.4;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.kpi-hud-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.kpi-hud-subtext {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.proof-footer-note {
    text-align: center;
    margin-top: 25px;
    font-size: 0.88rem;
    color: #64748B;
}

.proof-footer-note a {
    color: #5AB2FF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Section Expertise Technique
   -------------------------------------------------------------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.pillar-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--badge-bg-blue);
    border: 1px solid var(--badge-border-blue);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.pillar-icon svg {
    width: 20px;
    height: 20px;
}

.pillar-title {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pillar-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   BANDEAU CONTACT UNIFIÉ (.contact-band)
   Composant unique sur les 14 pages. Grille à deux pistes : le discours à
   gauche, le panneau d'action à droite. Les deux pistes utilisent minmax(0, …)
   pour que le texte se replie au lieu d'être écrasé par les boutons.
   -------------------------------------------------------------------------- */
.contact-band {
    position: relative;
    overflow: hidden;
    margin: 64px 0 36px;
    padding: 38px 34px;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 34px;
}

/* Filet supérieur dégradé, purement décoratif. */
.contact-band::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-accent) 100%);
}

/* Halo diffus, cantonné au coin droit pour ne jamais passer sous le texte. */
.contact-band::after {
    content: '';
    position: absolute;
    top: -140px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-blue-glow, rgba(0, 112, 242, 0.16)) 0%, transparent 70%);
    pointer-events: none;
}

.contact-band-body,
.contact-band-panel {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.contact-band-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brand-blue);
}

.contact-band-title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-wrap: balance;
}

.contact-band-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-band-points {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.contact-band-points li {
    position: relative;
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.contact-band-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
}

.contact-band-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

/* Les libellés français sont longs : on autorise le retour à la ligne dans le
   bouton plutôt que de rogner le texte. */
.contact-band-panel .btn-primary,
.contact-band-panel .btn-secondary {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.contact-band-note {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.contact-band-note .email-link {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* Bouton de copie injecté par contact.js à côté de l'adresse. Un lien mailto
   ne produit rien de visible sans client mail installé : ce bouton garantit
   qu'une action donne toujours un résultat. */
.copy-mail {
    padding: 3px 10px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.copy-mail:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.copy-mail.is-done {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.45);
}

html[data-theme="dark"] .copy-mail.is-done {
    color: #34D399;
}

@media (max-width: 900px) {
    .contact-band {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .contact-band {
        padding: 26px 18px;
    }
    .contact-band-points {
        flex-direction: column;
        gap: 8px;
    }
}

/* --------------------------------------------------------------------------
   Responsive & Accessibilité
   -------------------------------------------------------------------------- */
@media (max-width: 840px) {
    .modern-wrapper,
    .main-content {
        padding: 0 16px 40px;
    }

    .nav-menu-desktop {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: block;
    }

    .modern-nav-pill.mobile-open .nav-menu-desktop {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(var(--nav-height) + 10px);
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border: 1px solid var(--border-card);
        border-radius: var(--radius-lg);
        padding: 16px;
        box-shadow: var(--shadow-lg);
        gap: 10px;
    }

    .modern-nav-pill.mobile-open .nav-link {
        width: 100%;
        padding: 8px 14px;
    }

    .hero-section {
        padding: 40px 0 25px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-sapfx, .bento-cabria, .bento-cabraflow, .bento-sovereignty {
        grid-column: span 1;
    }

    .bento-card {
        padding: 22px;
    }
}

/* ==========================================================================
   COMPOSANTS DE SOUS-PAGES (Produits, Guides, FAQ, Glossaire, R&D)
   ========================================================================== */

/* Page Hero & Breadcrumb - Centré & Harmonisé sur tout le site */
.page-hero {
    padding: 56px 0 36px;
    text-align: center;
    position: relative;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0 auto 18px;
    list-style: none;
    padding: 0;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--brand-blue);
}

.breadcrumb-separator {
    color: var(--border-card);
}

.page-hero .hero-eyebrow-pill,
.page-hero .hero-pill-badge {
    margin: 0 auto 20px;
}

.page-title {
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    max-width: 960px;
    margin: 0 auto 18px;
    text-align: center;
}

.page-lead {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 auto;
}

/* Grilles & Cartes Contenu */
.content-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 28px 0;
}

.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0;
}

.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.content-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.content-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.content-card p {
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* Feature Checklist */
.feature-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.checklist-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ Accordion */
.faq-search-container {
    margin: 24px 0 32px;
    position: relative;
}

.search-input-box {
    position: relative;
    max-width: 640px;
    margin: 0 auto 24px;
}

.search-input-box input {
    width: 100%;
    padding: 12px 18px 12px 42px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-card);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-box input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 242, 0.15);
}

.search-input-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.faq-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 32px;
    justify-content: center;
    max-width: 820px;
}

.faq-filter-btn,
.faq-filter-pill {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-card);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.faq-filter-btn:hover,
.faq-filter-pill:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.faq-filter-btn.active,
.faq-filter-pill.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #FFFFFF !important;
}

.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.open {
    border-color: rgba(0, 112, 242, 0.4);
}

.faq-question-btn {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    text-wrap: pretty;
    overflow-wrap: break-word;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question-btn:hover {
    color: var(--brand-blue);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--brand-blue);
}

.faq-answer-content {
    display: none;
    padding: 0 20px 20px;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-secondary);
    border-top: 1px solid transparent;
}

.faq-item.open .faq-answer-content {
    display: block;
    border-top-color: var(--border-subtle);
    padding-top: 14px;
}

/* Glossaire Navigation & Filtres */
.glossary-category-nav,
.glossary-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    max-width: 820px;
}

.glossary-category-pill,
.glossary-az-btn,
.az-btn {
    width: auto;
    min-height: 40px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-card);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glossary-category-pill:hover,
.glossary-az-btn:hover,
.az-btn:hover {
    border-color: var(--brand-blue);
    background: var(--badge-bg-blue);
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.glossary-category-pill:focus-visible,
.glossary-az-btn:focus-visible,
.az-btn:focus-visible {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 242, 0.2);
}

#ia,
#qa,
#sap,
#briques {
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.glossary-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glossary-entry-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--nav-height) + 20px);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.glossary-entry-card:hover {
    border-color: rgba(0, 112, 242, 0.4);
    transform: translateY(-1px);
}

.glossary-card-header,
.glossary-term-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.glossary-card-title,
.glossary-term-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.glossary-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--badge-bg-blue);
    border: 1px solid var(--badge-border-blue);
    color: var(--badge-text-blue);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.glossary-card-desc,
.glossary-term-def {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

/* Timeline & Steps (Guides et Tutoriels) */
.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
    position: relative;
}

.timeline-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-width: 0;
}

.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(0, 112, 242, 0.15);
}

.step-card {
    flex: 1;
    /* Sans cette ligne, un bloc de code non repliable impose sa largeur au
       conteneur souple et fait déborder toute la page sur mobile. */
    min-width: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

/* ==========================================================================
   SVG SCHEMA SUPPORT : STYLE SAMSUNG ONE UI (SOUVERAIN & ADAPTATIF)
   Élégance One UI : Rayons de courbure squircle (rx=16/18), surfaces douces,
   pastilles pills aérées, contraste absolu en Clair et Sombre, zéro superposition.
   ========================================================================== */
.schema-wrap {
    margin: 32px 0 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-card);
    background: var(--bg-surface);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.schema-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Bascule responsive Paysage / Portrait (Zéro superposition / double affichage) */
.schema-landscape {
    display: block !important;
}

.schema-portrait {
    display: none !important;
}

@media (max-width: 680px) {
    .schema-wrap {
        padding: 16px 10px;
    }
    .schema-landscape {
        display: none !important;
    }
    .schema-portrait {
        display: block !important;
    }
}

.schema-caption {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 14px;
    font-style: italic;
}

/* --- Thème One UI en Mode Clair (Défaut) --- */
.schema-wrap .oui-card {
    fill: #FFFFFF;
    stroke: #E2E8F0;
    stroke-width: 1.5px;
    transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.schema-wrap .oui-card-highlight {
    fill: #F0F6FE;
    stroke: #BFDBFE;
    stroke-width: 1.5px;
}

.schema-wrap .oui-card-indigo {
    fill: #F5F3FF;
    stroke: #DDD6FE;
    stroke-width: 1.5px;
}

.schema-wrap .oui-card-cyan {
    fill: #F0F9FF;
    stroke: #BAE6FD;
    stroke-width: 1.5px;
}

.schema-wrap .oui-card-purple {
    fill: #FAF5FF;
    stroke: #E9D5FF;
    stroke-width: 1.5px;
}

.schema-wrap .oui-container-dashed {
    fill: #F8FAFC;
    stroke: #93C5FD;
    stroke-width: 1.5px;
    stroke-dasharray: 6 5;
}

.schema-wrap .oui-card-inner-left {
    fill: #EFF6FF;
    stroke: #BFDBFE;
    stroke-width: 1.2px;
}

.schema-wrap .oui-card-inner-right {
    fill: #F0F9FF;
    stroke: #BAE6FD;
    stroke-width: 1.2px;
}

.schema-wrap .oui-pill-bottom {
    fill: #0F172A;
    stroke: #1E293B;
    stroke-width: 1.5px;
}

/* Pastilles One UI (Pills) en Mode Clair */
.schema-wrap .oui-badge-blue-rect { fill: #DBEAFE; }
.schema-wrap .oui-badge-blue-text { fill: #1D4ED8; }
.schema-wrap .oui-badge-indigo-rect { fill: #EDE9FE; }
.schema-wrap .oui-badge-indigo-text { fill: #5B21B6; }
.schema-wrap .oui-badge-cyan-rect { fill: #E0F2FE; }
.schema-wrap .oui-badge-cyan-text { fill: #0369A1; }
.schema-wrap .oui-badge-purple-rect { fill: #F3E8FF; }
.schema-wrap .oui-badge-purple-text { fill: #6B21A8; }
.schema-wrap .oui-badge-green-rect { fill: #DCFCE7; }
.schema-wrap .oui-badge-green-text { fill: #15803D; }

/* Textes One UI en Mode Clair */
.schema-wrap .oui-text-title { fill: #0F172A; }
.schema-wrap .oui-text-desc { fill: #475569; }
.schema-wrap .oui-text-accent { fill: #0070F2; }
.schema-wrap .oui-text-indigo { fill: #4F46E5; }
.schema-wrap .oui-text-purple { fill: #7C3AED; }
.schema-wrap .oui-text-white { fill: #FFFFFF; }

/* Flèches et Connecteurs One UI en Mode Clair */
.schema-wrap .oui-arrow {
    stroke: #0070F2;
    stroke-width: 2.2px;
    fill: none;
}

.schema-wrap .oui-arrow-loop {
    stroke: #0070F2;
    stroke-width: 2.2px;
    stroke-dasharray: 6 4;
    fill: none;
}

.schema-wrap .oui-marker {
    fill: #0070F2;
}

/* ==========================================================================
   MODE SOMBRE : STYLE SAMSUNG ONE UI DARK
   Surfaces sombres raffinées (#111827 / #132238 / #1A1838 / #22123B),
   accents lumineux néon (#38BDF8, #818CF8, #C084FC), lisibilité absolue.
   ========================================================================== */
html[data-theme="dark"] .schema-wrap {
    background: #0B132B !important;
    border-color: #1E293B !important;
}

/* Cartes One UI Dark */
html[data-theme="dark"] .schema-wrap .oui-card {
    fill: #111827 !important;
    stroke: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .schema-wrap .oui-card-highlight {
    fill: #132238 !important;
    stroke: rgba(56, 189, 248, 0.35) !important;
}

html[data-theme="dark"] .schema-wrap .oui-card-indigo {
    fill: #1A1838 !important;
    stroke: rgba(129, 140, 248, 0.35) !important;
}

html[data-theme="dark"] .schema-wrap .oui-card-cyan {
    fill: #0B1F38 !important;
    stroke: rgba(56, 189, 248, 0.35) !important;
}

html[data-theme="dark"] .schema-wrap .oui-card-purple {
    fill: #22123B !important;
    stroke: rgba(192, 132, 252, 0.35) !important;
}

html[data-theme="dark"] .schema-wrap .oui-container-dashed {
    fill: #0F172A !important;
    stroke: rgba(56, 189, 248, 0.4) !important;
}

html[data-theme="dark"] .schema-wrap .oui-card-inner-left {
    fill: #14233D !important;
    stroke: rgba(96, 165, 250, 0.3) !important;
}

html[data-theme="dark"] .schema-wrap .oui-card-inner-right {
    fill: #0E223D !important;
    stroke: rgba(56, 189, 248, 0.3) !important;
}

html[data-theme="dark"] .schema-wrap .oui-pill-bottom {
    fill: #08101E !important;
    stroke: #38BDF8 !important;
}

/* Pastilles One UI Dark */
html[data-theme="dark"] .schema-wrap .oui-badge-blue-rect { fill: #1E3A5F !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-blue-text { fill: #7DD3FC !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-indigo-rect { fill: #2E2A72 !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-indigo-text { fill: #C7D2FE !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-cyan-rect { fill: #0C4A6E !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-cyan-text { fill: #7DD3FC !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-purple-rect { fill: #4C1D95 !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-purple-text { fill: #E9D5FF !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-green-rect { fill: #064E3B !important; }
html[data-theme="dark"] .schema-wrap .oui-badge-green-text { fill: #6EE7B7 !important; }

/* Textes One UI Dark */
html[data-theme="dark"] .schema-wrap .oui-text-title { fill: #F8FAFC !important; }
html[data-theme="dark"] .schema-wrap .oui-text-desc { fill: #CBD5E1 !important; }
html[data-theme="dark"] .schema-wrap .oui-text-accent { fill: #38BDF8 !important; }
html[data-theme="dark"] .schema-wrap .oui-text-indigo { fill: #A5B4FC !important; }
html[data-theme="dark"] .schema-wrap .oui-text-purple { fill: #D8B4FE !important; }
html[data-theme="dark"] .schema-wrap .oui-text-white { fill: #FFFFFF !important; }

/* Flèches et Connecteurs One UI Dark */
html[data-theme="dark"] .schema-wrap .oui-arrow {
    stroke: #38BDF8 !important;
}

html[data-theme="dark"] .schema-wrap .oui-arrow-loop {
    stroke: #38BDF8 !important;
}

html[data-theme="dark"] .schema-wrap .oui-marker {
    fill: #38BDF8 !important;
}

/* Rétrocompatibilité / Fallback universel Dark Mode */
html[data-theme="dark"] .schema-wrap svg line:not([class*="oui-"]),
html[data-theme="dark"] .schema-wrap svg .loop-arrow {
    stroke: #38BDF8 !important;
}

html[data-theme="dark"] .schema-wrap svg marker path:not([class*="oui-"]) {
    fill: #38BDF8 !important;
}

@media (max-width: 768px) {
    .content-grid-2, .content-grid-3 {
        grid-template-columns: 1fr;
    }

    .timeline-step {
        flex-direction: column;
        gap: 12px;
        /* En colonne, `flex-start` laisserait la carte prendre sa largeur de
           contenu (un bloc de code non replié) et déborder de la page. */
        align-items: stretch;
    }
}

@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;
    }
}

/* ==========================================================================
   STRUCTURES DE SECTIONS, SCHÉMAS & CARTES
   ========================================================================== */
.content-section {
    padding: 42px 0;
    position: relative;
}

.section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.section-card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-md);
}

/* Schémas SVG Paysage / Portrait gérés dans .schema-wrap */

.schema-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Lien direct vers l'adresse de contact */
.email-link {
    color: var(--brand-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.email-link:hover {
    color: var(--brand-blue-hover);
}

/* ==========================================================================
   TIROIR DE NAVIGATION MOBILE (Overlay Drawer)
   ========================================================================== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    /* Le panneau est parké hors écran à droite : sans cette coupe, il allonge
       la zone de défilement horizontal de la page. */
    overflow: hidden;
    transition: opacity var(--transition-medium);
}

.mobile-nav-drawer.active,
.mobile-nav-drawer.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.mobile-nav-drawer.active .mobile-nav-content,
.mobile-nav-drawer.open .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-close-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.mobile-close-btn:hover {
    color: var(--brand-blue);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-links a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--badge-bg-blue);
    color: var(--brand-blue);
}

.mobile-nav-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-nav-actions .btn-primary,
.mobile-nav-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
    white-space: nowrap;
}

/* ==========================================================================
   PIED DE PAGE HAUT DE GAMME & RAFFINÉ (Ultra-fin, 2026 Edition)
   ========================================================================== */
.modern-footer {
    position: relative;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

/* Filet laser accentuel discret au sommet du footer */
.modern-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 112, 242, 0.45) 30%, rgba(16, 185, 129, 0.4) 70%, transparent 100%);
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr;
    gap: 36px;
    align-items: start;
    width: 100%;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Colonne Marque */
.footer-brand .brand-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 2px;
}

.footer-brand .brand-logo {
    display: block;
    width: 28px;
    height: 31px;
    object-fit: contain;
}

.footer-brand .brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    max-width: 330px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 2.2s infinite ease-in-out;
    flex-shrink: 0;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* En-têtes de colonnes */
.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin: 0 0 6px;
}

/* Listes de liens épurés */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--brand-blue);
    transform: translateX(3px);
}

/* Micro-badge de statut de lien */
.footer-link-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 112, 242, 0.06);
    border: 1px solid rgba(0, 112, 242, 0.14);
    color: var(--brand-blue);
    line-height: 1.3;
}

/* Boîte Audit & Conseil interactive */
.footer-contact-box {
    padding: 16px;
    border-radius: var(--radius-md, 12px);
    background: var(--bg-surface-elevated, #ffffff);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm, 8px);
    background: linear-gradient(135deg, var(--brand-blue) 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 112, 242, 0.22);
    transition: all var(--transition-fast);
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
}

.footer-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 112, 242, 0.35);
    color: #ffffff;
}

.footer-cta-btn svg {
    transition: transform var(--transition-fast);
}

.footer-cta-btn:hover svg {
    transform: translateX(2px);
}

/* Sous-barre inférieure fine */
.footer-bottom-bar {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.80rem;
    color: var(--text-muted);
}

.footer-bottom-copy strong {
    color: var(--text-primary);
    font-weight: 700;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.80rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
}

.footer-bottom-sep {
    color: var(--border-subtle);
    user-select: none;
}

/* Adaptation Dark Mode spécifique */
[data-theme="dark"] .footer-link-tag {
    background: rgba(0, 112, 242, 0.15);
    border-color: rgba(0, 112, 242, 0.3);
    color: #38bdf8;
}

[data-theme="dark"] .footer-contact-box {
    background: rgba(19, 30, 48, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .hero-cta-group,
    .page-hero-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-secondary,
    .page-hero-actions .btn-primary,
    .page-hero-actions .btn-secondary {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 18px !important;
        font-size: clamp(0.85rem, 3vw, 0.92rem) !important;
        white-space: normal !important;
    }

    .tab-buttons {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .tab-buttons::-webkit-scrollbar {
        display: none;
    }

    .comparison-toggle-group {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .faq-filters-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .glossary-category-nav,
    .glossary-az-nav {
        gap: 8px;
        margin-bottom: 28px;
    }
    .glossary-category-pill,
    .glossary-az-btn,
    .az-btn {
        width: auto;
        min-height: 36px;
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    .kpi-grid,
    .kpi-hud-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .kpi-card,
    .kpi-hud-card {
        padding: 14px 8px !important;
    }
    .kpi-number,
    .kpi-hud-number {
        font-size: 1.8rem !important;
    }
    .kpi-label,
    .kpi-hud-label {
        font-size: 0.78rem !important;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-secondary,
    .page-hero-actions .btn-primary,
    .page-hero-actions .btn-secondary {
        padding: 11px 12px !important;
        font-size: 0.84rem !important;
        letter-spacing: -0.01em;
    }

    .hero-title {
        font-size: 2rem;
    }
    .page-title {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   LOGO EN MODE SOMBRE (Inversion blanche pour contraste absolu)
   ========================================================================== */
html[data-theme="dark"] .brand-logo,
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .brand-wrapper img {
    filter: brightness(0) invert(1);
}

/* Le formulaire de contact est un <dialog> natif construit par
   contact-form.js et habillé par contact-form.css. */
.cf-actions button[type="submit"] {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    white-space: nowrap;
    text-align: center;
}

.open-contact-modal {
    cursor: pointer;
}

.kpi-animated-number {
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   ILLUSTRATIONS VECTORIELLES MAISON (MODERNES, ÉPURÉES & SOUVERAINES)
   Format 100% SVG inline, style One UI, contrastes clair/sombre, zéro bitmap.
   ========================================================================== */

.hero-illustration-wrapper {
    margin: 36px auto 0;
    max-width: 980px;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px -12px rgba(0, 112, 242, 0.08), 0 0 0 1px rgba(0, 112, 242, 0.04);
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-illustration-wrapper:hover {
    border-color: rgba(0, 112, 242, 0.28);
    box-shadow: 0 20px 48px -12px rgba(0, 112, 242, 0.14), 0 0 0 1px rgba(0, 112, 242, 0.08);
}

.hero-illustration-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-illustration-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-illustration-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.hero-illustration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-illustration-body {
    padding: 18px 20px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration-body svg {
    width: 100%;
    height: auto;
    max-height: 380px;
    display: block;
}

/* Schéma Tri-Canal SAPFX */
.sapfx-architecture-box {
    margin: 24px auto 28px;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 18px 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast);
}

.sapfx-architecture-box:hover {
    border-color: rgba(0, 112, 242, 0.25);
}

.sapfx-architecture-box svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Mini-illustrations Bento Grid */
.bento-mini-illustration {
    margin: 16px 0;
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 12px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.bento-mini-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

.bento-cabria .bento-mini-illustration,
.bento-sovereignty .bento-mini-illustration {
    margin: 18px 0;
    padding: 10px 8px;
}

.bento-cabria .bento-mini-illustration {
    flex: 1;
    align-items: center;
}

/* Jalon Timeline Quickstart */
.quickstart-roadmap-box {
    margin: 20px 0 28px;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    box-shadow: var(--shadow-sm);
}

.quickstart-roadmap-box svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   CLASSES VECTORIELLES COMMUNES POUR LES SCHÉMAS SVG (LIGHT & DARK)
   ========================================================================== */

/* Cartes & Conteneurs */
.illus-card {
    fill: #FFFFFF;
    stroke: #E2E8F0;
    stroke-width: 1.5px;
    transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.illus-card-accent {
    fill: #F0F6FE;
    stroke: #BFDBFE;
    stroke-width: 1.5px;
    transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.illus-card-hub {
    fill: #F8FAFC;
    stroke: #0070F2;
    stroke-width: 2px;
    transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.illus-card-dashed {
    fill: #F8FAFC;
    stroke: #93C5FD;
    stroke-width: 1.5px;
    stroke-dasharray: 6 4;
}

/* Badges Pastilles (Pills) */
.illus-badge-blue-rect { fill: #DBEAFE; }
.illus-badge-blue-text { fill: #0070F2; }

.illus-badge-green-rect { fill: #DCFCE7; }
.illus-badge-green-text { fill: #15803D; }

.illus-badge-neutral-rect { fill: #F1F5F9; }
.illus-badge-neutral-text { fill: #475569; }

/* Textes Vectoriels */
.illus-text-title { fill: #0F172A; }
.illus-text-desc { fill: #475569; }
.illus-text-muted { fill: #64748B; }
.illus-text-blue { fill: #0070F2; }
.illus-text-green { fill: #10B981; }

/* Tracés & Flèches */
.illus-line-blue {
    stroke: #0070F2;
    stroke-width: 2px;
    fill: none;
}

.illus-line-dashed {
    stroke: #0070F2;
    stroke-width: 1.8px;
    stroke-dasharray: 6 4;
    fill: none;
}

.illus-line-muted {
    stroke: #CBD5E1;
    stroke-width: 1.5px;
    stroke-dasharray: 4 4;
    fill: none;
}

.illus-marker-blue { fill: #0070F2; }
.illus-marker-green { fill: #10B981; }

/* --- Mode Sombre Adaptatif --- */
html[data-theme="dark"] .hero-illustration-wrapper {
    background: #0B132B;
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.08);
}

html[data-theme="dark"] .hero-illustration-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.7), 0 0 28px rgba(56, 189, 248, 0.16);
}

html[data-theme="dark"] .hero-illustration-header {
    background: #111E38;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sapfx-architecture-box {
    background: #0B132B;
    border-color: rgba(56, 189, 248, 0.2);
}

html[data-theme="dark"] .bento-mini-illustration {
    background: #132238;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .quickstart-roadmap-box {
    background: #0B132B;
    border-color: rgba(56, 189, 248, 0.2);
}

html[data-theme="dark"] .illus-card {
    fill: #111827;
    stroke: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .illus-card-accent {
    fill: #132238;
    stroke: rgba(56, 189, 248, 0.35);
}

html[data-theme="dark"] .illus-card-hub {
    fill: #0F1E36;
    stroke: #38BDF8;
}

html[data-theme="dark"] .illus-card-dashed {
    fill: #0F172A;
    stroke: rgba(56, 189, 248, 0.4);
}

html[data-theme="dark"] .illus-badge-blue-rect { fill: #1E3A5F; }
html[data-theme="dark"] .illus-badge-blue-text { fill: #7DD3FC; }

html[data-theme="dark"] .illus-badge-green-rect { fill: #064E3B; }
html[data-theme="dark"] .illus-badge-green-text { fill: #6EE7B7; }

html[data-theme="dark"] .illus-badge-neutral-rect { fill: #1E293B; }
html[data-theme="dark"] .illus-badge-neutral-text { fill: #94A3B8; }

html[data-theme="dark"] .illus-text-title { fill: #F8FAFC; }
html[data-theme="dark"] .illus-text-desc { fill: #CBD5E1; }
html[data-theme="dark"] .illus-text-muted { fill: #94A3B8; }
html[data-theme="dark"] .illus-text-blue { fill: #38BDF8; }
html[data-theme="dark"] .illus-text-green { fill: #34D399; }

html[data-theme="dark"] .illus-line-blue { stroke: #38BDF8; }
html[data-theme="dark"] .illus-line-dashed { stroke: #38BDF8; }
html[data-theme="dark"] .illus-line-muted { stroke: rgba(255, 255, 255, 0.15); }
html[data-theme="dark"] .illus-marker-blue { fill: #38BDF8; }
html[data-theme="dark"] .illus-marker-green { fill: #34D399; }

/* ==========================================================================
   AGENTS IA SPÉCIALISÉS SAP (Architecture MCP & Garde-fous)
   ========================================================================== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    margin: 28px 0;
}

.agent-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.agent-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
}

.agent-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.agent-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 112, 242, 0.08);
    color: var(--brand-blue);
    border: 1px solid rgba(0, 112, 242, 0.2);
}

html[data-theme="dark"] .agent-card-badge {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.25);
}

.agent-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.agent-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
}

.agent-card-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.agent-banner-ethics {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.agent-banner-ethics-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .agent-banner-ethics-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.agent-banner-ethics-body h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.agent-banner-ethics-body p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* ====================================================================
   RF-TEST-AGENTS : MODERN FEATURE CARDS & TECH CHIPS
   ==================================================================== */
.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
    gap: 22px;
    margin: 28px 0;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-blue);
    box-shadow: 0 12px 28px rgba(0, 112, 242, 0.08);
}

html[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.12);
}

.feature-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(0, 112, 242, 0.08);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 112, 242, 0.16);
    flex-shrink: 0;
}

html[data-theme="dark"] .feature-card-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.25);
}

.feature-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-card);
    white-space: nowrap;
}

.feature-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.35;
}

.feature-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 18px;
    flex-grow: 1;
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-card);
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 112, 242, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 112, 242, 0.12);
    white-space: nowrap;
}

html[data-theme="dark"] .tech-chip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ====================================================================
   RF-TEST-AGENTS : ARCHITECTURE DEEP-DIVE CARDS
   ==================================================================== */
.arch-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.arch-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue);
    box-shadow: 0 12px 30px rgba(0, 112, 242, 0.08);
}

html[data-theme="dark"] .arch-card:hover {
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.12);
}

.arch-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.arch-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-blue);
}

html[data-theme="dark"] .arch-badge {
    color: #38BDF8;
}

.arch-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-card);
}

.arch-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.4;
}

.arch-card-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin: 0 0 18px;
    flex-grow: 1;
}

.arch-takeaways {
    background: var(--bg-surface-alt);
    border-left: 3px solid var(--brand-blue);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 14px;
    margin-top: auto;
}

html[data-theme="dark"] .arch-takeaways {
    border-left-color: #38BDF8;
    background: rgba(255, 255, 255, 0.03);
}

.arch-takeaways ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arch-takeaways li {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.arch-takeaways li strong {
    color: var(--text-primary);
}

.arch-check {
    color: #10B981;
    font-weight: 700;
    flex-shrink: 0;
}


