/*
Theme Name: Plus Wood Theme
Author: Plus Wood Team
Description: Thème personnalisé pour Plus Wood
Version: 1.0
*/

:root {
    --primary-color:   #4A6341;
    --secondary-color: #E9DCC9;
    --accent-color:    #9DB17C;
    --text-color:      #1A1A1A;
    --light-bg:        #FCFAF7;
    --white:           #FFFFFF;
    --beige-light:     #EFE5D0;
    --beige-dark:      #BDA276;
    --success-color:   #6BA368;
    --warning-color:   #E0AA3E;
    --error-color:     #C05746;
    --transition: all 0.3s ease;
    --title-font: 'Raleway', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}   

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--beige-light);
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--beige-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-weight: 600;
}

textarea {
    font-family: var(--body-font);
}

/* Header & Navigation */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(139, 115, 85, 0.1);
    position: fixed !important;
    z-index: 3000 !important;
    width: 100%;
    left: 0;
    top: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Transition mise à jour */
}

div.firstDiv {
    padding-top: 50px;
}

.site-header.scroll-down {
    transform: translateY(-100%);
    opacity: 0; /* Rend le header invisible */
    pointer-events: none; /* Empêche les clics lorsque caché */
}

.site-header.scroll-up {
    transform: translateY(0);
    opacity: 1; /* Rend le header visible */
    pointer-events: auto; /* Permet les clics lorsque visible */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.navbar {
    background-color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(26, 71, 42, 0.15);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--primary-color);
}

.site-title img {
    max-height: 50px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 3050 !important;
}

.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--primary-color);
    outline: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    position: relative;
}

.current-language {
    font-weight: bold;
    color: #f5f5f5;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.language-button:hover,
.language-button:focus {
    background: var(--beige-dark);
    color: var(--white);
    outline: none;
}

.language-button i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-selector:hover .language-button i,
.language-selector:focus-within .language-button i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.language-selector:hover .language-dropdown,
.language-selector:focus-within .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bolder;
    color: var(--primary-color);
}

.language-option:hover,
.language-option:focus {
    background: var(--beige-light);
    outline: none;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.2);
    color: var(--white);
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: var(--accent-color);
    outline: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    div.firstDiv {
        padding-top: 50px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    div.firstDiv {
        padding-top: 50px;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar-menu.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 0;
        width: 100%;
        display: block;
    }

    /* Cacher le sélecteur de langue original sur mobile */
    .language-selector {
        display: none;
    }

    /* Style simple pour les options de langue dans le menu burger */
    .mobile-language-option {
        display: none !important;
    }

    .navbar-menu.active .mobile-language-option {
        display: block !important;
    }

    .site-header {
        /* position: relative !important; -- Supprimé pour permettre fixed */
    }

    .burger-menu {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1rem;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        z-index: 3051;
        /* Centrage vertical si besoin */
        /* top: 50%; transform: translateY(-50%); */
    }


    .language-selector {
        display: none;
    }

    .navbar-menu.active .language-selector {
        display: block;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1); /* Changement de couleur pour une meilleure visibilité */
    }

    .navbar-menu.active .language-selector .language-button {
        display: none !important; /* Masquer le bouton de langue principal de manière forcée */
    }

    .navbar-menu.active .language-dropdown {
        position: static;
        display: flex;
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        opacity: 1; /* Rendre toujours visible */
        visibility: visible; /* Rendre toujours visible */
        transform: translateY(0); /* Réinitialiser la transformation pour l'affichage */
    }

    .navbar-menu.active .language-option {
        color: var(--primary-color); /* Changement de couleur pour être visible sur fond blanc */
        background: transparent; /* S'assurer qu'il n'y a pas de fond indésirable */
        padding: 0.75rem 0;
        font-size: 1.1rem;
        font-weight: bold; /* Rendre le texte plus visible */
        border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Ligne de séparation plus foncée */
        width: 100%;
        text-align: left;
    }

    .navbar-menu.active .language-option:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .navbar-menu.active .language-option:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    div.firstDiv {
        padding-top: 75px;
    }
}

/* Landing Page Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(92, 64, 51, 0.7), rgba(92, 64, 51, 0.7)), url('assets/images/wood-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.2);
    color: var(--white);
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--beige-light);
    padding: 4rem 0 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: var(--beige-light);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}


.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(210, 180, 140, 0.1);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--beige-light);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Additional Header Scroll Effects */
.site-header {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* Transition mise à jour */
}

.site-header.scroll-down {
    transform: translateY(-100%);
    opacity: 0; /* Rend le header invisible */
    pointer-events: none; /* Empêche les clics lorsque caché */
}

.site-header.scroll-up {
    transform: translateY(0);
    opacity: 1; /* Rend le header visible */
    pointer-events: auto; /* Permet les clics lorsque visible */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Slider Styles */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    will-change: opacity, visibility, transform;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out, transform 1.2s ease-out;
}

.slide::before {
    content: none !important;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.slide-logo {
    width: clamp(120px, 25vw, 180px);
    height: auto;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.slide.active .slide-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide-year {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.slide.active .slide-year {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    line-height: 1.2;
    will-change: opacity, transform;
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.slide-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    line-height: 1.4;
    will-change: opacity, transform;
}

.slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.slide-button {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
    background: var(--primary-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    opacity: 0;
    animation-delay: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, background 0.3s ease, color 0.3s ease;
    will-change: opacity, transform;
}

.slide.active .slide-button {
    opacity: 1;
    transform: translateY(0);
}

.slide-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 100vh;
    }

    .slide {
        padding: 1rem;
        transform: scale(1.05);
    }

    .slide.active {
        transform: scale(1);
    }

    .slide-content {
        padding: 0 0.5rem;
    }

    .slide-logo {
        margin-bottom: 1.5rem;
    }

    .slider-nav {
        bottom: 1.5rem;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    /* Optimisations des animations pour mobile */
    .slide,
    .slide.active,
    .slide::before,
    .slide-content,
    .slide-logo,
    .slide-year,
    .slide-title,
    .slide-subtitle,
    .slide-button {
        transition-duration: 0.6s;
    }

    .slide.active .slide-content { transition-delay: 0.2s; }
    .slide.active .slide-logo { transition-delay: 0.3s; }
    .slide.active .slide-year { transition-delay: 0.4s; }
    .slide.active .slide-title { transition-delay: 0.5s; }
    .slide.active .slide-subtitle { transition-delay: 0.6s; }
}

@media (max-width: 480px) {
    .slide {
        padding: 0.5rem;
    }

    .slide-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero-slider,
    .slide {
        height: -webkit-fill-available;
    }
}

/* Presentation Section */
.presentation-section {
    padding: 6rem 0;
    background-color: var(--beige-light);
}

.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.presentation-slider {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
    overflow: hidden;
}

.presentation-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    padding: 3rem;
    transition: opacity 0.8s ease-in-out;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.presentation-slide.active {
    opacity: 1;
    position: relative;
}

.presentation-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presentation-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
}

.presentation-slide.active .presentation-image {
    animation: fadeInRight 0.8s ease forwards;
}

.presentation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.presentation-slide:hover .presentation-image img {
    transform: scale(1.05);
}

.presentation-title {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
}

.presentation-slide.active .presentation-title {
    animation: fadeInUp 0.8s ease forwards;
}

.presentation-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
}

.presentation-slide.active .presentation-subtitle {
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.stats-list, .objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.presentation-slide.active .stats-list,
.presentation-slide.active .objectives-list {
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.stats-item, .objectives-item {
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--beige-light);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stats-item i, .objectives-item i {
    margin-right: 1rem;
    color: var(--accent-color);
}

.stats-item:hover, .objectives-item:hover {
    transform: translateX(10px);
}

/* Presentation Slider Navigation */
.presentation-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.presentation-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--beige-light);
    cursor: pointer;
    transition: var(--transition);
}

.presentation-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Animation pour l'entrée des images depuis la droite */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 992px) {
    .presentation-slide {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .presentation-image {
        height: 300px;
        order: -1;
    }

    .presentation-content {
        text-align: center;
    }

    .presentation-title,
    .presentation-subtitle {
        text-align: center;
    }

    .stats-item, .objectives-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .presentation-section {
        padding: 3rem 0;
    }

    .presentation-slider {
        padding: 1.5rem;
    }

    .presentation-slide {
        padding: 1.5rem;
    }

    .presentation-image {
        height: 250px;
    }

    .presentation-title {
        font-size: 2.5rem;
    }

    .presentation-subtitle {
        font-size: 1.2rem;
    }
}

/* Interactive Hexagon Section */
.interactive-section {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
    background-color: var(--beige-light);
}

.interactive-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hexagon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 2rem;
}

.hexagon-wrapper {
    position: relative;
    width: 200px;
    margin: 0 1rem;
}

.hexagon {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* background-color: #8B4513; */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); */
    border-radius: 50%;
    z-index: 2;
    background: linear-gradient(120deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.08) 100%);
}

.hexagon::after {
    content: none;
}

.rondin-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hexagon .hex-icon,
.hexagon .hex-title {
    z-index: 3;
}

/* Overlay pour lisibilité */
.hexagon::before {
    /* déjà défini plus haut, on renforce l'overlay */
    background: linear-gradient(120deg, rgba(0,0,0,0.13) 0%, rgba(0,0,0,0.10) 100%);
}

.hex-icon {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    z-index: 2;
    transition: color 0.3s ease;
}

.hex-title {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    padding: 0 1rem;
    margin: 0;
    z-index: 2;
    transition: color 0.3s ease;
}

.info-panel {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.info-panel::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.info-panel h2 {
    margin: 0 0 0.5rem;
    color: #333;
    font-size: 1.25rem;
}

.info-panel p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Effets de survol sur desktop */
@media (min-width: 1024px) {
    .hexagon-wrapper:nth-child(odd):hover .hexagon {
        transform: scale(1.05) rotate(5deg);
    }

    .hexagon-wrapper:nth-child(even):hover .hexagon {
        transform: scale(1.05) rotate(-5deg);
    }

    .hexagon-wrapper:hover .hex-icon,
    .hexagon-wrapper:hover .hex-title {
        color: #fff;
    }

    .hexagon-wrapper:hover .info-panel {
        opacity: 1;
        visibility: visible;
    }
}

/* Styles pour mobile */
@media (max-width: 1023px) {
    .hexagon-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hexagon-wrapper {
        width: 150px;
    }

    .hexagon-wrapper.active .hexagon {
        transform: scale(1.05) rotate(5deg);
        background-color: #5C4033;
    }

    .hexagon-wrapper.active .hex-icon,
    .hexagon-wrapper.active .hex-title {
        color: #fff;
    }

    .hexagon-wrapper.active .info-panel {
        opacity: 1;
        visibility: visible;
    }

    .info-panel {
        width: 250px;
    }
}

/* Animation des particules */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite linear;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: #f5f5f5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* What We Do Section */
.what-we-do-section {
    padding: 6rem 0;
    background: #f5f5f5;
}


.what-we-do-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
}

.what-we-do-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.what-we-do-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
}

.what-we-do-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.what-we-do-image:hover img {
    transform: scale(1.05);
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    background-color: var(--accent-color);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* Section Title */
.section-title {
    font-family: var(--title-font);
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

.privacy-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.privacy-modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.privacy-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.privacy-close:hover {
    color: #000;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}



.adherents-hero {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.adherents-hero.animate-hero {
    opacity: 1;
    transform: translateY(0);
}

.adherants-map-section-modern {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--beige-light) 100%);
    border-radius: 28px;
    padding: 3.5rem 2rem 2.5rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 6px 32px rgba(139, 115, 85, 0.10);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.adherants-map-filters {
    margin-bottom: 2.2rem;
}

.adherants-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-end;
}



.adherants-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 220px;
}

.adherants-filter-group label {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#adherant-select,
#adherants-search {
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    border: 2px solid var(--beige-dark);
    font-size: 1.08rem;
    background: #fff;
    color: var(--text-color);
    transition: border 0.2s;
    box-shadow: 0 1px 4px rgba(139, 115, 85, 0.04);
}

#adherant-select:focus,
#adherants-search:focus {
    border: 2px solid var(--secondary-color);
    outline: none;
}

.adherants-map-modern {
    width: 100%;
    margin: 0 auto 2.5rem auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(139, 115, 85, 0.08);
}

.adherants-map-modern-inner {
    width: 100%;
    min-height: 320px;
    height: 420px;
}

.adherants-identites-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.2rem;
    margin-top: 2.5rem;
    justify-items: center;
}

.adherant-card-modern {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(26, 71, 42, 0.15);
    padding: 2.2rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 320px;
    min-height: 320px;
    max-height: 340px;
    width: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    cursor: default;
    box-sizing: border-box;
    border: 1px solid rgba(26, 71, 42, 0.1);
}

.adherant-card-modern:hover {
    box-shadow: 0 8px 32px rgba(26, 71, 42, 0.2);
    transform: translateY(-6px) scale(1.03);
    border-color: var(--secondary-color);
}

.adherant-logo-modern {
    width: 100%;
    aspect-ratio: 3/1;
    min-height: 80px;
    max-height: 110px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    box-shadow: 0 1px 8px rgba(139, 115, 85, 0.07);
    overflow: hidden;
    border: 1.5px solid #e0d3c0;
}

.adherant-logo-modern.svg-logo {
    background: linear-gradient(135deg, #f5f1e6 60%, #e7dfd1 100%);
}

.adherant-logo-modern img,
.adherant-logo-modern svg {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: none;
}

.adherant-logo-placeholder {
    font-size: 2.2rem;
    color: var(--accent-color);
    opacity: 0.5;
}

.adherant-info-modern {
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.adherant-nom-modern {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.18rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.2px;
    word-break: break-word;
}

.adherant-ville-modern {
    color: var(--accent-color);
    font-size: 1.01rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4em;
    justify-content: center;
}

.scroll-to-form-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.scroll-to-form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.scroll-to-form-button:hover {
    transform: scale(1.05);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.2);
}

.scroll-to-form-button:hover::before {
    transform: translateX(0);
}


@media (max-width: 900px) {
    .adherants-identites-modern {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 1.2rem;
    }

    .adherant-card-modern {
        min-width: 120px;
        max-width: 100%;
        min-height: 220px;
        max-height: 260px;
        padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    }

    .adherant-logo-modern {
        min-height: 56px;
        max-height: 70px;
        margin-bottom: 0.7rem;
        background: #fff;
    }

    .adherant-logo-modern.svg-logo {
        background: linear-gradient(135deg, #f5f1e6 60%, #e7dfd1 100%);
    }
}

@media (max-width: 600px) {
    .adherants-map-section-modern {
        padding: 1.2rem 0.2rem 1.2rem 0.2rem;
        border-radius: 0;
    }

    .adherants-filters-row {
        flex-direction: column;
        gap: 1.2rem;
        align-items: stretch;
    }

    .adherants-identites-modern {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .adherant-card-modern {
        min-width: 100px;
        max-width: 100%;
        min-height: 180px;
        max-height: 220px;
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    }

    .adherant-logo-modern {
        min-height: 36px;
        max-height: 44px;
        margin-bottom: 0.4rem;
        background: #fff;
    }

    .adherant-logo-modern.svg-logo {
        background: linear-gradient(135deg, #f5f1e6 60%, #e7dfd1 100%);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .what-we-do-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image,
    .what-we-do-image {
        order: -1;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .what-we-do-section li {
        list-style: none;
    }
    
    .about-section,
    .what-we-do-section {
        padding: 4rem 0;
    }

    .about-content,
    .what-we-do-content {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Main content padding to account for fixed navbar */
main {
    padding-top: 60px;
}

/* Adhérents Page Styles */
.adherents-hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/images/handshake.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.adherents-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #9db17ca5, #4a63419d);
    opacity: 0;
    transform: translateY(-100%);
    animation: fadeInOverlay 1s ease forwards 0.5s;
}

.adherents-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.adherents-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.adherents-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for adherents hero */
@media (max-width: 768px) {
    .adherents-hero {
        background-attachment: scroll;
        height: 80vh;
    }

    .adherents-hero-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .adherents-hero-content {
        padding: 1.5rem;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .adherents-hero {
        height: -webkit-fill-available;
    }
}

/* Adhérents Form Styles */
.adherents-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.adherents-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
}

.adherents-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--beige-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(92, 64, 51, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.submit-button {
    position: relative;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    min-width: 200px;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(26, 71, 42, 0.2);
    background: var(--primary-color);
}

.submit-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-timer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 4s linear;
}

.submit-button:disabled .button-timer {
    transform: scaleX(1);
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.error-messages {
    background: #f8d7da;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.error-message {
    color: #721c24;
    margin-bottom: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .adherents-form {
        grid-template-columns: 1fr;
    }
    
    .adherents-form-wrapper {
        padding: 2rem;
    }
    
    .adherents-form-container {
        padding: 2rem 1rem;
    }
}

/* Toast notification moderne en bas à droite */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 220px;
    max-width: 90vw;
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.4s, transform 0.4s;
    transform: translateY(40px);
    display: flex;
    align-items: center;
    gap: 0.7em;
}
.toast-notification.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.toast-notification.success {
    background: #4CAF50;
}
.toast-notification.error {
    background: #f44336;
}

/* Section Que fait-on ? Moderne et élégante */
.elegant-bg {
    background: #f5f5f5;
    padding: 6rem 0;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
    max-width: 1700px;
    margin: 0 auto;
    padding: 2rem 0 0 0;
    perspective: 1200px;
}

.service-card {
    background: #fff;
    border-radius: 2.2rem;
    box-shadow: 0 8px 32px rgba(26, 71, 42, 0.15);
    padding: 3.2rem 2.2rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    min-height: 260px;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(26, 71, 42, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    box-shadow: 0 16px 48px rgba(26, 71, 42, 0.2);
    transform: translateY(-10px) scale(1.045);
    border-color: var(--secondary-color);
}

.service-icon {
    background: var(--beige-light);
    border-radius: 1.2rem;
    padding: 1rem 1.2rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.07);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    display: inline-block;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: translateY(-6px) scale(1.12);
}

/* Ajustements pour le responsive */
@media (max-width: 1400px) {
    .services-cards {
        max-width: 98vw;
        gap: 2vw;
    }
}

@media (max-width: 1200px) {
    .services-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .services-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
    }
    .service-card {
        padding: 2.2rem 1.2rem 1.2rem 1.2rem;
        min-height: 200px;
    }
}

@media (max-width: 600px) {
    .services-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1rem;
    }
    .service-card {
        align-items: center;
        text-align: center;
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
        min-height: 120px;
    }
    .service-icon {
        font-size: 1.5rem;
        padding: 0.7rem 0.8rem;
    }
    .service-list {
        padding-left: 0.5rem;
        font-size: 1rem;
    }
}

/* Animation de parallaxe */
@keyframes parallax {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20px);
    }
}

.elegant-bg::before {
    animation: parallax 20s linear infinite alternate;
}

/* Bouton burger caché sur desktop, visible sur mobile */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.7rem;
    z-index: 3051;
    position: relative;
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1rem;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        z-index: 3051;
    }
}

.menu-toggle-icon {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px auto;
    background-color: var(--accent-color, #8b7355);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
}

.burger-menu.active .menu-toggle-icon:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu.active .menu-toggle-icon:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .menu-toggle-icon:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- SECTION OBJECTIFS : styles spécifiques et isolés --- */
.objectives-section {
    padding: 6rem 0;
    background: var(--beige-light);
    padding-left: 2vw;
    padding-right: 2vw;
}

.objectives-section .container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 1vw;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3vw;
    margin-top: 3rem;
    perspective: 1200px;
}

.objective-card {
    background: #fff;
    border-radius: 2.2rem;
    box-shadow: 0 8px 32px rgba(26, 71, 42, 0.15);
    padding: 3.2rem 2.2rem 2.2rem 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    min-height: 260px;
    cursor: default;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(26, 71, 42, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;

}

.objective-card::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.22rem;
    background: var(--accent-color);
    border-radius: 2rem 2rem 0 0;
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 2;
}

.objective-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.objective-icon {
    background: var(--beige-light);
    border-radius: 1.2rem;
    padding: 1rem 1.2rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.07);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    display: inline-block;
}

.objective-card:hover .objective-icon {
    background: var(--secondary-color);
    color: var(--accent-color);
    transform: translateY(-6px) scale(1.12);
}

.objective-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.objective-card p {
    color: var(--text-color);
    font-size: 1.13rem;
    margin: 0;
    opacity: 0.88;
}

@media (max-width: 1400px) {
    .objectives-section .container {
        max-width: 98vw;
        padding: 0 1vw;
    }
    .objectives-grid {
        gap: 2vw;
    }
}
@media (max-width: 1200px) {
    .objectives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    .objective-card {
        padding: 2.2rem 1.2rem 1.2rem 1.2rem;
        min-height: 200px;
    }
}
@media (max-width: 600px) {
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .objective-card {
        align-items: center;
        text-align: center;
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
        min-height: 120px;
    }
    .objective-icon {
        font-size: 1.5rem;
        padding: 0.7rem 0.8rem;
    }
    .objectives-section {
        padding-left: 1vw;
        padding-right: 1vw;
    }
}

/* Styles pour la flèche et la fiche technique des cartes de services */
.service-card {
    position: relative;
    cursor: default;
}

.service-card .expand-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--beige-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.service-card .expand-button:hover {
    background: var(--accent-color);
    transform: rotate(180deg);
}

.service-card .expand-button i {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.service-card .expand-button:hover i {
    color: white;
}

.service-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-details.active {
    opacity: 1;
    visibility: visible;
}

.service-details-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.service-details.active .service-details-content {
    transform: translateY(0);
}

.service-details-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.service-details-close:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.service-details-header {
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.service-details-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-details-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.service-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 0 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Ajustements pour le responsive mobile */
@media (max-width: 768px) {
    .service-details-content {
        width: 100%;
        padding: 1rem;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .service-details-header {
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .service-details-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .service-details-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .service-gallery {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    .service-gallery-item {
        width: 100%;
        aspect-ratio: 16/9;
        margin: 0;
    }

    .service-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .lightbox-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .lightbox-content img {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }

    .lightbox-nav {
        padding: 0 0.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }

    .lightbox-close:hover {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* Optimisations supplémentaires pour très petit écran */
@media (max-width: 480px) {
    .service-details-content {
        padding: 0.8rem;
    }

    .service-details-title {
        font-size: 1.3rem;
    }

    .service-details-description {
        font-size: 0.95rem;
    }

    .service-gallery-item {
        aspect-ratio: 4/3;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .lightbox-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Correction du scroll horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ajustements pour le responsive mobile */
@media (max-width: 768px) {
    .service-details {
        padding: 0;
        margin: 0;
        width: 100vw;
        left: 0;
        right: 0;
    }

    .service-details-content {
        width: 100%;
        padding: 1rem;
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .service-details-header {
        padding: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    .service-details-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        padding-right: 2rem;
    }

    .service-details-description {
        font-size: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .service-gallery {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .service-gallery-item {
        width: 100%;
        aspect-ratio: 16/9;
        margin: 0;
        padding: 0;
    }

    .service-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .lightbox {
        padding: 0;
        margin: 0;
    }

    .lightbox-content {
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .lightbox-content img {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }

    .lightbox-nav {
        padding: 0 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }
}

/* Optimisations supplémentaires pour très petit écran */
@media (max-width: 480px) {
    .service-details-content {
        padding: 0.8rem;
    }

    .service-details-title {
        font-size: 1.3rem;
    }

    .service-details-description {
        font-size: 0.95rem;
    }

    .service-gallery-item {
        aspect-ratio: 4/3;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .lightbox-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Styles pour la page d'erreur 404 */
.error-404 {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.error-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.error-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.error-number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.error-submessage {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.error-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.error-button:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 99, 65, 0.2);
}

.error-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.error-decoration .wood-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Animation des particules pour la page 404 */
@keyframes float404 {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.error-decoration .particle {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.35;
    animation: float404 20s infinite linear;
    box-shadow: 0 0 8px 2px #fff8, 0 0 0 2px #fff4;
    border: 1.5px solid #fff;
}

/* Responsive design pour la page 404 */
@media (max-width: 768px) {
    .error-404 {
        padding: 1rem;
    }

    .error-content {
        padding: 2rem;
    }

    .error-number {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .error-content {
        padding: 1.5rem;
    }

    .error-number {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-button {
        padding: 0.8rem 2rem;
    }
}

.objective-card:hover, .service-card:hover {
    will-change: transform;
}

#global-loader {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
#global-loader .loader-animation {
  width: 60px;
  height: 60px;
  border: 6px solid #e2b97f;
  border-top: 6px solid #8b5c1e;
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
  margin-bottom: 1.2rem;
}
@keyframes spinLoader {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
#global-loader .loader-text {
  color: #8b5c1e;
  font-size: 1.2rem;
  font-family: var(--title-font, sans-serif);
  letter-spacing: 1px;
}
body.loaded #global-loader {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .adherant-logo-modern {
    min-height: 80px;
    max-height: 120px;
    margin-bottom: 1.2rem;
  }
  .adherant-logo-modern img,
  .adherant-logo-modern svg {
    width: 95%;
    height: 95%;
    max-height: 110px;
  }
}

.adherents-hero.fournisseurs-page::before {
    background: none !important;
}