/* Variables spécifiques à la page animaux */
:root {
    --primary-color: #e67e22;
    --secondary-color: #d35400;
    --text-color: #2c3e50;
    --bg-color: #ffffff;
    --heading-color: #1a252f;  /* Couleur plus foncée pour les titres */
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --primary-rgb: 230, 126, 34;
}

/* Styles de base */
.subtitle {
    display: inline-block;
    color: var(--primary-color);
    letter-spacing: 2px;
    background-color: rgba(230, 126, 34, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 500;
}

 

.section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

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

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}



/* Styles communs */
.section {
    padding: var(--section-padding);
}

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




.section-description {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto 3rem;
    opacity: 0.9;
}







/* Stats cards */
.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    cursor: auto;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    display: inline-block;
}

.stat-percentage, .stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    margin-left: 5px;
}

.stat-description {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Cards communs */
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--card-shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--card-shadow);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 280px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Lightbox customization */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.lb-data .lb-number {
    font-size: 14px;
    color: #fff;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-data .lb-close {
    opacity: 0.8;
}

.lb-data .lb-close:hover {
    opacity: 1;
}

/* Modal */
.modal-content {
    background-color: transparent;
    border: none;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    border-radius: 15px;
}

.modal .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
    background-color: #fff;
    opacity: 0.8;
    border-radius: 50%;
    padding: 0.5rem;
}

.modal .btn-close:hover {
    opacity: 1;
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

/* Style commun pour tous les boutons de fermeture des modales */
.modal .close-btn {
    display: none !important;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: -0.5rem;
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.close-modal:active {
    transform: scale(0.9);
}

/* Style spécifique pour la modale d'image */
#imageModal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

/* Hero Section */
.hero.hero--animaux {
    height: 80vh;
    background-image: url('../../images/animaux/header-cameleon.jpg');
    background-position: center;
    background-size: cover;
    position: relative;
    margin-top: -76px; /* Hauteur de la navbar */
}

.hero.hero--animaux .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero.hero--animaux .hero__content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding-top: 40vh;
}

.hero.hero--animaux .hero__content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 4px 6px rgba(0,0,0,0.2);
    position: relative;
}

.hero.hero--animaux .hero__content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero.hero--animaux .hero__content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #FFFFFF;
    margin: 2rem auto 0;
    max-width: 800px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

/* Biodiversité Section */
.biodiversity-section {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.biodiversity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-size: 2.8rem;
    font-weight: 700;
}

.section-header p {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Species Cards */
.species-section {
    padding: 5rem 0;
    background: white;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.species-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    cursor: auto;
}

.species-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.species-image {
    height: 300px;
    overflow: hidden;
}

.species-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.species-card:hover .species-image img {
    transform: scale(1.1);
}

.species-content {
    padding: 2rem;
    background: white;
}

.species-content h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.species-content p {
    color: var(--text-color);
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Espèces emblématiques */
.emblematic-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.emblematic-section .section-header {
    margin-bottom: 50px;
}

.emblematic-section .section-header h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin: 15px 0;
}

.emblematic-section .section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.species-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.species-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.species-card:hover .card-image img {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Habitats */
.habitats-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    display: inline-block;
    background-color: #fff5eb;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}



*/
.habitats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.habitat-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 400px;
    transition: transform 0.3s ease;
}

.habitat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: #fff;
    z-index: 2;
    transform: translateY(90%);
    transition: transform 0.3s ease;
}

.habitat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.habitat-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transform: translateY(-90%);
    transition: transform 0.3s ease;
}

.habitat-card p {
    font-size: 1rem;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover Effects */
.habitat-card:hover img {
    transform: scale(1.1);
}

.habitat-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
}

.habitat-card:hover .card-content {
    transform: translateY(0);
}

.habitat-card:hover h3 {
    transform: translateY(0);
}

.habitat-card:hover p {
    opacity: 1;
}

/* Modals */
.modal-dialog {
    max-width: 900px;
    margin: 2rem auto;
}

.modal-content {
    border-radius: 20px;
    border: none;
    background: #fff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    padding: 20px;
}

.modal-header {
    position: relative;
    padding: 40px 80px 40px 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.modal-header .btn-close {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    padding: 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

.modal-header .btn-close:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-50%) rotate(90deg);
}

.modal-header .btn-close::before {
    content: "×";
    font-size: 35px;
    line-height: 1;
    color: #666;
}

.modal-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

/* Styles pour les modals */
.modal-content {

    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    background: white;
    border-radius: 15px;
    margin: 0 1rem 1rem;
    padding: 2rem;
}

.modal-footer {
    justify-content: center !important;
    border-top: none;
    padding: 1rem 1.5rem;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-title-wrapper i,
.modal-title {
    color: white;
}

.modal-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.btn-close {
    color: white;
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Styles spécifiques pour la modal des bénévoles */
#benevoleModal .modal-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

#benevoleModal .modal-header {
    background: #CD7F32;
    padding: 1rem 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#benevoleModal .modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#benevoleModal .modal-title-wrapper i {
    color: white;
    font-size: 1.25rem;
}

#benevoleModal .modal-title {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

#benevoleModal .close-btn {
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
}

#benevoleModal .close-btn:hover {
    opacity: 0.8;
}

#benevoleModal .modal-body {
    padding: 2rem;
    background: white;
}

#benevoleModal .benevole-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

#benevoleModal .benevole-intro p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

#benevoleModal .form-group {
    margin-bottom: 1.5rem;
}

#benevoleModal label {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.5rem;
    display: block;
}

#benevoleModal .form-control,
#benevoleModal .form-select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

#benevoleModal .form-control:focus,
#benevoleModal .form-select:focus {
    border-color: #CD7F32;
    box-shadow: 0 0 0 0.2rem rgba(205, 127, 50, 0.25);
}

#benevoleModal .form-check {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

#benevoleModal .form-check-input {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    border-color: #ddd;
}

#benevoleModal .form-check-input:checked {
    background-color: #CD7F32;
    border-color: #CD7F32;
}

#benevoleModal .form-check-label {
    font-size: 0.95rem;
    color: #444;
}

#benevoleModal .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

#benevoleModal .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#benevoleModal .btn-secondary {
    background: #6B7280;
    border: none;
    color: white;
}

#benevoleModal .btn-primary {
    background: #CD7F32;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#benevoleModal .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style pour les champs requis */
#benevoleModal label:not([for="telephone"]):not([for="competences"]):not(.form-check-label)::after {
    content: " *";
    color: #CD7F32;
}

/* Gallery */
.gallery-section {
    padding: 5rem 0;
    background: white;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Ecosystem Section */
.ecosystem-section {
    padding: 5rem 0;
    background-color: #fff;
}

.ecosystem-section .section-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.ecosystem-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.ecosystem-section p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.ecosystem-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: #e67e22;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-color);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Bouton Découvrir */
.btn-discover {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-discover i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-discover:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.btn-discover:hover i {
    transform: translateX(5px);
}

/* Protection Section */
.protection-section {
    background-color: var(--light-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.protection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.protection-section .section-title {
    color: var(--heading-color);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.protection-section .section-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.9;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 250px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(205, 133, 63, 0.1);
}

.stat-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.cta-container {
    margin-top: 4rem;
}

.btn-conservation {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(205, 133, 63, 0.2);
}

.btn-conservation:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(205, 133, 63, 0.3);
}

.btn-conservation i {
    font-size: 1.2rem;
}

/* Bouton SOUTENEZ LA CONSERVATION */
.btn.btn-custom.btn-lg {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12.8px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(205, 133, 63, 0.2);
}

.btn.btn-custom.btn-lg:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(205, 133, 63, 0.3);
}

.btn.btn-custom.btn-lg i {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    right: 30px;

    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: black;
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: black;
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Hero Section */
.hero.hero--small {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: -76px;
}

.hero__content {
    margin-top: 130px;
}

.hero.hero--small .hero__overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero.hero--small .hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero.hero--small .hero__content h1.display-3 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 4px 6px rgba(0,0,0,0.2);
    position: relative;
}

.hero.hero--small .hero__content h1.display-3::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero.hero--small .hero__content .lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #FFFFFF;
    margin: 2rem auto 0;
    max-width: 800px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

/* Section Espèces en Danger */
.endangered-section {
    background-color: var(--light-color);
}

.stat-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

/* Section Comment Aider */
.action-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.action-card:hover::before {
    opacity: 0.05;
}

.action-card .icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-card:hover .icon-container {
    transform: scale(1.1);
    background: var(--primary-color);
}

.action-card .icon-container i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.action-card:hover .icon-container i {
    color: #fff;
}

.action-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.action-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    position: relative;
    z-index: 1;
}

.action-card ul li {
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.action-card ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.action-card .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.action-card .btn-outline-primary {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.action-card .btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.action-cards-container {
    padding: 2rem 0;
}

/* Timeline Section */
.timeline-section {
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 0 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
}

.timeline-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.timeline-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Timeline Animation */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Modales */
.donation-options, .share-options {
    padding: 1rem;
}

.donation-method {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    height: 100%;
}

.donation-method i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.amount-buttons .btn {
    flex: 1;
    min-width: 80px;
}

.volunteer-form {
    padding: 1rem 0;
}

.volunteer-form .form-control,
.volunteer-form .form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.volunteer-form .form-control:focus,
.volunteer-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(176, 126, 89, 0.25);
}

.volunteer-form .form-label {
    font-weight: 500;
    color: #444;
    margin-bottom: 0.5rem;
}

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

.volunteer-form button[type="submit"] {
    padding: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.volunteer-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

/* Styles pour le message de confirmation */
.confirmation-message {
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.confirmation-message .success-icon {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.confirmation-message .submission-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.confirmation-message p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.confirmation-message h4 {
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-message button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.confirmation-message button:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-share .btn {
    flex: 1;
    min-width: 120px;

    padding: 0.5rem 1rem;
}

.social-share .btn:hover {
    background: black;
    color: white;
}

.btn-facebook {
    background-color: #1877f2;
}

.btn-twitter {
    background-color: #1da1f2;
}

.btn-instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.btn-linkedin {
    background-color: #0077b5;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-links .btn {
    text-align: left;
}

.resource-links i {
    margin-right: 0.5rem;
}

/* Statistiques */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 1rem;
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: #FF6B35;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
    margin: 1rem 0;
    font-family: 'Poppins', sans-serif;
}

.stat-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.thank-you-message {
    opacity: 0;
    transition: opacity 0.5s ease; /* Animation plus lente */
    margin: 1rem 0;
}

.thank-you-message.show {
    opacity: 1;
}

.thank-you-message .alert {
    border: none;
    background-color: #e8f5e9;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.thank-you-message i {
    color: #4caf50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.thank-you-message .message-text {
    color: #2e7d32;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.4;
}

.donation-btn.selected {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Section Espèces en Danger */
.endangered-species-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}



.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    display: inline-block;
}

.stat-percentage, .stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    margin-left: 5px;
}

.stat-description {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.4;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.animaux-section h2,
.container h2,
.display-5 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 3rem;  /* Augmentation de la marge en bas */
    font-weight: 600;
    position: relative;
    text-align: center;
}

.animaux-section h2::after,
.container h2::after,
.display-5::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Ajustement de l'espacement pour le texte qui suit */
.animaux-section h2 + p,
.container h2 + p,
.display-5 + p {
    margin-top: 3rem;  /* Augmentation de la marge au-dessus du texte */
}

.thank-you-message {
    transition: opacity 0.5s ease-in-out;
}

.donation-btn.active {
    background-color: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.thank-you-message .alert {
    border-radius: 15px;
    border: none;
    background-color: #e8f5e9;
    color: #2e7d32;
}

.thank-you-message ul {
    list-style-type: none;
    padding-left: 0;
}

.thank-you-message ul li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.thank-you-message ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2e7d32;
}

.thank-you-message .proceed-donation {
    background-color: #FF6B35;
    border-color: #FF6B35;
    transition: all 0.3s ease;
}

.thank-you-message .proceed-donation:hover {
    background-color: #e65a2a;
    border-color: #e65a2a;
    transform: translateY(-2px);
}

.selected-amount {
    font-weight: bold;
    color: #FF6B35;
}

.volunteer-form {
    transition: all 0.3s ease-in-out;
}

.success-animation {
    margin: 0 auto;
    width: 100px;
    height: 100px;
    position: relative;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position: relative;
    margin: 0 auto;
}

.checkmark_circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark_check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #4bb71b;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}

.submission-details {
    background: rgba(75, 183, 27, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.submission-details p {
    margin-bottom: 8px;
}

.submission-details p:last-child {
    margin-bottom: 0;
}

/* Styles pour le modal de don */
#donationModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#donationModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 1.5rem;
}

#donationModal .modal-body {
    padding: 2rem;
    background-color: #fff;
    color: #333;
}

#donationModal .donation-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.1rem;
}

#donationModal .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
}

#donationModal .section-title i {
    color: var(--primary-color);
}

#donationModal .donation-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}

#donationModal .donation-btn {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #495057;
}

#donationModal .donation-btn:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--primary-color);
}

#donationModal .donation-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

#donationModal .custom-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#donationModal .custom-amount-input {
    margin: 1rem 0;
}

#donationModal .selected-donation {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 10px;
    color: #333;
}

#donationModal .selected-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

#donationModal .impact-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: #333;
    border: 1px solid #e9ecef;
}

#donationModal .impact-icon {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#donationModal .impact-message p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.4;
}

#donationModal .thank-you-content {
    text-align: center;
    padding: 2rem;
    color: #333;
}

#donationModal .modal-footer {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

#donationModal .proceed-donation {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

#donationModal .proceed-donation:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

#donationModal .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    font-weight: 500;
}

#donationModal .btn-secondary:hover {
    background-color: #5a6268;
}

/* Styles pour le message de remerciement */
#donationModal .thank-you-section {
    padding: 2rem 1rem;
}

#donationModal .thank-you-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

#donationModal .thank-you-icon i {
    font-size: 2.5rem;
    color: white;
}

#donationModal .thank-you-content h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#donationModal .donation-amount {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

#donationModal .redirect-message {
    color: #666;
    font-size: 0.9rem;
}

/* Animation pour le message de remerciement */
#donationModal .thank-you-section {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles pour la modale des bénévoles */
#benevoleModal .modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#benevoleModal .modal-title-wrapper i {
    font-size: 2rem;
   
}

#benevoleModal .benevole-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

#benevoleModal .benevole-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #444;
}

#benevoleModal .form-control,
#benevoleModal .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

#benevoleModal .form-control:focus,
#benevoleModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

#benevoleModal .form-check {
    margin-bottom: 0.5rem;
}

#benevoleModal .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Styles des boutons */
.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-footer .btn-primary {
    background: white;
    border: none;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.modal-footer .btn-primary i {
    font-size: 1.1rem;
}

/* Animation pour le message de remerciement (commun aux deux modals) */
.thank-you-section {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Désactiver le style par défaut de Bootstrap pour le bouton de fermeture */
.modal .btn-close {
    display: none !important;
}

/* Style commun pour tous les boutons de fermeture des modales */
.modal .close-btn {
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    position: relative;
    border-radius: 50%;
}

.modal .close-btn::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.modal .close-btn:hover::before {
    transform: translate(-50%, -50%) rotate(180deg);
}

.modal .close-btn:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal .close-btn:active {
    transform: scale(0.9);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Styles pour la modale Sensibiliser */
#sensibiliserModal .modal-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

#sensibiliserModal .modal-header {
    background: #CD7F32;
    padding: 1rem 1.5rem;
    border: none;
}

#sensibiliserModal .modal-body {
    background: white;
    padding: 2rem;
}

#sensibiliserModal .modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#sensibiliserModal .modal-title-wrapper i {
    color: white;
    font-size: 1.5rem;
}

#sensibiliserModal .modal-title {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

#sensibiliserModal .sensibiliser-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

#sensibiliserModal .sensibiliser-intro h2 {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

#sensibiliserModal .sensibiliser-intro p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

#sensibiliserModal .share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

#sensibiliserModal .share-option {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

#sensibiliserModal .share-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

#sensibiliserModal .share-option i {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

#sensibiliserModal .share-option i.fa-facebook {
    color: #1877f2;
}

#sensibiliserModal .share-option i.fa-twitter {
    color: #1da1f2;
}

#sensibiliserModal .share-option i.fa-envelope {
    color: #CD7F32;
}

#sensibiliserModal .share-option h3 {
    font-size: 1.2rem;
    color: #2C3E50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

#sensibiliserModal .share-option p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

#sensibiliserModal .btn-share {
    width: 100%;
    padding: 0.85rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

#sensibiliserModal .btn-share.facebook {
    background: #1877f2;
    color: white;
}

#sensibiliserModal .btn-share.twitter {
    background: #1da1f2;
    color: white;
}

#sensibiliserModal .btn-share.email {
    background: #CD7F32;
    color: white;
}

#sensibiliserModal .btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#sensibiliserModal .btn-share:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #sensibiliserModal .share-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #sensibiliserModal .modal-body {
        padding: 1.5rem;
    }

    #sensibiliserModal .share-option {
        padding: 1.5rem;
    }
}

/* Styles pour la modale de confirmation bénévole */
#benevoleConfirmationModal .modal-content {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

#benevoleConfirmationModal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

#benevoleConfirmationModal .modal-body {
    padding: 3rem 2rem;
    text-align: center;
}

#benevoleConfirmationModal .confirmation-icon {
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

#benevoleConfirmationModal .confirmation-icon i {
    font-size: 4rem;
    color: #2D5A27;
    text-shadow: 0 0 20px rgba(45, 90, 39, 0.2);
}

#benevoleConfirmationModal .confirmation-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2D5A27;
}

#benevoleConfirmationModal .confirmation-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 1rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation d'entrée pour la modale */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

@media (max-width: 576px) {
    #benevoleConfirmationModal .modal-body {
        padding: 2rem 1rem;
    }
    
    #benevoleConfirmationModal .confirmation-title {
        font-size: 1.5rem;
    }
    
    #benevoleConfirmationModal .confirmation-text {
        font-size: 1rem;
    }
}

/* Ajout des styles pour le texte supplémentaire */
#benevoleConfirmationModal .mt-4 {
    color: #2D5A27;
    font-weight: 500;
}

#benevoleConfirmationModal .fa-heart {
    color: #e74c3c !important;
}

/* Styles pour la galerie d'images */
.gallery-section {
    background-color: var(--bg-color);
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

/* Style pour Lightbox */
.lb-outerContainer {
    border-radius: 10px 10px 0 0 !important;
}

.lb-dataContainer {
    border-radius: 0 0 10px 10px !important;
    padding: 10px 0 !important;
}

.lb-data .lb-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    opacity: 0.8 !important;
    filter: brightness(0) invert(1);
    z-index: 9999;
}

.lb-data .lb-close:hover {
    opacity: 1 !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8 !important;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1 !important;
}

.lb-data .lb-caption {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
