/* ========================================
   DESIGN SYSTEM - VARIABLES
   ======================================== */
:root {
    /* Couleurs */
    --bg: #f8fafc;
    --surface: #ffffff;
    --text-900: #0f172a;
    --text-700: #334155;
    --text-600: #475569;
    --muted: #64748b;
    --border: #e2e8f0;

    /* Bleu principal #1976D2 */
    --primary-900: #0d47a1;
    --primary-800: #1565c0;
    --primary-700: #1976d2;
    --primary-600: #1e88e5;
    --primary-500: #42a5f5;
    --primary-400: #64b5f6;
    --primary-300: #90caf9;
    --primary-200: #bbdefb;
    --primary-100: #e3f2fd;
    --primary-50: #f0f7ff;

    --accent: #1976d2;
    --success: #10b981;
    --warning: #f59e0b;

    /* Ombres */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 14px 0 rgba(25, 118, 210, 0.3);
    --shadow-primary-lg: 0 8px 24px 0 rgba(25, 118, 210, 0.35);

    /* Border radius */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;

    /* Conteneur */
    --container: 1280px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-900);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 32px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-700);
    display: inline-block;
    margin-bottom: 16px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--primary-700);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--primary-800);
    box-shadow: var(--shadow-primary-lg);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--primary-700);
    border-color: var(--primary-700);
    background: white;
}

.btn-outline:hover {
    background: var(--primary-700);
    color: white;
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
    border-radius: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: white;
    color: var(--primary-700);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.badge span {
    color: var(--success);
    font-size: 12px;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
header {
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    padding: 24px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-700);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--text-700);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-700);
    background: var(--primary-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================================
   MOBILE MENU
   ======================================== */
#nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid var(--primary-200);
    background: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hamburger:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--primary-700);
    position: relative;
    display: block;
    transition: var(--transition-fast);
}

.hamburger span::before,
.hamburger span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: inherit;
    transition: var(--transition-fast);
}

.hamburger span::before {
    top: -6px;
}

.hamburger span::after {
    top: 6px;
}

/* Animation hamburger en X */
#nav-toggle:checked+.nav-actions .hamburger span {
    background: transparent;
}

#nav-toggle:checked+.nav-actions .hamburger span::before {
    top: 0;
    transform: rotate(45deg);
}

#nav-toggle:checked+.nav-actions .hamburger span::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0);
    z-index: 999;
}

#nav-toggle:checked~.mobile-menu {
    max-height: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu-inner {
    padding: 24px 20px 32px;
}

.mobile-menu a {
    display: block;
    padding: 16px 20px;
    color: var(--text-700);
    font-weight: 500;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

.mobile-menu .mobile-btn {
    margin-top: 20px;
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    background: var(--primary-700);
    color: white;
    border: none;
    box-shadow: var(--shadow-primary);
}

.mobile-menu .mobile-btn:hover {
    background: var(--primary-800);
    transform: translateY(-1px);
}

/* ========================================
   SECTIONS COMMUNES
   ======================================== */
section {
    padding: 100px 0;
}

.section-head {
    text-align: center;
    margin: 0 auto 64px;
    max-width: 780px;
}

.section-head h2 {
    font-size: clamp(36px, 4.5vw, 52px);
    margin: 16px 0 20px;
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-900);
}

.section-head p {
    color: var(--text-600);
    font-size: 19px;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CTA BANNER (utilisé sur toutes les pages)
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    box-shadow: var(--shadow-primary-lg);
}

.cta-banner h3 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-banner p {
    margin: 0;
    opacity: .95;
    line-height: 1.6;
    font-size: 18px;
}

.cta-banner .btn-primary {
    background: white;
    color: var(--primary-700);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.cta-banner .btn-primary:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--text-900);
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 64px;
    padding: 88px 0 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

.footer-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.brand-col p {
    color: #94a3b8;
    max-width: 42ch;
    margin: 14px 0;
    line-height: 1.7;
    font-size: 15px;
}

.footer-email a {
    color: var(--primary-400);
    font-weight: 600;
    text-decoration: none;
}

.footer-email a:hover {
    color: var(--primary-300);
}

.footer-col h4 {
    color: #ffffff;
    margin: 0 0 24px;
    font-size: 17px;
    font-weight: 700;
}

.footer-col a {
    color: #cbd5e1;
    display: block;
    padding: 10px 0;
    transition: var(--transition-fast);
    font-size: 15px;
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 28px 0;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
:focus-visible {
    outline: 3px solid var(--primary-300);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   RESPONSIVE - BASE (Header & Footer)
   ======================================== */
@media (max-width: 900px) {
    .container {
        padding-inline: 20px;
    }

    section {
        padding: 72px 0;
    }

    /* Header avec z-index élevé sur mobile */
    header {
        position: relative;
        background: white;
        border-bottom: 1px solid var(--border);
        z-index: 1000;
    }

    /* S'assurer que les section-head ne sont jamais sticky */
    .section-head {
        position: relative;
        z-index: 1;
    }

    /* Navigation mobile */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

    /* CTA Banner responsive */
    .cta-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 48px 32px;
    }

    .cta-banner .btn {
        width: 100%;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 64px 0 36px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .brand-col p {
        margin-inline: auto;
    }
}

@media (max-width: 600px) {
    .mobile-menu {
        top: 88px;
    }

    .cta-banner {
        padding: 40px 24px;
    }

    .cta-banner h3 {
        font-size: 24px;
    }
}