/* =============================================
   RESET ET VARIABLES
   ============================================= */
:root {
    --primary: #2E8B57;   /* Vert foncé */
    --secondary: #8B4513; /* Marron */
    --accent: #1E90FF;    /* Bleu */
    --light: #F5F5F5;     /* Gris léger */
    --dark: #333;        /* Gris foncé */
    --white: #FFFFFF;     /* Blanc */
    --error: #ff4444;     /* Rouge pâle */
    --success: #4CAF50;   /* Vert clair */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* =============================================
   CONTAINERS ET LAYOUT
   ============================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =============================================
   EN-TÊTE (HEADER)
   ============================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a.active {
    color: var(--primary);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Menu hamburger (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
}


/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    /* Réduire la hauteur du header sur mobile */
    header {
        height: 80px;
    }

    header.fixed {
        height: 60px;
    }

    .logo-home {
        height: 50px;
    }

    .logo-default {
        height: 40px;
    }
}

/* =============================================
   BOUTONS
   ============================================= */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.button:hover {
    background: #1F5F3F;
    transform: scale(1.05);
}

.button-secondary {
    background: var(--secondary);
}

.button-secondary:hover {
    background: #654321;
}

/* =============================================
   SECTION SOUTIEN (AVEC COMPTEUR HELLOASSO)
   ============================================= */
.support-section {
    padding: 2rem 0;
    background: var(--light);
}

.support-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.4;
}

.support-ss-title {
    text-align: center;
    color: #101;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.support-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.support-text {
    flex: 1;
}

.support-text p {
    color: var(--dark);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.support-counter {
    flex: 0 0 350px;
}

.support-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =============================================
   SECTION HIGHLIGHTS (CARTES)
   ============================================= */
.highlights {
    padding: 3rem 0;
    background: var(--white);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.highlight-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.highlight-card p {
    color: #555;
    line-height: 1.6;
}

/* =============================================
   SECTION HERO (BANNIÈRE)
   ============================================= */
/* ===== BANNIÈRE AVEC PHOTO ET CITATION ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(30, 144, 255, 0.1));
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hero-quote {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #2E8B57;
}

.hero-quote blockquote {
    margin: 0;
    font-size: 1.5rem;
    color: #2E8B57;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.hero-quote cite {
    display: block;
    text-align: right;
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
    font-style: normal;
    margin-top: 1rem;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image,
    .hero-quote {
        min-width: 100%;
    }

    .hero-quote {
        border-left: none;
        border-top: 5px solid #2E8B57;
    }
}

/* =============================================
   TIMELINE (HISTORIQUE)
   ============================================= */
.timeline-section {
    padding: 3rem 0;
    background: var(--white);
}

.timeline-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.timeline-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

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

.timeline-year {
    position: absolute;
    left: -3rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-left: 1rem;
    border-left: 4px solid var(--primary);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

/* =============================================
   SECTION POURQUOI CE PROJET
   ============================================= */
.why-section {
    padding: 3rem 0;
    background: var(--white);
}

.why-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.why-item {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.why-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.why-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   SECTION L'ÉQUIPE
   ============================================= */
.team-section {
    padding: 3rem 0;
    background: var(--light);
}

.team-section h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-image {
    margin-bottom: 1.5rem;
}

.member-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.member-role {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.member-quote {
    color: #555;
    font-style: italic;
    margin: 0;
}

/* =============================================
   CTA (APPEL À L'ACTION)
   ============================================= */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(rgba(46, 139, 87, 0.9), rgba(46, 139, 87, 0.9)),
                url('img/background-cta.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .button {
    background: var(--white);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-buttons .button.outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-buttons .button.outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Grille à 4 colonnes pour les options de soutien */
.options-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes par défaut */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* =============================================
   PIED DE PAGE (FOOTER)
   ============================================= */
footer {
    background: #222;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-section a {
    color: var(--accent);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section li a {
    color: #ccc;
}

.footer-section li a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    color: var(--white);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.9rem;
}

/* =============================================
   EN-TÊTE DE PAGE (PAGE HEADER)
   ============================================= */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .hero-content,
    .today-content {
        flex-direction: column;
    }

    .hero-image,
    .today-image {
        margin-bottom: 1.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-year {
        left: -1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .button {
        width: 80%;
        margin-bottom: 0.5rem;
    }

    .support-content {
        flex-direction: column;
        text-align: center;
    }

    .support-counter {
        flex: 1;
        width: 100%;
    }

    .support-title {
        font-size: 1.4rem;
    }
	
	.options-grid-4 {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}


/* Adaptation pour tablette (2 colonnes) */
@media (max-width: 1024px) and (min-width: 769px) {
    .options-grid-4 {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}