﻿/* Styles spécifiques à la page d'accueil */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--primary-red) 100%);
    color: var(--primary-white);
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
    position: relative;
    z-index: 10; /* Au-dessus des éléments animés */
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 10; /* Au-dessus des éléments animés */
}

.hero-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    /* backdrop-filter: blur(10px); - Removed for performance */
    transition: var(--transition);
}

.hero-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.hero-placeholder span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.hero-placeholder p {
    color: var(--primary-white);
    font-size: 1.125rem;
    margin: 0;
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: calc(100vw - 40px); /* Largeur fenêtre moins padding minimal */
    max-width: 1200px; /* Largeur maximale */
    margin: 0 auto; /* Centré */
    overflow-x: auto;
    overflow-y: visible;
    padding: 1.5rem 0 2.5rem 0;
    margin-top: -1.5rem;
    margin-bottom: -2.5rem;
    scrollbar-width: none; /* Firefox - masquer complètement */
    scroll-behavior: smooth;
    
    /* Dégradés sur les bords pour indiquer le scroll */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

/* Wrapper pour les boutons de navigation - positionné par rapport à la section */
.photo-carousel-section,
.featured-section {
    position: relative;
}

/* Boutons de navigation du carousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
}

.photo-carousel-section:hover .carousel-nav,
.featured-section:hover .carousel-nav {
    opacity: 1;
    pointer-events: all;
}

.carousel-nav:hover {
    background: var(--primary-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
    left: 0;
}

.carousel-nav-next {
    right: 0;
}

.carousel-nav span {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--primary-blue);
    font-weight: 300;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
        opacity: 0.8;
        pointer-events: all;
    }
    
    .carousel-nav span {
        font-size: 2rem;
    }
    
    .carousel-nav-prev {
        left: 5px;
    }
    
    .carousel-nav-next {
        right: 5px;
    }
}

/* Masquer complètement la scrollbar (Webkit) */
.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Les gradients sur les bords sont gérés par mask-image pour un effet plus propre */

.articles-carousel {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem; /* Léger espacement uniquement pour éviter de coller aux bords */
    min-width: max-content; /* Force la largeur minimale pour créer le scroll */
}

/* Indicateur de progression du scroll */
.carousel-progress {
    position: relative;
    height: 4px; /* Hauteur normale */
    background: rgba(59, 130, 246, 0.15);
    border-radius: 3px;
    margin: 2rem auto 0; /* Plus d'espace au-dessus */
    max-width: 250px; /* Largeur réduite */
    overflow: hidden;
    /* Bordure supprimée - plus besoin du debug */
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
    width: 0%; /* Commencer à 0% */
    transition: width 0.3s ease;
}



.article-card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    flex: 0 0 312px; /* Fixed width for carousel items - optimized for exactly 3 articles */
    max-width: 312px;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.article-card.featured:hover {
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.3);
    transform: translateY(-12px);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card.featured:hover::before {
    transform: scale(1.2) rotate(10deg);
    animation: none;
}

.article-card.featured:hover::after {
    background: var(--primary-red);
}

.article-card.featured {
    border: 2px solid var(--primary-red);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    animation: featuredGlow 3s ease-in-out infinite alternate;
    transition: all 0.2s ease;
}

.article-card.featured::before {
    content: '📌';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-red);
    color: var(--primary-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
    animation: pulsePin 2s infinite;
}

.article-card.featured::after {
    content: 'Épinglé';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: var(--primary-white);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    backdrop-filter: blur(10px);
    transition: all 0.15s ease;
    opacity: 0.9;
    animation: slideInLeft 0.5s ease-out;
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-gray), #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.article-card.featured .article-image {
    padding: 10px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.article-category {
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.article-category.avantages { background: var(--primary-red); }
.article-category.voyages { background: #28a745; }
.article-category.retraites { background: #6f42c1; }
.article-category.evenements { background: #fd7e14; }

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-author {
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* Bouton "Lire la suite" */
.read-more-btn {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.read-more-btn:hover {
    background: var(--primary-blue);
    color: var(--primary-white);
}

/* Photo Carousel Section */
.photo-carousel-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.photo-carousel-section .section-title {
    color: var(--primary-blue);
}

.photo-carousel-section .section-title::after {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.photos-carousel {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
    min-width: max-content;
}

.photo-card {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    flex: 0 0 350px; /* Largeur plus grande pour les photos */
    max-width: 350px;
}

.photo-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.photo-card.featured {
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    animation: photoGlow 3s ease-in-out infinite alternate;
}

.photo-card.featured::before {
    content: '📸';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-blue);
    color: var(--primary-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: pulsePhoto 2s infinite;
}

.photo-card.featured::after {
    content: 'Article Épinglé';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(59, 130, 246, 0.9);
    color: var(--primary-white);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    backdrop-filter: blur(10px);
    transition: all 0.15s ease;
    opacity: 0.9;
}

.photo-card .article-image {
    height: 250px; /* Plus haut pour les photos */
}

.photo-card .article-content {
    padding: 1.25rem;
}

.photo-card .article-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.photo-card .article-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Animations spécifiques pour les photos */
@keyframes photoGlow {
    from {
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    }
    to {
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
    }
}

@keyframes pulsePhoto {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}



/* Responsive pour la page d'accueil */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        padding: 0;
    }
    
    .hero-placeholder {
        padding: 2rem;
    }
    

    
    .article-card {
        flex: 0 0 280px;
        max-width: 280px;
    }
    
    /* Badges plus discrets sur mobile */
    .article-card.featured::before {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        top: 8px;
        right: 8px;
    }
    
    .article-card.featured::after {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        top: 8px;
        left: 8px;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .article-card {
        flex: 0 0 300px;
        max-width: 300px;
    }
    
    .hero-placeholder span {
        font-size: 3rem;
    }
    
    .articles-carousel,
    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .articles-carousel {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        margin: 0 auto;
        max-width: 400px;
    }
}

/* === EFFECTS NÉON ET ANIMATIONS AVANCÉES === */

/* Effets néon sur les boutons principaux */
.btn-primary {
    position: relative;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    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.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Effet néon rouge pour certains boutons */
.btn-secondary {
    position: relative;
    background: linear-gradient(45deg, var(--primary-red), #ff6b6b);
    border: none;
    box-shadow: 
        0 0 10px rgba(239, 68, 68, 0.3),
        0 0 20px rgba(239, 68, 68, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.6),
        0 0 40px rgba(239, 68, 68, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Animations des icônes */
.service-icon i, .logo-icon i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.service-card:hover .service-icon i {
    transform: scale(1.2) rotateY(180deg);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.logo-icon i {
    color: var(--primary-blue);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Effet hero city icon */
.hero-city-icon {
    font-size: 4rem !important;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: fadeInUp 0.4s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animations avancées pour les service cards */
.service-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red), var(--secondary-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(59, 130, 246, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Amélioration de la hero section avec gradient animé */
.hero {
    background: linear-gradient(-45deg, 
        var(--primary-blue), 
        var(--secondary-blue), 
        var(--primary-red), 
        #6366f1);
    background-size: 400% 400%;
    /* Removed heavy gradient animation for performance */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    /* Removed heavy pattern animation for performance */
}

/* Éléments animés de background */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    /* Removed heavy orbs animation for performance */
}

/* Vagues animées */
.hero-waves {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ffffff'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23ffffff'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x;
    background-size: 1200px 120px;
    /* Removed heavy wave animation for performance */
    opacity: 0.3;
    pointer-events: none; /* Permet aux clics de passer à travers */
    transform: rotateX(180deg);
    /* Pour une compatibilité maximale, ajoutez aussi le préfixe webkit */
    -webkit-transform: rotateX(180deg);
}

/* Formes géométriques animées */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Permet aux clics de passer à travers */
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.hero-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: -100px;
    /* Removed sliding animation for performance */
    animation-delay: 0s;
}

.hero-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: -60px;
    /* Removed sliding animation for performance */
    animation-delay: 5s;
}

.hero-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    left: -80px;
    /* Removed slideRight animation for performance */
    animation-delay: 10s;
}

.hero-shape:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 70%;
    right: -120px;
    /* Removed slideLeft animation for performance */
    animation-delay: 2s;
}

.hero-shape:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 30%;
    right: -90px;
    /* Removed slideLeft animation for performance */
    animation-delay: 8s;
}

/* Lignes diagonales animées */
.hero-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Permet aux clics de passer à travers */
}

.hero-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(-15deg);
    /* Removed moveLine animation for performance */
}

.hero-line:nth-child(1) {
    top: 20%;
    width: 200px;
    left: -200px;
    animation-delay: 0s;
}

.hero-line:nth-child(2) {
    top: 50%;
    width: 150px;
    left: -150px;
    animation-delay: 2s;
}

.hero-line:nth-child(3) {
    top: 80%;
    width: 300px;
    left: -300px;
    animation-delay: 4s;
}

/* @keyframes gradientShift - Removed for performance */

/* @keyframes movePattern - Removed for performance */

/* @keyframes floatingOrbs - Removed for performance */

/* @keyframes waveMove - Removed for performance */

/* @keyframes slideRight - Removed for performance */

/* @keyframes slideLeft - Removed for performance */

/* @keyframes moveLine - Removed for performance */

/* Amélioration typographie avec gradients */
.hero-content h2 {
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.section-title {
    position: relative;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    border-radius: 2px;
}

/* === ANIMATIONS D'ENTRÉE AU SCROLL === */

/* État initial des éléments avant animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* État animé quand l'élément est visible */
.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animations spéciales pour différents éléments */
.service-card.animate-on-scroll {
    transform: translateY(50px) scale(0.9);
}

.service-card.animate-in {
    transform: translateY(0) scale(1);
}

.hero-content.animate-on-scroll {
    transform: translateX(-50px);
    opacity: 0;
}

.hero-content.animate-in {
    transform: translateX(0);
    opacity: 1;
    transition-duration: 1.2s;
}

.hero-image.animate-on-scroll {
    transform: translateX(50px) scale(0.8);
    opacity: 0;
}

.hero-image.animate-in {
    transform: translateX(0) scale(1);
    opacity: 1;
    transition-duration: 1s;
    transition-delay: 0.3s;
}

/* === PARTICULES ANIMÉES === */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 20s linear infinite;
    pointer-events: none; /* Permet aux clics de passer à travers */
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* === AMÉLIORATIONS FOOTER === */
.footer-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.footer-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Amélioration des liens sociaux */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0.25rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 1.1rem;
}

/* === RESPONSIVE ANIMATIONS === */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(20px);
    }
    
    .service-card.animate-on-scroll {
        transform: translateY(30px) scale(0.95);
    }
    
    .hero-content.animate-on-scroll,
    .hero-image.animate-on-scroll {
        transform: translateY(30px);
    }
    
    .particle {
        display: none; /* Désactiver les particules sur mobile pour les performances */
    }
}

/* === SECTION HORAIRES === */
.horaires-section {
    background: var(--light-gray);
    padding: 3rem 0;
    border-top: 3px solid var(--primary-blue);
}

.horaires-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.horaires-header h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.horaires-header h2 i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.horaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.horaire-item {
    background: var(--primary-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.horaire-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.horaire-item .jour {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.horaire-item .heures {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.horaire-item .heures span {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.horaire-item .heures .rdv {
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.horaire-item .heures .ouvert {
    background: rgba(40, 167, 69, 0.15);
    color: #198754;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.horaire-item .heures.teletravail {
    text-align: center;
}

.horaire-item .heures .teletravail-text {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
    font-weight: 600;
}

.horaire-item .heures .contact-info {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 123, 255, 0.2);
    font-size: 0.85rem;
    font-style: italic;
}

.horaires-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 123, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-style: italic;
}

.horaires-note i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Responsive pour horaires */
@media (max-width: 768px) {
    .horaires-section {
        padding: 2rem 0;
    }
    
    .horaires-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .horaire-item {
        padding: 1.25rem;
    }
    
    .horaires-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .horaires-note {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ===============================
   ANIMATIONS POUR ARTICLES FEATURED
   =============================== */

/* Animation pulsante pour l'icône épinglette */
@keyframes pulsePin {
    0% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Animation de glissement pour le badge "Épinglé" */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 0.9;
        transform: translateX(0);
    }
}

/* Animation de lueur pour toute la carte */
@keyframes featuredGlow {
    0% { 
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
        border-color: var(--primary-red);
    }
    100% { 
        box-shadow: 0 6px 25px rgba(239, 68, 68, 0.25);
        border-color: #f87171;
    }
}