/* Empêcher le débordement horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d6a4f;
    --secondary-color: #52b788;
    --accent-color: #95d5b2;
    --dark-color: #1b4332;
    --text-color: #2d3748;
    --light-bg: #f8f9fa;
    --cream: #f5f3ed;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    z-index: 2001;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-list a:not(.btn-contact):hover {
    color: var(--primary-color);
}

.nav-list a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--dark-color);
    color: var(--white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Bouton hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 2002; /* Au-dessus de tout */
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Desktop - Menu normal */
@media (min-width: 969px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav {
        display: block !important;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
    }
}

/* Mobile - Menu hamburger */
@media (max-width: 968px) {
    /* Afficher le bouton hamburger */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Menu caché par défaut - VERSION COMPACTE ET COURTE */
    .nav {
        display: block !important;
        position: fixed !important;
        top: 80px !important; /* Commence en dessous du header */
        right: -100% !important;
        bottom: auto !important; /* Enlève le bottom:0 */
        height: auto !important; /* Hauteur automatique */
        width: 70% !important;
        max-width: 280px !important;
        background-color: #ffffff !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3) !important;
        border-radius: 12px 0 0 12px !important; /* Coins arrondis à gauche */
        padding: 1.5rem 1.5rem 1.5rem !important; /* Padding uniforme */
        transition: right 0.4s ease !important;
        z-index: 9999 !important;
        overflow-y: visible !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        left: auto !important;
    }
    
    /* Menu ouvert */
    .nav.active {
        right: 0 !important;
    }
    
    /* Liste verticale */
    .nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .nav-list li {
        border-bottom: 1px solid #e0e0e0;
        width: 100% !important;
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        display: block !important;
        padding: 1rem 0 !important;
        font-size: 0.95rem !important;
        color: var(--text-color) !important;
        text-decoration: none !important;
        width: 100% !important;
        font-weight: 500 !important;
    }
    
    .nav-list a:hover {
        color: var(--primary-color) !important;
        padding-left: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Bouton contact - EN BLANC */
    .btn-contact {
        width: 100% !important;
        text-align: center !important;
        margin-top: 1rem !important;
        padding: 0.9rem !important;
        display: block !important;
        background-color: white !important;
        color: var(--dark-color) !important;
        border: 2px solid var(--dark-color) !important;
        border-radius: 8px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }
    
    .btn-contact:hover {
        background-color: var(--dark-color) !important;
        color: white !important;
        padding-left: 0 !important;
    }
    
    /* Overlay sombre */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0);
        transition: background-color 0.3s ease;
        pointer-events: none;
        z-index: 9998;
    }
}

@media (max-width: 640px) {
    .nav {
        width: 75% !important;
        max-width: 300px !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
    background-color: #1b4332;
    background-image: url('visuals/background.png');
    background-size: cover;
    background-position: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 67, 50, 0.8), rgba(45, 106, 79, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
}

.btn-hero {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color);
}

.hero-background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Hero Section Equipe */
.heroEquipe {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
 
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    z-index: 0;
}
 
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;    
}
 
.hero-overlay-equipe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 67, 50, 0.8), rgba(45, 106, 79, 0.7));
    z-index: 1;
}
 
.hero-content-equipe {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}
 
.hero-content-equipe h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
 
.hero-content-equipe p {
    font-size: 1.4rem;
    margin-bottom: 0rem;
    font-weight: 300;
    opacity: 0.95;
}
 
.btn-hero {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}
 
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color);
}
 
/* Hero Section Services */
.heroServices {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
    background-color: #1b4332;
    background-image: url('visuals/background.png');
    background-size: cover;
    background-position: center;
}
 
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    z-index: 0;
}
 
.hero-video-services {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(0.38);
    object-fit: cover;
}
 
.hero-overlay-services {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 67, 50, 0.8), rgba(45, 106, 79, 0.7));
    z-index: 1;
}
 
.hero-content-services {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}
 
.hero-content-services h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
 
.hero-content-services p {
    font-size: 1.4rem;
    margin-bottom: 0rem;
    font-weight: 300;
    opacity: 0.95;
}
 
.btn-hero {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}
 
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--accent-color);
}
 
/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* ===== SECTION À PROPOS AMÉLIORÉE ===== */

.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 25%;               /* décale verticalement */
    left: -10%;              /* décale horizontalement */
    transform: translate(-50%, -50%) rotate(-270deg); /* rotation douce */
    width: 800px;
    height: 800px;
    background-image: url('visuals/icone2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;          /* un peu plus visible */
    z-index: 0;
    pointer-events: none;
}

/* Cacher les logos en arrière-plan sur mobile */
@media (max-width: 968px) {
    .about::before,
    .about::after {
        display: none !important;
    }
}

.about::after {
    content: '';
    position: absolute;
    top: 25%;                 /* position opposée */
    left: 110%;
    transform: translate(-50%, -50%) rotate(-90deg) scaleX(-1); /* miroir horizontal */
    width: 800px;
    height: 800px;
    background-image: url('visuals/icone2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-main {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-main p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.values-section {
    margin: 5rem 0 4rem;
    text-align: center;
}

.values-intro {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.values-intro strong {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(23%) sepia(14%) 
          saturate(1584%) hue-rotate(102deg) brightness(92%) contrast(94%);
  /* ce filtre garde ton vert sapin même si le logo est noir ou neutre */
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.value-card:hover .value-icon img {
  transform: scale(1.1);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.convictions-section {
    margin-top: 5rem;
}

.convictions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.conviction-card {
    background: linear-gradient(135deg, #fffef7 0%, #f5f3ed 100%);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.conviction-card:nth-child(1) { animation-delay: 0.2s; }
.conviction-card:nth-child(2) { animation-delay: 0.3s; }
.conviction-card:nth-child(3) { animation-delay: 0.4s; }

.conviction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.15);
}

.conviction-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.conviction-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conviction-icon svg,
.conviction-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.conviction-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.conviction-card ul {
    list-style: none;
    padding: 0;
}

.conviction-card li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.conviction-card li::before {
   /*content: '▪';*/
    content: '➜';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@media (max-width: 968px) {
    .values-grid,
    .convictions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about::before {
        width: 500px;
        height: 500px;
        opacity: 0.02;
    }

    .values-intro {
        font-size: 1.1rem;
    }
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Team Section */
.team {
    background-color: var(--cream);
}

.team-content {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.team-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Contact Section */

.contact {
    position: relative;
    color: var(--white);
    background-image: url('visuals/contact_image.jpg');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 6rem 0;
    overflow: hidden; /* évite que l’overlay dépasse */
    z-index: 0; /* Important : le fond est le plus bas */
}


.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 67, 50, 0.8), rgba(45, 106, 79, 0.7));
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2; /* assure que le texte passe au-dessus de l’overlay */
    max-width: 100%;
    overflow: hidden;
}

.contact .section-title {
    position: relative;
    z-index: 2; /* pour qu’il soit au-dessus de l’overlay */
    margin: 0;
    text-align: center;
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.95;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}


/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0 2rem;
    max-width: 100%;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin: 3rem;
    width: 100%;
    max-width: 1000px;
    position: center;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.footer-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-description {
    line-height: 1.7;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    justify-content: flex-start; /* ou center */
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .hero {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--accent-color);
    color: var(--dark-color);
}
/* Team Page Styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.team-page {
    background-color: var(--light-bg);
}

.team-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}
 

.team-member {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 2rem;*/
}

.member-photo svg {
    width: 180px;
    height: 180px;
}

.member-info {
    padding: 2rem;
}

.member-info h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-expertise span {
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cta-section {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-photo {
        height: 240px;
    }
    
    .member-photo svg {
        width: 150px;
        height: 150px;
    }
}

/* Legal Pages Styles - À ajouter à la fin de styles.css */

.legal-page {
    background-color: var(--light-bg);
    min-height: 80vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.legal-intro {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--dark-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section ul,
    .legal-section ol {
        margin-left: 1.5rem;
    }
}

/* Video background responsive adjustments */
@media (max-width: 768px) {
    .hero-video {
        /* On mobile, prioritize height coverage */
        width: auto;
        height: 100%;
        min-width: auto;
    }
}

/* Prefers reduced motion - disable video autoplay */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
}

/* Low bandwidth - use static image instead */
.hero.low-bandwidth .hero-video {
    display: none;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SÉLECTEUR DE LANGUE - À ajouter à la fin de styles.css */

.language-selector {
    position: relative;
    margin-left: 1rem;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 2px solid var(--dark-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.current-lang:hover {
    background-color: var(--dark-color);
    color: white;
}

.current-lang i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.language-selector.open .current-lang i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-selector.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.lang-option:hover {
    background-color: var(--light-bg);
    border-left-color: var(--primary-color);
}

.lang-option.active {
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    border-left-color: var(--dark-color);
}

/* Mobile - Language Selector */
@media (max-width: 968px) {
    .language-selector {
        margin-left: 0;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .current-lang {
        width: 100%;
        justify-content: center;
    }
    
    .lang-dropdown {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding: 0.5rem 0 0 0;
    }
    
    .lang-option {
        text-align: center;
        border-left: none;
        border-radius: 6px;
        margin-bottom: 0.3rem;
    }
}

/* Nature Banner Défilant - Pleine Largeur */

/* .nature-banner-scroll {
    width: 100%;
    height: 180px; 
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    background-color: #f5f3ed;
} */

/* .nature-track {
    display: flex;
    width: calc(400px * 16); 
    animation: scroll-left 60s linear infinite; 
} */

/* Pause au survol
.nature-banner-scroll:hover .nature-track {
    animation-play-state: paused;
} 

.nature-slide {
    flex-shrink: 0;
    width: 400px; 
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
} */

/* Overlay vert subtil
.nature-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 106, 79, 0.2),
        rgba(82, 183, 136, 0.15)
    );
    transition: opacity 0.3s ease;
}

.nature-slide:hover::before {
    opacity: 0.5;
}

/* Animation de défilement 
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
} 

/* Responsive 
@media (max-width: 968px) {
    .nature-banner-scroll {
        height: 150px;
    }
    
    .nature-slide {
        width: 300px;
        height: 150px;
    }
    
    .nature-track {
        width: calc(300px * 16);
    }
}

@media (max-width: 640px) {
    .nature-banner-scroll {
        height: 120px;
    }
    
    .nature-slide {
        width: 250px;
        height: 120px;
    }
    
    .nature-track {
        width: calc(250px * 16);
    }
} */