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

:root {
    /* Couleurs principales */
    --white: #ffffff;
    --blue-light: #e6f3ff;
    --blue: #4a90e2;
    --blue-dark: #2c5aa0;
    --blue-turquoise: #20b2aa;
    --green-light: #e8f5e8;
    --green: #4caf50;
    --green-dark: #2e7d32;
    --green-emerald: #50c878;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    
    /* Typographie */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espacements */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    margin-right: 10px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.2);
}

/* Animated circular logo with wave overlay */
.logo {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); */
}

.logo:hover {
    transform: scale(1.05);
    transition: var(--transition);
}

.logo::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('assets/images/logo-rmbg.png') center/cover no-repeat;
}

.logo::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    bottom: 0;
    left: -50%;
    border-radius: 35%;
    background-color: hsla(0, 0%, 100%, 0.9);
    animation: waves 5s ease-in-out alternate infinite;
    z-index: 0;
}

@keyframes waves {
    to {
        transform: translateY(-50%) rotate(540deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: var(--transition);
}

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

.lang-switcher {
    margin-left: 16px;
    position: relative;
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 6px 10px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.lang-toggle i {
    transition: var(--transition);
}

.lang-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.lang-toggle .flag {
    font-size: 18px;
    line-height: 1;
}

.lang-toggle .lang-code {
    font-weight: 600;
    font-size: 14px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    padding: 6px;
    display: none;
    z-index: 1001;
}

.lang-menu.show {
    display: block;
    animation: fadeInUp 0.15s ease-out;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: none;
    width: 180px;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--gray-light);
}

.lang-option .flag {
    font-size: 18px;
}

/* Hide native select but keep for accessibility/fallback */
.lang-select {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--green-light) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-title-container {
    display: flex;
    align-items: center;
}

.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-button {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-turquoise) 100%);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.cta-button i {
    font-size: 1.2rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 160%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: all 0.8s ease;
    transform: scale(1.1);
    animation: heroImageScale 3s ease-out forwards;
}

.hero-bg-image:hover {
    opacity: 1;
    transform: scale(1.2);
    transition: all 0.5s ease;
}

@keyframes heroImageScale {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}


/* Sections communes */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* À propos Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--gray-light);
    border-radius: 15px;
    transition: var(--transition);
}

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

.value-item i {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.value-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--green-light) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blue);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Story Section */
.story {
    background: var(--white);
    padding: 80px 0;
}

.story-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 20px;
    font-style: italic;
}

.story-content {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--blue), var(--green));
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    transition: transform 1.2s ease;
    border-radius: 2px;
    opacity: 0.8;
}

.timeline-line.animate {
    transform: translateX(-50%) scaleY(1);
}

.timeline-line.visible {
    transform: translateX(-50%) scaleY(1);
}

/* Animation progressive pour chaque segment - délais gérés par JavaScript */

.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-card {
    position: relative;
    display: flex;
    align-items: center;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card:nth-child(odd) {
    flex-direction: row;
}

.timeline-card:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-card-content {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;
    transition: var(--transition);
}

.timeline-card:nth-child(odd) .timeline-card-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-card:nth-child(even) .timeline-card-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-card-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 2;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-card-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}

.timeline-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projets Section */
.projets {
    background: var(--gray-light);
    padding: 80px 0;
}

.projets-subtitle, .events-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 20px;
    font-style: italic;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.project-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.project-card h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.project-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--blue-light);
    border-radius: 8px;
}

.cost-label {
    font-weight: 500;
    color: var(--text-dark);
}

.cost-value {
    font-weight: 700;
    color: var(--blue);
    font-size: 1.1rem;
}

.project-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.project-card { cursor: pointer; }

/* Tag chips (shared for events/projects) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--gray-light);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-chip i {
    color: var(--blue);
}

/* Project modal */
.project-modal {
    max-width: 1000px;
}
.project-body { text-align: left; }
.project-title h2 { margin: 0 0 10px; }
.project-meta { color: var(--text-light); margin-bottom: 16px; }
.project-markdown { margin-top: 20px; line-height: 1.7; }
.project-markdown img { max-width: 100%; height: auto; border-radius: 8px; }
.project-markdown p { margin: 0 0 1em; }

.project-slider { position: relative; width: 100%; height: 420px; border-radius: 12px; overflow: hidden; background: var(--gray-light); }
.project-slider-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.project-slider-slide { min-width: 100%; height: 100%; position: relative; }
.project-slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.project-slider-controls { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.project-slider-controls .slider-btn { pointer-events: all; }
.project-slider-dots { position: absolute; left: 0; right: 0; bottom: 0px; display: flex; justify-content: center; gap: 8px; padding: 6px 0; z-index: 3; }
.project-slider-dots .slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gray); border: none; }
.project-slider-dots .slider-dot.active { background: var(--blue); }

/* Hide arrow controls in project modal slider; click/swipe still navigates */
.project-slider-controls { display: none !important; }

/* Constrain images rendered in project cards */
.project-cover {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin: 12px 0 8px;
    background: var(--gray-light);
}
.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Impact Section */
.impact {
    background: var(--blue-light);
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
    z-index: 0;
}

.impact .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    background: var(--gray-light);
    padding: 80px 0;
}

.gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-slider {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 40px 30px 30px;
    text-align: center;
}

.slider-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.slider-caption p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: none; /* hidden on all devices per request */
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slider-btn i {
    font-size: 1.2rem;
    color: var(--blue);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    background: var(--white);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--blue);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: var(--blue-dark);
    transform: scale(1.1);
}

/* Comment aider Section */
.help {
    background: var(--white);
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.help-card {
    text-align: center;
    padding: 50px 30px;
    background: var(--gray-light);
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.help-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--blue);
}

.help-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.help-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.help-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.help-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.help-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.help-button.primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-turquoise) 100%);
    color: var(--white);
}

.help-button.secondary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-emerald) 100%);
    color: var(--white);
}

.help-button.tertiary {
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
}

.help-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    background: var(--green-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--blue);
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    color: var(--white);
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Styles pour les erreurs de formulaire */
.form-group input.error,
.form-group textarea.error {
    border-color: #f44336;
    background-color: #ffebee;
    animation: shake 0.5s ease-in-out;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.field-error {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: slideDown 0.3s ease-out;
}

.field-error::before {
    content: "⚠️";
    font-size: 0.75rem;
}

/* Animation de secousse pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Animation de glissement pour les messages d'erreur */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* État de chargement du bouton */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animation de rotation pour l'icône de chargement */
.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
    overflow: auto;             /* ou overflow-y: auto */
    -ms-overflow-style: none;   /* IE/Edge ancien */
    scrollbar-width: none;      /* Firefox */
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.modal-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 60px 40px 40px;
    text-align: center;
}

.modal-body .thank-you-icon {
    font-size: 80px;
    color: var(--green);
    margin-bottom: 30px;
    animation: bounceIn 0.8s ease-out;
}

.modal-body h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: left;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-actions .btn {
    padding: 15px 30px;
    font-size: 1rem;
    min-width: 120px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 50px 30px 30px;
    }
    
    .modal-body h2 {
        font-size: 1.5rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
    
    .modal-body .thank-you-icon {
        font-size: 60px;
    }
}

/* Compteur de caractères */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    transition: var(--transition);
}

.char-counter.warning {
    color: #ff9800;
}

.char-counter.danger {
    color: #f44336;
    font-weight: 600;
}

/* État de succès pour les champs */
.form-group input.success,
.form-group textarea.success {
    border-color: #4caf50;
    background-color: #e8f5e8;
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo i {
    margin-right: 10px;
    color: var(--blue);
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    transition: var(--transition);
}

.footer-logo-img:hover {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(120%) contrast(97%);
}

/* Styles pour les boutons du modal */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-turquoise) 100%);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}




/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* place lang switcher inline in top bar on mobile */
    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto auto; /* logo, spacer, lang, burger */
        gap: 8px;
        align-items: center;
    }
    .lang-switcher {
        margin-left: 0;
        justify-self: end;
        z-index: 1101; /* above sliding menu */
    }
    
    .hero {
        flex-direction: column;
        height: 100vh;
    }
    
    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 190%;
        height: 100%;
        z-index: 1;
    }
    
    .hero-bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .hero-title-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        color: var(--text-dark);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        color: var(--text-light);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .about-content,
    .contact-content,
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-container {
        padding: 20px 0;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-card {
        flex-direction: row !important;
        margin: 30px 0;
    }
    
    .timeline-card-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        padding: 20px;
    }
    
    .timeline-card-number {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .timeline-card-title {
        font-size: 1.1rem;
    }
    
    .timeline-card-text {
        font-size: 0.9rem;
    }
    
    .mission-values {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .help-options {
        grid-template-columns: 1fr;
    }
    
    .slider-wrapper {
        height: 400px;
    }
    
    .slider-caption {
        padding: 30px 20px 20px;
    }
    
    .slider-caption h3 {
        font-size: 1.3rem;
    }
    
    .slider-caption p {
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-logo {
        order: 1;
    }
    .nav-menu {
        order: 2;
    }
    .lang-switcher {
        order: 3;
        margin-left: auto;
        margin-right: 8px;
        position: relative;
        z-index: 1101; 
    }
    .hamburger {
        order: 4;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .help-card {
        padding: 30px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

/* Heart beat animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.heart-beat {
    animation: heartBeat 1.3s ease-in-out infinite;
    display: inline-block;
}

.heart-beat:hover {
    animation-duration: 0.6s;
}

/* Water drop animation */
@keyframes waterDropPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }
}

.water-drop-infinite {
    display: inline-block;
    position: relative;
}

.water-drop-infinite::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.6;
    animation: waterDropPulse 2s ease-in-out infinite;
    animation-delay: 0s;
}

.water-drop-infinite::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.4;
    animation: waterDropPulse 2s ease-in-out infinite;
    animation-delay: 0.7s;
}

/* Leaf turn over animation */
@keyframes leafTurnOver {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.leaf-turn-over {
    animation: leafTurnOver 3s ease-in-out infinite;
    display: inline-block;
    transform-origin: center;
}

.leaf-turn-over:hover {
    animation-duration: 1.5s;
}

/* Red heart beat animation */
.heart-beat-red {
    animation: heartBeat 1.3s ease-in-out infinite;
    display: inline-block;
    color: #ff4444;
}

.heart-beat-red:hover {
    animation-duration: 0.6s;
}

/* Footer credit */
.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Scroll Progress / Back to Top */
.scroll-progress {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 1100;
    transition: var(--transition);
}

.scroll-progress:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}

.scroll-progress .progress-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
}

.scroll-progress .progress-bg {
    fill: none;
    stroke: #e5eefb;
    stroke-width: 4;
}

.scroll-progress .progress-bar {
    fill: none;
    stroke: var(--blue);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 100 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-progress .progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .scroll-progress {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }
    .scroll-progress .progress-ring {
        width: 56px;
        height: 56px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scrollbar-width: none; 
}

/* Splash Screen Animation */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s ease;
}

.splash-content {
    position: relative;
    width: 200px;
    height: 200px;
}

.star-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.star {
    font-size: 6rem;
    animation: starPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.water-drop {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(180deg, #4a90e2 0%, #20b2aa 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    z-index: 1;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.6);
}

/* Animations */
@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    }
}

@keyframes waterDrop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(80px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(100px) scale(0.8);
    }
}

@keyframes splashImpact {
    0% {
        background: white;
    }
    100% {
        background: #ff4444;
    }
}

@keyframes wavePropagation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    10% {
        opacity: 0.7;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    75% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.05;
    }
    100% {
        transform: translate(-50%, -50%) scale(30);
        opacity: 0;
    }
}

@keyframes fadeToWhite {
    0% {
        background: #ff4444;
    }
    100% {
        background: white;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.splash-screen.water-falling .water-drop {
    animation: waterDrop 1.5s ease-in-out forwards;
}

.splash-screen.impact {
    animation: splashImpact 4s ease-in forwards;
}

.splash-screen.wave-effect {
    position: relative;
}

.splash-screen.wave-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.8) 0%, rgba(255, 68, 68, 0.4) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wavePropagation 1.2s ease-out forwards;
    z-index: 1;
}

/* Alternative wave effect using a separate element */
.wave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.9) 0%, rgba(255, 68, 68, 0.6) 30%, rgba(255, 68, 68, 0.3) 60%, transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wavePropagation 3s ease-out forwards;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.splash-screen.fade-to-white {
    animation: fadeToWhite 0.5s ease-in-out forwards;
}

.splash-screen.fade-out {
    animation: fadeOut 0.8s ease-in-out forwards;
}

/* Hide splash screen when animation is complete */
.splash-screen.hidden {
    display: none;
}

/* Prevent body scroll during splash */
body.splash-active {
    overflow: hidden;
}
