/* Variables et styles globaux */
:root {
    --primary-color: #2a5c8b;
    --secondary-color: #3d9c7a;
    --accent-color: #f4a261;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo-text p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Navigation desktop */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.admin-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 4px;
}

/* Bouton menu mobile */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

/* Menu mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: #f0f7ff;
    color: var(--primary-color);
}

.mobile-menu .admin-link {
    background-color: var(--primary-color);
    color: var(--white) !important;
    margin-top: 20px;
}

.mobile-menu .admin-link:hover {
    background-color: #1d4568;
}

/* Overlay menu mobile */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
}

.menu-overlay.active {
    display: block;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 5px;
}

/* Section Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
    margin-top: 80px; /* Compensation pour le header fixe */
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1d4568;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-donate {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    font-size: 0.9rem;
    margin-top: 15px;
}

.btn-donate:hover {
    background-color: #e68a3d;
}

/* Titres de section */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Grilles et cartes */
.values-grid,
.stats-grid,
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card,
.stat-item,
.donation-option {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Section statistiques */
.stats-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.stat-item p {
    color: #666;
}

.plus {
    font-size: 2rem;
    margin-right: 5px;
}

/* Section Appel à l'action */
.cta-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

.donation-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.donation-option h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.donation-option p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #666;
}

/* Pied de page */
.footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-description {
    margin-top: 15px;
    color: #ddd;
    line-height: 1.6;
}

.footer-col i {
    margin-right: 10px;
    width: 20px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #e68a3d;
}

.newsletter-text {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .admin-link {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
        margin-top: 70px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .values-grid,
    .stats-grid,
    .donation-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .footer-grid {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .header .container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .value-card,
    .stat-item,
    .donation-option {
        padding: 20px 15px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* Pour éviter le défilement quand le menu mobile est ouvert */
body.menu-open {
    overflow: hidden;
}