/* ================================================================
   style.css — Upgrade Facilities
   Palette : Navy #0D1B2A · Vert #1E9B5C · Blanc #F8FAFA
   ================================================================ */

/* ── Variables ── */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #152535;
  --green:      #1E9B5C;
  --green-dark: #17804C;
  --green-light:#25BD6F;
  --white:      #F8FAFA;
  --gray-100:   #F0F4F3;
  --gray-300:   #C8D4D0;
  --gray-500:   #7A9090;
  --gray-700:   #3D5050;
  --text:       #1A2E2E;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(13,27,42,.10);
  --shadow-lg:  0 8px 40px rgba(13,27,42,.16);
  --transition: 0.25s ease;
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

/* ── Fade-in animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Container ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Eyebrow labels ── */
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.section-sub {
  margin-top: 14px;
  color: var(--gray-700);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: .97rem;
}

/* ── Sections ── */
.section { padding: 96px 0; }
.section:nth-child(even) { background: var(--gray-100); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,155,92,.30);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.55);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--green);
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-outline-sm:hover {
  background: var(--green);
  color: #fff;
}
.btn-full { width: 100%; justify-content: center; }
.btn-nav {
  display: inline-flex;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: 9px 20px;
  border-radius: 50px;
  border: 2px solid var(--green);
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
  background: transparent;
}
#navbar.scrolled {
  background: rgba(13,27,42,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
}
.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px; height: 36px;
}
#hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mobileMenu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
#mobileMenu.open {
  display: flex;
  max-height: 400px;
  padding: 16px 24px 20px;
}
.mobile-link, .cta-mobile {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition);
}
.mobile-link:hover, .mobile-link.active { color: var(--green); }
.cta-mobile {
  margin-top: 12px;
  border: none;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   HERO (page d'accueil)
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #173545 60%, #0a2218 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(30,155,92,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(13,27,42,.6) 0%, transparent 70%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r=".5" fill="%231E9B5C" opacity=".15"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  max-width: 760px;
  padding-left: 48px;
}
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 24px;
}
.hero-content h1 .accent { color: var(--green-light); }
.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 5;
}
.hero-scroll-hint:hover {
  background: rgba(255,255,255,.08);
}
.hero-scroll-hint span {
  display: block;
  width: 14px; height: 14px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  animation: scrollHint 1.8s ease infinite;
  margin-top: -6px;
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: rotate(45deg) translateY(-8px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translateY(8px); }
}

/* ── Page hero (pages secondaires) ── */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--navy) 0%, #173545 70%, #0a2218 100%);
  padding-bottom: 56px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 65% 50%, rgba(30,155,92,.15) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r=".5" fill="%231E9B5C" opacity=".12"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 24px 0;
}
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 10px 0 14px;
}
.page-hero-content p {
  color: rgba(255,255,255,.70);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════
   KPI BANNER
═══════════════════════════════════════════ */
.kpi-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green);
}
.kpi-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.20);
}
.kpi-item:last-child { border-right: none; }
.kpi-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.kpi-item span {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.80);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   ABOUT / TIMELINE
═══════════════════════════════════════════ */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 16px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, rgba(30,155,92,.2) 100%);
}
.timeline-item {
  padding: 0 16px;
  position: relative;
}
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--green);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.timeline-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.timeline-body p {
  font-size: .88rem;
  color: var(--gray-700);
  line-height: 1.6;
}
.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   ENGAGEMENT
═══════════════════════════════════════════ */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.engage-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--green);
  transition: transform var(--transition), box-shadow var(--transition);
}
.engage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.engage-icon-svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--green);
}
.engage-icon-svg svg {
  width: 100%;
  height: 100%;
}
.engage-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.engage-card p {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   VALEURS
═══════════════════════════════════════════ */
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.valeur-item {
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}
.valeur-item:hover { transform: translateY(-4px); }
.valeur-item::before {
  content: '';
  display: block;
  width: 32px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 16px;
}
.valeur-item h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.valeur-item p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   MARCHÉS / SERVICES
═══════════════════════════════════════════ */
.marches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.marche-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}
.marche-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--green);
}
.marche-icon-svg {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--green);
}
.marche-icon-svg svg {
  width: 100%;
  height: 100%;
}
.marche-card h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.marche-card p {
  font-size: .87rem;
  color: var(--gray-700);
  line-height: 1.65;
}
.marches-cta { text-align: center; }

/* ═══════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a28 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255,255,255,.70);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════
   ACTIVITES (page activite.html)
═══════════════════════════════════════════ */
.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.activity-block:last-child { margin-bottom: 0; }
.activity-block--reverse {
  direction: rtl;
}
.activity-block--reverse > * { direction: ltr; }
.activity-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--gray-100);
  position: static;
  top: auto;
}
.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  transform: none;
  will-change: auto;
}
.activity-img:hover img { transform: none; transition: none; }
.activity-tag {
  display: inline-block;
  background: rgba(30,155,92,.12);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.activity-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}
.activity-content p {
  color: var(--gray-700);
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.activity-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-list li {
  font-size: .9rem;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}
.activity-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Réalisations */
.realisation-showcase {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 500px;
}
.realisation-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2,
.contact-form-wrapper h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-intro {
  color: var(--gray-700);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.contact-card-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--green-dark);
  margin-top: 2px;
}
.contact-card-icon svg {
  width: 100%;
  height: 100%;
}
.contact-card h5 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.contact-card p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-card a { color: var(--text); }
.contact-card a:hover { color: var(--green); }
.contact-map { margin-top: 24px; }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.req { color: var(--green); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30,155,92,.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53935;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.error-msg {
  font-size: .8rem;
  color: #e53935;
  display: none;
}
.error-msg.visible { display: block; }

.form-group--check { flex-direction: row; align-items: flex-start; gap: 0; flex-wrap: wrap; }
.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .85rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  -webkit-appearance: checkbox; 
  appearance: checkbox;         
  width: 16px; 
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0;                  
  accent-color: var(--green);  
}

/* Submit button loading state */
#submitBtn { position: relative; overflow: hidden; }
#submitBtn.loading .btn-label { opacity: 0; }
#submitBtn.loading .btn-loader { opacity: 1; }
.btn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-loader::after {
  content: '';
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: rgba(30,155,92,.06);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(30,155,92,.2);
}
.form-success.visible { display: block; }
.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--green);
}
.success-check svg {
  width: 100%;
  height: 100%;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-success p { color: var(--gray-700); }

/* ═══════════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════════ */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
}
.legal-section { background: #fff; }
.legal-block {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-100);
}
.legal-block:last-of-type { border-bottom: none; }
.legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-block h2::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}
.legal-block p {
  font-size: .95rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 10px;
}
.legal-block ul {
  padding-left: 4px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-block ul li {
  font-size: .93rem;
  color: var(--gray-700);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}
.legal-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: .8rem;
}
.legal-back { margin-top: 40px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.70);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 64px 24px 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: .87rem;
  line-height: 1.65;
  max-width: 240px;
}
.footer-links h5,
.footer-contact h5 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links ul li a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--green-light); }
.footer-contact p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-contact a {
  color: rgba(255,255,255,.70);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 20px 24px;
  max-width: 1180px;
  margin: 0 auto;
  font-size: .82rem;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.50); }
.footer-bottom a:hover { color: var(--green-light); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .marches-grid,
  .valeurs-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-banner { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .activity-block,
  .activity-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .activity-block--reverse > * { direction: ltr; }
  .engage-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  #hamburger { display: flex; }
  #mobileMenu { display: flex; }
  .engage-grid,
  .marches-grid,
  .valeurs-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-content { padding-left: 24px; }
  .section { padding: 64px 0; }
  .kpi-banner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .kpi-banner { grid-template-columns: 1fr 1fr; }
  .kpi-item { padding: 20px 12px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-scroll-hint span { animation: none; }
  .btn-loader::after { animation: none; }
}

/* ═══════════════════════════════════════════
   TRUST / RÉALISATIONS (page d'accueil)
═══════════════════════════════════════════ */
.trust-section {
  padding: 64px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.trust-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 32px;
}
.trust-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.trust-gallery .trust-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
}
.trust-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.trust-gallery .trust-img:hover img { transform: scale(1.05); }

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 6px;
}
.trust-stat span {
  font-size: .82rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   ACTIVITY BENEFITS BADGES
═══════════════════════════════════════════ */
.activity-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
}
.benefit-badge svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}
.activity-value {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  border-left: 3px solid var(--green);
}
.activity-value p {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin: 0;
}
.activity-value strong {
  color: var(--navy);
}

/* ═══════════════════════════════════════════
   FORM ENRICHI — champs additionnels
═══════════════════════════════════════════ */
.form-section-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 28px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.form-section-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
  .trust-gallery { grid-template-columns: repeat(2, 1fr); }
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .form-row-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   SECTION — ILS NOUS FONT CONFIANCE
═══════════════════════════════════════════ */
.clients-section {
  padding: 56px 0 60px;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
}
.clients-section .trust-label {
  color: rgba(255,255,255,.45);
  margin-bottom: 40px;
}

/* Layout deux colonnes catégories */
.clients-categories {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.clients-col {
  flex: 1;
  padding: 0 40px;
}
.clients-col:first-child { padding-left: 0; }
.clients-col:last-child  { padding-right: 0; }

/* Label de catégorie */
.clients-col-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}
.clients-col-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .85;
}

/* Séparateur vertical */
.clients-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,.10);
  margin: 0;
  flex-shrink: 0;
}

/* Rangée de logos */
.clients-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Pill logo — style épuré niveaux de gris */
.client-logo-item {
  margin: 0;
}
.client-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: default;
}
.client-logo-pill:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.09);
  transform: translateY(-2px);
}
.client-logo-text {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.60);
  white-space: nowrap;
}

/* Variante accentuée pour les clients travaux (marques plus connues) */
.client-logo-pill--accent {
  border-color: rgba(30,155,92,.25);
  background: rgba(30,155,92,.05);
}
.client-logo-pill--accent:hover {
  border-color: rgba(30,155,92,.55);
  background: rgba(30,155,92,.10);
}
.client-logo-pill--accent .client-logo-text {
  color: rgba(255,255,255,.70);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Carte Nettoyage mise en avant ── */
.marche-card--featured {
  border: 2px solid var(--green);
  background: linear-gradient(135deg, rgba(30,155,92,.08) 0%, rgba(30,155,92,.02) 100%);
  position: relative;
  overflow: hidden;
}
.marche-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--green);
}
.marche-card-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(30,155,92,.10);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ── Responsive clients section ── */
@media (max-width: 768px) {
  .clients-categories {
    flex-direction: column;
    gap: 36px;
  }
  .clients-divider { display: none; }
  .clients-col { padding: 0; }
  .clients-logos-row { gap: 10px; }
  .client-logo-text { font-size: .78rem; }
}

/* ═══════════════════════════════════════════
   CARROUSEL RÉALISATIONS — hauteur fixe rigide
═══════════════════════════════════════════ */
.realisations-section {
  padding: 64px 0 40px;
  background: var(--gray-100);
}
.realisations-section .section-header { margin-bottom: 36px; }

/* Outer : contient les flèches, masque le débordement horizontal */
.realisation-slider-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Hauteur fixe rigide — ne bougera jamais */
  height: 460px;
  cursor: grab;
}
.realisation-slider-outer:active { cursor: grabbing; }

/* Viewport : hérite la hauteur, masque l'overflow */
.realisation-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Track : flex horizontal, hauteur identique au viewport */
.realisation-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Carte : largeur exacte injectée par JS = viewport.offsetWidth
   Pas de margin externe — tout le positionnement est fait via transform */
.realisation-card {
  flex-shrink: 0;
  /* width forcée par JS */
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* padding interne pour simuler les marges latérales */
  box-sizing: border-box;
}

/* Image side */
.realisation-img {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 100%;
}
.realisation-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.realisation-card:hover .realisation-img img { transform: scale(1.04); }

/* Badge */
.realisation-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  z-index: 2;
}
.realisation-badge--clean {
  background: var(--green);
  color: #fff;
}
.realisation-badge--travaux {
  background: var(--navy);
  color: #fff;
}

/* Content side */
.realisation-body {
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}

/* Client identity */
.realisation-client {
  display: flex;
  align-items: center;
  gap: 16px;
}
.realisation-client-logo {
  width: 72px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gray-100);
  border-radius: 8px;
  overflow: hidden;
  padding: 6px 8px;
}
.realisation-client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
}
.realisation-client-logo--duo {
  width: 100px;
  gap: 4px;
}
.realisation-client-logo--duo img {
  max-width: 46%;
}
.realisation-client-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.realisation-client-type {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 3px;
}

/* Quote */
.realisation-quote {
  border-left: 3px solid var(--green);
  padding-left: 18px;
  margin: 0;
}
.realisation-quote p {
  font-size: .97rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 10px;
}
.realisation-quote footer {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
}

/* KPIs */
.realisation-kpis {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--gray-100);
  padding-top: 18px;
  list-style: none;
  flex-shrink: 0;
}
.realisation-kpis li {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid var(--gray-100);
}
.realisation-kpis li:last-child { border-right: none; }
.realisation-kpis li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.realisation-kpis li span {
  font-size: .72rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.3;
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: background var(--transition), border-color var(--transition), transform 0.3s ease;
  color: var(--navy);
}
.slider-arrow:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.slider-arrow svg { width: 22px; height: 22px; }
.slider-arrow--prev { left: 16px; }
.slider-arrow--next { right: 16px; }

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), width var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--green);
  width: 28px;
  border-radius: 5px;
}
.slider-dot:hover:not(.active) { background: var(--gray-500); }

/* Responsive carousel */
@media (max-width: 900px) {
  .realisation-slider-outer { height: auto; min-height: 0; }
  .realisation-viewport     { height: auto; }
  .realisation-track        { height: auto; }
  .realisation-card {
    height: auto;
    grid-template-columns: 1fr;
  }
  .realisation-img  { min-height: 240px; height: 240px; }
  .realisation-body { padding: 28px 24px; }
  .realisation-kpis { flex-wrap: wrap; }
  .realisation-kpis li { border-right: none; border-bottom: 1px solid var(--gray-100); padding-bottom: 14px; text-align: left; }
  .realisation-kpis li:last-child { border-bottom: none; padding-bottom: 0; }
  .slider-arrow--prev { left: 4px; }
  .slider-arrow--next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .realisation-track { transition: none; }
}

/* ═══════════════════════════════════════════
   LOGO TICKER ANIMÉ
═══════════════════════════════════════════ */
.clients-section {
  padding: 48px 0 52px;
  background: var(--navy);
  overflow: hidden;
}
.clients-section .trust-label {
  color: rgba(255,255,255,.40);
  margin-bottom: 36px;
}

.logo-ticker-wrapper {
  position: relative;
  overflow: hidden;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:         linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.logo-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: logoScroll 28s linear infinite;
  width: max-content;
}
.logo-ticker-track:hover { animation-play-state: paused; }

@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-ticker-item {
  flex-shrink: 0;
  width: 220px;
  height: 100px;
  margin: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 14px 28px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.logo-ticker-item:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.30);
  transform: translateY(-2px);
}
.logo-ticker-item img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  /* Logos en couleur directement, sans filtre */
  filter: none;
  opacity: 1;
  transition: transform 0.3s ease;
}
.logo-ticker-item:hover img {
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════
   PORTRAITS ÉQUIPE
═══════════════════════════════════════════ */
.team-portraits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.team-portrait-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}
.team-portrait-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--green);
}
.team-portrait-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-portrait-avatar--a { background: rgba(30,155,92,.12); }
.team-portrait-avatar--b { background: rgba(13,27,42,.08); }
.team-portrait-avatar--c { background: rgba(30,155,92,.08); }
.team-portrait-avatar svg { width: 64px; height: 64px; }
.team-portrait-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.team-portrait-role {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.team-portrait-quote {
  font-size: .88rem;
  color: var(--gray-700);
  font-style: italic;
  line-height: 1.6;
}
.team-portrait-note {
  margin-top: 32px;
  text-align: center;
  font-size: .88rem;
  color: var(--gray-500);
}
.team-portrait-note a {
  color: var(--green);
  font-weight: 600;
  margin-left: 4px;
  text-decoration: none;
}
.team-portrait-note a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   RESPONSIVE — Nouvelles sections
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .realisation-card {
    grid-template-columns: 1fr;
    margin: 0 16px;
  }
  .realisation-img { min-height: 240px; }
  .realisation-body { padding: 28px 24px; }
  .slider-arrow--prev { left: 4px; }
  .slider-arrow--next { right: 4px; }
}
@media (max-width: 768px) {
  .team-portraits { grid-template-columns: 1fr; gap: 16px; }
  .realisation-kpis { flex-direction: column; gap: 14px; }
  .realisation-kpis li { border-right: none; border-bottom: 1px solid var(--gray-100); padding-bottom: 14px; text-align: left; }
  .realisation-kpis li:last-child { border-bottom: none; padding-bottom: 0; }
  .logo-ticker-item { width: 170px; height: 80px; margin: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-ticker-track { animation: none; }
  .realisation-track { transition: none; }
}

/* ── Team portrait avatar with real photo ── */
.team-portrait-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 3px solid var(--gray-100);
  box-shadow: 0 4px 16px rgba(13,27,42,.12);
  transition: border-color var(--transition);
  background: var(--gray-100);
}
.team-portrait-card:hover .team-portrait-avatar {
  border-color: var(--green);
}
.team-portrait-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Remove old variant classes no longer needed */
.team-portrait-avatar--a,
.team-portrait-avatar--b,
.team-portrait-avatar--c { background: transparent; }

/* ═══════════════════════════════════════════
   TEAM GALLERY — Page d'accueil
═══════════════════════════════════════════ */
.team-gallery-section { background: var(--white); }

.team-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
/* First image spans 2 rows (tall) */
.team-gallery-img--tall {
  grid-row: 1 / 3;
}
.team-gallery-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  background: var(--gray-100);
}
.team-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
  transition: transform 0.55s ease;
}
.team-gallery-img:hover img { transform: scale(1.04); }
.team-gallery-img figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px 14px;
  background: linear-gradient(transparent, rgba(13,27,42,.65));
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.90);
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════
   CAROUSEL — CORRECTIF viewport + track
   Approche : viewport = 100% width, overflow hidden
   track = flex, chaque card = 100% du viewport
═══════════════════════════════════════════ */
.realisation-slider-outer {
  position: relative;
  width: 100%;
  padding: 0 0 24px;
}
.realisation-viewport {
  overflow: hidden;
  width: 100%;
}
.realisation-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.realisation-card {
  flex: 0 0 100%;          /* Each card = exactly 100% viewport width */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 0;        /* Full bleed inside viewport */
  box-shadow: none;
  background: #fff;
  /* Constrain height */
  min-height: 380px;
  max-height: 520px;
}
/* Add card visual treatment via inner wrapper */
.realisation-card > .realisation-body {
  padding: 40px 48px;
}

@media (max-width: 900px) {
  .realisation-card {
    grid-template-columns: 1fr;
    min-height: unset;
    max-height: unset;
  }
  .realisation-img { min-height: 240px; }
  .realisation-card > .realisation-body { padding: 28px 24px; }
  .team-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .team-gallery-img--tall { grid-row: auto; }
}
@media (max-width: 600px) {
  .team-gallery-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   TEAM GALLERY — 4 colonnes même taille
   Dans section "Notre Histoire"
═══════════════════════════════════════════ */
.team-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px;   /* Hauteur fixe identique pour toutes */
  gap: 16px;
  margin-top: 40px;
}
/* Annuler le variant --tall (inutilisé maintenant) */
.team-gallery-img--tall {
  grid-row: auto;
}
.team-gallery-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  background: var(--gray-100);
  height: 280px;              /* Hauteur forcée identique */
}
.team-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.team-gallery-img:hover img { transform: scale(1.04); }
.team-gallery-img figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px 14px;
  background: linear-gradient(transparent, rgba(13,27,42,.60));
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  letter-spacing: .04em;
}

/* Responsive team gallery */
@media (max-width: 900px) {
  .team-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 240px);
    height: auto;
  }
  .team-gallery-img { height: 240px; }
}
@media (max-width: 550px) {
  .team-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 180px);
  }
  .team-gallery-img { height: 180px; }
}

/* ═══════════════════════════════════════════
   SÉPARATEURS ACTIVITÉS — noirs et épais
═══════════════════════════════════════════ */
.activity-divider {
  border: none;
  border-top: 3px solid #000000;
  margin: 0 0 56px 0;
  opacity: 1;
}

/* ═══════════════════════════════════════════
   RÉSUMÉ DES SERVICES — section index.html
   Insérée juste avant les références clients
═══════════════════════════════════════════ */
.services-intro {
  padding: 80px 0 72px;
  background: #fff;
}
.services-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 1 fr, 1 fr, 1 fr */
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 3px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--green);
}
.service-card-icon {
  width: 44px;
  height: 44px;
  color: var(--green);
}
.service-card-icon svg { width: 100%; height: 100%; }
.service-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.service-card p {
  font-size: .88rem;
  color: var(--gray-700);
  line-height: 1.65;
  flex: 1;
}
.service-card-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
  margin-top: 4px;
}
.service-card-link:hover { color: var(--green-dark); text-decoration: underline; }

@media (max-width: 1024px) {
  .services-intro-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   HERO — IMAGE PHOTO DE FOND
═══════════════════════════════════════════ */
.hero--photo {
  background: var(--navy);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
/* Conserver le dégradé et les points */
.hero--photo::before { z-index: 1; }
.hero--photo .hero-overlay { z-index: 2; }
.hero--photo .hero-content { z-index: 3; }
.hero--photo .hero-scroll-hint { z-index: 4; }

/* ═══════════════════════════════════════════
   SERVICE CARD — Variante TCE (mise en avant)
═══════════════════════════════════════════ */
.service-card--tce {
  background: var(--navy);
  border-top-color: var(--green);
}
.service-card--tce h4 { color: #fff; }
.service-card--tce p  { color: rgba(255,255,255,.72); }
.service-card--tce .service-card-link { color: var(--green-light); }
.service-card--tce:hover { border-top-color: var(--green-light); }

/* ═══════════════════════════════════════════
   ENGAGE CARD — Image permanente, opacité fixe
═══════════════════════════════════════════ */
.engage-card {
  position: relative;
  overflow: hidden;
  /* Hauteur minimale pour que l'image ait de l'espace */
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* Image visible avec filtre noir transparent réduit */
.engage-illus {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}
.engage-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Voile noir transparent réduit par-dessus l'image */
.engage-illus::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
/* Texte toujours au premier plan, toujours en blanc */
.engage-card h4,
.engage-card p {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
}
.engage-card h4 {
  color: #fff;
  margin-bottom: 10px;
}
.engage-card p {
  color: rgba(255,255,255,.80);
}
/* Supprimer le border-top vert hérité sur engage-card */
.engage-card {
  border-top: none;
}
/* Retrait du padding générique, remplacement par padding interne */
.engage-grid .engage-card {
  padding: 0;
}
.engage-card h4,
.engage-card p {
  padding-left: 28px;
  padding-right: 28px;
}
.engage-card h4 { padding-top: 0; }
.engage-card p  { padding-bottom: 28px; }

/* ═══════════════════════════════════════════
   ACTIVITE PAGE — Rééquilibrage image/texte
   Images 100 % statiques : aucun sticky,
   aucune transition, aucun transform
═══════════════════════════════════════════ */
.activity-block {
  grid-template-columns: 45% 55%;
  gap: 48px;
  align-items: center;
}
.activity-img {
  aspect-ratio: 3/2;
  position: static;
  top: auto;
}
.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
  transform: none;
  will-change: auto;
}
.activity-img:hover img {
  transform: none;
  transition: none;
}
.activity-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.activity-content p {
  font-size: .93rem;
}
.activity-list li {
  font-size: .87rem;
}
/* Bénéfices plus compacts */
.activity-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 50px;
  background: rgba(30,155,92,.10);
  color: var(--green-dark);
}
.benefit-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.activity-value {
  background: var(--gray-100);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.activity-value p {
  font-size: .88rem;
  margin-bottom: 0;
  color: var(--gray-700);
}

.activity-tag--tce {
  background: rgba(13,27,42,.10);
  color: var(--navy);
}

@media (max-width: 900px) {
  .activity-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .activity-img { aspect-ratio: 16/9; }
}

/* ═══════════════════════════════════════════
   HIÉRARCHIE PARENT → ENFANT
   TCE = parent / Revêtements = enfant indenté
═══════════════════════════════════════════ */

/* Wrapper commun : positionne le trait vert */
.tce-parent-wrapper {
  position: relative;
}

/* Trait vert vertical — positionné en absolu
   à gauche du wrapper, collé sous le bloc TCE */
.tce-child-group {
  position: relative;
  /* Pas de margin/padding — le décalage se fait
     via grid-template-columns sur l'activity-block */
  margin-top: 0;
  margin-bottom: 80px;
  padding: 0;
}

/* Le trait vert passe par un pseudo-élément sur
   le wrapper parent, ancré à gauche du container */
.tce-parent-wrapper::after {
  content: '';
  position: absolute;
  /* Aligné sur le bord gauche du container (24px = padding container) */
  left: 24px;
  /* Commence à mi-hauteur du bloc TCE (~50% de son height) */
  top: 50%;
  /* Descend jusqu'au bas du groupe */
  bottom: 0;
  width: 3px;
  background: var(--green);
  border-radius: 0 0 3px 3px;
}

/* Le grid enfant : colonne fantôme de 56px à gauche
   pour décaler réellement image + texte vers la droite */
.tce-child-group .activity-block {
  grid-template-columns: 56px 1fr 1fr;
  margin-bottom: 0;
}

/* La colonne fantôme est vide — on force le contenu
   à partir de la colonne 2 */
.tce-child-group .activity-block > :first-child {
  grid-column: 3;
  grid-row: 1;
}
.tce-child-group .activity-block > :last-child {
  grid-column: 2;
  grid-row: 1;
}

/* Badge enfant */
.activity-tag--child {
  background: rgba(30, 155, 92, .10);
  color: var(--green-dark);
  border: 1px solid rgba(30, 155, 92, .35);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}

@media (max-width: 900px) {
  .tce-parent-wrapper::after {
    left: 16px;
    top: 45%;
  }
  .tce-child-group .activity-block {
    grid-template-columns: 24px 1fr;
  }
  .tce-child-group .activity-block > :first-child {
    grid-column: 2;
    grid-row: 2;
  }
  .tce-child-group .activity-block > :last-child {
    grid-column: 2;
    grid-row: 1;
  }
}

/* ═══════════════════════════════════════════
   SLIDER REVÊTEMENTS — même mécanique que
   le carrousel Réalisations (translateX px)
═══════════════════════════════════════════ */
.rev-slider-outer {
  position: relative;
  overflow: hidden;
}

.rev-slider-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.rev-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.rev-slide {
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dots */
.rev-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.rev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: 1.5px solid rgba(255, 255, 255, .75);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.rev-dot.active {
  background: #fff;
  transform: scale(1.25);
}