/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Défilement fluide pour la navigation */
}

:root {
    /* Couleurs principales */
    --primary-green: #4CAF50;
    --primary-red: #E91E63;
    --dark-green: #2E7D32;
    --light-green: #81C784;
    
    /* Thème sombre */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-accent: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #707070;
    --border-color: #404040;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    
    /* Autres variables */
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --navbar-height: 80px; /* default desktop navbar height */
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    /* Améliorations tactiles pour iOS */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
}

/* Améliorer les interactions tactiles sur tous les éléments cliquables */
button, 
a, 
.btn, 
.hamburger,
.nav-link,
.video-modal-close {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    touch-action: manipulation;
    cursor: pointer;
    /* Corrections iOS Safari */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Corrections spécifiques pour iOS Safari sur les boutons */
.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
    /* Forcer le style de bouton sur iOS */
    background-clip: padding-box;
    border: 0;
    outline: none;
}

/* Active state pour iOS */
.btn:active,
.btn:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateY(1px);
    transition: transform 0.1s ease;
}

/* Pseudo-élément pour améliorer la zone de clic sur mobile */
.btn::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
    background: transparent;
    border-radius: var(--border-radius);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 2000; /* Z-index plus élevé pour être sûr qu'elle reste au-dessus */
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
    /* Mobile: fond sur tout le viewport, header/menu transparent */
    @media (max-width: 768px) {
        html, body {
            height: 100svh;
            min-height: 100svh;
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            background: #1a1a1a !important;
        }

        .hero-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100svh;
            background: #1a1a1a !important;
            z-index: 0;
        }

        .main-content {
            width: 100vw;
            min-height: 100svh;
            background: transparent;
            position: relative;
            z-index: 1;
            transition: margin-top 0.3s cubic-bezier(.4,0,.2,1);
        }

        .navbar {
            position: fixed; /* Garder fixe sur mobile aussi */
            top: 0;
            left: 0;
            width: 100vw;
            z-index: 2000; /* Z-index élevé pour rester au-dessus */
            background: rgba(26,26,26,0.98);
            backdrop-filter: blur(15px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            height: var(--navbar-height);
        }

        .nav-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100svh;
            background: #1a1a1a;
            z-index: 9999;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        body.menu-open .nav-menu {
            display: flex;
        }

        body.menu-open .main-content,
        body.menu-open .hero-background,
        body.menu-open .navbar {
            filter: brightness(0.8);
            pointer-events: none;
            user-select: none;
        }

        .nav-menu ul {
            list-style: none;
            padding: 0;
            margin: 0 0 12px 0;
            width: 100%;
        }

        .nav-menu li {
            margin: 12px 0;
            text-align: center;
        }

        .nav-link {
            color: #fff;
            font-size: 1.2em;
            text-decoration: none;
            display: block;
            padding: 8px 0;
        }

        .nav-social {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 8px;
        }

        .nav-social-link img {
            width: 28px;
            height: 28px;
            filter: brightness(0) invert(1);
        }

        body.menu-open .main-content {
            margin-top: calc(var(--navbar-height) + 140px); /* espace pour le menu mobile */
        }

        /* Espacement entre les boutons pour éviter le chevauchement */
        .scroll-indicator {
            margin-top: 24px;
        }

        .btn-discover, .btn-scroll {
            display: block;
            width: 100%;
            margin-bottom: 16px;
        }

        .nav-logo {
            background: transparent;
            z-index: 3;
        }
        .hero-content {
            position: relative;
            z-index: 1;
        }

        /* Ensure the hero has enough top padding so content isn't hidden by the fixed navbar when typing on mobile */
        .hero {
            padding-top: calc(var(--navbar-height) + 12px);
            min-height: calc(100svh - var(--navbar-height));
        }

        .scroll-indicator {
            position: fixed;
            left: 0;
            bottom: 20px;
            width: 100vw;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            pointer-events: none;
        }

        .scroll-indicator span, .scroll-indicator .scroll-arrow {
            pointer-events: auto;
        }
    }

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.99);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Légèrement plus haut pour le logo agrandi */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Plus d'espace entre logo et texte */
    font-weight: 700;
    font-size: 1.3rem; /* Texte légèrement plus grand */
    color: var(--text-primary);
}

.logo-img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-logo-img {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Liens sociaux dans la navbar */
.nav-social {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff; /* Blanc comme demandé */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px; /* Taille légèrement augmentée */
}

.nav-social-link:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Couleurs spécifiques pour chaque réseau social au hover */
.nav-social-link[data-social="facebook"]:hover {
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.nav-social-link[data-social="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.nav-social-link[data-social="tiktok"]:hover {
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Assurer que les liens sociaux sont visibles sur desktop */
@media (min-width: 769px) {
    .nav-social {
        display: flex;
    }
    
    .nav-menu {
        display: flex;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: auto; /* Laisser s'adapter au contenu */
    min-height: 100vh; /* Hauteur minimum d'un écran */
    min-height: 100dvh; /* Dynamic viewport height pour mobile */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Supprimer le padding par défaut */
    padding-bottom: 0; /* Supprimer le padding par défaut */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 50%, var(--primary-red) 100%);
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-logo-img {
    width: 600px;
    /* height: 120px; */
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.btn-video {
    background: linear-gradient(135deg, var(--primary-red), #C2185B);
    color: white;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-video i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-video:hover {
    background: linear-gradient(135deg, #D81B60, var(--primary-red));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-video:hover i {
    transform: scale(1.1);
}

.btn-video::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.6s;
}

.btn-video:hover::before {
    left: 100%;
}

.btn-pdf {
    background: linear-gradient(135deg, #FF6B35, #F44336);
    color: white;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-pdf i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #F44336, #FF6B35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-pdf:hover i {
    transform: scale(1.1);
}

.btn-pdf::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.6s;
}

.btn-pdf:hover::before {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--text-muted);
    position: relative;
    animation: scroll 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--text-muted);
    border-right: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes scroll {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Sections communes */
section {
    padding: 100px 0;
    scroll-margin-top: 90px; /* Décalage pour éviter que le header masque le contenu */
}

/* Décalage spécifique pour les ancres de navigation */
section[id] {
    scroll-margin-top: 90px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Countdown Styles */
.hero-countdown {
    margin: 40px 0;
    padding: 30px 20px;
    background: rgba(26, 26, 26, 0.85);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.hero-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 50%, var(--primary-red) 100%);
    opacity: 0.05;
    animation: backgroundMove 20s ease-in-out infinite;
}

.hero-countdown-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero-countdown-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.hero-countdown-container {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.hero-countdown-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-countdown-item {
    background: var(--bg-secondary);
    padding: 20px 15px;
    border-radius: var(--border-radius);
    min-width: 100px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
    animation: progressBar 2s ease-in-out infinite;
}

.hero-countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--bg-accent);
}

.hero-countdown-number {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-green);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.hero-countdown-label {
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-countdown-message {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    border-left: 4px solid #3498db;
}

.hero-countdown-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    transform: translateX(-100%);
    animation: shine 3s ease-in-out infinite;
}

.hero-countdown-message i {
    font-size: 1.2rem;
    color: #3498db;
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive pour le hero countdown */
@media (max-width: 768px) {
    .hero-countdown {
        margin: 30px 0;
        padding: 25px 15px;
    }
    
    .hero-countdown-grid {
        gap: 15px;
    }
    
    .hero-countdown-item {
        min-width: 85px;
        padding: 18px 12px;
    }
    
    .hero-countdown-message {
        padding: 12px 18px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-countdown {
        margin: 25px 0;
        padding: 20px 12px;
    }
    
    .hero-countdown-grid {
        gap: 12px;
    }
    
    .hero-countdown-item {
        min-width: 80px;
        padding: 15px 10px;
    }
    
    .hero-countdown-message {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Vision Section */
.vision-section {
    background: var(--bg-secondary);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.vision-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Candidate Section */
.candidate-section {
    background: var(--bg-primary);
}

.candidate-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.candidate-image {
    position: relative;
}

.candidate-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.candidate-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

.image-placeholder i {
    font-size: 4rem;
}

.candidate-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.candidate-title {
    font-size: 1.2rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 30px;
}

.candidate-description p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.candidate-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.candidate-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
}

.candidate-placeholder small {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
}

/* Actions Section */
.actions-section {
    background: var(--bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-green);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border-radius: 50%;
    top: 0;
    border: 4px solid var(--bg-primary);
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Objectives Section */
.objectives-section {
    background: var(--bg-primary);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.objective-card {
    text-align: center;
    padding: 40px 20px;
}

.objective-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.objective-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h3 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-map {
    margin-top: 20px;
}

.contact-map h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-map h3 i {
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.map-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.map-container iframe {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-form {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form .btn {
    align-self: center; /* Centre le bouton */
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 280px; /* Zone message encore plus grande pour un équilibre parfait */
}

/* Consent Checkbox Styles */
.consent-group {
    margin: 30px 0 25px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    margin-top: 2px;
    accent-color: var(--primary-green);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.consent-label {
    cursor: pointer;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.consent-text {
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.consent-main {
    display: block;
    margin-bottom: 8px;
}

.consent-link {
    color: var(--primary-green);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.consent-link:hover {
    color: var(--light-green);
    text-decoration: none;
}

/* Mobile styles pour le consentement */
@media (max-width: 768px) {
    .consent-group {
        margin: 25px 0 20px 0;
        padding: 18px 15px;
    }
    
    .consent-checkbox {
        gap: 12px;
    }
    
    .consent-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        margin-top: 1px;
    }
    
    .consent-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .consent-main {
        margin-bottom: 10px;
    }
    
    .consent-link {
        display: block;
        margin-top: 5px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .consent-group {
        margin: 20px 0 18px 0;
        padding: 15px 12px;
    }
    
    .consent-checkbox {
        gap: 10px;
    }
    
    .consent-text {
        font-size: 0.85rem;
    }
    
    .consent-link {
        font-size: 0.85rem;
    }
}

/* Footer */
.footer {
    background: var(--bg-accent);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Team Section */
.team-section {
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Style spécial pour la tête de liste */
.team-card.team-leader {
    grid-column: 1 / -1; /* Prend toute la largeur disponible */
    max-width: none;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    text-align: left;
    padding: 40px;
}

.team-card.team-leader .team-image {
    justify-self: center;
}

.team-card.team-leader .team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card.team-leader .team-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-card.team-leader .team-role {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.team-card.team-leader .team-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.team-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card.clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card.clickable:hover {
    text-decoration: none;
    color: inherit;
}

.team-card.clickable .team-image {
    position: relative;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.team-card.clickable:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-overlay span {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-card.featured.clickable .card-overlay {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
}

.team-card.featured.clickable:hover .card-overlay i,
.team-card.featured.clickable:hover .card-overlay span {
    color: var(--primary-green);
}

/* Animation pour les cartes cliquables */
.team-card.clickable::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 1;
}

.team-card.clickable:hover::before {
    width: 120%;
    height: 120%;
}

.team-card.featured.clickable::before {
    background: rgba(255, 255, 255, 0.1);
}

.team-image {
    margin-bottom: 20px;
}

.team-card.featured .team-image {
    margin-bottom: 0;
}

.team-image .image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-muted);
    border: 3px solid var(--border-color);
    transition: var(--transition);
}

.team-card.featured .team-image .image-placeholder {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    width: 150px;
    height: 150px;
}

.team-image .image-placeholder:hover {
    transform: scale(1.05);
}

.team-image .image-placeholder i {
    font-size: 3rem;
}

.team-card.featured .team-image .image-placeholder i {
    font-size: 4rem;
}

.team-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-green); /* Noms en vert */
}

.team-role {
    /* Masqué car plus utilisé pendant la campagne */
    display: none;
}

.team-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Styles spécifiques pour l'image d'Aurélie PACE dans la section candidat */
.candidate-section .candidate-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.candidate-section .candidate-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Styles spécifiques pour l'image d'Aurélie PACE dans l'équipe */
.team-card.featured .candidate-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    margin: 0 auto;
    display: block;
}

.team-card.featured .candidate-photo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.team-card.featured .team-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* FIXES CRITIQUES POUR MOBILE - Navigation et espacement */
    .hero {
        padding-top: 70px !important; /* Juste la navbar, pas plus */
    }
    
    .scroll-indicator {
        bottom: 40px !important; /* Plus proche pour éviter l'espace vide */
    }
    
    .nav-container {
        height: 70px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
        gap: 12px;
    }
    
    /* Navbar avec fond noir complet sur mobile */
    .navbar {
        background: #1a1a1a; /* Fond noir complet au lieu de transparent */
        backdrop-filter: none;
    }
    
    /* CORRECTIONS SPÉCIFIQUES POUR LES ÉLÉMENTS HERO */
    #accueil .hero-logo {
        padding-top: 0px !important; /* Supprimer l'espace excessif */
        margin-top: 0px !important; /* Supprimer la marge excessive */
    }
    
    #accueil .hero-content {
        padding-top: 0px !important; /* Supprimer l'espace au-dessus */
    }
    
    #accueil .scroll-indicator {
        bottom: 40px !important; /* Plus proche du contenu */
        position: fixed !important;
        z-index: 999 !important;
    }
    
    /* Ajuster la section hero pour la navbar fixe */
    .hero {
        padding-top: 70px; /* Juste pour compenser la navbar */
        height: auto; /* Laisser la hauteur s'adapter au contenu */
        min-height: 100vh; /* Une seule hauteur d'écran maximum */
        padding-bottom: 0px; /* Supprimer l'espace au bas */
    }
    
    section {
        scroll-margin-top: 80px;
    }
    
    section[id] {
        scroll-margin-top: 80px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: #1a1a1a; /* Fond noir complet */
        position: fixed; /* Fixed au lieu d'absolute pour couvrir tout l'écran */
        top: 70px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px); /* Prend toute la hauteur de l'écran */
        height: calc(100dvh - 70px); /* Dynamic viewport height */
        padding: 30px 20px;
        box-shadow: none; /* Pas besoin d'ombre puisque ça couvre tout */
        z-index: 1001;
        overflow-y: auto; /* Scroll si nécessaire */
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Styles pour les liens de navigation sur mobile */
    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #404040;
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 500;
    }
    
    .nav-link:hover {
        color: var(--primary-green);
        background: rgba(76, 175, 80, 0.1);
        padding-left: 10px;
    }
    
    /* Styles pour les liens sociaux dans la navbar mobile */
    .nav-social {
        display: flex;
        justify-content: center;
        gap: 25px;
        margin: 30px 0 20px 0;
        padding: 20px 0;
        border-top: 1px solid #404040;
        border-bottom: 1px solid #404040;
        width: 100%;
    }
    
    .nav-social-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 12px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-social-link:hover {
        transform: translateY(-3px);
    }
    
    /* Empêcher le scroll du body quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }
    
    .header-social {
        margin: 18px 0 0 0 !important;
        justify-content: center;
        gap: 28px !important;
    }
    .header-social .social-link {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(40,40,40,0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #222;
    }
    .header-social .social-link i {
        font-size: 2.2em !important;
        color: #fff !important;
    }
    .header-social .social-link:hover i {
        color: #a78bfa !important;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Espace réduit entre les boutons */
        margin-bottom: 15px; /* Très peu d'espace en bas */
        padding-bottom: 0px; /* Supprimer le padding */
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-height: 48px;
        font-size: 1.1rem;
        padding: 15px 25px;
        -webkit-tap-highlight-color: transparent;
        border: none;
        cursor: pointer;
        text-align: center;
    }
    
    .hero-logo-img {
        width: 250px;
        /* height: 80px; */
        padding: 10px;
        margin-top: 10px; /* Très peu d'espace au-dessus */
        margin-bottom: 10px; /* Très peu d'espace sous le logo */
    }
    
    .hero-content {
        padding: 10px; /* Réduire le padding général */
        margin-top: 0px; /* Supprimer la marge du haut */
        padding-bottom: 0px; /* Supprimer l'espace en bas */
    }
    
    /* Compacter les textes sur mobile */
    .hero-title {
        margin-bottom: 10px !important; /* Réduire l'espace sous le titre */
        line-height: 1.1 !important;
    }
    
    .hero-subtitle {
        margin-bottom: 10px !important; /* Réduire l'espace sous le sous-titre */
        font-size: 1.2rem !important;
    }
    
    .hero-description {
        margin-bottom: 20px !important; /* Réduire l'espace sous la description */
        font-size: 1rem !important;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .candidate-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .candidate-stats {
        justify-content: space-around;
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-card.team-leader {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }
    
    .team-card.team-leader .team-info h3 {
        font-size: 2rem;
    }
    
    .team-card.team-leader .team-role {
        font-size: 1.1rem;
    }
    
    .team-card.team-leader .team-description {
        font-size: 1rem;
    }
    
    .team-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }
    
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container iframe {
        height: 250px; /* Carte légèrement plus petite sur mobile */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .team-card.featured .candidate-photo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .candidate-info h2 {
        font-size: 2rem;
    }
    
    .vision-card,
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group textarea {
        min-height: 220px; /* Zone message agrandie sur mobile aussi pour garder les proportions */
    }
    
    .candidate-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .map-container iframe {
        height: 200px; /* Carte encore plus petite sur très petits écrans */
    }
}

/* Media query pour mobile en mode paysage */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto; /* Hauteur automatique au lieu de 100vh */
        min-height: 100vh; /* Hauteur minimale */
        padding-top: 120px; /* Espace pour le header */
        padding-bottom: 40px;
    }
    
    .hero-logo-img {
        width: 120px; /* Logo plus petit en paysage */
        padding: 8px;
    }
    
    .hero-content {
        max-width: 90%; /* Contenu plus large en paysage */
    }
    
    .hero-title {
        font-size: 2rem; /* Titre plus petit */
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 60px; /* Plus bas pour éviter les boutons */
    }
}

/* Modal Vidéo */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    /* S'assurer que la modal est bien centrée */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal.show {
    display: flex !important;
    /* Force l'affichage en flex pour un centrage correct */
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    animation: scaleIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    z-index: 10000;
}

.video-modal-close:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

#modalVideo {
    width: 100%;
    height: auto;
    max-height: 85vh; /* Limiter la hauteur pour garder les contrôles visibles */
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    outline: none;
    object-fit: contain; /* S'assurer que toute la vidéo est visible */
}

.pdf-viewer-container {
    width: 100%;
    height: 85vh;
    max-height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background: white;
    position: relative;
}

/* S'assurer que le PDF peut être scrollé sur mobile */
@media (max-width: 768px) {
    .pdf-viewer-container {
        overflow: visible;
    }
    
    #modalPdf,
    #modalPdfFallback {
        /* Permettre le défilement naturel du PDF */
        overflow: auto;
    }
}

/* Essayer de masquer les éléments de navigation du PDF */
.pdf-viewer-container iframe {
    pointer-events: auto;
}

/* Alternative : utiliser un embed au lieu d'iframe pour plus de contrôle */
.pdf-viewer-container embed {
    width: 100%;
    height: 100%;
    border: none;
}

#modalPdf {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
    outline: none;
    /* Cacher les barres d'outils du PDF */
    overflow: hidden;
}

#modalPdfFallback {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
    outline: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive pour la modal vidéo */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95%;
        padding: 0 10px;
        max-height: 90vh; /* Plus de place sur mobile */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .video-modal-close {
        top: -40px;
        right: -10px;
        font-size: 1.5rem;
    }
    
    #modalVideo {
        border-radius: 8px;
        max-height: 80vh; /* Encore plus restrictif sur mobile */
        width: auto; /* Laisser la largeur s'adapter */
        max-width: 100%;
        margin: 0 auto; /* Centrer la vidéo */
    }
}

/* Spécial pour les vidéos en mode portrait sur mobile */
@media (max-width: 768px) and (orientation: portrait) {
    .video-modal-content {
        max-height: 85vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #modalVideo {
        max-height: 75vh; /* Réduire encore plus en portrait */
        width: auto;
        max-width: 90%;
    }
}

/* Pour les écrans très petits en hauteur */
@media (max-height: 600px) {
    .video-modal-content {
        max-height: 85vh;
        padding: 0 5px;
    }
    
    .video-modal-close {
        top: -35px;
        font-size: 1.3rem;
    }
    
    #modalVideo {
        max-height: 70vh; /* Encore moins de hauteur */
    }
}

/* Mode paysage sur mobile - plus d'espace horizontal */
@media (max-width: 768px) and (orientation: landscape) {
    .video-modal-content {
        max-width: 90%;
        max-height: 85vh;
    }
    
    #modalVideo {
        max-height: 75vh;
        max-width: 85%;
    }
}

/* Responsive pour la modal PDF */
@media (max-width: 768px) {
    .pdf-viewer-container {
        height: 80vh;
        max-height: 80vh;
        /* Permettre le défilement sur mobile */
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimiser l'iframe PDF pour mobile */
    #modalPdfFallback {
        /* Hauteur plus grande pour permettre le scroll */
        height: 150vh;
        min-height: 150vh;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .pdf-viewer-container {
        height: 75vh;
        max-height: 75vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-height: 600px) {
    .pdf-viewer-container {
        height: 70vh;
        max-height: 70vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .pdf-viewer-container {
        height: 75vh;
        max-height: 75vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Optimisations spécifiques pour iOS et Edge mobile */
.mobile-touch-device button,
.mobile-touch-device a,
.mobile-touch-device .btn,
.mobile-touch-device .hamburger,
.mobile-touch-device .nav-link {
    /* Zone tactile plus grande */
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Améliorer la réactivité tactile */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    
    /* Transition plus rapide sur mobile */
    transition: all 0.15s ease;
}

.mobile-touch-device .hamburger {
    padding: 15px;
    background: transparent;
    border: none;
}

.mobile-touch-device .nav-link {
    padding: 15px 20px;
}

.mobile-touch-device .btn-video {
    padding: 18px 35px;
    font-size: 1.1rem;
}

.mobile-touch-device .btn-pdf {
    padding: 18px 35px;
    font-size: 1.1rem;
}

/* États actifs pour retour tactile visuel */
.mobile-touch-device button:active,
.mobile-touch-device .btn:active,
.mobile-touch-device .hamburger:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.mobile-touch-device .nav-link:active {
    background-color: rgba(76, 175, 80, 0.1);
}

/* CORRECTIONS SIMPLES ET EFFICACES - TOUS ÉCRANS */
@media screen and (max-width: 768px) {
    /* Mobile uniquement */
    .hero {
        padding-top: 140px !important; /* Plus d'espace pour éviter la navbar */
        min-height: 100vh !important;
        padding-bottom: 80px !important; /* Beaucoup plus d'espace en bas */
    }
    
    .scroll-indicator {
        bottom: 120px !important; /* Plus haut pour éviter le texte */
        z-index: 100 !important;
        font-size: 0.8rem !important; /* Plus petit sur mobile */
    }
    
    .hero-buttons {
        margin-bottom: 180px !important; /* Marge très généreuse */
        gap: 20px !important; /* Plus d'espacement entre les boutons */
        padding-bottom: 40px !important; /* Padding supplémentaire */
    }
    
    .hero-description {
        margin-bottom: 50px !important; /* Plus d'espace après la description */
        line-height: 1.6 !important; /* Meilleure lisibilité */
    }
    
    /* Espacement entre hero et section suivante */
    .vision-section {
        margin-top: 120px !important; /* Espace très large */
        padding-top: 60px !important;
    }
    
    /* S'assurer que tous les boutons sont visibles */
    .btn {
        margin: 8px 0 !important; /* Espace vertical entre chaque bouton */
    }
}

@media screen and (min-width: 769px) {
    /* Desktop uniquement */
    .hero {
        padding-top: 80px !important;
        min-height: 100vh !important;
    }
    
    .scroll-indicator {
        bottom: 30px !important;
    }
}

/* Pour tous les écrans - navbar toujours au-dessus */
.navbar {
    z-index: 2000 !important;
    position: fixed !important;
    top: 0 !important;
}

/* Hero content toujours visible */
.hero-content {
    position: relative !important;
    z-index: 1 !important;
    padding: 20px !important;
}

/* Logo bien visible sur mobile */
@media screen and (max-width: 768px) {
    .hero-logo,
    .hero-logo-img {
        margin-top: 120px !important; /* Beaucoup plus d'espace sous la navbar */
    }
}

/* Animation pour masquer le scroll indicator */
.scroll-indicator {
    transition: opacity 0.5s ease, transform 0.3s ease !important;
}

.scroll-indicator:hover {
    transform: translateY(-5px) !important;
}
