/* General styling */
.fundraiser {
    padding: 40px 20px;
    background-color: #f8f8f8;
}

.containers {
    /* Ajoutez ces propriétés */
    max-width: 1200px; /* ou la largeur souhaitée */
    margin: 0 auto; /* centrage horizontal */
    padding: 0 15px; /* padding pour les petits écrans */
}
.fundraiser-container-A {
    max-width: 1200px;
    /* margin: 0 auto;
    padding: 0 15px; */
}

.fundraiser-donation-card {
    max-width: 450px; /* Largeur maximale */
    margin-left: auto; /* Aligne à droite sur grands écrans */
    margin-right: 0; /* Enlève la marge droite */
}


/* Header section */
.fundraiser-header-A {
    margin-bottom: 40px;
}

.fundraiser-header-A h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.fundraiser-header-A p {
    font-size: 18px;
    color: #666;
}

/* Main content */
/* .fundraiser-main-content {
    display: flex;
    gap: 40px;
    justify-content: space-between;
} */

/* Image section */
.fundraiser-image-section img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Donation info section */
.fundraiser-donation-info {
    flex: 1;
}

.fundraiser-progress {
    background-color: #ddd;
    border-radius: 25px;
    height: 20px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.fundraiser-progress-bar {
    background-color: #6a62f1;
    border-radius: 25px;
    height: 100%;
}

.fundraiser-progress p {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: white;
    padding: 5px;
}

/* Donation buttons */
.fundraiser-donation-actions button {
    padding: 5px 15px;
    background-color: #6a62f1;
    color: white;
    border: none;
    border-radius: 45px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 5px;
}

.fundraiser-fundraiser-description {
    margin-bottom: 20px;
}

.fundraiser-donation-actions button:hover {
    background-color: #5a52e1;
}

/* Fundraiser details */
.fundraiser-fundraiser-details h3 {
    font-size: 15px;
    color: #333;
    margin-top: 20px;
}

.fundraiser-fundraiser-details p {
    font-size: 13px;
    color: #666;
    margin-bottom: 35px;
}

.fundraiser-organizer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fundraiser-fundraiser-details .organizer-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fundraiser-fundraiser-description h5 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.fundraiser-fundraiser-description p {
    font-size: 14px;
    color: #666;
    margin-top: 0;
}

/* Messages de soutien */
.fundraiser-messages {
    margin-top: 10px;
}

.fundraiser-messages h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
}

.fundraiser-messages-subtitle {
    font-size: 18px;
    color: #555;
    margin-top: 20px;
}

/* Messages section */
.fundraiser-message-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fundraiser-message {
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.fundraiser-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    width: 100%;
    flex-wrap: nowrap;
}

.fundraiser-user-name {
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

.fundraiser-message-text {
    font-size: 13px;
    color: #888;
}

.fundraiser-msg-icon {
    margin-right: 5px;
    font-size: 14px;
    opacity: 0.7;
    filter: invert(33%) sepia(93%) saturate(1500%) hue-rotate(180deg);
}

/* Buttons */
.fundraiser-view-more-btn {
    background-color: white;
    color: #3b82f6;
    border: 2px solid white;
    border-radius: 50px;
    padding: 5px 150px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fundraiser-view-more-btn:hover {
    color: #0056b3;
}

.fundraiser-read-more {
    display: inline-block;
    margin: 10px 0 20px 0;
    color: #000;
    text-decoration: underline;
    font-size: 12px;
    cursor: pointer;
    margin-top: 2px;
}

.fundraiser-support-link {
    color: #4b79c4;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.fundraiser-two-images {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.fundraiser-two-images img {
    width: 104px;
    height: 104px;
    border-radius: 10px;
    object-fit: cover;
}

/* Card styles */
.fundraiser-card {
    background: white;
    border-radius: 20px;
    padding: 45px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    min-height: 350px;
}

/* Card content */
.fundraiser-amount-info {
    flex: 1;
}

.fundraiser-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.fundraiser-goal-info {
    background: #ede9fe;
    color: #6b21a8;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 6px;
}

.fundraiser-days-info {
    background: #ede9fe;
    color: #6b21a8;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

.fundraiser-progress-circle {
    position: relative;
    width: 70px;
    height: 70px;
}

.fundraiser-progress-circle svg {
    transform: rotate(-90deg);
}

.fundraiser-progress-circle circle {
    fill: none;
    stroke-width: 6;
}

.fundraiser-progress-bg {
    stroke: #e5e7eb;
}

.fundraiser-progress-bar {
    stroke: #7c3aed;
    stroke-linecap: round;
    stroke-dasharray: 188.4;
    stroke-dashoffset: 52.75;
}

.fundraiser-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
}

.fundraiser-btn-support {
    width: 100%;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.3s;
}

.fundraiser-btn-support:hover {
    background: #6d28d9;
}

.fundraiser-btn-share {
    width: 100%;
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.fundraiser-btn-share:hover {
    border-color: #d1d5db;
}

.fundraiser-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7c3aed;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.fundraiser-countdown svg {
    width: 18px;
    height: 18px;
}

/* Donations list */
.fundraiser-donations-list {
    margin-bottom: 20px;
}

.fundraiser-donation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.fundraiser-donor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fundraiser-donor-avatar svg {
    width: 24px;
    height: 24px;
    fill: #ef4444;
}

.fundraiser-donor-info {
    flex: 1;
}

.fundraiser-donor-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.fundraiser-donor-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.fundraiser-amount-value {
    font-weight: 600;
    color: #1f2937;
}

.fundraiser-donation-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.fundraiser-btn-view-all {
    width: 100%;
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}

.fundraiser-btn-view-all:hover {
    border-color: #d1d5db;
}

.fundraiser-protection-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #059669;
    font-size: 0.9rem;
    font-weight: 500;
}

.fundraiser-protection-badge svg {
    width: 18px;
    height: 18px;
    fill: #059669;
}



/* ========================================== */
/* CLASSES MOBILE PERSONNALISÉES */
/* ========================================== */

@media (max-width: 768px) {

    .fundraiser-header-A {
       display: none !important;
   }

   .title{
       display: none !important;

   }


    .containers {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
     /* Style pour l'image de couverture mobile */
    .mobile-cover-image {
        height: 250px !important;
        object-fit: cover !important;
        border-radius: 1rem !important;
    }

    /* Positionnement du titre superposé */
    .image-title-overlay {
        z-index: 2;
        pointer-events: none; /* Permet les clics à travers */
    }

    .image-title-overlay * {
        pointer-events: auto; /* Réactive les clics pour les éléments enfants */
    }

    /* Ajustement du titre pour mobile */
    .fundraiser-mobile-layout .fundraiser-title-A {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    }

    /* Style des badges d'info */
    .image-title-overlay .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.75rem !important;
        opacity: 0.9 !important;
    }

    /* Overlay pour améliorer la lisibilité */
    .image-overlay {
        z-index: 1;
        pointer-events: none;
    }

    /* Espacement pour le contenu sous l'image */
    .mobile-content-section {
        padding: 1rem 0;
    }

    .fundraiser-main-content {
        flex-direction: column;
        gap: 20px;
    }

    .fundraiser-image-section img {
        width: 100%;
        height: auto;
    }

    .fundraiser-header-A {
        text-align: left;
        margin-top: 1.5em;
    }

    /* ✅ Badge de protection */
    .fundraiser-mobile-layout .fundraiser-protection-badge {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 12px 16px !important;
        background: #e8f5e9 !important;
        border-radius: 8px !important;
        justify-content: flex-start !important;
        margin-bottom: 0.5rem !important;
    }

    .fundraiser-mobile-layout .fundraiser-protection-badge svg {
        fill: #059669 !important;
        flex-shrink: 0 !important;
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }

    .fundraiser-mobile-layout .fundraiser-protection-badge span {
        font-size: 14px !important;
        color: #059669 !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        display: block !important;
    }

    /* ⭐ NOUVELLES CLASSES MOBILE */
    .mobile-donation-card {
        background: white;
        border-radius: 20px;
        padding: 15px;
        margin-bottom: 0.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .mobile-card-inner {
        /* Pas de padding supplémentaire */
        margin: 0;
        padding: 0;
    }

    .mobile-card-header {
        margin-bottom: 0.5rem;
    }



    /* ✅ Espacements optimisés */


     /* Carte donation fixe en bas */
    /* .mobile-donation-card {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 15px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        background: white;
        z-index: 9999;
    } */

    /* Animation pour la carte donation */
    .mobile-donation-card {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 15px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        background: white;
        z-index: 9999;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        transform: translateY(0);
        opacity: 1;
    }

    /* Classe pour cacher la carte */
    .mobile-donation-card.hidden {
        transform: translateY(100%);
        opacity: 0;
    }

    /* Ajuster le padding du body quand la carte est cachée */
    body.card-hidden {
        padding-bottom: 0 !important;
    }

    /* Ajouter un padding au body ou à la section principale pour ne pas cacher le contenu */
    body {
        padding-bottom: 220px !important; /* Augmenté de 150px à 220px */
    }


     #toggle-donations.fundraiser-btn-view-all,
    .mobile-donation-card #toggle-donations,
    .mobile-donation-card button.fundraiser-btn-view-all {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10000 !important;
        background: white !important;
        color: #1f2937 !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 50px !important;
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        width: 100% !important;
        margin-top: 15px !important;
        margin-bottom: 0 !important;
        cursor: pointer !important;
        transition: border-color 0.3s !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }


    /* ⭐ FIX cercle de progression mobile */
    .mobile-card-header .fundraiser-progress-circle {
        position: relative;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .mobile-card-header .fundraiser-progress-circle svg {
        transform: rotate(-90deg);
        display: block;
    }

    .mobile-card-header .fundraiser-progress-circle circle {
        fill: none;
        stroke-width: 6;
    }

    .mobile-card-header .fundraiser-progress-bg {
        stroke: #e5e7eb;
    }

    .mobile-card-header .fundraiser-progress-bar {
        stroke: #7c3aed;
        stroke-linecap: round;
    }

    .mobile-card-header .fundraiser-progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 0.9rem;
        font-weight: 700;
        color: #7c3aed;
        line-height: 1;
    }



     .fundraiser-messages,
    .support-messages,
    .fundraiser-message-list,
    .fundraiser-message {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .fundraiser-mobile-layout .fundraiser-image-section {
        margin-bottom: 0.5rem !important;
    }

    .fundraiser-mobile-layout .fundraiser-btn-support {
        margin-bottom: 0.5rem !important;
    }

    .fundraiser-mobile-layout .fundraiser-btn-share {
        margin-bottom: 0.5rem !important;
    }

    .fundraiser-mobile-layout .fundraiser-fundraiser-description {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    .fundraiser-mobile-layout .fundraiser-fundraiser-description h5 {
        margin-bottom: 0.5rem !important;
    }

    /* Réduire le padding de la carte par défaut sur mobile */
    .fundraiser-mobile-layout .fundraiser-card {
        padding: 15px !important;
    }



    /* Supprime toutes les marges latérales du footer */
    .footerarea {
        margin-bottom: 0 !important;
        padding-bottom: 10px !important;
        position: relative;
        width: 100vw !important; /* Largeur de la fenêtre */
        margin-left: calc(-50vw + 50%) !important; /* Centre et étire */
        left: 0;
        right: 0;
        padding-left: 15px !important; /* Garde un peu de padding */
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* Container pleine largeur */
    .footerarea > .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Les rows prennent toute la largeur */
    .footerarea .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Les colonnes sans padding latéral */
    .footerarea [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* La section copyright pleine largeur */
    .footerarea__copyright__wrapper {
        margin-top: 10px !important;
        padding-top: 10px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-top: 1px solid #e5e7eb;
        width: 100% !important;
    }

    /* Force le body à s'arrêter au footer */
    body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        overflow-x: hidden; /* Empêche la barre de défilement horizontale */
    }

}
