/* Style simple pour l'Association Billache */

/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables de couleurs */
:root {
    --primary-color: #00B878;      /* Vert émeraude */
    --primary-dark: #009560;       /* Vert émeraude foncé */
    --secondary-color: #FF7A00;    /* Orange */
    --text-color: #333;            /* Texte principal */
    --light-text: #ffffff;         /* Texte clair */
    --light-bg: #f8f9fa;           /* Fond clair */
    --dark-bg: #333;               /* Fond foncé */
}
/* Amélioration des couleurs et effets visuels */
:root {
    --primary-color: #2ecc71;      /* Vert plus vif */
    --primary-dark: #27ae60;       /* Vert foncé */
    --secondary-color: #f39c12;    /* Orange doré pour contraste */
    --text-color: #2c3e50;         /* Gris foncé pour meilleure lisibilité */
    --light-bg: #f5f8fa;           /* Fond très clair */
}

/* Amélioration du header */
header {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Les styles pour .logo ont été déplacés et améliorés plus bas */

/* Navigation plus interactive */
.nav-links a {
    position: relative;
    padding: 5px 0;
}

/* Styles pour le sélecteur de langue */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #271303a6;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.language-dropdown a:hover {
    background-color: var(--light-bg);
}

#current-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}

#current-lang i {
    font-size: 0.8em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

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

/* Section hero plus dynamique */
.hero {
    background-attachment: fixed; /* Effet parallaxe */
    transition: background-position 0.5s ease;
}

/* Boutons améliorés */
.btn {
    transition: all 0.3s ease;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Les styles pour .project-card ont été déplacés et améliorés dans la section ANIMATIONS ET EFFETS DYNAMIQUES */

/* Les styles pour .stat-card ont été déplacés et améliorés dans la section ANIMATIONS ET EFFETS DYNAMIQUES */

/* Galerie photo interactive */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Footer plus moderne */
.footer-links a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.social-icons a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

/* Bouton retour en haut de page amélioré */
.back-to-top {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Les styles pour .animate-on-scroll ont été déplacés dans la section ANIMATIONS ET EFFETS DYNAMIQUES */
/* Styles de base */
body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    font-size: 18px; /* Taille de police augmentée */
    font-weight: 500; /* Texte légèrement plus gras par défaut */
}

/* Augmentation de la taille et du poids des textes pour toutes les pages */
p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}

h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Augmentation de la taille des textes dans les sections spécifiques */
.hero p {
    font-size: 1.4rem;
    font-weight: 500;
}

.about-text p,
.project-content p,
.contact-info p,
.contact-form label,
.footer-column p {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* En-tête */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0; /* Augmentation du padding pour accommoder le logo plus grand */
    transition: all 0.3s ease;
}

/* Effet de surbrillance subtil sur l'en-tête au survol */
header:hover {
    box-shadow: 0 4px 20px rgba(0, 184, 120, 0.15);
}

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

.logo-container {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.logo {
    height: 90px; /* Logo plus grand */
    transition: all 0.5s ease;
    /*filter: drop-shadow(0 4px 6px rgba(0, 184, 120, 0.3)); /* Ombre verte
    animation: logo-pulse 3s infinite alternate;*/
}

/* Animation de pulsation subtile */
@keyframes logo-pulse {
    0% {
        filter: drop-shadow(0 4px 6px rgba(0, 184, 120, 0.3));
    }
    100% {
        filter: drop-shadow(0 6px 12px rgba(0, 184, 120, 0.6));
    }
}

/* Effet de brillance */
.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.logo-container:hover::before {
    opacity: 1;
}

/* L'animation @keyframes shine a été déplacée dans la section ANIMATIONS ET EFFETS DYNAMIQUES */

.logo:hover {
    transform: scale(1.1) rotate(2deg); /* Légère rotation au survol */
    filter: drop-shadow(0 8px 15px rgba(0, 184, 120, 0.5)); /* Ombre plus prononcée au survol */
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 700; /* Plus gras */
    font-size: 18px; /* Plus grand */
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--light-text);
    transition: all 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Section Hero */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/desertification.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgb(45 199 51 / 0%);
    padding: 30px;
    border-radius: 10px;

}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px; /* Padding augmenté */
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700; /* Plus gras */
    font-size: 18px; /* Plus grand */
    transition: all 0.3s;
    margin: 5px;
    letter-spacing: 0.5px; /* Espacement des lettres pour meilleure lisibilité */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.btn-outline:hover {
    background-color: var(--light-text);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* À propos */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Projets */
.projects {
    background-color: #fff;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 350px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-content {
    padding: 20px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.project-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.project-card p {
    color: #666;
    margin-bottom: 10px;
}

.center-button {
    text-align: center;
}

/* Impact */
.impact {
    background-color: #baf0f7b3;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

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

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    width: 220px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #020d20;
}

/* CTA */
.cta {
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-light {
    background-color: var(--light-text);
    color: var(--secondary-color);
}

.btn-light:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Équipe */
.team-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.team-card-content {
    padding: 20px;
}

.team-card h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-card p {
    color: #666;
    margin-bottom: 10px;
}

/* Pied de page */
footer {
    background-color: #0b6a8b;
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 17px; /* Plus grand */
    font-weight: 500; /* Plus gras */
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem; /* Plus grand */
    font-weight: 500; /* Plus gras */
    color: #ccc; /* Plus clair pour meilleure lisibilité */
}

/* Bouton retour en haut de page */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-card {
        width: 200px;
    }

    .footer-column {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    /* Styles de base pour mobile */
    body {
        font-size: 16px; /* Légèrement plus petit sur mobile mais toujours lisible */
    }

    p {
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.8);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        transition: transform 0.3s;
        z-index: 99;
        backdrop-filter: blur(5px);
        border-bottom: 2px solid var(--primary-color);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 18px; /* Garder les liens de navigation bien visibles */
        font-weight: 700;
    }

    .hero-content {
        padding: 20px;
    }

    .hero h1 {
        font-size: 2rem; /* Plus grand que l'original pour meilleure lisibilité */
    }

    .hero p {
        font-size: 1.2rem; /* Plus grand que l'original pour meilleure lisibilité */
    }

    .btn {
        padding: 10px 25px; /* Boutons plus grands pour faciliter le toucher */
        font-size: 16px;
        font-weight: 700;
    }

    .section-title {
        font-size: 2rem; /* Plus grand pour meilleure lisibilité */
    }

    .project-card, .team-card {
        width: 100%;
    }

    .project-content h3 {
        font-size: 1.5rem;
    }

    .project-content p {
        font-size: 16px;
    }

    .stats-grid {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 80%;
    }

    .cta h2 {
        font-size: 2rem; /* Plus grand pour meilleure lisibilité */
    }

    .cta p {
        font-size: 1.2rem; /* Plus grand pour meilleure lisibilité */
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-column h3 {
        font-size: 1.5rem;
    }

    .footer-links a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Maintenir une bonne lisibilité sur très petits écrans */
    body {
        font-size: 16px; /* Maintenir une taille de police lisible */
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content {
        padding: 15px;
    }

    .hero h1 {
        font-size: 1.8rem; /* Plus grand que l'original pour meilleure lisibilité */
    }

    .hero p {
        font-size: 1.1rem; /* Maintenir une taille lisible */
    }

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

    .btn {
        width: 100%;
        margin: 8px 0;
        padding: 12px 20px; /* Boutons plus grands pour faciliter le toucher */
        font-size: 16px;
        font-weight: 700;
    }

    .section-title {
        font-size: 1.8rem; /* Plus grand pour meilleure lisibilité */
    }

    h3 {
        font-size: 1.5rem; /* Maintenir les titres bien visibles */
    }

    p {
        font-size: 16px; /* Maintenir le texte lisible */
        line-height: 1.7; /* Augmenter l'espacement des lignes pour meilleure lisibilité */
    }

    .stat-card {
        width: 100%;
    }

    .stat-card h3 {
        font-size: 1.8rem; /* Chiffres plus grands */
    }

    .stat-card p {
        font-size: 16px;
    }

    .ticker {
        height: 30px;
    }

    .ticker-content {
        font-size: 0.9rem; /* Légèrement plus grand pour meilleure lisibilité */
    }

    .footer-column h3 {
        font-size: 1.4rem;
    }
}

/* Styles pour le header avec image de fond */
header {
    position: relative;
    z-index: 100;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/monta.jpg');
    background-size: cover;
    background-position: center;
    padding-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ticker-wrapper {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.ticker {
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    position: relative;
}

.ticker::before, .ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
}

.ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.ticker::after {
    right: 0;
    background: linear-gradient(90deg, transparent, var(--primary-dark));
}

.ticker-content {
    white-space: nowrap;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    animation: ticker 20s linear infinite;
    letter-spacing: 1px;
}

/* Ajustement du header pour la nouvelle disposition */
header .container {
    position: relative;
    z-index: 2;
    /*background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);*/
    border-radius: 10px;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);*/
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 15px;
}

header .container:hover {
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .ticker-content {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .ticker {
        height: 35px;
    }

    .ticker-content {
        font-size: 0.9rem;
    }
}

/* ======================================================
   ANIMATIONS ET EFFETS DYNAMIQUES
   ====================================================== */

/* Animation du ticker */
@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Animations de base */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Classes d'animation pour les éléments */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* Animations spécifiques */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}

.zoom-in {
    animation: zoomIn 1s ease forwards;
}

/* Effet de survol pour les cartes de projets */
.project-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    border-radius: 10px;
    background-color: white;
}

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

.project-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img, .project-card.hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(46, 204, 113, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.project-card:hover .project-icon {
    transform: scale(1);
}

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

.project-content {
    padding: 20px;
    transition: background-color 0.3s ease;
    position: relative;
}

.project-card:hover .project-content {
    background-color: rgba(46, 204, 113, 0.05);
}

.project-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.project-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

.animated-project {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-project.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de pulsation pour les boutons */
.btn.pulse {
    animation: pulse 0.5s ease;
}

/* Effet de rebond pour les icônes sociales */
.social-icons a.bounce {
    animation: bounce 0.5s ease;
}

/* Effet de flottement pour les statistiques */
.stat-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(46, 204, 113, 0.2) 0%,
        rgba(46, 204, 113, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.stat-card:hover .stat-icon-container {
    transform: scale(1.1);
    background: rgba(46, 204, 113, 0.2);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.6s ease, color 0.3s ease;
}

.stat-card:hover i {
    transform: rotateY(360deg);
    color: var(--primary-dark);
}

.animated-card {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.animated-card.animated {
    transform: translateY(0);
    opacity: 1;
    background-color: white;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
    transition: color 0.3s ease;
}

.stat-card:hover .counter {
    color: var(--primary-dark);
}

/* Effet de parallaxe pour la section hero */
.hero {
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Overlay pour la section hero */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);*/
    z-index: 1;
}

/* Particules pour la section hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.hero-particles span {
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
}

.hero-particles span:nth-child(1) {
    top: 20%;
    left: 20%;
    width: 15px;
    height: 15px;
    animation-duration: 45s;
}

.hero-particles span:nth-child(2) {
    top: 60%;
    left: 80%;
    width: 20px;
    height: 20px;
    animation-duration: 30s;
    animation-delay: 2s;
}

.hero-particles span:nth-child(3) {
    top: 40%;
    left: 40%;
    width: 8px;
    height: 8px;
    animation-duration: 50s;
    animation-delay: 4s;
}

.hero-particles span:nth-child(4) {
    top: 80%;
    left: 10%;
    width: 12px;
    height: 12px;
    animation-duration: 35s;
    animation-delay: 6s;
}

.hero-particles span:nth-child(5) {
    top: 30%;
    left: 70%;
    width: 10px;
    height: 10px;
    animation-duration: 40s;
    animation-delay: 8s;
}

.hero-particles span:nth-child(6) {
    top: 70%;
    left: 30%;
    width: 15px;
    height: 15px;
    animation-duration: 55s;
    animation-delay: 10s;
}

.hero-particles span:nth-child(7) {
    top: 10%;
    left: 90%;
    width: 8px;
    height: 8px;
    animation-duration: 60s;
    animation-delay: 12s;
}

.hero-particles span:nth-child(8) {
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    animation-duration: 45s;
    animation-delay: 14s;
}

.hero-particles span:nth-child(9) {
    top: 90%;
    left: 60%;
    width: 10px;
    height: 10px;
    animation-duration: 50s;
    animation-delay: 16s;
}

.hero-particles span:nth-child(10) {
    top: 20%;
    left: 30%;
    width: 15px;
    height: 15px;
    animation-duration: 40s;
    animation-delay: 18s;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Effet de typing pour le titre principal */
.typing-effect {
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid transparent;
}

/* Boutons animés */
.animated-btn {
    position: relative;
    overflow: hidden;
}

.animated-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.animated-btn:hover::before {
    left: 100%;
}

/* Effet de gradient animé pour la section CTA */
.cta {
    background-color: #12b8ac;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation du logo - déjà définie plus haut */

/* Effet de brillance pour les images */
.about-image {
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.about-image:hover::before {
    opacity: 1;
}

/* Animation shine - déjà définie plus haut */

/* Responsive animations */
@media (max-width: 768px) {
    .animate-on-scroll {
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .project-card:hover {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
