/*
Theme Name: NEC+Ultra
Theme URI: https://example.com/nec-ultra
Author: NEC+Ultra Team
Author URI: https://example.com
Description: Thème WordPress pour l'équipe citoyenne NEC+Ultra. Design moderne, accessible et responsive. Version 2.6.0 avec mode clair forcé et suppression du mode sombre.
Version: 2.6.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nec-ultra
Tags: politics, civic, community, accessibility-ready, custom-colors, custom-menu, featured-images, flexible-header, post-formats, sticky-post, theme-options, translation-ready, admin-interface
*/

/* ===================================
   FORCER MODE CLAIR - COMPATIBILITÉ UNIVERSELLE
   iOS, macOS, Android, Windows
   Version 2.6.0 - Mode clair permanent
   =================================== */

/* Désactiver complètement le mode sombre */
:root {
    color-scheme: light only !important;
    supported-color-schemes: light !important;
    -webkit-color-scheme: light only !important;
}

html {
    color-scheme: light only !important;
    -webkit-color-scheme: light only !important;
    background-color: #FFFFFF !important;
}

body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

/* Empêcher toute adaptation automatique du navigateur */
* {
    -webkit-text-fill-color: initial !important;
    -webkit-text-stroke-color: initial !important;
}

/* Désactiver les adaptations iOS/Safari */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
    }
}

/* Bloquer toute tentative de mode sombre */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light only !important;
    }
    
    html, body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
    }
}

/* ===================================
   VARIABLES CSS
   =================================== */
:root {
    --vert-institutionnel: #046362;
    --blanc-pur: #FFFFFF;
    --noir-profond: #000000;
    --vert-citron: #C7C804;
    --gris-clair: #F5F5F5;
    --gris-moyen: #E0E0E0;
}

/* ===================================
   RESET ET BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--noir-profond);
    line-height: 1.6;
    background-color: var(--blanc-pur);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--vert-institutionnel);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--vert-citron);
}

/* ===================================
   HEADER - NAVIGATION
   =================================== */
.site-header {
    background-color: var(--vert-institutionnel);
    color: var(--blanc-pur);
    padding: 1.5rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--blanc-pur);
}

.site-logo:hover {
    color: var(--blanc-pur);
}

.logo-accent {
    color: var(--vert-citron);
}

.main-navigation {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--blanc-pur);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--vert-citron);
}

.main-navigation a:focus {
    outline: 2px solid var(--vert-citron);
    outline-offset: 4px;
}

.btn-donate {
    background-color: var(--vert-citron);
    color: var(--noir-profond) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-donate:hover {
    background-color: #d4d504;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(199, 200, 4, 0.3);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanc-pur);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--vert-institutionnel);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(4, 99, 98, 0.9) 0%, rgba(4, 99, 98, 0.7) 100%),
                var(--vert-institutionnel);
    color: var(--blanc-pur);
    padding: 6rem 5% 3rem;
    text-align: center;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--vert-citron);
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

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

/* ===================================
   HERO SECTION - INDICATEURS CARROUSEL v2.6.0
   Style premium pour carousel-indicators
   =================================== */

/* Container des indicateurs */
.hero-section .carousel-indicators,
.carousel-indicators {
    position: absolute !important;
    bottom: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Points individuels - Style de base */
.hero-section .carousel-indicator,
.carousel-indicator {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Effet hover sur les points */
.hero-section .carousel-indicator:hover,
.carousel-indicator:hover {
    background-color: var(--vert-citron) !important;
    border-color: var(--vert-citron) !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 15px rgba(199, 200, 4, 0.5) !important;
}

/* Point actif - Style allongé avec animation */
.hero-section .carousel-indicator.active,
.carousel-indicator.active {
    width: 40px !important;
    border-radius: 7px !important;
    background-color: var(--vert-citron) !important;
    border-color: var(--vert-citron) !important;
    box-shadow: 0 4px 20px rgba(199, 200, 4, 0.4) !important;
    animation: indicatorPulse 2s ease-in-out infinite !important;
    transform: scale(1) !important;
}

/* Animation pulse pour le point actif */
@keyframes indicatorPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(199, 200, 4, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(199, 200, 4, 0.6);
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .hero-section .carousel-indicators,
    .carousel-indicators {
        bottom: 1rem !important;
        gap: 12px !important;
    }
    
    .hero-section .carousel-indicator,
    .carousel-indicator {
        width: 12px !important;
        height: 12px !important;
    }
    
    .hero-section .carousel-indicator.active,
    .carousel-indicator.active {
        width: 35px !important;
    }
}

/* Accessibilité - Réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .carousel-indicator {
        transition: none !important;
        animation: none !important;
    }
    
    .carousel-indicator.active {
        animation: none !important;
    }
}

/* ===================================
   BOUTONS
   =================================== */
.btn-primary,
.wp-block-button__link {
    background-color: var(--vert-citron);
    color: var(--noir-profond);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background-color: #d4d504;
    color: var(--noir-profond);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(199, 200, 4, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanc-pur);
    padding: 1rem 2.5rem;
    border: 2px solid var(--blanc-pur);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--blanc-pur);
    color: var(--vert-institutionnel);
}

/* ===================================
   SECTIONS DE CONTENU
   =================================== */
.content-section {
    padding: 1rem 1%;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
.content-section:nth-child(even) {
    background-color: var(--gris-clair);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--vert-institutionnel);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #333;
}

/* ===================================
   CARDS ET GRIDS
   =================================== */
/* Grid 2 colonnes - Pour Redevabilités */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Grid 3 colonnes - Pour Redevabilités */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Grid 4 colonnes - Pour Valeurs */
.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Grid 5 colonnes - Pour Les 5 Piliers */
.grid-5-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Pilier Cards */
.pilier-card {
    background: var(--blanc-pur);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-align: center;
}

.pilier-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--vert-institutionnel);
    color: var(--blanc-pur);
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 60px;
    margin-bottom: 1rem;
}

/* Bio Highlight */
.bio-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.bio-highlight {
    background: linear-gradient(135deg, var(--gris-clair) 0%, var(--blanc-pur) 100%);
    border-left: 5px solid var(--vert-citron);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-3-cols,
    .grid-4-cols,
    .grid-5-cols {
        grid-template-columns: 1fr;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--blanc-pur);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--vert-institutionnel);
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* ===================================
   ÉVÉNEMENTS
   =================================== */
.event-card {
    display: flex;
    gap: 2rem;
    background: var(--blanc-pur);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.event-date {
    background: var(--vert-institutionnel);
    color: var(--blanc-pur);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-day {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
}

.event-month {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--vert-citron);
    margin-top: 0.5rem;
}

.event-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--vert-institutionnel);
    margin-bottom: 0.5rem;
}

/* ===================================
   FORMULAIRE
   =================================== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--blanc-pur);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--noir-profond);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gris-moyen);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vert-institutionnel);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
}

.form-submit {
    background-color: var(--vert-institutionnel);
    color: var(--blanc-pur);
    padding: 1rem 3rem;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.form-submit:hover {
    background-color: var(--vert-citron);
    color: var(--noir-profond);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 99, 98, 0.3);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background-color: var(--noir-profond);
    color: var(--blanc-pur);
    padding: 4rem 5% 2rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--vert-citron);
}

.footer-section p,
.footer-section a {
    color: var(--blanc-pur);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-section a:hover {
    color: var(--vert-citron);
}

/* Correction de l'alignement des icônes sociales */
.footer-section .social-links-enhanced {
    display: inline-flex;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}

/* Social Links v2.0 - ALIGNEMENT CORRIGÉ */
.social-links-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
    /* Fix pour centrage parfait */
    line-height: 1;
    font-size: 20px;
    text-align: center;
}

.social-link-enhanced:hover {
    background-color: var(--vert-citron);
    border-color: var(--vert-citron);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(199, 200, 4, 0.3);
}

/* Pour les SVG */
.social-link-enhanced svg {
    width: 20px;
    height: 20px;
    fill: var(--blanc-pur);
    transition: fill 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.social-link-enhanced:hover svg {
    fill: var(--noir-profond);
}

/* Fix spécifique pour les emojis */
.social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Centrage parfait des emojis */
    font-size: 20px;
    line-height: 42px;
    text-align: center;
    padding: 0;
}

.social-link:hover {
    background-color: var(--vert-citron);
    border-color: var(--vert-citron);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(199, 200, 4, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-accent {
    color: var(--vert-citron);
    font-weight: 600;
}

/* ===================================
   ARTICLES ET PAGES
   =================================== */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 5%;
}

article {
    margin-bottom: 3rem;
}

.entry-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--vert-institutionnel);
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--vert-institutionnel);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .content-section {
        padding: 3rem 5%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-date {
        min-width: auto;
        padding: 1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ACCESSIBILITÉ
   =================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--vert-citron);
    color: var(--noir-profond);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

*:focus-visible {
    outline: 2px solid var(--vert-citron);
    outline-offset: 4px;
}

/* ===================================
   WORDPRESS CORE
   =================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--gris-clair);
    clip: auto !important;
    color: var(--noir-profond);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Lien Gestion des Cookies */
.footer-legal-links .cmplz-show-banner {
    cursor: pointer !important;
    transition: color 0.3s ease;
}

.footer-legal-links .cmplz-show-banner:hover {
    color: var(--vert-citron) !important;
    text-decoration: underline;
}

/* ============================================
   CARROUSEL ÉQUIPE - DESIGN PREMIUM
   ============================================ */

/* Container principal */
.equipe-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 60px auto;
    padding: 40px 20px;
    overflow: hidden;
}

.equipe-carousel-container {
    position: relative;
    width: 100%;
    min-height: 600px;
}

/* Slides */
.equipe-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipe-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

/* Layout principal - Photo + Info */
.equipe-content {
    display: flex;
    gap: 60px;
    align-items: stretch;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(4, 99, 98, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipe-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(4, 99, 98, 0.25);
}

/* Photo section */
.equipe-photo {
    position: relative;
    flex: 0 0 400px;
    overflow: hidden;
}

.equipe-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;  /* ← AJOUT */
   transition: transform 0.6s ease;
}

.equipe-content:hover .equipe-photo img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(4, 99, 98, 0.7) 0%, 
        rgba(199, 200, 4, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.equipe-content:hover .photo-overlay {
    opacity: 1;
}

/* Info section */
.equipe-info {
    flex: 1;
    padding: 50px 50px 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header - Nom/Prénom */
.equipe-header {
    position: relative;
    margin-bottom: 30px;
}

.equipe-numero {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 120px;
    font-weight: 700;
    color: #F5F5F5;
    line-height: 1;
    z-index: 0;
    font-family: 'Montserrat', sans-serif;
}

.equipe-nom {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #046362;
    margin: 0 0 5px 0;
    line-height: 1.1;
    z-index: 1;
}

.equipe-prenom {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 300;
    color: #333;
    margin: 0;
    line-height: 1.1;
    z-index: 1;
}

/* Détails - Métier/Passion */
.equipe-details {
    flex: 1;
}

.detail-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F5F5F5;
}

.detail-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #046362;
    min-width: 100px;
}

.detail-value {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

/* Bio */
.equipe-bio {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #C7C804;
    border-radius: 8px;
}

.equipe-bio p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0;
    font-style: italic;
}

/* Social */
.equipe-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #F5F5F5;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #046362;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(4, 99, 98, 0.3);
}

/* Navigation - POSITION FIXE CORRIGÉE */
.equipe-navigation {
    position: absolute;
    top: 300px;  /* Position fixe depuis le haut - ajustez selon vos besoins */
    left: 0;
    right: 0;
    transform: none;  /* On retire le translateY(-50%) */
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;  /* Augmenté pour rester au-dessus */
}

.equipe-prev,
.equipe-next {
    pointer-events: all;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #046362;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(4, 99, 98, 0.2);
}

.equipe-prev:hover,
.equipe-next:hover {
    background: #046362;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(4, 99, 98, 0.3);
}

.equipe-prev svg,
.equipe-next svg {
    stroke: #046362;
    transition: stroke 0.3s ease;
}

.equipe-prev:hover svg,
.equipe-next:hover svg {
    stroke: #ffffff;
}

/* Compteur - Version améliorée */
.equipe-counter {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(4, 99, 98, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #046362;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipe-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(4, 99, 98, 0.3);
    background: rgba(4, 99, 98, 0.98);
}

.equipe-counter:hover .current-slide,
.equipe-counter:hover .counter-separator,
.equipe-counter:hover .total-slides {
    color: #ffffff;
}

.current-slide {
    font-size: 32px;
    font-weight: 700;
    color: #046362;
    line-height: 1;
    min-width: 45px;
    text-align: right;
    transition: all 0.4s ease;
    animation: slideNumber 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideNumber {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.counter-separator {
    color: #C7C804;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    transition: color 0.4s ease;
}

.total-slides {
    color: #999;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    min-width: 30px;
    transition: color 0.4s ease;
}

/* Badge "En cours" optionnel */
.equipe-counter::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: #C7C804;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(199, 200, 4, 0.7);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(199, 200, 4, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(199, 200, 4, 0);
    }
}

/* Indicateurs */
.equipe-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.equipe-indicator {
    width: 12px;
    height: 12px;
    background: #E0E0E0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.equipe-indicator:hover {
    background: #C7C804;
    transform: scale(1.2);
}

.equipe-indicator.active {
    width: 40px;
    border-radius: 6px;
    background: #046362;
}

/* ============================================
   BOUTON DE BASCULEMENT DE VUE - v2.6.0
   ============================================ */

.equipe-view-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px auto 30px;
    padding: 0 20px;
    max-width: 1400px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #ffffff;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.view-toggle-btn:hover {
    border-color: #046362;
    color: #046362;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 99, 98, 0.2);
}

.view-toggle-btn.active {
    background: #046362;
    border-color: #046362;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(4, 99, 98, 0.3);
}

.view-toggle-btn svg {
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

/* ============================================
   VUE GRILLE - v2.6.0
   ============================================ */

.equipe-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipe-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.equipe-card {
    width: 100%;
    max-width: 320px;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(4, 99, 98, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.equipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(4, 99, 98, 0.25);
}

/* Photo de la carte */
.card-photo {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: center top;
    transition: transform 0.6s ease;
}

.equipe-card:hover .card-photo img {
    transform: scale(1.1);
}

/* Overlay au survol */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(4, 99, 98, 0.9) 0%, 
        rgba(199, 200, 4, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.equipe-card:hover .card-overlay {
    opacity: 1;
}

.card-view-btn {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    border: 2px solid #ffffff;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.equipe-card:hover .card-view-btn {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Informations de la carte */
.card-info {
    padding: 25px 20px;
    text-align: center;
}

.card-nom {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #046362;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.card-prenom {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.card-metier {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
    padding-top: 15px;
    border-top: 2px solid #F5F5F5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Transition de l'opacité pour les vues */
.equipe-carousel,
.equipe-grid {
    transition: opacity 0.3s ease;
}

/* ============================================
   RESPONSIVE CARROUSEL ÉQUIPE
   ============================================ */

/* Tablettes */
@media (max-width: 1024px) {
    .equipe-content {
        gap: 40px;
    }
    
    .equipe-photo {
        flex: 0 0 350px;
    }
    
    .equipe-info {
        padding: 40px 40px 40px 0;
    }
    
    .equipe-nom {
        font-size: 40px;
    }
    
    .equipe-prenom {
        font-size: 36px;
    }
    
    .equipe-numero {
        font-size: 100px;
    }
    
    /* Vue grille responsive */
    .equipe-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .card-photo {
        height: 280px;
    }
    
    .card-nom {
        font-size: 22px;
    }
    
    .card-prenom {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .equipe-carousel {
        margin: 30px auto;
        padding: 20px 10px;
    }
    
    .equipe-content {
        flex-direction: column;
        gap: 0;
    }
    
    .equipe-photo {
        flex: 0 0 400px;
        max-height: 400px;
    }
    
    .equipe-info {
        padding: 40px 30px;
    }
    
    .equipe-nom {
        font-size: 36px;
    }
    
    .equipe-prenom {
        font-size: 32px;
    }
    
    .equipe-numero {
        font-size: 80px;
        top: -10px;
        left: -5px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    /* Navigation alignée sur la photo - position fixe */
    .equipe-navigation {
        position: absolute;
        top: 350px;  /* Position fixe pour mobile */
        transform: none;  /* On retire le translateY */
        padding: 0 15px;
    }
    
    .equipe-prev,
    .equipe-next {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
    }
    
    .equipe-counter {
        top: 15px;
        right: 15px;
        padding: 10px 18px;
        gap: 6px;
    }
    
    .current-slide {
        font-size: 24px;
        min-width: 35px;
    }
    
    .counter-separator {
        font-size: 20px;
    }
    
    .total-slides {
        font-size: 16px;
        min-width: 25px;
    }
    
    .equipe-counter::before {
        width: 10px;
        height: 10px;
        top: -6px;
        left: 12px;
    }
    
    /* Vue grille responsive mobile */
    .view-toggle-btn {
        padding: 10px 18px;
        font-size: 14px;
        gap: 8px;
    }
    
    .view-toggle-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .equipe-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .card-photo {
        height: 320px;
    }
    
    .card-nom {
        font-size: 20px;
    }
    
    .card-prenom {
        font-size: 17px;
    }
    
    .card-info {
        padding: 20px 15px;
    }
    
    .card-metier {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .equipe-photo {
        flex: 0 0 300px;
        max-height: 300px;
    }
    
    .equipe-info {
        padding: 30px 20px;
    }
    
    .equipe-nom {
        font-size: 28px;
    }
    
    .equipe-prenom {
        font-size: 24px;
    }
    
    .equipe-numero {
        font-size: 60px;
    }
    
    .detail-value {
        font-size: 16px;
    }
    
    .equipe-bio p {
        font-size: 14px;
    }
    
    .equipe-counter {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        gap: 5px;
    }
    
    .current-slide {
        font-size: 20px;
        min-width: 30px;
    }
    
    .counter-separator {
        font-size: 18px;
    }
    
    .total-slides {
        font-size: 14px;
        min-width: 20px;
    }
    
    .equipe-counter::before {
        width: 8px;
        height: 8px;
        top: -5px;
        left: 10px;
    }
    
    /* Vue grille très petit écran */
    .equipe-view-toggle {
        gap: 10px;
        margin: 30px auto 20px;
    }
    
    .view-toggle-btn {
        padding: 8px 15px;
        font-size: 13px;
        gap: 6px;
    }
    
    .view-toggle-btn span {
        display: none; /* Masquer le texte sur très petit écran */
    }
    
    .view-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .equipe-grid-container {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 20px;
    }
    
    .equipe-card {
        max-width: 100%;
    }
    
    .card-photo {
        height: 300px;
    }
    
    .card-nom {
        font-size: 22px;
    }
    
    .card-prenom {
        font-size: 18px;
    }
}

/* ============================================
   ANIMATIONS CARROUSEL
   ============================================ */

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

.equipe-slide.active .equipe-nom {
    animation: slideInRight 0.6s ease 0.2s both;
}

.equipe-slide.active .equipe-prenom {
    animation: slideInRight 0.6s ease 0.3s both;
}

.equipe-slide.active .detail-item:nth-child(1) {
    animation: slideInRight 0.6s ease 0.4s both;
}

.equipe-slide.active .detail-item:nth-child(2) {
    animation: slideInRight 0.6s ease 0.5s both;
}

.equipe-slide.active .equipe-bio {
    animation: slideInRight 0.6s ease 0.6s both;
}

.equipe-slide.active .equipe-social {
    animation: slideInRight 0.6s ease 0.7s both;
}

/* ============================================
   RÉSEAUX SOCIAUX - Facebook & LinkedIn
   ============================================ */

/* Facebook - Bleu officiel */
.facebook-icon:hover {
    background: #1877F2 !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.facebook-icon:hover svg {
    fill: #ffffff;
}

/* LinkedIn - Bleu officiel */
.linkedin-icon:hover {
    background: #0A66C2 !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}

.linkedin-icon:hover svg {
    fill: #ffffff;
}

/* Animation au clic */
.social-icon:active {
    transform: translateY(-1px) scale(1.05);
}

/* ============================================
   CORRECTION CSS - 3 COLONNES MAX + 95% LARGEUR
   Version optimale pour lisibilité maximale
   ============================================ */

/* ===================================
   CORRECTION DE LA LARGEUR GLOBALE
   =================================== */

/* Limiter toutes les sections de contenu à 95% de la largeur 
.content-section {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1% !important;
    padding-right: 1% !important;
}*/

/* ===================================
   CORRECTION DES GRILLES - 3 COLONNES MAX
   =================================== */

/* Toutes les grilles passent à 3 colonnes maximum */
.grid-5-cols,
.grid-4-cols,
.grid-3-cols {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;  /* 3 colonnes max */
    gap: 2.5rem !important;  /* Plus d'espace entre les cards */
    margin-top: 3rem !important;
}

/* ===================================
   RESPONSIVE - ADAPTATION TABLETTE/MOBILE
   =================================== */

@media (max-width: 1024px) {
    /* Sur écrans moyens : 2 colonnes */
    .grid-5-cols,
    .grid-4-cols,
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    /* Sur petites tablettes : 2 colonnes avec moins d'espace */
    .grid-5-cols,
    .grid-4-cols,
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    /* Largeur à 98% sur tablette */
    .content-section {
        max-width: 98% !important;
        width: 98% !important;
        padding-left: 1% !important;
        padding-right: 1% !important;
    }
}

@media (max-width: 640px) {
    /* Sur mobile : 1 colonne */
    .grid-5-cols,
    .grid-4-cols,
    .grid-3-cols {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Largeur à 100% sur mobile */
    .content-section {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

/* ===================================
   AMÉLIORATION DES CARDS
   =================================== */

/* Cards plus spacieuses avec 3 colonnes */
.card,
.pilier-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 2.5rem 2rem !important;  /* Plus de padding */
}

/* Icônes plus grandes pour profiter de l'espace */
.card-icon {
    font-size: 3.5rem !important;  /* Icônes plus grandes */
    margin-bottom: 1.5rem !important;
}

/* Numéros des piliers légèrement plus grands */
.pilier-number {
    width: 70px !important;
    height: 70px !important;
    font-size: 2rem !important;
    line-height: 70px !important;
}

/* Titres des cards */
.card h3,
.pilier-card h3 {
    font-size: 1.75rem !important;  /* Titres plus gros */
    margin-bottom: 1.25rem !important;
}

/* Texte des cards */
.card p,
.pilier-card p {
    font-size: 1.125rem !important;  /* Texte plus lisible */
    line-height: 1.8 !important;
    flex-grow: 1 !important;
}

/* ===================================
   CORRECTIONS VISUELLES SUPPLÉMENTAIRES
   =================================== */

/* Centrer le contenu dans chaque section */
.section-title,
.section-subtitle {
    max-width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Titres de section plus grands */
.section-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem) !important;
}

.section-subtitle {
    font-size: 1.25rem !important;
}

/* Espacement entre les sections */
.content-section + .content-section {
    margin-top: 2rem !important;
}

/* ===================================
   BIO SECTION - OPTIMISATION
   =================================== */

/* Bio content plus large pour profiter de l'espace */
.bio-content {
    max-width: 1000px !important;
    font-size: 1.125rem !important;
}

.bio-highlight {
    padding: 2.5rem !important;
    margin-top: 2.5rem !important;
}

.bio-highlight h3 {
    font-size: 1.75rem !important;
}

.bio-highlight p {
    font-size: 1.125rem !important;
}

/* ===================================
   ANIMATIONS - AMÉLIORATION
   =================================== */

/* Animation plus douce avec 3 colonnes */
.card,
.pilier-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.card:hover,
.pilier-card:hover {
    transform: translateY(-8px) !important;  /* Plus d'effet au survol */
    box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
}

/* ===================================
   CSS POUR REMPLACER UNE CARD PAR UNE IMAGE
   =================================== */

/* ───────────────────────────────────
   OPTION 1 : Image Card Simple
   ─────────────────────────────────── */
.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ───────────────────────────────────
   OPTION 2 : Image Card avec Légende
   ─────────────────────────────────── */
.image-card-with-caption {
    background: var(--blanc-pur);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-card-with-caption img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-card-with-caption h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--vert-institutionnel);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

.image-card-with-caption p {
    padding: 0 1.5rem 1.5rem;
    color: var(--noir-profond);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.image-card-with-caption:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ───────────────────────────────────
   OPTION 3 : Image Card Large (2 colonnes)
   ─────────────────────────────────── */
.image-card-large {
    grid-column: span 2;  /* Prend 2 colonnes dans la grille */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
}

.image-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ───────────────────────────────────
   OPTION 4 : Card avec Image en Fond
   ─────────────────────────────────── */
.program-card-image-bg {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 2rem;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--blanc-pur);
}

.card-overlay h3 {
    color: var(--blanc-pur);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.card-overlay p {
    color: var(--blanc-pur);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

.program-card-image-bg:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ===================================
   RESPONSIVE - TABLETTE
   =================================== */
@media screen and (max-width: 1024px) {
    .image-card-large {
        grid-column: span 1;  /* Retour à 1 colonne sur tablette */
    }
    
    .image-card img,
    .image-card-large img,
    .program-card-image-bg {
        min-height: 250px;
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */
@media screen and (max-width: 768px) {
    .image-card img,
    .image-card-large img,
    .program-card-image-bg {
        min-height: 200px;
    }
    
    .image-card-with-caption img {
        height: 180px;
    }
    
    .card-overlay {
        min-height: 200px;
        padding: 1.5rem;
    }
}

/* ===================================
   ICÔNES PLUS GROSSES ET CENTRÉES
   =================================== */

/* Toutes les icônes (emojis et images) */
.program-icon,
.card-icon,
.value-icon,
.pilier-number {
    font-size: 4.5rem;           /* Plus gros (était 3.5rem) */
    text-align: center;
    margin: 0 auto 1.5rem;       /* Centré avec marge en bas */
    display: flex;               /* Pour centrer parfaitement */
    align-items: center;
    justify-content: center;
}

/* Numéros des piliers - Plus gros */
.pilier-number {
    width: 80px;                 /* Plus grand (était 60-70px) */
    height: 80px;
    font-size: 2.25rem;          /* Chiffre plus gros */
    line-height: 80px;
    display: inline-flex;        /* Pour centrage parfait */
    align-items: center;
    justify-content: center;
}

/* Bio logo (icône dans la section collectif) */
.bio-logo {
    font-size: 5rem;             /* Très gros pour la section bio */
    text-align: center;
    margin-bottom: 2rem;
}

/* ===================================
   SI VOUS UTILISEZ DES IMAGES
   =================================== */

/* Images dans les icônes - Plus grosses */
.program-icon img,
.card-icon img,
.value-icon img {
    width: 4.5rem;               /* Plus gros (était 3.5rem) */
    height: 4.5rem;
    object-fit: contain;
    display: block;
    margin: 0 auto;              /* Centré */
}

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

/* Tablette (768-1024px) */
@media screen and (max-width: 1024px) {
    .program-icon,
    .card-icon,
    .value-icon {
        font-size: 4rem;         /* Un peu moins gros sur tablette */
    }
    
    .pilier-number {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        line-height: 70px;
    }
    
    .bio-logo {
        font-size: 4.5rem;
    }
    
    /* Images */
    .program-icon img,
    .card-icon img,
    .value-icon img {
        width: 4rem;
        height: 4rem;
    }
}

/* Mobile (<768px) */
@media screen and (max-width: 768px) {
    .program-icon,
    .card-icon,
    .value-icon {
        font-size: 3.5rem;       /* Taille raisonnable sur mobile */
    }
    
    .pilier-number {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        line-height: 60px;
    }
    
    .bio-logo {
        font-size: 4rem;
    }
    
    /* Images */
    .program-icon img,
    .card-icon img,
    .value-icon img {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* ===================================
   OPTIONS AVANCÉES 
   =================================== */

/* Option : Ombre portée sur les icônes */
.program-icon,
.card-icon,
.value-icon {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* ============================================
   FIN DU STYLE.CSS v2.6.0
   MODE CLAIR FORCÉ - COMPATIBLE TOUS APPAREILS
   ============================================ */

/* ============================================
   MOT DU CANDIDAT - NOUVELLE FONCTIONNALITÉ
   Version optimisée avec hauteur augmentée
   ============================================ */

/* Bouton Mot du Candidat */
.equipe-mot-toggle {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #F5F5F5;
}

.btn-mot-candidat {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #046362, #034d4c);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(4, 99, 98, 0.2);
}

.btn-mot-candidat:hover {
    background: linear-gradient(135deg, #057574, #045e5d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 99, 98, 0.3);
}

.btn-mot-candidat.active {
    background: linear-gradient(135deg, #C7C804, #b8b904);
    color: #046362;
}

.btn-mot-candidat .btn-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.btn-mot-candidat.active .btn-icon {
    transform: rotate(180deg);
}

/* Section Mot du Candidat - HAUTEUR AUGMENTÉE */
.equipe-mot-candidat {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-top: 3px solid #C7C804;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.equipe-mot-candidat.open {
    max-height: 5000px;  /* AUGMENTÉ de 1000px à 5000px pour textes longs */
    opacity: 1;
    animation: slideDown 0.4s ease;
}

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

.mot-candidat-content {
    padding: 40px;
    position: relative;
    max-height: none;  /* Pas de limite de hauteur pour le contenu */
}

.mot-candidat-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: #C7C804;
    opacity: 0.3;
    font-family: 'Georgia', serif;
}

.mot-candidat-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    color: #046362;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mot-candidat-content p {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    white-space: pre-line;
    text-align: justify;
    padding-left: 30px;
}

/* Ajustement du container quand expanded */
.equipe-slide.expanded .equipe-content {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 20px 60px rgba(4, 99, 98, 0.2);
}

.equipe-slide.expanded {
    margin-bottom: 20px;
}

/* Les boutons de navigation restent fixes même avec le mot du candidat ouvert */
.equipe-slide.expanded .equipe-navigation {
    top: 300px !important;  /* Force la même position */
    transform: none !important;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .equipe-mot-toggle {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .btn-mot-candidat {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 8px;
    }
    
    .mot-candidat-content {
        padding: 25px 20px;
        max-height: none;  /* Pas de limite sur mobile */
    }
    
    .mot-candidat-content::before {
        font-size: 40px;
        top: 15px;
        left: 15px;
    }
    
    .mot-candidat-content h4 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .mot-candidat-content p {
        font-size: 15px;
        line-height: 1.8;
        padding-left: 20px;
    }
    
    /* Navigation reste fixe sur mobile aussi */
    .equipe-slide.expanded .equipe-navigation {
        top: 350px !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .btn-mot-candidat {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .mot-candidat-content {
        padding: 20px 15px;
    }
    
    .mot-candidat-content h4 {
        font-size: 18px;
    }
    
    .mot-candidat-content p {
        font-size: 14px;
        padding-left: 15px;
    }
    
    /* Position fixe pour très petit écran */
    .equipe-navigation {
        top: 270px !important;
    }
}