/* ==========================================================
   TheRustLab v3.5.0 — CSS Bundle (regenerated 2026-05-02)
   DO NOT EDIT — edit the modules in css/ subdirectories
   Régénéré post-corruption (cf. Roadmap-ready-run/_recovery/)
   ========================================================== */

@layer fonts, base, theme, layout, components, pages, utilities, animations, a11y, responsive;


/* === assets/css/base/fonts.css === */
/* === FONTS MODULE === */

/* Self-hosted fonts — pas de requête vers Google (privacy + perf) */
/* IMPORTANT : les @font-face ne sont PAS dans un @layer block
   (les font-face dans @layer peuvent causer des problèmes de chargement) */

@font-face { font-family: 'Roboto'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/roboto-300.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/roboto-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/roboto-500.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/roboto-700.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/roboto-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/roboto-mono-500.woff2') format('woff2'); }

/* === assets/css/base/variables.css === */
/* === VARIABLES MODULE === */

@layer base {
    :root {
        /* --- Typographie --- */
        --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        --font-mono: 'Roboto Mono', 'Courier New', monospace;

        /* --- Layout --- */
        --container-width: 960px;
        --radius: 3px;
        --sidebar-width: 180px;
        --content-gap: 1.5rem;
        --header-height: 56px;
        --transition: 200ms ease;

        /* --- Palette charte (constantes) --- */
        --color-abyss:         #132639;
        --color-abyss-deep:    #0A1520;
        --color-abyss-card:    #0F1E2E;
        --color-electric:      #00B4D8;
        --color-electric-soft: #7DCFED;
        --color-forge:         #E07A30;
        --color-braise:        #C85E28;
        --color-steel:         #A8A9AD;

        /* --- Fonctionnelles --- */
        --success: #27AE60;
        --alert:   #E8780D;
        --error:   #D32F2F;
    }
}

/* === assets/css/base/reset.css === */
/* === RESET MODULE === */

@layer base {
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        scroll-behavior: smooth;
        font-size: 16px;
        overflow-x: hidden; /* Protection globale scroll horizontal Android */
    }

    body {
        font-family: var(--font-main);
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-main);
        background-color: var(--bg-color);
        transition: background-color var(--transition), color var(--transition);
        /* R12 (2026-05-02) : sticky footer pattern flex — main flex-grow repousse footer. Voir Roadmap-ready-run/12-audit-css-modulaire.md */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        /* Offset global pour sidebar fixe — pousse TOUT le contenu normal-flow */
        padding-left: calc(var(--sidebar-width) + var(--content-gap));
        /* Compensation optique — équilibre visuel avec la sidebar */
        padding-right: 1.5rem;
    }

    a {
        color: var(--accent);
        text-decoration: none;
        transition: color var(--transition), opacity var(--transition);
    }
    a:hover { opacity: 0.8; }

    img { max-width: 100%; display: block; }

    ul, ol { list-style: none; }

    button {
        cursor: pointer;
        background: none;
        border: none;
        color: inherit;
        font: inherit;
    }
}

/* === assets/css/base/typography.css === */
/* === TYPOGRAPHY MODULE === */

@layer base {
    h1, h2, h3, h4 {
        font-family: var(--font-main);
        font-weight: 700;
        line-height: 1.25;
        color: var(--text-main);
    }

    h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
    h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
    h3 { font-size: 1.05rem; font-weight: 600; }
    h4 { font-size: 0.95rem; font-weight: 600; }

    p {
        margin-bottom: 1rem;
        color: var(--text-secondary);
        line-height: 1.65;
    }
    p:last-child { margin-bottom: 0; }

    .section-title {
        font-size: clamp(1.3rem, 3vw, 1.65rem);
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 0.95rem;
        color: var(--text-muted);
        margin-bottom: 2.5rem;
        line-height: 1.6;
    }

    /* Label Obsidian-style */
    .label-mono {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
        display: block;
        margin-bottom: 0.5rem;
    }

    .accent        { color: var(--accent); }
    .text-center   { text-align: center; }
    .text-muted    { color: var(--text-muted) !important; }
    .text-mono     { font-family: var(--font-mono); }
    .text-forge    { color: var(--color-forge); }

    .section-divider {
        border: none;
        border-top: 1px solid var(--border);
        margin: 3rem 0;
    }
}

/* === assets/css/theme/light.css === */
/* === THEME LIGHT MODULE === */

@layer theme {
    /* THEME LIGHT (défaut) — base :root */
    :root {
        --bg-color:       #F4F6F8;
        --bg-soft:        #E8EDF2;
        --bg-header:      #132639;
        --card-bg:        #FFFFFF;
        --card-bg-alt:    #F0F4F8;
        --border:         #D0DAE4;
        --border-accent:  #00B4D8;

        --text-main:      #132639;
        --text-secondary: #3D5A72;
        --text-muted:     #7A8C9A;
        --text-inverse:   #F4F6F8;

        --accent:         #00B4D8;
        --accent-glow:    rgba(0, 180, 216, 0.10);
        --accent-border:  rgba(0, 180, 216, 0.28);

        --cta-bg:         var(--color-forge);
        --cta-hover:      var(--color-braise);
        --cta-text:       #FFFFFF;

        --gradient-forge: linear-gradient(180deg, var(--color-forge) 0%, var(--color-braise) 100%);
        --gradient-metal: linear-gradient(135deg, var(--color-steel) 0%, var(--color-abyss) 50%, var(--color-electric) 100%);

        --shadow:       0 1px 3px rgba(19, 38, 57, 0.08), 0 4px 12px rgba(19, 38, 57, 0.05);
        --shadow-hover: 0 4px 16px rgba(19, 38, 57, 0.13);
        --shadow-card:  0 0 0 1px var(--border), var(--shadow);
    }

    /* Cookie explicite "light" : force le thème clair (spécificité > :root) */
    body[data-theme="light"] {
        --bg-color:       #F4F6F8;
        --bg-soft:        #E8EDF2;
        --bg-header:      #132639;
        --card-bg:        #FFFFFF;
        --card-bg-alt:    #F0F4F8;
        --border:         #D0DAE4;
        --border-accent:  #00B4D8;
        --text-main:      #132639;
        --text-secondary: #3D5A72;
        --text-muted:     #7A8C9A;
        --text-inverse:   #F4F6F8;
        --accent:         #00B4D8;
        --accent-glow:    rgba(0, 180, 216, 0.10);
        --accent-border:  rgba(0, 180, 216, 0.28);
        --cta-bg:         var(--color-forge);
        --cta-hover:      var(--color-braise);
        --cta-text:       #FFFFFF;
        --shadow:         0 1px 3px rgba(19, 38, 57, 0.08), 0 4px 12px rgba(19, 38, 57, 0.05);
        --shadow-hover:   0 4px 16px rgba(19, 38, 57, 0.13);
        --shadow-card:    0 0 0 1px var(--border), var(--shadow);
    }
}

/* === assets/css/theme/dark.css === */
/* === THEME DARK MODULE === */

@layer theme {
    /* Visiteur sans cookie : suit la préférence OS si dark */
    @media (prefers-color-scheme: dark) {
        :root {
            --bg-color:       #0F1E2E;
            --bg-soft:        #0A1520;
            --bg-header:      #0A1520;
            --card-bg:        #132639;
            --card-bg-alt:    #152535;
            --border:         #253D52;
            --border-accent:  #7DCFED;
            --text-main:      #D4E2F0;
            --text-secondary: #9BBCCE;
            --text-muted:     #6B8FA3;
            --text-inverse:   #0F1E2E;
            --accent:         #7DCFED;
            --accent-glow:    rgba(125, 207, 237, 0.12);
            --accent-border:  rgba(125, 207, 237, 0.28);
            --shadow:       0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
            --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
            --shadow-card:  0 0 0 1px var(--border), var(--shadow);
        }
    }

    /* Cookie explicite "dark" (spécificité body > :root, override media query) */
    body[data-theme="dark"] {
        --bg-color:       #0F1E2E;
        --bg-soft:        #0A1520;
        --bg-header:      #0A1520;
        --card-bg:        #132639;
        --card-bg-alt:    #152535;
        --border:         #253D52;
        --border-accent:  #7DCFED;

        --text-main:      #D4E2F0;
        --text-secondary: #9BBCCE;
        --text-muted:     #6B8FA3;
        --text-inverse:   #0F1E2E;

        --accent:         #7DCFED;
        --accent-glow:    rgba(125, 207, 237, 0.12);
        --accent-border:  rgba(125, 207, 237, 0.28);

        --shadow:       0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
        --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-card:  0 0 0 1px var(--border), var(--shadow);
    }

    body[data-theme="dark"] {
        scrollbar-color: var(--border) var(--bg-soft);
        scrollbar-width: thin;
    }
}

/* === assets/css/layout/container.css === */
/* === CONTAINER / LAYOUT MODULE === */

@layer layout {
    .main-content {
        flex: 1;
        /* Plus de margin-left — body padding-left gère déjà l'offset sidebar */
        padding: 2.5rem 2rem 3rem;
        min-width: 0;
        /* Note : l'animation fadeSlideUp est dans animations.css */
    }

    /* R12 (2026-05-02) : sticky footer — main flex-grow repousse le footer en bas de page. Voir Roadmap-ready-run/12-audit-css-modulaire.md */
    main {
        flex: 1 0 auto;
    }

    .container {
        max-width: var(--container-width);
        width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .mb-60 { margin-bottom: 3.75rem; }
    .mb-40 { margin-bottom: 2.5rem; }
    .mb-20 { margin-bottom: 1.25rem; }

    /* --- Layout standardisé inter-pages (Sprint 4.4 bis) --- */
    /* padding-top compense le header fixe (56px) + marge de respiration */
    .page-section {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 80px;
    }

    /* Intro centrée : max-width nombre d'or (~0.7 × 960px) */
    .page-intro {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Intro description : texte sous le h1 centré */
    .page-intro-desc {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        color: var(--text-secondary);
        line-height: 1.7;
    }

    /* Corps de texte standard */
    .text-body {
        color: var(--text-secondary);
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    /* Padding bottom standalone */
    .pb-80 { padding-bottom: 80px; }
    .pb-40 { padding-bottom: 2.5rem; }

    /* Grid alignment */
    .grid-align-center { align-items: center; }

    /* CTA row : boutons côte à côte */
    .cta-row {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 2rem;
    }

    /* Checklist (✓ items en ligne) */
    .check-list {
        display: flex;
        gap: 1.25rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-secondary);
    }
    .check-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .check-icon {
        color: var(--success);
    }

    /* Section centrée avec max-width réduit (profil, FAQ) */
    .section-narrow {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Titre avec marge basse standard */
    .title-mb { margin-bottom: 0.6rem; }
    .title-mb-lg { margin-bottom: 1.25rem; }

    /* Bouton pleine largeur */
    .btn-full { width: 100%; }

    /* Texte small muted centré (disclaimers, notes) */
    .text-small-muted {
        font-size: 0.8rem;
        color: var(--text-muted);
        text-align: center;
        margin-top: 0.75rem;
    }

    /* Contact sidebar bloc */
    .contact-info-title { margin-bottom: 15px; }
    .contact-info-text {
        color: var(--text-secondary);
        margin-bottom: 20px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .contact-link-block { margin-bottom: 16px; }
    .contact-link-block .btn-outline { font-size: 0.85rem; }

    /* Honeypot anti-bot : champ invisible hors du viewport */
    .honeypot-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

    /* Spacing utilities */
    .mt-60 { margin-top: 3.75rem; }
}

/* === assets/css/layout/header.css === */
/* === HEADER MODULE === */

@layer layout {
    .header-minimal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--header-height);
        background: var(--bg-header);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 100;
        display: flex;
        align-items: center;
    }

    .header-container {
        width: 100%;
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .logo-wrapper {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
    }

    .logo-img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .logo-text {
        font-family: var(--font-mono);
        font-size: 0.82rem;
        font-weight: 500;
        color: #FFFFFF;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .theme-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        font-size: 0.95rem;
        line-height: 1;
        transition: background var(--transition), border-color var(--transition);
    }
    .theme-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .theme-icon-dark  { display: inline; }
    .theme-icon-light { display: none;   }
    body[data-theme="dark"] .theme-icon-dark  { display: none;   }
    body[data-theme="dark"] .theme-icon-light { display: inline; }

    .burger-btn {
        display: none;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        color: #FFFFFF;
        font-size: 1rem;
        transition: background var(--transition);
    }
    .burger-btn:hover { background: rgba(255, 255, 255, 0.08); }
    .burger-icon { line-height: 1; }
}

/* === assets/css/layout/sidebar.css === */
/* === SIDEBAR MODULE === */

@layer layout {
    /* Checkbox toggle caché (CSS :checked hack) — zéro JS */
    .sidebar-toggle-input {
        position: absolute;
        top: -9999px;
        left: -9999px;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    .sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: var(--sidebar-width);
        height: calc(100vh - var(--header-height));
        background: var(--bg-soft);
        border-right: 1px solid var(--border);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 90;
        transition: transform var(--transition), background-color var(--transition);
    }

    .sidebar::-webkit-scrollbar { width: 3px; }
    .sidebar::-webkit-scrollbar-track { background: transparent; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    .sidebar-nav {
        padding: 1rem 0 2.5rem;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(10, 21, 32, 0.55);
        z-index: 89;
        backdrop-filter: blur(2px);
        cursor: pointer;
    }
    /* NOTE : ouverture gérée par #sidebar-toggle:checked ~ .sidebar dans responsive.css
       (sibling combinator — @layer responsive > @layer layout, évite le conflit de cascade) */

    /* Lien home */
    .nav-home {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0.75rem;
        margin: 0 0.4rem 0.4rem;
        border-radius: var(--radius);
        color: var(--text-secondary);
        font-size: 0.82rem;
        font-weight: 500;
        text-decoration: none;
        border-left: 2px solid transparent;
        transition: background var(--transition), color var(--transition), border-color var(--transition);
    }
    .nav-home:hover {
        background: var(--accent-glow);
        color: var(--text-main);
        opacity: 1;
    }
    .nav-home.active {
        background: var(--accent-glow);
        color: var(--accent);
        border-left-color: var(--color-forge);
    }

    /* Sections */
    .nav-section {
        margin-top: 0.25rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .nav-section-title {
        font-family: var(--font-mono);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--text-muted);
        padding: 0 1.5rem 0.5rem;
        display: block;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 0.75rem;
        margin: 0.1rem 0.4rem;
        border-radius: var(--radius);
        color: var(--text-secondary);
        font-size: 0.82rem;
        text-decoration: none;
        border-left: 2px solid transparent;
        transition: background var(--transition), color var(--transition), border-color var(--transition);
    }
    .nav-link:hover {
        background: var(--accent-glow);
        color: var(--text-main);
        opacity: 1;
    }
    .nav-link.active {
        background: var(--accent-glow);
        color: var(--accent);
        border-left-color: var(--accent);
        font-weight: 500;
    }

    .nav-icon {
        width: 16px;
        height: 16px;
        opacity: 0.55;
        flex-shrink: 0;
        transition: opacity var(--transition);
    }
    .nav-link:hover .nav-icon,
    .nav-link.active .nav-icon,
    .nav-home:hover .nav-icon,
    .nav-home.active .nav-icon { opacity: 1; }

    body[data-theme="dark"] .nav-icon {
        filter: brightness(0) invert(0.65);
    }
    body[data-theme="dark"] .nav-link.active .nav-icon,
    body[data-theme="dark"] .nav-link:hover .nav-icon,
    body[data-theme="dark"] .nav-home.active .nav-icon,
    body[data-theme="dark"] .nav-home:hover .nav-icon {
        filter: brightness(0) invert(0.85);
    }
}

/* === assets/css/layout/footer.css === */
/* === FOOTER MODULE === */
/* R7 (2026-05-02) : ajout .footer-stack et .footer-links — charte Abyss / Electric / Rouille */
/* R12 (2026-05-02) : suppression margin-top: auto (incompatible grid sticky footer). Voir Roadmap-ready-run/12-audit-css-modulaire.md */

@layer layout {
    footer {
        background: var(--color-abyss-deep);
        border-top: 2px solid rgba(224, 122, 48, 0.2);
        padding: 1.5rem 1.5rem 1.25rem;
        text-align: center;
        /* Deborder le padding-right body pour un vrai full-width */
        margin-right: -1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    footer p {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: rgba(200, 216, 232, 0.3);
        margin: 0;
    }

    footer a { color: rgba(200, 216, 232, 0.45); }
    footer a:hover { color: var(--color-electric-soft); opacity: 1; }

    /* Signature stack technique — "Built with Rust + Axum + HTMX · Edited in Zed · …" */
    .footer-stack {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem 0.5rem;
        font-family: var(--font-mono);
        font-size: 0.65rem;
        color: rgba(224, 122, 48, 0.6); /* Rouille atténué */
        letter-spacing: 0.02em;
    }

    /* Liens sociaux + mentions légales */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem 1rem;
        font-family: var(--font-mono);
        font-size: 0.68rem;
    }

    .footer-links a {
        color: rgba(200, 216, 232, 0.45);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-links a:hover {
        color: var(--color-electric-soft);
    }

    /* Copyright discret */
    .footer-copy {
        font-family: var(--font-mono);
        font-size: 0.62rem;
        color: rgba(200, 216, 232, 0.2);
        margin: 0;
    }

    /* Mobile — empilement vertical propre */
    @media (max-width: 600px) {
        .footer-stack {
            flex-direction: column;
            gap: 0.2rem;
        }

        .footer-links {
            flex-direction: column;
            gap: 0.4rem;
        }
    }
}

/* === assets/css/components/buttons.css === */
/* === BUTTONS MODULE === */

@layer components {
    .btn-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.72rem 1.5rem;
        background: var(--gradient-forge);
        color: #FFFFFF;
        font-family: var(--font-main);
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        border-radius: var(--radius);
        border: none;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(200, 94, 40, 0.22);
        transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    }
    .btn-cta:hover {
        opacity: 0.92;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(200, 94, 40, 0.32);
        color: #FFFFFF;
    }
    .btn-cta:active { transform: translateY(0); opacity: 1; }

    .btn-outline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.7rem 1.5rem;
        background: transparent;
        color: var(--accent);
        font-size: 0.875rem;
        font-weight: 500;
        border: 1.5px solid var(--accent-border);
        border-radius: var(--radius);
        text-decoration: none;
        transition: background var(--transition), border-color var(--transition), color var(--transition);
    }
    .btn-outline:hover {
        background: var(--accent-glow);
        border-color: var(--accent);
        color: var(--accent);
        opacity: 1;
    }

    .btn, .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.6rem 1.25rem;
        background: var(--accent);
        color: #FFFFFF;
        font-size: 0.875rem;
        font-weight: 600;
        border: none;
        border-radius: var(--radius);
        text-decoration: none;
        transition: opacity var(--transition), transform var(--transition);
    }
    .btn:hover, .btn-primary:hover {
        opacity: 0.85;
        transform: translateY(-1px);
        color: #FFFFFF;
    }
}

/* === assets/css/components/cards.css === */
/* === CARDS MODULE === */

@layer components {
    .card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.5rem;
        box-shadow: var(--shadow);
        transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    }
    .card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
        border-color: var(--accent-border);
    }

    .card-featured {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-top: 3px solid var(--color-forge);
        border-radius: var(--radius);
        padding: 1.5rem;
        box-shadow: var(--shadow);
        transition: box-shadow var(--transition), transform var(--transition);
    }
    .card-featured:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }

    .card h3 { color: var(--accent); margin-bottom: 0.5rem; }
    .card h3.forge-title { color: var(--color-forge); }

    /* Icon box */
    .icon-box {
        width: 42px;
        height: 42px;
        border-radius: var(--radius);
        background: var(--accent-glow);
        border: 1px solid var(--accent-border);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.875rem;
        flex-shrink: 0;
    }
}

/* === assets/css/components/tags.css === */
/* === TAGS MODULE === */

@layer components {
    /* Tag */
    .tag {
        display: inline-flex;
        align-items: center;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 500;
        padding: 0.18rem 0.5rem;
        border-radius: 2px;
        border: 1px solid var(--accent-border);
        background: var(--accent-glow);
        color: var(--accent);
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .badge-tech {
        display: inline-flex;
        align-items: center;
        font-family: var(--font-mono);
        font-size: 0.65rem;
        padding: 0.15rem 0.45rem;
        border-radius: 2px;
        background: var(--bg-soft);
        border: 1px solid var(--border);
        color: var(--text-secondary);
    }

    /* Status badges */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 500;
        padding: 0.2rem 0.6rem;
        border-radius: 2px;
    }
    .status-badge::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
        flex-shrink: 0;
    }
    .status-badge.online  { color: var(--success); background: rgba(39,174,96,0.1);  border: 1px solid rgba(39,174,96,0.2);  }
    .status-badge.offline { color: var(--error);   background: rgba(211,47,47,0.1);  border: 1px solid rgba(211,47,47,0.2);  }
    .status-badge.dev     { color: var(--alert);   background: rgba(232,120,13,0.1); border: 1px solid rgba(232,120,13,0.2); }

    /* Breadcrumb */
    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }
    .breadcrumb a { color: var(--text-muted); }
    .breadcrumb a:hover { color: var(--accent); opacity: 1; }
    .breadcrumb span { color: var(--text-secondary); }
    .breadcrumb-sep { color: var(--border); user-select: none; }
}

/* === assets/css/components/callouts.css === */
/* === CALLOUTS MODULE === */

@layer components {
    .callout {
        display: flex;
        gap: 0.75rem;
        padding: 0.875rem 1.125rem;
        border-radius: var(--radius);
        margin: 1.25rem 0;
        border: 1px solid;
        border-left-width: 3px;
    }
    .callout-icon {
        font-size: 1rem;
        flex-shrink: 0;
        margin-top: 0.1rem;
        line-height: 1;
    }
    .callout-body { flex: 1; min-width: 0; }
    .callout-body p { margin-bottom: 0; font-size: 0.875rem; }
    .callout-title {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-bottom: 0.2rem;
    }

    .callout-info    { background: var(--accent-glow);             border-color: var(--accent-border);         border-left-color: var(--accent);            color: var(--text-secondary); }
    .callout-info    .callout-title { color: var(--accent); }

    .callout-success { background: rgba(39,174,96,0.07);           border-color: rgba(39,174,96,0.2);          border-left-color: var(--success);           color: var(--text-secondary); }
    .callout-success .callout-title { color: var(--success); }

    .callout-warning { background: rgba(232,120,13,0.07);          border-color: rgba(232,120,13,0.2);         border-left-color: var(--alert);             color: var(--text-secondary); }
    .callout-warning .callout-title { color: var(--alert); }

    .callout-forge   { background: rgba(224,122,48,0.07);          border-color: rgba(224,122,48,0.2);         border-left-color: var(--color-forge);       color: var(--text-secondary); }
    .callout-forge   .callout-title { color: var(--color-forge); }
}

/* === assets/css/components/forms.css === */
/* === FORMS MODULE === */

@layer components {
    /* Contact */
    .contact-section    { padding: 2rem 0; }
    .contact-container  {
        display: grid;
        grid-template-columns: 1.8fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    .contact-form { display: flex; flex-direction: column; gap: 1.15rem; }

    .form-group { display: flex; flex-direction: column; gap: 0.45rem; }
    .form-group label {
        font-size: 0.78rem;
        font-weight: 500;
        color: var(--text-secondary);
        font-family: var(--font-mono);
        letter-spacing: 0.05em;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 0.625rem 0.875rem;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text-main);
        font-family: var(--font-main);
        font-size: 0.9rem;
        transition: border-color var(--transition), box-shadow var(--transition);
    }
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-glow);
    }
    .form-group textarea { resize: vertical; min-height: 120px; }

    .social-links {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.75rem;
    }
    .social-links a {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--text-secondary);
        padding: 0.35rem 0.7rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        transition: border-color var(--transition), color var(--transition), background var(--transition);
    }
    .social-links a:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-glow);
        opacity: 1;
    }
}

/* === assets/css/components/terminal.css === */
/* === TERMINAL MODULE === */

@layer components {
    /* Terminal block (home — design system) */
    .terminal-block {
        background: var(--color-abyss-deep);
        color: #C8D8E8;
        padding: 1.75rem;
        border-radius: var(--radius);
        font-family: var(--font-mono);
        border: 1px solid rgba(30, 48, 64, 0.6);
        overflow-x: auto;
        min-width: 0;
    }
    .terminal-block .terminal-status {
        color: var(--success);
        margin-bottom: 0.75rem;
        font-weight: 600;
    }
    .terminal-block .terminal-sep {
        border-bottom: 1px solid rgba(30, 48, 64, 0.8);
        margin-bottom: 1.25rem;
    }
    .terminal-block .terminal-line {
        margin-bottom: 0.6rem;
        font-size: 0.88rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .terminal-block .terminal-val-green { color: var(--success); font-weight: 600; }
    .terminal-block .terminal-val-warn  { color: var(--color-forge); font-weight: 600; }
    .terminal-block .terminal-note {
        margin-top: 1.25rem;
        font-size: 0.75rem;
        color: var(--text-muted);
        font-style: italic;
    }

    /* Terminal SOC (tech page) */
    .terminal-window {
        background: var(--color-abyss-deep);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius);
        overflow: hidden;
        font-family: var(--font-mono);
    }
    .terminal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.875rem;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: var(--text-muted);
    }
    .terminal-body {
        padding: 0.75rem;
        max-height: 280px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.1) transparent;
    }

    .log-row {
        display: flex;
        gap: 0.5rem;
        padding: 0.3rem 0;
        font-size: 0.72rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        align-items: baseline;
    }
    .log-time { color: rgba(200, 216, 232, 0.4); flex-shrink: 0; }
    .log-ip   { color: rgba(200, 216, 232, 0.6); min-width: 80px; flex-shrink: 0; }
    .log-path { color: var(--color-electric-soft); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .log-risk { flex-shrink: 0; font-weight: 600; text-align: right; min-width: 50px; }
    .risk-high { color: var(--error); }
    .risk-med  { color: var(--alert); }
    .risk-low  { color: var(--text-muted); }
}

/* === assets/css/components/timeline.css === */
/* === TIMELINE MODULE === */

@layer components {
    /* Timeline items in layout context */
    .timeline-title {
        color: var(--text-main);
        font-weight: 600;
        margin-bottom: 8px;
    }
    .timeline-list {
        margin-top: 12px;
        list-style: disc;
        padding-left: 20px;
        color: var(--text-muted);
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .timeline-list li {
        margin-bottom: 6px;
    }

    /* Timeline */
    .timeline {
        position: relative;
        padding-left: 1.875rem;
    }
    .timeline::before {
        content: '';
        position: absolute;
        left: 2px;
        top: 0.6rem;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, var(--color-forge) 0%, var(--accent) 60%, transparent 100%);
    }

    .timeline-item {
        position: relative;
        margin-bottom: 2rem;
    }
    .timeline-item::before {
        content: '';
        position: absolute;
        left: -1.75rem;
        top: 0.45rem;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--color-forge);
        border: 2px solid var(--bg-color);
        box-shadow: 0 0 0 1px var(--color-forge);
    }

    .timeline-date {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        color: var(--color-forge);
        letter-spacing: 0.08em;
        margin-bottom: 0.25rem;
        font-weight: 500;
        text-transform: uppercase;
    }
    .timeline-content {
        transition: border-color var(--transition), box-shadow var(--transition);
    }
    .timeline-content:hover {
        border-color: rgba(224, 122, 48, 0.25);
        box-shadow: var(--shadow-hover), -3px 0 8px rgba(224, 122, 48, 0.06);
    }
    .timeline-content h3 { font-size: 0.95rem; color: var(--text-main); margin-bottom: 0.2rem; }
    .timeline-content p  { font-size: 0.875rem; color: var(--text-secondary); }

    /* Timeline — premier item mis en avant */
    .timeline-item-current .timeline-content {
        border-left: 3px solid var(--color-forge);
    }
    .timeline-item-current::before {
        background: var(--color-braise);
        width: 9px;
        height: 9px;
        box-shadow: 0 0 6px rgba(224, 122, 48, 0.4);
    }
}

/* === assets/css/components/faq.css === */
/* === FAQ MODULE === */

@layer components {
    .faq-list {
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
    }
    .faq-item { border-bottom: 1px solid var(--border); }
    .faq-item:last-child { border-bottom: none; }

    .faq-question {
        width: 100%;
        text-align: left;
        padding: 0.875rem 1.25rem;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        cursor: pointer;
        transition: background var(--transition), color var(--transition);
    }
    .faq-question:hover { background: var(--accent-glow); color: var(--accent); }
    .faq-question::after {
        content: '+';
        font-family: var(--font-mono);
        font-size: 1rem;
        color: var(--accent);
        flex-shrink: 0;
        opacity: 0.7;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem;
        font-size: 0.875rem;
        color: var(--text-secondary);
        line-height: 1.65;
    }
}

/* === assets/css/components/pillar-accordion.css === */
/* === PILLAR ACCORDION MODULE === */

@layer components {
    .pillar-accordion {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .pillar-item {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        transition: box-shadow var(--transition), border-color var(--transition);
        cursor: pointer;
    }
    .pillar-item:hover {
        border-color: var(--border-accent);
        box-shadow: var(--shadow-hover);
    }
    .pillar-item[open] {
        border-color: var(--accent-border);
        box-shadow: var(--shadow-hover);
    }
    .pillar-item:focus-within {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    /* Header cliquable — summary reset complet pour flexbox */
    .pillar-header {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.1rem 1.25rem;
        user-select: none;
        cursor: pointer;
        list-style: none;
        outline: none;
    }
    .pillar-header::-webkit-details-marker { display: none; }
    .pillar-header::marker { display: none; content: ""; }

    .pillar-num {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 600;
        min-width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        background: var(--bg-soft);
        color: var(--text-muted);
        transition: background var(--transition), color var(--transition);
        flex-shrink: 0;
    }

    .pillar-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .pillar-info {
        flex: 1;
        min-width: 0;
    }
    .pillar-info strong {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-main);
    }
    .pillar-info .pillar-sub {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 2px;
    }

    .pillar-arrow {
        font-size: 1.2rem;
        color: var(--text-muted);
        transition: transform 300ms ease, color var(--transition);
        flex-shrink: 0;
    }

    /* État ouvert (details[open] natif HTML5 — zéro JS) */
    .pillar-item[open] .pillar-arrow {
        transform: rotate(90deg);
        color: var(--accent);
    }

    .pillar-detail-inner {
        padding: 0 1.25rem 1.25rem;
        border-top: 1px solid var(--border);
    }

    .pillar-desc {
        color: var(--text-secondary);
        font-size: 0.92rem;
        line-height: 1.65;
        margin: 1rem 0;
    }

    .pillar-services {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    @media (max-width: 768px) {
        .pillar-services {
            grid-template-columns: 1fr;
        }
    }

    .pillar-service-item {
        padding: 0.75rem;
        background: var(--bg-soft);
        border-radius: var(--radius);
        border-left: 2px solid var(--border-accent);
    }
    .pillar-service-item strong {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 0.25rem;
    }
    .pillar-service-item span {
        font-size: 0.82rem;
        color: var(--text-muted);
        line-height: 1.5;
    }

    /* Couleurs par pilier */
    .pillar-accompagner { border-left: 3px solid var(--color-electric); }
    .pillar-concevoir   { border-left: 3px solid var(--color-forge); }
    .pillar-defendre    { border-left: 3px solid var(--error); }
    .pillar-former      { border-left: 3px solid var(--success); }

    .pillar-accompagner[open] .pillar-num { background: var(--color-electric); color: #fff; }
    .pillar-concevoir[open]   .pillar-num { background: var(--color-forge); color: #fff; }
    .pillar-defendre[open]    .pillar-num { background: var(--error); color: #fff; }
    .pillar-former[open]      .pillar-num { background: var(--success); color: #fff; }

    .pillar-accompagner .pillar-service-item { border-left-color: var(--color-electric); }
    .pillar-concevoir   .pillar-service-item { border-left-color: var(--color-forge); }
    .pillar-defendre    .pillar-service-item { border-left-color: var(--error); }
    .pillar-former      .pillar-service-item { border-left-color: var(--success); }
}

/* === assets/css/pages/business.css === */
/* === BUSINESS PAGE MODULE === */

@layer pages {
    /* Highlight card (service mis en avant) */
    .highlight-card {
        border-top: 3px solid var(--color-forge);
        box-shadow: var(--shadow), 0 -2px 12px rgba(224, 122, 48, 0.08);
    }
    .highlight-card:hover {
        border-color: var(--color-braise);
        box-shadow: var(--shadow-hover), 0 -2px 16px rgba(224, 122, 48, 0.15);
    }

    /* CTA section pleine largeur — version forge */
    .cta-section-forge {
        background: var(--gradient-forge);
        color: #FFFFFF;
        padding: 4rem 1.5rem;
        text-align: center;
        /* Deborder les paddings body pour un vrai full-width */
        margin-right: -1.5rem;
    }
    .cta-section-forge h2 {
        color: #FFFFFF;
        font-size: clamp(1.4rem, 3.5vw, 2rem);
        margin-bottom: 1rem;
    }
    .cta-section-forge p {
        color: rgba(255, 255, 255, 0.88);
        margin-bottom: 2rem;
        font-size: 1.05rem;
    }
    .cta-section-forge .btn-cta {
        background: #FFFFFF;
        color: var(--color-braise);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
    .cta-section-forge .btn-cta:hover {
        opacity: 0.95;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        color: var(--color-braise);
    }

    /* Section divider forge */
    .section-divider-forge {
        border: none;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--color-forge) 30%, var(--color-braise) 70%, transparent 100%);
        margin: 3rem auto;
        max-width: 200px;
        opacity: 0.5;
    }

    /* Hero — pitch trio CV v3.0 (R2 — 2026-05-02) */
    .hero-section  { padding: 3rem 0 2rem; }
    .hero-title    { font-size: clamp(1.75rem, 5vw, 2.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; color: var(--text-main); }
    .hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin-bottom: 2rem; line-height: 1.65; }

    /* Hero pitch trio : nom / trio / tagline */
    .hero {
        padding: 4rem 0 3rem;
        text-align: center;
    }

    /* hero-name : 28pt bold Abyss (couleur texte principal, respecte le theme) */
    .hero-name {
        font-size: clamp(1.8rem, 5vw, 2.33rem); /* ~28pt */
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-main);
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    /* hero-trio : 16pt bold Electric */
    .hero-trio {
        font-size: clamp(1rem, 2.5vw, 1.33rem); /* ~16pt */
        font-weight: 700;
        color: var(--color-electric, #00B4D8);
        margin-bottom: 0.6rem;
        letter-spacing: 0.02em;
    }

    /* hero-tagline : 13pt mono Rouille */
    .hero-tagline {
        font-family: var(--font-mono, 'Roboto Mono', monospace);
        font-size: clamp(0.8rem, 1.8vw, 1.08rem); /* ~13pt */
        color: #B85C38; /* Rouille — couleur fixe charte */
        margin-bottom: 2rem;
        letter-spacing: 0.04em;
        opacity: 0.9;
    }

    /* hero-cta : 3 boutons alignes */
    .hero-cta {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* ============================================================
       AXES D'ACTIVITE — grille 3 colonnes desktop / 1 mobile (R2)
       R12 (2026-05-02) : ajout margin-block-start pour separation hero/axes. Voir Roadmap-ready-run/12-audit-css-modulaire.md
       ============================================================ */
    .axes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 2rem 0 3rem;
        margin-block-start: clamp(1.5rem, 4vw, 3rem);
    }

    /* Responsive : 1 colonne sur mobile */
    @media (max-width: 768px) {
        .axes {
            grid-template-columns: 1fr;
        }
    }

    /* axe-card : bordure gauche Electric, titre Rouille, lien Electric */
    .axe-card {
        border-left: 3px solid var(--color-electric, #00B4D8);
        background: var(--card-bg, #132639);
        border-radius: var(--radius, 3px);
        padding: 1.5rem;
        box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.2));
        transition: box-shadow var(--transition, 200ms ease);
    }
    .axe-card:hover {
        box-shadow: var(--shadow-hover, 0 4px 20px rgba(0,0,0,0.3));
    }

    /* titre h2 Rouille bold */
    .axe-card h2 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #B85C38; /* Rouille */
        margin-bottom: 0.6rem;
        text-transform: none;
        letter-spacing: 0.01em;
    }

    .axe-card p {
        font-size: 0.88rem;
        color: var(--text-secondary, #9BBCCE);
        line-height: 1.55;
        margin-bottom: 1rem;
    }

    /* lien "Voir →" Electric */
    .axe-link {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--color-electric, #00B4D8);
        text-decoration: none;
        letter-spacing: 0.03em;
        transition: opacity var(--transition, 200ms ease);
    }
    .axe-link:hover {
        opacity: 0.75;
        text-decoration: underline;
    }

    /* Service list avec marqueur // */
    .service-list { display: flex; flex-direction: column; gap: 0.4rem; }
    .service-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
        padding: 0.2rem 0;
    }
    .service-list li::before {
        content: '//';
        font-family: var(--font-mono);
        color: var(--accent);
        font-size: 0.72rem;
        flex-shrink: 0;
        margin-top: 0.2rem;
        opacity: 0.8;
    }
}

/* === assets/css/pages/formation.css === */
/* === FORMATION PAGE MODULE === */

@layer pages {

    /* -----------------------------------------------
       Grid de cards modules
    ----------------------------------------------- */
    .formation-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* Card module — barre gauche Electric */
    .formation-card {
        display: flex;
        flex-direction: row;
        border-radius: var(--radius);
        background: var(--card-bg, var(--color-abyss-card, #0F1E2E));
        box-shadow: var(--shadow);
        overflow: hidden;
        transition: box-shadow var(--transition);
    }
    .formation-card:hover {
        box-shadow: var(--shadow-hover);
    }

    /* Barre latérale gauche Electric */
    .formation-card-bar {
        width: 4px;
        flex-shrink: 0;
        background: var(--color-electric, #00B4D8);
    }

    .formation-card-body {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    /* Badge niveau RNCP */
    .formation-level {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--color-electric, #00B4D8);
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .formation-card-title {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-main);
        margin: 0;
    }

    .formation-card-desc {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0;
    }

    /* -----------------------------------------------
       Approche pédagogique — bullets avec mot-clé Rouille
    ----------------------------------------------- */
    .formation-approach-list {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .formation-approach-list li {
        font-size: 0.95rem;
        color: var(--text-secondary);
        line-height: 1.65;
        padding-left: 1.2rem;
        border-left: 2px solid var(--color-electric, #00B4D8);
    }

    /* Mot-clé en Rouille/Braise bold */
    .approach-keyword {
        color: var(--color-braise, #C85E28);
        font-weight: 700;
    }

    /* -----------------------------------------------
       Public visé — grille 2 colonnes
    ----------------------------------------------- */
    .formation-public-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .formation-public-item {
        background: var(--card-bg, var(--color-abyss-card, #0F1E2E));
        border-radius: var(--radius);
        padding: 1.5rem;
        box-shadow: var(--shadow);
    }

    .formation-public-item h3 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-main);
        margin: 0 0 0.5rem;
    }

    .formation-public-item p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0;
    }

}

/* === assets/css/pages/doctrine.css === */
/* === DOCTRINE PAGE MODULE === */

@layer pages {

    /* -----------------------------------------------
       Grid 2 colonnes desktop, 1 colonne mobile
    ----------------------------------------------- */
    .doctrine-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    /* -----------------------------------------------
       Card principe — bordure gauche Electric
    ----------------------------------------------- */
    .doctrine-card {
        background: var(--card-bg, var(--color-abyss-card, #0F1E2E));
        border-radius: var(--radius);
        border-left: 4px solid var(--color-electric, #00B4D8);
        padding: 1.75rem 1.5rem;
        box-shadow: var(--shadow);
        transition: box-shadow var(--transition);
    }

    .doctrine-card:hover {
        box-shadow: var(--shadow-hover);
    }

    /* Titre principe en Rouille bold */
    .doctrine-card h3 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--color-braise, #C85E28);
        margin: 0 0 0.75rem;
    }

    .doctrine-card p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.65;
        margin: 0;
    }

    /* -----------------------------------------------
       Responsive — 1 colonne mobile
    ----------------------------------------------- */
    @media (max-width: 700px) {
        .doctrine-grid {
            grid-template-columns: 1fr;
        }
    }

}

/* === assets/css/pages/parcours.css === */
/* === PARCOURS PAGE MODULE === */

@layer pages {
    /* ------------------------------------------------------------------
     * Section : Certifications Anthropic AI
     * Couleurs charte : Electric (#00B4D8) fond pale, Rouille (#B85C38)
     * Responsive mobile-first.
     * ------------------------------------------------------------------ */

    .certifs-anthropic {
        background-color: rgba(0, 180, 216, 0.08); /* Electric lighten ~90% */
        border-left: 3px solid var(--color-electric);
        border-radius: var(--radius);
        padding: 2rem 1.75rem;
        margin: 3rem 0 2rem;
    }

    .certifs-anthropic header h2 {
        font-size: clamp(1.25rem, 3vw, 1.6rem);
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 0.5rem;
    }

    .certifs-intro {
        font-size: 0.95rem;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        font-style: italic;
    }

    .certifs-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }

    .certifs-list h3 {
        font-size: 0.8rem;
        font-family: var(--font-mono);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-electric);
        margin-bottom: 0.75rem;
        grid-column: auto;
    }

    .certifs-list ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .certifs-list ul li {
        font-size: 0.9rem;
        color: #B85C38; /* Rouille charte — valeur directe pour garantir fidelite */
        font-weight: 500;
        padding-left: 1rem;
        position: relative;
    }

    .certifs-list ul li::before {
        content: '\BB'; /* >> */
        position: absolute;
        left: 0;
        font-family: var(--font-mono);
        font-size: 0.72rem;
        color: var(--color-electric);
        opacity: 0.7;
        top: 0.1em;
    }

    .certifs-note {
        margin-top: 1.5rem;
        font-size: 0.88rem;
        color: var(--text-secondary);
        border-top: 1px solid var(--accent-border);
        padding-top: 1rem;
    }

    .certifs-note a {
        color: var(--color-electric);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .certifs-note a:hover {
        color: var(--color-electric-soft);
    }

    /* Mobile : passer en colonne unique sous 520px */
    @media (max-width: 520px) {
        .certifs-list {
            grid-template-columns: 1fr;
        }

        .certifs-anthropic {
            padding: 1.5rem 1.25rem;
        }
    }

    /* ------------------------------------------------------------------
     * R10 B.3 : Card Side Projects | R&D Personnelle (2026-05-02)
     * Bordure gauche Electric, hover discret, pattern coherent /parcours.
     * ------------------------------------------------------------------ */

    .side-projects-section {
        margin: 2rem 0;
    }

    .card-side-projects {
        border-left: 3px solid var(--color-electric);
        padding: 1.5rem 1.75rem;
        transition: border-color 0.2s ease;
    }

    .card-side-projects:hover {
        border-color: var(--color-rouille, #B85C38);
    }

    .card-side-projects header h3 {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 0.5rem;
    }

    .card-side-projects p {
        font-size: 0.95rem;
        color: var(--text-secondary);
        margin-bottom: 1rem;
    }

    .card-cta {
        display: inline-block;
        font-size: 0.9rem;
        font-family: var(--font-mono);
        color: var(--color-electric);
        text-decoration: none;
        border-bottom: 1px solid var(--color-electric);
        padding-bottom: 1px;
        transition: color 0.2s ease, border-color 0.2s ease;
    }

    .card-cta:hover {
        color: var(--color-rouille, #B85C38);
        border-color: var(--color-rouille, #B85C38);
    }

    /* ------------------------------------------------------------------
     * R10 B.4 : Diplomes + Certifications professionnelles (2026-05-02)
     * Grille auto-fit pour diplomes (2 col) et certifs pro (3 col).
     * ------------------------------------------------------------------ */

    .diplomes-grid,
    .certifs-pro-grid {
        display: grid;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .diplomes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .certifs-pro-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card-diplome {
        border-left: 3px solid var(--color-electric);
        padding: 1.25rem 1.5rem;
    }

    .card-diplome-master {
        border-left-color: var(--color-electric);
    }

    .card-diplome-licence {
        border-left-color: var(--color-rouille, #B85C38);
    }

    .card-diplome-title {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 0.4rem;
    }

    .card-diplome-meta {
        font-size: 0.82rem;
        font-family: var(--font-mono);
        color: var(--text-secondary);
        margin-bottom: 0.75rem;
    }

    .card-diplome-meta code {
        color: var(--color-electric);
        font-size: 0.8rem;
    }

    .card-diplome-detail {
        font-size: 0.9rem;
        color: var(--text-secondary);
        font-style: italic;
    }

    .card-certif {
        border-left: 3px solid var(--color-rouille, #B85C38);
        padding: 1rem 1.25rem;
    }

    .card-certif h3 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-main);
        margin-bottom: 0.3rem;
    }

    .card-certif-meta {
        font-size: 0.82rem;
        font-family: var(--font-mono);
        color: var(--text-secondary);
    }

    /* Mobile : une colonne sous 520px */
    @media (max-width: 520px) {
        .diplomes-grid,
        .certifs-pro-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* === assets/css/pages/projects.css === */
/* === PROJECTS PAGE MODULE === */

@layer pages {
    .projects-section { padding: 1.5rem 0; }

    .project-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    }
    .project-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-3px);
        border-color: var(--accent-border);
    }

    /* Card cliquable (lien externe — repo public) */
    a.project-card-link {
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        border-left: 3px solid var(--color-forge);
    }
    a.project-card-link:hover {
        border-color: var(--color-forge);
        box-shadow: var(--shadow-hover), -3px 0 12px rgba(224, 122, 48, 0.12);
        opacity: 1;
    }
    a.project-card-link .project-title { color: var(--text-main); }
    a.project-card-link .project-description { color: var(--text-secondary); }
    a.project-card-link .project-footer .btn-outline {
        pointer-events: none;
    }

    .project-header {
        padding: 1.125rem 1.25rem 0.75rem;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .project-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }

    .project-status {
        font-family: var(--font-mono);
        font-size: 0.6rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 0.15rem 0.45rem;
        border-radius: 2px;
        flex-shrink: 0;
    }
    .status-live { color: var(--success); background: rgba(39,174,96,0.1);  border: 1px solid rgba(39,174,96,0.2);  }
    .status-dev  { color: var(--alert);   background: rgba(232,120,13,0.1); border: 1px solid rgba(232,120,13,0.2); }

    .project-description {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        color: var(--text-secondary);
        flex: 1;
        line-height: 1.55;
    }

    .project-features {
        padding: 0 1.25rem 0.875rem;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    .project-features li {
        font-size: 0.8rem;
        color: var(--text-muted);
        padding-left: 1rem;
        position: relative;
    }
    .project-features li::before {
        content: '›';
        position: absolute;
        left: 0;
        color: var(--accent);
        font-family: var(--font-mono);
        font-size: 0.85rem;
    }

    .project-footer {
        padding: 0.75rem 1.25rem;
        border-top: 1px solid var(--border);
        background: var(--bg-soft);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

    /* -----------------------------------------------
       R4 — Refonte /tech/projets (2026-05-02)
       5 projets phares CV : nouvelles classes
    ----------------------------------------------- */

    /* Container liste projets — empilement vertical */
    .projects-list {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }

    /* Card R4 : bordure gauche Electric 3pt */
    .projects-list .project-card {
        border-left: 3px solid var(--color-electric, #00B4D8);
        transition: transform 200ms ease, outline 200ms ease, box-shadow 200ms ease;
    }
    .projects-list .project-card:hover {
        transform: translateY(-2px);
        outline: 2px solid var(--color-electric, #00B4D8);
        outline-offset: 1px;
        box-shadow: var(--shadow-hover);
    }

    /* En-tête card R4 */
    .project-name {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-main);
        margin: 0;
    }

    .project-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-top: 0.35rem;
    }

    /* Badges tech (Electric) */
    .project-badge {
        font-family: var(--font-mono);
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 0.15rem 0.5rem;
        border-radius: 2px;
    }
    .badge-rust,
    .badge-ia,
    .badge-infra,
    .badge-crypto {
        color: var(--color-electric, #00B4D8);
        background: rgba(0, 180, 216, 0.08);
        border: 1px solid rgba(0, 180, 216, 0.25);
    }

    /* Badge status (Rouille) */
    .badge-status {
        color: var(--color-forge, #E07A30);
        background: rgba(224, 122, 48, 0.08);
        border: 1px solid rgba(224, 122, 48, 0.25);
    }

    /* Pitch */
    .project-pitch {
        padding: 0.875rem 1.25rem 0.5rem;
        font-size: 0.875rem;
        color: var(--text-secondary);
        line-height: 1.55;
        margin: 0;
    }

    /* Stack mono Rouille bold */
    .project-stack {
        padding: 0 1.25rem 0.5rem;
        font-size: 0.82rem;
        color: var(--text-muted);
    }
    .project-stack code {
        font-family: 'JetBrains Mono', var(--font-mono), monospace;
        font-weight: 600;
        color: var(--color-forge, #E07A30);
    }
    .project-stack strong {
        color: var(--text-secondary);
        font-weight: 600;
    }

    /* Links footer */
    .project-links {
        padding: 0.75rem 1.25rem;
        border-top: 1px solid var(--border);
        background: var(--bg-soft);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .project-links a {
        font-family: var(--font-mono);
        font-size: 0.8rem;
        color: var(--color-electric, #00B4D8);
        text-decoration: none;
        transition: opacity 150ms ease;
    }
    .project-links a:hover { opacity: 0.8; }

    .project-link-private {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--text-muted);
        font-style: italic;
    }

    /* Mobile responsive — 1 card par ligne sous 768px (déjà respecté en colonne) */
    @media (max-width: 768px) {
        .projects-list { gap: 1.25rem; }
        .project-name { font-size: 0.95rem; }
        .project-pitch { padding: 0.75rem 1rem 0.4rem; }
        .project-stack { padding: 0 1rem 0.4rem; }
        .project-features { padding: 0 1rem 0.75rem; }
        .project-links { padding: 0.6rem 1rem; }
    }
}

/* === assets/css/pages/tech.css === */
/* === TECH PAGE MODULE === */

@layer pages {
    /* --- Hero Tech --- */
    .tech-hero {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 2rem;
        align-items: center;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }
    .tech-hero-right {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        min-width: 0;
    }
    .tech-metric-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.75rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: var(--shadow);
        min-width: 0;
        gap: 0.5rem;
    }
    .tech-metric-label {
        font-size: 0.7rem;
        font-family: var(--font-mono);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text-muted);
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .tech-metric-value {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--text-main);
        flex-shrink: 0;
    }
    .tech-status-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-family: var(--font-mono);
        font-size: 0.8rem;
        color: var(--success);
        background: var(--card-bg);
        padding: 0.5rem 1rem;
        border: 1px solid rgba(39, 174, 96, 0.3);
        border-radius: var(--radius);
    }
    .tech-status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--success);
        animation: statusPulse 2s ease-in-out infinite;
    }

    /* --- Burger Stack --- */
    .burger-section {
        margin: 1rem 0;
    }

    .burger-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .burger-layer {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }
    /* Masquer le marker natif <details> */
    .burger-layer > summary { list-style: none; }
    .burger-layer > summary::-webkit-details-marker { display: none; }
    .burger-layer > summary::marker { display: none; content: ""; }
    .burger-layer:hover {
        border-color: var(--accent-border);
        box-shadow: var(--shadow-hover);
    }
    .burger-layer[open] {
        border-color: var(--accent-border);
        box-shadow: var(--shadow-hover);
    }

    .burger-layer-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1.25rem;
        cursor: pointer;
        list-style: none;
        outline: none;
    }
    .burger-layer-content::-webkit-details-marker { display: none; }
    .burger-layer-content::marker { display: none; content: ""; }

    .burger-layer-num {
        font-family: var(--font-mono);
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: var(--text-muted);
        background: var(--bg-soft);
        padding: 0.2rem 0.4rem;
        border-radius: 2px;
        min-width: 28px;
        text-align: center;
    }

    .burger-layer-icon {
        font-size: 1.2rem;
        flex-shrink: 0;
        line-height: 1;
    }

    .burger-layer-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        min-width: 0;
        overflow: hidden;
    }
    .burger-layer-info strong {
        font-size: 0.9rem;
        color: var(--text-main);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .burger-layer-sub {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .burger-layer-arrow {
        font-size: 1.2rem;
        color: var(--text-muted);
        transition: transform 300ms ease;
        flex-shrink: 0;
    }
    .burger-layer[open] .burger-layer-arrow {
        transform: rotate(90deg);
        color: var(--accent);
    }

    /* Détails burger — grille directement dans <details> (pas de wrapper) */
    .burger-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.25rem 1.75rem 1.5rem;
        border-top: 1px solid var(--border);
    }

    .burger-detail-item {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }
    .burger-detail-label {
        font-family: var(--font-mono);
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--accent);
    }
    .burger-detail-item span:last-child {
        font-size: 0.82rem;
        color: var(--text-secondary);
        line-height: 1.4;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Couleurs par couche L0→L7 (accent subtil sur le bord gauche) */
    .burger-bun-top        { border-left: 3px solid var(--color-forge); }    /* L7 Application */
    .burger-observability  { border-left: 3px solid #9B59B6; }              /* L6 Observabilité */
    .burger-cheese         { border-left: 3px solid var(--color-electric); } /* L5 Ingress */
    .burger-steak          { border-left: 3px solid var(--error); }          /* L4 Sécurité */
    .burger-lettuce        { border-left: 3px solid var(--success); }        /* L3 Réseau */
    .burger-tomato         { border-left: 3px solid #0db7ed; }              /* L2 Orchestration */
    .burger-bun-bottom     { border-left: 3px solid var(--color-steel); }   /* L1 Infrastructure */
    .burger-edge           { border-left: 3px solid #F39C12; }              /* L0 Edge/CDN */

    .burger-bun-top[open]        .burger-layer-num { background: var(--color-forge); color: #fff; }
    .burger-observability[open]  .burger-layer-num { background: #9B59B6; color: #fff; }
    .burger-cheese[open]         .burger-layer-num { background: var(--color-electric); color: #fff; }
    .burger-steak[open]          .burger-layer-num { background: var(--error); color: #fff; }
    .burger-lettuce[open]        .burger-layer-num { background: var(--success); color: #fff; }
    .burger-tomato[open]         .burger-layer-num { background: #0db7ed; color: #fff; }
    .burger-bun-bottom[open]     .burger-layer-num { background: var(--color-steel); color: #fff; }
    .burger-edge[open]           .burger-layer-num { background: #F39C12; color: #fff; }

    /* --- SOC Dashboard --- */
    .soc-section {
        margin: 1rem 0;
    }

    .soc-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 1.25rem;
        align-items: start;
    }

    .soc-panel {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.25rem;
        box-shadow: var(--shadow);
    }

    .soc-stats-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    .soc-stat-box {
        text-align: center;
        padding: 0.75rem 0.5rem;
        background: var(--bg-soft);
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }
    .soc-stat-val {
        font-size: 1.5rem;
        font-weight: 700;
        font-family: var(--font-mono);
        line-height: 1;
        margin-bottom: 0.25rem;
    }
    .soc-stat-label {
        font-family: var(--font-mono);
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-muted);
    }
}

/* ── Status online indicator ─────────────────────────────── */
.status-online {
    color: #2ea043;
}

/* === assets/css/pages/cyber.css === */
/* === PAGE : CYBER === */
/* Utilise les composants globaux : .main-content, .container, .card, .grid-3  */
/* Le hero de /cyber utilise .hero-section, .hero-title, .hero-subtitle         */

@layer pages {
    /* Pas de styles spécifiques — /cyber s'appuie sur les composants globaux */
}

/* === assets/css/utilities.css === */
/* === UTILITAIRES === */

@layer utilities {
    .visually-hidden {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        border: 0;
    }

    .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .flex        { display: flex; }
    .flex-center { display: flex; align-items: center; justify-content: center; }
    .gap-sm      { gap: 0.5rem; }
    .gap-md      { gap: 1rem; }
    .gap-lg      { gap: 1.5rem; }

    /* --- Color utilities --- */
    .text-success { color: var(--success); }
    .text-error   { color: var(--error); }
    .text-alert   { color: var(--alert); }
    .text-accent  { color: var(--accent); }
    .text-main    { color: var(--text-main); }
    .text-muted   { color: var(--text-muted); }

    /* --- Typography --- */
    .italic    { font-style: italic; }
    .font-mono { font-family: var(--font-mono); }
    .text-xs   { font-size: 0.72rem; }
    .text-sm   { font-size: 0.85rem; }
    .text-75   { font-size: 0.75rem; }

    /* --- Margin top --- */
    .mt-sm  { margin-top: 0.5rem; }
    .mt-md  { margin-top: 1rem; }
    .mt-15  { margin-top: 15px; }
    .mt-16  { margin-top: 16px; }

    /* --- Margin bottom --- */
    .mb-xs  { margin-bottom: 0.4rem; }
    .mb-sm  { margin-bottom: 0.5rem; }
    .mb-md  { margin-bottom: 1rem; }
    .mb-lg  { margin-bottom: 1.25rem; }
    .mb-xl  { margin-bottom: 1.5rem; }
    .mb-2xl { margin-bottom: 2rem; }
    .mb-16  { margin-bottom: 16px; }
    .mb-30  { margin-bottom: 30px; }

    /* --- Misc spacing --- */
    .list-indent { margin-top: 10px; margin-left: 20px; }
    .mx-auto     { margin-left: auto; margin-right: auto; }

    /* --- Layout --- */
    .max-w-480 { max-width: 480px; }
    .max-w-600 { max-width: 600px; }
    .pad-card  { padding: 3rem 2rem; }
    .icon-2xl  { font-size: 2.5rem; }

    /* --- SOC feed --- */
    .feed-empty {
        color: var(--text-muted);
        padding: 10px;
        text-align: center;
        margin-top: 40px;
        font-size: 0.8rem;
    }
}

/* === assets/css/animations.css === */
/* === ANIMATIONS & TRANSITIONS === */

@layer animations {
    /* --- Fade-in d'entrée pour le contenu principal --- */
    @keyframes fadeSlideUp {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .main-content {
        animation: fadeSlideUp 400ms ease-out;
    }

    /* --- Stagger sur les cards dans les grids --- */
    .grid-2 > *,
    .grid-3 > * {
        opacity: 0;
        animation: fadeSlideUp 400ms ease-out forwards;
    }

    .grid-2 > *:nth-child(1), .grid-3 > *:nth-child(1) { animation-delay: 60ms; }
    .grid-2 > *:nth-child(2), .grid-3 > *:nth-child(2) { animation-delay: 120ms; }
    .grid-3 > *:nth-child(3) { animation-delay: 180ms; }
    .grid-2 > *:nth-child(3), .grid-3 > *:nth-child(4) { animation-delay: 240ms; }
    .grid-2 > *:nth-child(4), .grid-3 > *:nth-child(5) { animation-delay: 300ms; }
    .grid-3 > *:nth-child(6) { animation-delay: 360ms; }
    .grid-2 > *:nth-child(n+5),
    .grid-3 > *:nth-child(n+7) { animation-delay: 100ms; }

    /* --- Timeline items stagger --- */
    .timeline-item {
        opacity: 0;
        animation: fadeSlideUp 400ms ease-out forwards;
    }
    .timeline-item:nth-child(1) { animation-delay: 100ms; }
    .timeline-item:nth-child(2) { animation-delay: 200ms; }
    .timeline-item:nth-child(3) { animation-delay: 300ms; }
    .timeline-item:nth-child(4) { animation-delay: 400ms; }
    .timeline-item:nth-child(n+5) { animation-delay: 200ms; }

    /* --- Theme toggle : transition douce sur tous les éléments colorés --- */
    body,
    .card, .card-featured,
    .sidebar, .sidebar-overlay,
    .main-content,
    footer,
    .hero-section,
    .terminal-block,
    .cta-section-forge,
    .icon-box,
    .nav-link, .nav-home,
    input, textarea, select {
        transition:
            background-color 350ms ease,
            color 350ms ease,
            border-color 350ms ease,
            box-shadow 250ms ease;
    }

    /* --- Hover micro-interactions enrichies --- */
    .card:hover .icon-box {
        border-color: var(--accent);
        background: var(--accent-glow);
    }

    .btn-cta:focus-visible,
    .btn-outline:focus-visible,
    .btn:focus-visible,
    .btn-primary:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

    /* --- HTMX swap transitions --- */
    .htmx-settling  { opacity: 1; }
    .htmx-swapping  { opacity: 0; transition: opacity 150ms ease-out; }
    .htmx-added     { opacity: 0; }
    .htmx-added.htmx-settling { opacity: 1; transition: opacity 300ms ease-in; }

    /* --- Status badge pulse pour les services live --- */
    @keyframes statusPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
        50%      { box-shadow: 0 0 0 4px rgba(39, 174, 96, 0); }
    }
    .status-live::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--success);
        margin-right: 0.35rem;
        animation: statusPulse 2s ease-in-out infinite;
    }
}

/* === assets/css/a11y.css === */
/* === ACCESSIBILITÉ === */

@layer a11y {
    /* Respect des préférences utilisateur : réduire les mouvements */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Focus visible pour navigation clavier (tous éléments interactifs) */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: 2px;
    }

    /* Skip-to-content */
    .skip-to-content {
        position: absolute;
        top: -100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--color-forge);
        color: #fff;
        padding: 0.5rem 1.25rem;
        border-radius: 0 0 var(--radius) var(--radius);
        font-size: 0.85rem;
        font-weight: 600;
        z-index: 999;
        transition: top 200ms ease;
    }
    .skip-to-content:focus {
        top: 0;
    }
}

/* === assets/css/responsive.css === */
/* === RESPONSIVE — Mobile First === */

@layer responsive {
    @media (max-width: 1024px) {
        .grid-3 { grid-template-columns: 1fr 1fr; }
        .contact-container { grid-template-columns: 1fr; gap: 2rem; }
    }

    @media (max-width: 768px) {
        :root { --sidebar-width: 0px; --content-gap: 0px; }

        body {
            padding-right: 0;
            padding-left: 0;
        }

        /* Fix Android : le header fixe + barre navigateur compressent le viewport */
        .page-section {
            padding-top: calc(var(--header-height) + 40px);
        }

        .main-content {
            padding: 1.5rem 1rem 2.5rem;
        }

        /* Reset margin-right pour mobile */
        .cta-section-forge,
        footer { margin-right: 0; width: 100%; }

        /* Sidebar mobile : slide-in overlay */
        .sidebar {
            transform: translateX(-100%);
            width: 260px;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
            transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Overlay mobile */
        .sidebar-overlay {
            display: block;
            opacity: 0;
            pointer-events: none;
            transition: opacity 300ms ease;
        }

        /* État ouvert — sibling combinator : plus robuste que body:has()
           L'input, .sidebar et .sidebar-overlay sont frères directs dans <body> */
        #sidebar-toggle:checked ~ .sidebar {
            transform: translateX(0);
        }
        #sidebar-toggle:checked ~ .sidebar-overlay {
            opacity: 1;
            pointer-events: auto;
        }

        .burger-btn { display: flex; }

        .grid-2, .grid-3 { grid-template-columns: 1fr; }

        .hero-title { font-size: 1.65rem; }

        .cta-section-forge { padding: 3rem 1.25rem; }

        .terminal-block { padding: 1.25rem; }
        .terminal-block .terminal-line { font-size: 0.8rem; }

        .section-title { font-size: clamp(1.1rem, 3vw, 1.4rem); }

        .logo-text { font-size: 0.75rem; }

        .card { margin-bottom: 0; }

        .project-footer { flex-direction: column; align-items: flex-start; }

        /* Tech hero : stack vertical */
        .tech-hero { grid-template-columns: 1fr; gap: 1.25rem; }
        .tech-hero-right {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 0.35rem;
        }
        .tech-metric-card { flex: 1 1 calc(50% - 0.2rem); min-width: 0; }

        .soc-grid { grid-template-columns: 1fr; }
        .soc-stats-row { grid-template-columns: repeat(2, 1fr); }

        .burger-detail-grid { grid-template-columns: 1fr; }
        /* Note : .pillar-services @media est géré dans components/pillar-accordion.css */
    }

    @media (max-width: 480px) {
        .header-container { padding: 0 0.75rem; }

        .main-content { padding: 1rem 0.75rem 2rem; }

        .btn-cta, .btn-outline {
            width: 100%;
            justify-content: center;
        }

        .timeline { padding-left: 1.5rem; }

        .container { padding-left: 0.75rem; padding-right: 0.75rem; }

        .faq-question { font-size: 0.82rem; padding: 0.75rem 1rem; }
        .faq-answer { padding: 0 1rem 0.875rem; font-size: 0.82rem; }

        .hero-title { font-size: 1.4rem; }
        .hero-subtitle { font-size: 0.85rem; max-width: 100%; }
        .page-intro-desc { max-width: 100%; }

        .project-tags { gap: 0.25rem; }
        .tag, .badge-tech { font-size: 0.6rem; padding: 0.15rem 0.4rem; }

        /* Tech page 480px : métriques pleine largeur */
        .tech-metric-card { flex: 1 1 100%; min-width: 0; }
        .tech-metric-value { font-size: 1.15rem; }

        /* SOC stats : 2 colonnes maintenues */
        .soc-stats-row { grid-template-columns: repeat(2, 1fr); }

        /* Terminal SOC : log row compact */
        .log-row { flex-wrap: wrap; gap: 0.25rem; }
        .log-ip { min-width: 0; }
        .log-path { flex-basis: 100%; white-space: normal; }
    }
}
