:root {
 --primary-color: #22c55e; /* Vert Forêt */
 --primary-dark: #16a34a;
 --secondary-color: #3f3f46; /* Gris Anthracite */
 --accent-color: #f59e0b;
 --bg-light: #f5f5f4; /* Sable Clair */
 --bg-white: #ffffff;
 --text-dark: #1f2937;
 --text-light: #4b5563;
 --text-muted: #6b7280;
 --border-color: #e5e7eb;
 
 --font-heading: 'Poppins', sans-serif;
 --font-body: 'Inter', sans-serif;

 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
 --transition: all 0.3s ease-in-out;
}

*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
 font-size: 100%;
}

body {
 font-family: var(--font-body);
 font-size: 1rem;
 line-height: 1.6;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

img, picture, video, canvas, svg {
 display: block;
 max-width: 100%;
 height: auto;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 color: var(--secondary-color);
 line-height: 1.2;
 font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }
p { margin-bottom: 1rem; }

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--primary-dark);
}

.container {
 max-width: 1200px;
 margin-inline: auto;
 padding-inline: 1rem;
}

/* Header & Navigation */
#scroll-progress-bar {
 position: fixed;
 top: 0;
 left: 0;
 height: 4px;
 background: var(--primary-color);
 width: 0%;
 z-index: 1001;
 transition: width 0.1s linear;
}

.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 background-color: rgba(255, 255, 255, 0.8);
 backdrop-filter: blur(10px);
 z-index: 1000;
 transition: var(--transition);
 box-shadow: var(--shadow-sm);
}

.header.scrolled {
 background-color: rgba(255, 255, 255, 0.95);
 box-shadow: var(--shadow-md);
}

.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}

.nav-logo {
 font-family: var(--font-heading);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--secondary-color);
}

.nav-links {
 display: flex;
 align-items: center;
 gap: 32px;
 list-style: none;
}

.nav-links a {
 color: var(--secondary-color);
 font-weight: 500;
 padding: 5px 0;
 position: relative;
}

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

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

.dropdown {
 position: relative;
}

.dropdown-menu {
 position: absolute;
 top: 150%;
 left: 50%;
 transform: translateX(-50%);
 background-color: var(--bg-white);
 list-style: none;
 padding: 10px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-lg);
 opacity: 0;
 visibility: hidden;
 transition: var(--transition);
 min-width: 200px;
}

.dropdown:hover .dropdown-menu {
 top: 100%;
 opacity: 1;
 visibility: visible;
}

.dropdown-menu li {
 margin: 5px 0;
}
.dropdown-menu a {
 padding: 8px 12px;
 display: block;
 border-radius: var(--radius-sm);
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
 background-color: var(--bg-light);
 color: var(--primary-color);
}
.dropdown-menu a::after {
 display: none;
}

/* Mobile Menu */
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 8px;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background-color: var(--secondary-color);
 margin: 5px 0;
 transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) {
 transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
 opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
 transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 12px 28px;
 border-radius: var(--radius-md);
 font-weight: 600;
 text-align: center;
 transition: var(--transition);
 border: 2px solid transparent;
}
.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
 border-color: var(--primary-color);
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 border-color: var(--primary-dark);
 transform: translateY(-2px);
 color: var(--bg-white);
}
.btn-secondary {
 background-color: transparent;
 border-color: var(--secondary-color);
 color: var(--secondary-color);
}
.btn-secondary:hover {
 background-color: var(--secondary-color);
 color: var(--bg-white);
}
.btn-white {
 background-color: var(--bg-white);
 color: var(--primary-color);
 border-color: var(--bg-white);
}
.btn-white:hover {
 background-color: var(--bg-light);
 color: var(--primary-dark);
 border-color: var(--bg-light);
}
.btn-sm {
 padding: 8px 16px;
 font-size: 0.9rem;
}

/* General Sections */
.section {
 padding-block: clamp(48px, 8vw, 96px);
}
.bg-light { background-color: var(--bg-light); }

.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 48px;
}
.section-label {
 display: inline-block;
 background-color: var(--primary-color);
 color: white;
 padding: 4px 12px;
 border-radius: 20px;
 font-size: 0.9rem;
 font-weight: 500;
 margin-bottom: 1rem;
}
.section-title {
 margin-bottom: 1rem;
}
.section-subtitle {
 font-size: 1.1rem;
 color: var(--text-light);
}

/* Hero Slideshow */
.hero-slideshow-section {
 position: relative;
 height: 80vh;
 min-height: 500px;
 overflow: hidden;
 display: flex;
 align-items: center;
 color: white;
}
.hero-slideshow-container {
 position: absolute;
 inset: 0;
}
.hero-slide {
 position: absolute;
 inset: 0;
 background-size: cover;
 background-position: center;
 opacity: 0;
 transition: opacity 1s ease-in-out;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
 content: '';
 position: absolute;
 inset: 0;
 background: rgba(0,0,0,0.5);
}
.hero-slide-content {
 position: relative;
 z-index: 2;
 max-width: 800px;
 padding: 1rem;
}
.hero-slide-content h1, .hero-slide-content h2 {
 color: white;
 margin-bottom: 1rem;
}
.hero-thumbnails {
 position: absolute;
 bottom: 20px;
 left: 50%;
 transform: translateX(-50%);
 display: flex;
 gap: 10px;
 z-index: 3;
}
.hero-thumbnail {
 width: 120px;
 height: 70px;
 cursor: pointer;
 border: 3px solid transparent;
 border-radius: var(--radius-sm);
 overflow: hidden;
 transition: var(--transition);
}
.hero-thumbnail img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}
.hero-thumbnail.active, .hero-thumbnail:hover {
 border-color: var(--primary-color);
}
.page-hero {
 padding-block: clamp(80px, 15vh, 160px);
 background-size: cover;
 background-position: center;
 color: white;
}
.page-hero-content {
 text-align: center;
}
.page-hero-content h1 { color: white; }

/* Spotlight Grid */
.spotlight-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}
.spotlight-card {
 position: relative;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-lg);
 height: 400px;
}
.spotlight-card img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s ease;
}
.spotlight-card .spotlight-content {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 padding: 24px;
 background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
 color: white;
 transform: translateY(40%);
 transition: var(--transition);
}
.spotlight-card:hover .spotlight-content {
 transform: translateY(0);
}
.spotlight-card .spotlight-content h3 {
 color: white;
 margin-bottom: 8px;
}
.spotlight-link {
 display: inline-block;
 color: var(--primary-color);
 font-weight: 600;
 margin-top: 12px;
}

/* Hexagon Showcase */
.hexagon-grid {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 30px;
 margin-top: 40px;
 position: relative;
 padding-inline: 15px;
}
.hexagon-item {
 text-align: center;
 width: 250px;
}
.hexagon {
 width: 100px;
 height: 115px;
 background-color: var(--primary-color);
 clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
 margin: 0 auto 15px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: white;
 transition: var(--transition);
}
.hexagon svg {
 width: 40px;
 height: 40px;
}
.hexagon-item:hover .hexagon {
 transform: scale(1.1);
 background-color: var(--primary-dark);
}
.hexagon-item h4 {
 margin-bottom: 8px;
}

/* Video Showcase */
.video-container {
 position: relative;
 max-width: 900px;
 margin: auto;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-lg);
}
.video-thumbnail {
 width: 100%;
 display: block;
}
.play-button {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 80px;
 height: 80px;
 background-color: rgba(255,255,255,0.9);
 border: none;
 border-radius: 50%;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--primary-color);
 transition: var(--transition);
}
.play-button:hover {
 transform: translate(-50%, -50%) scale(1.1);
 background-color: white;
}
.play-button svg {
 width: 40px;
 height: 40px;
}
.video-caption {
 text-align: center;
 margin-top: 1rem;
 color: var(--text-muted);
}

/* Reviews Flip Cards */
.review-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}
.review-card-flipper {
 background-color: transparent;
 height: 250px;
 perspective: 1000px;
}
.review-card-inner {
 position: relative;
 width: 100%;
 height: 100%;
 text-align: center;
 transition: transform 0.6s;
 transform-style: preserve-3d;
}
.review-card-flipper:hover .review-card-inner {
 transform: rotateY(180deg);
}
.review-card-front, .review-card-back {
 position: absolute;
 width: 100%;
 height: 100%;
 -webkit-backface-visibility: hidden;
 backface-visibility: hidden;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 padding: 24px;
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
}
.review-card-back {
 transform: rotateY(180deg);
 background-color: var(--secondary-color);
 color: white;
}
.review-card-back h5 {
 color: var(--primary-color);
}
.review-avatar {
 width: 60px;
 height: 60px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 12px;
}
.review-rating {
 color: var(--accent-color);
 font-size: 1.2rem;
 margin-block: 4px 8px;
}

/* CTA Section */
.cta-section {
 background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
 color: white;
 text-align: center;
}
.cta-section h2 {
 color: white;
}

/* Content & Media */
.content-section p, .content-section ul { margin-bottom: 1.5rem; }
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 48px;
 align-items: center;
}
.media-object.reverse {
 grid-template-columns: 1fr 1fr;
}
.media-object.reverse .media-visual { grid-column: 1; }
.media-object.reverse .media-copy { grid-column: 2; }
.media-visual img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
}

/* Team Section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 text-align: center;
}
.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin-inline: auto;
 margin-bottom: 1rem;
 box-shadow: var(--shadow-md);
 border: 4px solid white;
}
.team-member-title {
 color: var(--primary-color);
 font-weight: 500;
}
/* Certifications */
.certifications-logos {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 gap: 40px;
 margin-top: 30px;
}
.cert-logo {
 font-family: var(--font-heading);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-muted);
 filter: grayscale(1);
 opacity: 0.7;
 transition: var(--transition);
}
.cert-logo:hover {
 filter: grayscale(0);
 opacity: 1;
 color: var(--secondary-color);
}
/* Services */
.service-cards-grid, .grid-3 {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}
.service-card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.service-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}
.service-card img.card-image { height: 200px; width:100%; object-fit: cover;}
.service-card .card-content {
 padding: 24px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}
.service-card .card-content p {
 flex-grow: 1;
}
.card-button {
 align-self: flex-start;
 margin-top: 1rem;
 color: var(--primary-color);
 font-weight: 600;
 border: 2px solid var(--border-color);
 padding: 10px 20px;
 border-radius: var(--radius-md);
}
.card-button:hover {
 background-color: var(--primary-color);
 border-color: var(--primary-color);
 color: white;
}
.case-studies-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 30px;
}
.case-study-card {
 background-color: var(--bg-light);
 padding: 24px;
 border-radius: var(--radius-lg);
 border-left: 4px solid var(--primary-color);
}

/* Contact Page */
.contact-page-layout {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 48px;
}
.contact-info-card { background-color: var(--bg-light); padding: 32px; border-radius: var(--radius-lg); }
.contact-info-item { display:flex; gap: 16px; margin-bottom: 24px; }
.contact-info-icon { color: var(--primary-color); }
.map-section { padding-top: 0; }
.map-container {
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-lg);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px;}
.form label, .checkbox-label { display: block; margin-bottom: 8px; font-weight: 500; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer;}
.form-group input[type="checkbox"] { width: auto; }
.form input[type="text"], .form input[type="email"], .form textarea {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-family: var(--font-body);
}
.form input:focus, .form textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.form-submit-btn { width: 100%; }

/* Form validation styles */
.input-error { border-color: #dc2626 !important; }
.field-error { color: #dc2626; font-size: 0.85rem; margin-top: 4px; }
button[disabled] { opacity: 0.7; cursor: not-allowed; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer {
 background-color: var(--secondary-color);
 color: var(--bg-light);
 padding-top: 60px;
 padding-bottom: 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; color: white; margin-bottom: 1rem; display: block; }
.footer-description { color: var(--text-muted); font-size: 0.9rem; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background-color: rgba(255,255,255,0.1); border-radius: 50%; color: white; }
.footer-social a:hover { background-color: var(--primary-color); }
.footer-heading { font-family: var(--font-heading); color: white; margin-bottom: 20px; font-size: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: white; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom:1rem; font-size: 0.9rem; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary-color); margin-top: 3px; }
.footer-contact-item a { color: var(--text-muted); }
.footer-contact-item a:hover { color: white; }
.footer-hours { font-size: 0.9rem; margin-top: 1rem; line-height: 1.5; color: var(--text-muted); }
.footer-divider { height: 1px; background-color: rgba(255,255,255,0.1); margin: 30px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copyright, .footer-legal-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-legal-links { display: flex; gap: 20px; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--secondary-color);
 color: white;
 padding: 1rem;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 z-index: 2000;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--primary-color); font-weight: 500; }
.cookie-buttons { display: flex; gap: 10px; }
.value-card, .case-study-card { background: white; padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: var(--transition); }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.text-center { text-align: center; }

/* Legal Pages */
.legal-page h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-page ul { margin-left: 20px; margin-bottom: 1rem; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.cookie-table th, .cookie-table td { border: 1px solid var(--border-color); padding: 12px; text-align: left; }
.cookie-table th { background-color: var(--bg-light); }

/* Responsive */
@media (max-width: 992px) {
 .media-object, .media-object.reverse, .contact-page-layout, .case-studies-grid, .footer-grid {
 grid-template-columns: 1fr;
 }
 .media-object.reverse .media-visual { grid-row: 1; }
 .hero-slideshow-section { height: 70vh; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100vh;
 background-color: var(--bg-white);
 flex-direction: column;
 align-items: flex-start;
 padding: 100px 30px 30px;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transition: right 0.4s ease-in-out;
 }
 .nav-links.open {
 right: 0;
 }
	.dropdown > a:after { content: " "; }
	.dropdown .dropdown-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		border-radius: 0;
		padding-left: 15px;
		min-width: unset;
		transform: none;
 background: transparent;
	}
	.dropdown:hover .dropdown-menu {
		top: auto;
	}

 .hero-thumbnails { display: none; } /* Hide thumbnails on mobile */
 .spotlight-card:hover .spotlight-content { transform: translateY(0); }
 #cookie-banner { flex-direction: column; text-align: center; }
}