/*
Theme Name: CODAS Batouri
Theme URI: https://codasbatouri.org
Author: Ton nom
Description: Thème minimaliste basé sur le design existant.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: codas-batouri
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e3a8a;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23059669" width="1200" height="600"/><path fill="%23065f46" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
}

/* Stats Section */
.stats {
    background: white;
    padding: 80px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 30px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* About Section */
.about {
    background: #f8fafc;
    padding: 80px 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 20px;
}

.about-image {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.services h3 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid #10b981;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* News Section */
.news {
    background: #f8fafc;
    padding: 80px 0;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news h3 {
    font-size: 2.5rem;
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card h4 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.news-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #10b981;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #3b82f6;
    color: #cbd5e1;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ================
   STYLES AJOUTÉS POUR LES PAGES INSTITUTION & ACTIONS
   ================ */

/* Page Hero (pour pages internes) */
.page-hero {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.9)), 
                url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23059669" width="1200" height="400"/><circle fill="%23065f46" cx="200" cy="200" r="100"/><circle fill="%23047857" cx="600" cy="150" r="80"/><circle fill="%23065f46" cx="1000" cy="250" r="90"/></svg>');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 80px;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8fafc;
    padding: 20px 0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.breadcrumb-list li {
    color: #64748b;
}

.breadcrumb-list a {
    color: #1e3a8a;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 60px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards génériques */
.team-card,
.director-card,
.service-card,
.news-card,
.stat-card,
.conseil-card,
.governance-box,
.partner-card,
.report-card,
.domaine-card {
    transition: all 0.3s;
}

.team-card:hover,
.director-card:hover,
.service-card:hover,
.news-card:hover,
.stat-card:hover,
.conseil-card:hover,
.governance-box:hover,
.partner-card:hover,
.report-card:hover,
.domaine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Team & Director Cards */
.director-card {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-top: 5px solid #10b981;
}

.director-photo {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 4rem;
    border: 5px solid #e0f2fe;
}

.director-card h3 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.director-title {
    color: #10b981;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.team-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.team-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 3rem;
    border: 4px solid #f0fdf4;
}

.team-card h4 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.team-role {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Domaine Card (pour sectors.html) */
.domaine-card {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    margin-bottom: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-left: 6px solid #10b981;
    position: relative;
}

.domaine-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.domaine-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.domaine-info h3 {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 10px;
}

.domaine-description {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.domaine-objectifs h4,
.domaine-methodologie h4,
.domaine-chiffres h4,
.domaine-temoignage h4 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2fe;
}

.domaine-objectifs ul {
    list-style: none;
    padding: 0;
}

.domaine-objectifs li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.domaine-objectifs li::before {
    content: "🎯";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
}

.domaine-chiffres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chiffre-item {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #dcfce7;
}

.chiffre-number {
    font-size: 2rem;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 5px;
}

.chiffre-label {
    color: #64748b;
    font-size: 0.9rem;
}

.domaine-temoignage {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #10b981;
    margin: 30px 0;
}

.domaine-temoignage blockquote {
    font-style: italic;
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.temoignage-author {
    font-weight: 600;
    color: #10b981;
    font-size: 0.95rem;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive supplémentaire */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .domaine-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ================
   STYLES ACTUALITÉS
   ================ */

.news-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.news-article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    position: relative;
}

.news-article-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-article-card h3 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-full-content {
    margin-top: 30px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
}

.article-full-content h2,
.article-full-content h3,
.article-full-content h4 {
    color: #1e3a8a;
    margin: 25px 0 15px;
}

.article-full-content p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-full-content ul {
    list-style: none;
    padding: 0;
}

.article-full-content ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: #64748b;
}

.article-full-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .news-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ================
   IMAGE DANS SINGLE.PHP
   ================ */

.news-image-single {
    height: 400px; /* Hauteur fixe */
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0;
}

.news-image-single img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Coupe l'image pour remplir le conteneur sans déformation */
    object-position: center; /* Centre l'image */
    transition: transform 0.3s;
}

.news-image-single img:hover {
    transform: scale(1.05); /* Effet de zoom subtil au survol */
}

/* Correction de l'espacement global pour éviter les espaces blancs */

/* Correction de l'espacement global pour éviter les espaces blancs */

/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header fixe sans espace */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Page d'accueil - Carrousel en plein écran */
.home .hero-carousel {
    margin-top: 0 !important;
    padding-top: 0;
    height: 100vh;
    position: relative;
}

.home .hero-carousel .slide-content {
    padding-top: 80px; /* Compenser la hauteur du header */
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Autres pages - Ajustement du page-hero */
.page-hero {
    margin-top: 0 !important;
    padding-top: 160px; /* 80px header + 80px espace */
    min-height: 400px;
}

/* Articles de blog */
.article-hero {
    margin-top: 0 !important;
    padding-top: 200px; /* Plus d'espace pour les articles */
}

/* Section suivante après le hero */
.stats {
    margin-top: 0;
    position: relative;
    z-index: 2;
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .home .hero-carousel .slide-content {
        padding-top: 70px; /* Header mobile plus petit */
    }
    
    .page-hero {
        padding-top: 140px; /* 70px header + 70px espace */
        min-height: 300px;
    }
    
    .article-hero {
        padding-top: 170px;
    }
}

@media (max-width: 480px) {
    .home .hero-carousel .slide-content {
        padding-top: 60px;
    }
    
    .page-hero {
        padding-top: 120px;
        min-height: 250px;
    }
    
    .article-hero {
        padding-top: 150px;
    }
}

/* Assurer que les sections s'enchaînent sans espace */
section {
    position: relative;
}

section + section {
    margin-top: 0;
}

/* Breadcrumb - Ajustement pour éviter l'espace */
.breadcrumb {
    margin-top: 0;
    padding-top: 100px; /* Espace sous le header */
    padding-bottom: 20px;
    background: #f8fafc;
}

/* Page de blog - Ajustement */
.blog-intro {
    padding-top: 100px; /* Compenser le header */
}

/* Overlay du carrousel qui commence en haut */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    z-index: 2;
}

/* Ajustement du contenu du slide pour éviter qu'il soit caché par le header */
.slide-inner {
    padding-top: 40px; /* Espace supplémentaire en haut */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    animation: slideInUp 1s ease-out;
}

/* Mobile - Ajustements spécifiques */
@media (max-width: 768px) {
    .slide-inner {
        padding-top: 20px;
    }
    
    .breadcrumb {
        padding-top: 80px;
    }
    
    .blog-intro {
        padding-top: 80px;
    }
}

/* Assurer un défilement fluide */
html {
    scroll-behavior: smooth;
}

/* Fix pour les ancres avec header fixe */
[id] {
    scroll-margin-top: 100px;
}

/* Animation d'apparition pour éviter le flash */
.hero-carousel {
    opacity: 0;
    animation: fadeInCarousel 0.5s ease-out 0.1s forwards;
}

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

/* Amélioration du header au scroll sur la page d'accueil */
.home .header {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Complètement transparent au début */
    border: none !important;
    box-shadow: none !important;
}

.home .header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    /* Légère bordure subtile seulement au scroll */
    border-bottom: 1px solid rgba(30, 58, 138, 0.05) !important;
    box-shadow: none !important;
}

/* Couleur du texte du header sur la home */
.home .header .site-title,
.home .header .nav-menu a {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.home .header.scrolled .site-title,
.home .header.scrolled .nav-menu a {
    color: #1e3a8a;
    text-shadow: none;
}

.home .header .site-tagline {
    color: rgba(255, 255, 255, 0.9);
}

.home .header.scrolled .site-tagline {
    color: #64748b;
}

/* Logo par défaut en blanc sur la home */
.home .header .logo-default {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.home .header.scrolled .logo-default {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: none;
}

/* Menu mobile toggle en blanc sur la home */
.home .header .hamburger-line {
    background: white;
}

.home .header.scrolled .hamburger-line {
    background: #1e3a8a;
}

/* Header parfaitement intégré - Aucune séparation visuelle */

/* Suppression complète de toutes les ombres et bordures */
.header,
.header.scrolled,
.header:hover,
.header:focus {
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Page d'accueil - Header invisible au début */
.home .header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Transition très douce vers opaque */
.home .header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    /* Bordure ultra-subtile seulement si nécessaire */
    border-bottom: 1px solid rgba(30, 58, 138, 0.03) !important;
}

/* Texte avec meilleur contraste */
.home .header .site-title,
.home .header .nav-menu a,
.home .header .cta-button {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Logo blanc sur fond transparent */
.home .header .logo-default {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(5px) !important;
}

/* Au scroll, retour aux couleurs normales */
.home .header.scrolled .site-title,
.home .header.scrolled .nav-menu a {
    color: #1e3a8a !important;
    text-shadow: none !important;
}

.home .header.scrolled .logo-default {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    border: none !important;
}

/* Menu mobile également adapté */
.home .header .hamburger-line {
    background: white !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.home .header.scrolled .hamburger-line {
    background: #1e3a8a !important;
    box-shadow: none !important;
}

/* Bouton CTA adapté */
.home .header .cta-button {
    background: rgba(16, 185, 129, 0.9) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.home .header.scrolled .cta-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
}

/* Tagline plus lisible */
.home .header .site-tagline {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.home .header.scrolled .site-tagline {
    color: #64748b !important;
    text-shadow: none !important;
}

/* Animation de transition ultra-douce */
.home .header * {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Assurer que le carrousel commence vraiment en haut */
.home .hero-carousel {
    position: relative;
    top: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Le slide overlay commence vraiment en haut */
.home .hero-carousel .slide-overlay {
    top: 0 !important;
    height: 100% !important;
}

/* Contenu du slide bien centré avec le header transparent */
.home .hero-carousel .slide-content {
    height: 100vh !important;
    padding-top: 40px !important; /* Réduit car header transparent */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Mobile - Ajustements */
@media (max-width: 768px) {
    .home .hero-carousel .slide-content {
        padding-top: 30px !important;
    }
    
    .home .header .site-title {
        font-size: 1.1rem !important;
    }
}

/* Ultra-mobile */
@media (max-width: 480px) {
    .home .hero-carousel .slide-content {
        padding-top: 20px !important;
    }
}

/* Assurer que les autres pages gardent un header normal */
body:not(.home) .header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
}

body:not(.home) .header.scrolled {
    background: rgba(255, 255, 255, 0.99) !important;
}

/* Smooth scroll pour les ancres */
html {
    scroll-behavior: smooth;
}

/* Offset pour les ancres avec header transparent */
.home [id] {
    scroll-margin-top: 60px;
}

body:not(.home) [id] {
    scroll-margin-top: 100px;
}


/* 
 * CORRECTION CSS POUR LES SOUS-MENUS DÉROULANTS
 * À ajouter dans style.css ou Apparence → Personnaliser → CSS additionnel
 */

/* ===== MENU DÉROULANT - STYLES DE BASE ===== */

/* Container principal du menu */
.main-nav ul,
.header-nav ul,
nav ul {
    position: relative;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Éléments de menu de niveau 1 */
.main-nav li,
.header-nav li,
nav li {
    position: relative;
    display: inline-block;
}

/* Liens de niveau 1 */
.main-nav a,
.header-nav a,
nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

/* ===== SOUS-MENUS (DROPDOWN) ===== */

/* Sous-menus cachés par défaut */
.main-nav ul ul,
.header-nav ul ul,
nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

/* Afficher les sous-menus au hover */
.main-nav li:hover > ul,
.header-nav li:hover > ul,
nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Éléments de sous-menu */
.main-nav ul ul li,
.header-nav ul ul li,
nav ul ul li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    display: block;
}

.main-nav ul ul li:last-child,
.header-nav ul ul li:last-child,
nav ul ul li:last-child {
    border-bottom: none;
}

/* Liens dans les sous-menus */
.main-nav ul ul a,
.header-nav ul ul a,
nav ul ul a {
    padding: 12px 20px;
    color: #64748b;
    font-size: 0.95rem;
    border-radius: 0;
    white-space: nowrap;
}

/* Hover sur les liens de sous-menu */
.main-nav ul ul a:hover,
.header-nav ul ul a:hover,
nav ul ul a:hover {
    background: #f8fafc;
    color: #1e3a8a;
    padding-left: 25px;
}

/* Indicateur de sous-menu (flèche) */
.main-nav li.menu-item-has-children > a::after,
.header-nav li.menu-item-has-children > a::after,
nav li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.main-nav li.menu-item-has-children:hover > a::after,
.header-nav li.menu-item-has-children:hover > a::after,
nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    
    /* Sur mobile, les sous-menus s'affichent directement */
    .main-nav ul ul,
    .header-nav ul ul,
    nav ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        border: none;
        border-radius: 0;
        margin-left: 20px;
        margin-top: 5px;
        display: none; /* Caché par défaut sur mobile */
    }
    
    /* JavaScript toggle pour mobile */
    .main-nav li.menu-item-has-children.mobile-open > ul,
    .header-nav li.menu-item-has-children.mobile-open > ul,
    nav li.menu-item-has-children.mobile-open > ul {
        display: block;
    }
    
    /* Liens mobile */
    .main-nav ul ul a,
    .header-nav ul ul a,
    nav ul ul a {
        padding: 10px 15px;
        border-left: 3px solid #1e3a8a;
    }
}

/* ===== STYLES SPÉCIFIQUES POUR LE MENU "ACTIONS" ===== */

/* Si votre menu a une classe spécifique */
.menu-actions ul ul {
    min-width: 200px;
}

/* Styles pour les filtres de portfolio */
.menu-actions ul ul a[href*="filter=termine"] {
    color: #059669;
}

.menu-actions ul ul a[href*="filter=en_cours"] {
    color: #d97706;
}

.menu-actions ul ul a[href*="filter=planifie"] {
    color: #7c3aed;
}

/* ===== ALTERNATIVE : STYLES UNIVERSELS ===== */
/* Si les sélecteurs ci-dessus ne fonctionnent pas, utilisez ces styles plus génériques */

/* Tous les éléments ul dans le header */
header ul ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    min-width: 220px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    flex-direction: column !important;
}

header li:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* ===== DEBUG - Supprimer après test ===== */
/* Décommenter temporairement pour voir la structure */
/*
.main-nav ul ul {
    border: 2px solid red !important;
    background: yellow !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
}
*/

/* ===============================
   CSS POUR LES NOUVELLES SECTIONS DE LA PAGE D'ACCUEIL
   À ajouter dans style.css ou créer un fichier séparé
   =============================== */

/* ===============================
   VARIABLES CSS ET STYLES GLOBAUX
   =============================== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #10b981;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-radius: 20px;
    --border-radius-small: 15px;
    --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-medium: 0 15px 35px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Section spacing global */
.home-portfolio,
.home-governance,
.home-partners,
.home-contact {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Alternance des backgrounds */
.home-portfolio {
    background: var(--bg-light);
}

.home-governance {
    background: var(--bg-white);
}

.home-partners {
    background: var(--bg-light);
}

.home-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

/* ===============================
   COMPOSANTS RÉUTILISABLES
   =============================== */

/* Headers de section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.home-contact .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Boutons CTA */
.section-cta {
    text-align: center;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-arrow {
    margin-left: 8px;
    transition: transform 0.3s;
}

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

/* ===============================
   SECTION PORTFOLIO
   =============================== */
.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.portfolio-preview-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.portfolio-preview-card:nth-child(even) {
    animation-delay: 0.1s;
}

.portfolio-preview-card:nth-child(3n) {
    animation-delay: 0.2s;
}

.portfolio-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-preview-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

.portfolio-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.portfolio-category {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;
}

.portfolio-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===============================
   SECTION GOUVERNANCE
   =============================== */
.governance-preview {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.governance-direction {
    animation: fadeInLeft 0.8s ease-out;
}

.governance-departments {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.director-preview-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-medium);
    border-top: 5px solid var(--primary-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.director-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.director-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.director-photo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    overflow: hidden;
    border: 4px solid rgba(30, 58, 138, 0.1);
    transition: var(--transition);
}

.director-preview-card:hover .director-photo {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 700;
}

.director-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.director-quote {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    padding: 0 20px;
}

.director-quote::before,
.director-quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary-color);
    position: absolute;
    font-family: Georgia, serif;
}

.director-quote::before {
    left: 0;
    top: -10px;
}

.director-quote::after {
    right: 0;
    bottom: -20px;
}

.governance-departments h4 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dept-preview-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius-small);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.dept-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-color: var(--secondary-color);
}

.dept-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.dept-preview-card h5 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.dept-preview-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===============================
   SECTION PARTENAIRES
   =============================== */
.partners-preview {
    display: grid;
    gap: 50px;
}

.partners-main {
    animation: fadeInUp 0.8s ease-out;
}

.partners-types {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.partners-main h4 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.4rem;
    font-weight: 600;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.partner-logo {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--border-radius-small);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.partner-logo:hover::before {
    left: 100%;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: var(--secondary-color);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

.partner-placeholder {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
    padding: 10px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 8px;
    width: 100%;
}

.partners-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.partner-type-card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    position: relative;
}

.partner-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.partner-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.partner-type-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.partner-type-card h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.partner-type-card p {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===============================
   SECTION CONTACT
   =============================== */
.contact-preview {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: grid;
    gap: 25px;
    animation: fadeInLeft 0.8s ease-out;
}

.contact-cta {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.contact-details h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details p {
    opacity: 0.9;
    line-height: 1.5;
}

.contact-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 40px 30px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-cta h4 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.contact-cta p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.contact-buttons .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

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

.contact-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===============================
   ADMIN EDIT LINK
   =============================== */
.admin-edit-link {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.admin-edit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.admin-edit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.4);
    color: white;
    text-decoration: none;
}

/* ===============================
   ANIMATIONS
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Animation au survol pour certains éléments */
.portfolio-preview-card:hover,
.dept-preview-card:hover,
.partner-type-card:hover {
    animation: pulse 2s infinite;
}

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

/* Tablettes */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .governance-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .partners-logos {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .home-portfolio,
    .home-governance,
    .home-partners,
    .home-contact {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partners-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .admin-edit-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .director-preview-card {
        padding: 30px 20px;
    }
    
    .partners-logos {
        grid-template-columns: 1fr;
    }
    
    .partners-types {
        grid-template-columns: 1fr;
    }
    
    .partner-type-card {
        padding: 25px 20px;
    }
    
    .contact-cta {
        padding: 30px 20px;
    }
    
    .governance-preview,
    .contact-preview {
        gap: 30px;
    }
}

/* ===============================
   ACCESSIBILITÉ
   =============================== */

/* Focus pour navigation clavier */
.btn-primary:focus,
.btn-secondary:focus,
.admin-edit-btn:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Réduction des animations pour ceux qui préfèrent */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Contraste élevé */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #006400;
        --text-light: #333;
    }
}

/* ===============================
   PRINT STYLES
   =============================== */
@media print {
    .admin-edit-link,
    .contact-buttons {
        display: none;
    }
    
    .home-contact {
        background: white !important;
        color: black !important;
    }
    
    .portfolio-preview-card,
    .dept-preview-card,
    .partner-type-card {
        break-inside: avoid;
    }
}

/* 
 * CORRECTIONS ET AJOUTS POUR STYLE.CSS
 * À ajouter à la fin de votre fichier style.css existant
 */

/* ===============================
   CORRECTIONS POUR L'ESPACEMENT GLOBAL
   =============================== */

/* Reset global amélioré */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Correction pour la page d'accueil */
.home .hero-carousel {
    margin-top: 0 !important;
    padding-top: 0 !important;
    height: 100vh;
    position: relative;
    top: 0;
}

.home .hero-carousel .slide-content {
    height: 100vh !important;
    padding-top: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home .hero-carousel .slide-overlay {
    top: 0 !important;
    height: 100% !important;
}

/* Header transparent sur la page d'accueil */
.home .header {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.home .header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.home .header .site-title,
.home .header .nav-menu a {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.home .header.scrolled .site-title,
.home .header.scrolled .nav-menu a {
    color: #1e3a8a !important;
    text-shadow: none !important;
}

.home .header .site-tagline {
    color: rgba(255, 255, 255, 0.9) !important;
}

.home .header.scrolled .site-tagline {
    color: #64748b !important;
}

/* Logo adaptatif */
.home .header .logo-default {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.home .header.scrolled .logo-default {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    border: none !important;
}

/* Menu hamburger */
.home .header .hamburger-line {
    background: white !important;
}

.home .header.scrolled .hamburger-line {
    background: #1e3a8a !important;
}

/* Autres pages - Header normal */
body:not(.home) .header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
}

body:not(.home) .header.scrolled {
    background: rgba(255, 255, 255, 0.99) !important;
}

/* Correction pour les autres pages */
body:not(.home) .page-hero {
    margin-top: 0 !important;
    padding-top: 160px !important;
    min-height: 400px;
}

body:not(.home) .article-hero {
    margin-top: 0 !important;
    padding-top: 200px !important;
}

/* ===============================
   CORRECTIONS POUR LES MENUS DÉROULANTS
   =============================== */

/* Menu déroulant - Corrections complètes */
.main-nav ul,
.header-nav ul,
nav ul {
    position: relative;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li,
.header-nav li,
nav li {
    position: relative;
    display: inline-block;
}

.main-nav a,
.header-nav a,
nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Sous-menus */
.main-nav ul ul,
.header-nav ul ul,
nav ul ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    min-width: 220px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    border: 1px solid #e2e8f0 !important;
}

.main-nav li:hover > ul,
.header-nav li:hover > ul,
nav li:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.main-nav ul ul li,
.header-nav ul ul li,
nav ul ul li {
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: block !important;
}

.main-nav ul ul li:last-child,
.header-nav ul ul li:last-child,
nav ul ul li:last-child {
    border-bottom: none !important;
}

.main-nav ul ul a,
.header-nav ul ul a,
nav ul ul a {
    padding: 12px 20px !important;
    color: #64748b !important;
    font-size: 0.95rem !important;
    border-radius: 0 !important;
    white-space: nowrap !important;
}

.main-nav ul ul a:hover,
.header-nav ul ul a:hover,
nav ul ul a:hover {
    background: #f8fafc !important;
    color: #1e3a8a !important;
    padding-left: 25px !important;
}

/* Indicateur de sous-menu */
.main-nav li.menu-item-has-children > a::after,
.header-nav li.menu-item-has-children > a::after,
nav li.menu-item-has-children > a::after {
    content: '▼' !important;
    font-size: 0.7rem !important;
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}

.main-nav li.menu-item-has-children:hover > a::after,
.header-nav li.menu-item-has-children:hover > a::after,
nav li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg) !important;
}

/* ===============================
   SMOOTH SCROLLING ET ANCRES
   =============================== */

html {
    scroll-behavior: smooth;
}

/* Offset pour les ancres avec header fixe */
.home [id] {
    scroll-margin-top: 60px;
}

body:not(.home) [id] {
    scroll-margin-top: 100px;
}

/* ===============================
   VARIABLES CSS POUR LA COHÉRENCE
   =============================== */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #10b981;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-radius: 20px;
    --border-radius-small: 15px;
    --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-medium: 0 15px 35px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===============================
   STYLES POUR LES NOUVELLES SECTIONS
   =============================== */

/* Sections principales */
.home-portfolio,
.home-governance,
.home-partners,
.home-contact {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Alternance des backgrounds */
.home-portfolio {
    background: var(--bg-light);
}

.home-governance {
    background: var(--bg-white);
}

.home-partners {
    background: var(--bg-light);
}

.home-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

/* Container principal */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headers de section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.home-contact .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.home-contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Boutons CTA */
.section-cta {
    text-align: center;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-arrow {
    margin-left: 8px;
    transition: transform 0.3s;
}

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

/* Amélioration des cards de service existantes */
.service-card {
    border-top: 4px solid #10b981;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-stats {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    display: inline-block;
}

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

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

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

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

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

@media (max-width: 768px) {
    /* Header mobile */
    .home .hero-carousel .slide-content {
        padding-top: 70px !important;
    }
    
    body:not(.home) .page-hero {
        padding-top: 140px !important;
        min-height: 300px;
    }
    
    body:not(.home) .article-hero {
        padding-top: 170px !important;
    }
    
    /* Sections */
    .home-portfolio,
    .home-governance,
    .home-partners,
    .home-contact {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Menu mobile - Sous-menus en affichage normal */
    .main-nav ul ul,
    .header-nav ul ul,
    nav ul ul {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border: none !important;
        border-radius: 0 !important;
        margin-left: 20px !important;
        margin-top: 5px !important;
        display: none !important;
    }
    
    .main-nav li.menu-item-has-children.mobile-open > ul,
    .header-nav li.menu-item-has-children.mobile-open > ul,
    nav li.menu-item-has-children.mobile-open > ul {
        display: block !important;
    }
    
    .main-nav ul ul a,
    .header-nav ul ul a,
    nav ul ul a {
        padding: 10px 15px !important;
        border-left: 3px solid #1e3a8a !important;
    }
}

@media (max-width: 480px) {
    .home .hero-carousel .slide-content {
        padding-top: 60px !important;
    }
    
    body:not(.home) .page-hero {
        padding-top: 120px !important;
        min-height: 250px;
    }
    
    body:not(.home) .article-hero {
        padding-top: 150px !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* ===============================
   ACCESSIBILITÉ
   =============================== */

/* Focus pour navigation clavier */
.btn-primary:focus,
.btn-secondary:focus,
a:focus,
button:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Réduction des animations pour ceux qui préfèrent */
@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;
    }
}

/* Contraste élevé */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #006400;
        --text-light: #333;
    }
}

/* ===============================
   OPTIMISATIONS DE PERFORMANCE
   =============================== */

/* Will-change pour les éléments animés */
.hero-carousel,
.portfolio-preview-card,
.dept-preview-card,
.partner-type-card {
    will-change: transform;
}

/* GPU acceleration pour les transformations */
.btn-primary,
.btn-secondary,
.service-card {
    transform: translateZ(0);
}

/* ===============================
   PRINT STYLES
   =============================== */

@media print {
    .admin-edit-link,
    .contact-buttons,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .home-contact {
        background: white !important;
        color: black !important;
    }
    
    .section-title {
        color: black !important;
    }
    
    .portfolio-preview-card,
    .dept-preview-card,
    .partner-type-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ===============================
   STYLES AGRANDIS POUR LES CARTES DE STATISTIQUES
   Ajoutez ce CSS dans votre style.css ou dans front-page.php
   =============================== */

.stats {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NOUVEAU : Cartes plus grandes */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Augmenté de 250px à 280px */
    gap: 40px; /* Augmenté de 30px à 40px */
    max-width: 1300px; /* Augmenté de 1200px à 1300px */
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    background: white;
    padding: 50px 40px; /* Augmenté de 40px 30px à 50px 40px */
    border-radius: 25px; /* Augmenté de 20px à 25px */
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* Ombre plus prononcée */
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-8px); /* Augmenté de -5px à -8px */
    box-shadow: 0 25px 60px rgba(0,0,0,0.15); /* Ombre plus forte */
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-icon {
    font-size: 4.5rem; /* Augmenté de 3.5rem à 4.5rem */
    margin-bottom: 25px; /* Augmenté de 20px à 25px */
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

.stat-number {
    font-size: 3.5rem; /* Augmenté de 3rem à 3.5rem */
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 15px; /* Augmenté de 10px à 15px */
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: #10b981;
    transform: scale(1.05);
}

.stat-label {
    font-size: 1.2rem; /* Augmenté de 1rem à 1.2rem */
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #1e3a8a;
}

/* Variante avec arrière-plans colorés (optionnel) */
.stat-item:nth-child(1) .stat-icon {
    color: #3b82f6;
}

.stat-item:nth-child(2) .stat-icon {
    color: #10b981;
}

.stat-item:nth-child(3) .stat-icon {
    color: #f59e0b;
}

.stat-item:nth-child(4) .stat-icon {
    color: #ef4444;
}

/* Animation d'entrée */
@keyframes statFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: statFadeIn 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive pour les cartes agrandies */
@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
        gap: 25px;
        padding: 0 15px;
    }
    
    .stat-item {
        padding: 40px 30px;
    }
    
    .stat-icon {
        font-size: 3.5rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        gap: 20px;
    }
    
    .stat-item {
        padding: 35px 25px;
    }
    
    .stat-icon {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Effet de brillance au hover (bonus) */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.stat-item:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

/* ===============================
   CORRECTION SECTION CONTACT - PROBLÈME DE DÉBORDEMENT
   À ajouter dans style.css ou dans les styles de front-page.php
   =============================== */

/* ===============================
   SECTION CONTACT - VERSION CORRIGÉE
   =============================== */

.home-contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Container principal avec contraintes */
.home-contact .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header de section - Correction */
.home-contact .section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.home-contact .section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    word-wrap: break-word; /* Forcer le retour à la ligne si nécessaire */
    max-width: 100%;
}

.home-contact .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
    border-radius: 2px;
}

.home-contact .section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    word-wrap: break-word; /* Important pour éviter le débordement */
    text-align: center;
}

/* ===============================
   CORRECTION LAYOUT CONTACT PREVIEW
   =============================== */

.contact-preview {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start; /* Changé de 'center' à 'start' */
    margin-top: 40px;
}

/* Section informations de contact - Correction */
.contact-info {
    display: grid;
    gap: 25px;
    animation: fadeInLeft 0.8s ease-out;
    width: 100%; /* S'assurer que ça prend toute la largeur disponible */
    overflow: hidden; /* Éviter tout débordement */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%; /* Largeur complète */
    box-sizing: border-box; /* Inclure padding et border */
    overflow: hidden; /* Éviter le débordement */
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0; /* Important : empêche l'icône de rétrécir */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 55px; /* Largeur minimale garantie */
}

.contact-details {
    flex: 1; /* Prendre l'espace restant */
    min-width: 0; /* Permettre au contenu de rétrécir si nécessaire */
    overflow: hidden; /* Éviter le débordement */
}

.contact-details h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    word-wrap: break-word; /* Retour à la ligne automatique */
    overflow-wrap: break-word; /* Support supplémentaire */
}

.contact-details p {
    opacity: 0.9;
    line-height: 1.5;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word; /* Retour à la ligne automatique */
    overflow-wrap: break-word; /* Support supplémentaire */
    margin: 0; /* Supprimer les marges par défaut */
}

/* Section CTA - Correction */
.contact-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 40px 30px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInRight 0.8s ease-out 0.2s both;
    height: fit-content; /* Ajuster la hauteur au contenu */
    width: 100%; /* Largeur complète */
    box-sizing: border-box; /* Inclure padding et border */
}

.contact-cta h4 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    word-wrap: break-word;
}

.contact-cta p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
    line-height: 1.5;
}

/* Boutons CTA - Correction */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-buttons .btn-primary,
.contact-buttons .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap; /* Éviter le retour à la ligne du texte des boutons */
    overflow: hidden;
    text-overflow: ellipsis; /* Points de suspension si le texte est trop long */
}

.contact-buttons .btn-primary {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.contact-buttons .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

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

.contact-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===============================
   RESPONSIVE DESIGN - CORRECTIONS
   =============================== */

/* Tablettes */
@media (max-width: 968px) {
    .contact-preview {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-info {
        order: 2; /* Afficher les infos après le CTA sur mobile */
    }
    
    .contact-cta {
        order: 1;
        margin-bottom: 20px;
    }
    
    .home-contact .section-title {
        font-size: 2.2rem;
    }
    
    .home-contact .section-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .home-contact {
        padding: 60px 0;
    }
    
    .home-contact .main-content {
        padding: 0 15px;
    }
    
    .contact-preview {
        gap: 30px;
    }
    
    .contact-item {
        padding: 20px;
        gap: 15px;
        flex-direction: row; /* Garder la disposition horizontale */
        align-items: center;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        min-width: 45px;
    }
    
    .contact-details h5 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .contact-cta {
        padding: 30px 20px;
    }
    
    .contact-cta h4 {
        font-size: 1.4rem;
    }
    
    .contact-cta p {
        font-size: 1rem;
    }
    
    .home-contact .section-title {
        font-size: 1.8rem;
    }
    
    .home-contact .section-subtitle {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .contact-buttons .btn-primary,
    .contact-buttons .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .home-contact {
        padding: 50px 0;
    }
    
    .contact-item {
        padding: 15px;
        gap: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        min-width: 40px;
    }
    
    .contact-details h5 {
        font-size: 0.9rem;
    }
    
    .contact-details p {
        font-size: 0.8rem;
    }
    
    .contact-cta {
        padding: 25px 15px;
    }
    
    .contact-cta h4 {
        font-size: 1.2rem;
    }
    
    .contact-cta p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .home-contact .section-title {
        font-size: 1.6rem;
    }
    
    .home-contact .section-subtitle {
        font-size: 0.9rem;
    }
}

/* ===============================
   DEBUG - STYLES TEMPORAIRES
   Décommenter pour diagnostiquer les problèmes de layout
   =============================== */

/*
.home-contact {
    border: 2px solid red !important;
}

.home-contact .main-content {
    border: 2px solid blue !important;
}

.contact-preview {
    border: 2px solid green !important;
}

.contact-info {
    border: 2px solid orange !important;
}

.contact-item {
    border: 2px solid yellow !important;
}

.contact-details {
    border: 2px solid purple !important;
}

.contact-cta {
    border: 2px solid pink !important;
}
*/

/* ===============================
   AMÉLIORATIONS SUPPLÉMENTAIRES
   =============================== */

/* Animation d'apparition des éléments de contact */
@keyframes fadeInContactItem {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-item {
    animation: fadeInContactItem 0.6s ease-out;
    animation-fill-mode: both;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

/* Effet de glassmorphism amélioré */
.contact-item,
.contact-cta {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Support Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Amélioration des contrastes pour l'accessibilité */
.contact-details h5 {
    color: rgba(255, 255, 255, 0.95);
}

.contact-details p {
    color: rgba(255, 255, 255, 0.85);
}

/* ===============================
   INSTRUCTIONS D'INSTALLATION
   =============================== */

/*
COMMENT APPLIQUER CES CORRECTIONS :

1. Copiez tout ce CSS dans votre fichier style.css à la fin

2. Ou ajoutez-le dans la balise <style> de front-page.php

3. Si le problème persiste, activez temporairement les styles de debug
   en décommentant la section DEBUG ci-dessus

4. Vérifiez que votre HTML dans front-page.php utilise bien :
   - La classe .home-contact pour la section
   - La classe .main-content pour le conteneur principal
   - La classe .contact-preview pour la grille
   - Les classes .contact-info et .contact-cta

5. Si vous avez des styles CSS conflictuels, ajoutez !important
   aux propriétés les plus importantes

PROBLÈMES COURANTS RÉSOLUS :
✅ Texte qui déborde des cadres
✅ Mauvais alignement des éléments
✅ Problèmes de responsive design
✅ Icônes qui se déforment
✅ Contenu qui ne s'affiche pas correctement
✅ Problèmes d'espacement

*/

/* ===============================
   CORRECTION DIRECTE - SECTION CONTACT
   Ajoutez ce CSS à la fin de votre style.css ou dans front-page.php
   =============================== */

/* Force la correction du conteneur de la section Contact */
.home-contact {
    padding: 80px 0 !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Conteneur principal avec contraintes strictes */
.home-contact .main-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

/* Header de section - Correction forcée */
.home-contact .section-header {
    text-align: center !important;
    margin-bottom: 60px !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* Titre avec contraintes strictes */
.home-contact .section-title {
    font-size: 2.5rem !important;
    color: white !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    text-align: center !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

/* Sous-titre avec contraintes strictes */
.home-contact .section-subtitle {
    font-size: 1.2rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    text-align: center !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Contact preview avec contraintes */
.home-contact .contact-preview {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 60px !important;
    align-items: start !important;
    margin-top: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Contact info avec contraintes */
.home-contact .contact-info {
    display: grid !important;
    gap: 25px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Contact item avec contraintes strictes */
.home-contact .contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Icône avec taille fixe */
.home-contact .contact-icon {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6rem !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

/* Details avec contraintes de texte */
.home-contact .contact-details {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    max-width: calc(100% - 75px) !important;
}

/* Titre des détails */
.home-contact .contact-details h5 {
    margin-bottom: 5px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: white !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.3 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
}

/* Paragraphe des détails */
.home-contact .contact-details p {
    opacity: 0.9 !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
}

/* CTA avec contraintes */
.home-contact .contact-cta {
    text-align: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 40px 30px !important;
    border-radius: 25px !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.home-contact .contact-cta h4 {
    margin-bottom: 15px !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: white !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.3 !important;
}

.home-contact .contact-cta p {
    margin-bottom: 30px !important;
    opacity: 0.9 !important;
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.5 !important;
}

/* Boutons avec contraintes */
.home-contact .contact-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
}

.home-contact .contact-buttons .btn-primary,
.home-contact .contact-buttons .btn-secondary {
    display: inline-block !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.home-contact .contact-buttons .btn-primary {
    background: white !important;
    color: #1e3a8a !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2) !important;
}

.home-contact .contact-buttons .btn-secondary {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
}

/* ===============================
   RESPONSIVE CORRECTIONS FORCÉES
   =============================== */

/* Tablettes */
@media (max-width: 968px) {
    .home-contact .contact-preview {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .home-contact .section-title {
        font-size: 2.2rem !important;
        padding: 0 15px !important;
    }
    
    .home-contact .section-subtitle {
        font-size: 1.1rem !important;
        max-width: 90% !important;
        padding: 0 15px !important;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .home-contact {
        padding: 60px 0 !important;
    }
    
    .home-contact .main-content {
        padding: 0 15px !important;
    }
    
    .home-contact .contact-preview {
        gap: 30px !important;
    }
    
    .home-contact .contact-item {
        padding: 20px !important;
        gap: 15px !important;
    }
    
    .home-contact .contact-icon {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        font-size: 1.4rem !important;
    }
    
    .home-contact .contact-details {
        max-width: calc(100% - 60px) !important;
    }
    
    .home-contact .contact-details h5 {
        font-size: 1rem !important;
    }
    
    .home-contact .contact-details p {
        font-size: 0.9rem !important;
    }
    
    .home-contact .contact-cta {
        padding: 30px 20px !important;
    }
    
    .home-contact .contact-cta h4 {
        font-size: 1.4rem !important;
    }
    
    .home-contact .contact-cta p {
        font-size: 1rem !important;
    }
    
    .home-contact .section-title {
        font-size: 1.8rem !important;
        padding: 0 10px !important;
    }
    
    .home-contact .section-subtitle {
        font-size: 1rem !important;
        padding: 0 10px !important;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .home-contact {
        padding: 50px 0 !important;
    }
    
    .home-contact .main-content {
        padding: 0 10px !important;
    }
    
    .home-contact .contact-item {
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .home-contact .contact-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .home-contact .contact-details {
        max-width: calc(100% - 52px) !important;
    }
    
    .home-contact .contact-details h5 {
        font-size: 0.9rem !important;
    }
    
    .home-contact .contact-details p {
        font-size: 0.8rem !important;
    }
    
    .home-contact .contact-cta {
        padding: 25px 15px !important;
    }
    
    .home-contact .contact-cta h4 {
        font-size: 1.2rem !important;
    }
    
    .home-contact .contact-cta p {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
    
    .home-contact .section-title {
        font-size: 1.6rem !important;
        padding: 0 5px !important;
    }
    
    .home-contact .section-subtitle {
        font-size: 0.9rem !important;
        padding: 0 5px !important;
    }
    
    .home-contact .contact-buttons .btn-primary,
    .home-contact .contact-buttons .btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ===============================
   CORRECTION DOUCE POUR PAGE CONTACT
   Ajoutez ce CSS à votre style.css
   =============================== */

/* 1. SOLUTION PRINCIPALE - Correction des cartes de contact */
.contact-item {
    /* Assurer que la carte a des limites claires */
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    
    /* Espacement plus généreux pour éviter le débordement */
    padding: 35px 25px !important;
}

.contact-item h3 {
    /* Titre avec retour à la ligne naturel */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    
    /* Pas de coupure forcée des mots */
    word-break: normal !important;
    hyphens: auto !important;
    
    /* Espacement */
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

.contact-item p {
    /* Retour à la ligne naturel SANS casser les mots */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    
    /* PAS de word-break: break-word qui casse tout */
    word-break: normal !important;
    
    /* Césure automatique pour les mots très longs uniquement */
    hyphens: auto !important;
    
    /* Largeur et espacement */
    max-width: 100% !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    
    /* Alignement centré comme prévu */
    text-align: center !important;
}

/* 2. CORRECTION SPÉCIFIQUE POUR LA GRILLE */
.contact-grid {
    /* S'assurer que la grille responsive fonctionne bien */
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    max-width: 100% !important;
}

/* 3. CORRECTION POUR LES ÉCRANS PLUS PETITS */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .contact-item {
        padding: 30px 20px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .contact-item p {
        font-size: 0.95rem !important;
    }
}

/* 4. SOLUTION POUR CONTENU TRÈS LONG (comme de longues adresses email) */
.contact-item p {
    /* Coupure uniquement pour les URLs et emails très longs */
    word-break: break-word !important;
    /* Mais on l'applique seulement aux contenus qui contiennent @ ou : */
}

/* Spécifique pour les emails et URLs */
.contact-item p:has([href*="@"]),
.contact-item p:has([href*="http"]) {
    word-break: break-all !important;
}

/* 5. ALTERNATIVE - Si le problème persiste, augmentez la largeur minimale */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    }
}

/* 6. SOLUTION DE SECOURS - Largeur fixe si vraiment nécessaire */

@media (min-width: 768px) {
    .contact-item {
        min-width: 300px !important;
        max-width: 350px !important;
    }
}


/* ===============================
   ALTERNATIVE - LAYOUT DIFFÉRENT
   Décommentez si vous voulez essayer un layout différent
   =============================== */

/*
.contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-height: 200px !important;
}

.contact-icon {
    margin-bottom: 20px !important;
}

.contact-item h3 {
    margin-bottom: 10px !important;
}

.contact-item p {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
*/

/* ===============================
   INSTRUCTIONS
   =============================== */

/*
ÉTAPES :

1. Rafraîchissez la page (F5) pour annuler l'effet du JavaScript

2. Ajoutez ce CSS à votre fichier style.css

3. Si le problème persiste, décommentez la section "SOLUTION DE SECOURS"

4. Si vous voulez essayer un layout complètement différent, 
   décommentez la section "ALTERNATIVE - LAYOUT DIFFÉRENT"

5. Dites-moi quel est le contenu exact qui pose problème 
   (par exemple: une très longue adresse email)

Cette solution respecte le design original tout en forçant 
les retours à la ligne de façon naturelle.
*/

/* ===============================
   SOLUTION PRÉCISE POUR LE DÉBORDEMENT DES CARTES CONTACT
   Basée sur la capture d'écran fournie
   =============================== */

/* PROBLÈME IDENTIFIÉ: Les cartes sont trop étroites pour le contenu */

/* SOLUTION 1: Élargir les cartes pour contenir tout le texte */
.contact-item {
    /* Largeur minimale plus grande */
    min-width: 280px !important;
    width: auto !important;
    max-width: 350px !important;
    
    /* Assurer que le contenu reste dans la carte */
    overflow: hidden !important;
    padding: 40px 30px !important;
    box-sizing: border-box !important;
    
    /* Centrage et espacement */
    margin: 0 auto !important;
    position: relative !important;
}

/* SOLUTION 2: Ajuster la grille pour accommoder des cartes plus larges */
.contact-grid {
    /* Grille responsive avec cartes plus larges */
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    justify-items: center !important;
    
    /* Conteneur principal */
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* SOLUTION 3: Ajuster spécifiquement les textes problématiques */
.contact-item h3 {
    /* Titre avec espacement adéquat */
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
    padding: 0 10px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.contact-item p {
    /* Paragraphes avec contraintes appropriées */
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0 10px !important;
    margin: 0 !important;
    
    /* Gestion du débordement */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    
    /* Assurer que le texte reste visible */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* SOLUTION 4: Icônes avec taille optimisée */
.contact-icon {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 20px auto !important;
    flex-shrink: 0 !important;
    font-size: 1.8rem !important;
}

/* SOLUTION 5: Responsive adaptatif */
@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 25px !important;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .contact-item {
        min-width: 250px !important;
        max-width: 300px !important;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .contact-item {
        min-width: 280px !important;
        max-width: 400px !important;
        width: 90% !important;
    }
}

@media (max-width: 480px) {
    .contact-item {
        min-width: 260px !important;
        max-width: 320px !important;
        padding: 30px 20px !important;
    }
    
    .contact-item h3 {
        font-size: 1.1rem !important;
    }
    
    .contact-item p {
        font-size: 0.9rem !important;
    }
}

/* SOLUTION 6: Alternative - Si vous préférez des cartes plus compactes */
/* Décommentez cette section pour des cartes plus petites avec police réduite */
/*
.contact-item {
    min-width: 240px !important;
    max-width: 280px !important;
    padding: 35px 20px !important;
}

.contact-item h3 {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
}

.contact-item p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.contact-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.6rem !important;
}
*/

/* SOLUTION 7: Debug - Bordures temporaires pour vérifier */
/* Décommentez pour voir les limites des cartes */
/*
.contact-item {
    border: 2px solid red !important;
}
.contact-item h3 {
    border: 1px solid blue !important;
}
.contact-item p {
    border: 1px solid green !important;
}
*/

/* ===============================
   SOLUTION SPÉCIFIQUE AU CONTENU VISIBLE
   =============================== */

/* Pour les adresses longues comme "B.P. 56, Batouri, Région de l'Est, Cameroun" */
.contact-item:first-child p {
    /* Carte Adresse - texte plus petit si nécessaire */
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* Pour les numéros de téléphone multiples */
.contact-item:nth-child(2) p {
    /* Carte Téléphone - espacement optimisé */
    line-height: 1.3 !important;
}

/* Pour les emails multiples */
.contact-item:nth-child(3) p {
    /* Carte Email - coupure pour longs emails si nécessaire */
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Pour les horaires détaillés */
.contact-item:nth-child(4) p {
    /* Carte Horaires - format compact */
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* ===============================
   INSTRUCTIONS
   =============================== */

/*
SOLUTION BASÉE SUR VOTRE CAPTURE D'ÉCRAN :

1. ✅ Élargit les cartes pour contenir le contenu
2. ✅ Ajuste la grille pour accommoder des cartes plus larges  
3. ✅ Optimise la typographie pour chaque type de contenu
4. ✅ Responsive design adaptatif
5. ✅ Préserve le design original

ÉTAPES :
1. Ajoutez ce CSS à votre style.css
2. Testez sur différentes largeurs d'écran
3. Si vous voulez des cartes plus compactes, décommentez la SOLUTION 6
4. Si vous voulez voir les bordures pour debug, décommentez la SOLUTION 7

Cette solution devrait résoudre complètement le problème visible 
sur votre capture d'écran.
*/