/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vert-principal: #4CAF50;
    --vert-fonce: #2d7a31;
    --beige-clair: #f5ebe0;
    --texte-fonce: #1a1a1a;
    --gris-clair: #f9f9f9;
    --blanc: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--texte-fonce);
    background-color: var(--blanc);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
header {
    background-color: var(--blanc);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    background-color: var(--blanc);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.logo-text h1 {
    color: var(--vert-principal);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.logo-text .tagline {
    color: var(--texte-fonce);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--texte-fonce);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--vert-principal);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--vert-principal);
}

.btn-don {
    background-color: var(--vert-principal);
    color: var(--blanc) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-don:hover {
    background-color: var(--vert-fonce);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--vert-principal);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
    color: var(--blanc);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    background-color: var(--blanc);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: fadeInDown 1s ease-out;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.motto {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0;
    letter-spacing: 2px;
}

.actes {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: left;
}

.acte-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
    border-left: 3px solid transparent;
}

.acte-item:nth-child(1) { animation-delay: 0.1s; }
.acte-item:nth-child(2) { animation-delay: 0.2s; }
.acte-item:nth-child(3) { animation-delay: 0.3s; }
.acte-item:nth-child(4) { animation-delay: 0.4s; }
.acte-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.acte-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
    border-left-color: var(--blanc);
}

.acte-letter {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 30px;
}

.acte-text {
    flex: 1;
    font-size: 1rem;
}

/* Sections */
section {
    padding: 4rem 2rem;
}

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

section h3 {
    color: var(--vert-fonce);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.content-with-image.reverse {
    direction: rtl;
}

.content-with-image.reverse > * {
    direction: ltr;
}

.image-content img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 100%;
    object-fit: cover;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.grid-item {
    overflow: hidden;
    border-radius: 10px;
}

.grid-item img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.grid-item img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Histoire Section */
.histoire {
    background-color: var(--beige-clair);
}

/* Hommage Box */
.hommage-box {
    background: linear-gradient(135deg, rgba(45, 122, 49, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    border: 2px solid var(--vert-principal);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hommage-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: var(--vert-principal);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.hommage-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--texte-fonce);
    margin-bottom: 1rem;
}

.hommage-signature {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--vert-principal);
    font-style: italic;
    margin-top: 1rem;
}

/* Académie Section */
.academie {
    background-color: var(--gris-clair);
}

.academie strong {
    color: var(--vert-principal);
}

/* Actions Section */
.actions {
    background-color: var(--blanc);
}

.engagement-highlight {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
    color: var(--blanc);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.engagement-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.message-box {
    background-color: var(--gris-clair);
    padding: 2rem;
    border-left: 5px solid var(--vert-principal);
    margin-top: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.message-box:hover {
    border-left-width: 8px;
    padding-left: 2.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-principal) 100%);
    color: var(--blanc);
}

.contact h2 {
    color: var(--blanc);
}

.contact h3 {
    color: var(--blanc);
    font-size: 1.3rem;
    margin-top: 0;
}

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

.contact-info p,
.don-info p {
    margin-bottom: 0.8rem;
}

.contact-info a {
    color: var(--blanc);
    text-decoration: underline;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Don Methods */
.don-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.don-method {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.don-method:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.twint-qr {
    text-align: center;
    margin: 1rem 0;
}

.twint-qr img {
    max-width: 200px;
    margin: 1rem auto;
    background-color: var(--blanc);
    padding: 1rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.twint-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--blanc);
    margin-top: 1rem;
}

.iban-number {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.iban-number:hover {
    background-color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
}

.don-message {
    margin-top: 1.5rem;
    font-style: italic;
}

/* =====================================================
   PAGE PROJETS & MÉMOIRE
   ===================================================== */

/* Hero small */
.hero-small {
    padding: 3rem 2rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Section intro */
.section-intro {
    background-color: var(--blanc);
    padding: 3rem 2rem;
}

.intro-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-box h2 {
    color: var(--vert-principal);
    margin-bottom: 1.5rem;
}

.intro-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--texte-fonce);
}

/* Projet Section */
.projet-section {
    background-color: var(--beige-clair);
    padding: 4rem 2rem;
}

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

.projet-date {
    display: inline-block;
    background-color: var(--vert-principal);
    color: var(--blanc);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.projet-subtitle {
    color: var(--vert-fonce);
    font-size: 1.2rem;
    font-style: italic;
}

.projet-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.projet-description p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Portfolio Gallery */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.gallery-item video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: var(--blanc);
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.gallery-date {
    display: inline-block;
    background-color: var(--vert-principal);
    color: var(--blanc);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Impact Grid */
.projet-impact {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.projet-impact h3 {
    text-align: center;
    color: var(--vert-principal);
    margin-bottom: 1.5rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

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

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.impact-text {
    font-weight: 600;
    color: var(--texte-fonce);
}

/* Projets Futurs */
.projets-futurs {
    background-color: var(--gris-clair);
    padding: 4rem 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--texte-fonce);
    opacity: 0.8;
    margin-bottom: 3rem;
}

.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.projet-card {
    background-color: var(--blanc);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.projet-card.featured {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
    color: var(--blanc);
}

.projet-card.featured h3,
.projet-card.featured p {
    color: var(--blanc);
}

.projet-card.featured .projet-status {
    background-color: var(--blanc);
    color: var(--vert-principal);
}

.projet-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.projet-card h3 {
    color: var(--vert-principal);
    margin-bottom: 1rem;
}

.projet-card p {
    color: var(--texte-fonce);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.projet-status {
    display: inline-block;
    background-color: var(--vert-principal);
    color: var(--blanc);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--vert-principal) 0%, var(--vert-fonce) 100%);
    color: var(--blanc);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--blanc);
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

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

.btn-primary {
    background-color: var(--blanc);
    color: var(--vert-principal);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanc);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--blanc);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--blanc);
    color: var(--vert-principal);
}

/* Nav active link */
.nav-links a.active {
    color: var(--vert-principal);
}

.nav-links a.active::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--texte-fonce);
    color: var(--blanc);
    text-align: center;
    padding: 2rem;
}

footer .motto {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text .tagline {
        font-size: 0.75rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--blanc);
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .hero-logo {
        max-width: 150px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .motto {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .actes {
        padding: 0 1rem;
    }

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

    .content-block p {
        text-align: left;
    }

    .content-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-with-image.reverse {
        direction: ltr;
    }

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

    .grid-item img {
        height: 250px;
    }

    .don-methods {
        gap: 1.5rem;
    }

    /* Page Projets Responsive */
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 250px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hommage-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .acte-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .grid-item img {
        height: 200px;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animation au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}
