@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

:root {
    /* Palette noir et blanc raffinée avec touches de couleur */
    --primary-color: #ffffff;           /* Blanc pur */
    --secondary-color: #f8f8f8;         /* Blanc cassé */
    --accent-color: #e8e8e8;           /* Gris très clair */
    --dark-bg: #2e2b2b;                /* Noir pur */
    --dark-card: #292828;              /* Noir profond */
    --dark-nav: #2a2828;               /* Noir navigation */
    --text-primary: #ffffff;            /* Blanc */
    --text-secondary: #e0e0e0;          /* Gris très clair */
    --text-muted: #999999;             /* Gris moyen */
    --border-light: #383535;           /* Bordure sombre */
    --border-subtle: #2e2c2c;          /* Bordure très subtile */
    --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Dégradé principal */

    /* Touches de couleur plus présentes mais raffinées */
    --color-accent-blue: #4a90e2;      /* Bleu subtil */
    --color-accent-purple: #8b5cf6;    /* Violet subtil */
    --color-accent-green: #10b981;     /* Vert subtil */
    --color-accent-rose: #f43f5e;      /* Rose subtil */
    --color-accent-amber: #f59e0b;     /* Ambre subtil */
    --color-accent-cyan: #06b6d4;      /* Cyan subtil */

    /* Gradients raffinés avec couleur */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    --gradient-secondary: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
    --gradient-card: linear-gradient(145deg, #0a0a0a 0%, #151515 100%);
    --gradient-subtle: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #4a90e2 0%, #8b5cf6 100%);
    --gradient-accent-warm: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
    --gradient-accent-cool: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);

    /* Ombres élégantes avec couleur */
    --shadow-soft: 0 4px 20px rgba(255, 255, 255, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.8);
    --shadow-accent: 0 4px 15px rgba(74, 144, 226, 0.2);
    --shadow-colorful: 0 4px 25px rgba(74, 144, 226, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: url("../images/coccinelle.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Effet de brouillage initial - ne se joue qu'une fois */
.page-blur-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 10000;
    pointer-events: none;
    animation: clearBlur 2.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes clearBlur {
    0% {
        backdrop-filter: blur(20px);
        opacity: 1;
    }
    70% {
        backdrop-filter: blur(3px);
        opacity: 0.5;
    }
    100% {
        backdrop-filter: blur(0px);
        opacity: 0;
        visibility: hidden;
    }
}

/* Animation d'apparition du contenu */
.content-reveal {
    opacity: 0;
    animation: fadeInContent 1.5s ease-out forwards;
    animation-delay: 1.8s;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filtre avec subtiles touches de couleur */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(10, 10, 20, 0.75) 35%,
        rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

/* ======== HEADER MINIMALISTE AVEC COULEUR ======== */
header {
    background: rgba(50, 50, 50, 0.95);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.logo:hover::after,
.logo:active::after,
.logo:focus::after {
    width: 100%;
}

.logo:hover,
.logo:active,
.logo:focus {
    transform: translateY(-1px);
    color: var(--color-accent-blue);
}

/* Spécifique mobile - effet au toucher */
@media (max-width: 768px) {
    .logo:active::after {
        width: 100%;
        animation: mobileTap 0.6s ease-out;
    }

    .logo:active {
        transform: translateY(-1px);
        color: var(--color-accent-blue);
    }

    @keyframes mobileTap {
        0% {
            width: 0;
        }
        50% {
            width: 120%;
        }
        100% {
            width: 100%;
        }
    }
}

.logo-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    filter: grayscale(80%);
}

.logo:hover .logo-image,
.logo:active .logo-image,
.logo:focus .logo-image {
    filter: grayscale(0%);
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

/* ======== NAVIGATION AVEC COULEURS ======== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.2px;
}

.nav-links a:hover {
    color: var(--color-accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* Mobile Profile Avatar - show on desktop only */
.mobile-profile-avatar {
    display: none;
}

/* Desktop - show avatar in header */
@media (min-width: 769px) {
    .mobile-profile-avatar {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        padding: 8px;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
    }

    .mobile-profile-avatar:hover,
    .mobile-profile-avatar:active {
        background: rgba(26, 115, 232, 0.1);
        transform: translateY(-1px);
    }

    .mobile-avatar-container {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid rgba(255, 255, 255, 0.4);
        transition: all 0.3s ease;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .mobile-profile-avatar:hover .mobile-avatar-container {
        border-color: #1a73e8;
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
        transform: scale(1.05);
    }

    .mobile-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .mobile-avatar-initials {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
        color: white;
        font-weight: 700;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .mobile-avatar-name {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-primary);
        text-align: center;
        line-height: 1.2;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: color 0.3s ease;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        margin-top: 2px;
    }

    .mobile-profile-avatar:hover .mobile-avatar-name {
        color: #1a73e8;
    }
}

/* Couleurs alternées pour les liens de navigation */
.nav-links a:nth-child(1):hover { color: var(--color-accent-blue); }
.nav-links a:nth-child(2):hover { color: var(--color-accent-purple); }
.nav-links a:nth-child(3):hover { color: var(--color-accent-green); }
.nav-links a:nth-child(4):hover { color: var(--color-accent-rose); }
.nav-links a:nth-child(5):hover { color: var(--color-accent-cyan); }


/* ======== HERO SECTION AVEC COULEURS ======== */
.hero {
    padding: 150px 30px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    z-index: -1;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1px;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* ======== BOUTONS AVEC COULEURS ======== */
.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}


.btn-secondary {
    background: rgba(10, 10, 10, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--color-accent-blue);
    color: var(--color-accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-colorful);
}

/* ======== SECTION FEATURES AVEC COULEURS ======== */
.features {
    padding: 80px 30px;
    background: rgba(10, 10, 10, 0.6);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--gradient-card);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Couleurs alternées pour les cartes */
.feature-card:nth-child(1)::before { background: var(--gradient-accent); }
.feature-card:nth-child(2)::before { background: var(--gradient-accent-warm); }
.feature-card:nth-child(3)::before { background: var(--gradient-accent-cool); }

.feature-card:hover {
    border-color: var(--color-accent-blue);
}

/* Effet avant supprimé pour simplification */

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Effet icône supprimé pour simplification */

/* Couleurs d'icônes alternées supprimées pour simplification */

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Effet titre supprimé pour simplification */

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Dots carousel — masqués par défaut (desktop), affichés via media query mobile */
.carousel-dots {
    display: none;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: #1a73e8;
    transform: scale(1.3);
}

/* ======== FOOTER AVEC COULEUR ======== */
footer {
    background: linear-gradient(135deg, var(--dark-nav) 0%, rgba(10, 10, 20, 0.95) 100%);
    border-top: 1px solid var(--color-accent-blue);
    text-align: center;
    padding: 40px 30px;
    margin-top: 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

footer:hover .footer-container p {
    color: var(--text-secondary);
}

/* ======== STYLES GÉNÉRAUX POUR LIENS ======== */
a,
a:visited,
a:active {
    text-decoration: none;
    outline: none;
}

a:hover {
    text-decoration: none;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 768px) {
    /* Optimisation de l'image de fond pour tablette */
    body {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll; /* Meilleure performance sur mobile */
    }

    .nav-links {
        display: none;
    }

    /* Mobile Profile Avatar in header - hidden on mobile */
    .mobile-profile-avatar {
        display: none !important;
    }

    .mobile-profile-avatar:hover,
    .mobile-profile-avatar:active {
        background: rgba(26, 115, 232, 0.1);
        transform: translateY(-1px);
    }

    .mobile-avatar-container {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid rgba(255, 255, 255, 0.4);
        transition: all 0.3s ease;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .mobile-profile-avatar:hover .mobile-avatar-container {
        border-color: #1a73e8;
        box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
        transform: scale(1.05);
    }

    .mobile-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .mobile-avatar-initials {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
        color: white;
        font-weight: 700;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .mobile-avatar-name {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-primary);
        text-align: center;
        line-height: 1.2;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: color 0.3s ease;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        margin-top: 2px;
    }

    .mobile-profile-avatar:hover .mobile-avatar-name {
        color: #1a73e8;
    }

    .nav-container {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.8rem;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 100px 20px 80px;
        min-height: calc(100vh - 80px);
        justify-content: center;
        align-items: center;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 18px 35px;
        font-size: 1.1rem;
    }

    .features {
        padding: 40px 0 10px;
    }

    .features-container {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 14px;
        padding: 0 20px 20px;
        max-width: none;
        margin: 0;
        scrollbar-width: none;
    }

    .features-container::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 85vw;
        scroll-snap-align: start;
        min-width: 0;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 14px 0 20px;
    }
}


@media (max-width: 480px) {
    /* Optimisation spécifique pour mobile */
    body {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        min-height: 100vh;
    }

    /* Ajustement du filtre pour mobile */
    body::before {
        background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(10, 10, 20, 0.82) 35%,
            rgba(0, 0, 0, 0.83) 100%);
    }

    .mobile-menu {
        width: 100vw;
    }

    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }

    .hero {
        padding: 90px 15px 60px;
        min-height: calc(100vh - 70px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        text-align: center;
        padding: 0 10px;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3.2rem);
        margin-bottom: 25px;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 35px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .cta-buttons {
        gap: 15px;
        margin-bottom: 40px;
    }

    .btn {
        padding: 16px 30px;
        font-size: 1rem;
        border-radius: 10px;
        max-width: 260px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    /* Amélioration du bouton d'aide */
    .btn-help {
        position: fixed;
        top: 90px;
        right: 15px;
        z-index: 999;
        background: rgba(255, 255, 255, 0.95);
        color: var(--dark-bg);
        padding: 12px 20px;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 500;
        border: 1px solid rgba(74, 144, 226, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .btn-help:hover {
        background: var(--color-accent-blue);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    }
}

/* Optimisation supplémentaire pour très petits écrans */
@media (max-width: 360px) {
    body {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    body::before {
        background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(10, 10, 20, 0.85) 35%,
            rgba(0, 0, 0, 0.85) 100%);
    }

    .nav-container {
        padding: 0 10px;
        height: 65px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 80px 10px 50px;
        min-height: calc(100vh - 65px);
    }

    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .btn {
        max-width: 240px;
        padding: 14px 25px;
        font-size: 0.95rem;
    }
}

/* ======== ANIMATIONS AVEC COULEUR + OPTIMISATIONS MOBILE ======== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes colorShift {
    0% { color: var(--color-accent-blue); }
    25% { color: var(--color-accent-purple); }
    50% { color: var(--color-accent-green); }
    75% { color: var(--color-accent-rose); }
    100% { color: var(--color-accent-blue); }
}

.color-shift {
    animation: colorShift 8s infinite;
}

/* Animation pour mobile - effet de fondu au scroll */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-slide-in {
    animation: slideInFromBottom 0.6s ease-out;
}

/* Effet de particules flottantes lors du défloutage (optionnel) */
@keyframes floatParticles {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
        transform: translateY(50vh) scale(1);
    }
    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(74, 144, 226, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.particle:nth-child(1) { left: 10%; animation: floatParticles 3s ease-out; animation-delay: 1s; }
.particle:nth-child(2) { left: 20%; animation: floatParticles 3.2s ease-out; animation-delay: 1.2s; }
.particle:nth-child(3) { left: 30%; animation: floatParticles 2.8s ease-out; animation-delay: 1.1s; }
.particle:nth-child(4) { left: 70%; animation: floatParticles 3.1s ease-out; animation-delay: 1.3s; }
.particle:nth-child(5) { left: 80%; animation: floatParticles 2.9s ease-out; animation-delay: 1.4s; }
.particle:nth-child(6) { left: 90%; animation: floatParticles 3.3s ease-out; animation-delay: 1.1s; }

/* Réduction des animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    .page-blur-effect,
    .content-reveal,
    .particle {
        animation: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        backdrop-filter: none !important;
    }

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

/* ======== ACCENTS DE COULEUR ======== */
.accent-blue { color: var(--color-accent-blue); }
.accent-purple { color: var(--color-accent-purple); }
.accent-green { color: var(--color-accent-green); }
.accent-rose { color: var(--color-accent-rose); }
.accent-amber { color: var(--color-accent-amber); }
.accent-cyan { color: var(--color-accent-cyan); }

.border-accent-blue { border-color: var(--color-accent-blue); }
.border-accent-purple { border-color: var(--color-accent-purple); }
.border-accent-green { border-color: var(--color-accent-green); }
.border-accent-rose { border-color: var(--color-accent-rose); }
.border-accent-amber { border-color: var(--color-accent-amber); }
.border-accent-cyan { border-color: var(--color-accent-cyan); }

/* ======== ÉLÉMENTS INTERACTIFS COLORÉS ======== */
.interactive-accent:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-colorful);
}

/* ======== SCROLLBAR PERSONNALISÉE ======== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-purple) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-accent-purple) 0%, var(--color-accent-blue) 100%);
}


/* script chargement app */

   /* Splash Screen Styles */
        .splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            animation: splashFadeOut 0.5s ease-out 2.5s forwards;
        }

        .splash-logo {
            width: 170px;
            height: 170px;
            background: white;
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            animation: logoEntry 1.2s ease-out;
            box-shadow: 0 15px 40px rgba(0,0,0,0.25);
            overflow: hidden;
        }

        .splash-logo img {
            width: 120px;
            height: 120px;
            opacity: 0;
            animation: logoImageFade 0.8s ease-out 0.4s forwards;
        }

/* Animation du titre Odimove - Version CSS pure synchronisée */
.splash-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 1;
    animation:
        slideInFromLeft 0.8s ease-out 0.3s both,
        titleDisappearLeftToRight 1.0s ease-out 1.5s forwards;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Animation d'apparition initiale */
@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'apparition de gauche à droite */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation de disparition de gauche à droite avec effet de masquage */
@keyframes titleDisappearLeftToRight {
    0% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }
    10% {
        opacity: 0.9;
        clip-path: inset(0 0 0 5%);
        transform: translateY(0);
    }
    25% {
        opacity: 0.8;
        clip-path: inset(0 0 0 15%);
        transform: translateY(2px);
    }
    40% {
        opacity: 0.6;
        clip-path: inset(0 0 0 30%);
        transform: translateY(4px);
    }
    55% {
        opacity: 0.4;
        clip-path: inset(0 0 0 50%);
        transform: translateY(6px);
    }
    70% {
        opacity: 0.3;
        clip-path: inset(0 0 0 70%);
        transform: translateY(8px);
    }
    85% {
        opacity: 0.1;
        clip-path: inset(0 0 0 85%);
        transform: translateY(10px);
    }
    100% {
        opacity: 0;
        clip-path: inset(0 0 0 100%);
        transform: translateY(15px);
        visibility: hidden;
    }
}

/* Typewriter effect styles */
.typewriter {
    text-align: center;
    animation: none !important; /* Override existing animations */
    opacity: 1 !important;
}

.typewriter .cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #fff;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Animation des points de chargement - apparition après la disparition du titre */
.loading-indicator {
    margin-top: 40px;
    display: flex;
    gap: 10px;
    opacity: 0;
    animation: loadingAppear 0.6s ease-out 5.5s forwards;
}

@keyframes loadingAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loading-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    animation: dotPulse 1.8s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
    animation-delay: 5.8s;
}
.loading-dot:nth-child(2) {
    animation-delay: 6.1s;
}
.loading-dot:nth-child(3) {
    animation-delay: 6.4s;
}

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

/* Animation de la voiture - synchronisée avec le splash screen */
.car-animation {
    position: fixed;
    bottom: 75px;
    left: 100%;
    font-size: 3rem;
    transform: translateX(0);
    transition: transform 3s linear, opacity 0.5s ease;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    /* L'animation se lance via JavaScript au load de la page */
}

/* S'assurer que l'animation de la voiture reste visible pendant tout le splash */
.splash-screen {
    /* Augmenter la durée pour voir l'animation de la voiture complète */
    animation: splashFadeOut 0.5s ease-out 2.5s forwards;
}

/* Optimisation : s'assurer que le contenu principal n'apparaît qu'après */
.main-content {
    opacity: 0;
    transform: scale(0.96);
    animation: contentEntry 0.5s ease-out 3s forwards;
}

@keyframes contentEntry {
    0% {
        opacity: 0;
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

        .splash-subtitle {
            color: rgba(255,255,255,0.85);
            font-size: 16px;
            font-weight: 300;
            text-align: center;
            opacity: 0;
            animation: subtitleFade 0.8s ease-out 1.2s forwards;
            max-width: 280px;
            line-height: 1.4;
        }

        .loading-indicator {
            margin-top: 40px;
            display: flex;
            gap: 10px;
        }

        .loading-dot {
            width: 10px;
            height: 10px;
            background: white;
            border-radius: 50%;
            opacity: 0.4;
            animation: dotPulse 1.8s ease-in-out infinite;
        }

        .loading-dot:nth-child(2) { animation-delay: 0.3s; }
        .loading-dot:nth-child(3) { animation-delay: 0.6s; }

        /* Main content hidden initially */
        .main-content {
            opacity: 0;
            transform: scale(0.96);
            animation: contentEntry 1s ease-out 3.3s forwards;
        }

        /* Animations */
        @keyframes logoEntry {
            0% {
                transform: scale(0.3) rotate(-10deg);
                opacity: 0;
            }
            60% {
                transform: scale(1.1) rotate(2deg);
            }
            100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }

        @keyframes logoImageFade {
            0% { opacity: 0; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1); }
        }

        @keyframes titleSlideUp {
            0% {
                opacity: 0;
                transform: translateY(30px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes subtitleFade {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @keyframes splashFadeOut {
            0% {
                opacity: 1;
                visibility: visible;
            }
            100% {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
            }
        }

        @keyframes contentEntry {
            0% {
                opacity: 0;
                transform: scale(0.96);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .splash-logo {
                width: 150px;
                height: 150px;
            }

            .splash-title {
                font-size: 35px;
            }

            .splash-subtitle {
                font-size: 14px;
                max-width: 250px;
            }
        }

/* Vibration subtile au clic */
.btn:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* ================================= */
/* 2. AJOUTER CE CSS À VOTRE FICHIER CSS EXISTANT */
/* ================================= */

/* Mise à jour du menu mobile pour inclure la section profil */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 320px;
    height: calc(100vh - 80px);
    background: rgba(5, 5, 5, 0.98);
    border-left: 1px solid var(--border-light);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    padding: 0; /* Changé de 30px 0 à 0 */
    overflow-y: auto;
}

/* NOUVELLE SECTION PROFIL dans le menu mobile */
.mobile-profile-section {
    background: var(--gradient-card);
    border-bottom: 2px solid var(--border-light);
    padding: 25px 20px;
    margin-bottom: 10px;
    position: relative;
}

.mobile-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
}

.mobile-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-profile-header:hover {
    transform: translateY(-1px);
}

/* Cette règle était en conflit avec l'avatar du header - commentée
.mobile-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    border: 3px solid var(--color-accent-blue);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
*/

/* Règles associées commentées car en conflit avec l'avatar du header
.mobile-profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.mobile-profile-avatar:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.mobile-profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}
*/

.mobile-profile-info {
    flex: 1;
}

.mobile-profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.mobile-profile-name:hover {
    color: var(--color-accent-blue);
}

.mobile-profile-role {
    font-size: 0.9rem;
    color: var(--color-accent-blue);
    font-weight: 500;
    margin-bottom: 4px;
}

.mobile-profile-status {
    font-size: 0.8rem;
    color: var(--color-accent-green);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

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

.mobile-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.profile-action-btn {
    padding: 10px 14px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid var(--color-accent-blue);
    border-radius: 8px;
    color: var(--color-accent-blue);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.profile-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.5s;
}

.profile-action-btn:hover::before {
    left: 100%;
}

.profile-action-btn:hover {
    background: var(--color-accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.profile-action-btn:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Styles pour les notifications */
.notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 20px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 320px;
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notification-success {
    border-color: var(--color-accent-green);
    background: linear-gradient(145deg, #0a0a0a 0%, rgba(16, 185, 129, 0.05) 100%);
}

.notification-info {
    border-color: var(--color-accent-blue);
    background: linear-gradient(145deg, #0a0a0a 0%, rgba(74, 144, 226, 0.05) 100%);
}

.notification-warning {
    border-color: var(--color-accent-amber);
    background: linear-gradient(145deg, #0a0a0a 0%, rgba(245, 158, 11, 0.05) 100%);
}

.notification-error {
    border-color: var(--color-accent-rose);
    background: linear-gradient(145deg, #0a0a0a 0%, rgba(244, 63, 94, 0.05) 100%);
}

/* Modal pour modification du profil */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal.show {
    opacity: 1;
    visibility: visible;
}

.profile-modal-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.profile-modal.show .profile-modal-content {
    transform: scale(1);
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.profile-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 12px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    background: rgba(26, 26, 26, 0.9);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-save {
    flex: 1;
    padding: 12px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--color-accent-rose);
    color: var(--color-accent-rose);
}

/* Responsive pour la section profil */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100vw;
    }

    .mobile-profile-header {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

    /* Commenté - en conflit avec l'avatar header
    .mobile-profile-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    */

    .mobile-profile-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-action-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .profile-modal-content {
        padding: 20px;
        margin: 10px;
    }
}

@media (max-width: 380px) {
    .mobile-profile-section {
        padding: 20px 15px;
    }

    /* Commenté - en conflit avec l'avatar header
    .mobile-profile-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    */

    .mobile-profile-name {
        font-size: 1.1rem;
    }
}

/* Styles pour le dropdown profil et les modales */
.profile-dropdown {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-top: 10px;
    overflow: hidden;
}

.profile-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.profile-dropdown-item:hover {
    background: #f8f9fa;
}

.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-modal.show {
    opacity: 1;
}


/* ========================================
   DROPDOWN PROFIL - STYLE SOMBRE COHÉRENT
   ======================================== */

.profile-dropdown {
    display: none;
    background: var(--gradient-card); /* Utilise le même gradient que vos cartes */
    border-radius: 12px;
    box-shadow: var(--shadow-strong); /* Utilise vos ombres définies */
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light); /* Bordure cohérente */
    backdrop-filter: blur(10px);
    min-width: 280px;
}

.profile-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.profile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-secondary) !important; /* Utilise vos couleurs de texte */
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease; /* Même durée que vos autres transitions */
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* Effet hover avec les couleurs d'accent */
.profile-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.profile-dropdown-item:hover {
    background: rgba(74, 144, 226, 0.05); /* Même style que vos éléments interactifs */
    color: var(--text-primary) !important;
    transform: translateX(4px);
}

.profile-dropdown-item:hover::before {
    transform: scaleY(1);
}

.profile-dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.profile-dropdown-item:hover .profile-dropdown-icon {
    color: var(--color-accent-blue); /* Même couleur d'accent que vos autres éléments */
}

.profile-dropdown-text {
    flex: 1;
}

.profile-dropdown-title {
    font-weight: 500; /* Cohérent avec vos autres titres */
    font-size: 15px;
    color: var(--text-primary) !important;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.profile-dropdown-subtitle {
    font-size: 12px;
    color: var(--text-muted) !important;
    font-weight: 300; /* Cohérent avec vos autres sous-textes */
}

.profile-dropdown-separator {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* Style spécial pour la déconnexion */
.profile-dropdown-logout {
    color: var(--color-accent-rose) !important;
}

.profile-dropdown-logout .profile-dropdown-title {
    color: var(--color-accent-rose) !important;
}

.profile-dropdown-logout .profile-dropdown-icon {
    color: var(--color-accent-rose) !important;
}

.profile-dropdown-logout:hover {
    background: rgba(244, 63, 94, 0.05);
    color: var(--color-accent-rose) !important;
}

.profile-dropdown-logout:hover::before {
    background: var(--color-accent-rose);
}

/* Couleurs alternées pour les différents éléments (comme vos liens de nav) */
.profile-dropdown-item:nth-child(1):hover .profile-dropdown-icon {
    color: var(--color-accent-blue);
}
.profile-dropdown-item:nth-child(2):hover .profile-dropdown-icon {
    color: var(--color-accent-purple);
}
.profile-dropdown-item:nth-child(3):hover .profile-dropdown-icon {
    color: var(--color-accent-green);
}
.profile-dropdown-item:nth-child(4):hover .profile-dropdown-icon {
    color: var(--color-accent-cyan);
}
.profile-dropdown-item:nth-child(5):hover .profile-dropdown-icon {
    color: var(--color-accent-amber);
}

/* Style spécial pour "Nous contacter" - amélioration de la visibilité */
.profile-dropdown-contact {
    color: var(--text-secondary) !important;
}

.profile-dropdown-contact .profile-dropdown-title {
    color: var(--text-primary) !important; /* Titre plus visible */
    font-weight: 500;
}

.profile-dropdown-contact .profile-dropdown-icon {
    color: var(--color-accent-amber) !important; /* Icône plus visible */
}

.profile-dropdown-contact:hover {
    background: rgba(245, 158, 11, 0.05); /* Fond amber au hover */
    color: var(--text-primary) !important;
}

.profile-dropdown-contact:hover .profile-dropdown-title {
    color: var(--color-accent-amber) !important;
}

.profile-dropdown-contact:hover .profile-dropdown-icon {
    color: var(--color-accent-amber) !important;
}

.profile-dropdown-contact:hover::before {
    background: var(--color-accent-amber);
}

/* Arrow rotation (cohérent avec vos transitions) */
.profile-dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.profile-dropdown-arrow svg {
    width: 16px;
    height: 16px;
}

.profile-dropdown-arrow.active {
    transform: rotate(180deg);
}

/* Version responsive pour mobile */
@media (max-width: 768px) {
    .profile-dropdown {
        min-width: 230px;
        margin-top: 8px;
        /* Fix pour éviter le débordement */
        position: absolute;
        bottom: 70px; /* Au-dessus de la barre de navigation mobile */
        right: 10px;
        max-height: calc(100vh - 160px); /* Laisse de l'espace en haut et en bas */
        overflow-y: auto; /* Scroll si nécessaire */
    }

    .profile-dropdown-item {
        padding: 10px 14px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .profile-dropdown-icon {
        font-size: 18px;
    }

    .profile-dropdown-title {
        font-size: 14px;
    }

    .profile-dropdown-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown {
        min-width: 180px;
        margin-top: 6px;
        /* Améliorations UX mobile pour petits écrans */
        right: 5px;
        bottom: 60px; /* Plus proche de la barre navigation */
        max-height: calc(100vh - 140px); /* Plus d'espace sur petit écran */
        border-radius: 8px; /* Bordures moins arrondies pour économiser l'espace */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); /* Ombre plus forte pour se détacher */
    }

    .profile-dropdown-item {
        padding: 10px 14px;
        gap: 10px;
        /* Optimisation tactile pour mobile */
        min-height: 44px; /* Taille minimale recommandée pour le toucher */
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Amélioration du bouton de déconnexion sur mobile */
    .profile-dropdown-logout {
        background: rgba(244, 63, 94, 0.1);
        margin: 4px 8px 8px 8px;
        border-radius: 6px;
        border: 1px solid var(--color-accent-rose);
    }

    .profile-dropdown-logout:hover {
        background: var(--color-accent-rose);
    }
}

/* Pour les très petits écrans - solution alternative fullscreen */
@media (max-width: 360px) {
    .profile-dropdown {
        /* Modal fullscreen sur très petits écrans */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        z-index: 9999;
        background: var(--dark-bg);
        padding-top: 60px; /* Espace pour une barre de fermeture */
    }

    /* Ajout d'un header de fermeture pour très petits écrans */
    .profile-dropdown.active::after {
        content: "✕ Fermer";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--gradient-card);
        padding: 15px;
        text-align: center;
        color: var(--text-primary);
        font-weight: 600;
        border-bottom: 1px solid var(--border-light);
        cursor: pointer;
        z-index: 10000;
    }

    .profile-dropdown-item {
        padding: 18px 20px;
        min-height: 48px; /* Plus grand pour le tactile */
        border-bottom: 1px solid var(--border-subtle);
    }
}

/* Animation d'apparition avec effet de particules (optionnel, cohérent avec votre style) */
.profile-dropdown.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
    animation: dropdownAppear 0.3s ease-out;
}

@keyframes dropdownAppear {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 20px;
        opacity: 1;
    }
}




/* Styles pour l'avatar avec overlay photo - Commenté car en conflit avec l'avatar header
        .mobile-profile-avatar {
            position: relative;
            cursor: pointer;
            transition: transform 0.2s ease;
            overflow: hidden;
            border-radius: 50%;
        }

        .mobile-profile-avatar .initials-display {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .mobile-profile-avatar:hover {
            transform: scale(1.05);
        }

        .mobile-profile-avatar:hover .avatar-overlay {
            opacity: 1;
            background: rgba(0,0,0,0.7);
        }

        .avatar-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 50%;
            cursor: pointer;
            color: white;
            font-size: 16px;
        }
        */

        .camera-icon {
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
        }

        /* Animation de chargement pour l'upload */
        .avatar-uploading {
            opacity: 0.6;
            pointer-events: none;
        }

        .avatar-uploading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid #ffffff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }





/* ========== HIÉRARCHIE DES BOUTONS ========== */

/* Boutons Header (Compacts, discrets) */
.auth-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-login, .btn-register {
    padding: 0.6rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.9);
}

.btn-register {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
}

/* Boutons Hero Section (Proéminents, call-to-action) */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
    text-align: center;
}

/* Boutons primaires (Actions de conversion) */
.btn-primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Boutons secondaires (Actions d'information) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Links (Discrets, informatifs) */
.footer-container {
    text-align: center;
    padding: 2rem 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .auth-buttons {
        gap: 0.5rem;
    }

    .btn-login, .btn-register {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

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

@media (max-width: 480px) {
    .cta-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        min-width: auto;
    }
}


/* animation voiture de sport  */

.car-animation {
  position: fixed;
  bottom: 75px;            /* traverse à 20px du bas de l'écran */
  left: 100%;              /* départ hors écran à droite */
  font-size: 3rem;
  transform: translateX(0);
  transition: transform 3s linear, opacity 0.5s ease;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}

/* ======== BOUTON GO MISSION ======== */
.go-mission-btn {
    position: relative;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2064d1 0%, #1a73e8 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow:
        0 6px 20px rgba(66, 133, 244, 0.4),
        0 3px 12px rgba(66, 133, 244, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: waterDrop 4s ease-in-out infinite;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin: 10px auto;
    line-height: 1;
}

.go-mission-btn::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border: 5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-sizing: border-box;
    animation: pulseCircle 2.5s ease-in-out infinite; /* animation */
}

@keyframes pulseCircle {
    0% {
        top: 22px;
        left: 22px;
        right: 22px;
        bottom: 22px;
        opacity: 0.7;
    }
    50% {
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
        opacity: 1;
    }
    100% {
        top: 22px;
        left: 22px;
        right: 22px;
        bottom: 22px;
        opacity: 0.7;
    }
}


.go-mission-text {
    color: white;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
    white-space: nowrap;
}

.go-mission-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(66, 133, 244, 0.5),
        0 4px 15px rgba(66, 133, 244, 0.3);
    animation: none;
}

.go-mission-btn:hover::before {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.go-mission-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 4px 15px rgba(66, 133, 244, 0.4),
        0 2px 8px rgba(66, 133, 244, 0.2);
}

/* Animations */
@keyframes waterDrop {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4), 0 3px 12px rgba(66, 133, 244, 0.2);
    }
    15% { opacity: 0.7; transform: scale(0.98); }
    30% {
        opacity: 1;
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(66, 133, 244, 0.6), 0 4px 15px rgba(66, 133, 244, 0.3), inset 0 0 12px rgba(255, 255, 255, 0.2);
    }
    45% { opacity: 0.85; transform: scale(1); }
    60% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 7px 22px rgba(66, 133, 244, 0.5), 0 4px 14px rgba(66, 133, 244, 0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4), 0 3px 12px rgba(66, 133, 244, 0.2);
    }
}

@keyframes ripple {
    0% { border-color: rgba(255, 255, 255, 0.3); transform: scale(1); }
    30% { border-color: rgba(255, 255, 255, 0.6); transform: scale(1.05); }
    100% { border-color: rgba(255, 255, 255, 0.3); transform: scale(1); }
}

/* Intégration avec vos CTA buttons existants */
.cta-buttons {
    align-items: center; /* Pour aligner le bouton Go Mission avec les autres */
}

.cta-buttons .go-mission-btn {
    margin: 10px;
}

/* Media queries mobile */
@media (max-width: 480px) {
    .go-mission-btn {
        width: 100px;
        height: 100px;
        margin: 8px auto;
    }

    .go-mission-text {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    .go-mission-btn::before {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border-width: 5px;
    }
}

@media (max-width: 320px) {
    .go-mission-btn {
        width: 70px;
        height: 70px;
    }

    .go-mission-text {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
}







.reserve-btn {
    display: inline-block;
    padding: 12px 28px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;                 /* bleu en texte */
    background: transparent;        /* transparent */
    border: 2px solid #1a73e8;      /* contour bleu */
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;          /* enlève le souligné */
}

.reserve-btn:hover {
    background: #1a73e8;            /* fond bleu au hover */
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.reserve-btn:active {
    transform: scale(0.97);
}


@media (max-width: 480px) {
    .reserve-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* ======== LOGO AMÉLIORÉ - Plus visible et impactant ======== */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; /* Légèrement plus grand */
    font-weight: 700; /* Plus gras */
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px; /* Plus d'espace entre image et texte */
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Ombre pour plus de contraste */
}

/* Effet de brillance permanente sur le logo */
.logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-accent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px; /* Plus épais */
    background: var(--gradient-accent);
    transition: width 0.4s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.logo:hover::before {
    opacity: 0.1;
}

.logo:hover::after,
.logo:active::after,
.logo:focus::after {
    width: 100%;
}

.logo:hover,
.logo:active,
.logo:focus {
    transform: translateY(-2px) scale(1.02); /* Effet plus prononcé */
    color: var(--color-accent-blue);
    text-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.logo-image {
    width: 50px; /* Plus grande */
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent-blue); /* Bordure colorée par défaut */
    filter: grayscale(30%); /* Moins de grayscale pour plus de couleur */
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2); /* Ombre colorée */
}

.logo:hover .logo-image,
.logo:active .logo-image,
.logo:focus .logo-image {
    filter: grayscale(0%) brightness(1.1);
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.6);
    transform: rotate(-5deg) scale(1.1);
}


 /* Espacement amélioré pour les boutons d'authentification */
        .auth-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        @media (max-width: 768px) {
            .auth-buttons {
                gap: 15px;
                flex-direction: column;
                width: 100%;
            }

            .auth-buttons .btn {
                min-width: 200px;
            }
        }


        /* ===================================
   STYLE BOUTON JUSTIFICATIFS NAV
   ================================ */

/* Style pour le lien Justificatifs dans la navigation desktop */
.nav-links a.nav-justificatifs {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-links a.nav-justificatifs:hover {
    color: #10B981;
    transform: translateY(-2px);
}

.nav-links a.nav-justificatifs::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #059669);
    transition: width 0.3s ease;
}

.nav-links a.nav-justificatifs:hover::after {
    width: 80%;
}

/* Style pour le lien Justificatifs dans le menu mobile */
.mobile-menu a.mobile-nav-justificatifs {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu a.mobile-nav-justificatifs:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    padding-left: 25px;
    border-left: 3px solid #10B981;
}

/* Animation subtile pour l'icône */
.nav-links a.nav-justificatifs:hover,
.mobile-menu a.mobile-nav-justificatifs:hover {
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Responsive - assurer la cohérence */
@media (max-width: 768px) {
    .mobile-menu a.mobile-nav-justificatifs {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
    }
}

/* Ajustement pour le lien plus long */
.nav-links a.nav-justificatifs {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap; /* Empêche le retour à la ligne */
    font-size: 15px; /* Légèrement plus petit si besoin */
}

.nav-links a.nav-justificatifs:hover {
    color: #10B981;
    transform: translateY(-2px);
}

.nav-links a.nav-justificatifs::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #059669);
    transition: width 0.3s ease;
}

.nav-links a.nav-justificatifs:hover::after {
    width: 90%;
}

/* Style pour le lien Justificatifs dans le menu mobile */
.mobile-menu a.mobile-nav-justificatifs {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu a.mobile-nav-justificatifs:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    padding-left: 25px;
    border-left: 3px solid #10B981;
}

/* Animation subtile pour l'icône */
.nav-links a.nav-justificatifs:hover,
.mobile-menu a.mobile-nav-justificatifs:hover {
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu a.mobile-nav-justificatifs {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 500;
    }
}

/* Responsive pour écrans moyens */
@media (max-width: 1200px) {
    .nav-links a.nav-justificatifs {
        font-size: 14px; /* Réduire un peu sur écrans moyens */
    }
}

/* Style spécial pour le lien historique des déclarations */
.declarations-link {
    border-left: 3px solid #667eea !important;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent) !important;
}

.declarations-link .profile-dropdown-icon {
    color: #667eea !important;
}

.declarations-link:hover {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.1), transparent) !important;
}

/* Style pour le menu mobile - lien historique */
.nav-links .declarations-link {
    border-left: none !important;
    background: none !important;
    position: relative;
}

.nav-links .declarations-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #667eea;
    border-radius: 0 3px 3px 0;
}

.nav-links .declarations-link:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

/* ======== BOTTOM NAVIGATION BAR FOR MOBILE ======== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 38, 46, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

.bottom-nav.show {
    transform: translateY(0);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    min-width: 64px;
    cursor: pointer;
}

.bottom-nav-item:hover,
.bottom-nav-item:active,
.bottom-nav-item.active {
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.bottom-nav-icon {
    font-size: 26px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

/* Styles pour l'avatar dans la bottom nav */
.bottom-nav-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.bottom-nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.bottom-nav-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Effet hover pour l'avatar dans la bottom nav */
.bottom-nav-item:hover .bottom-nav-avatar-img,
.bottom-nav-item:active .bottom-nav-avatar-img,
.bottom-nav-item.active .bottom-nav-avatar-img {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3);
    transform: scale(1.1);
}

.bottom-nav-item:hover .bottom-nav-avatar-initials,
.bottom-nav-item:active .bottom-nav-avatar-initials,
.bottom-nav-item.active .bottom-nav-avatar-initials {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3);
    transform: scale(1.1);
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item:active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* Profile dropdown styles */
.bottom-nav-profile {
    position: relative;
}

.bottom-nav-dropdown {
    position: absolute;
    bottom: 100%;
    right: 8px;
    background: rgba(26, 38, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    min-width: 220px;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.bottom-nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bottom-nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: rgba(26, 38, 46, 0.98);
    z-index: 1002;
}

.bottom-nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    min-height: 52px;
}

.bottom-nav-dropdown-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bottom-nav-dropdown-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.bottom-nav-dropdown-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.2;
    margin-top: 2px;
}

.bottom-nav-dropdown-separator {
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 0;
}

.bottom-nav-dropdown-before-separator {
    border-bottom: none !important;
}

.bottom-nav-dropdown-logout {
    color: #f43f5e;
}

.bottom-nav-dropdown-logout:hover {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.bottom-nav-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.bottom-nav-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.bottom-nav-dropdown-item:hover {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.bottom-nav-dropdown-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    display: flex;
    justify-content: center;
}

/* Badge pour les notifications/compteurs */
.bottom-nav-dropdown-badge {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(244, 63, 94, 0.5);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    /* Add bottom padding to main content to prevent overlap */
    .main-content {
        padding-bottom: 90px;
    }

}

/* Desktop : forcer l'état caché sans transition pour éviter tout flash au passage du breakpoint */
@media (min-width: 769px) {
    .bottom-nav,
    .bottom-nav.show {
        display: none !important;
        transition: none !important;
    }

    .bottom-nav-dropdown,
    .bottom-nav-dropdown.show {
        opacity: 0 !important;
        visibility: hidden !important;
        transition: none !important;
        pointer-events: none !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .bottom-nav-container {
        padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .bottom-nav-item {
        padding: 8px 8px;
        min-width: 56px;
    }

    .bottom-nav-icon {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .bottom-nav-label {
        font-size: 11px;
    }

    .bottom-nav-dropdown {
        min-width: 220px;
        width: 220px;
    }

    .bottom-nav-dropdown-item {
        padding: 14px 18px;
        font-size: 14px;
        min-height: 48px;
    }
}

/* Active page indicator */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #1a73e8;
    border-radius: 0 0 3px 3px;
}

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .bottom-nav-item:active {
        background: rgba(26, 115, 232, 0.2);
        transform: translateY(-1px) scale(0.98);
    }

    .bottom-nav-dropdown-item:active {
        background: rgba(26, 115, 232, 0.2);
    }
}

/* ========================================
   MODAL FICHES VÉHICULES
   ======================================== */

/* --- Mobile first (< 768px) --- */
.fv-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 6000;
    background: rgba(10, 15, 30, 0.6);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.fv-modal-overlay.active {
    display: block;
}

.fv-modal-overlay.show {
    opacity: 1;
}

/* Wrapper = plein écran sur mobile, pas d'overflow:hidden
   (overflow:hidden bloque le scroll touch de l'iframe sur iOS Safari) */
.fv-modal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(24px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* safe-area pour les iPhones avec encoche / home bar */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
}

.fv-modal-overlay.show .fv-modal-wrapper {
    transform: translateY(0);
}

/* L'iframe couvre tout le wrapper */
.fv-modal-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Scroll natif iOS dans l'iframe */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* --- Desktop (≥ 768px) : modal centré avec coins arrondis --- */
@media (min-width: 768px) {
    .fv-modal-overlay {
        display: none;
        background: rgba(10, 15, 30, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        align-items: center;
        justify-content: center;
    }

    .fv-modal-overlay.active {
        display: flex;
    }

    .fv-modal-wrapper {
        position: relative;
        width: calc(100% - 64px);
        max-width: 1400px;
        height: calc(100vh - 64px);
        max-height: 900px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(255, 255, 255, 0.08);
        padding-bottom: 0;
        transform: translateY(16px) scale(0.99);
    }

    .fv-modal-overlay.show .fv-modal-wrapper {
        transform: translateY(0) scale(1);
    }

    .fv-modal-frame {
        position: static;
        width: 100%;
        height: 100%;
    }
}
