/* ============================================================
   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;
}

/* ── 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;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 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-icon {
    width: 44px;
    height: 44px;
    display: block;
}

.logo-text {
    font-family: 'Söhne Breit', sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: var(--drivn-text);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.logo-text span {
    color: var(--drivn-text-muted);
}

.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 {
    padding: 10px 24px;
    background: var(--drivn-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    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-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;
}

h1 em {
    font-style: italic;
    color: var(--drivn-accent);
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    padding: 32px 40px;
    border-top: 1px solid var(--drivn-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    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-links {
    display: flex;
    gap: 24px;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── 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); }

/* ── Responsive base ── */
@media (max-width: 768px) {
    nav { padding: 16px 20px; }
    .nav-link { display: none; }
    .legal-page { padding: 100px 20px 80px; }
    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
