/* ==========================================================================
   DESIGN SYSTEM & CSS GLOBAL - EJC28
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-bg: #0B132B;       /* Bleu nuit profond */
    --secondary-bg: #1C2541;     /* Bleu nuit secondaire */
    --card-bg: #232D4B;          /* Fond de carte */
    --light-bg: #F8FAFC;         /* Gris clair/blanc */
    --white: #FFFFFF;
    --gold: #D4AF37;             /* Or élégant */
    --gold-hover: #F3E5AB;       /* Or clair */
    --gold-rgb: 212, 175, 55;
    --cyan: #00A8CC;             /* Bleu azur */
    --text-dark: #1E293B;        /* Texte sur fond clair */
    --text-light: #F1F5F9;       /* Texte sur fond sombre */
    --text-muted: #94A3B8;       /* Texte atténué */
    --glass-bg: rgba(11, 19, 43, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

input, textarea, button {
    font-family: inherit;
}

/* Classes utilitaires */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.section-title.light {
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-bg);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    background: rgba(11, 19, 43, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
}

.logo span {
    color: var(--gold);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 400;
    display: block;
    color: var(--text-muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-left: 1.2rem;
    margin-left: 0.2rem;
    border-left: 1px solid var(--glass-border);
}

.nav-socials a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.nav-socials a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 10;
}

.hero-tag {
    font-family: var(--font-heading);
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    border-left: 3px solid var(--gold);
    padding-left: 0.8rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content h1 span {
    background: linear-gradient(to right, #ffffff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

/* ==========================================================================
   ACTUALITÉS / SLIDER SECTION
   ========================================================================== */
#actualites {
    background-color: var(--secondary-bg);
    padding: 6.5rem 0;
    position: relative;
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.slider-wrapper {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.annonce-card {
    min-width: calc(50% - 1rem);
    flex: 0 0 calc(50% - 1rem);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.annonce-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.annonce-card .annonce-image {
    height: 170px;
}

.annonce-card .annonce-body {
    padding: 1.5rem;
}

.annonce-card .annonce-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.annonce-card .annonce-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Pagination du slider sous forme de barres horizontales */
.slider-bars {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.slider-bar {
    width: 40px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-bar.active {
    background-color: var(--gold);
    width: 60px;
}

.slider-bar:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Agrandissement en place des cartes d'annonces */
.annonce-text-collapsed {
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.annonce-text-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.annonce-card.expanded .annonce-text-collapsed {
    max-height: 1200px; /* Assez grand pour tout afficher */
}

.annonce-card.expanded .annonce-text-fade {
    opacity: 0;
}


.annonce-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.annonce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.annonce-card:hover .annonce-image img {
    transform: scale(1.05);
}

.annonce-image.annonce-no-img {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
}

.annonce-no-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gold);
    opacity: 0.8;
    gap: 0.5rem;
}

.annonce-no-img-placeholder i {
    font-size: 2.5rem;
}

.annonce-no-img-placeholder span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
}

.annonce-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--gold);
    color: var(--primary-bg);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.annonce-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.annonce-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.annonce-title {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.annonce-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.annonce-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.annonce-link:hover {
    color: var(--white);
}

/* Slider Controls */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 3.5rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--gold);
    color: var(--primary-bg);
    border-color: var(--gold);
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal pour lecture d'article */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 19, 43, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background-color: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-header-img {
    height: 350px;
    position: relative;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(11, 19, 43, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gold);
    color: var(--primary-bg);
}

.modal-body {
    padding: 2.5rem;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.modal-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 1.8rem;
    line-height: 1.25;
}

.modal-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.modal-text p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   QUI SOMMES-NOUS SECTION (fond géré par .inner-section)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-bg);
}

.about-text p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.about-quote {
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    font-style: italic;
    color: #334155;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.about-img-box {
    position: relative;
}

.about-img-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img-box::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 5px solid var(--gold);
    border-radius: 12px;
    z-index: -1;
}

/* ==========================================================================
   NOS RÉUNIONS SECTION
   ========================================================================== */
.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
}

.meeting-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.meeting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.meeting-card:hover::before {
    transform: scaleX(1);
}

.meeting-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.8rem;
}

.meeting-card h3 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.meeting-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.meeting-time {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--white);
}

.meeting-time i {
    color: var(--gold);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
#contact {
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding: 6.5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-desc h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary-bg);
}

.contact-desc p {
    color: #475569;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-bg);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-bg);
    margin-bottom: 0.2rem;
}

.contact-text p {
    color: #475569;
    font-size: 0.95rem;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 250px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Formulaire Contact */
.contact-form-box {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-bg);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.alert-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.alert-success {
    background-color: #DEF7EC;
    color: #03543F;
}
.alert-error {
    background-color: #FDE8E8;
    color: #9B1C1C;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: #050A18;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    max-width: 320px;
}

.social-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow);
}

.social-link-facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.social-link-instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: transparent;
    color: var(--white);
}

.social-link-youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    color: var(--white);
}

/* Variante pour icônes sociales sur fond clair (section Contact) */
#contact .social-heading {
    color: #8a6d1f;
}

.social-link-onlight {
    background-color: rgba(11, 19, 43, 0.05);
    border-color: rgba(11, 19, 43, 0.15);
    color: var(--primary-bg);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1.8rem;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav-link:hover {
    color: var(--gold);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.8rem;
}

.footer-contact-item i {
    color: var(--gold);
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

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

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .slide-card {
        min-width: calc(50% - 1rem);
        flex: 0 0 calc(50% - 1rem);
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-img-box {
        max-width: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto;
        background-color: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 0;
        gap: 1.8rem;
        transition: var(--transition);
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-socials {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        padding-top: 1.4rem;
        border-top: 1px solid var(--glass-border);
        width: 60%;
        justify-content: center;
        gap: 1.8rem;
    }

    .nav-socials a {
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .annonce-card {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-info, .footer-links, .footer-contact {
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-form-box {
        padding: 2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   LOGO IMAGE (remplace l'icône croix par le vrai logo EJC)
   ========================================================================== */
.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   NAV DROPDOWNS
   ========================================================================== */
.nav-dropdown {
    position: relative;
}

.nav-caret {
    font-size: 0.65rem;
    margin-left: 0.35rem;
    opacity: 0.7;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.6rem;
    min-width: 220px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-light);
    border-radius: 6px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
}

.nav-btn-don {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   HERO ACCUEIL (photo réelle)
   ========================================================================== */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(100deg, rgba(11, 19, 43, 0.82) 0%, rgba(11, 19, 43, 0.55) 40%, rgba(11, 19, 43, 0.22) 100%), url('../img/brand/hero-temple.jpg') no-repeat center 30%/cover;
    padding-top: 80px;
}

.hero-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right, rgba(212, 175, 55, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-verse {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-light);
    border-left: 3px solid var(--gold);
    padding-left: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 620px;
    line-height: 1.7;
}

.hero-verse-ref {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   HORAIRES (accueil)
   ========================================================================== */
#horaires {
    background-color: var(--primary-bg);
    padding: 6.5rem 0;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.section-lead {
    text-align: center;
    max-width: 720px;
    margin: -2rem auto 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.inner-section .section-lead {
    color: #475569;
}

.inner-section.alt-bg .section-lead {
    color: var(--text-muted);
}

/* ==========================================================================
   SECTIONS GÉNÉRIQUES DES PAGES INTÉRIEURES
   ========================================================================== */
.inner-section {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 6rem 0;
}

.inner-section.alt-bg {
    background-color: var(--primary-bg);
    color: var(--text-light);
}

/* Le titre de section s'adapte automatiquement au fond de .inner-section,
   quelle que soit la présence du modificateur .light sur le h2 */
.inner-section .section-title {
    color: var(--text-dark);
}

.inner-section.alt-bg .section-title {
    color: var(--white);
}

.inner-section.alt-bg .about-quote {
    color: var(--text-light);
}

.inner-section .about-text p {
    color: #475569;
}

.inner-section.alt-bg .about-text p,
.inner-section.alt-bg .about-text h3 {
    color: var(--text-light);
}

.inner-section.alt-bg .about-quote {
    color: var(--text-muted);
}

.container.narrow {
    max-width: 780px;
}

/* ==========================================================================
   RESPONSABLES / LEADERS
   ========================================================================== */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.leader-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.2rem;
    text-align: center;
}

.leader-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--gold);
}

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

.leader-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.leader-role {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.leader-card p:not(.leader-role) {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ==========================================================================
   CONFESSION DE FOI
   ========================================================================== */
.confession-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.confession-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 1.8rem;
}

.confession-card h3 {
    font-size: 1.1rem;
    color: var(--primary-bg);
    margin-bottom: 0.7rem;
}

.confession-card p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
}

/* ==========================================================================
   MINI GALERIE (accueil)
   ========================================================================== */
.mini-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.mini-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
}

.mini-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}

.map-container-lg {
    height: 100%;
    min-height: 350px;
}

/* ==========================================================================
   VIDEOS / PRÉDICATIONS
   ========================================================================== */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.predications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.predication-card {
    display: block;
    color: inherit;
}

.predication-thumb {
    position: relative;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.predication-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.predication-card:hover .predication-thumb img {
    transform: scale(1.06);
}

.predication-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 19, 43, 0.35);
    color: var(--white);
    font-size: 1.4rem;
    opacity: 0;
    transition: var(--transition);
}

.predication-card:hover .predication-play {
    opacity: 1;
    background: rgba(11, 19, 43, 0.55);
}

.predication-card h3 {
    font-size: 1rem;
    color: var(--primary-bg);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.predication-card p {
    font-size: 0.85rem;
    color: #475569;
}

/* ==========================================================================
   LECTEUR AUDIO
   ========================================================================== */
.audio-player-card {
    max-width: 640px;
    margin: 0 auto;
    background-color: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.audio-cover {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.audio-info h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.audio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.audio-player-card audio {
    width: 100%;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding: 0.7rem 1.3rem;
    background-color: var(--gold);
    color: var(--primary-bg);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.download-btn:hover {
    background-color: var(--gold-hover);
}

/* ==========================================================================
   DON / RIB
   ========================================================================== */
.donation-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    margin: 1.2rem auto 0 auto;
    color: #94A3B8;
    max-width: 600px;
    text-align: left;
}

.donation-notice i {
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.donation-notice p {
    font-size: 0.85rem;
    color: #94A3B8;
    margin: 0;
}

.rib-card {
    background-color: #16203B;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(212, 175, 55, 0.25);
    text-align: left;
    color: #F1F5F9;
}

.iban-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.iban-card-header i {
    font-size: 1.25rem;
    color: var(--gold);
}

.iban-card-header h3 {
    font-size: 1.1rem;
    color: #FFFFFF !important;
    font-weight: 600;
    margin: 0;
}

.iban-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.iban-field {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.5rem;
}

.iban-field.iban-highlight {
    background-color: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.75rem 0.8rem;
}

.iban-label {
    font-size: 0.85rem;
    color: #94A3B8 !important;
    font-weight: 500;
}

.iban-val {
    font-size: 0.9rem;
    color: #F1F5F9 !important;
    font-weight: 500;
}

strong.iban-val {
    color: #FFFFFF !important;
    font-weight: 600;
}

.iban-code-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.iban-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #F8FAFC !important;
    background-color: #0F172A;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-copy-iban {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--gold) !important;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-copy-iban:hover {
    background-color: var(--gold);
    color: #0B132B !important;
}

.btn-copy-iban.copied {
    background-color: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
}

.section-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.section-note a {
    color: var(--gold);
    font-weight: 600;
}

/* ==========================================================================
   GALERIE PHOTO / LIGHTBOX
   ========================================================================== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    cursor: zoom-out;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   OUTILS BIBLIQUES
   ========================================================================== */
.bible-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.bible-tool-card {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    transition: var(--transition);
}

.bible-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(212, 175, 55, 0.4);
}

.bible-tool-card img {
    height: 130px;
    width: 100%;
    object-fit: contain;
    background-color: var(--white);
    padding: 1rem;
}

.bible-tool-body {
    padding: 1.5rem;
}

.bible-tool-body h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.bible-tool-body h3 i {
    font-size: 0.8rem;
    color: var(--gold);
}

.bible-tool-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   JEUNESSE
   ========================================================================== */
.jeunesse-block {
    margin-top: 4rem;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.inner-section .subsection-title {
    color: var(--primary-bg);
}

.inner-section.alt-bg .subsection-title {
    color: var(--white);
}

.subsection-title i {
    color: var(--gold);
    font-size: 1.1rem;
}

.empty-block {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(11, 19, 43, 0.02);
    border: 1px dashed rgba(11, 19, 43, 0.15);
    border-radius: 12px;
    color: #64748b;
}

.empty-block i {
    display: block;
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.programme-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
}

.programme-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.programme-card-body {
    padding: 1.5rem;
}

.programme-card-body h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

.programme-card-body div {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.programme-card-body div p:not(:last-child) {
    margin-bottom: 0.8rem;
}

.temoignage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.temoignage-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}

.temoignage-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.2rem;
    background-color: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
}

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

.temoignage-quote {
    font-style: italic;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.temoignage-quote p:not(:last-child) {
    margin-bottom: 0.6rem;
}

.temoignage-name {
    margin-top: 1.2rem;
    font-weight: 600;
    color: var(--primary-bg);
    font-size: 0.9rem;
}

/* ==========================================================================
   ACTUALITÉS — GRILLE COMPLÈTE
   ========================================================================== */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.actualites-grid .annonce-card {
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE — PAGES INTÉRIEURES
   ========================================================================== */
@media (max-width: 1024px) {
    .mini-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
        min-width: 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-caret {
        display: none;
    }

    .leaders-grid {
        grid-template-columns: 1fr;
    }
}

