/* ============================================================
   LA CHARRETTE — Premium Stylesheet
   Covoiturage gratuit & vélo-friendly pour la Mad Jacques
   ============================================================ */

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

:root {
    /* Brand */
    --color-orange: #F4841F;
    --color-orange-dark: #D96A06;
    --color-orange-light: #FFF3E6;
    --color-orange-glow: rgba(244, 132, 31, 0.25);
    --color-green: #22A45D;
    --color-green-dark: #198A4A;
    --color-green-light: #ECFDF3;
    --color-blue: #3B82F6;
    --color-blue-light: #EFF6FF;
    --color-red: #EF4444;
    --color-red-light: #FEF2F2;
    --color-yellow: #F59E0B;
    --color-yellow-light: #FFFBEB;

    /* Neutres premium */
    --color-black: #0F172A;
    --color-dark: #1E293B;
    --color-gray-900: #334155;
    --color-gray: #64748B;
    --color-gray-400: #94A3B8;
    --color-gray-light: #E2E8F0;
    --color-gray-100: #F1F5F9;
    --color-cream: #FFFDF7;
    --color-white: #FFFFFF;
    --color-bg: #FAFAF8;

    /* Typo */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Tailles */
    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;

    /* Espaces */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --space-4xl: 6rem;

    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Ombres premium */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-orange: 0 10px 40px -10px var(--color-orange-glow);
    --shadow-card-hover: 0 20px 40px -15px rgba(0,0,0,0.12), 0 0 0 1px rgba(244,132,31,0.08);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.25s var(--ease-out);
    --transition-slow: 0.4s var(--ease-out);
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--color-dark);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

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

a:hover {
    color: var(--color-orange-dark);
}

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

::selection {
    background: var(--color-orange);
    color: var(--color-white);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow {
    max-width: 720px;
}

/* --- Typographie --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--color-black);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); font-weight: 900; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 700; }
h4 { font-size: var(--text-xl); font-weight: 700; }

@media (max-width: 640px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}

/* ============================================================
   HEADER — Premium v2
   ============================================================ */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-slow);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: var(--space-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: all var(--transition);
}

.logo:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Footer logo */
.footer-logo-img {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.footer-logo-img:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .logo-img { height: 36px; }
}

/* Nav links (centre) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: var(--color-gray-900);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-link-icon {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.nav-link:hover {
    color: var(--color-orange);
    background: var(--color-orange-light);
}

.nav-link:hover .nav-link-icon {
    opacity: 1;
}

.nav-link.active {
    color: var(--color-orange);
    background: var(--color-orange-light);
}

/* Header actions (right) */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.header-login-btn {
    border-radius: var(--radius-full);
    padding: 0.5rem 1.2rem;
}

/* ============================================================
   USER DROPDOWN
   ============================================================ */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.35rem 0.6rem 0.35rem 0.35rem;
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius-full);
    background: var(--color-white);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    outline: none;
}

.user-dropdown-trigger:hover {
    border-color: var(--color-orange);
    box-shadow: 0 2px 12px rgba(244, 132, 31, 0.1);
}

.user-dropdown.open .user-dropdown-trigger {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px var(--color-orange-glow);
}

.user-dropdown-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

.user-dropdown-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-orange-light), var(--color-cream));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-orange);
    flex-shrink: 0;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.user-dropdown-name {
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--color-dark);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-email {
    font-size: 0.65rem;
    color: var(--color-gray-400);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-chevron {
    font-size: 0.6rem;
    color: var(--color-gray-400);
    transition: transform var(--transition);
    margin-left: 0.15rem;
}

.user-dropdown.open .user-dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.02);
    padding: var(--space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.2s var(--ease-out);
    z-index: 200;
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-menu-header {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-menu-name {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-dark);
}

.user-dropdown-menu-email {
    font-size: var(--text-xs);
    color: var(--color-gray-400);
}

.user-dropdown-menu-divider {
    height: 1px;
    background: var(--color-gray-light);
    margin: var(--space-xs) 0;
}

.user-dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.55rem var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-gray-900);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    text-decoration: none;
}

.user-dropdown-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-gray-400);
    transition: color var(--transition);
}

.user-dropdown-menu-item:hover {
    background: var(--color-gray-100);
    color: var(--color-orange);
}

.user-dropdown-menu-item:hover i {
    color: var(--color-orange);
}

.user-dropdown-menu-item-danger {
    color: var(--color-red);
}

.user-dropdown-menu-item-danger i {
    color: var(--color-red);
}

.user-dropdown-menu-item-danger:hover {
    background: var(--color-red-light);
    color: var(--color-red);
}

.user-dropdown-menu-item-danger:hover i {
    color: var(--color-red);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--color-gray-100);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: var(--space-md) var(--space-xl);
        gap: 0.25rem;
        border-bottom: 1px solid var(--color-gray-light);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
        animation: mobileNavIn 0.25s var(--ease-out);
    }

    @keyframes mobileNavIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .user-dropdown-info {
        display: none;
    }

    .user-dropdown-trigger {
        padding: 0.25rem;
        border-color: transparent;
    }

    .user-dropdown-chevron {
        display: none;
    }
}

/* ============================================================
   BOUTONS — Premium
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.35rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

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

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange) 0%, #E8751A 100%);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: var(--shadow-sm), 0 2px 8px var(--color-orange-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-orange-dark) 0%, var(--color-orange) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-orange);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-green) 0%, #1E9B52 100%);
    color: var(--color-white);
    border-color: transparent;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 100%);
    color: var(--color-white);
}

.btn-outline {
    background: var(--color-white);
    color: var(--color-gray-900);
    border-color: var(--color-gray-light);
}

.btn-outline:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: var(--color-orange-light);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 0.35rem 0.85rem;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn-large {
    padding: 0.9rem 2.25rem;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
    font-weight: 700;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: linear-gradient(135deg, var(--color-red) 0%, #DC2626 100%);
    color: var(--color-white);
    border-color: transparent;
}

.btn-danger:hover {
    box-shadow: 0 10px 40px -10px rgba(239, 68, 68, 0.35);
}

/* ============================================================
   FORMULAIRES — Premium
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-gray-900);
    margin-bottom: 0.4rem;
    letter-spacing: 0;
}

.form-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-dark);
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-400);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--color-gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px var(--color-orange-glow);
    background: var(--color-white);
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: 0.35rem 0;
    transition: color var(--transition);
}

.form-checkbox:hover {
    color: var(--color-orange);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-orange);
    cursor: pointer;
    border-radius: 4px;
}

.form-error {
    color: var(--color-red);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

/* ============================================================
   CARTES — Premium
   ============================================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: var(--space-lg) var(--space-xl);
}

.card-flat {
    box-shadow: none;
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
}

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

/* ============================================================
   PAGE D'ACCUEIL — Hero Premium v2
   ============================================================ */
.hero {
    background: linear-gradient(165deg, #0F172A 0%, #1a2744 40%, #1E293B 100%);
    color: var(--color-white);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 132, 31, 0.3), transparent 70%);
    top: -15%;
    right: -10%;
    animation: shapeFloat1 12s ease-in-out infinite alternate;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
    bottom: -20%;
    left: -5%;
    animation: shapeFloat2 10s ease-in-out infinite alternate;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    top: 40%;
    left: 40%;
    animation: shapeFloat3 14s ease-in-out infinite alternate;
}

@keyframes shapeFloat1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes shapeFloat2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.15); }
}
@keyframes shapeFloat3 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-20px, -30px) scale(0.9); }
}

/* Hero layout */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero content (left) */
.hero-content {
    animation: heroContentIn 0.8s var(--ease-out) both;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-orange);
    margin-bottom: var(--space-lg);
    background: rgba(244, 132, 31, 0.1);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(244, 132, 31, 0.2);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--color-orange);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--color-orange), #F5C542);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-slogan {
    font-size: var(--text-xl);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: var(--text-lg);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin-bottom: var(--space-2xl);
}

/* CTA buttons */
.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
    animation: heroContentIn 0.8s var(--ease-out) 0.15s both;
}

.hero-btn-primary {
    box-shadow: 0 8px 32px rgba(244, 132, 31, 0.35);
}

.hero-btn-primary:hover {
    box-shadow: 0 12px 40px rgba(244, 132, 31, 0.5);
    transform: translateY(-3px);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

/* Trust badges */
.hero-trust {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    animation: heroContentIn 0.8s var(--ease-out) 0.3s both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.hero-trust-item i {
    color: var(--color-orange);
    font-size: var(--text-base);
}

.hero-trust-item strong {
    color: var(--color-white);
    font-weight: 700;
}

/* Hero visual (right) */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroVisualIn 1s var(--ease-out) 0.3s both;
}

@keyframes heroVisualIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Hero photo */
.hero-photo-frame {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: rotate(2deg);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    max-width: 480px;
}

.hero-photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 80px rgba(244, 132, 31, 0.15);
}

.hero-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.25) 100%
    );
    pointer-events: none;
}

.hero-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Hero responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-photo-frame {
        transform: rotate(0deg);
        max-width: 100%;
    }

    .hero-photo {
        height: 260px;
    }

    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0 var(--space-3xl);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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

/* ============================================================
   COMMENT ÇA MARCHE
   ============================================================ */
.how-section {
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-light);
    border-bottom: 1px solid var(--color-gray-light);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.how-step {
    text-align: center;
    position: relative;
    padding: var(--space-xl) var(--space-lg);
}

.how-step-number {
    position: absolute;
    top: 0;
    right: var(--space-lg);
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--color-gray-100);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.how-step-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-orange-light), #FFF3E6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-orange);
    margin: 0 auto var(--space-lg);
    box-shadow: 0 4px 16px rgba(244, 132, 31, 0.12);
    transition: all var(--transition);
}

.how-step:hover .how-step-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(244, 132, 31, 0.2);
}

.how-step h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.how-step p {
    font-size: var(--text-sm);
    color: var(--color-gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ============================================================
   EVENT CARDS — Enhanced
   ============================================================ */
.event-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.event-card-image-wrap .card-image {
    transition: transform 0.5s var(--ease-out);
}

.event-card:hover .event-card-image-wrap .card-image {
    transform: scale(1.05);
}

.event-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
    pointer-events: none;
}

.card-image-placeholder {
    background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.event-card-desc {
    color: var(--color-gray);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.event-card-footer {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-light);
}

.event-card-footer .btn {
    width: 100%;
}

.event-card:hover .event-card-footer .btn {
    background: linear-gradient(135deg, var(--color-orange-dark) 0%, var(--color-orange) 100%);
    box-shadow: var(--shadow-orange);
}

/* CTA Login card (non-authenticated) */
.cta-login-card {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cta-login-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background: var(--color-orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-orange);
    margin: 0 auto var(--space-xl);
}

.cta-login-card h2 {
    margin-bottom: var(--space-md);
}

.cta-login-card p {
    color: var(--color-gray);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   GRILLE D'ÉVÉNEMENTS — Premium
   ============================================================ */
.section {
    padding: var(--space-4xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-yellow));
    border-radius: 2px;
    margin: var(--space-md) auto 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.event-card .card-image {
    position: relative;
}

.event-type-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    color: var(--color-white);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.event-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--color-gray);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.event-card-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ============================================================
   LISTE DES TRAJETS — Premium
   ============================================================ */
.trips-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.trip-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .trip-card {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }
}

.trip-driver {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 80px;
}

.trip-driver-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2.5px solid var(--color-orange-light);
    transition: border-color var(--transition);
}

.trip-card:hover .trip-driver-avatar {
    border-color: var(--color-orange);
}

.trip-driver-name {
    font-weight: 600;
    font-size: var(--text-xs);
    text-align: center;
    color: var(--color-gray-900);
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--color-green-light);
    color: var(--color-green);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.trip-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.trip-route {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-black);
}

.trip-route-arrow {
    color: var(--color-orange);
    font-size: var(--text-xl);
}

.trip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    color: var(--color-gray);
    font-size: var(--text-xs);
}

.trip-meta-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.trip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.tag {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.tag-vibe {
    background: var(--color-blue-light);
    color: var(--color-blue);
    border-color: rgba(59, 130, 246, 0.1);
}

.tag-bike {
    background: var(--color-green-light);
    color: var(--color-green);
    border-color: rgba(34, 164, 93, 0.1);
}

.tag-cost {
    background: var(--color-yellow-light);
    color: #92400E;
    border-color: rgba(245, 158, 11, 0.15);
}

.trip-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.trip-seats {
    text-align: center;
    background: var(--color-orange-light);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    min-width: 60px;
}

.trip-seats-count {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--color-orange);
    line-height: 1;
}

.trip-seats-label {
    font-size: 0.65rem;
    color: var(--color-orange-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   TABS — Shared (tab-content animation used across pages)
   Page-specific tab styles live in their own CSS files.
   ============================================================ */

.tab-content {
    display: none;
    animation: tabFadeIn 0.3s var(--ease-out);
}

.tab-content.active {
    display: block;
}

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

/* Legacy underline tabs — kept for pages not yet migrated */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid var(--color-gray-light);
    margin-bottom: var(--space-xl);
}

.tab {
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-gray);
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: var(--font-body);
    transition: all var(--transition);
    margin-bottom: -1.5px;
}

.tab:hover {
    color: var(--color-orange);
    background: var(--color-orange-light);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab.active {
    color: var(--color-orange);
    border-bottom-color: var(--color-orange);
}

/* ============================================================
   PAGE LOGIN — Premium Split Screen
   ============================================================ */
.auth-page {
    display: flex;
    height: calc(100vh - 68px);
    overflow: hidden;
}

/* Visual panel (left) */
.auth-visual {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.auth-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl);
    color: var(--color-white);
}

.auth-visual-logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: var(--space-xl);
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.auth-visual-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.auth-visual-text {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: var(--space-xl);
}

.auth-visual-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.auth-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xs);
    font-weight: 600;
}

.auth-visual-badge i {
    color: var(--color-orange);
}

/* Form panel (right) */
.auth-form-panel {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-2xl);
    background: var(--color-white);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.auth-card h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    color: var(--color-gray);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Auth tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: var(--space-lg);
}

.auth-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-gray);
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    margin-bottom: 0;
}

.auth-tabs .tab:hover {
    color: var(--color-gray-900);
}

.auth-tabs .tab.active {
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

/* Google button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.7rem 1.2rem;
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-gray-900);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-google:hover {
    border-color: var(--color-gray-400);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-md) 0;
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-gray-light);
}

/* Input with icon */
.form-input-wrap {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color var(--transition);
}

.form-input-with-icon {
    padding-left: 2.6rem;
}

.form-input-wrap:focus-within .form-input-icon {
    color: var(--color-orange);
}

/* Compact form spacing */
.auth-card .form-group {
    margin-bottom: var(--space-sm);
}

.auth-card .form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

/* Submit button */
.auth-submit-btn {
    margin-top: var(--space-xs);
    border-radius: var(--radius-lg);
}

/* Footer */
.auth-footer {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-light);
    line-height: 1.6;
}

/* Auth responsive */
@media (max-width: 960px) {
    .auth-page {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 68px);
        overflow: visible;
    }

    .auth-visual {
        flex: none;
        min-height: 240px;
    }

    .auth-visual-title {
        font-size: var(--text-2xl);
    }

    .auth-visual-content {
        padding: var(--space-xl);
    }

    .auth-form-panel {
        flex: none;
        padding: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .auth-visual {
        min-height: 180px;
    }

    .auth-visual-title {
        font-size: var(--text-xl);
    }

    .auth-visual-badges {
        display: none;
    }

    .auth-form-panel {
        padding: var(--space-lg);
    }
}

/* ============================================================
   DASHBOARD — Premium
   ============================================================ */

/* Top bar */
.dash-topbar {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    color: var(--color-white);
    padding: var(--space-lg) 0;
}

.dash-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.dash-greeting h1 {
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-bottom: 0.15rem;
    font-weight: 800;
}

.dash-greeting p {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--text-sm);
    margin: 0;
}

.dash-wave {
    display: inline-block;
    animation: dash-wave-anim 1.8s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes dash-wave-anim {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
}

/* Stats */
.dash-stats {
    display: flex;
    gap: var(--space-sm);
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 0.55rem 0.9rem;
}

.dash-stat--alert {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.dash-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.dash-stat-icon--trips {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.dash-stat-icon--bookings {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.dash-stat-icon--confirmed {
    background: rgba(34, 164, 93, 0.15);
    color: #4ade80;
}

.dash-stat-icon--pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.dash-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1.1;
}

.dash-stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Profile nudge */
.dash-nudge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.dash-nudge:hover {
    border-color: var(--color-orange);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.1);
}

.dash-nudge-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.dash-nudge-text {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--color-gray-900);
    line-height: 1.4;
}

.dash-nudge-text strong {
    color: var(--color-orange-dark);
}

.dash-nudge-arrow {
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    flex-shrink: 0;
    transition: all var(--transition);
}

.dash-nudge:hover .dash-nudge-arrow {
    color: var(--color-orange);
    transform: translateX(2px);
}

/* Events section */
.dash-events {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-light);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.dash-events-scroll {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-light) transparent;
}

.dash-events-scroll::-webkit-scrollbar {
    height: 4px;
}

.dash-events-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dash-events-scroll::-webkit-scrollbar-thumb {
    background: var(--color-gray-light);
    border-radius: 2px;
}

.dash-event-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-light);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    background: var(--color-white);
}

.dash-event-card:hover {
    border-color: var(--color-orange);
    box-shadow: 0 2px 12px rgba(244, 132, 31, 0.1);
    transform: translateY(-1px);
}

.dash-event-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.dash-event-cover--placeholder {
    background: linear-gradient(135deg, var(--color-orange-light), var(--color-cream));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-orange);
}

.dash-event-body {
    flex: 1;
    min-width: 0;
}

.dash-event-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-orange);
}

.dash-event-name {
    font-size: var(--text-sm);
    font-weight: 700;
    margin: 0.1rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-event-date {
    font-size: var(--text-xs);
    color: var(--color-gray);
}

.dash-event-date i {
    margin-right: 0.15rem;
}

.dash-event-arrow {
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    flex-shrink: 0;
    transition: all var(--transition);
}

.dash-event-card:hover .dash-event-arrow {
    color: var(--color-orange);
    transform: translateX(2px);
}

/* Content area */
.dash-content {
    padding: var(--space-xl) 0 var(--space-3xl);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(244,132,31,0.03) 0%, transparent 50%),
        var(--color-gray-50);
    min-height: calc(100vh - 200px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

/* Panel */
.dash-panel {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-light);
    overflow: hidden;
}

.dash-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-gray-light);
}

.dash-panel-header h2 {
    font-size: var(--text-base);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dash-panel-header h2 i {
    color: var(--color-orange);
    font-size: var(--text-sm);
}

.dash-panel-count {
    background: var(--color-gray-100);
    color: var(--color-gray);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
}

/* Card list */
.dash-card-list {
    padding: var(--space-xs);
}

.dash-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.dash-card:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-light);
}

.dash-card + .dash-card {
    border-top: 1px solid var(--color-gray-100);
}

.dash-card:hover + .dash-card {
    border-top-color: transparent;
}

.dash-card-left {
    flex: 1;
    min-width: 0;
}

.dash-card-badges {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
}

.dash-card-title {
    font-size: var(--text-base);
    font-weight: 700;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.75rem;
    font-size: var(--text-xs);
    color: var(--color-gray);
}

.dash-card-meta i {
    margin-right: 0.15rem;
}

/* Seats pill */
.dash-card-seats {
    text-align: center;
    background: var(--color-orange-light);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    line-height: 1;
}

.dash-card-seats-count {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--color-orange);
}

.dash-card-seats-label {
    font-size: 0.6rem;
    color: var(--color-orange-dark);
    font-weight: 600;
}

/* Phone pill */
.dash-card-phone {
    flex-shrink: 0;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-green);
    background: var(--color-green-light);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Empty state */
.dash-empty {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--color-gray-400);
}

.dash-empty i {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    opacity: 0.4;
}

.dash-empty p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
    color: var(--color-gray);
}

.dash-empty-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-gray-400);
    font-style: italic;
}

/* Responsive */
@media (max-width: 960px) {
    .dash-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dash-greeting h1 {
        font-size: var(--text-xl);
    }

    .dash-stat {
        padding: 0.4rem 0.65rem;
    }

    .dash-stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .dash-stat-value {
        font-size: var(--text-base);
    }
}

/* ============================================================
   ADMIN MJ STAFF — Premium
   ============================================================ */
.mjstaff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.mjstaff-import-form .btn {
    font-size: var(--text-sm);
}

@media (max-width: 768px) {
    .mjstaff-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PROFIL — Premium
   ============================================================ */

/* Top bar */
.prof-topbar {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    color: var(--color-white);
    padding: var(--space-lg) 0;
}

.prof-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.prof-topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Avatar with upload overlay */
.prof-topbar-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.prof-topbar-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.prof-topbar-avatar--empty {
    background: linear-gradient(135deg, rgba(244,132,31,0.3), rgba(244,132,31,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.prof-topbar-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    opacity: 0;
    cursor: pointer;
    transition: opacity var(--transition);
}

.prof-topbar-avatar-wrap:hover .prof-topbar-avatar-overlay {
    opacity: 1;
}

.prof-topbar-info h1 {
    font-size: var(--text-xl);
    color: var(--color-white);
    margin: 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.prof-topbar-info p {
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--text-sm);
    margin: 0.15rem 0 0;
}

.prof-badge-mj {
    color: #4ade80;
    font-size: var(--text-base);
}

/* Completion bar */
.prof-completion {
    min-width: 200px;
}

.prof-completion-text {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.35rem;
}

.prof-completion-text strong {
    color: var(--color-white);
}

.prof-completion-detail {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.prof-completion-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.prof-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-orange), #f59e0b);
    border-radius: 3px;
    transition: width 0.6s var(--ease-out);
}

/* Content area */
.prof-content {
    padding: var(--space-xl) 0 var(--space-3xl);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(244,132,31,0.03) 0%, transparent 50%),
        var(--color-gray-50);
    min-height: calc(100vh - 200px);
}

.prof-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-xl);
    align-items: start;
}

.prof-main,
.prof-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Sections (cards) */
.prof-section {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-gray-light);
    overflow: hidden;
}

.prof-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-gray-light);
}

.prof-section-header i {
    color: var(--color-orange);
    font-size: var(--text-sm);
}

.prof-section-header h3 {
    font-size: var(--text-base);
    font-weight: 700;
    margin: 0;
}

.prof-section-body {
    padding: var(--space-lg);
}

/* Save button */
.prof-save-btn {
    border-radius: var(--radius-lg);
    font-weight: 700;
    gap: var(--space-sm);
}

/* MJ Badge card */
.prof-mj-desc {
    font-size: var(--text-sm);
    color: var(--color-gray);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.prof-mj-verified {
    text-align: center;
    padding: var(--space-md) 0;
}

.prof-mj-icon {
    font-size: 2.5rem;
    color: #4ade80;
    margin-bottom: var(--space-sm);
}

.prof-mj-verified p {
    font-size: var(--text-base);
    margin-bottom: 0.2rem;
}

.prof-mj-verified span {
    font-size: var(--text-xs);
    color: var(--color-gray);
}

/* Checklist */
.prof-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.prof-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

.prof-check i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.prof-check--done {
    color: var(--color-dark);
}

.prof-check--done i {
    color: #4ade80;
}

/* Responsive */
@media (max-width: 960px) {
    .prof-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .prof-sidebar {
        order: -1;
    }
}

@media (max-width: 480px) {
    .prof-topbar-left {
        gap: var(--space-md);
    }

    .prof-topbar-avatar {
        width: 56px;
        height: 56px;
    }

    .prof-topbar-info h1 {
        font-size: var(--text-lg);
    }

    .prof-completion {
        min-width: 100%;
    }
}

/* ============================================================
   STATUTS — Premium
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.status-pending {
    background: var(--color-yellow-light);
    color: #92400E;
    border-color: rgba(245, 158, 11, 0.2);
}

.status-confirmed {
    background: var(--color-green-light);
    color: var(--color-green-dark);
    border-color: rgba(34, 164, 93, 0.15);
}

.status-rejected {
    background: var(--color-red-light);
    color: var(--color-red);
    border-color: rgba(239, 68, 68, 0.15);
}

.status-cancelled {
    background: var(--color-gray-100);
    color: var(--color-gray);
    border-color: var(--color-gray-light);
}

/* ============================================================
   ALERTES & MESSAGES — Premium
   ============================================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    border: 1px solid transparent;
    font-weight: 500;
    animation: alertIn 0.3s var(--ease-out);
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: var(--color-green-light);
    color: var(--color-green-dark);
    border-color: rgba(34, 164, 93, 0.2);
}

.alert-error {
    background: var(--color-red-light);
    color: #B91C1C;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: var(--color-blue-light);
    color: #1D4ED8;
    border-color: rgba(59, 130, 246, 0.2);
}

.alert-warning {
    background: var(--color-yellow-light);
    color: #92400E;
    border-color: rgba(245, 158, 11, 0.25);
}

/* ============================================================
   EMPTY STATE — Premium
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    color: var(--color-gray);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    opacity: 0.4;
    filter: grayscale(0.3);
}

.empty-state h3 {
    color: var(--color-gray);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.empty-state p {
    font-size: var(--text-sm);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   FOOTER — Premium
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #0F172A 0%, #0B1120 100%);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244,132,31,0.3), transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
}

.footer-tagline {
    color: var(--color-gray);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: var(--color-gray-400);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-orange);
    transition: width var(--transition);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--space-lg);
    margin-bottom: var(--space-md);
}

.footer-disclaimer p {
    font-size: var(--text-xs);
    color: rgba(148, 163, 184, 0.6);
    line-height: 1.7;
    max-width: 800px;
}

.footer-copy p {
    font-size: var(--text-xs);
    color: rgba(148, 163, 184, 0.4);
    text-align: center;
    letter-spacing: 0.01em;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.hidden { display: none !important; }

/* Loading spinner — Premium */
.spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid var(--color-gray-light);
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: spin 0.7s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
}

/* Direction badge — Premium */
.direction-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.direction-aller {
    background: var(--color-blue-light);
    color: var(--color-blue);
    border-color: rgba(59, 130, 246, 0.12);
}

.direction-retour {
    background: var(--color-orange-light);
    color: var(--color-orange);
    border-color: rgba(244, 132, 31, 0.12);
}

/* ============================================================
   SITE MAIN
   ============================================================ */
.site-main {
    flex: 1;
}

/* ============================================================
   ANIMATIONS GLOBALES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
