/*
 * Style global - fichier unique
 * Regroupe les anciens fichiers CSS dans l'ordre de chargement historique
 */

/* ========================= CAROUSEL START ========================= */
.carousel-section {
    padding: 50px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 600;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    padding: var(--space-md);
    margin: 0 auto;
    max-width: 100%;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: var(--space-lg);
    align-items: center;
    justify-content: flex-start;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 33.333%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding: 0 5px;
}

.carousel-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .slide-caption {
    transform: translateY(0);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: var(--space-md);
}

.carousel-next {
    right: var(--space-md);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

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

.carousel-dot.active {
    background: #2c5530;
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.lightbox-image-container {
    text-align: center;
    max-width: 80vw;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* Responsive carousel */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 50%;
        padding: 0 5px;
    }

    .carousel-prev {
        left: -15px;
    }

    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
        padding: 0 10px;
    }

    .carousel-image {
        height: 250px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .lightbox-arrow {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-image-container {
        max-width: 95vw;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-image {
        height: 200px;
    }

    .slide-caption {
        padding: 15px;
        font-size: 0.8rem;
    }
}
/* ========================= CAROUSEL END ========================= */

/* 
 * Reset CSS - Normalisation des styles navigateurs
 * Basé sur une version moderne et simplifiée
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    font-size: inherit;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Amélioration de l'accessibilité */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Réduction de mouvement pour les utilisateurs qui le préfèrent */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 
 * Variables CSS - Palette de couleurs et constantes de design
 * Définit tous les tokens de design du site
 */

:root {
    /* Couleurs principales */
    --primary: #296330;
    --primary-dark: #1e4923;
    --primary-light: #3d8245;

    /* Couleurs de texte */
    --text: #212529;
    --text-light: #6c757d;
    --text-muted: #adb5bd;

    /* Couleurs de fond */
    --white: #ffffff;
    --light: #f8f9fa;
    --lighter: #e9ecef;
    --border: #dee2e6;

    /* Couleurs d'état */
    --success: #296330;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;

    /* Typographie */
    --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Poids de police */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Hauteurs de ligne */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Espacements */
    --space-xs: 0.25rem;    /* 4px */
    --space-sm: 0.5rem;     /* 8px */
    --space-md: 1rem;       /* 16px */
    --space-lg: 1.5rem;     /* 24px */
    --space-xl: 2rem;       /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 6rem;      /* 96px */

    /* Rayons de bordure */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-full: 50%;

    /* Ombres */
    --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: 0.15s ease-in-out;
    --transition-normal: 0.2s ease-in-out;
    --transition-slow: 0.3s ease-in-out;

    /* Breakpoints (pour JS) */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Largeurs max des containers */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-2xl: 1320px;
}

/* 
 * Layout CSS - Grilles, containers et mise en page responsive
 * Gère la structure générale et la responsivité du site
 */

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

/* Configuration de base */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text);
    background-color: var(--white);
}



/* Container principal */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 576px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--container-xl);
    }
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;  /* Espacement modéré entre sections */
}

.section-light {
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl); /* Réduction de l'espacement */
    position: relative;
    padding-bottom: var(--space-md); /* Légère réduction du padding */
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: #2d3748;
    margin-bottom: var(--space-md);
    position: relative;
}


/* Style spécial pour le header principal de la section projet */
.main-project-header h2 {
    font-size: var(--font-size-4xl);
}

.main-project-header::after {
    width: 140px;
    height: 4px;
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin: 0 auto;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.project-text {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

/* Grilles de contenu */
.content-grid {
    display: grid;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-text h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--space-md);
}

.content-text p {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-relaxed);
}

.content-image {
    position: relative;
}

.content-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Listes d'objectifs */
.objectives-list {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.objectives-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    min-height: 24px;
    display: flex;
    font-size: 18px;
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

.objectives-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Grille de galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Informations de contact */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    min-height: 350px;
}

.contact-item {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition-normal);
    min-width: 260px;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
}

.contact-item h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.contact-item a {
    color: var(--text);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-item p {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

/* Overlay du menu mobile */
.navbar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 900;
}

.navbar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

/* Responsive breakpoints pour JavaScript */
.breakpoint-indicator {
    display: none;
}

.breakpoint-indicator::before {
    content: "xs";
}

@media (min-width: 576px) {
    .breakpoint-indicator::before {
        content: "sm";
    }
}

@media (min-width: 768px) {
    .breakpoint-indicator::before {
        content: "md";
    }
}

@media (min-width: 992px) {
    .breakpoint-indicator::before {
        content: "lg";
    }
}

@media (min-width: 1200px) {
    .breakpoint-indicator::before {
        content: "xl";
    }
}

@media (max-width: 768px) {
    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1rem;
        min-width: unset;
    }
}

/* 
 * Components CSS - Composants UI du site Mosquée de Tarascon
 * 
 * Structure du fichier :
 * 1. Navigation Header (desktop/mobile)
 * 2. Section Hero (image de fond et contenu principal)
 * 3. Boutons et éléments interactifs
 * 4. Carousel de galerie (responsive)
 * 5. Lightbox pour images
 * 6. Sections de contenu
 * 7. Footer
 * 8. Media queries responsives
 */

/* =====================================================
   1. NAVIGATION HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 70px;
    /* Hauteur standard */
}

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


/* Bouton Faire un don dans le header */
.header-donate-btn {
    display: inline-flex;
    align-items: center;
    margin-right: var(--space-md);
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 6px;
}


/* === HERO SECTION === */
.hero {
    position: relative;
    /* max-height: 50vh; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    margin-top: 70px;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: var(--space-4xl) var(--space-xl);
    display: flex;
    align-items: center;
    /* max-height: 50vh; */
}

.hero-text {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
    color: var(--white);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: var(--text-shadow);
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2xl);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Conteneur pour les boutons du hero */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
    max-width: 100%;
}

.hero-text .btn {
    display: inline-block;
    margin: 0;
    text-align: center;
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-md) var(--space-lg);
    width: auto;
    max-width: 200px;
}

/* Style spécifique pour le bouton don dans le hero */
.hero-text .btn-donate {
    /* background: linear-gradient(135deg, #f6f5f2 0%, #f2f1ee 100%); */
    background: linear-gradient(135deg, #EEB965 0%, #EEB965 100%);

    color: white;
    border-color: transparent;
    box-shadow: 0 8px 16px rgba(44, 90, 160, 0.3);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    width: auto;
    max-width: 350px;
    min-width: 300px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-text .btn-donate:hover {
    color: white;

}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}
/* * Styles pour l'intégration Mawaqit (horaires de prières) */ 
 
.iframe-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    margin: 0 auto;
    max-width: 800px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
 
.mawaqit-iframe {
    width: 100%;
    height: 610px;
    border: none;
    display: block;
}
#prieres{
    padding-bottom: 0px!important;
}
/* Ajustement pour les petits écrans */
@media (max-width: 600px) {
    .mawaqit-iframe {
        height: 650px;
    }
}
/* Annonce d'acquisition - style spécifique */
.acquisition-section {
    padding: var(--space-md) 0;
    width: 100%;
    box-sizing: border-box;
}

.acquisition-content {
   
    margin: var(--space-md) auto;
    max-width: var(--container-xl);
 
    display: block;
}

.acquisition-title {
    font-size: var(--font-size-3xl);
    color: var(--primary);
    padding-bottom: 2% !important;
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-sm) 0;
    text-align: center;
}

.acquisition-text {
    color: var(--text);
    line-height: var(--line-height-relaxed);
    margin: 1;
    text-align: left !important;
    padding-bottom: 2% !important;

}





/* Version mobile : image en background avec filtre */
@media (max-width: 767px) {
    .acquisition-content {
        padding: 10px !important;
    }

    .acquisition-section {
        padding: 10px !important;
    }


    .acquisition-title {
        font-size: var(--font-size-2xl);
        text-align: center;
        margin-bottom: 10% !important;
    }

    .hero {
        /* max-height: 60vh; */
        display: block;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        padding-top: 65px;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    .hero-content {
        position: relative;
        z-index: 3;
        text-align: center;
        padding: var(--space-lg) var(--space-sm);
        max-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        color: white;
    }

    .hero-image {
        display: none;
    }

    .hero-title {
        font-size: var(--font-size-xl);
        color: white;
        text-align: center;
        margin-bottom: var(--space-sm);
    }

    .hero-subtitle {
        font-size: var(--font-size-md);
        color: rgba(255, 255, 255, 0.9);
        text-align: center;
        margin-bottom: var(--space-sm);
    }

    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-md);
        color: rgba(255, 255, 255, 0.85);
        text-align: center;
        line-height: 1.4;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-xs);
        margin-top: var(--space-xs);
        width: 100%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text .btn {
        display: inline-block;
        margin: 0 auto;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
        width: 100%;
        max-width: 200px;
    }

    .hero-text .btn-donate {
        padding: var(--space-sm) var(--space-md);
        min-width: 280px;
        max-width: 100%;
        font-size: var(--font-size-lg);
    }
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    font-weight: var(--font-weight-medium);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-decoration: none;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Bouton Faire un don mis en valeur */
.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #ff7a59 0%, #ff4d4d 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 77, 77, 0.18);
    padding: 0.6rem 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 8px;
}

/* .btn-donate:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.22);
} */

/* Responsive video wrapper with poster and lazy iframe */
.video-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.video-inner {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    background: var(--lighter);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.video-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.video-play {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* iframe when injected */
.video-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .btn-donate {
        padding: 0.5rem 0.8rem;
        font-size: var(--font-size-base);
    }

    .video-inner {
        padding-top: 56.25%;
    }
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    color: var(--white);
    background-color: var(--primary);
    transform: translateY(-1px);
}

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

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

/* === COMPTEUR DE FINANCEMENT === */
.funding-progress {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

/* Bloc d'appel aux dons mis en valeur dans la section financement */
.fundraising-call {
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.6), rgba(255, 255, 255, 0.4));
    /* padding: var(--space-lg); */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: var(--space-lg);
}

.fundraising-call p {
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.hadith-box {
    margin: var(--space-lg) auto 0;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
}

.hadith-text {
    font-size: var(--font-size-lg);
    color: var(--text);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.hadith-source {
    color: var(--text-light);
    text-align: center;
    font-size: var(--font-size-sm);
}

.btn-donate.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
    display: inline-block;
}

.progress-counter {
    margin-bottom: var(--space-xl);
}

.counter-display {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

.counter-current {
    color: var(--primary);
    transition: all 0.3s ease-out;
}

.counter-separator {
    color: var(--text-light);
    font-weight: var(--font-weight-normal);
    margin: 0 var(--space-sm);
}

.counter-target {
    color: var(--text);
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: var(--lighter);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-md);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    transition: width 2s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(-45deg,
            rgba(255, 255, 255, .2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, .2) 50%,
            rgba(255, 255, 255, .2) 75%,
            transparent 75%,
            transparent);
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

.progress-text {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
}

/* === INFORMATIONS BANCAIRES === */
.funding-info {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .funding-info {
        grid-template-columns: 2fr 1fr;
    }
}

.bank-info {
    background-color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.bank-info h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.bank-details {
    margin-bottom: var(--space-xl);
}

.bank-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--lighter);
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-row .label {
    font-weight: var(--font-weight-medium);
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--space-xs);
    display: block;
    width: 100%;
}

.bank-row .value {
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    text-align: center !important;
    font-family: monospace;
    font-size: var(--font-size-lg);
    display: block;
    width: 100%;
    margin: 0 auto;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Centrer le bouton de téléchargement */
.bank-info .btn {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
}

.funding-note {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.funding-note h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: #b7791f;
    margin-bottom: var(--space-sm);
}

.funding-note p {
    color: #856404;
    line-height: var(--line-height-relaxed);
}

/* === CAROUSEL GALERIE === */

.gallery-item {
    position: relative;
    flex: 0 0 calc(33.333% - var(--space-md));
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    min-height: 280px;
    background: var(--light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    display: block;
    opacity: 0;
    background-color: var(--lighter);
}

/* Effets hover uniquement sur desktop */
@media (min-width: 1025px) {
    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: var(--space-lg);
    transform: translateY(0);
    transition: transform var(--transition-normal);
}

.gallery-overlay h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.gallery-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.features-list {
    margin-top: var(--space-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    justify-content: center;
}

.feature-icon {
    font-size: var(--font-size-lg);
}

/* Navigation du carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}


/* Indicateurs du carousel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.carousel-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--primary-light);
}

/* Responsive carousel */
@media (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc(50% - var(--space-sm));
    }

    .carousel-container {
        padding: var(--space-sm);
    }
}

/* Réinitialisation des styles desktop pour éviter les conflits avec mobile */
@media (min-width: 769px) {
    .carousel-track .gallery-item {
        flex: 0 0 calc(33.333% - var(--space-md)) !important;
        flex-basis: calc(33.333% - var(--space-md)) !important;
        width: auto !important;
        max-width: none !important;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100% !important;
        min-height: 250px;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .gallery-item img {
        height: 200px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: var(--space-xs);
    }

    .carousel-next {
        right: var(--space-xs);
    }

    .gallery-overlay {
        padding: var(--space-md);
    }

    .carousel-container {
        padding: var(--space-xs);
    }

    .carousel-track {
        gap: 0 !important;
        justify-content: flex-start;
    }

    /* Force la largeur à 100% pour chaque slide sur mobile */
    .carousel-track .gallery-item {
        flex-shrink: 0;
        flex-grow: 0;
        flex-basis: 100% !important;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100% !important;
        margin: 0;
    }

    .carousel-track {
        gap: 0;
    }

    .carousel-container {
        padding: var(--space-xs);
        margin: 0 var(--space-xs);
    }
}

/* === FOOTER === */
.footer {
    background-color: var(--text);
    color: var(--white);
    padding: var(--space-xl) 0;
}

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

.footer-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.back-to-top {
    color: var(--white);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.back-to-top:hover {
    color: var(--primary-light);
}

/* footer links (legal page, etc) match site palette and avoid default blue on iOS */
.footer-content a,
.footer-link {
    color: var(--white);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    -webkit-text-fill-color: var(--white); /* iOS override */
    transition: color var(--transition-fast);
}

.footer-content a:hover,
.footer-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* horizontal separator between footer links */
.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-separator {
    color: rgba(255,255,255,0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* Classes d'animation */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Animation au scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* === AMÉLIORATIONS RESPONSIVE === */

/* Statistiques du projet */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--light);
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

/* 
 * Pages CSS - Styles spécifiques aux pages
 * Ajustements et styles particuliers pour certaines sections
 */

/* === AJUSTEMENTS SECTION ACCUEIL === */
#accueil .hero-image img {
    object-position: 80% center; /* Ajuste la position pour centrer le Coran */
}



/* === SECTION PROJET === */
#projet {
    position: relative;
}

#projet .content-grid {
    position: relative;
}

#projet .content-text {
    padding: var(--space-lg);
    text-align: center;
}

#projet .content-text h3,
#projet .content-text h4,
#projet .content-text .objectives-list,
#projet .content-text .features-list {
    text-align: center;
}

#projet .content-text p {
    text-align: left;
}

#projet .content-text h4 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
}

#projet .objectives-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
}

#projet .project-stats {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#projet .objectives-list li {
    transition: color var(--transition-fast);
}

#projet .objectives-list li:hover {
    color: var(--text);
}

/* === SECTION FINANCEMENT === */
#financement {
    background: linear-gradient(135deg, var(--light) 0%, rgba(248, 249, 250, 0.8) 100%);
}

#financement .funding-progress {
    background-color: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

#financement .funding-progress::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(25, 135, 84, 0.03) 0%, transparent 70%);
    z-index: 1;
}

#financement .funding-progress > * {
    position: relative;
    z-index: 2;
}

.counter-animate {
    transform: scale(1.1);
}

/* === SECTION GALERIE === */
#galerie {
    position: relative;
}

#galerie .gallery-grid {
    perspective: 1000px;
}

#galerie .gallery-item {
    transform-style: preserve-3d;
    transition: all var(--transition-slow);
}

#galerie .gallery-item:nth-child(even) {
    transform: rotateY(1deg);
}

#galerie .gallery-item:nth-child(odd) {
    transform: rotateY(-1deg);
}

/* Effets hover uniquement sur desktop */
@media (min-width: 1025px) {
    #galerie .gallery-item:hover {
        transform: rotateY(0deg) translateY(-8px);
    }
}

.gallery-item img.loaded {
    opacity: 1;
}

/* === SECTION CONTACT === */
#contact {
    background: var(--white);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

#contact .contact-item {
    transition: all var(--transition-normal);
}

#contact .contact-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* === SECTIONS OPTIONNELLES (COMMENTÉES) === */
/*
#histoire {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#histoire .content-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

#transparence {
    padding: var(--space-4xl) 0;
}

.expenses-table {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.expenses-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.expenses-table th {
    background-color: var(--light);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

.expenses-table tbody tr:hover {
    background-color: var(--light);
}

/* Section chantier styles spécifiques */
#chantier .timeline {
    margin-top: var(--space-2xl);
}

/* Fin des styles spécifiques au chantier */

/* === RESPONSIVE AJUSTEMENTS === */
@media (max-width: 575px) {
    .section {
        padding: var(--space-3xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .section-header h2 {
        font-size: var(--font-size-2xl);
    }

    #financement .funding-progress {
        padding: var(--space-lg);
    }

    .counter-display {
        font-size: var(--font-size-2xl);
    }

    .bank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .bank-row .value {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .content-grid {
        gap: var(--space-2xl);
    }

    .funding-info {
        gap: var(--space-lg);
    }

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

    .contact-info {
        gap: var(--space-lg);
    }

    .objectives-list li {
        padding-left: 35px;
        margin-bottom: 15px;
        font-size: 16px;
        text-align: left;
        line-height: 1.4;
    }

    .objectives-list li::before {
        font-size: 20px;
        left: 8px;
        top: 0.5em;
        transform: translateY(-50%);
        width: auto;
    }
}

/* === DARK MODE PREPARATION === */
@media (prefers-color-scheme: dark) {
    /* Préparation pour un futur mode sombre */
    /* Actuellement désactivé pour ce projet */
}

/* === PRINT STYLES === */
@media print {
    .header,
    .btn,
    .lightbox,
    .footer {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white !important;
        color: black !important;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .hero {
        max-height: none;
        /* padding: 2rem 0; */
    }

    .hero-title {
        color: black !important;
        font-size: 18pt;
    }
}

/* Les classes d'états, d'interactions et d'accessibilité ont été déplacées vers components.css */

/* ========================= MENU START ========================= */

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    line-height: 1;
}

.navbar-title {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c5530;
    margin: 0;
    line-height: normal;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5530;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5530;
    transition: width 0.3s ease;
}

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

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    transition: all 0.3s ease;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu responsive */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar-brand {
        gap: 0.5rem;
    }

    .navbar-logo {
        font-size: 1.3rem;
    }

    .navbar-title {
        font-size: 1.3rem;
        ;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-menu li {
        border-bottom: 1px solid #eee;
        padding: 1rem 0;
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }
}

/* ========================= MENU END ========================= */

/* Styles spécifiques pour les compteurs de financement */

/* Conteneur des compteurs */
.funding-counters {
    margin-top: var(--space-xl);
}

.counters-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

/* Cartes de compteurs */
.counter-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md) var(--space-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    max-width: 240px;
    flex: 0 0 auto;
    text-align: center;
}

.counter-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* En-têtes des cartes */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: white;
}

.leetchi-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e53 100%);
}

.banque-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.card-header h3 {
    color: var(--text-primary);
    font-size: var(--font-lg);
    font-weight: 600;
    margin: 0;
}

/* Montants des cartes */
.card-amount-wrapper {
    margin-bottom: var(--space-sm);
}

.card-amount {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-mono);
}

.card-date {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}





/* Responsive design */
@media (max-width: 768px) {
    .counters-grid {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }

    .counter-card {
        padding: var(--space-md);
        min-width: unset;
        max-width: none;
        width: 100%;
    }

    .card-amount {
        font-size: var(--font-lg);
    }
}

@media (max-width: 480px) {
    .counter-card {
        padding: var(--space-sm);
    }

    .card-icon {
        width: 36px;
        height: 36px;
    }

    .card-amount {
        font-size: var(--font-md);
    }

    .card-header h3 {
        font-size: var(--font-sm);
    }
}

/* ========================= PAGE COMPTEUR ========================= */
.page-compteur * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-compteur {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Conteneur principal */
.page-compteur .container {
    width: 100%;
    max-width: 42rem; /* max-w-2xl */
}

.page-compteur .card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* En-tête */
.page-compteur .header {
    background: linear-gradient(90deg, #10b981 0%, #0d9488 100%);
    padding: 2rem;
    color: white;
}

.page-compteur .header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.page-compteur .wallet-icon {
    width: 2rem;
    height: 2rem;
    color: white;
}

.page-compteur .header h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

.page-compteur .subtitle {
    color: #d1fae5;
    font-size: 1rem;
}

/* Contenu */
.page-compteur .content {
    padding: 2rem;
}

/* États de chargement et d'erreur */
.page-compteur .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.page-compteur .spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.page-compteur .error {
    text-align: center;
    padding: 3rem 0;
    color: #dc2626;
    font-weight: 500;
}

.page-compteur .hidden {
    display: none !important;
}

/* Section total */
.page-compteur .total-section {
    margin-bottom: 2rem;
}

.page-compteur .total-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.page-compteur .remaining-info {
    margin-bottom: 0.75rem;
    text-align: center;
}

.page-compteur .remaining-text {
    font-size: 0.875rem;
    color: #475569;
    font-style: italic;
}

.page-compteur .remaining-text strong {
    color: #dc2626;
    font-weight: 600;
    font-style: normal;
}

.page-compteur .total-label {
    color: #475569;
    font-weight: 500;
    font-size: 1rem;
}

.page-compteur .total-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.page-compteur .goal-reached {
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #10b981 0%, #0d9488 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Barre de progression */
.page-compteur .progress-bar {
    position: relative;
    height: 1.5rem;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.page-compteur .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #0d9488 100%);
    transition: width 0.7s ease-out;
    width: 0%;
}

.page-compteur .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.page-compteur .progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
}

.page-compteur .goal-label {
    font-weight: 500;
}

/* Grille des cartes */
.page-compteur .cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .page-compteur .cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-compteur .header {
        padding: 2rem;
    }

    .page-compteur .header h1 {
        font-size: 1.875rem;
    }

    .page-compteur .total-amount {
        font-size: 2.5rem;
    }

    .page-compteur .subtitle {
        font-size: 1rem;
    }

    .page-compteur .wallet-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Cartes individuelles */
.page-compteur .card-item {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid;
}

.page-compteur .leetchi-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}

.page-compteur .banque-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.page-compteur .card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.page-compteur .card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.page-compteur .leetchi-icon {
    background-color: #3b82f6;
}

.page-compteur .banque-icon {
    background-color: #f59e0b;
}

.page-compteur .card-header h3 {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.page-compteur .card-amount {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-compteur .leetchi-card .card-amount {
    color: #1d4ed8;
}

.page-compteur .banque-card .card-amount {
    color: #d97706;
}

.page-compteur .card-date {
    font-size: 0.75rem;
    color: #64748b;
}

/* Info de rafraîchissement */
.page-compteur .refresh-info {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.page-compteur .refresh-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.page-compteur .refresh-icon {
    color: #64748b;
}

.page-compteur .refresh-text {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

.page-compteur .refresh-description {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* Responsive pour mobile */
@media (max-width: 639px) {
    .page-compteur .header {
        padding: 1.5rem;
        text-align: center;
    }

    .page-compteur .header-content {
        justify-content: center;
    }

    .page-compteur .header h1 {
        font-size: 1.5rem;
    }

    .page-compteur .content {
        padding: 1.5rem;
    }

    .page-compteur .total-amount {
        font-size: 2rem;
    }

    .page-compteur .card-amount {
        font-size: 1.5rem;
    }

    .page-compteur .card-header {
        justify-content: center;
        text-align: center;
    }

    .page-compteur .card-item {
        text-align: center;
    }

    .page-compteur .remaining-info {
        margin-bottom: 0.5rem;
    }

    .page-compteur .remaining-text {
        font-size: 0.8rem;
    }

    .page-compteur .progress-text {
        font-size: 0.8rem;
        font-weight: 900;
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.6);
    }

    .page-compteur .wallet-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* ========================= PAGE MENTIONS LEGALES ========================= */
.page-legal {
    --m-peps: #296330;
    --m-bg-light: #f8f9fa;
}

.page-legal .legal-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
    background-color: var(--m-bg-light);
}

.page-legal .legal-section {
    margin-bottom: 30px;
}

.page-legal h2 {
    border-bottom: 2px solid var(--m-peps);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.page-legal .back-btn,
.page-legal .legal-content a {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--m-peps);
    font-weight: bold;
    -webkit-text-fill-color: var(--m-peps); /* iOS override */
}

.page-legal .legal-content a:hover,
.page-legal .legal-content a:focus {
    text-decoration: underline;
}
