﻿/* --- Couleurs & Typographie fondamentales (Basées sur la maquette) --- */
:root {
    --bg-dark-green: #2f4a3c;
    --accent-orange: #d6b879;
    --text-dark: #333333;
    --text-light: #fafaf7;
    --bg-light: #fafaf7;
    --bg-dark: #eaeadd;
    --card-bg: #ffffff;
    --map-green: #d1ebd8;
    --taille-h1: 3.815rem;
    --taille-h2: 3.052rem;
    --taille-h3: 2.441rem;
    --taille-h4: 1.953rem;
    --taille-h5: 1.563rem;
    --taille-h6: 1.25rem;
    --taille-p: 1rem;
    --taille-small-1: 0.8rem;
    --taille-small-2: 0.64rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth; /* Rend le défilement fluide lors des clics sur le menu */
    scroll-padding-top: 80px; /* À ajuster selon la hauteur exacte de votre menu pour éviter qu'il ne cache les titres */
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1 { font-size: var(--taille-h1); }
h2 { font-size: var(--taille-h2); }
h3 { font-size: var(--taille-h3); }
h4 { font-size: var(--taille-h4); }
h5 { font-size: var(--taille-h5); }
h6 { font-size: var(--taille-h6); }
p { font-size: var(--taille-p); }
small { font-size: var(--taille-small-1); }

/* --- EN-TÊTE COMMUN --- */
.logo-link {
    text-decoration: none; /* Supprime le soulignement automatique du lien */
    color: inherit;        /* Permet au texte de garder ses couleurs d'origine */
    display: inline-block; /* Assure un bon comportement du bloc au clic */
}

.main-header {
    position: sticky;      /* Rend le menu collant */
    top: 0;                /* Se colle tout en haut de l'écran */
    z-index: 1000;         /* S'assure que le menu reste au-dessus du contenu de la page */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%;
    background-color: #f3f4f4; /* Fond gris très clair de la photo 1 */
    border-bottom: 1px solid #e2e2e2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Optionnel : une légère ombre portée lors du défilement */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 65px;           /* C'est cette valeur qui prendra le dessus sur le width="150" du HTML */
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* On enlève les styles par défaut du h1 */
.logo-text h1 {
    margin: 0;
    padding: 0;
    line-height: 0.95;
    font-size: inherit; 
}

/* Style unique pour le "AL" */
.logo-text .logo-al {
    color: #669e37; /* Votre couleur verte spécifique */
    font-size: var(--taille-h6);
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}

/* Classe partagée par "Travaux Agricoles" et "et fourrages Petits Ballots" */
.logo-text .logo-subtext {
    font-size: var(--taille-small-1);      /* Meme taille */
    color: #555555;          /* Même couleur gris de texte secondaire */
    font-weight: normal;     /* Même épaisseur fine */
    margin: 0;
}
.logo-subtext {
    text-decoration: none;
    color: var(--text-dark);
}
.logo-text h1 a {
    text-decoration: none;
}

/* Force le premier bloc à s'aligner à côté du AL sur la même ligne */
h1 .logo-subtext:first-of-type {
    display: inline-block;
    vertical-align: baseline;
}

/* --- NAVIGATION --- */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    background-color: transparent;
    transition: color 180ms ease, transform 180ms ease;
    padding: 5px;
    border-radius: 2px;
    color: #2b4436;
    font-weight: normal;
}

.main-nav a:not(.btn-contact-header)::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 1px;
    height: 2px;
    background-color: currentColor;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Styles pour le hover et la classe active */
.main-nav a:not(.btn-contact-header):hover,
.main-nav a.active,
.main-nav a.actif {
    color: #2b4436;
    background-color: transparent;
    font-weight: normal;
    text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
    transform: scale(1.04);
}

.main-nav a.active::before,
.main-nav a.actif::before {
    opacity: 0.95;
    transform: scaleX(1);
}

/* Bouton Contact Doré */
.main-nav a.btn-contact-header {
    background-color: #cca76a;
    color: #2b2b2b;
    padding: 6px 18px;
    border-radius: 2px;
    font-weight: normal;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a.btn-contact-header:hover {
    background-color: #bfa060;
    color: #000;
    transform: scale(1.04);
}

.main-nav a.btn-contact-header.active {
    background-color: #bfa060;
    color: #000;
    font-weight: normal;
    text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}

/* --- PAGE D'ACCUEIL : HERO SECTION --- */
.hero {
    position: relative;    /* Nécessaire pour positionner la vidéo et le contenu */
    height: 700px;         /* Ajustez la hauteur selon vos besoins */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;      /* Empêche la vidéo de déborder de la section */
}

/* Style de la vidéo en arrière-plan */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;     /* Force la vidéo à remplir l'espace sans distorsion */
    transform: translate(-50%, -50%);
    z-index: 1;            /* Reste au premier plan de l'arrière-plan */
}

/* Superposition sombre (Overlay) pour garder le texte lisible */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 60, 51, 0.4); /* Filtre vert foncé transparent */
    z-index: 2;            /* Se place entre la vidéo et le texte */
}

/* Contenu du Hero (Textes et Boutons) */
.hero-content {
    position: relative;
    z-index: 3;            /* Passe au-dessus du filtre sombre et de la vidéo */
    color: var(--text-light);
    padding: 0 20px;
}

.hero-content h3 {
    font-size: var(--taille-h3);
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Ombre sur le texte pour améliorer la lisibilité */
}

.hero-content p {
    font-size: var(--taille-h6);
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-logo {
    width: 300px;           /* Largeur de ton logo */
    height: 250px;          /* Réduis cette hauteur pour masquer le bas */
    object-fit: cover;      /* Empêche l'image de se déformer */
    object-position: top;   /* Aligne l'image vers le haut pour que seul le bas soit coupé */
    margin-bottom: 20px;
    display: inline-block;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-orange);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
}

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

.btn:hover {
    transform: scale(1.05);
}

/* --- SECTION A PROPOS --- */
.about-section {
    padding: 60px 10%;
}

.about-flex-container {
    display: flex;
    gap: 50px;           /* Espace entre le texte et l'image */
    align-items: center; /* Aligne verticalement le texte et l'image au centre */
    max-width: 1200px;
    margin: 0 auto;
}

.about-text-content {
    flex: 1;
    text-align: left;    /* Aligne tous les titres et paragraphes à gauche */
}

.about-section h2 {
    color: var(--bg-dark-green);
    font-size: var(--taille-h4);
    margin-bottom: 5px;
}

.about-section h3 {
    color: var(--accent-orange);
    font-size: var(--taille-p);
    margin-bottom: 25px;
}

.lead-text {
    margin-bottom: 40px;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.feature-card h4 {
    color: var(--bg-dark-green);
    font-size: var(--taille-h6);
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 10px;
}

.feature-card p {
    margin-bottom: 10px;
    color: #555;
}

.about-image-side {
    flex: 0 0 380px;      /* Fixe la largeur de l'image à 380px */
    height: 650px;        /* Hauteur agrandie pour s'adapté au texte */
}

.about-rounded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Recadre sans déformer l'image */
    border-radius: 8px;   /* Même arrondi doux que vos cartes */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Légère ombre */
}

.about-actions {
    margin-top: 35px;
    text-align: left;     /* Aligné à gauche avec le reste des textes */
}

/* Le bouton vert pro */
.btn-tools {
    display: inline-block;
    background-color: var(--bg-dark-green); 
    color: #ffffff;                         
    text-decoration: none;
    padding: 10px 22px;                     
    font-size: var(--taille-small-1);
    font-weight: bold;
    border-radius: 4px;                     
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-tools:hover {
    background-color: #7ba82b;              /* Passe au vert clair dynamique au survol */
    color: #ffffff;
    transform: translateY(-2px);            /* Léger effet d'élévation moderne */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* --- SECTION PRODUCTIONS & TRAVAUX --- */
.travaux-section {
    background-color: #233c33; 
    padding: 60px 4%; 
    color: #ffffff;
    position: relative;
    clear: both; 
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.section-header-flex h2 {
    font-size: var(--taille-h5);
    font-weight: bold;
    margin: 0;
}

.btn-more {
    display: inline-block;
    background-color: #cca76a; 
    color: #2b2b2b;            
    text-decoration: none;
    padding: 8px 18px;         
    font-size: var(--taille-small-1);
    font-weight: bold;
    border-radius: 4px;        
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
}

.btn-more:hover {
    background-color: #bfa060; 
    color: #000000;
    transform: translateY(-2px); 
}

/* Grille de 4 cartes centrée */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;              
    width: 100%;
    max-width: 1800px;      
    margin: 40px auto 0 auto; 
    align-items: stretch; 
}

/* Conteneur de l'image de la carte */
.card-img-container {
    width: 100% !important;  
    height: 420px !important; 
    overflow: hidden !important;     
    background-color: #f0f0f0; 
    position: relative !important;
}

.card-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;    
    object-position: center center; /* Centre la photo verticalement et horizontalement */
    display: block;
    transition: transform 0.5s ease; 
}
.card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; 
}

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

.card:hover .card-img-container img {
    transform: scale(1.08);
}

.card-body {
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    flex-grow: 1; 
}

.card-body h5 {
    color: #7ba82b;
    font-size: var(--taille-p);
    margin: 0 0 10px 0;
    font-weight: bold;
}

.card-body p {
    font-size: var(--taille-small-1);
    color: #666666 !important;
    line-height: 1.4;
    margin: 0;
}

/* --- SYSTEME LIGHTBOX MODAL --- */
.lightbox-modal {
    border: none !important;     
    outline: none !important;    
    background: transparent !important;
    padding: 0;
    width: auto;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.lightbox-modal img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    margin: 0 auto;
    border: none !important;     
    outline: none !important;
}

.lightbox-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px); 
}

/* --- CONTACT & MAP --- */
.contact-section {
    padding: 60px 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch; 
}

.map-placeholder, .map-iframe-wrapper {
    background-color: var(--map-green);
    height: 530px; 
    border-radius: 10px;
    position: relative;
    border: 1px solid #ccc;
    overflow: hidden; 
}

.map-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.map-pin {
    position: absolute;
    top: 40%;
    left: 50%;
    background-color: white;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
}

/* --- LE CADRE ET LE STYLE DU FORMULAIRE --- */
.form-container {
    background-color: #ffffff;          
    border: 1px solid #e2e8f0;          
    border-radius: 12px;                
    padding: 40px;                      
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04); 
}

.form-container h3 {
    font-size: var(--taille-h5);
    font-weight: 700;
    margin-bottom: 8px;
    color: #233c33;                     
}

.form-container p {
    color: #64748b;                     
    font-size: var(--taille-small-1);
    margin-bottom: 5px;
}

.phone-info strong {
    color: #cca76a;                     
    font-size: var(--taille-p);
}

.contact-form {
    margin-top: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: var(--taille-small-1);
    color: #334155;
    text-transform: uppercase;          
    letter-spacing: 0.5px;              
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;                 
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;          
    color: #334155;
    font-size: var(--taille-small-1);
    transition: all 0.3s ease;          
}

.form-group input:focus, 
.form-group textarea:focus {
    background-color: #ffffff;          
    border-color: #cca76a;              
    box-shadow: 0 0 0 3px rgba(204, 167, 106, 0.15); 
    outline: none;
}

.btn-submit {
    background-color: #cca76a;          
    color: #233c33;                     
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: var(--taille-small-1);
    cursor: pointer;
    width: 100%;                        
    box-shadow: 0 4px 12px rgba(204, 167, 106, 0.2);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #bfa060;          
    transform: translateY(-2px);        
    box-shadow: 0 6px 20px rgba(204, 167, 106, 0.3);
}

.btn-submit:active {
    transform: translateY(0);           
}

/* =========================================================================
   BOUTONS DE NAVIGATION INTERNE (HARMONISÉS AVEC LE STYLE DU SITE)
   ========================================================================= */
.quick-nav-container {
    width: 100%;
    padding: 40px 20px 20px 20px;
    display: flex;
    justify-content: center; 
}

.quick-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; 
}

/* Base commune alignée sur les boutons pros */
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: var(--taille-small-1);
    font-weight: bold;
    text-transform: uppercase; 
    letter-spacing: 0.5px;       
    text-decoration: none;
    border-radius: 4px; 
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    cursor: pointer;
}

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

/* Bouton Vidéo (Vert Signature) */
.btn-video {
    background-color: var(--bg-dark-green);
    color: #ffffff;
    border: none;
}

.btn-video:hover {
    background-color: #7ba82b; 
    color: #ffffff;
}

/* Bouton Galerie (Doré) */
.btn-gallery {
    background-color: var(--accent-orange);
    color: #ffffff;
    border: none;
}

.btn-gallery:hover {
    background-color: #b38f46; 
    color: #ffffff;
}

/* =========================================================================
   PAGE MÉTIER : STRUCTURE ET INTRO
   ========================================================================= */
.metier-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.metier-intro-header {
    text-align: center;
    margin-bottom: 50px;
}

.metier-intro h2 {
    color: var(--bg-dark-green);
    font-size: var(--taille-h3);
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin: 0;
    display: inline-block;
}

.metier-main-layout {
    display: flex;
    gap: 60px; 
    align-items: flex-start;
    width: 100%;
}

.metier-text-side {
    flex: 0 0 60%;
    max-width: 60%;
}

/* Colonne Image Sticky */
.image-sticky-block {
    flex: 0 0 40%;
    max-width: 35%;
    position: sticky;
    top: 100px; 
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
}

.metier-img-sticky {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.metier-image-caption {
    margin-top: 12px;
    font-size: var(--taille-small-1);
    color: #666;
    font-style: italic;
    line-height: 1.4;
    border-left: 2px solid var(--accent-orange);
    padding-left: 10px;
}

.metier-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e2e;
    margin-bottom: 50px;
    border-left: 4px solid var(--accent-orange);
    padding-left: 20px;
}

.metier-lead p {
    margin-bottom: 15px;
}

.metier-section-block {
    margin-bottom: 50px;
}

.metier-section-block h4 {
    color: var(--bg-dark-green);
    font-size: var(--taille-h6);
    margin-bottom: 18px;
    font-weight: 600;
}

.metier-section-block p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4a554a;
    margin-bottom: 16px;
}

.metier-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 25px 0;
}

.metier-list li {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #4a554a;
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.metier-list li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-orange);
    border-radius: 50%;
}

.metier-highlight {
    font-style: italic;
    color: #556655;
    border-left: 3px solid #e2ebe2;
    padding-left: 20px;
    margin: 20px 0;
}

.quality-block {
    background-color: #edf5ed;
    padding: 35px;
    border-radius: 12px;
    border-left: 4px solid var(--bg-dark-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* =========================================================================
   GALERIE DES MACHINES
   ========================================================================= */
.machines-section h3 {
    margin-bottom: 25px;
    font-size: var(--taille-h4);
    color: #1e3f20;
    position: relative;
    padding-bottom: 8px;
    margin-left: 40px; 
}

.machines-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #1e3f20;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    padding: 10px 40px 30px 40px; 
}

.gallery-item {
    display: block; 
    position: relative;
    border-radius: 8px; 
    overflow: hidden;
    height: 220px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

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

.gallery-item .badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); 
    padding: 25px 12px 12px 12px; 
    font-size: var(--taille-small-1);
    font-weight: 600;
    color: #ffffff; 
    transition: background 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item:hover .badge {
    background: linear-gradient(transparent, rgba(26, 54, 28, 0.9)); 
}

.grid-tall {
    grid-row: span 3;
    height: 690px; 
}

/* =========================================================================
   SÉCURITÉ ET DESIGN DU SYSTÈME LIGHTBOX COMPLET (CORRIGÉ & SIMPLIFIÉ)
   ========================================================================= */
.lightbox {
    display: none !important; /* Force la lightbox à être TOTALEMENT invisible par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Reste toujours au-dessus du site */
}

/* Seule cette classe permettra l'ouverture via le JavaScript */
.lightbox.active, 
.lightbox[style*="display: flex"], 
.lightbox[style*="display: block"] {
    display: flex !important;
}

.lightbox-content {
    max-width: 80%;  
    max-height: 85vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain; 
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 63, 32, 0.6); 
    color: #ffffff;
    font-size: var(--taille-h3);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s ease, transform 0.2s ease;
    user-select: none;
    z-index: 2100; 
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-nav:hover {
    background: rgba(26, 54, 28, 0.95); 
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ff4d4d; /* Devient rouge au survol */
}

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

/* =========================================================================
   SECTION VIDÉO
   ========================================================================= */
.video-section-modern {
    padding: 60px 0;
    background-color: #fafbfa;
    width: 100%;
}

.video-container-width {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.video-header-main {
    text-align: center;
    margin-bottom: 50px; 
}

.video-header-main .title-icon {
    width: 45px;
    height: auto;
    margin-bottom: 10px;
}

.main-video-title {
    font-size: var(--taille-h3); 
    color: #1e3f20;    
    font-weight: 700;
    position: relative;
    padding-bottom: 20px; 
    margin: 0;
    display: inline-block;
}

.main-video-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 120px;               
    height: 4px;                
    background-color: #1e3f20;  
    border-radius: 2px;
}

.video-player-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-player-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); 
    background-color: #111111;
}

.video-accessibility-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 10px 25px;
    background: #ffffff;
    border: 1px solid #e2ebe2;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.video-accessibility-badge p {
    margin: 0;
    font-size: var(--taille-small-1);
    color: #556656;
}

/* --- PIED DE PAGE PREMIUM DESIGN COMPLET --- */
.main-footer {
    background-color: var(--bg-dark-green);
    color: var(--text-light);
    padding: 60px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr; 
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: var(--accent-orange);
    font-size: var(--taille-p);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-logo-wrapper {
    background-color: #ffffff;
    padding: 15px; 
    border-radius: 16px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); 
    width: 160px;  
    height: 160px; 
}

.header-logo-footer {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-subtext-footer-bold {
    font-size: 1.25rem; 
    color: var(--text-light);
    font-weight: 700;
}

.logo-subtext-footer {
    font-size: 1.1rem; 
    color: rgba(255, 255, 255, 0.8); 
    font-weight: normal;     
    line-height: 1.4;
}

#footer-logo {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#footer-logo:hover {
    transform: scale(1.05); 
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--taille-small-1);
    color: var(--text-light); 
    line-height: 1.5;
}

.footer-inline-icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    color: var(--text-light); 
    opacity: 0.9;
}

.contact-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-orange);
}

.col-actions {
    align-items: flex-start; 
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;                   
    color: var(--text-light) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--taille-small-1);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.facebook-icon {
    width: 18px !important;     
    height: 18px !important;
    display: inline-block;
}

.facebook-link:hover {
    color: var(--bg-dark-green) !important; 
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.footer-tagline {
    color: var(--accent-orange);
    font-weight: 800;
    font-size: var(--taille-p); 
    margin: 0 0 8px 0;   
    letter-spacing: 0.3px;
}

.footer-siret {
    font-size: var(--taille-small-1);    
    color: rgba(255, 255, 255, 0.6); 
    margin: 0;
}

/* --- RESPONSIVE BASIQUE --- */
