/* ===============================
   VARIABLES
================================= */
:root {
    --primary: #a8d5ba; /* Vert clair */
    --accent: #f78f1e;  /* Orange vif */
    --light: #ffffff;   /* Blanc */
    --dark: #2c3e50;    /* Gris foncé */
}


/* ===============================
   RESET DE BASE
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
}

ul {
    list-style: none;
}

/* ===============================
   CONTAINER
================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================
   HEADER TOP
================================= */
.header-top {
    background-color: var(--dark);
    color: white;
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    font-size: 14px;
}

.social-icons a {
    color: white;
    margin-left: 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

/* ===============================
   MAIN HEADER
================================= */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rotating-logo i {
    font-size: 36px;
    color: var(--accent);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text h1 {
    font-size: 24px;
    color: var(--dark);
}

.logo-text span {
    color: var(--accent);
}

/* ===============================
   NAVIGATION
================================= */
.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links li a {
    font-weight: bold;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
}

/* ===============================
   DONATE BUTTON
================================= */
.donate-btn {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.donate-btn:hover {
    background-color: #b5702f;
}



/* ===============================
   STYLE DU SLIDER
================================= */
.banner-association {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

/* Texte overlay */
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    padding: 30px 50px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    z-index: 2;
}

.banner-text h2 {
    font-size: 34px;
    color: var(--primary);
    text-shadow: 1px 1px 2px #000;
}

.banner-text p {
    font-size: 18px;
    color: #fff;
    font-style: italic;
}

/* Flèches */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 3;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    user-select: none;
}
.prev { left: 15px; }
.next { right: 15px; }

/* Points */
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.dot.active {
    background-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .banner-association { height: 300px; }
    .banner-text { padding: 20px; }
    .banner-text h2 { font-size: 22px; }
    .banner-text p { font-size: 16px; }
}


/* ===============================
   DON
================================= */
.donation-highlight {
    position: relative;
    background-color: #fff;
    padding: 60px 20px;
    margin-top: 40px;
    overflow: hidden;
    text-align: center;
}

.background-icon {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    font-size: 140px;
    color: #ffa50022; /* Orange translucide */
    z-index: 1;
    pointer-events: none;
}

.donation-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

.donation-content h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

.donation-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Bouton déjà stylé */
.donate-btn {
    background-color: #a8e6a2;
    color: #1d3557;
    padding: 14px 28px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.donate-btn:hover {
    background-color: var(--accent);
    color: white;
}


/* ===============================
   POPUP
================================= */
.modal-donation {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 0.4s ease;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content button {
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #e67e22;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===============================
   FOOTER
================================= */
footer {
    background-color: var(--dark);
    width: 100%;
    margin-top: 60px;
}

.footer-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 40px;
    color: white;
}

/* Colonne standard */
.footer-column {
    flex: 1 1 250px;
    min-width: 250px;
}

/* Colonne spéciale pour le don */
.donate-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Logo + animation */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    font-size: 32px;
    color: var(--accent);
    animation: rotate 5s linear infinite;
}

/* Liste de liens */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Réseaux sociaux */
.social-icons-footer {
    margin-top: 20px;
}

.social-icons-footer a {
    color: white;
    margin-right: 10px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons-footer a:hover {
    color: var(--accent);
}

/* Bouton don */
.donate-btn-footer {
    margin-top: 20px;
    background-color: #a8e6a2; /* vert clair */
    color: #1d3557;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.donate-btn-footer:hover {
    background-color: var(--accent); /* orange au survol */
    color: white;
}

/* Copyright */
footer .copyright {
    text-align: center;
    padding: 15px;
    background-color: #111;
    font-size: 14px;
    color: #aaa;
}

footer .copyright a {
    color: var(--accent);
    text-decoration: none;
}

footer .copyright a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }

    .donate-btn-footer {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 16px;
    }

    .footer-logo {
        justify-content: flex-start;
    }

    .social-icons-footer {
        justify-content: flex-start;
    }
}
