/* ==========================================================================
   STYLE-INDEX.CSS - VERSION FUSIONNÉE ET NETTOYÉE AVEC LIGHTBOX
   Domaine Équestre du Rival - CSS complet sans conflits
   Fusion de style-index.css + animations.css + corrections + lightbox
   ========================================================================== */

/* 
 * DESCRIPTION DU FICHIER :
 * Ce fichier CSS principal gère tous les styles de la page d'accueil
 * du Domaine Équestre du Rival. Il inclut les styles fusionnés,
 * les animations, les corrections responsive et le système lightbox.
 * 
 * SECTIONS PRINCIPALES :
 * - Animations et keyframes globales
 * - Section présentation et diaporama Swiper
 * - Gestion du contenu principal et actualités
 * - Section équipe avec photos d'identité style polaroid
 * - Carrousel des installations avec indicateurs lightbox
 * - Système lightbox pour agrandissement photos installations
 * - Section partenaires (temporairement désactivée)
 * - Modal galerie et système d'agrandissement
 * - Responsive design pour mobile/tablette/desktop
 * 
 * FONCTIONNALITÉS TECHNIQUES :
 * - Lightbox responsive avec overlay et indicateurs visuels
 * - Animations CSS3 avec respect des préférences utilisateur
 * - Navigation tactile et clavier pour accessibilité
 * - Optimisations performance et gestion des contrastes
 * - Breakpoints responsive adaptatifs
 * 
 * CHARTE GRAPHIQUE :
 * - Turquoise principal : #20B2AA
 * - Bleu institutionnel : #1E3A8A  
 * - Beige naturel : #F5F2E8
 * - Effets glassmorphism et ombres modernes
 * 
 * Version : 2.3 - Ajout système lightbox installations
 * Date : Août 2025
 * Auteur : Équipe développement Domaine Équestre du Rival
 * Client : Léa Bertholio - Domaine Équestre du Rival
 */

/* ==========================================================================
   KEYFRAMES ANIMATIONS - FUSIONNÉES
   ========================================================================== */

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(32, 178, 170, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(32, 178, 170, 0.6), 0 0 30px rgba(32, 178, 170, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(32, 178, 170, 0.3);
    }
}

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

/* ==========================================================================
   PRESENTATION SECTION - DIAPORAMA SWIPER
   ========================================================================== */

.presentation {
    padding: 60px 0;
    background: white;
    position: relative;
    z-index: 2;
}

.presentation-content {
    text-align: center;
    margin-bottom: 40px;
}

.presentation h2 {
    color: #1E3A8A;
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Pacifico', cursive;
}

.presentation-box {
    background: #1E3A8A;
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
    position: relative;
    z-index: 3;
}

.presentation-emotionnelle {
    background: #F5F2E8;
    color: #1E3A8A;
    padding: 40px;
    border-radius: 15px;
    margin: 0 auto;
    max-width: 1000px;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
}

.presentation-emotionnelle p {
    margin-bottom: 25px;
}

.presentation-emotionnelle strong {
    color: #20B2AA;
}

.presentation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.1);
    position: relative;
    z-index: 3;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #20B2AA;
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease-out;
}

.stat-label {
    color: #1E3A8A;
    font-weight: 600;
}

/* ==========================================================================
   SECTION CONTENU PRINCIPAL CENTRÉ
   ========================================================================== */

.main-content-section {
    padding: 80px 0;
    background: white;
    position: relative;
    z-index: 2;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ==========================================================================
   ACTUALITÉS CONTENT
   ========================================================================== */

.actualites-content {
    /* Conteneur pour toutes les sections actualités */
}
/* MODIFICATIONS CHIRURGICALES LAYOUT - Actualités pleine largeur */
                                    .content-wrapper {
                                        display: block !important;  /* Override du grid existant */
                                    }
                                    
                                    .actualites-content {
                                        width: 100%;
                                        max-width: none;
                                    }
                                    
                                    /* Nouvelle section équipe déplacée */
                                    .team-section-full {
                                        padding: 80px 0;
                                        background: #f8fafc;
                                        position: relative;
                                        z-index: 2;
                                    }
                                    
                                    .team-section-full .container {
                                        max-width: 1200px;
                                        margin: 0 auto;
                                        padding: 0 20px;
                                    }
                                    
                                    @media (max-width: 768px) {
                                        .team-section-full {
                                            padding: 60px 0;
                                        }
                                    }
                                    
/* ==========================================================================
   SECTION ÉQUIPE - STYLE PHOTOS D'IDENTITÉ AVEC CHARTE COULEUR SITE
   À REMPLACER DANS style-index.css SECTION "TEAM CONTENT"
   ========================================================================== */

/* ✅ AJOUT IMPORT POLICE MANUSCRITE (à mettre en haut du fichier CSS) */
@import url('https://fonts.googleapis.com/css2?family=Pacifico:wght@400&display=swap');

.team-section-full {
    padding: 60px 0;
    background: 
                linear-gradient(0deg, #F5F2E8 0%, transparent 40%, transparent 60%, #FFFFFF 100%),
                linear-gradient(0deg, #F5F2E8 0%, transparent 40%, transparent 60%, #FFFFFF 100%),
                #E8F4F8;
    position: relative;
    z-index: 2;
}

.team-content {
    /* Conteneur pour la section équipe */
}

.team-section {
    /* Section équipe */
}

.team-intro {
    text-align: center;
    margin-bottom: 50px;
}

.team-intro h2 {
    color: #1E3A8A; /* ✅ Bleu principal du site */
    font-size: 2.2rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.team-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

/* ✅ TRANSFORMATION PRINCIPALE : PASSAGE EN PHOTOS D'IDENTITÉ */
.team-grid {
    display: flex;
    flex-direction: row; /* ✅ CHANGEMENT MAJEUR : row au lieu de column */
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px; /* ✅ Espacement entre les photos */
    margin-top: 40px;
}

/* ✅ NOUVEAU STYLE : PHOTOS D'IDENTITÉ AVEC CHARTE COULEUR */
.team-member {
    text-align: center;
    background: white;
    padding: 15px 15px 25px 15px; /* ✅ Padding style polaroid */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2); /* ✅ Ombre avec bleu du site */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    
    /* ✅ LARGEUR FIXE - EMPÊCHE L'AGRANDISSEMENT */
    width: 180px !important;        /* ✅ Force largeur fixe */
    min-width: 180px;              /* ✅ Largeur minimum */
    max-width: 180px;              /* ✅ Largeur maximum */
    
    /* ✅ EFFET ÉPARPILLÉ INSPIRÉ DU PONEY CLUB */
    transform: rotate(-2deg);
    border: 1px solid rgba(32, 178, 170, 0.1); /* ✅ Bordure turquoise subtile */
}

/* ✅ ROTATIONS ALTERNÉES POUR EFFET NATUREL - 4 MEMBRES */
.team-member:nth-child(1) {
    transform: rotate(-3deg) translateY(-10px);
}

.team-member:nth-child(2) {
    transform: rotate(2deg) translateY(15px);
}

.team-member:nth-child(3) {
    transform: rotate(-1deg) translateY(-5px);
}

.team-member:nth-child(4) {
    transform: rotate(3deg) translateY(20px);
}

/* ✅ EFFET HOVER : ZOOM + REDRESSEMENT AVEC COULEURS SITE */
.team-member:hover {
    transform: rotate(0deg) translateY(-20px) scale(1.1) !important;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3); /* ✅ Ombre bleu site */
    border-color: #20B2AA; /* ✅ Bordure turquoise au hover */
}


/* ✅ TRANSFORMATION DES PHOTOS : CARRÉES AU LIEU DE CIRCULAIRES */
.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    border-radius: 6px; /* ✅ Légèrement arrondi au lieu de circulaire */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15); /* ✅ Ombre avec bleu site */
    transition: all 0.3s ease;
}

/* ✅ PHOTOS VRAIES AU LIEU D'ÉMOJIS */
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ✅ FALLBACK POUR ÉMOJIS AVEC CHARTE COULEUR */
.team-photo:not(:has(img)) {
    background: linear-gradient(135deg, #20B2AA, #1E3A8A); /* ✅ Dégradé turquoise-bleu */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}


/* ✅ NOMS EN POLICE MANUSCRITE AVEC COULEUR SITE */
.team-name {
    font-family: 'Pacifico', cursive; /* ✅ Police manuscrite */
    font-size: 1.2rem;
    color: #1E3A8A; /* ✅ CHANGEMENT : Bleu du site au lieu de rose */
    margin: 10px 0 8px 0;
    font-weight: normal;
    transform: rotate(-1deg); /* ✅ Légère inclinaison */
}



/* ✅ RÔLES AVEC COULEURS SITE */
.team-role {
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ✅ DESCRIPTIONS MASQUÉES POUR STYLE ÉPURÉ */
.team-description {
    display: none; /* ✅ Masqué pour style photos d'identité */
}

/* ✅ AFFICHAGE DESCRIPTION AU HOVER AVEC COULEURS SITE */
.team-member:hover .team-description {
    display: block;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 58, 138, 0.95); /* ✅ Fond bleu site */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 400px;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4); /* ✅ Ombre bleu */
    z-index: 20;
    border: 1px solid #20B2AA; /* ✅ Bordure turquoise subtile */
}

                        /* ✅ OPTION 4 : VAGUE DOUCE CENTRÉE STYLE RUBAN */
            .team-content::after {
                content: '';
                position: absolute;
                bottom: 20px;
                left: 50%;
                transform: translateX(-50%);
                width: 70%;
                max-width: 500px;
                height: 30px;
                background: #20B2AA;
                border-radius: 50px;
                z-index: 1;
                
                /* Effet ondulé doux */
                clip-path: ellipse(50% 100% at 50% 0%);
                box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
            }



/* ✅ RESPONSIVE POUR MOBILE */
@media (max-width: 768px) {
    .team-grid {
        gap: 20px;
    }
    
    .team-member {
        max-width: 150px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .team-member.featured .team-photo {
        width: 110px;
        height: 110px;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .team-member.featured .team-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .team-member {
        max-width: 200px;
    }
}

/* ==========================================================================
   INSTALLATIONS
   ========================================================================== */

.installations-visual {
    padding: 80px 0;
    background: #F5F2E8;
    position: relative;
    z-index: 2;
}

.installations-header {
    text-align: center;
    margin-bottom: 50px;
}

.installations-header h2 {
    color: #1E3A8A;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.installations-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Carrousel Container - STYLE COMPLET 
.carousel-container {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 60px 20px 100px 20px; 
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15);
    border: 1px solid rgba(32, 178, 170, 0.1);
    margin-bottom: 40px; 
}
*/

.carousel-container {
    position: relative;
    overflow: hidden;
    /* SUPPRIMÉ: height: 400px; ← CAUSE DU BLANC */
    min-height: 280px;  /* Hauteur minimum adaptative */
    max-height: 350px;  /* Hauteur maximum pour éviter débordement */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 40px 20px 40px 20px; /* RÉDUIT de 100px à 40px en bas */
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15);
    border: 1px solid rgba(32, 178, 170, 0.1);
    margin-bottom: 40px;
    display: flex;
    align-items: center; /* Centrage vertical du contenu */
}

/*.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 50px;
    padding: 0 100px;
}
*/

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;        /* RÉDUIT de 50px à 30px */
    padding: 0 60px;  /* RÉDUIT de 100px à 60px */
    width: fit-content; /* Largeur adaptée au contenu */
    align-items: center; /* Centrage vertical des cards */
}

/* Photo Cards avec effet éparpillé - STYLE COMPLET */
.photo-card {
    flex-shrink: 0;
    position: relative;
    width: 280px;
    height: 220px;
    transition: all 0.6s ease;
    cursor: pointer;
    /* SUPPRIMÉ: opacity: 0 - ÉTAT VISIBLE PAR DÉFAUT */
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(30, 58, 138, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    background: white;
    padding: 8px;
    box-sizing: border-box;
}

/* Effet éparpillé avec rotations et décalages - RESTAURÉ */
.photo-card:nth-child(1) {
    transform: rotate(-3deg) translateY(-10px);
}
.photo-card:nth-child(2) {
    transform: rotate(2deg) translateY(15px);
}
.photo-card:nth-child(3) {
    transform: rotate(-1deg) translateY(-5px);
}
.photo-card:nth-child(4) {
    transform: rotate(4deg) translateY(20px);
}
.photo-card:nth-child(5) {
    transform: rotate(-2deg) translateY(-15px);
}

.photo-card:hover {
    transform: rotate(0deg) translateY(-20px) scale(1.05);
    z-index: 10;
}

.photo-card:hover img {
    box-shadow: 
        0 20px 50px rgba(30, 58, 138, 0.4),
        0 5px 20px rgba(32, 178, 170, 0.3);
}

/* Navigation repositionnée au niveau des indicateurs */
.nav-button {
    position: absolute;
    top: auto;  /* Supprime le positionnement vertical du carrousel */
    bottom: -70px;  /* Positionne au niveau des indicateurs */
    transform: none;  /* Supprime la transformation Y du carrousel */
    background: rgba(32, 178, 170, 0.9);
    border: none;
    width: 40px;  /* Réduit légèrement la taille */
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;  /* Réduit la taille de l'icône */
    color: white;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: bold;
    z-index: 100;
}

.nav-button:hover {
    background: #1E3A8A;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.4);
}

/* Positionnement spécifique des boutons par rapport aux indicateurs */
.nav-button.prev {
    left: calc(50% - 80px);  /* À gauche des indicateurs */
}

.nav-button.next {
    right: calc(50% - 80px);  /* À droite des indicateurs */
}

/* ==========================================================================
   RESPONSIVE POUR LA NOUVELLE DISPOSITION
   ========================================================================== */

@media (max-width: 768px) {
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
        bottom: -65px;
    }
    
    .nav-button.prev {
        left: calc(50% - 70px);
    }
    
    .nav-button.next {
        right: calc(50% - 70px);
    }
    
    .indicators {
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
        bottom: -60px;
    }
    
    .nav-button.prev {
        left: calc(50% - 60px);
    }
    
    .nav-button.next {
        right: calc(50% - 60px);
    }
    
    .indicators {
        padding: 0 40px;
    }
}

/* Indicateurs - style cohérent avec le site */
.indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #20B2AA;
    transform: scale(1.3);
    border-color: #1E3A8A;
    box-shadow: 0 0 10px rgba(32, 178, 170, 0.5);
}

.indicator:hover {
    background: #1E3A8A;
    transform: scale(1.1);
}

/* Étiquettes des photos - style équestre */
.photo-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    background: #1E3A8A;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.3);
    border: 1px solid #20B2AA;
}

.photo-card:hover .photo-label {
    transform: translateX(-50%) rotate(0deg);
    background: #20B2AA;
    color: white;
}

/* ==========================================================================
   PARTENAIRES SECTION
   ========================================================================== */

.partners {
    padding: 80px 0;
    background: linear-gradient(135deg, #F5F2E8 0%, #E8F4F8 100%);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Effet de fond subtil avec texture */
.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJncmlkIiB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiPgo8cGF0aCBkPSJNIDYwIDAgTCAwIDAgMCA2MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDMwLCA1OCwgMTM4LCAwLjAzKSIgc3Ryb2tlLXdpZHRoPSIxIi8+CjwvcGF0dGVybj4KPC9kZWZzPgo8cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIiAvPgo8L3N2Zz4K') repeat;
    opacity: 0.6;
    z-index: -1;
}

/* En-tête de section moderne */
.partners-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.partners-header h2 {
    color: #1E3A8A;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Ligne décorative sous le titre */
.partners-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #20B2AA, #1E3A8A);
    border-radius: 2px;
}

.partners-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Grille moderne responsive */
.partners-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Cards partenaires statiques */
.partner-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 4px 20px rgba(30, 58, 138, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

/* En-tête de card avec icône */
.partner-header {
    padding: 25px 25px 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.08), rgba(30, 58, 138, 0.05));
    border-bottom: 1px solid rgba(32, 178, 170, 0.1);
}

/* Lien cliquable sur l'icône */
.partner-icon-link {
    text-decoration: none;
    display: block;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.partner-icon-link:hover {
    opacity: 0.8;
}

.partner-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #20B2AA, #1E3A8A);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
    cursor: pointer;
}

/*.partner-type {
    background: #1E3A8A;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenu principal de la card */
.partner-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-name {
    color: #1E3A8A;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.partner-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Badge en bas de card */
.partner-badge {
    padding: 15px 25px;
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid rgba(32, 178, 170, 0.1);
}

.badge-text {
    color: #20B2AA;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Overlay supprimé - plus d'effet au survol */
.partner-overlay {
    display: none;
}

/* Variantes de couleurs par catégorie */
.partner-card.medical .partner-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.05));
}

.partner-card.artisan .partner-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.05));
}

.partner-card.commerce .partner-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.05));
}

.partner-card.officiel .partner-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.05));
}

.partner-card.partenaire .partner-header {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.08), rgba(30, 58, 138, 0.05));
}

/* Message de bas de section */
.partners-footer {
    text-align: center;
    margin-top: 40px;
}

.partners-note {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.08);
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    border-left: 4px solid #20B2AA;
}

.partners-note strong {
    color: #1E3A8A;
}

/* ==========================================================================
   RESPONSIVE DESIGN POUR PARTENAIRES
   ========================================================================== */

@media (max-width: 768px) {
    .partners {
        padding: 60px 0;
    }
    
    .partners-header h2 {
        font-size: 2rem;
    }
    
    .partners-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner-card {
        min-height: 160px;
    }
    
    .partner-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .partner-content {
        padding: 15px 20px;
    }
    
    .partner-name {
        font-size: 1.1rem;
    }
    
    .partners-note {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .partners-header {
        margin-bottom: 40px;
    }
    
    .partners-header h2 {
        font-size: 1.8rem;
    }
    
    .partners-subtitle {
        font-size: 1rem;
    }
    
    .partner-header {
        padding: 20px 20px 12px 20px;
    }
    
    .partner-icon {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .partner-type {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   MODAL GALERIE
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

/* ==========================================================================
   LIGHTBOX INSTALLATIONS - SYSTÈME D'AGRANDISSEMENT PHOTOS
   ========================================================================== */

/* Indicateur visuel de cliquabilité au survol des photos installations */
.photo-overlay-hint {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7), rgba(32, 178, 170, 0.6));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    pointer-events: none;
}

/* Icône de zoom qui apparaît au survol */
.zoom-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* Effet au survol des photo-cards dans la section installations */
.installations-visual .photo-card:hover .photo-overlay-hint {
    opacity: 1;
}

.installations-visual .photo-card:hover .zoom-icon {
    transform: scale(1);
}

/* Amélioration du curseur pour indiquer la cliquabilité */
.installations-visual .photo-card {
    cursor: pointer;
    position: relative;
}

/* Effet de focus pour l'accessibilité clavier */
.installations-visual .photo-card:focus {
    outline: 3px solid #20B2AA;
    outline-offset: 2px;
}

/* ==========================================================================
   MODAL AMÉLIORÉ SPÉCIFIQUE AUX INSTALLATIONS
   ========================================================================== */

/* Styling spécialisé pour les lightbox d'installations */
.modal.installations-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Image dans la lightbox installations */
.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    margin: 20px 0;
}

/* Titre de l'installation dans la lightbox */
.modal.installations-modal h3 {
    color: #1E3A8A;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Description dans la lightbox installations */
.modal-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 15px;
    font-style: italic;
}

/* Bouton de fermeture amélioré pour installations */
.modal.installations-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.modal.installations-modal .modal-close:hover {
    color: #1E3A8A;
    background: rgba(32, 178, 170, 0.1);
    transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN POUR LIGHTBOX INSTALLATIONS
   ========================================================================== */

@media (max-width: 768px) {
    .modal.installations-modal .modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 20px;
    }
    
    .modal.installations-modal h3 {
        font-size: 1.4rem;
    }
    
    .modal-image {
        max-height: 60vh;
    }
    
    .zoom-icon {
        font-size: 2.5rem;
    }
    
    .modal.installations-modal .modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
}

/* ==========================================================================
   ANIMATIONS AMÉLIORÉES - SANS ÉTATS CACHÉS
   ========================================================================== */

/* Hover effects améliorés */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow:hover {
    animation: glow 2s infinite;
}

.hover-pulse:hover {
    animation: pulse 1s infinite;
}

/* Logo animations */
.logo-overlay {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-overlay:hover {
    animation: logoFloat 2s ease-in-out infinite;
}

/* Button press effect */
@keyframes buttonPress {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.btn-press:active {
    animation: buttonPress 0.1s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN - OPTIMISÉ
   ========================================================================== */

@media (max-width: 1200px) {
    /* Tablette */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .team-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-content {
        order: -1;
    }
    
    .actualites-content {
        order: 2;
    }
    
    .team-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .team-member {
        flex: 0 1 calc(50% - 10px);
        min-width: 150px;
        padding: 20px 15px;
    }
    
    .team-member.featured {
        flex: 0 1 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .team-photo {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
    
    .team-member.featured .team-photo {
        width: 80px;
        height: 80px;
        font-size: 1.6rem;
    }

    /* INSTALLATIONS MOBILE */
    .carousel-container {
        height: 350px;
        padding: 40px 15px;
    }
    
    .carousel-track {
        gap: 30px;
        padding: 0 50px;
    }
    
    .photo-card {
        width: 220px;
        height: 180px;
    }
    
    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .installations-header h2 {
        font-size: 1.8rem;
    }

    /* GALERIE MOBILE */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    /* PARTENAIRES MOBILE */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* ACTUALITÉS MOBILE */
    .article-section {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    
    .sidebar-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .news-item {
        padding: 15px 0;
    }
    
    .news-date {
        font-size: 0.9rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
}

        /* ✅ RESPONSIVE AMÉLIORÉ POUR MOBILE */
        @media (max-width: 480px) {
            .team-grid {
                flex-direction: column;
                align-items: center;
                gap: 40px; /* ✅ AUGMENTÉ : de 30px à 40px */
                padding: 0 20px; /* ✅ AJOUTÉ : padding sur les côtés */
            }
            
            .team-member {
                flex: none;
                width: 100%;
                max-width: 280px;
                margin-bottom: 20px; /* ✅ AJOUTÉ : marge en bas pour sécurité */
            }
        }
        
        /* ✅ POUR TABLETTE AUSSI */
        @media (max-width: 768px) {
            .team-grid {
                gap: 30px; /* ✅ AUGMENTÉ : de 20px à 30px */
            }
            
            .team-member {
                margin-bottom: 15px; /* ✅ AJOUTÉ : marge de sécurité */
            }
        }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* INSTALLATIONS TRÈS PETIT MOBILE */
    .carousel-container {
        height: 300px;
        padding: 30px 10px;
    }
    
    .carousel-track {
        gap: 20px;
        padding: 0 40px;
    }
    
    .photo-card {
        width: 200px;
        height: 160px;
    }
    
    .nav-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .nav-button.prev {
        left: 10px;
    }
    
    .nav-button.next {
        right: 10px;
    }
    
    .installations-header h2 {
        font-size: 1.6rem;
    }
    
    .installations-header p {
        font-size: 1rem;
    }


/* ==========================================================================
   RESPECT DES PRÉFÉRENCES UTILISATEUR
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Garder seulement les transitions de base */
    .photo-card,
    .gallery-item,
    .team-member,
    .partner-item {
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
}

@media (prefers-contrast: high) {
    .photo-card,
    .gallery-item,
    .team-member {
        border: 2px solid #000;
    }
    
    .photo-card:hover,
    .gallery-item:hover,
    .team-member:hover {
        border-color: #20B2AA;
        outline: 2px solid #000;
    }
}

/* ==========================================================================
   SECTION TITLE - UTILITAIRE
   ========================================================================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1E3A8A;
}
/* ==========================================================================
   NAVIGATION EXTERNE INSTALLATIONS - SOLUTION FINALE
   ========================================================================== */

/* Conteneur de navigation en dehors du carrousel */
.installations-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(32, 178, 170, 0.05);
    border-radius: 15px;
}

/* Suppression des anciens boutons du carrousel */
.installations-visual .nav-button {
    display: none !important;
}

/* Effet hover pour les nouveaux boutons */
.installations-navigation button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(32, 178, 170, 0.3);
}

/* ==========================================================================
   CORRECTION LIGHTBOX MOBILE IPHONE - RESPONSIVE OPTIMISÉ
   ========================================================================== */

/* Correction spécifique pour mobile - Modal container */
@media (max-width: 768px) {
    .modal.installations-modal .modal-content {
        max-width: 95% !important;
        max-height: 90% !important;
        padding: 15px !important;
        margin: 0 !important;
        width: 95% !important;
        height: auto !important;
        min-height: 70vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    /* Image responsive optimisée pour iPhone */
    .modal-image {
        max-width: 100% !important;
        max-height: 65vh !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        margin: 10px 0 !important;
        flex-grow: 1 !important;
    }
    
    /* Titre plus petit sur mobile */
    .modal.installations-modal h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    
    /* Description plus compacte */
    .modal-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-top: 10px !important;
        text-align: center !important;
    }
    
    /* Bouton fermer repositionné */
    .modal.installations-modal .modal-close {
        top: 10px !important;
        right: 15px !important;
        font-size: 1.5rem !important;
        width: 30px !important;
        height: 30px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        color: white !important;
    }
}

/* Correction spécifique pour mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal.installations-modal .modal-content {
        max-height: 95% !important;
        min-height: auto !important;
        padding: 10px !important;
    }
    
    /* Image plus petite en mode paysage pour éviter le débordement */
    .modal-image {
        max-height: 50vh !important;
        width: auto !important;
        max-width: 90% !important;
        margin: 5px auto !important;
    }
    
    /* Titre et description plus compacts en paysage */
    .modal.installations-modal h3 {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }
    
    .modal-description {
        font-size: 0.8rem !important;
        margin-top: 5px !important;
    }
}

/* Correction pour très petits écrans (iPhone SE, etc.) */
@media (max-width: 375px) {
    .modal.installations-modal .modal-content {
        max-width: 98% !important;
        padding: 10px !important;
    }
    
    .modal-image {
        max-height: 60vh !important;
    }
    
    .modal.installations-modal h3 {
        font-size: 1.1rem !important;
    }
}