/* RESET */
* {margin:0; padding:0; box-sizing:border-box;}
body {font-family:'Comfortaa', cursive; line-height:1.6; background:#111; color:#fff;}

/* VARIABLES */
:root{
    --bleu:#1f3c88;
    --jaune:#d4a017;
    --blanc:#fff;
}

/* =========================================
   STYLES INTÉGRÉS (DÉPLACÉS DEPUIS LE HTML)
========================================= */
/* Galerie Masonry */
.masonry-gallery { column-count: 3; column-gap: 15px; }
.masonry-gallery a { display: inline-block; margin-bottom: 15px; width: 100%; position: relative; border-radius: 12px; overflow: hidden; }
.masonry-gallery img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.masonry-gallery a::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(31, 60, 136, 0.6); opacity: 0; transition: opacity 0.3s ease; }
.masonry-gallery a::before { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--blanc); font-size: 30px; z-index: 2; opacity: 0; transition: opacity 0.3s ease; }
.masonry-gallery a:hover img { transform: scale(1.1); }
.masonry-gallery a:hover::after { opacity: 1; }
.masonry-gallery a:hover::before { opacity: 1; }

@media (max-width: 768px) { .masonry-gallery { column-count: 2; } }
@media (max-width: 480px) { .masonry-gallery { column-count: 1; } }

/* CORRECTIONS AFFICHAGE LANGUES ET COUPLE PASTORAL */
#current-lang-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    min-width: 100px;
    justify-content: flex-start;
    white-space: nowrap;
}

.pasteurs-box { max-width: 1100px; padding: 40px; margin: 0 auto;}
.pasteurs-statique-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 20px;
}
.pasteurs-image-fixe {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}
.pasteurs-image-fixe img {
    width: 100%;
    border-radius: 15px;
    border: 3px solid var(--jaune);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
    margin: 0 auto;
}
.pasteurs-texte-fixe {
    flex: 1.5;
    min-width: 300px;
    text-align: justify;
}
.mission-soulignee {
    font-weight: bold;
    color: var(--jaune);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    text-align: center;
}

/* =========================================
   HEADER & NAV
========================================= */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999; 
    background: rgba(31,60,136,0);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px; 
}
.logo img {height:70px;}
.nav-links {
    display: flex;
    gap: 15px; 
    list-style: none;
    align-items: center;
    white-space: nowrap; 
}
.nav-links > li > a {
    text-decoration: none;
    font-weight: 600;
    color: var(--blanc);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.nav-links > li > a:not(.dropbtn):hover {
    background: var(--jaune); 
    color:#111;
}

/* BOUTON SPÉCIAL "Besoin de paix" */
.highlight-link { color: var(--jaune) !important; }
.nav-links > li > a.highlight-link:hover { color: #111 !important; background: var(--jaune); }

/* --- MENUS DÉROULANTS --- */
.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 15px; 
    margin-bottom: -15px;
}
.dropbtn { cursor: pointer; }
.nav-links > li > a.dropbtn:hover,
.dropdown:hover > .dropbtn {
    background: transparent !important; 
    color: var(--jaune) !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--blanc);
    min-width: 240px; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

/* CORRECTION : MENU LANGUE QUI DÉBORDE */
.lang-dropdown .dropdown-content {
    left: auto !important;
    right: 0 !important;
}

.nav-links .dropdown-content a {
    color: var(--bleu) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    border-radius: 0;
    white-space: normal; 
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}
.nav-links .dropdown-content a:hover {
    background-color: #f4f6fa !important; 
    color: var(--jaune) !important; 
}
.dropdown:hover .dropdown-content { display: block; }
.dropbtn::after { content: ' ▼'; font-size: 0.7em; }

/* GLOBE LANGUE */
.lang-icon { font-size: 1.2em; margin-right: 5px; }

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--blanc);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1){transform: rotate(45deg) translate(5px,5px);}
.hamburger.active span:nth-child(2){opacity:0;}
.hamburger.active span:nth-child(3){transform: rotate(-45deg) translate(5px,-5px);}

/* =========================================
   SECTIONS EN PLEIN ÉCRAN (SPA VIEWS)
========================================= */
.view-section {
    display: none; 
    min-height: 100vh;
    padding: 80px 20px 40px;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    position: relative;
    overflow: hidden; 
}
.view-section.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   EFFET PARALLAX & GLASSMORPHISM ACCUEIL
========================================= */
#accueil {
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding-top: 130px; 
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #000; 
}
#accueil.active { display: flex; }

.parallax-bg {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%; height: 110%;
    /* Assurez-vous que le chemin de l'image est correct */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url("images/image_accueil.png");
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.2s ease-out; 
}

.glass-hero-card {
    background: rgba(10, 20, 50, 0.4); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 60px;
    border-radius: 20px;
    z-index: 2;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    max-width: 900px;
    width: 90%;
    transition: transform 0.2s ease-out; 
}

/* --- FONDS D'ÉCRAN --- */
/* Assurez-vous que ces images existent dans votre dossier images/ */
#qui { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("images/fond.jpg"); }
#foi { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("images/fond2.jpg"); }
#vision { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("images/vision.jpg"); }
#equipe { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("images/equipe_bg.jpg"); }
#don { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("images/don_bg.jpg"); }
#branches { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url("images/imagebranchemr.jpg"); }
#generateur-paix { background: linear-gradient(rgba(31,60,136,0.85), rgba(0,0,0,0.9)), url("images/fond.jpg"); }

#galerie, #contact { background: #f4f6fa !important; color: #111; }
#pasteurs { background: transparent; }

/* --- VIDÉO DE FOND --- */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: -2;
}
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: -1;
}

/* =========================================
   EFFET SCROLL REVEAL 
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes boxPopUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 160, 23, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}

.hero-title { font-size: 52px; margin-bottom: 15px; opacity: 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.5);}
.hero-slogan { font-size: 20px; margin-bottom: 35px; opacity: 0; }
.btn-hero { background: var(--jaune); color: #111; padding: 14px 35px; border-radius: 30px; font-weight: 700; text-decoration: none; display: inline-block; cursor: pointer; opacity: 0; margin-bottom: 10px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px;}
.btn-hero:hover { transform: translateY(-3px) scale(1.05); }

#accueil.active .hero-title { animation: fadeDown 1s ease 0.2s forwards; }
#accueil.active .hero-slogan { animation: fadeUp 1s ease 0.8s forwards; }
#accueil.active .btn-hero { animation: fadeUp 1s ease 1.3s forwards, pulse 2s infinite 2.5s; }

/* =========================================
   COMPTE À REBOURS
========================================= */
.countdown-section { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 25px; margin-top: 30px; opacity: 0; }
#accueil.active .countdown-section { animation: fadeIn 1s ease 1.8s forwards; }
.countdown-title { color: var(--jaune); font-size: 16px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; font-weight: bold;}
.countdown-container { display: flex; gap: 15px; justify-content: center; }
.time-box { display: flex; flex-direction: column; align-items: center; background: rgba(0, 0, 0, 0.3); padding: 15px 20px; border-radius: 12px; min-width: 80px; border-bottom: 3px solid var(--jaune);}
.time-box span.number { font-size: 34px; font-weight: bold; color: var(--blanc); line-height: 1; margin-bottom: 5px; font-family: sans-serif;}
.time-box span.label { font-size: 11px; color: var(--blanc); text-transform: uppercase; font-weight: bold; letter-spacing: 1px; opacity: 0.8;}
#countdown-message { display: none; font-size: 20px; color: var(--blanc); padding: 10px 0; line-height: 1.6;}
.btn-youtube { background: #FF0000; color: white; padding: 10px 25px; border-radius: 8px; font-weight: bold; text-decoration: none; display: inline-block; margin-top: 15px; font-size: 16px; animation: pulse 2s infinite;}
.btn-youtube:hover { background: #CC0000; }

/* BOITE DE TEXTE TRANSLUCIDE GÉNÉRALE */
.content-box { max-width: 900px; margin: 0 auto; background: rgba(0, 0, 0, 0.65); padding: 50px 60px; border-radius: 20px; backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: justify; }
.content-box h2 { color: var(--jaune); font-size: 36px; text-align: center; margin-bottom: 40px; position: relative; padding-bottom: 15px; }
.content-box h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--jaune); border-radius: 2px; }
.content-box p { margin-bottom: 25px; font-size: 1.05em; line-height: 1.8; }

/* =========================================
   BRANCHES
========================================= */
.stats-container { display: flex; justify-content: center; gap: 50px; margin-top: 50px; flex-wrap: wrap; }
.stat-box { text-align: center; background: rgba(255, 255, 255, 0.05); padding: 40px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1); width: 280px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-box:hover { transform: translateY(-10px); border-color: var(--jaune); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.stat-box i { font-size: 50px; color: var(--blanc); margin-bottom: 20px; }
.stat-number { font-size: 80px; font-weight: bold; color: var(--jaune); margin-bottom: 10px; line-height: 1; }
.stat-box h3 { font-size: 22px; color: var(--blanc); text-transform: uppercase; letter-spacing: 1px; }

.churches-container { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.2); }
.churches-title { color: var(--blanc); font-size: 28px; text-align: center; margin-bottom: 30px; }
.churches-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.church-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 25px; width: 320px; text-align: left; transition: transform 0.3s ease; }
.church-card:hover { transform: translateY(-5px); border-color: var(--jaune); box-shadow: 0 10px 20px rgba(0,0,0,0.5); background: rgba(255,255,255,0.12); }
.church-card h4 { color: var(--jaune); font-size: 18px; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; line-height: 1.4; }
.church-card p { font-size: 14px; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; line-height: 1.5; color: var(--blanc);}
.church-card i { color: var(--bleu); background: var(--jaune); padding: 8px; border-radius: 50%; font-size: 12px; flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;}

/* =========================================
   COUPLE PASTORAL (Styles additionnels)
========================================= */
.pasteurs-names { text-align: center; font-size: 22px; color: var(--jaune); font-weight: bold; margin-bottom: 30px; }
/* --- SECTION RENDEZ-VOUS PASTORAL --- */
.rdv-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.rdv-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rdv-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.rdv-texte {
    flex: 1;
}

.liens-calendriers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-box {
    background: #f9f9f9;
    padding: 20px 30px;
    border-radius: 8px;
    border-left: 5px solid var(--bleu);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.calendar-box:hover {
    transform: translateX(10px);
}

.calendar-box h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .rdv-layout {
        flex-direction: column;
    }
    .calendar-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================================
   GÉNÉRATEUR DE PAIX
========================================= */
.peace-hub-container { text-align: center; margin-top: 20px;}
.peace-subtitle { font-size: 18px; color: #ccc; margin-bottom: 30px; font-style: italic; }
.emotions-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px;}

.emotion-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--blanc);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Comfortaa', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
}
.emotion-btn:hover { background: var(--jaune); color: #111; transform: translateY(-3px); border-color: var(--jaune);}

#peace-result {
    display: none; 
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--jaune);
    padding: 30px;
    border-radius: 0 15px 15px 0;
    text-align: left;
    animation: fadeUp 0.5s ease;
}
#peace-verse { font-size: 22px; font-weight: bold; color: var(--jaune); margin-bottom: 10px; line-height: 1.4; }
#peace-ref { font-size: 14px; color: #ccc; font-style: italic; margin-bottom: 20px; display: block; }
#peace-prayer { font-size: 16px; color: var(--blanc); line-height: 1.6; }

/* =========================================
   NOTRE ÉQUIPE (FLIP CARDS)
========================================= */
.equipe-grid { 
    display: flex; 
    gap: 30px; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-top: 40px; 
}
.membre-carte {
    background-color: transparent;
    width: 280px;
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 20px;
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.membre-carte.flipped .card-inner {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 0;
    left: 0;
}
/* --- RECTO --- */
.card-front {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    justify-content: center;
    z-index: 2;
}
.card-front img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--jaune);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
.card-front h4 { color: var(--jaune); font-size: 22px; margin-bottom: 10px; }
.card-front p { font-size: 14px; color: var(--blanc); text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }

/* --- VERSO --- */
.card-back {
    background-color: var(--bleu);
    color: var(--blanc);
    transform: rotateY(180deg);
    justify-content: flex-start;
    border: 1px solid var(--jaune);
    overflow: hidden;
}
.card-back h4 {
    color: var(--jaune);
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
    padding-bottom: 5px;
    width: 100%;
}
.card-back p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    overflow-y: auto;
    padding-right: 5px;
    height: 100%;
}
.card-front::after {
    content: '\f021';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    animation: spin 3s infinite linear;
}
/* =========================================
   BOUTON LIRE PLUS (HAUTE ACCESSIBILITÉ)
========================================= */
.btn-lire-plus { 
    background-color: #ffffff !important; /* ICI : Couleur de fond du bouton (actuellement blanc) */
    color: #000000 !important;            /* ICI : Couleur du texte (actuellement noir) */
    border: 2px solid #000000 !important; /* ICI : Couleur de la bordure (actuellement noir) */
    
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   MINISTÈRES ET ÉVÈNEMENTS
========================================= */
.ministere-section { padding-top: 100px !important; padding-left: 0 !important; padding-right: 0 !important; background: #111 !important; }
.ministere-banniere { width: 100%; height: 400px; object-fit: cover; display: block; margin-top: 0; }
.ministere-content-container { max-width: 900px; margin: -50px auto 40px; background: rgba(0, 0, 0, 0.75); padding: 50px 60px; border-radius: 20px; backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: justify; position: relative; z-index: 10; opacity: 0; }
.view-section.active .ministere-content-container { animation: boxPopUp 0.8s ease 0.3s forwards; }
.ministere-content-container h2 { color: var(--jaune); font-size: 36px; text-align: center; margin-bottom: 40px; position: relative; padding-bottom: 15px; }
.ministere-content-container h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--jaune); border-radius: 2px; }
.ministere-texte p { margin-bottom: 25px; font-size: 1.05em; line-height: 1.8; }

.evenements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.evenement-carte { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 15px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); }
.evenement-carte:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.evenement-carte img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.evenement-titre { color: var(--jaune); font-size: 20px; font-weight: bold; margin-bottom: 5px; }
.evenement-date { color: var(--blanc); font-size: 16px; font-style: italic; }
.evenement-heure { color: #ccc; font-size: 14px; margin-top: 5px; }

/* --- FORCER LA TAILLE DES BOUTONS MOIS --- */
.months-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px !important; /* Espace entre les boutons */
    margin-bottom: 40px !important;
}

.month-tab {
    padding: 15px 30px !important; /* Augmente la zone de clic */
    font-size: 1.2em !important;    /* Texte plus grand */
    min-width: 100px !important;    /* Largeur minimale pour chaque bouton */
    border: 2px solid var(--bleu) !important;
    background: white !important;
    color: var(--bleu) !important;
    border-radius: 10px !important;
    cursor: pointer;
    font-weight: bold !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.month-tab.active {
    background: var(--bleu) !important;
    color: white !important;
    transform: scale(1.1); /* Agrandi légèrement le mois sélectionné */
}

.month-tab:hover {
    background: var(--jaune) !important;
    color: #111 !important;
    border-color: var(--jaune) !important;
}

/* --- SECTION THÈME DU MOIS --- */

/* Conteneur principal pour aligner Vendredi et Dimanche */
.themes-flex-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: stretch; /* Force les deux boîtes à avoir la même hauteur */
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Boîte individuelle pour chaque culte (Vendredi / Dimanche) */
.cult-theme-box {
    flex: 1;
    min-width: 300px;
    max-width: 420px; /* Limite la largeur pour éviter que l'image s'étire trop */
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border-top: 5px solid var(--bleu);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* CONTRÔLE DE LA TAILLE DE L'AFFICHE (Solution au problème de hauteur) */
.cult-poster {
    width: 100%;
    height: 380px;         /* HAUTEUR FIXE : l'image ne dépassera jamais ça */
    object-fit: cover;     /* Remplit le cadre sans déformer (coupe un peu les bords si besoin) */
    object-position: top;  /* Garde le haut de l'affiche (le titre) visible */
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: #eee;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cult-poster:hover {
    transform: scale(1.03); /* Petit effet d'interaction */
}

/* Style des titres de thèmes */
.theme-title-bold {
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
    margin: 10px 0;
    min-height: 2.5em; /* Aligne les affiches même si un titre fait 2 lignes */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsivité pour mobile */
@media (max-width: 768px) {
    .cult-poster {
        height: 300px; /* Un peu plus petit sur téléphone */
    }
    .cult-theme-box {
        max-width: 100%;
    }
}

.verse-italic { font-style: italic; color: #666; font-size: 1em; }

@media (max-width: 900px) {
    .month-content-display { flex-direction: column; align-items: center; }
    .month-poster-container { max-width: 100%; }
}

/* =========================================
   DONS
========================================= */
.don-grid { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.don-carte { background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 30px; text-align: center; width: 380px; border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.3s ease; }
.don-carte:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-color: var(--jaune); }
.don-carte i { font-size: 50px; color: var(--jaune); margin-bottom: 20px; }
.don-carte h3 { font-size: 24px; margin-bottom: 15px; color: var(--blanc); }
.don-detail { font-size: 15px; font-weight: bold; color: var(--jaune); background: rgba(0, 0, 0, 0.4); padding: 12px 15px; border-radius: 8px; display: inline-block; margin-top: 10px; width: 100%; word-wrap: break-word; }

/* =========================================
   GALERIE
========================================= */
#galerie .content-box { background: transparent; box-shadow: none; backdrop-filter: none; color: #111; max-width: 1200px; }
#galerie h2 { color: var(--bleu); }
#galerie h2::after { background: var(--bleu); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 15px; }
.gallery a { display: block; position: relative; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery a::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(31, 60, 136, 0.6); opacity: 0; transition: opacity 0.3s ease; }
.gallery a::before { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--blanc); font-size: 30px; z-index: 2; opacity: 0; transition: opacity 0.3s ease; }
.gallery a:hover img { transform: scale(1.1); }
.gallery a:hover::after { opacity: 1; }
.gallery a:hover::before { opacity: 1; }
/* Conteneur des box : s'adapte à la taille de l'écran */
.year-boxes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
}

/* Style principal de la box */
.year-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3; /* Garde une belle proportion rectangle */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: box-shadow 0.4s ease;
}

/* Image de fond avec effet de zoom */
.year-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

/* Voile dégradé sombre pour lire le texte blanc */
.year-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
    transition: background 0.4s ease;
}

/* Contenu (Texte au centre) */
.year-box-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
}

.year-box-content h3 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

/* Texte "Ouvrir l'album" invisible par défaut */
.view-text {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
}

/* ----- EFFETS AU SURVOL (HOVER) ----- */
.year-box:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.year-box:hover .year-box-bg {
    transform: scale(1.1); /* L'image zoome doucement */
}

.year-box:hover .year-box-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.5) 100%);
}

.year-box:hover .year-box-content h3 {
    transform: translateY(-10px); /* L'année monte un peu */
}

.year-box:hover .view-text {
    opacity: 1; /* Le texte apparaît */
    transform: translateY(0);
}

/* ----- DESIGN DES GALERIES INTERNES ----- */
.gallery-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.btn-retour {
    display: inline-block;
    background: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

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

/* =========================================
   CONTACT
========================================= */
#contact .content-box { background: var(--blanc); color: #111; max-width: 1100px; }
#contact h2 { color: var(--bleu); }
#contact h2::after { background: var(--bleu); }
.contact-layout { display: flex; gap: 50px; margin-top: 40px; text-align: left; }
.contact-info-col { flex: 1; }
.contact-form-col { flex: 1; background: #f4f6fa; padding: 30px; border-radius: 12px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item i { color: var(--jaune); font-size: 24px; background: var(--bleu); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.contact-item h4 { color: var(--bleu); margin-bottom: 5px; font-size: 18px; }
.contact-item p { margin-bottom: 0; font-size: 16px; color: #555; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Comfortaa', cursive; font-size: 15px; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--jaune); }
.btn-submit { background: var(--bleu); color: var(--blanc); padding: 15px 30px; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; width: 100%; font-family: 'Comfortaa', cursive; transition: 0.3s; }
.btn-submit:hover { background: var(--jaune); color: #111; }
.map-responsive { overflow: hidden; padding-bottom: 56.25%; position: relative; height: 0; border-radius: 12px; margin-top: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.map-responsive iframe { left: 0; top: 0; height: 100%; width: 100%; position: absolute; border: 0; }

/* =========================================
   FOOTER
========================================= */
footer { background: var(--bleu); color: var(--blanc); padding: 50px 20px 20px; position: relative; z-index: 10; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; max-width: 400px; }
.footer-col h3 { color: var(--jaune); margin-bottom: 20px; font-size: 22px; }
.footer-col p { margin-bottom: 10px; font-size: 15px; line-height: 1.6; display: flex; align-items: center;}
.footer-col i { color: var(--jaune); margin-right: 15px; width: 20px; text-align: center; font-size: 18px; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(255,255,255,0.1); color: var(--blanc); border-radius: 50%; font-size: 20px; text-decoration: none; transition: all 0.3s ease; }
.social-links a:hover { background: var(--jaune); color: #111; transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 14px; opacity: 0.8; }

/* RESPONSIVE */
@media(max-width:900px){ 
    .nav-links { position: absolute; top: 80px; left: 0; width: 100%; flex-direction: column; align-items: center; background: rgba(31,60,136,0.98); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding-top: 0;}
    .nav-links.open { max-height: 900px; padding-top: 20px; padding-bottom: 20px; overflow-y: auto;}
    .dropdown { padding-bottom: 0; margin-bottom: 0; text-align: center; }
    .dropdown-content { position: static; box-shadow: none; background: transparent; display: none; margin: 0 auto; min-width: 200px;}
    .dropdown:hover .dropdown-content { display: block; }
    .nav-links .dropdown-content a { color: var(--blanc) !important; text-align: center; }
    .nav-links .dropdown-content a:hover { background: transparent !important; color: var(--jaune) !important; }
    .hamburger{display:flex;}
    
    .lang-switcher { margin-left: 0; margin-top: 10px; }

    .hero-title{font-size:34px;}
    .hero-slogan {font-size: 18px;}
    .glass-hero-card { padding: 30px 20px; }
    
    .content-box, .ministere-content-container { padding: 30px 20px; width: 90%; }
    
    .countdown-container { flex-wrap: wrap; }
    
    .pasteurs-statique-flex, .contact-layout, .don-grid, .stats-container, .churches-grid { flex-direction: column; gap: 20px; align-items: center;}
    .pasteurs-image-fixe { flex: none; width: 100%; max-width: 350px; margin: 0 auto; }
    
    .ministere-section { padding-top: 80px !important; }
    .ministere-banniere { height: 250px; } 
    .ministere-content-container { margin-top: -30px; }
    
    .don-carte, .stat-box, .church-card { width: 100%; max-width: 380px; }

    .footer-container { flex-direction: column; text-align: center; align-items: center;}
    .footer-col p { justify-content: center;}
    .social-links { justify-content: center; }
}

/* Empêcher les smartphones de mettre les numéros de téléphone en bleu */
.footer-col p a,
a[href^="tel"] {
    color: #ffffff !important; /* Force la couleur blanche */
    text-decoration: none !important; /* Enlève le souligné éventuel */
}

/* =========================================
   NOUVEAU DESIGN DU BOUTON "LIRE PLUS" 
========================================= */
.btn-lire-plus { 
    background-color: var(--jaune, #f59e0b); /* Utilise le jaune du site pour bien ressortir */
    color: #111; /* Texte foncé pour un contraste parfait */
    border: none; 
    padding: 10px 20px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: bold; 
    margin-top: 15px; 
    font-size: 0.9rem; 
    transition: all 0.3s; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Ajoute une belle ombre */
}
.btn-lire-plus:hover { 
    background-color: #fff; /* Devient blanc au survol */
    color: var(--bleu, #1e3a8a); /* Devient bleu au survol */
    transform: translateY(-2px); /* Petit effet de soulèvement */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Coupe le texte d'aperçu à 3 lignes maximum au dos de la carte */
.bio-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ----- DESIGN DE LA FENÊTRE (MODAL) ----- */
.modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex; /* S'affiche quand on ajoute la classe active */
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh; /* 85% de la hauteur de l'écran maximum */
    border-radius: 12px;
    padding: 30px;
    position: relative;
    overflow-y: auto; /* PERMET DE SCROLLER LE LONG TEXTE */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    animation: apparitionModal 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover { color: #333; }

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.modal-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-header h3 { margin: 0; color: #333; font-size: 1.5rem; }
.modal-role { margin: 5px 0 0 0; color: #666; font-size: 0.9rem; font-weight: bold; }
.modal-body p { line-height: 1.6; color: #444; font-size: 1rem; }

.programme-grid-hebdo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 800px;
    margin: 0 auto;
}
.programme-item {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}
.programme-item:hover { transform: scale(1.02); background: rgba(255, 255, 255, 0.15); }
.p-jour {
    background: var(--bleu);
    color: var(--jaune);
    padding: 20px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.p-details { padding: 20px; flex: 1; }
.p-details h3 { color: #fff; margin-bottom: 5px; }
.p-heure, .p-lieu { color: #ccc; margin: 5px 0; font-size: 0.95rem; }
.p-details i { margin-right: 8px; color: var(--jaune); }

.highlight-prog { border-left: 5px solid var(--jaune); }
.highlight-prog-sun { border-left: 5px solid #fff; }

/* --- LE BLOC À REMPLACER --- */

.affiche-programme-container {
    max-width: 350px; /* J'ai réduit de 600px à 350px ici */
    margin: 0 auto 40px auto; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.affiche-hebdo {
    width: 100%;
    max-height: 500px; /* On limite la hauteur pour ne pas envahir l'écran */
    object-fit: contain; /* Garde les proportions de l'image intactes */
    display: block;
    transition: transform 0.5s ease;
}

.affiche-hebdo:hover {
    transform: scale(1.03); 
}


@media (max-width: 768px) {
    .affiche-programme-container {
        max-width: 80%; /* Un peu plus petit sur les téléphones */
    }
}
/* --- CORRECTION POUR ALIGNER LES 3 CARTES DE DONS --- */
#don .content-box {
    max-width: 1250px !important; /* On élargit la grande boîte pour faire de la place */
}

.don-carte {
    flex: 1; /* Permet aux cartes de s'ajuster équitablement */
    min-width: 280px; /* Taille minimum avant de passer à la ligne sur téléphone */
    max-width: 380px; 
    width: 100%;
}


