/* ============================================
   EDEN MINISTÈRE - PROFESSIONAL CSS FRAMEWORK
   ============================================ */

/* Styles pour la page des enseignements */
.enseignements-page {
    padding: 4rem 0;
}

/* Filtres et recherche */
.enseignements-filters {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.enseignements-filters .form-control {
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
}

.enseignements-filters .form-select {
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

/* Grille des enseignements */
.enseignements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Carte d'enseignement */
.enseignement-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.enseignement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.enseignement-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enseignement-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.enseignement-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.enseignement-card-meta i {
    margin-right: 0.25rem;
    color: var(--color-secondary);
}

.enseignement-card-text {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.enseignement-card-footer {
    padding: 1rem 1.5rem;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

/* Badges de catégorie */
.badge-category {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    background-color: var(--color-primary-light);
    color: white;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.page-item {
    margin: 0 0.25rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

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

/* Détail d'un enseignement */
.enseignement-header {
    margin-bottom: 2.5rem;
}

.enseignement-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.enseignement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.enseignement-content {
    line-height: 1.8;
    color: var(--color-text);
}

.enseignement-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.enseignement-content p,
.enseignement-content ul,
.enseignement-content ol {
    margin-bottom: 1.5rem;
}

.enseignement-content h2,
.enseignement-content h3,
.enseignement-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* ===== Améliorations stylistiques pour la page 'Enseignement' ===== */
.blog-post {
    background: transparent;
}

.blog-post header img.img-fluid {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.display-5 {
    font-size: 2rem;
    line-height: 1.15;
    color: var(--color-primary);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}
.breadcrumb .breadcrumb-item a { color: var(--color-primary); }

.lead {
    font-size: 1.05rem;
    color: var(--color-text);
}

.blog-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
}

.social-share a.btn,
.social-share button.btn {
    margin-left: 0.35rem;
    border-radius: 6px;
}

#copy-message {
    transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

/* Similar items: cards spacing and consistent button look */
.row-cols-1.row-cols-md-3 .card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 180ms ease;
}
.row-cols-1.row-cols-md-3 .card:hover { transform: translateY(-6px); }

/* Responsive tweak: ensure content padding on small screens */
@media (max-width: 768px) {
    .display-5 { font-size: 1.5rem; }
    .blog-post header img.img-fluid { max-height: 320px; }
}

/* Fin des améliorations pour la page enseignement */

/* Sidebar des enseignements similaires */
.similar-enseignements {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 3rem;
}

.similar-enseignements h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.similar-enseignement-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.similar-enseignement-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.similar-enseignement-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-right: 1rem;
}

.similar-enseignement-title {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.25rem;
}

.similar-enseignement-meta {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* Version mobile */
@media (max-width: 768px) {
    .enseignements-grid {
        grid-template-columns: 1fr;
    }
    
    .enseignement-title {
        font-size: 1.75rem;
    }
    
    .enseignements-filters {
        padding: 1rem;
    }
    
    .enseignements-filters .row > div {
        margin-bottom: 1rem;
    }
}

/* 1. ROOT VARIABLES & THEME */
:root {
    /* Colors */
    --color-primary: #1D3A5F; /* navy */
    --color-primary-dark: #15293F;
    --color-primary-light: #4170A0;
    --color-secondary: #D9A03A; /* golden accent */
    --color-accent: #e74c3c;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-info: #3498db;
    
    /* Neutrals */
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-border: #ecf0f1;
    --color-shadow: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-serif: 'Georgia', 'Garamond', serif;
    --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1rem;
}

/* 2. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* 3. CONTAINER */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

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

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

strong, b { font-weight: var(--font-weight-bold); }
em, i { font-style: italic; }

code {
    background: var(--color-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
}

/* 5. BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    gap: var(--space-sm);
}

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

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background: var(--color-bg);
    border-color: var(--color-text);
    text-decoration: none;
}

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

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    text-decoration: none;
}

.btn-success {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}

.btn-success:hover {
    background: #229954;
    border-color: #229954;
    text-decoration: none;
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* 6. HEADER & NAVIGATION */
.site-header {
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.site-header .logo {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-header .logo:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.site-nav ul {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.site-nav a {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.site-nav a.active {
    color: var(--color-primary);
    position: relative;
    font-weight: var(--font-weight-bold);
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

/* Animation de soulignement au survol */
.site-nav a:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary-light);
    transform: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-lg);
}

@media (max-width: 768px) {
    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-surface);
        display: none;
        padding: var(--space-md) 0;
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav a {
        padding: var(--space-md) var(--space-lg);
        border-radius: 0;
    }

    .nav-toggle {
        display: inline-block;
    }
}

/* 7. HERO SECTION */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Simple blue overlay shared by all hero sections */
    background: rgba(21, 41, 63, 0.55); /* close to var(--color-primary-dark) */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-3xl) 0;
    animation: slideInUp 0.8s ease-out;
}

.hero-content .label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: white;
}

.hero-content p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 160px;
}

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

.btn-red:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.btn-border {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-border:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

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

/* 8. EVENTS BAR */
.events-bar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: var(--space-lg) 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    align-items: center;
}

.event-item {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.event-item .date {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: var(--font-weight-semibold);
}

.event-item .title {
    font-weight: var(--font-weight-bold);
    margin: var(--space-sm) 0;
    font-size: var(--font-size-base);
}

.more-events-btn {
    color: white;
    font-weight: var(--font-weight-bold);
    padding: var(--space-md) var(--space-lg);
    transition: all var(--transition-base);
    text-align: center;
}

.more-events-btn:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* 9. SECTIONS */
.contact-map-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info {
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.separator {
    color: var(--color-border);
    margin: var(--space-lg) 0;
    text-align: center;
    letter-spacing: var(--space-md);
    opacity: 0.5;
}

/* 10. SECONDARY BLOCKS */
.secondary-blocks {
    padding: 5rem 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.secondary-blocks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

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

.block {
    padding: var(--space-2xl);
    min-height: 200px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.block:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.block:hover::before {
    transform: scaleX(1);
}

.block h2 {
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.block h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary-light);
    transition: width 0.3s ease;
}

.block:hover h2::after {
    width: 80px;
}

.block p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.block:hover p {
    color: var(--color-text);
}

.block::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    transition: all 0.4s ease;
}

.block-worship::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231D3A5F"><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6zm-1.5 0c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5h-3z"/></svg>');
}

.block-calendar::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231D3A5F"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
}

.block-ministries::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231D3A5F"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
}

.block-missions::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231D3A5F"><path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/></svg>');
}

.block:hover::after {
    transform: rotate(10deg) scale(1.2);
    opacity: 0.2;
}

/* Styles pour le slider "Nous croyons" */
.beliefs-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

.beliefs-slide {
    display: none;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
}

.beliefs-slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

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

.beliefs-slide h2 {
    color: var(--color-primary);
    font-size: 1.8em;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.beliefs-slide h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

.beliefs-slide p {
    color: var(--color-text);
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.beliefs-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.beliefs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beliefs-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.beliefs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--color-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--color-primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.beliefs-arrow:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.beliefs-arrow.prev {
    left: 20px;
}

.beliefs-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .beliefs-arrow {
        width: 35px;
        height: 35px;
    }
    
    .beliefs-slide {
        padding: 1.5rem;
    }
}

/* 10.5 NOS VALEURS FONDAMENTALES */
.values-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.values-container {
    position: relative;
    z-index: 2;
}

.values-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 3rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

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

.value-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transition: all 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-primary);
}

.value-content {
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 2;
    background: white;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.value-card h3 {
    text-align: center;
    color: var(--color-primary-dark);
    margin-bottom: 1.2rem;
    font-size: 1.5em;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.value-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--color-primary-light);
    transition: all 0.3s ease;
}

.value-card:hover h3::after {
    width: 60px;
    background: var(--color-primary);
}

.value-card p {
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.7;
    margin: 0;
    transition: color 0.3s ease;
}

.value-card:hover p {
    color: var(--color-text);
}

/* Effet de fond décoratif */
.values-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 11. NEW SERMONS / ENSEIGNEMENTS & MEDITATIONS */
.new-sermons-section {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--color-surface);
}

.new-sermons-section h2 {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--space-sm);
}

.sermons-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--space-2xl);
}

.sermon-sidebar {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 260px;
}

.sermon-list {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.sermon-post {
    flex: 1;
}

.sermon-thumb {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.sermon-post .date {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    color: var(--color-text-light);
}

.sermon-post h3 {
    font-size: var(--font-size-lg);
    margin: var(--space-xs) 0;
}

.sermon-post .author {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.sermon-post .excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.sermon-footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn.btn-small-red {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.btn.btn-small-red:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.sermon-footer-links .link {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    color: var(--color-text-light);
}

.sermon-footer-links .link:hover {
    color: var(--color-text);
    text-decoration: none;
}

/* 12. FORMS */
.form-group {
    margin-bottom: var(--space-lg);
}

label {
    display: block;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    background: var(--color-surface);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.1);
}

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

/* 13. TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th, td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-bg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

tr:hover {
    background: rgba(255, 127, 0, 0.02);
}

/* 14. BADGES & LABELS */
.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    background: var(--color-primary);
    color: white;
}

.badge-success { background: var(--color-success); }
.badge-warning { background: var(--color-warning); }
.badge-danger { background: var(--color-accent); }
.badge-info { background: var(--color-info); }

/* 15. FOOTER */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.site-footer h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: white;
    text-decoration: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* 16. GALERIE "MOMENTS DES RETRAITES" */
.galerie {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--color-surface);
}

.galerie h2 {
    text-align: center;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xl);
}

.galerie .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.home-gallery-card {
    position: relative;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.home-gallery-thumb {
    width: 100%;
    padding-bottom: 66.66%; /* ratio 3:2 plus petit */
    position: relative;
    background: var(--color-bg);
}

.home-gallery-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-gallery-caption {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: white;
}

.home-gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.home-gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.home-gallery-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    max-width: 700px;
    width: 100%;
    margin: 0 var(--space-md);
    box-shadow: var(--shadow-xl);
    z-index: 1;
}

.home-gallery-modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.home-gallery-modal-image-wrapper {
    width: 100%;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--color-bg);
}

.home-gallery-modal-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-gallery-modal-title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

.home-gallery-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* 17. UTILITY CLASSES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-primary-light); }
.text-muted { color: var(--color-text-light); }
.text-danger { color: var(--color-accent); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.bg-primary { background: var(--color-primary); }
.bg-light { background: var(--color-bg); }
.bg-white { background: white; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* 18. RESPONSIVE */
@media (max-width: 1024px) {
    .contact-grid,
    .block-grid,
    .event-grid,
    .sermons-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 0.95rem;
        --container-padding: 1.5rem;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    
    .hero-section {
        min-height: 400px;
    }
    
    .hero-content {
        padding: var(--space-2xl) 0;
    }
    
    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-content p {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        min-width: 100%;
    }
    
    .events-bar {
        margin-top: 0;
        padding: var(--space-lg) 0;
    }
    
    .event-grid {
        grid-template-columns: 1fr;
    }
    
    .sermons-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .sermon-sidebar {
        min-height: 200px;
        margin-bottom: var(--space-lg);
    }
    
    .sermon-list {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --space-3xl: 2rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    table {
        font-size: var(--font-size-xs);
    }
    
    th, td {
        padding: var(--space-sm);
    }
}
