/* Nettoyage : .contact-info et .contact-item fusionnées, media query simplifiée */
.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 {
    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;
}

@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-color: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
    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, #4a6fa5 0%, #395a87 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);
    }
}

/* Version mobile : image en background avec filtre */
@media (max-width: 767px) {
    .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);
}

.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);
}

.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 === */
.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;
}

.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);
    display: block;
    opacity: 1;
    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;
}

/* 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);
}

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

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

/* 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);
    }
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    animation: fadeIn 0.3s ease-out;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-lg);
}

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

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

.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);
}

@media (max-width: 575px) {
    .footer-content {
        text-align: center;
        flex-direction: column;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@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);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: var(--font-weight-medium);
}

/* Liste des fonctionnalités */
.features-list {
    margin-top: var(--space-xl);
    text-align: center;
}

/* Layout spécifique pour la section projet en vertical */
.vertical-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.project-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-image-elegant {
    text-align: center;
    margin: 0 auto var(--space-2xl);
    width: 100%;
    display: flex;
    justify-content: center;
}

.plan-wrapper {
    position: relative;
    max-width: 600px;
    padding: 12px;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-wrapper img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-sm) + 2px);
    display: block;
}

.plan-wrapper .image-caption {
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-top: 1px solid var(--lighter);
}

.caption-icon {
    font-size: 1.1em;
    margin-right: var(--space-xs);
    color: var(--primary);
    vertical-align: middle;
}

/* Style pour les sous-titres de section */
.section-subtitle {
    color: var(--text);
    font-size: var(--font-size-2xl);
    /* margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg); */
    text-align: center;
    position: relative;
    font-weight: var(--font-weight-semibold);
    width: 100%;
    padding-bottom: var(--space-md);
    font-family: var(--font-family);
}

.section-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Styles pour les listes avec icônes thématiques */
.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;
    align-items: center;
    font-size: 18px;
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
}

.objectives-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary);
    font-weight: var(--font-weight-bold);
}

/* Icônes thématiques simples */
.icon-mosque::before {
    content: "🏠";
}

.icon-charity::before {
    content: "📝";
}

.icon-community::before {
    content: "�";
}

.icon-donate::before {
    content: "�";
}

.icon-share::before {
    content: "�";
}

.icon-talk::before {
    content: "�️";
}

.icon-prayer::before {
    content: "🏠";
}

.icon-diversity::before {
    content: "🤝";
}

.icon-education::before {
    content: "�";
}

.icon-building::before {
    content: "�";
}

/* Ajustements responsifs */
@media (max-width: 767px) {
    .vertical-grid {
        gap: var(--space-lg);
        /* Réduit encore plus l'espacement sur mobile */
    }

    .project-image-top {
        margin-bottom: var(--space-md);
        /* Réduit la marge */
    }

    .project-text h3,
    .project-text h4,
    .project-text p,
    .project-text .objectives-list {
        text-align: center;
    }

    /* Ajustements pour les listes d'objectifs sur mobile */
    .objectives-list li {
        padding-left: 35px;
        margin-bottom: 15px;
        font-size: 16px;
        text-align: left;
        line-height: 1.4;
        min-height: 24px;
    }

    .project-text .features-grid {
        justify-content: center;
    }

    .project-text .hero-cta {
        display: flex;
        justify-content: center;
    }

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

.features-list h4 {
    margin-bottom: var(--space-md);
    color: var(--text);
    font-weight: var(--font-weight-semibold);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    justify-items: center;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 300px;
    justify-content: flex-start;
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 20px;
    color: var(--primary);
    margin-right: var(--space-sm);
    font-weight: var(--font-weight-bold);
}

/* Légende d'image */
.image-caption {
    margin-top: var(--space-sm);
    text-align: center;
}

.image-caption p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-style: italic;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
    padding-left: calc(60px + var(--space-lg));
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--border);
    border: 3px solid var(--white);
    transition: all var(--transition-normal);
}

.timeline-item.completed .timeline-marker {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2);
}

.timeline-item.active .timeline-marker {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-item.upcoming .timeline-marker {
    background: var(--lighter);
    border-color: var(--border);
}

.timeline-content {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-date {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.timeline-content h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--space-sm);
}

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

/* === TÉMOIGNAGES === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.testimonial-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
    font-family: serif;
}

.testimonial-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.testimonial-content {
    margin-bottom: var(--space-lg);
    margin-top: var(--space-lg);
}

.testimonial-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-info h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.author-info span {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* === RESPONSIVE AMÉLIORATIONS === */
@media (max-width: 768px) {
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--space-md);
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    .features-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-item {
        max-width: 320px;
        margin: 0 auto;
        justify-content: center;
        text-align: left;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: calc(30px + var(--space-md));
    }

    .timeline-marker {
        left: 7px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: var(--space-md);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .testimonial-item {
        padding: var(--space-lg);
    }

    /* Financement responsive */
    .funding-info {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .bank-info {
        padding: var(--space-lg);
        text-align: center;
    }

    .bank-row {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md) 0;
        justify-content: center;
        gap: var(--space-xs);
    }

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

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

    .bank-info .btn {
        margin-top: var(--space-lg);
        width: 100%;
        max-width: 280px;
    }

    /* Réduction générale des espacements sur mobile */
    .bank-info {
        padding: var(--space-lg);
    }

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

    .vertical-grid {
        gap: var(--space-lg);
    }
}

/* Réduction générale des espacements pour améliorer la cohérence */
@media (max-width: 480px) {
    .hero-description {
        margin-bottom: var(--space-sm);
    }

    .hero-title {
        margin-bottom: var(--space-xs);
    }

    .hero-subtitle {
        margin-bottom: var(--space-xs);
    }

    /* Réduire les paddings des sections principales */
    .bank-info {
        padding: var(--space-md);
    }

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

/* === UTILITAIRES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Style pour la mise en valeur de la date limite */
.deadline-highlight {
    display: inline-block;
    background-color: #dc3545;
    /* Couleur rouge vif */
    color: white;
    font-weight: var(--font-weight-bold);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
    margin: 0 var(--space-xs);
    position: relative;
}

/* Style pour la boîte de hadith */
.hadith-box {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) auto;
    max-width: 800px;
    box-shadow: var(--shadow-sm);
}

.hadith-text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text);
    font-style: italic;
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
}

.hadith-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5em;
    color: var(--primary);
    font-family: serif;
    line-height: 1;
}

.hadith-source {
    font-size: var(--font-size-base);
    color: var(--text-light);
    text-align: right;
    font-weight: var(--font-weight-medium);
}

.deadline-calendar {
    font-size: 1.2em;
    display: inline-block;
    vertical-align: middle;
    margin-right: var(--space-xs);
}

/* Style pour la mise en valeur de la date limite */
.deadline-highlight {
    display: inline-block;
    background-color: var(--danger);
    color: white;
    font-weight: var(--font-weight-bold);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    margin-right: var(--space-xs);
}

.deadline-calendar {
    margin-right: var(--space-xs);
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === STATES ET INTERACTIONS === */
.is-loading {
    cursor: wait;
    opacity: 0.7;
}

.has-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

.is-success {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25) !important;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    .progress-fill::after {
        animation: none;
    }

    .gallery-item,
    .contact-item,
    .btn {
        transition: none !important;
    }

    .hero-title,
    .hero-subtitle,
    .hero-description {
        animation: none !important;
    }
}

/* Pour les lecteurs d'écran */
.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* état d'origine restauré */
}