﻿/* --- 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;
    scroll-padding-top: 80px;
}

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;
    color: inherit;
    display: inline-block;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%;
    background-color: #f3f4f4;
    border-bottom: 1px solid #e2e2e2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body {
    padding-top: 92px;
}

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

.header-logo {
    width: 65px;
    height: auto;
}

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

.logo-text h1 {
    margin: 0;
    padding: 0;
    line-height: 0.95;
    font-size: inherit; 
}

.logo-text .logo-al {
    color: #669e37;
    font-size: var(--taille-h6);
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}

.logo-text .logo-subtext {
    font-size: var(--taille-small-1);
    color: #555555;
    font-weight: normal;
    margin: 0;
}

h1 .logo-subtext:first-of-type {
    display: inline-block;
    vertical-align: baseline;
}

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

.main-nav a {
    text-decoration: none;
    color: #4c5454;
    font-size: var(--taille-small-1);
    font-weight: normal;
    transition: color 0.3s;
}

.main-nav a.active {
    color: #669e37; 
    font-weight: normal;
    text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}

/* Style de base pour tous les liens de la nav */
.main-nav a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: #555555; /* Ta couleur par défaut */
    background-color: transparent;
    transition: color 180ms ease, transform 180ms ease;
}

.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);
}

/* On crée un espace invisible de la taille du texte en gras */
.main-nav a::after {
    display: block;
    content: attr(data-text); /* Récupère le texte du HTML */
    font-weight: bold;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

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

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

.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;
}
.logo-subtext {
    text-decoration: none;
    color: var(--text-dark);
}
.logo-text h1 a {
    text-decoration: none;
}
/* --- BOUTON BURGER --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 60, 51, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    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);
}

.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;
    height: 250px;
    object-fit: cover;
    object-position: top;
    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%;
    display: block;
    clear: both;
}

.about-flex-container {
    display: flex;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text-content {
    flex: 1;
    text-align: left;
}

.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;
    height: 650px;
}

.about-rounded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.about-actions {
    margin-top: 35px;
    text-align: left;
}

.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;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* --- SECTION PRODUCTIONS & TRAVAUX --- */
.travaux-section {
    background-color: #233c33; 
    padding: 80px 6%;
    color: #ffffff;
    display: block;
    clear: both;
    overflow: hidden;
}

.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); 
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;             
    width: 100%;
    max-width: 1400px;     
    margin: 30px auto 0 auto; 
    align-items: stretch; 
}

.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-img-container {
    width: 100% !important;  
    height: 450px !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;
    display: block;
    transition: transform 0.5s ease; 
}

.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: 1.15rem;
    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;
}

/* --- 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%;
    display: block;
    clear: both;
}

.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;
}

.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);
}

/* --- BOUTONS DE NAVIGATION INTERNE --- */
.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; 
}

.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);
}

.btn-video {
    background-color: var(--bg-dark-green);
    color: #ffffff;
    border: none;
}

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

.btn-gallery {
    background-color: var(--accent-orange);
    color: #ffffff;
    border: none;
}

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

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

.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%;
}

.image-sticky-block {
    flex: 0 0 40%;
    max-width: 40%;
    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-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%;
}

.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 {
    display: block;
    clear: both;
    padding-top: 40px;
}

.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;
}

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

/* --- INTERFACE LIGHTBOX COMPLÈTE --- */
.lightbox {
    display: none !important;
    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;
}

.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-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
}

.lightbox-close:hover {
    color: #ff4d4d;
}

@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%;
    display: block;
    clear: both;
}

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

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

.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;
}

/* --- PIED DE PAGE --- */
.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;
    display: block;
    clear: both;
}

.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;
}

.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;
}

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

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

.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: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: inline-block;
    flex-shrink: 0;
    color: currentColor;
    fill: currentColor;
}

.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;   
}

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


/* =========================================================================
   ZONE RESPONSIVE DESIGN (MOBILES & TABLETTES < 992PX)
   ========================================================================= */
@media screen and (max-width: 992px) {
    
    body {
        font-size: var(--taille-small-1);
    }
    
    img {
        max-width: 100%;
        height: auto !important;
    }

    /* --- EN-TÊTE & ACTION BURGER --- */
    .menu-toggle {
        display: flex; 
    }

    .main-nav {
        position: fixed;
        top: 92px;
        right: 24px;
        left: auto;
        width: min(80vw, 330px);
        height: auto;
        max-height: calc(100dvh - 112px);
        background-color: #f3f4f4;
        transform: translateY(-120%) translateX(12%);
        transform-origin: top right;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        border-radius: 8px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
        transition: transform 0.35s ease-in-out, opacity 0.25s ease-in-out;
        z-index: 1200; 
        display: none !important;
    }

    .main-nav.open {
        display: block !important;
        transform: translateY(0) translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 1200;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 18px 14px 16px;
        gap: 14px;
        min-height: auto;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        font-size: clamp(1rem, 4vw, 1.18rem);
        display: block;
        padding: 8px 0;
    }

    .main-nav a::after,
    .main-nav a:not(.btn-contact-header)::before {
        content: none;
        display: none;
    }

    /* --- HERO --- */
    .hero {
        height: 550px;
    }

    .hero-content h3 { font-size: var(--taille-h5); }
    .hero-content p { font-size: 1.1rem; }
    .hero-logo { width: 200px; }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* --- CORRECTION ESSENTIELLE A PROPOS (ARCUSIN SUR L'ACCUEIL) --- */
    .about-section { 
        padding: 40px 5% !important; 
        height: auto !important;
        display: block !important;
    }
    
    .about-flex-container { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 30px !important; 
        height: auto !important;
    }

    .about-text-content {
        width: 100% !important;
    }

    .about-image-side {
        flex: none !important;
        width: 100% !important;
        height: auto !important; /* Laisse l'image prendre sa hauteur naturelle */
        max-height: 400px !important;
        overflow: hidden;
        margin-top: 20px;
        display: block !important;
    }

    .about-rounded-img {
        width: 100% !important;
        height: 100% !important;
        max-height: 400px !important;
        object-fit: cover !important; /* Coupe proprement l'image sans l'étirer */
        border-radius: 8px;
    }

    /* --- CARTES PRODUCTIONS COMPACTES SUR MOBILE --- */
    .section-header-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
        padding: 0 10px;
    }

    .card-img-container {
        height: 400px !important; 
    }

    /* --- CONTACT --- */
    .contact-section { padding: 40px 5%; }
    .contact-grid { grid-template-columns: 1fr; gap: 35px; }

    .map-placeholder, .map-iframe-wrapper {
        height: 350px;
        order: 2; 
    }

    .form-container {
        padding: 25px 20px;
        order: 1;
    }
    
    /* --- MÉTIER & NAV INTERNE (SI TU AS AUSSI UN BLOC SIMILAIRE ICI) --- */
    .metier-container { 
        padding: 30px 15px !important; 
    }
    
    .quick-nav-wrapper { 
        flex-direction: column; 
        width: 100%; 
        gap: 10px; 
    }
    
    .btn-nav { 
        width: 100%; 
    }

    .metier-main-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        height: auto !important;
    }

    .metier-text-side {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .image-sticky-block {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        display: block !important;
    }

    .metier-img-sticky { 
        width: 100% !important;
        height: auto !important;
        max-height: 450px !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* --- GALERIE DES MACHINES --- */
    .machines-section {
        clear: both !important;
        margin-top: 40px !important;
        display: block !important;
    }
    
    .machines-section h3 { margin-left: 15px; font-size: var(--taille-h5); }

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

    .gallery-item { height: 160px; }
    .grid-tall { grid-row: auto; height: 160px; }
    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
        display: block;
    }
    .gallery-item .badge { font-size: var(--taille-small-1); padding: 15px 8px 8px 8px; }

    /* --- VIDÉO & FOOTER --- */
    .video-container-width { padding: 0 15px; }
    .main-video-title { font-size: var(--taille-h5); }

    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-col { align-items: center; }
    .contact-list li { justify-content: center; }
    .facebook-link { margin: 0 auto 20px auto; }

    /* --- CORRECTION STRICTE DES PICTOS DU FOOTER --- */
    .contact-list li img,
    .footer-inline-icon {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }

    /* --- LE LOGO BLANC DU FOOTER RESTE GRAND ET INTACT --- */
    .footer-logo-wrapper img, 
    #footer-logo {
        width: 100% !important;
        max-width: 160px !important;
        height: auto !important;
    }
}
    /* --- A PROPOS --- */
    .about-section { padding: 40px 5%; }
    .about-flex-container { flex-direction: column; gap: 30px; }

    .about-image-side {
        flex: none;
        width: 100%;
        height: 350px; 
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* --- CARTES PRODUCTIONS COMPACTES SUR MOBILE --- */
    .section-header-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
        padding: 0 10px;
    }

    .card-img-container {
        height: 400px !important; 
    }

    /* --- CONTACT --- */
    .contact-section { padding: 40px 5%; }
    .contact-grid { grid-template-columns: 1fr; gap: 35px; }

    .map-placeholder, .map-iframe-wrapper {
        height: 350px;
        order: 2; 
    }

    .form-container {
        padding: 25px 20px;
        order: 1;
    }
    
    /* --- MÉTIER & NAV INTERNE (FIX CONFINEMENT ARCUSIN MOBILE) --- */
    .metier-container { 
        padding: 30px 15px !important; 
    }
    
    .quick-nav-wrapper { 
        flex-direction: column; 
        width: 100%; 
        gap: 10px; 
    }
    
    .btn-nav { 
        width: 100%; 
    }

    .metier-main-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        height: auto !important;
    }

    .metier-text-side {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .image-sticky-block {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important; /* Casse le sticky sur mobile */
        top: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 40px !important; /* Pousse sainement le titre Galerie */
        display: block !important;
    }

    .metier-img-sticky { 
        width: 100% !important;
        height: auto !important;
        max-height: 450px !important; /* Évite qu'elle devienne monstrueusement haute */
        object-fit: cover !important;
        display: block !important;
    }

    /* --- GALERIE DES MACHINES --- */
    .machines-section {
        clear: both !important;
        margin-top: 40px !important;
        display: block !important;
    }
    
    .machines-section h3 { margin-left: 15px; font-size: var(--taille-h5); }

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

    .gallery-item { height: 160px; }
    .grid-tall { grid-row: auto; height: 160px; }
    .gallery-item .badge { font-size: var(--taille-small-1); padding: 15px 8px 8px 8px; }

    /* --- VIDÉO & FOOTER --- */
    .video-container-width { padding: 0 15px; }
    .main-video-title { font-size: var(--taille-h5); }

    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-col { align-items: center; }
    .contact-list li { justify-content: center; }
    .facebook-link { margin: 0 auto 20px auto; }

    /* --- CORRECTION STRICTE DES PICTOS DU FOOTER --- */
    .contact-list li img,
    .footer-inline-icon {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }

    /* --- LE LOGO BLANC DU FOOTER RESTE GRAND ET INTACT --- */
    .footer-logo-wrapper img, 
    #footer-logo {
        width: 100% !important;
        max-width: 160px !important;
        height: auto !important;
    }
    /* =========================================================================
   ZONE À PROPOS (PHOTO ARCUSIN ALLONGÉE - TABLETTES & MOBILES)
   ========================================================================= */
.about-section { 
    padding: 40px 5% !important; 
    height: auto !important;
    display: block !important;
}

.about-flex-container { 
    display: flex !important;
    flex-direction: column !important; 
    gap: 30px !important; 
    height: auto !important;
}

.about-text-content {
    width: 100% !important;
}

.about-image-side {
    flex: none !important;
    width: 100% !important;
    height: 600px !important; /* Fixe la hauteur du bloc à 550px pour l'allonger */
    max-height: 650px !important;
    overflow: hidden;
    margin-top: 20px;
    display: block !important;
}

.about-rounded-img {
    width: 100% !important;
    height: 100% !important; /* Force l'image à remplir toute la hauteur du bloc */
    max-height: 650px !important;
    object-fit: cover !important; /* Rendu parfait : l'image se recadre d'elle-même sans s'étirer */
    border-radius: 8px;
}

/* --- TRÈS PETITS ÉCRANS --- */
@media screen and (max-width: 480px) {
    html,
    body {
        overflow-x: hidden;
    }

    .main-header {
        padding: 8px 3%;
    }

    .logo-area {
        gap: 6px;
        min-width: 0;
    }

    .header-logo {
        width: 52px;
    }

    .logo-text {
        min-width: 0;
    }

    .logo-text .logo-al {
        font-size: 1.05rem;
    }

    .logo-text .logo-subtext {
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .main-nav {
        right: 16px;
        width: min(88vw, 310px);
        max-height: calc(100dvh - 106px);
    }

    .main-nav ul {
        padding: 14px 12px;
    }

    .hero {
        height: 500px;
    }

    .hero-content {
        padding: 0 14px;
    }

    .hero-content h3 {
        font-size: clamp(1.25rem, 6vw, 1.6rem);
        line-height: 1.25;
        word-break: break-word;
    }

    .hero-logo {
        width: min(54vw, 170px);
        height: auto;
    }

    .footer-col .logo-text h3 {
        font-size: clamp(1rem, 5.4vw, 1.3rem);
        line-height: 1.25;
        word-break: break-word;
    }

    .footer-tagline,
    .footer-siret {
        word-break: break-word;
    }
}

@media screen and (max-width: 360px) {
    .main-nav {
        right: 12px;
        width: min(90vw, 300px);
    }

    .logo-text .logo-subtext {
        font-size: 0.66rem;
    }

    .footer-logo-wrapper {
        width: 130px;
        height: 130px;
    }
}

/* --- TABLETTE PAYSAGE : CARTES PLUS HARMONIEUSES --- */
@media screen and (min-width: 700px) and (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        padding: 0 18px;
        max-width: 100%;
    }

    .card-img-container {
        height: 290px !important;
    }

    .card-body {
        padding: 16px;
    }
}
