
@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&family=Sora:wght@100..800&display=swap');
@import url("https://use.typekit.net/avd5swi.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}



/* ===== HEADER ET NAVIGATION ===== */
header {
    background-color: #F2EBA6;
    padding: 15px 0;
    transition: all 0.3s ease;
    font-family: 'Sora', sans-serif;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 170px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 45px;
}

nav a {
    color: #E52421;
    text-decoration: none;
    font-size: 18px;
}

nav a:hover {
    transition: color 0.3s ease;
    color: #FF0000;
    font-size: 18px;
}

.donate-btn {
    background-color: #E52421;
    color: #fffbec;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 18px;
}
.donate-btn:hover {
    transition: color 0.3s ease;
    color: #28a745;
    font-size: 18px;
}

/* ===== HERO SECTION INVERSE ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #c8e6c9  0%, #4a7c59 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Dryouth', sans-serif;
    font-style: normal;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232c5530' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Contenu sur la GAUCHE */
.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: #2c5530;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 2.8em;
    color: #2c5530;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    color: #4a7c59;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Cartes sur la DROITE */
.hero-images {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
}

.image-stack {
    position: relative;
    width: 100%;
    height: 100%;
    gap: 140px;
}

.image-item {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Positionnement des images */
.image-item-1 {
    width: 280px;
    height: 200px;
    top: 0;
    right: 0;
    z-index: 3;
}

.image-item-2 {
    width: 250px;
    height: 180px;
    top: 120px;
    left: 0;
    z-index: 2;
}

.image-item-3 {
    width: 220px;
    height: 160px;
    top: 220px;
    right: 40px;
    z-index: 1;
}

/* ===== PAGES D'actions  ===== */

/* Contenu principal des pages d'actions */
.action-content {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e8f4ea;
    margin-top: 70px;

}

.action-hero {
    height: 300px;
    overflow: hidden;
}

.action-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action-body {
    padding: 40px;
}


/* Métadonnées */
.action-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e8f4ea;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1em;
}

.meta-item .icon {
    color: #2c5530;
    font-size: 1.2em;
}


/* Description */
.action-description h1 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-size: 2em;
    line-height: 1.3;
}

.action-description p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.1em;
}


/* Statistiques */
.action-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2c5530;
}

.stat {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c5530;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.8rem;
    line-height: 1.3;
}


/* CTA */
.action-cta {
    background: linear-gradient(135deg, #e8f4ea 0%, #c8e6c9 100%);
    padding: 2.5rem;
    border-radius: 10px;
    margin: 2.5rem 0;
    text-align: center;
    border: 2px solid #c8e6c9;
}

.action-cta h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.4em;
}

.action-cta p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1em;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}


/* Section actions similaires */
.related-section {
    margin: 4rem 0;
}

.related-section h2 {
    color: #2c5530;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2em;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.action-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8f4ea;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.action-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3em;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card-date, .card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9em;
    color: #666;
}

.card-description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
    font-size: 0.95em;
}

.card-link:hover {
    gap: 0.8rem;
    color: #1e5c32;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #f8f9fa;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section p, .footer-section a {
    color: #f8f9fa;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: #4a7c59;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}


/* ===== COMPOSANTS RÉUTILISABLES ===== */

/* Boutons */
.btn {
  padding:12px 30px; 
  border-radius:5px; 
  text-decoration:none; 
  font-weight:bold;
  transition:all .3s ease !important; 
  position:relative; 
  overflow:hidden; 
  display:inline-flex;
  align-items:center; 
  gap:.5rem; 
  font-size:1em; 
  border:2px solid transparent;
}

.btn::after{
  content:''; 
  position:absolute; 
  top:50%; 
  left:50%; 
  width:0; 
  height:0;
  background:rgba(255,255,255,.2); 
  border-radius:50%; 
  transform:translate(-50%,-50%);
  transition:width .3s ease, height .3s ease;
}

.btn:active::after{ 
    width:100px; 
    height:100px; 
}

.btn-primary{ 
    background:#2c5530; 
    color:#fff; 
}

.btn-primary:hover{ 
    background:#1e5c32; 
    transform:translateY(-2px); 
    box-shadow:0 5px 15px rgba(44,85,48,.3); 
}    

.btn-secondary{ 
    background:#4a7c59; 
    color:#fff; 
}

.btn-secondary:hover{ 
    background:#3a6c49; 
    transform:translateY(-2px); 
    box-shadow:0 5px 15px rgba(74,124,89,.3); 
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c5530;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group-full {
    position: relative;
    margin-bottom: 20px;
}

.form-group-full label {
    display: block;
    margin-bottom: 8px;
    color: #2c5530;
    font-weight: bold;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.form-group-full input, .form-group-full select, .form-group-full textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group-full.focused label {
    color: #2c5530;
    transform: translateY(-25px) scale(0.8);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2c5530 !important;
    box-shadow: 0 0 0 2px rgba(44, 85, 48, 0.1);
}

/* FAQ Accordéon */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #2c5aa0;
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px 0;
    margin: 0;
    line-height: 1.6;
}

.faq-item.active .faq-question {
    color: #2c5aa0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}




/* Partners Section */
.partners {
    background: linear-gradient(135deg, #4a7c59  0%, #c8e6c9 100%);
    padding: 80px 0;
    text-align: center;
}


.partners h2 {
    color: #f8f9fa;
    margin-bottom: 15px;
    font-size: 2em;
}

.partners > p {
    color: #f8f9fa;
    margin-bottom: 50px;
    font-size: 1.1em;
}

.partners-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto 40px;
    max-width: 1200px;
}

.partners-track {
    display: flex;
    animation: scrollPartners 30s linear infinite;
    gap: 2rem;
    padding: 1rem 0;
}



.partner-item {
    flex: 0 0 200px;
    background: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid #e8f4ea;
    text-align: center;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #2c5530;
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.partner-logo img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-item:hover .partner-logo img {
    filter: grayscale(0%);
}

.partner-item h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
    font-weight: bold;
}

.partner-item p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}



/* ===== TRANSITIONS ET ANIMATIONS ===== */

/* Transitions de base */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Transitions pour les boutons */
.btn,
.donate-btn,
.hero-buttons a,
.cta-buttons a,
.news-card a {
    transition: all 0.3s ease;
}

.btn:hover,
.donate-btn:hover,
.hero-buttons a:hover,
.cta-buttons a:hover,
.news-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Transitions pour les cartes */
.hero-card,
.news-card,
.process-step,
.testimonial-card,
.partner-item,
.stat-card {
    transition: all 0.3s ease;
}

.hero-card:hover,
.news-card:hover,
.process-step:hover,
.testimonial-card:hover,
.partner-item:hover,
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Transitions pour les images */
.image-item,
.process-image img,
.partner-logo img,
.card-image img {
    transition: all 0.3s ease;
}

.image-item:hover,
.process-image img:hover,
.partner-logo img:hover,
.card-image img:hover {
    transform: scale(1.05);
}

/* Transitions pour la navigation */
nav ul li a,
.footer-section a {
    transition: all 0.3s ease;
}

nav ul li a:hover,
.footer-section a:hover {
    color: #28a745;
    transform: translateX(5px);
}

/* Transitions pour les stats */
.stat-number {
    transition: all 0.5s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    color: #28a745;
}

/* Transitions pour les partenaires */
.partners-track {
    transition: transform 0.5s ease;
}

/* Animations pour le chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animations d'apparition */
.hero-content {
    animation: fadeInLeft 0.8s ease;
}

.hero-images {
    animation: fadeInRight 0.8s ease;
}

.news-card,
.process-step,
.stat-card {
    animation: fadeInUp 0.6s ease;
}

/* Délais d'animation pour effet cascade */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:nth-child(5) { animation-delay: 0.5s; }



/* Transition pour les formulaires */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

/* Transition pour les badges */
.hero-badge {
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: scale(1.05);
}

/* Transition pour le footer */
.footer-section a {
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

/* Transition pour les étapes du processus */
.step-number {
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

/* Transition pour la section témoignage */
.quote-icon {
    transition: all 0.3s ease;
}

.testimonial-card:hover .quote-icon {
    transform: scale(1.2);
    opacity: 0.5 !important;
}

/* Désactivation des transitions pour les préférences de réduction des motions */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}