/* Section Hero */
#hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: left;
  z-index: 1;
}
/* Slideshow container */
#hero .slides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1; /* Derrière le contenu */
}
/* Chaque image de fond */
#hero .slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1); /* éviter les bords après flou */
  opacity: 0;
  animation: fadeSlideshow 36s infinite;
}
li strong {
    color: var(--primary-color);
}
#hero .slide:nth-child(1) { animation-delay: 0s; }
#hero .slide:nth-child(2) { animation-delay: 6s; }
#hero .slide:nth-child(3) { animation-delay: 12s; }

    /* Variables CSS héritées de la page principale */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --dark-bg: #212529;
    --darker-bg: #1a1d20;
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    --accent-color: #e74c3c;
    --gold-color: #f39c12;
    --text-color: #2c3e50;
    --bg-light: #ecf0f1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
}

/* Styles généraux */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.section-bg {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}
/* Section Concept */
.concept-section {
    padding: 80px 0;
}

.concept-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
    height: 100%;
    border-left: 5px solid var(--primary-color);
}

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

.concept-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.concept-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Section Variantes */
.variants-section {
    padding: 80px 0;
    background: var(--section-bg);
}

.variant-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
    height: 100%;
}

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

.canada-card {
    border-left: 5px solid var(--accent-color);
}

.afrique-card {
    border-left: 5px solid var(--success-color);
}

.chretien-card {
    border-left: 5px solid var(--gold-color);
}

.variant-header {
    text-align: center;
    margin-bottom: 30px;
}

.variant-flag {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.variant-header h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Section Impact */
.impact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: white;
}

.impact-section .section-title h2 {
    color: white;
}

.impact-section .section-title p {
    color: var(--white-70);
}

.impact-stat {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 30px;
    transition: var(--transition-medium);
}

.impact-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.stat-label {
    font-size: 1.1rem;
    color: var(--white-70);
}

/* Section Processus */
.process-section {
    padding: 80px 0;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin: 0 30px;
    transition: var(--transition-fast);
}

.timeline-marker:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Animations */
@keyframes pulse-bullet {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce-bullet {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.advantages-list {
    list-style: none;
    padding: 0;
}

.advantages-list li {
    position: relative;
    padding: 14px 0 14px 45px;
    margin: 12px 0;
    font-size: 16px;
    color: var(--text-color);
    background: linear-gradient(90deg, transparent 0%, var(--bg-light) 100%);
    border-radius: 8px;
    transition: all 0.4s ease;
}

.advantages-list li:hover {
    background: linear-gradient(90deg, var(--bg-light) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateX(15px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.advantages-list li::before {
    content: "★";
    position: absolute;
    left: 15px;
    top: 14px;
    color: var(--gold-color);
    font-size: 20px;
    animation: pulse-bullet 2.5s infinite;
}

.advantages-list li:hover::before {
    animation: bounce-bullet 1s ease infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
    }
    
    .timeline-marker {
        margin: 20px 0;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .variant-card {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .variant-card {
        padding: 25px;
    }
    
    .impact-stat {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
}
.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 15px;
}
.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px auto;
}
.section-padding {
    padding: 80px 0;
    overflow-x: hidden; /* Important pour éviter les barres de défilement horizontales causées par les animations */
}
.bg-light-blue {
    background-color: #f8f9fa;
}
.feature-section .feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.feature-section .feature-content {
    padding: 20px;
}
.feature-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0056b3;
    margin-bottom: 20px;
}
.feature-section p {
    line-height: 1.8;
}
.feature-section ul {
    list-style: none;
    padding-left: 0;
}
.feature-section ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}
.feature-section ul li:before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 4px;
}
.impact-stat {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.impact-stat:hover {
    transform: translateY(-10px);
}
.impact-stat .stat-icon i {
    font-size: 40px;
    color: #0056b3;
}
.impact-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin: 10px 0;
}
.impact-stat .stat-label {
    font-size: 1rem;
    color: #666;
}



@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}
    
/* Style général des liens */
.navbar-nav .nav-link {
  color: #000; /* texte par défaut */
  transition: color 0.3s, background-color 0.3s;
}

/* Style au survol */
.navbar-nav .nav-link:hover {
  color: #007bff; /* bleu Bootstrap */
  text-decoration: underline;
}

/* Style du lien actif */
.navbar-nav .nav-link.active {
  color: #007bff;          /* bleu pour le lien actif */
  font-weight: 600;        /* texte légèrement plus gras */
  border-bottom: 3px solid #007bff; /* soulignement */
  border-radius: 2px;
}
/* ======= Section Hero pour "Épelle-Moi" avec Slideshow ======= */

.hero-section {
    position: relative; /* Indispensable pour positionner les slides en arrière-plan */
    color: #ffffff;
    padding: 100px 0;
    min-height: 80vh; /* Hauteur minimale pour un bon impact visuel */
    display: flex;
    align-items: center;
    overflow: hidden; /* Cache les parties des slides qui dépassent */
}

/* Conteneur pour les slides en arrière-plan */
.hero-section .slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Placé derrière le contenu */
}

/* Style de chaque slide individuelle */
.hero-section .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* L'image couvre toute la zone */
    background-position: center;
    opacity: 0; /* Toutes les slides sont invisibles au départ */
    transition: opacity 1.5s ease-in-out; /* Transition douce pour l'opacité */
    animation: kenBurnsEffect 25s infinite; /* Animation de zoom lent */
}

/* Animation pour le diaporama */
.hero-section .slide:nth-child(1) { animation-delay: 0s; }
.hero-section .slide:nth-child(2) { animation-delay: 5s; }
.hero-section .slide:nth-child(3) { animation-delay: 10s; }
.hero-section .slide:nth-child(4) { animation-delay: 15s; }
.hero-section .slide:nth-child(5) { animation-delay: 20s; }

/* Animation de l'effet Ken Burns (zoom lent) et du fondu */
@keyframes kenBurnsEffect {
    0% {
        opacity: 0;
        transform: scale(1.1); /* Commence légèrement zoomé */
    }
    10% {
        opacity: 1; /* Apparition en fondu */
    }
    20% {
        opacity: 1; /* Reste visible */
    }
    30% {
        opacity: 0; /* Disparition en fondu */
        transform: scale(1); /* Dézoom léger pendant la durée */
    }
    100% {
        opacity: 0; /* Reste invisible jusqu'à la prochaine boucle */
    }
}

/* Superposition sombre pour la lisibilité du texte */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 40, 0.5); /* Filtre sombre, ajustez l'opacité si besoin */
    z-index: 2; /* Au-dessus des slides, mais en dessous du contenu */
}

/* S'assurer que le contenu est au-dessus de tout */
.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Style du contenu texte (titre) */
.hero-content .hero-title, .hero-content .display-4 {
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

/* Style du logo */
.hero-logo {
    max-width: 450px;
    width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4)); /* Ombre portée pour le logo */
    animation: logoFadeIn 2s ease-out; /* Animation d'apparition pour le logo */
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ======= Responsive Design ======= */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0;
        min-height: 60vh;
        text-align: center;
    }

    .hero-content {
        display: none; /* Cache le titre "Épelle-Moi" sur mobile comme demandé */
    }
    
    .hero-logo {
        max-width: 300px; /* Logo plus petit sur mobile */
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 50vh;
    }
}