/* ============================================
   VARIABLES ET ANIMATIONS PERSONNALISÉES
============================================= */

/* Animations personnalisées */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   HERO SECTION AMÉLIORÉE
============================================= */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    position: relative;
}



.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomEffect 20s infinite alternate;
}

.carousel-item:nth-child(1)::before {
    background-image: linear-gradient(rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.7)), url('../assets/images/PHOTO-2026-01-01-15-17-21.jpg');
}

.carousel-item:nth-child(2)::before {
    background-image: linear-gradient(rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.7)), url('../assets/images/PHOTO-2026-01-01-16-15-50\ 2.jpg');
}

.carousel-item:nth-child(3)::before {
    background-image: linear-gradient(rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.7)), url('../assets/images/PHOTO-2026-01-01-15-17-24.jpg');
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
    padding-left: 8%;
    max-width: 650px;
    animation: slideInUp 1s ease-out;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.carousel-caption h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

.hero-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c19b2e 100%);
    color: var(--primary-dark-blue);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all var(--animation-timing);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.hero-btn:hover::before {
    left: 100%;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    transition: all var(--animation-timing);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: scale(1.2);
}

.carousel-indicators {
    bottom: 50px;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 8px !important;
    background-color: var(--text-light);
    transition: all var(--animation-timing);
}

.carousel-indicators button.active {
    transform: scale(1.3);
    background-color: var(--accent-gold);
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/* ============================================
   SECTIONS GÉNÉRALES AMÉLIORÉES
============================================= */
section {
    padding: 50px 0;
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-dark-blue);
    display: inline-block;
    position: relative;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-blue));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ============================================
   SECTION À PROPOS AMÉLIORÉE
============================================= */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 36, 99, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.about-img {
    position: relative;
    border-radius: 15px;
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform var(--animation-timing);
}

.about-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-img img {
    width: 90%;
    height: auto;
    transition: transform 0.8s ease;
}

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

/* ============================================
   SECTION LEADER AMÉLIORÉE
============================================= */
.leader-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.leader-img-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.leader-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 36, 99, 0.2), transparent);
    z-index: 1;
}

.quote-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c19b2e 100%);
    color: var(--primary-dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   SECTION ACTUALITÉS AMÉLIORÉE
============================================= */
.news-section {
    background-color: #fff;
    position: relative;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all var(--animation-timing);
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
    z-index: 2;
}

.news-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.news-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 36, 99, 0.9);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
    transition: transform var(--animation-timing);
}

.news-card:hover .news-date {
    transform: scale(1.05);
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.news-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    padding: 30px;
}

.news-content h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
}

.news-content h4 a {
    color: var(--primary-dark-blue);
    text-decoration: none;
    transition: color var(--animation-timing);
}

.news-content h4 a:hover {
    color: var(--accent-gold);
}

.read-more-link {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    transition: all var(--animation-timing);
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width var(--animation-timing);
}

.read-more-link:hover {
    color: var(--primary-dark-blue);
}

.read-more-link:hover::after {
    width: 100%;
}

.read-more-link i {
    margin-left: 8px;
    transition: transform var(--animation-timing);
}

.read-more-link:hover i {
    transform: translateX(5px);
}

.btn-outline-custom {
    color: var(--primary-dark-blue);
    border: 2px solid var(--primary-dark-blue);
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    transition: all var(--animation-timing);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-dark-blue);
    transition: left var(--animation-timing);
    z-index: -1;
}

.btn-outline-custom:hover {
    color: white;
    border-color: var(--primary-dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 36, 99, 0.2);
}

.btn-outline-custom:hover::before {
    left: 0;
}

/* ============================================
   SECTION DEVENIR MEMBRE AMÉLIORÉE
============================================= */
.membership-section {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #0c2b6f 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.membership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0V100H1000V0C800,40,600,80,400,80S200,40,0,0Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100px;
    background-repeat: repeat-x;
    background-position: top;
    opacity: 0.3;
}

.membership-section .section-title h2 {
    color: var(--text-light);
}

.membership-section .section-title h2::after {
    background: linear-gradient(90deg, var(--accent-gold), white);
}

.membership-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    height: 100%;
    transition: all var(--animation-timing);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--light-blue));
}

.membership-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.membership-icon {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   SECTION FAIRE UN DON AMÉLIORÉE
============================================= */
.donation-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.donation-img-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(10deg);
    transition: transform var(--animation-timing);
}

.donation-img-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.donation-img-container img {
    transition: transform 0.8s ease;
}

.donation-img-container:hover img {
    transform: scale(1.05);
}

/* ============================================
   SECTION PARTENAIRES AMÉLIORÉE
============================================= */
.partners-section {
    background-color: white;
    position: relative;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px;
    transition: all var(--animation-timing);
    filter: grayscale(100%);
    opacity: 0.7;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SECTION CONTACT AMÉLIORÉE
============================================= */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--animation-timing);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2);
}

/* ============================================
   ANIMATIONS AU SCROLL
============================================= */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   STYLES RESPONSIVE AMÉLIORÉS
============================================= */
@media (max-width: 1200px) {
    .carousel-caption h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .carousel-caption {
        /* bottom: 20%; */
        text-align: center;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .carousel-caption h1 {
        font-size: 2.8rem;
    }
    
    .carousel-caption h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .about-img {
        transform: none;
        margin-bottom: 40px;
    }
    
    .donation-img-container {
        transform: none;
        margin-bottom: 40px;
    }
    
    .news-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-section, .carousel-item {
        height: 80vh;
    }
    
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .hero-btn, .btn-outline-custom {
        padding: 12px 30px;
    }
    
    .news-img {
        height: 180px;
    }
    
    .membership-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section, .carousel-item {
        height: 90vh;
    }
    
    .carousel-caption {
        /* bottom: 15%; */
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .news-img {
        height: 160px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 15px;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .partner-logo {
        height: 100px;
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .carousel-caption h1 {
        font-size: 1.6rem;
    }
    
    .hero-btn, .btn-outline-custom {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
}