/* Layout général pour footer sticky */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Hero overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,123,255,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

/* Cards générales */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h5 {
    font-weight: bold;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

/* Cards projets */
.project-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.project-card .card-body {
    padding: 1.25rem;
}

.project-card .card-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.project-card .card-text {
    color: #495057;
    font-size: 0.95rem;
}

.project-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.35rem 0.65rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background-color: #28a745;
}

/* Page projet détail */
.project-image {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
    border-radius: 15px;
}

/* Carte Leaflet */
#map {
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.info.legend {
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    line-height: 1.5;
}

/* Page dons */
.donation-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.donation-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.donation-card .card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.donation-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.donation-card.active .card {
    border-color: #0d6efd !important;
    border-width: 5px !important;
    background-color: #f8f9ff;
    transform: translateY(-5px);
}

.amount-badge {
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
}

.amount-badge-primary {
    color: #dc3545;
}

/* Formulaires */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-control-lg, .form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

/* Boutons */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

/* Utilitaires */
.hover-lift {
    transition: transform 0.3s ease;
}

.text-danger {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .amount-badge {
        font-size: 1.5rem;
    }

    #map {
        height: 350px;
    }
    
    .project-image {
        max-height: 300px;
    }
}