/* ============================================================
   DRIVN - Styles partagés
   Modifier ce fichier pour changer le style de toutes les pages
   ============================================================ */

/* ── Polices ── */
@font-face {
    font-family: 'Söhne Breit';
    src: url('assets/fonts/SohneBreit-Kraftig.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── Variables ── */
:root {
    --drivn-dark: #1a1a2e;
    --drivn-blue: #576BF7;
    --drivn-blue-light: #90A8FC;
    --drivn-accent: #F49022;
    --drivn-accent-glow: rgba(244, 144, 34, 0.15);
    --drivn-bg: #0f0f1a;
    --drivn-surface: #16162a;
    --drivn-surface-2: #1e1e38;
    --drivn-text: #e8e8f0;
    --drivn-text-muted: #9898b0;
    --drivn-border: rgba(255,255,255,0.06);
    --radius: 16px;
}

/* ── Mode clair ── */
html.light {
    --drivn-bg:          #f4f4f8;
    --drivn-surface:     #ffffff;
    --drivn-surface-2:   #eaeaf2;
    --drivn-text:        #1a1a2e;
    --drivn-text-muted:  #6a6a88;
    --drivn-border:      rgba(0,0,0,0.08);
    --drivn-accent-glow: rgba(244,144,34,0.10);
}

html.light .bg-glow {
    background: radial-gradient(circle, rgba(87,107,247,0.07) 0%, rgba(244,144,34,0.04) 40%, transparent 70%);
}

html.light .bg-grain { opacity: 0.015; }

html.light nav {
    background: rgba(244,244,248,0.82);
}

html.light nav.scrolled {
    background: rgba(244,244,248,0.97);
    box-shadow: 0 1px 24px rgba(0,0,0,0.08);
}

html.light .nav-back:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.14);
}

html.light .btn-secondary {
    border-color: rgba(0,0,0,0.12);
}

html.light .btn-secondary:hover {
    border-color: rgba(0,0,0,0.22);
    background: rgba(0,0,0,0.03);
}

html.light #cookie-banner {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Body ── */
body {
    font-family: 'Instrument Sans', sans-serif;
    background: var(--drivn-bg);
    color: var(--drivn-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Fond ambiance ── */
.bg-glow {
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45,91,255,0.08) 0%, rgba(244,144,34,0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-grain {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Dropdown nav ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--drivn-text-muted);
    transition: color 0.2s;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--drivn-text); }

.nav-dropdown-trigger.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--drivn-accent);
    border-radius: 2px;
}

.nav-dropdown-arrow {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s;
    opacity: 0.7;
}

.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--drivn-surface-2);
    border: 1px solid var(--drivn-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--drivn-text-muted);
    text-decoration: none;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-dropdown-item:hover {
    background: rgba(87,107,247,0.08);
    color: var(--drivn-text);
}

.nav-dropdown-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(87,107,247,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

html.light .nav-dropdown-menu { box-shadow: 0 16px 40px rgba(0,0,0,0.1); }

/* ── Bouton thème ── */
#theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--drivn-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

#theme-toggle:hover {
    background: rgba(87,107,247,0.08);
    border-color: rgba(87,107,247,0.25);
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(15,15,26,0.7);
    border-bottom: 1px solid var(--drivn-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(15,15,26,0.95);
    box-shadow: 0 1px 32px rgba(0,0,0,0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-dark { display: block; }
.logo-light { display: none; }

html.light .logo-dark { display: none; }
html.light .logo-light { display: block; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--drivn-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover { color: var(--drivn-text); }

.nav-link.active {
    color: var(--drivn-text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--drivn-accent);
    border-radius: 2px;
}

.nav-cta-short { display: none; }

.nav-cta {
    padding: 10px 24px;
    background: var(--drivn-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-cta-active {
    box-shadow: 0 0 0 2px var(--drivn-accent);
}

.nav-cta:hover {
    background: var(--drivn-blue-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(45,91,255,0.3);
}

.nav-login {
    font-size: 14px;
    font-weight: 500;
    color: var(--drivn-text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--drivn-border);
    border-radius: 8px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.nav-login:hover {
    color: var(--drivn-text);
    border-color: var(--drivn-text-muted);
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--drivn-text-muted);
    border: 1px solid var(--drivn-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-back:hover {
    color: var(--drivn-text);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

/* ── Boutons ── */
.btn-primary {
    padding: 16px 36px;
    background: var(--drivn-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--drivn-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(45,91,255,0.35);
}

.btn-secondary {
    padding: 16px 36px;
    background: transparent;
    color: var(--drivn-text);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
}

/* ── Badge animé ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--drivn-surface);
    border: 1px solid var(--drivn-border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--drivn-accent);
    font-weight: 500;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--drivn-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* ── Typographie ── */
h1, h2, h3 {
    font-family: 'Söhne Breit', sans-serif;
    font-weight: normal;
    line-height: 1.15;
}

em {
    font-style: normal;
}

h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
    font-style: normal;
    color: var(--drivn-accent);
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    padding: 56px 40px 32px;
    border-top: 1px solid var(--drivn-border);
    font-size: 13px;
    color: var(--drivn-text-muted);
}

footer a {
    color: var(--drivn-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover { color: var(--drivn-text); }

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--drivn-border);
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--drivn-text-muted);
    margin: 0;
    line-height: 1.5;
}

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

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--drivn-text);
    margin-bottom: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.powered-by {
    font-size: 13px;
    color: var(--drivn-text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--drivn-border);
    border-radius: 6px;
    background: var(--drivn-surface-2);
    color: var(--drivn-text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.footer-newsletter-form input[type="email"]:focus {
    border-color: var(--drivn-accent);
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: var(--drivn-text-muted);
}

.footer-newsletter-form button {
    padding: 8px 14px;
    background: var(--drivn-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.footer-newsletter-form button:hover { opacity: 0.85; }

.footer-newsletter-success {
    font-size: 13px;
    color: var(--drivn-accent);
}

/* ── Animations ── */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Pages légales (confidentialite, cgu) ── */
.legal-page {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 100px;
}

.page-label-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--drivn-accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.meta {
    font-size: 14px;
    color: var(--drivn-text-muted);
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--drivn-border);
}

.content h2 { font-size: 18px; font-weight: 600; color: var(--drivn-text); margin: 40px 0 14px; }
.content h3 { font-size: 15px; font-weight: 600; color: var(--drivn-text); margin: 24px 0 10px; }

.content p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--drivn-text-muted);
    margin-bottom: 14px;
}

.content ul {
    list-style: none;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content ul li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--drivn-text-muted);
    padding-left: 20px;
    position: relative;
}

.content ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--drivn-accent);
    font-size: 13px;
}

.info-block {
    margin-top: 8px;
    padding: 20px 24px;
    background: var(--drivn-surface);
    border: 1px solid var(--drivn-border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--drivn-text-muted);
    line-height: 1.8;
}

.info-block strong { color: var(--drivn-text); }

.contact-block {
    margin-top: 8px;
    padding: 20px 24px;
    background: var(--drivn-surface);
    border: 1px solid var(--drivn-border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--drivn-text-muted);
    line-height: 1.8;
}

.contact-block strong { color: var(--drivn-text); }

/* ── Bandeau cookies ── */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 48px);
    max-width: 760px;
    background: var(--drivn-surface-2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
}

#cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#cookie-banner.hiding {
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
}

.cookie-text {
    flex: 1;
    font-size: 13px;
    color: var(--drivn-text-muted);
    line-height: 1.6;
}

.cookie-text strong {
    display: block;
    font-size: 14px;
    color: var(--drivn-text);
    margin-bottom: 4px;
}

.cookie-text a {
    color: var(--drivn-blue-light);
    text-decoration: none;
}

.cookie-text a:hover { text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    padding: 10px 20px;
    background: var(--drivn-blue);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-accept:hover { opacity: 0.85; }

.cookie-btn-refuse {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--drivn-text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-refuse:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--drivn-text);
}

@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        transform: translateY(160px);
    }
    #cookie-banner.visible { transform: translateY(0); }
    #cookie-banner.hiding { transform: translateY(160px); }
    .cookie-actions { width: 100%; }
    .cookie-btn-accept,
    .cookie-btn-refuse { flex: 1; text-align: center; }
}

/* ── Responsive base ── */
@media (max-width: 768px) {
    nav { padding: 16px 20px; overflow: hidden; }
    .nav-link { display: none; }
    .nav-dropdown { display: none; }
    .nav-right { gap: 10px; }
    .nav-cta { padding: 8px 14px; font-size: 13px; }
    .nav-cta-full { display: none; }
    .nav-cta-short { display: inline; }
    .nav-login { display: none; }
    .legal-page { padding: 100px 20px 80px; }
    footer {
        padding: 40px 20px 24px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ── Skip link ── */
.skip-link {
    position: fixed;
    top: -100px;
    left: 24px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--drivn-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Focus visible ── */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
    outline: 2px solid var(--drivn-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-in { opacity: 1; transform: none; }
}

/* ── Hamburger ── */
#nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 7px;
    background: transparent;
    border: 1px solid var(--drivn-border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--drivn-text);
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
#nav-hamburger:hover {
    background: rgba(87,107,247,0.08);
    border-color: rgba(87,107,247,0.25);
}
#nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
#nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    #nav-hamburger { display: flex; }
}

/* ── Mobile menu ── */
#nav-mobile {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--drivn-bg);
    z-index: 98;
    overflow-y: auto;
    padding: 16px 20px 40px;
    flex-direction: column;
    border-top: 1px solid var(--drivn-border);
}
#nav-mobile.open { display: flex; }

.nav-mobile-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--drivn-border);
}
.nav-mobile-section:last-child { border-bottom: none; }

.nav-mobile-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--drivn-text-muted);
    font-weight: 600;
    padding: 12px 4px 8px;
    opacity: 0.6;
}
.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--drivn-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    border-radius: 8px;
}
.nav-mobile-link:hover,
.nav-mobile-link.active { color: var(--drivn-text); }
.nav-mobile-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(87,107,247,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.nav-mobile-cta {
    display: block;
    margin-top: 16px;
    padding: 14px 24px;
    background: var(--drivn-blue);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.nav-mobile-cta:hover { background: var(--drivn-blue-light); }

/* ── Retour en haut ── */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--drivn-surface-2);
    border: 1px solid var(--drivn-border);
    color: var(--drivn-text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#back-to-top:hover { background: var(--drivn-surface); color: var(--drivn-text); }

/* ── Fil d'Ariane (breadcrumb) ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--drivn-text-muted);
    margin-bottom: 32px;
}
.breadcrumb a {
    color: var(--drivn-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--drivn-text); }
.breadcrumb span { opacity: 0.4; }

/* ── Sommaire article (TOC) ── */
.article-toc {
    background: var(--drivn-surface);
    border: 1px solid var(--drivn-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 0 0 40px;
}

.article-toc-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--drivn-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.article-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}

.article-toc li {
    counter-increment: toc;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
}

.article-toc li::before {
    content: counter(toc);
    font-size: 11px;
    font-weight: 600;
    color: var(--drivn-text-muted);
    min-width: 16px;
    text-align: right;
    flex-shrink: 0;
    opacity: 0.5;
}

.article-toc a {
    font-size: 14px;
    color: var(--drivn-text);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}

.article-toc a:hover { color: var(--drivn-accent); }

/* Mobile : sidebar caché, inline visible */
.article-toc--sidebar { display: none; }

/* Desktop ≥1100px : grille avec sidebar sticky */
@media (min-width: 1100px) {
    .article-toc--inline { display: none; }
    .article-toc--sidebar { display: block; margin: 0; }

    .article-page.has-toc {
        max-width: 1100px;
    }

    /* Wrapper 2 colonnes : article body + sidebar */
    .article-layout {
        display: grid;
        grid-template-columns: 1fr 260px;
        column-gap: 48px;
        align-items: start;
    }

    /* Le TOC sidebar est sticky dans le wrapper uniquement */
    .article-layout > .article-toc--sidebar {
        position: sticky;
        top: 80px;
        align-self: start;
    }
}

.article-body h2[id],
.article-body h3[id] {
    scroll-margin-top: 80px;
}
