:root {
    /* Vos coloris gardés */
    --primary-color: #2c3e50; 
    --accent-color: #3498db;
    
    /* Polices style MLK */
    --font-heading: 'Oswald', sans-serif; /* Pour les gros titres impactants */
    --font-body: 'Montserrat', sans-serif;    /* Pour le texte courant */
}

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

.citation-lincoln {
    background: linear-gradient(rgba(50, 50, 50, 0.65), rgba(50, 50, 50, 0.65)),
                url('nuit.png') center/cover no-repeat;
    overflow: hidden;
    height: 300px;
}

/* Auteur */
.lincoln-author {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

/* Citation */
.lincoln-quote {
    color: #fff;
    text-align: justify;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.7;

    opacity: 0;
    transform: scale(0.95);
    transition: all 1.4s ease;
}

/* Guillemets */
.quote-mark {
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 1.6s ease 0.6s;
}

/* Classe active déclenchée au scroll */
.citation-visible .lincoln-author {
    opacity: 1;
    transform: translateY(0);
}

.citation-visible .lincoln-quote {
    opacity: 1;
    transform: scale(1);
}

.citation-visible .quote-mark {
    opacity: 1;
}

.lincoln-quote.typing::after {
    content: "|";
    animation: blink 1s infinite;
    margin-left: 4px;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body) !important;
    color: var(--text-color);
    line-height: 1.6;
}

.form-group {
    font-family: var(--font-body) !important;
}

/* Police du texte saisi dans les inputs, textarea et select */
input,
textarea,
select {
    font-family: 'Montserrat', sans-serif;
}

/* Police du placeholder */
::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #888; /* optionnel */
}

.transport-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.circle {
  width: 15px;           /* Largeur du rond */
  height: 15px;          /* Hauteur identique pour un cercle parfait */
  background-color: #2c3e50; /* Ta couleur Midnight Blue */
  border-radius: 50%;     /* Rend l'élément circulaire */
  display: inline-block;  /* Permet de l'aligner facilement */
}

.circle_gray {
   width: 15px;           /* Largeur du rond */
  height: 15px;          /* Hauteur identique pour un cercle parfait */
  background-color:#757575; /* Ta couleur Midnight Blue */
  border-radius: 50%;     /* Rend l'élément circulaire */
  display: inline-block;  /* Permet de l'aligner facilement */   
}

/* Compatibilité navigateurs */
::-webkit-input-placeholder { font-family: 'Montserrat', sans-serif; }
:-ms-input-placeholder { font-family: 'Montserrat', sans-serif; }
::-ms-input-placeholder { font-family: 'Montserrat', sans-serif; }

/* Police des options du select */
select,
select option {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}


h1 {
    font-family: 'Oswald' !important;
}

h2, h3{
    font-family: 'Cormorant' !important;
}

i {
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic; /* Optionnel, car <i> est déjà en italique par défaut */
}

/* Fond qui bloque l'écran (doit être fixed pour être au-dessus de tout) */
.cookie-overlay {
    position: fixed;
    inset: 0; /* remplace top/left/width/height */
    background: transparent;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* Boîte de la Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: 80vh;

    display: flex;
    flex-direction: column;
    text-align: center;

    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 10000;

    pointer-events: auto;
}


/* Correction du défilement interne */
.cookie-popup .container {
    overflow-y: auto; 
    flex-grow: 1;
    margin: 15px 0;
    padding-right: 10px;
    text-align: center; /* Pour le texte de consentement */
}

/* Optionnel : masquer la barre de défilement pour un look plus propre sur Chrome/Safari */
.container::-webkit-scrollbar {
    width: 6px;
}

.container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

@media (max-width: 600px) {
  .cookie-popup {
    bottom: 10px;
    right: 10px;
    left: 10px; /* Prend toute la largeur sur mobile si besoin */
  }
}

.cookie-header h3 {
    margin: 10px 0;
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Ajustez selon vos besoins */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

.cookie-emoji { font-size: 40px; }

.cookie-popup p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-info {
    color: #3498db;
    font-size: 13px;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 25px;
}

/* Boutons */
.cookie-buttons {
    display: flex;
    flex-direction: row;
    align-self: center;
    gap: 10px;
}

.btn-accept {
    background: var(--accent-color); /* Bleu foncé comme votre footer */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
    width: 180px;
}

.btn-accept:hover {
    background: #1a252f;
}

.btn-decline {
    background: (var(--primary-color)4); /* Bleu foncé comme votre footer */
    color: black;
    border: 1px solid gray;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
    width: 180px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Le spinner est caché par défaut */
.hidden { display: none; }

#spinner {
    width: 20px;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

/* Animation de rotation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Style basique de la popup */
#custom-popup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.popup-hidden { display: none !important; }
.popup-content { background: white; padding: 20px; border-radius: 8px; text-align: center; }

/* --- Navigation --- */
.main-header {
    background-color: #ffffff !important; /* Force le blanc opaque */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Ajoute une ombre légère pour décoller du fond */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000; /* Augmenté pour passer au-dessus de tout */
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Style spécifique MLK pour les titres */
h1, h2, .nav-links a {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modifie cette partie dans .nav-links */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center; /* Tes liens sont centrés verticalement */
    height: 100%; /* Force le conteneur à prendre toute la hauteur */
}

/* Ajoute ce style pour tes éléments de liste (li) */
/* C'est important car c'est le parent (.dropdown) qui sert de référence */
.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Modifie le style des liens pour qu'ils soient plus faciles à survoler */
.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    /* On ajoute un padding vertical pour "connecter" le texte au menu déroulant */
    padding: 25px 0;
    display: inline-block;
}

/* Modifie ton menu déroulant */
.dropdown-menu {
    display: none;
    position: absolute;
    /* Au lieu de 100%, on peut fixer le top pour s'aligner pile avec la barre de 70px
       si le 100% tombe mal à cause du centrage flexbox */
    top: 70px; /* Hauteur exacte de ta barre .nav-container */
    left: -20px; /* Petit décalage pour centrer par rapport au texte si besoin */
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 15px 0; /* Un peu plus d'espace */
    list-style: none;
    border-radius: 0 0 4px 4px;
    border-top: 3px solid var(--accent-color); /* Une petite ligne bleue esthétique */
}

/* Petite flèche pour remonter visuellement vers le menu (Optionnel mais joli) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--accent-color);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* On cible spécifiquement le bouton dans la nav pour écraser les règles générales */
.nav-links .btn-nav {
    padding: 10px 20px; /* On remet de l'espace sur les côtés (20px) */
    height: auto;       /* On l'empêche de s'étirer sur toute la hauteur de la barre */
    align-self: center; /* On le force à rester bien centré verticalement */
    margin-left: 15px;  /* Un petit espace pour le décoller des autres liens */
    line-height: normal; /* Pour éviter les décalages de texte */
}

/* On s'assure que le texte reste blanc même au survol */
.nav-links .btn-nav:hover {
    color: var(--white);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.contact-form {
    flex: 1.5;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background-color: #000; /* Ou la couleur primaire de Cerev */
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background-color: #333;
}

.btn-nav {
    padding: 8px 20px;
    background-color: var(--accent-color);
    color: var(--white) !important;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: #2980b9;
}

.burger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('fondaccueil.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px; /* Compensate fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Assombrit l'image de fond */
}

.hero-content h1 {
    font-family: var(--font-heading), serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0 10px 0 0;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Sections Générales --- */
.section-padding {
    padding: 80px 0;
}

.citation, .description-text {
    color: #000;
}

.italique{
    justify-content: center;
    font-style: italic !important;
}

.bg-light {
    background-color: #f1f0f0;
}

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

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
}

.line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

/* --- Vision Cards --- */
.vision-grid {
    display: grid;
    /* La ligne magique : repeat(4, 1fr) signifie "4 colonnes de largeur égale" */
    grid-template-columns: repeat(5, 1fr);
    gap: 20px; /* Espace entre les cartes */
    width: 100%;
}

.mission-grid {
    display: grid;
    /* La ligne magique : repeat(4, 1fr) signifie "4 colonnes de largeur égale" */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Espace entre les cartes */
    width: 100%;
}

.card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Infos & Map --- */
.info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.schedule-box {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.schedule-box ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.schedule-box ul li:last-child {
    border: none;
}

/* --- Contact --- */
.contact-container {
    text-align: center;
}

.contact-list {
    margin: 30px 0;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

.socials a {
    gap: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s;
}
/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Page Don Spécifique --- */

/* Header plus petit pour les sous-pages */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.8)), url('fondaccueil.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px; /* Plus d'espace en haut à cause du menu fixe */
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Layout 2 colonnes : Texte vs Donorbox */
.donation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.donation-info h2 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.method-box {
    background: var(--white);
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.method-box h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rib-details {
    background: var(--bg-light);
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Style du conteneur Donorbox pour qu'il soit joli */
.donation-widget-container {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 5px solid var(--accent-color);
}

/* --- Page Cultes YouTube Spécifique --- */

/* Image d'en-tête différente pour la page vidéo */
.video-header {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.6)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

.video-header, .page-header {
    padding-top: 140px; /* Augmenté (70px header + 70px espace) */
    margin-top: 0;
}

/* Bouton YouTube spécifique */
.btn-youtube {
    background-color: #FF0000; /* Rouge YouTube officiel */
    color: var(--white);
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-youtube:hover {
    background-color: #cc0000;
    color: var(--white);
}

/* --- Technique pour rendre les iframes YouTube Responsives (Crucial) --- */
/* On crée une boîte qui garde le ratio 16:9 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 (9 divisé par 16 = 0.5625) */
    padding-top: 25px;
    height: 0;
    background: #000; /* Fond noir pendant le chargement */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* L'iframe prend toute la place dans la boîte */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Styles pour la vidéo "À la une" */
.featured-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-info-main {
    margin-top: 20px;
    text-align: center;
}

.video-info-main h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.video-date {
    color: #777;
    font-size: 0.9rem;
    margin-top: 5px;
}

.video-date-grid {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}
.video-date-grid i {
    margin-right: 5px;
    color: var(--accent-color) !important;
}

/* --- Grille des vidéos (Replay) --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

/* Conteneur de la miniature avec l'icône Play par-dessus */
.video-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer l'image */
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.video-card:hover .video-thumbnail img {
    opacity: 1;
    transform: scale(1.05); /* Léger zoom au survol */
}

.video-card h3 { margin: 10px 0 0; text-transform: capitalize; color: #333; }
/* Section Lecteur Principal */
.main-player { background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.thumbnail-placeholder { 
    width: 100%; 
    height: 150px; 
    background: var(--primary-color); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white;
    font-weight: bold;
    background-size: cover;
    background-position: center;
}
/* Icône Play centrée */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.8); /* Rouge transparent */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 4px; /* Petit ajustement optique pour centrer le triangle */
    transition: background 0.3s, transform 0.3s;
}

.video-card:hover .play-icon {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-content {
    padding: 15px;
}

.video-card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    /* Limiter le titre à 2 lignes si trop long */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nouveau design pour la section de lecture */
    .player-section {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        background: #111; /* Fond sombre comme sur l'image */
        padding: 30px;
        border-radius: 12px;
        margin-bottom: 40px;
        color: white;
    }

    .video-side { flex: 2; min-width: 300px; }
    
    .text-side { 
        flex: 1; 
        min-width: 250px; 
        border-left: 1px solid #444; 
        padding-left: 30px; 
    }

    .text-side h2 { color: #2ecc71; text-transform: uppercase; margin-top: 0; }
    .text-side p { line-height: 1.6; color: #ccc; }
    .quote { color: #2ecc71; font-style: italic; border-left: 3px solid #2ecc71; padding-left: 15px; margin-top: 20px; }

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
}

.page-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Petite animation d'apparition pour les cartes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Style de base du bouton */
.nous-connaitre .btn-primary {
    background-color: transparent; /* Fond transparent */
    border: 2px solid var(--accent-color);     /* Bordure bleue (2px d'épaisseur) */
    color: var(--accent-color);;                /* Texte bleu */
    
    /* Mise en forme recommandée pour les liens ressemblant à des boutons */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;            /* Coins légèrement arrondis (optionnel) */
    font-weight: bold;
    transition: all 0.3s ease;     /* Animation douce */
    display: flex;
    justify-content: center;
}

/* Effet au survol de la souris (recommandé pour l'UX) */
.nous-connaitre .btn-primary:hover {
    background-color: var(--accent-color);     /* Le fond devient bleu au survol */
    color: #ffffff;                /* Le texte devient blanc pour le contraste */
}

/* --- Styles du Menu Déroulant --- */

/* 1. Positionnement du parent */
.dropdown {
    position: relative; /* Important pour que le sous-menu se cale par rapport à lui */
}

/* 2. Style du sous-menu (caché par défaut) */
.dropdown-menu {
    display: none; /* Caché */
    position: absolute;
    top: 100%; /* Juste en dessous du lien parent */
    left: 0;
    background-color: #fff; /* Fond blanc */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Ombre portée pour l'effet "flottant" */
    z-index: 1000; /* S'assure qu'il passe au-dessus du reste du site */
    padding: 10px 0;
    list-style: none;
    border-radius: 4px;
    white-space: nowrap;
    /* ... vos autres styles ... */
    border-top: 3px solid var(--accent-color); /* Force la ligne bleue en haut du menu */
}

/* 3. Afficher le menu au survol (Hover) */
.dropdown:hover .dropdown-menu {
    display: block; /* Devient visible */
    color: var(--accent-color) !important;
}

/* 4. Style des liens dans le sous-menu */
.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    color: #333; /* Couleur du texte sombre */
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    font-size: 0.9rem; /* Un peu plus petit que le menu principal */
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f4f4f4; /* Gris clair au survol d'un élément */
    color: var(--accent-color) !important; /* Votre couleur principale (rouge/bordeaux ?) */
}

/* --- CAROUSEL HERO SECTION --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh; /* Prend tout l'écran */
    min-height: 600px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.5);
    margin-top: 70px; /* Ajustez cette valeur selon la hauteur réelle de votre header */
}

/* Gestion des Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Images de fond pour chaque slide */
.slide-video {
    /* Mettez ici l'image de fond souhaitée pour la slide vidéo */
    background: url('fondaccueil.png') no-repeat center center/cover;
}

.slide-vision {
    /* L'image de fond originale */
    background: url('fondaccueil.png') no-repeat center center/cover;
}

/* Overlay sombre pour lisibilité */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Assombrit le fond */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    color: #fff;
}

.hero-carousel {
    background-color: #ddd !important;
}

/* Layout Split (Texte Gauche / Vidéo Droite) */
.split-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.text-side {
    flex: 1;
    text-align: left;
}

.video-side {
    flex: 1;
}

.badge-live {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Responsive Iframe Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Layout Centré (Slide Originale) */
.centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- BOUTONS NAVIGATION --- */
/* --- INDICATEURS (POINTS) --- */
.carousel-indicators {
    position: absolute;
    bottom: 30px; /* Position par rapport au bas */
    left: 50%;
    transform: translateX(-50%); /* Pour centrer parfaitement */
    display: flex;
    gap: 15px; /* Espace entre les points */
    z-index: 10;
}

.container .copyright {
    color: white;
}

.dot {
    width: 15px;
    height: 15px;
    border: 2px solid black; /* Bordure blanche */
    border-radius: 50%;     /* Rend le carré rond */
    background-color: transparent;
    color: black !important;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Style du point actif (celui de la slide en cours) */
.dot.active {
    background-color: #fff; /* Remplissage blanc */
    transform: scale(1.2);  /* Légèrement plus gros */
}

/* Petit effet au survol de la souris */
.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* --- SIDEBAR SOCIALE (DROITE) --- */
.hero-socials {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 20;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
}

.social-icon:hover {
    background: #fff;
    color: #333;
    transform: scale(1.1);
}

/* --- STYLE MINIATURE VIDÉO --- */

/* On garde le ratio 16:9 de video-wrapper */
.video-wrapper.thumbnail-mode {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #000; /* Fond noir en attendant l'image */
}

/* L'image prend toute la place */
.video-wrapper.thumbnail-mode img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image proprement sans la déformer */
    transition: transform 0.3s ease;
}

/* Effet de zoom au survol */
.video-wrapper.thumbnail-mode:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Le bouton Play centré */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(231, 76, 60, 0.9); /* Rouge type YouTube */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 2;
    transition: transform 0.3s ease, background-color 0.3s;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.video-wrapper.thumbnail-mode:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #ff0000;
}

/* --- Mise à jour pour les Cartes Équipes avec Photos --- */

.team-card {
    background: var(--white);
    padding: 30px 20px; /* Un peu moins de padding sur les côtés */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Pour que toutes les cartes aient la même hauteur visuelle */
}

.team-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--accent-color);
}

/* Style de la photo ronde */
.leader-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover; /* Important pour ne pas déformer le visage */
    border: 3px solid var(--accent-color); /* Bordure bleue comme le thème */
    padding: 3px; /* Petit espace blanc entre photo et bordure */
    background-color: var(--white);
}

/* Style du nom du responsable */
.leader-name {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* Style du rôle/département */
.department-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    min-height: 50px; /* Pour aligner les titres sur plusieurs lignes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Style des textes type MLK */
.mlk-title {
    font-family: var(--font-heading);
    font-size: 4rem; /* Réduit un peu pour éviter les collisions */
    line-height: 1;
    color: white;
    margin-top: 20px; /* Espace le titre du haut de la slide */
}

.mlk-title-dark {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 0.9;
    color: var(--primary-color);
}

/* Force la couleur au survol sur tous les liens de sous-menus */
.dropdown-menu li a:hover, 
.dropdown-menu li a:focus {
    color: var(--accent-color) !important;
    background-color: #f8f9fa !important;
    transition: 0.3s;
}

/* --- Style du Compte à Rebours --- */
#countdown-container {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: inline-block;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    border-left: 4px solid var(--accent-color);
}

.countdown-label {
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.countdown-timer {
    display: flex;
    gap: 20px;
}

.time-segment {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.time-segment span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
    color: #fff;
}

.time-segment small {
    text-transform: uppercase;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .time-segment span { font-size: 1.8rem; }
    .countdown-timer { gap: 10px; }
}

/* Conteneur pour l'effet oblique */
.oblique-wrapper {
    position: relative;
    display: inline-block;
    width: 120%;
    /* Inclinaison vers la droite */
    transform: skewX(-5deg); 
    overflow: hidden;
    border-radius: 4px;
    /* Suppression de tout contour ou ombre bleue */
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15); 
}

.img-rendezvous {
    display: block;
    /* On diminue la hauteur pour qu'elle ne soit pas trop imposante */
    height: 100%;
    width: auto;
    /* On annule l'inclinaison sur l'image elle-même pour que le texte reste droit 
       si vous préférez, sinon supprimez la ligne suivante pour tout incliner */
    border: none !important; /* Retire tout contour éventuel */
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .img-rendezvous {
        max-height: 350px;
        width: 100%;
    }
    .oblique-wrapper {
        transform: none; /* On retire l'oblique sur mobile pour plus de clarté */
    }
    .img-rendezvous {
        transform: none;
    }
}

/* Empêche les sauts de mise en page pendant le chargement dynamique */
.image-side {
    min-height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlk-promo-img {
    /* Garde l'aspect ratio même si l'image Facebook change de format */
    object-fit: contain; 
    background-color: #f0f0f0; /* Fond neutre pendant le chargement */
    max-height: 500px;
    max-width: 600px;
}

.slide-light {
    background-color: var(--bg-light) !important;
}

.quote-container {
    text-align: center;
    max-width: 800px;
}

.bible-verse {
    font-style: italic;
    font-size: 1.5rem;
    margin: 20px 0;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .mlk-title, .mlk-title-dark { font-size: 3rem; }
    .split-layout { flex-direction: column; text-align: center; }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .text-side {
        text-align: center;
        margin-bottom: 20px;
    }

    .hero-socials {
        right: 10px;
    }

    .next-btn { right: 60px; }
}

@media (max-width: 768px) {
    /* ... tes autres styles ... */

    /* Style spécifique MLK pour les titres */
    h1, h2, .nav-links a {
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-links li {
        width: 100%; /* Sur mobile, les li prennent toute la largeur */
        display: block; /* On casse le flex center du bureau */
        height: auto;
        text-align: center;
    }

    .nav-links a {
        padding: 15px 0; /* Padding plus standard pour mobile */
    }

    /* Le menu déroulant redevient un bloc classique intégré dans la liste */
    .dropdown-menu {
        position: static; /* Annule le positionnement absolu */
        display: none; /* Reste caché par défaut */
        width: 100% !important;
        box-shadow: none;
        background-color: #f9f9f9; /* Fond gris clair pour distinguer */
        top: auto;
        border-top: none;
        padding-left: 0;
    }

    /* Sur mobile, le hover est difficile, l'idéal est souvent du JS,
       mais en CSS pur on garde le hover ou focus */
    .dropdown:hover .dropdown-menu {
        display: block;
    }

        /* Force la couleur au survol sur tous les liens de sous-menus */
    .dropdown-menu li a:hover, 
    .dropdown-menu li a:focus {
        color: var(--accent-color) !important;
        background-color: #f8f9fa !important;
        transition: 0.3s;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static; /* Réintègre le sous-menu dans le flux normal */
        display: block;   /* Affiche les sous-liens directement sous le parent */
        box-shadow: none;
        background-color: #f9f9f9;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }
}

/* Si votre burger est composé de 3 div (bar1, bar2, bar3) */
.toggle .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .bar2 {
    opacity: 0;
}
.toggle .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

/* --- IMPORTANT : Version Mobile --- */
/* Sur téléphone, on ne peut pas garder 4 cartes sur la même ligne (c'est illisible).
   Ce code permet de les empiler une par une si l'écran est petit (< 768px). */
@media screen and (max-width: 992px) {
    .vision-grid {
        /* On passe à 2 colonnes sur tablette */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .vision-grid, .mission-grid {
        /* On passe à 1 seule colonne sur mobile */
        grid-template-columns: 1fr;
    }
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; /* Changé de absolute à fixed pour être sûr qu'il couvre l'écran */
        right: 0;
        top: 0; /* On part du haut */
        height: 100vh;
        width: 70%; /* Plus large pour plus de confort */
        background-color: white;
        z-index: 2500; /* Doit être supérieur au header (2000) */
        
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centre les liens verticalement */
        align-items: center;
        
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    }

    /* Cette classe est celle que votre JS active au clic */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger-menu {
        display: block;
        z-index: 2600; /* Le bouton doit être AU-DESSUS du menu ouvert pour pouvoir refermer */
        position: relative;
    }
}

/* --- CSS SPÉCIFIQUE PAGE ÉQUIPES --- */

/* Carte Couple Pastoral (Mise en avant) */
.pastoral-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.pastoral-card {
    display: flex;
    background: var(--white);
    max-width: 900px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    align-items: center;
}

.pastoral-img {
    flex: 1;
    height: 400px;
    overflow: hidden;
}

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

.pastoral-info {
    flex: 1.2;
    padding: 40px;
}

.pastoral-info h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pastoral-role {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grille des départements (Réutilisation de ton style existant + ajustements) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}

.team-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--accent-color);
}

.team-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
}

/* --- CSS SPÉCIFIQUE PAGE HISTOIRE (TIMELINE) --- */

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

/* La ligne verticale centrale */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Cercles sur la ligne */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

/* RESPONSIVE TIMELINE & PASTORAL */
@media screen and (max-width: 768px) {
    /* Timeline Mobile : tout à gauche */
    .timeline::after { left: 31px; }
    .timeline-container { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-container::before { left: 60px; border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; }
    .left::after, .right::after { left: 21px; }
    .right { left: 0%; }

    /* Pastoral Card Mobile */
    .pastoral-card { flex-direction: column; }
    .pastoral-img { height: 250px; }
    .pastoral-info { padding: 30px 20px; text-align: center; }
}