/* Africa Event Page Styles */

/* Navigation overrides for Africa event page */
.navbar .nav-link {
    color: white;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #FFB74D;
}

/* CTA Button in navbar with white background */
.navbar .btn-primary {
    background: white !important;
    color: black !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.navbar .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: black !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* When scrolled, return to normal colors */
.navbar.scrolled .nav-link {
    color: var(--secondary-color);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

/* Keep button white even when scrolled */
.navbar.scrolled .btn-primary {
    background: white !important;
    color: black !important;
}

/* Language selector text in white initially */
.navbar .language-toggle {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar .language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .language-toggle {
    color: var(--secondary-color);
    border-color: rgba(0, 23, 60, 0.3);
}

.navbar.scrolled .language-toggle:hover {
    background: rgba(0, 23, 60, 0.05);
}

/* Mobile menu toggle en blanc sur fond sombre (page Africa) */
.mobile-menu-toggle span {
    background-color: white;
}

/* Quand navbar est scrollée, retour à la couleur normale */
.navbar.scrolled .mobile-menu-toggle span {
    background-color: var(--secondary-color);
}

/* Z-index élevé pour le menu mobile overlay et navbar (au-dessus de tous les autres éléments) */
@media (max-width: 768px) {
    /* La navbar doit rester visible au-dessus du menu overlay */
    .navbar {
        z-index: 100001 !important;
    }

    .mobile-menu-overlay {
        z-index: 99999 !important;
    }

    .mobile-menu-overlay.active {
        right: 0 !important;
    }

    .mobile-menu-toggle {
        z-index: 100002 !important;
    }
}

/* Hero Section with Advanced Animations */
.hero-africa {
    position: relative;
    min-height: 60vh; /* Réduit de 100vh à 60vh */
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.animated-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 153, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 183, 77, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    /* animation: float 20s ease-in-out infinite; */ /* Animation désactivée pour fond fixe */
}

/* Effet de vague supprimé
.animated-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230099ff' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    animation: wave 10s linear infinite;
}
*/

/* Animation float désactivée pour fond fixe
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
*/

/* Animation wave supprimée car l'effet de vague est désactivé
@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
*/

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Réduit de 4rem à 3rem */
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 1rem 0; /* Réduit de 2rem à 1rem */
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

/* Animation floating désactivée pour badge fixe
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
*/

.badge-icon {
    font-size: 1.2rem;
    /* animation: pulse 2s infinite; */ /* Animation désactivée pour icône fixe */
}

/* Animation pulse désactivée
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
*/

.event-badge span:last-child {
    color: rgb(117, 27, 27);
    font-weight: 500;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Radio Canada Big', sans-serif;
}

.title-line-1 {
    display: block;
    color: white;
    letter-spacing: -2px;
}

.title-line-2 {
    display: block;
    font-size: 6rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.gradient-text {
    background: linear-gradient(90deg, #0099FF, #FFB74D, #0099FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 153, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 153, 255, 0.8), 0 0 40px rgba(255, 183, 77, 0.5); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white !important;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    color: white !important;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.hero-description p {
    color: white !important;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0099FF, #0066CC);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 153, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

/* Fenêtre flottante CTA Sénégal */
.floating-senegal-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 14, 39, 0.9);
    border: 2px solid rgba(255, 183, 77, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-width: 400px;
    min-width: 320px;
    display: block;
    animation: slideInUp 0.8s ease-out 1s both;
    transition: all 0.3s ease;
}

.floating-senegal-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.floating-senegal-banner.hidden {
    transform: translateX(450px);
    opacity: 0;
    pointer-events: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(450px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10000;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-flag {
    font-size: 2rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.banner-text strong {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.banner-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.banner-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.banner-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 20px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
}

.banner-btn-primary {
    background: #FFB74D;
    color: #0a0e27;
}

.banner-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

.banner-btn-primary:hover {
    background: #FF9800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 77, 0.4);
}

.banner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.banner-btn svg {
    transition: transform 0.3s ease;
}

.banner-btn-primary:hover svg {
    transform: translateX(3px);
}

/* Modal de confirmation */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirmation-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    z-index: 1;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-content h3 {
    color: #0a0e27;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 120px;
}

.modal-btn-primary {
    background: #0099FF;
    color: white;
}

.modal-btn-primary:hover {
    background: #0066CC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 255, 0.3);
}

.modal-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.modal-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .floating-senegal-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .banner-header {
        justify-content: center;
        text-align: center;
    }
    
    .banner-text {
        align-items: center;
    }
    
    .banner-buttons {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* Hero Visual Section */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.earth-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.earth-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.rotating {
    animation: rotate 30s linear infinite;
}

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

.orbit-ring {
    position: absolute;
    inset: -20px;
    border: 2px solid rgba(0, 153, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite reverse;
}

/* Point orange supprimé
.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFB74D;
    border-radius: 50%;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 183, 77, 0.8);
    animation: orbit 20s linear infinite;
}
*/

/* Animation orbit supprimée car le point orange est désactivé
@keyframes orbit {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}
*/

.logo-africa {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Animation floating-slow désactivée pour logo fixe
.floating-slow {
    animation: floating 4s ease-in-out infinite;
}
*/

/* Event Program Section */
.event-program {
    padding: 3rem 0; /* Réduit de 6rem à 3rem pour remonter la section */
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    color: black;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0a0e27;
    margin-bottom: 1rem;
    font-family: 'Radio Canada Big', sans-serif;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 120px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #0099FF, #FFB74D);
}

.timeline-item {
    position: relative;
    padding: 2rem 2rem 2rem 3rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -63px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #0099FF;
    border-radius: 50%;
    z-index: 2;
}

.timeline-time {
    position: absolute;
    left: -110px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #0099FF;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a0e27;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
}

.timeline-item.highlight {
    background: linear-gradient(135deg, #0099FF, #0066CC);
    color: white;
}

.timeline-item.highlight .timeline-content h3,
.timeline-item.highlight .timeline-content p {
    color: white;
}

.timeline-item.highlight::before {
    background: #FFB74D;
    border-color: #FFB74D;
    box-shadow: 0 0 20px rgba(255, 183, 77, 0.5);
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: #0a0e27;
}

.video-section .section-title,
.video-section .section-subtitle {
    color: white;
}

.video-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.event-video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.video-container:hover .event-video {
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 0.8;
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.fullscreen-btn,
.pip-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover,
.pip-btn:hover {
    background: rgba(0, 153, 255, 0.8);
}

/* Photo Gallery */
.photo-gallery {
    padding: 6rem 0;
    background: #f8f9fa;
}

.gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container {
    overflow: hidden;
    border-radius: 20px;
    margin: 0 60px;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
}

.gallery-item {
    flex: 0 0 calc(20% - 0.8rem);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-nav:hover {
    background: #0099FF;
    color: white;
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: #0099FF;
    width: 30px;
    border-radius: 5px;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #0099FF;
    border-radius: 50px;
    color: #0099FF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #0099FF;
    color: white;
}

/* Vision Africa Section */
.vision-africa {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
}

.vision-africa .section-title,
.vision-africa .section-subtitle {
    color: white;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Réorganisation des cartes pour l'ordre souhaité */
.vision-grid .vision-card:nth-child(1) { grid-area: 1 / 1; } /* Sénégal - ligne 1, colonne 1 */
.vision-grid .vision-card:nth-child(2) { grid-area: 2 / 1; } /* Locaux - ligne 2, colonne 1 */
.vision-grid .vision-card:nth-child(3) { grid-area: 2 / 2; } /* Recrutement - ligne 2, colonne 2 */
.vision-grid .vision-card:nth-child(4) { grid-area: 1 / 2; } /* Partenariats - ligne 1, colonne 2 */

.vision-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vision-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.vision-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vision-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.vision-card ul {
    list-style: none;
    padding: 0;
}

.vision-card li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.vision-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0099FF;
}

.card-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FFB74D;
}

.highlight-text {
    color: rgba(255, 255, 255, 0.8);
}

.partners-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.partners-logos img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.partners-logos img:hover {
    transform: scale(1.1);
}

/* Co-construction Section */
.co-construction {
    padding: 6rem 0;
    background: white;
}

/* Le titre co-construction utilise les mêmes styles que .section-title (ligne 711) */

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text .lead {
    font-size: 1.25rem;
    color: #666;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.features-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-outline {
    padding: 1rem 2rem;
    border: 2px solid #0099FF;
    border-radius: 50px;
    color: #0099FF;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0099FF;
    color: white;
}

.visual-container {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 250px;
    border: 1px solid rgba(0, 153, 255, 0.1);
    z-index: 1;
}

.floating-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.floating-card.hovered {
    z-index: 999;
}

.floating-card h4 {
    font-size: 1.1rem;
    color: #0a0e27;
    margin-bottom: 0.5rem;
}

.floating-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.card-1 {
    top: 5px;
    left: 5px;
    animation: float-1 6s ease-in-out infinite;
    background: #C8E6C9; /* Vert clair */
    border: 1px solid #81C784;
}

.card-2 {
    top: 5px;
    right: 5px;
    animation: float-2 8s ease-in-out infinite;
    background: #BBDEFB; /* Bleu clair */
    border: 1px solid #64B5F6;
}

.card-3 {
    bottom: 90px;
    left: 5px;
    animation: float-3 7s ease-in-out infinite;
    background: #FFE0B2; /* Orange clair */
    border: 1px solid #FFB74D;
}

.card-4 {
    top: 110px;
    right: 270px;
    animation: float-1 6s ease-in-out infinite;
    background: #F8BBD0; /* Rose */
    border: 1px solid #F06292;
}

.card-5 {
    bottom: 90px;
    right: 5px;
    animation: float-2 8s ease-in-out infinite;
    background: #E1BEE7; /* Violet */
    border: 1px solid #BA68C8;
}

.card-6 {
    top: 110px;
    left: 270px;
    animation: float-3 7s ease-in-out infinite;
    background: #B2DFDB; /* Turquoise */
    border: 1px solid #4DB6AC;
}

.card-7 {
    top: 190px;
    left: 5px;
    animation: float-2 6s ease-in-out infinite;
    background: #FFF9C4; /* Jaune clair */
    border: 1px solid #FFD54F;
}

.card-8 {
    top: 190px;
    right: 5px;
    animation: float-1 8s ease-in-out infinite;
    background: #D7CCC8; /* Brun clair */
    border: 1px solid #A1887F;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes float-3 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}


/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .vision-card {
        padding: 1.5rem;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Fix hero title overlapping with logo */
    .hero-africa {
        padding-top: 100px; /* Espace pour la navbar */
    }

    .hero-africa .container {
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 20px;
    }

    .title-line-2 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Logo Metrane Afrique plus visible sur mobile */
    .hero-visual {
        position: relative;
        flex-direction: column;
        margin-top: 1rem;
    }

    .logo-africa {
        position: relative;
        bottom: auto;
        right: auto;
        width: 180px;
        margin: 1rem auto 0;
        display: block;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    }

    .earth-container {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    /* Hero CTA buttons - sur une seule ligne */
    .hero-cta {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .hero-cta .btn-arrow {
        display: none;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: -23px;
    }

    .timeline-time {
        position: static;
        transform: none;
        margin-bottom: 0.5rem;
    }

    /* Vision grid - blocs en colonne sur mobile */
    .vision-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Reset grid-area pour affichage en colonne */
    .vision-grid .vision-card:nth-child(1),
    .vision-grid .vision-card:nth-child(2),
    .vision-grid .vision-card:nth-child(3),
    .vision-grid .vision-card:nth-child(4) {
        grid-area: auto;
    }

    .vision-card {
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }


    .gallery-item {
        flex: 0 0 calc(100% - 0.8rem);
    }

    /* Section co-construction mobile */
    .co-construction {
        padding: 3rem 0;
        overflow-x: hidden;
    }

    .co-construction .container {
        padding: 0 15px;
        overflow: visible;
    }

    /* Le titre co-construction garde la même taille que les autres sections */

    .co-construction .content-text {
        padding-right: 0;
    }

    /* Carrousel glissable pour les étiquettes/tags */
    .content-visual {
        width: 100vw;
        margin-left: -15px;
        margin-right: -15px;
        overflow: visible;
        padding: 0;
    }

    .visual-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        overflow-x: auto !important;
        overflow-y: visible;
        padding: 10px 15px 20px 15px;
        margin: 0;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .floating-card {
        position: relative !important;
        flex: 0 0 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        height: 80px !important;
        margin: 0 !important;
        padding: 0.8rem !important;
        animation: none !important;
        scroll-snap-align: start;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .floating-card h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .floating-card p {
        font-size: 0.7rem;
        line-height: 1.2;
        margin: 0;
    }

    .card-1, .card-2, .card-3, .card-4, .card-5, .card-6, .card-7, .card-8 {
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        position: relative !important;
        transform: none !important;
    }

    /* Hero CTA buttons (fallback) */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* CTA group dans co-construction - sur une ligne */
    .cta-group {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .cta-group .btn-primary,
    .cta-group .btn-outline {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Animations on scroll */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}