/* ==========================================================================
   1. Variables et Reset (Palette Minimaliste & Luxe)
   ========================================================================== */
:root {
    --primary-gold: #dfa934;   /* L'Or chic et prestigieux */
    --dark-navy: #0a192f;      /* Bleu nuit profond pour le contraste */
    --light-bg: #fcfbf7;       /* Blanc cassé chaud pour les sections */
    --text-muted: #666666;     /* Gris doux pour les paragraphes */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--white);
    color: var(--text-muted);
    overflow-x: hidden; 
    width: 100%;        
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

/* --- Typographie Épurée --- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-navy);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 15px auto 0 auto;
}


/* ==========================================================================
   2. Header / Navigation Navbar & Top Bar
   ========================================================================== */
header {
    background-color: var(--white);
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999; 
}

/* --- Top Bar Or --- */
.top-bar {
    background-color: var(--primary-gold);
    color: var(--white);
    font-size: 0.85rem;
    padding: 10px 5%;
    letter-spacing: 0.5px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-left a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-left a:hover {
    opacity: 0.7;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-right a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo .logo-link {
    display: flex;
    align-items: center; 
    gap: 12px;           
    text-decoration: none; 
}

.navbar-logo {
    height: 40px;        
    width: auto;
    object-fit: contain;
}

.logo h1 {
    display: inline-block;
    margin: 0;
    font-size: 1.5rem;   
    color: var(--dark-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-navy);
    font-weight: 500;
    margin: 0 18px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-gold);
}

/* Bouton Contact harmonisé en Noir/Or */
.btn-contact {
    background: var(--dark-navy) !important;
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
}

.btn-contact:hover {
    background: var(--primary-gold) !important;
    transform: translateY(-1px);
}

.burger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-navy);
}


/* ==========================================================================
   3. Hero Section
   ========================================================================== */
.hero {
    height: calc(100vh - 40px); 
    margin-top: 115px;          
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden; 
    width: 100%;
    z-index: 1;       
}

/* Boîte centrale translucide premium */
.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(10, 25, 47, 0.6); 
    padding: 60px 50px;
    max-width: 750px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 15px;
}

.slogan {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 400;
}

.slogan::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-gold); 
    margin: 15px auto 0 auto;
}

.description {
    max-width: 600px;
    margin: 0 auto 35px auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 300;
}

/* Bouton Rectangulaire Or uniforme */
.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--primary-gold); 
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #c99223;
    transform: translateY(-2px);
}

/* --- Arrière-plan Sliders Animé --- */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slowMotionSlider 24s infinite ease-in-out;
    pointer-events: none; 
}

@keyframes slowMotionSlider {
    0%, 5% {
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/hero1.jfif');
        transform: scale(1);
        opacity: 1;
    }
    30% { transform: scale(1.05); opacity: 1; }
    33% { opacity: 0.3; }
    34%, 38% {
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/hero2.jpeg');
        transform: scale(1);
        opacity: 1;
    }
    63% { transform: scale(1.05); opacity: 1; }
    66% { opacity: 0.3; }
    67%, 71% {
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/hero3.jpeg');
        transform: scale(1);
        opacity: 1;
    }
    96% { transform: scale(1.05); opacity: 1; }
    100% {
        background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('../images/hero1.jfif');
        transform: scale(1);
        opacity: 1;
    }
}


/* ==========================================================================
   4. Section Ministères / Cultes
   ========================================================================== */
.missions {
    background-color: var(--light-bg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.card h3 {
    color: var(--dark-navy);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}


/* ==========================================================================
   5. Section Blog & Actualités
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 {
    color: var(--dark-navy);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.btn-read-more {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.btn-read-more:hover {
    color: var(--dark-navy);
}


/* ==========================================================================
   6. Section Équipe Pastorale
   ========================================================================== */
.team {
    background-color: var(--light-bg);
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 1rem;
    color: var(--text-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img-container {
    position: relative;
    overflow: hidden;
    height: 320px;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-social {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
}

.team-social a {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--dark-navy);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--primary-gold);
    color: var(--white);
}

.team-info {
    padding: 25px 15px;
}

.team-info h3 {
    color: var(--dark-navy);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info .role {
    color: var(--primary-gold);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================================
   7. Footer / Pied de page (Solide Navy)
   ========================================================================== */
footer {
    background-color: var(--dark-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 25px 0;
    font-size: 0.9rem;
}

.footer-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-info {
    flex: 2;
    min-width: 250px;
}

.footer-info h3 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-slogan {
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.3rem;
    margin-right: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-gold);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
}


/* ==========================================================================
   8. Media Queries (Mobile & Menu Slide-in Gauche Parfait)
   ========================================================================== */
@media (max-width: 768px) {
    .top-right {
        display: none;
    }
    
    .top-bar {
        text-align: center;
        padding: 8px 0;
    }

    .top-bar-container {
        justify-content: center;
    }

    .hero {
        margin-top: 115px; 
    }

    .logo h1 {
        font-size: 1.1rem !important; 
    }

    .navbar-logo {
        height: 35px; 
    }

    /* --- Comportement Slide-in depuis la GAUCHE --- */
    .nav-links {
        display: flex; 
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: fixed;
        top: 0; 
        left: 0;
        width: 270px;         
        height: 100vh;        
        background-color: rgba(255, 255, 255, 0.99);
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        padding: 100px 30px 30px 30px; 
        z-index: 9998; 
        
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 12px 0;
        width: 100%;
    }

    .nav-links li a {
        margin: 0;
        font-size: 1rem;
        display: block;
        padding: 6px 0;
        color: var(--dark-navy);
    }

    .btn-contact {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .burger {
        display: block;
        padding: 5px; 
        position: relative;
        z-index: 10000; 
    }

    /* --- Contenu Hero Compact sur mobile (Style Mr Hotel) --- */
    .hero-content {
        padding: 35px 20px; 
        width: 90%; 
        max-width: 330px; 
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    
    .hero-content h2 {
        font-size: 1.5rem; 
        letter-spacing: 1px;
    }
    
    .slogan {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .slogan::after {
        width: 35px; 
        margin: 10px auto 0 auto;
    }
    
    .description {
        font-size: 0.8rem; 
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.8rem;
    }
}