/* Bookman (TeX Gyre Bonum — clone libre d'URW Bookman) */
@font-face {
  font-family: "TeX Gyre Bonum";
  src: url("../fonts/texgyrebonum-regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Bonum";
  src: url("../fonts/texgyrebonum-bold.otf") format("opentype");
  font-weight: 600 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Bonum";
  src: url("../fonts/texgyrebonum-italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Bonum";
  src: url("../fonts/texgyrebonum-bolditalic.otf") format("opentype");
  font-weight: 600 800; font-style: italic; font-display: swap;
}

/* ============================================================
   I.C. TRANSPORT B.T.P — Design system
   Vert institutionnel · Noir carbone · Accent jaune chantier
   ============================================================ */

:root {
  --green: #176F40;
  --green-deep: #0F5530;
  --green-ink: #09341D;
  --green-photo: #087345; /* vert du fond des visuels plaquette */
  --carbon: #111111;
  --ink: #16201B;
  --white: #FFFFFF;
  --grey-bg: #F4F6F5;
  --grey-card: #FAFBFA;
  --grey-text: #4A4A4A;
  --grey-soft: #7A837E;
  --line: #E3E8E5;
  --line-dark: rgba(255, 255, 255, 0.14);
  --yellow: #FFD200;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Bookman Old Style", "Bookman URW", "URW Bookman", Bookman, "TeX Gyre Bonum", Georgia, serif;

  --container: 1240px;
  --radius: 3px;
  --shadow-soft: 0 18px 50px -22px rgba(6, 51, 29, 0.25);
  --shadow-card: 0 10px 34px -18px rgba(17, 17, 17, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--carbon);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

::selection { background: var(--green); color: #fff; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--carbon);
  color: #fff;
  padding: 10px 18px;
  z-index: 2000;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }

.btn-dark { background: var(--carbon); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--carbon);
  border-color: rgba(17, 17, 17, 0.35);
}
.btn-outline:hover { border-color: var(--carbon); color: var(--carbon); transform: translateY(-2px); }

.btn-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }

.btn-yellow { background: var(--yellow); color: var(--carbon); }
.btn-yellow:hover { background: #ffdd33; color: var(--carbon); transform: translateY(-2px); }

/* ---------- Top bar + header ---------- */

.topbar {
  background: var(--carbon);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
}
.topbar a { color: rgba(255, 255, 255, 0.82); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--yellow); }
.topbar-right { display: flex; gap: 22px; }
.topbar .tagline { color: var(--yellow); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -18px rgba(17, 17, 17, 0.25); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--carbon);
}
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--green); }

.nav-cta { margin-left: 10px; padding: 13px 20px; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--carbon);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero accueil (maquette 2025 : scindé blanc / panneau vert) ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-left {
  display: flex;
  align-items: center;
  padding: 90px 6vw 120px calc(max((100vw - var(--container)) / 2, 24px));
}

.hero-inner { position: relative; max-width: 640px; padding: 46px 8px; }

/* équerres de cadrage (motif de la couverture) */
.hero-inner::before, .hero-inner::after,
.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border: 3px solid var(--carbon);
  pointer-events: none;
}
.hero-inner::before { top: 0; left: -18px; border-right: 0; border-bottom: 0; }
.hero-inner::after { top: 0; right: -6px; border-left: 0; border-bottom: 0; }
.hero-frame::before { bottom: 0; left: -18px; border-right: 0; border-top: 0; }
.hero-frame::after { bottom: 0; right: -6px; border-left: 0; border-top: 0; }
.hero-frame { position: absolute; inset: 0; pointer-events: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 26px;
}

.hero h1 {
  color: var(--carbon);
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--green); display: block; }

.hero-sub {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 22px;
}

.hero-text {
  font-size: 1.12rem;
  color: var(--grey-text);
  max-width: 540px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* panneau droit : photo réelle duotone verte + logo */
.hero-panel {
  position: relative;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("../img/aerienne-route.jpg") no-repeat center / cover;
  opacity: 0.55;
  mix-blend-mode: luminosity;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(23, 111, 64, 0.20) 0%, rgba(9, 52, 29, 0.55) 100%);
}
.hero-watermark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(400px, 60%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  animation: floatmark 12s ease-in-out infinite alternate;
}
@keyframes floatmark {
  from { transform: translate(-50%, -52%); }
  to   { transform: translate(-50%, -48%); }
}

.hero-road {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--yellow) 0 60px, transparent 60px 110px);
  opacity: 0.85;
}

/* ---------- Bandeau chiffres ---------- */

.stats {
  background: var(--carbon);
  color: #fff;
  position: relative;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
}
.stat {
  background: var(--carbon);
  padding: 42px 30px;
  text-align: left;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.stat-value span.unit { color: var(--yellow); }
.stat-label {
  margin-top: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Sections génériques ---------- */

.section { padding: 104px 0; position: relative; overflow: hidden; }
.section-grey { background: var(--grey-bg); }
.section-dark {
  background: linear-gradient(135deg, var(--green-ink), var(--green-deep) 130%);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-carbon { background: var(--carbon); color: #fff; }
.section-carbon h2, .section-carbon h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.section-dark .eyebrow, .section-carbon .eyebrow { color: var(--yellow); }

.section-head { max-width: 760px; margin-bottom: 58px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head .lead {
  font-size: 1.12rem;
  color: var(--grey-text);
  margin-top: 14px;
}
.section-dark .lead, .section-carbon .lead { color: rgba(255, 255, 255, 0.78); }

.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.route-line {
  height: 3px;
  width: 110px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--green) 0 62%, var(--yellow) 62% 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) 0.15s;
}
.in .route-line, .route-line.in { transform: scaleX(1); }
.section-head.center .route-line { margin-inline: auto; }

.watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  width: 640px;
  max-width: 70vw;
}
.watermark.tr { top: -60px; right: -120px; }
.watermark.bl { bottom: -80px; left: -120px; }

/* Filigrane central en rotation lente (accueil) */
.watermark.spin {
  top: 50%;
  left: 50%;
  width: min(620px, 72vw);
  transform: translate(-50%, -50%);
  animation: wm-spin 70s linear infinite;
  will-change: transform;
}
@keyframes wm-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .watermark.spin { animation: none; }
}
.section > .container { position: relative; z-index: 1; }

/* ---------- Cartes piliers / valeurs ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 40px 34px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-top-color: var(--yellow);
}
.pillar .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(0, 122, 61, 0.09);
  color: var(--green);
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.pillar h3 { font-size: 1.22rem; }
.pillar p { color: var(--grey-text); font-size: 0.99rem; margin: 0; }

/* ---------- Expertises ---------- */

.expertise-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.expertise-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.expertise-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--green-ink);
}
.expertise-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.expertise-card:hover .expertise-media img { transform: scale(1.06); }
.expertise-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 51, 29, 0) 45%, rgba(6, 51, 29, 0.55) 100%);
}
.expertise-num {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--carbon);
  background: var(--yellow);
  padding: 6px 12px;
  border-radius: var(--radius);
}

.expertise-body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.expertise-body .icon { color: var(--green); margin-bottom: 16px; }
.expertise-body h3 { font-size: 1.3rem; }
.expertise-body p { color: var(--grey-text); font-size: 0.99rem; flex: 1; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 18px;
}
.link-more svg { transition: transform 0.25s var(--ease); }
.link-more:hover svg { transform: translateX(5px); }

/* ---------- Bande image diagonale ---------- */

.diagonal-band {
  position: relative;
  min-height: 420px;
  background: var(--green-ink);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.diagonal-band .band-img {
  position: absolute;
  inset: 0 0 0 42%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.diagonal-band .band-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 51, 29, 0.65), rgba(6, 51, 29, 0) 55%);
}
.diagonal-band .band-content { position: relative; z-index: 2; max-width: 520px; padding: 80px 0; }

/* ---------- Réalisations ---------- */

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-ink); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius);
}
.project-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.16rem; }
.project-loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 12px;
}
.project-body p { color: var(--grey-text); font-size: 0.97rem; margin-bottom: 14px; }
.project-result {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--green-deep);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.project-result svg { flex: none; margin-top: 3px; color: var(--green); }

/* ---------- Galerie flotte ---------- */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fleet-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--green-ink);
  border: 1px solid var(--line);
}
.fleet-item.wide { grid-column: span 2; aspect-ratio: auto; }
.fleet-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.fleet-item:hover img { transform: scale(1.05); }
.fleet-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 22px 18px;
  background: linear-gradient(180deg, rgba(6, 51, 29, 0) 0%, rgba(6, 51, 29, 0.85) 78%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fleet-cap small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.capacity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 34px; margin: 0; padding: 0; list-style: none; }
.capacity-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--grey-text);
}
.capacity-list svg { color: var(--green); flex: none; margin-top: 4px; }
.capacity-list strong { color: var(--carbon); }
.section-dark .capacity-list li,
.section-carbon .capacity-list li { border-color: var(--line-dark); color: rgba(255,255,255,0.85); }
.section-dark .capacity-list strong,
.section-carbon .capacity-list strong { color: #fff; }
.section-dark .capacity-list svg,
.section-carbon .capacity-list svg { color: var(--yellow); }

/* ---------- Mot du directeur ---------- */

.director {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.director-panel {
  background: var(--green-ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 46px 40px;
  position: relative;
  overflow: hidden;
}
.director-panel .watermark { opacity: 0.07; width: 400px; right: -110px; bottom: -70px; top: auto; left: auto; }
.director-panel h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.director-panel .role {
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.director-panel .org { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.director-quote { position: relative; }
.director-quote .qmark {
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 800;
  color: rgba(0, 122, 61, 0.14);
  position: absolute;
  top: -58px;
  left: -12px;
  line-height: 1;
}
.director-quote blockquote {
  margin: 0;
  font-size: 1.16rem;
  color: var(--ink);
}
.director-quote blockquote p + p { margin-top: 1em; }
.director-quote .sig {
  margin-top: 28px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--carbon);
}
.director-quote .sig small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--grey-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-top: 4px;
}

/* ---------- Timeline ---------- */

.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--yellow));
}
.timeline-item { position: relative; padding: 0 0 34px 42px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
}
.timeline-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.timeline-item h3 span {
  color: var(--green);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  margin-right: 12px;
}
.timeline-item p { color: var(--grey-text); font-size: 0.98rem; margin: 0; }

/* ---------- Partenaires ---------- */

.partner-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(0,122,61,0.35); }
.partner-card svg { color: var(--green); flex: none; margin-top: 3px; }
.partner-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--carbon);
}
.partner-card span { color: var(--grey-soft); font-size: 0.88rem; }

.finance-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.finance-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.finance-card h3 { font-size: 1.25rem; letter-spacing: 0.04em; }
.finance-card .role {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.finance-card p { color: var(--grey-text); font-size: 0.96rem; margin: 12px 0 0; }

/* ---------- Engagement ---------- */

.engage-list { counter-reset: eng; display: grid; gap: 0; }
.engage-item {
  display: grid;
  grid-template-columns: 90px 1fr 1.35fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.engage-item:first-child { border-top: 1px solid var(--line); }
.engage-item::before {
  counter-increment: eng;
  content: "0" counter(eng);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 122, 61, 0.28);
  line-height: 1;
}
.engage-item h3 { font-size: 1.2rem; margin: 0; }
.engage-item p { color: var(--grey-text); margin: 0; }

/* ---------- Actualités ---------- */

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.article-card:hover { box-shadow: var(--shadow-card); }
.article-head { padding: 30px 30px 24px; cursor: pointer; display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.article-head:hover h3 { color: var(--green); }
.article-meta {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}
.article-card h3 { font-size: 1.28rem; margin-bottom: 8px; transition: color 0.25s var(--ease); }
.article-excerpt { color: var(--grey-text); margin: 0; }
.article-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: grid;
  place-items: center;
  color: var(--green);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.article-card.open .article-toggle { transform: rotate(45deg); background: var(--green); color: #fff; border-color: var(--green); }
.article-body {
  display: none;
  padding: 0 30px 34px;
  color: var(--grey-text);
  border-top: 1px dashed var(--line);
  padding-top: 24px;
  margin: 0 0 0;
}
.article-card.open .article-body { display: block; }
.article-body h4 { font-size: 1.02rem; margin-top: 1.4em; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 54px; align-items: start; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--carbon);
}
.form-field label .req { color: var(--green); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grey-card);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.12);
}
.form-note { font-size: 0.86rem; color: var(--grey-soft); margin: 14px 0 22px; }
.form-status { margin-top: 16px; font-weight: 600; color: var(--green-deep); }

.contact-side { display: grid; gap: 22px; }
.contact-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-block .icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(0, 122, 61, 0.09);
  color: var(--green);
  border-radius: var(--radius);
}
.contact-block strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--carbon);
  margin-bottom: 6px;
}
.contact-block a { display: block; color: var(--grey-text); }
.contact-block a:hover { color: var(--green); }
.contact-block p { margin: 0; color: var(--grey-text); }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 60px;
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

.qr-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--carbon);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
}
.qr-card img { width: 108px; border-radius: var(--radius); background: #fff; padding: 6px; }
.qr-card strong { font-family: var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; display: block; margin-bottom: 6px; }
.qr-card p { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.qr-card a { color: var(--yellow); }

/* ---------- Page hero (pages intérieures — maquette : blanc + pastille) ---------- */

.page-hero {
  position: relative;
  background: #fff;
  color: var(--ink);
  padding: 86px 0 64px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero .watermark { opacity: 0.05; top: -60px; right: -140px; }
.page-hero .hero-eyebrow { margin-bottom: 22px; }
.page-hero h1 {
  color: var(--carbon);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 860px;
  margin-bottom: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.page-hero .lead {
  font-size: 1.14rem;
  color: var(--grey-text);
  max-width: 700px;
  margin: 0;
}
.page-hero .hero-road { height: 4px; opacity: 0.55; }


/* ---------- Composants maquette 2025 ---------- */

/* pastille numérotée */
.num-pill {
  display: inline-grid;
  place-items: center;
  min-width: 74px;
  height: 46px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.section-head .head-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.section-head .head-row h2 { margin: 0; }

/* bandeau-titre de projet (pilule verte) */
.project-pill {
  background: var(--green);
  color: #fff;
  border-radius: 22px;
  padding: 18px 30px;
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.45;
  box-shadow: 0 14px 34px -18px rgba(9, 52, 29, 0.55);
}

/* barre de légende grise au-dessus des photos */
.caption-figure { margin: 0; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.caption-figure figcaption {
  background: #7d8488;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 12px;
}
.caption-figure img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.caption-figure:hover img { transform: scale(1.05); }

/* mur de logos partenaires */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.logo-card img {
  max-width: 100%;
  height: 84px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.logo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: rgba(23, 111, 64, 0.35); }
.logo-card:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.logo-card span {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--grey-soft);
  text-align: center;
}

/* tableau parc matériel */
.parc-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.parc-table thead th {
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 20px;
}
.parc-table td { padding: 11px 20px; border-top: 1px solid var(--line); font-size: 0.98rem; }
.parc-table td:last-child { text-align: right; font-family: var(--font-head); font-weight: 700; color: var(--green-deep); width: 120px; }
.parc-table tbody tr:nth-child(even) { background: var(--grey-bg); }
.parc-table tbody tr:hover { background: rgba(23, 111, 64, 0.07); }
.parc-table tfoot td { background: var(--carbon); color: #fff; font-family: var(--font-head); font-weight: 700; }
.parc-table tfoot td:last-child { color: var(--yellow); }

/* organigramme simplifié */
.org { display: grid; gap: 14px; justify-items: center; }
.org-node {
  background: var(--carbon);
  color: #fff;
  border-radius: 10px;
  padding: 13px 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.org-node small { display: block; font-family: var(--font-body); font-weight: 400; color: rgba(255,255,255,0.7); font-size: 0.8rem; margin-top: 3px; }
.org-node.lvl2 { background: var(--green); }
.org-link { width: 2px; height: 22px; background: var(--line); }
.org-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.org-branch { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 10px; padding: 18px; }
.org-branch h4 { font-size: 0.9rem; margin-bottom: 10px; color: var(--green-deep); }
.org-branch ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.org-branch li { font-size: 0.86rem; color: var(--grey-text); padding-left: 14px; position: relative; }
.org-branch li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* fiche chantier : pilule + galerie */
.project-block { margin-bottom: 56px; }
.project-block .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(115deg, var(--green-deep), var(--green) 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band .watermark { opacity: 0.06; right: -100px; top: -140px; width: 520px; }
.cta-inner {
  position: relative;
  z-index: 1;
  padding: 84px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin: 0 0 10px; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--carbon);
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
}
.site-footer .watermark { opacity: 0.04; width: 560px; right: -140px; bottom: -180px; }
.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 76px 0 54px;
}
.footer-brand img { height: 64px; margin-bottom: 20px; }
.footer-brand .sig {
  font-family: var(--font-head);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.94rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-col li { font-size: 0.95rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 4px; color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  position: relative;
  z-index: 1;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  font-size: 0.84rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: var(--yellow); }

/* ---------- Légal ---------- */

.legal-block { max-width: 820px; }
.legal-block h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal-block table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-block td { padding: 12px 16px; border: 1px solid var(--line); font-size: 0.98rem; }
.legal-block td:first-child { background: var(--grey-bg); font-weight: 600; width: 42%; }

/* ---------- Animations reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ---------- Animations globales ---------- */

@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
main { animation: pageIn 0.65s var(--ease) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

/* Entrée du hero (accueil + pages intérieures) */
.hero .hero-eyebrow, .page-hero .hero-eyebrow { animation: fadeUp 0.7s var(--ease) 0.12s both; }
.hero h1,            .page-hero h1            { animation: fadeUp 0.8s var(--ease) 0.24s both; }
.hero .hero-sub                                { animation: fadeUp 0.7s var(--ease) 0.4s both; }
.hero .hero-text,    .page-hero .lead          { animation: fadeUp 0.7s var(--ease) 0.52s both; }
.hero .hero-actions                            { animation: fadeUp 0.7s var(--ease) 0.66s both; }

/* Navigation : apparition en cascade */
.main-nav a { animation: fadeDown 0.45s var(--ease) both; }
.main-nav a:nth-child(1) { animation-delay: 0.05s; }
.main-nav a:nth-child(2) { animation-delay: 0.09s; }
.main-nav a:nth-child(3) { animation-delay: 0.13s; }
.main-nav a:nth-child(4) { animation-delay: 0.17s; }
.main-nav a:nth-child(5) { animation-delay: 0.21s; }
.main-nav a:nth-child(6) { animation-delay: 0.25s; }
.main-nav a:nth-child(7) { animation-delay: 0.29s; }
.main-nav a:nth-child(8) { animation-delay: 0.33s; }
.main-nav a:nth-child(9) { animation-delay: 0.37s; }
.main-nav a:nth-child(10) { animation-delay: 0.41s; }

/* Marquage routier défilant */
@keyframes roadMove { to { background-position: 110px 0; } }
.hero-road { animation: roadMove 2.8s linear infinite; }

/* Zoom lent du visuel hero (Ken Burns discret) */
@keyframes bgZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-photo { animation: bgZoom 22s ease-in-out infinite alternate; }

/* Reflet balayant les boutons */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 32%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.65s var(--ease);
}
.btn:hover::after { left: 145%; }

/* Icônes des cartes piliers */
.pillar .icon svg { transition: transform 0.4s var(--ease); }
.pillar:hover .icon svg { transform: rotate(-7deg) scale(1.12); }
.expertise-num { transition: transform 0.35s var(--ease); }
.expertise-card:hover .expertise-num { transform: translateY(-3px) scale(1.06); }

/* Bande CTA : dérive lente du dégradé */
@keyframes gradientPan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.cta-band {
  background-size: 180% 180%;
  animation: gradientPan 16s ease-in-out infinite alternate;
}

/* Barre de progression de lecture */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  z-index: 3000;
  pointer-events: none;
  transition: width 0.12s linear;
}

/* Voile de transition entre pages — une variante par rubrique du site */
#page-veil {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: linear-gradient(118deg, var(--green-ink), var(--green-deep) 60%, var(--green-photo));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.48s cubic-bezier(0.65, 0, 0.35, 1),
              clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.45s ease;
  pointer-events: none;
}
#page-veil img {
  width: min(240px, 40vw);
  opacity: 0.16;
  transform: scale(0.92);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
#page-veil.active { pointer-events: all; }
#page-veil.active img { transform: scale(1); }

/* Accueil : balayage depuis la gauche */
#page-veil.v-left { transform: translateX(-102%); }
#page-veil.v-left.active { transform: translateX(0); }

/* Expertises : balayage depuis la droite */
#page-veil.v-right { transform: translateX(102%); }
#page-veil.v-right.active { transform: translateX(0); }

/* À propos / Contact : montée depuis le bas */
#page-veil.v-up { transform: translateY(102%); }
#page-veil.v-up.active { transform: translateY(0); }

/* Partenaires : descente depuis le haut */
#page-veil.v-down { transform: translateY(-102%); }
#page-veil.v-down.active { transform: translateY(0); }

/* Flotte : ouverture verticale depuis l'axe central */
#page-veil.v-split { clip-path: inset(0 50% 0 50%); }
#page-veil.v-split.active { clip-path: inset(0 0 0 0); }

/* Réalisations : cercle qui grandit depuis le centre */
#page-veil.v-circle {
  clip-path: circle(0% at 50% 50%);
  background: radial-gradient(circle at 50% 50%, var(--green-photo), var(--green-deep) 55%, var(--green-ink));
}
#page-veil.v-circle.active { clip-path: circle(75% at 50% 50%); }

/* Engagement : balayage oblique */
#page-veil.v-diag { transform: translateX(-124%) skewX(-14deg); }
#page-veil.v-diag.active { transform: translateX(0) skewX(0deg); }

/* Actualités / Mentions : fondu zoomé */
#page-veil.v-fade { opacity: 0; transform: scale(1.07); }
#page-veil.v-fade.active { opacity: 1; transform: scale(1); }

/* ---------- Frise chronologique animée (À propos) ---------- */

.timeline { padding-bottom: 6px; }

.timeline-year {
  position: absolute;
  right: -10px;
  top: -34px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4.6rem, 8vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 122, 61, 0.1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.timeline-item { position: relative; z-index: 1; }

html.js .timeline::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 2.2s var(--ease) 0.2s;
}
html.js .timeline.play::before { transform: scaleY(1); }

html.js .timeline-item {
  opacity: 0;
  transform: translateX(34px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .timeline-item::before {
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.js .timeline.play .timeline-item { opacity: 1; transform: none; }
html.js .timeline.play .timeline-item::before { transform: scale(1); }
html.js .timeline.play .timeline-item:nth-child(1) { transition-delay: 0.25s; }
html.js .timeline.play .timeline-item:nth-child(2) { transition-delay: 0.65s; }
html.js .timeline.play .timeline-item:nth-child(3) { transition-delay: 1.05s; }
html.js .timeline.play .timeline-item:nth-child(4) { transition-delay: 1.45s; }
html.js .timeline.play .timeline-item:nth-child(5) { transition-delay: 1.85s; }
html.js .timeline.play .timeline-item:nth-child(1)::before { transition-delay: 0.3s; }
html.js .timeline.play .timeline-item:nth-child(2)::before { transition-delay: 0.7s; }
html.js .timeline.play .timeline-item:nth-child(3)::before { transition-delay: 1.1s; }
html.js .timeline.play .timeline-item:nth-child(4)::before { transition-delay: 1.5s; }
html.js .timeline.play .timeline-item:nth-child(5)::before { transition-delay: 1.9s; }

/* Soulignement jaune qui balaie l'année */
.timeline-item h3 span {
  position: relative;
  padding-bottom: 2px;
}
.timeline-item h3 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
html.js .timeline.play .timeline-item:nth-child(1) h3 span::after { transform: scaleX(1); transition-delay: 0.55s; }
html.js .timeline.play .timeline-item:nth-child(2) h3 span::after { transform: scaleX(1); transition-delay: 0.95s; }
html.js .timeline.play .timeline-item:nth-child(3) h3 span::after { transform: scaleX(1); transition-delay: 1.35s; }
html.js .timeline.play .timeline-item:nth-child(4) h3 span::after { transform: scaleX(1); transition-delay: 1.75s; }
html.js .timeline.play .timeline-item:nth-child(5) h3 span::after { transform: scaleX(1); transition-delay: 2.15s; }

/* Pulsation du point « Aujourd'hui » */
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(0, 122, 61, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(0, 122, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 122, 61, 0); }
}
html.js .timeline.play .timeline-item:last-child::before { animation: pulseDot 2.4s ease-out 2.6s infinite; }

/* ---------- Responsive ---------- */

@media (max-width: 1560px) {
  .main-nav a { padding: 9px 7px; font-size: 0.72rem; letter-spacing: 0.05em; }
  .nav-cta { padding: 11px 14px; font-size: 0.72rem; }
  .brand-name { font-size: 0.9rem; }
  .brand img { height: 44px; }
}

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .partner-wall { grid-template-columns: repeat(2, 1fr); }
  .finance-row { grid-template-columns: 1fr; }
}

/* Menu mobile (burger) */
@media (max-width: 1140px) {
  /* backdrop-filter ferait du header le containing block du menu fixe */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .burger { display: block; position: relative; z-index: 1001; }
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(9, 40, 24, 0.985);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a { color: #fff; font-size: 1.06rem; padding: 13px 20px; }
  .main-nav a.active { color: var(--yellow); }
  .main-nav a::after { display: none; }
  .nav-cta { margin: 18px 0 0; background: var(--yellow); color: var(--carbon); font-size: 0.82rem; padding: 16px 28px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger span { background: #fff; }
  body.nav-open .burger { border-color: rgba(255,255,255,0.4); }
}

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .director { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .diagonal-band .band-img { inset: 55% 0 0 0; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .diagonal-band .band-content { padding: 64px 0 300px; max-width: 100%; }
  .diagonal-band { display: block; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .fleet-item.wide { grid-column: span 2; }
  .capacity-list { grid-template-columns: 1fr; }
  .engage-item { grid-template-columns: 56px 1fr; }
  .engage-item p { grid-column: 2; }
  .topbar-right { display: none; }
  .section { padding: 72px 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: 64px 24px 70px; }
  .hero-inner { padding: 36px 6px; }
  .hero-panel { min-height: 260px; }
  .org-branches { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .org-branches { grid-template-columns: 1fr; }
  .caption-figure img { height: 190px; }
  .hero-inner::before, .hero-inner::after, .hero-frame::before, .hero-frame::after { width: 34px; height: 34px; border-width: 2px; }
  .grid-4, .partner-wall, .fleet-grid { grid-template-columns: 1fr; }
  .fleet-item.wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 22px; }
  .stat-value { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .brand img { height: 42px; }
  .brand-name { font-size: 0.9rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Sélecteur de langue ---------- */

.lang-switch { position: relative; flex: none; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px 4px 5px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--yellow); transform: translateY(-1px); }
.lang-btn .chev { transition: transform 0.3s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-flag {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  flex: none;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.65);
}
.lang-flag svg { width: 100%; height: 100%; display: block; }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 3200;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(6, 51, 29, 0.45);
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.lang-menu.open { opacity: 1; transform: none; pointer-events: auto; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  opacity: 0;
  transform: translateX(10px);
  transition: background-color 0.2s var(--ease), transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.lang-menu.open .lang-option { opacity: 1; transform: none; }
.lang-menu.open .lang-option:nth-child(1) { transition-delay: 0.03s; }
.lang-menu.open .lang-option:nth-child(2) { transition-delay: 0.08s; }
.lang-menu.open .lang-option:nth-child(3) { transition-delay: 0.13s; }
.lang-menu.open .lang-option:nth-child(4) { transition-delay: 0.18s; }
.lang-menu.open .lang-option:nth-child(5) { transition-delay: 0.23s; }
.lang-option:hover { background: var(--grey-bg); }
.lang-option .lang-flag { width: 24px; height: 24px; box-shadow: 0 0 0 1.5px var(--line); }
.lang-option .native { flex: 1; }
.lang-option .tick { color: var(--green); opacity: 0; transform: scale(0.5); transition: opacity 0.25s, transform 0.25s var(--ease); }
.lang-option.active { background: rgba(0, 122, 61, 0.08); }
.lang-option.active .tick { opacity: 1; transform: none; }

/* Rangée de drapeaux dans le menu burger */
.lang-inline {
  display: none;
  gap: 16px;
  justify-content: center;
  margin-top: 26px;
}
.lang-inline button {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lang-inline .lang-flag { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.lang-inline button:hover { transform: translateY(-3px) scale(1.08); }
.lang-inline button.active .lang-flag { box-shadow: 0 0 0 3px var(--yellow); }
@media (max-width: 1140px) {
  .main-nav.open ~ * .lang-inline, .main-nav.open .lang-inline { display: flex; }
  .main-nav .lang-inline { display: flex; }
}

/* ---------- RTL (arabe) ---------- */

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; transform-origin: top left; }
html[dir="rtl"] .lang-option { text-align: right; }
html[dir="rtl"] .main-nav a::after { transform-origin: right; }
html[dir="rtl"] .finance-card { border-left: 1px solid var(--line); border-right: 4px solid var(--green); }
html[dir="rtl"] .route-line { transform-origin: right; background: linear-gradient(270deg, var(--green) 0 62%, var(--yellow) 62% 100%); }
html[dir="rtl"] .timeline::before { left: auto; right: 7px; }
html[dir="rtl"] .timeline-item { padding: 0 42px 34px 0; }
html[dir="rtl"] .timeline-item::before { left: auto; right: 0; }
html[dir="rtl"] .timeline-item h3 span { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .timeline-year { right: auto; left: -10px; }
html[dir="rtl"] .hero-eyebrow::before, html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .section-head:not(.center) .route-line { margin-right: 0; }
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4,
html[lang="ar"] .btn, html[lang="ar"] .main-nav a, html[lang="ar"] .eyebrow, html[lang="ar"] .hero-eyebrow {
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

/* Voile anti-flash pendant l'application de la langue enregistrée */
html.i18n-loading body { visibility: hidden; }

/* ---------- Assistant IA (chatbox) ---------- */

#ict-chat-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3500;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px -10px rgba(6, 51, 29, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fadeUp 0.6s var(--ease) 1s both;
}
#ict-chat-btn:hover { transform: translateY(-4px) scale(1.05); }
#ict-chat-btn img { width: 46px; height: auto; pointer-events: none; }
#ict-chat-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulseDot 2.6s ease-out infinite;
  pointer-events: none;
}
#ict-chat-btn.open::before { animation: none; opacity: 0; }
html[dir="rtl"] #ict-chat-btn { right: auto; left: 22px; }

#ict-chat {
  position: fixed;
  right: 22px;
  bottom: 100px;
  z-index: 3500;
  width: min(430px, calc(100vw - 32px));
  height: min(650px, calc(100dvh - 130px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(6, 51, 29, 0.55);
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
#ict-chat.open { opacity: 1; transform: none; pointer-events: auto; }
html[dir="rtl"] #ict-chat { right: auto; left: 22px; transform-origin: bottom left; }

.chat-head {
  background: linear-gradient(118deg, var(--green-ink), var(--green-deep) 70%, var(--green-photo));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
}
.chat-head .chat-logo {
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.chat-head .chat-logo img { width: 32px; height: auto; }
.chat-head .chat-id { flex: 1; min-width: 0; }
.chat-head .chat-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.chat-head .chat-status {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-head .chat-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d878;
  animation: pulseDot 2.4s ease-out infinite;
}
.chat-head .chat-status[data-mode="typing"]::before { background: var(--yellow); }
.chat-tools {
  display: flex;
  gap: 7px;
  align-items: center;
  flex: none;
}
.chat-close,
.chat-reset {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chat-close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }
.chat-reset:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(-25deg); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  background: var(--grey-bg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.chat-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/logo.png") center 46% / 210px auto no-repeat;
  opacity: 0.035;
  pointer-events: none;
}
.chat-msg,
.chat-suggests,
.chat-actions {
  position: relative;
  z-index: 1;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; animation: fadeUp 0.35s var(--ease) both; }
.chat-msg .chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.chat-msg .chat-avatar img { width: 19px; height: auto; }
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.bot .chat-bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.chat-msg.user { justify-content: flex-end; }
.chat-msg.user .chat-bubble {
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 4px;
}
html[dir="rtl"] .chat-msg.bot .chat-bubble { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
html[dir="rtl"] .chat-msg.user .chat-bubble { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }

.chat-typing { display: inline-flex; gap: 5px; padding: 13px 16px; }
.chat-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grey-soft);
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-suggests { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.chat-suggest {
  background: #fff;
  border: 1px solid rgba(0, 122, 61, 0.4);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chat-suggest:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 34px;
}
.chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(0, 122, 61, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 26px -22px rgba(6, 51, 29, 0.55);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chat-action:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
html[dir="rtl"] .chat-actions {
  padding-left: 0;
  padding-right: 34px;
}

.chat-foot { background: #fff; border-top: 1px solid var(--line); padding: 10px 12px 6px; }
.chat-input-row { display: flex; gap: 8px; align-items: center; }
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--grey-card);
  min-width: 0;
}
.chat-input-row input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.12); }
.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chat-send:hover { background: var(--green-deep); transform: scale(1.07); }
.chat-send:disabled { opacity: 0.5; cursor: default; transform: none; }
html[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-note {
  text-align: center;
  font-size: 0.68rem;
  color: var(--grey-soft);
  padding: 5px 4px 2px;
  margin: 0;
}

@media (max-width: 480px) {
  #ict-chat {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 92px;
    height: min(560px, calc(100dvh - 110px));
  }
  html[dir="rtl"] #ict-chat { left: 16px; right: 16px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .route-line { transform: scaleX(1); }
}

/* ---------- Crédit FAC (footer) ---------- */

.footer-legal {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.credit-fac {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.credit-fac img {
  height: 15px;
  width: auto;
  display: inline-block;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.credit-fac:hover { color: rgba(255, 255, 255, 0.85); opacity: 1; }
.credit-fac:hover img { opacity: 1; }


/* ---------- Paragraphes justifiés (Bookman) ---------- */

main p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
main p.eyebrow, main p.hero-eyebrow, main p.hero-sub,
main .section-head.center p, main .project-loc, main .form-note, main .chat-note {
  text-align: initial;
  hyphens: manual;
}
main .section-head.center p { text-align: center; }
html[dir="rtl"] main p { text-align: justify; }


/* ---------- Sélecteur de langue dans l'en-tête blanc ---------- */

.lang-switch { margin-left: 6px; }
.lang-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.lang-btn:hover { background: var(--grey-bg); border-color: var(--green); transform: translateY(-1px); }
.lang-flag { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.08); }

/* ---------- Hero vidéo & cartes de champs d'expertise ---------- */

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a.expertise-card { color: inherit; }
a.expertise-card:hover h3 { color: var(--green-deep); }
.champ-link .link-more { margin-top: 14px; }
#routes, #ouvrages, #beton, #transport { scroll-margin-top: 88px; }


/* ===================================================== */
/* Page Flotte — explorateur de parc interactif (flt-)   */
/* ===================================================== */

.flt-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.flt-filter {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.flt-filter:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.flt-filter[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.flt-count {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--grey-bg);
  color: var(--grey-text);
}
.flt-filter[aria-pressed="true"] .flt-count { background: var(--yellow); color: var(--carbon); }

.flt-status { margin: 0 0 28px; font-size: 0.88rem; color: var(--grey-soft); text-align: left; }
.flt-status [data-flt-count] { font-family: var(--font-head); font-weight: 700; color: var(--green); }

.flt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.flt-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.flt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.flt-card[hidden] { display: none; }

.flt-card-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.flt-card-btn:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }

.flt-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #EDF3EF;
}
.flt-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.flt-card:hover .flt-media img { transform: scale(1.05); }
.flt-media-picto { display: flex; align-items: center; justify-content: center; color: var(--green); }
.flt-picto { width: 72px; height: 72px; }

.flt-qty {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
}

.flt-body { display: flex; flex-direction: column; gap: 5px; padding: 18px 20px 16px; }
.flt-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.flt-role { color: var(--grey-text); font-size: 0.92rem; line-height: 1.45; }
.flt-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.flt-more svg { transition: transform 0.3s var(--ease); }
.flt-card-open .flt-more svg { transform: rotate(180deg); }

.flt-detail {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), visibility 0.45s;
}
.flt-detail.flt-open { grid-template-rows: 1fr; visibility: visible; }
.flt-detail-in { overflow: hidden; min-height: 0; }
.flt-detail-pad { margin: 0 20px; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.flt-detail-pad p { margin: 0; text-align: left; color: var(--grey-text); font-size: 0.92rem; line-height: 1.55; }
.flt-spec {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--grey-bg);
  border-left: 3px solid var(--yellow);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--carbon);
}

@keyframes flt-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.flt-anim { animation: flt-pop 0.45s var(--ease) both; }

@media (max-width: 980px) {
  .flt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .flt-grid { grid-template-columns: 1fr; gap: 16px; }
  .flt-filter { padding: 9px 14px; font-size: 0.8rem; }
  .flt-body { padding: 16px 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .flt-anim { animation: none; }
  .flt-card,
  .flt-card .flt-media img,
  .flt-more svg,
  .flt-filter,
  .flt-detail { transition: none; }
}


/* ---------- Réalisations — refonte cartes cliquables (préfixe real-) ---------- */

.real-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -22px 0 44px;
}
.real-filter {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--grey-text);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.real-filter:hover { border-color: var(--green); color: var(--green); }
.real-filter.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.real-filter:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.real-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}
.real-grid-compact { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.real-hidden { display: none; }

.real-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.real-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.real-card.is-open { transform: none; box-shadow: var(--shadow-card); }

.real-toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.real-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

.real-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--green-ink);
}
.real-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.real-card:hover .real-media img,
.real-toggle:focus-visible .real-media img { transform: scale(1.05); }

.real-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.real-badge {
  font-family: var(--font-head);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
}
.real-badge-done { background: var(--green); }
.real-badge-prog { background: var(--yellow); color: var(--carbon); }

.real-head { display: block; padding: 20px 22px 18px; }
.real-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 8px;
}
.real-loc svg { color: var(--green); flex: none; }
.real-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--carbon);
}
.real-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.real-hint svg { transition: transform 0.3s var(--ease); }
.real-card.is-open .real-hint svg { transform: rotate(180deg); }

.real-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.real-card.is-open .real-panel { grid-template-rows: 1fr; }
.real-panel-in { overflow: hidden; min-height: 0; }
.real-panel-body {
  margin: 0 22px;
  padding: 18px 0 24px;
  border-top: 1px dashed var(--line);
}
.real-desc {
  color: var(--grey-text);
  font-size: 0.95rem;
  text-align: left;
  margin: 0 0 14px;
}
.real-subhead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--carbon);
  text-align: left;
  margin: 0 0 10px;
}
.real-tasks {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.real-tasks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--grey-text);
  font-size: 0.93rem;
}
.real-tasks svg { color: var(--green); flex: none; margin-top: 4px; }
.real-partner {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--green-deep);
  text-align: left;
  margin: 0 0 16px;
}
.real-partner svg { color: var(--green); flex: none; margin-top: 3px; }
.real-partner strong { color: var(--carbon); }
.real-panel-body > :last-child { margin-bottom: 0; }

.real-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.real-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.real-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.real-gallery figcaption {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--grey-soft);
  padding: 7px 9px;
  border-top: 1px solid var(--line);
}

.real-grid-compact .real-head { padding: 16px 18px 15px; }
.real-grid-compact .real-title { font-size: 0.98rem; }
.real-grid-compact .real-panel-body { margin: 0 18px; }
.real-grid-compact .real-gallery { grid-template-columns: repeat(2, 1fr); }
.real-grid-compact .real-gallery img { height: 96px; }

.real-note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 44px;
  max-width: 860px;
}
.real-note p { margin: 0; color: var(--grey-text); font-size: 0.93rem; text-align: left; }
.real-note strong { color: var(--carbon); }

@media (max-width: 900px) {
  .real-grid, .real-grid-compact { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .real-filters { margin-top: -10px; }
}
@media (max-width: 640px) {
  .real-grid, .real-grid-compact { grid-template-columns: 1fr; }
  .real-filter { padding: 9px 14px; font-size: 0.74rem; }
  .real-gallery, .real-grid-compact .real-gallery { grid-template-columns: repeat(2, 1fr); }
  .real-head, .real-grid-compact .real-head { padding: 16px 18px 15px; }
  .real-panel-body, .real-grid-compact .real-panel-body { margin: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .real-panel, .real-media img, .real-hint svg, .real-card, .real-filter { transition: none; }
}


/* ===================================================== */
/* Page Partenaires (préfixe part-)                       */
/* ===================================================== */

/* Familles discrètes du mur de logos */
.part-group { margin-top: 38px; }
.part-group:first-of-type { margin-top: 0; }
.part-group-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-soft);
}
.part-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Carte strictement identique pour partenaires sans logo : marque typographique
   (même hauteur que .logo-card img : 84px, même passage gris -> couleur au survol) */
.part-wordmark .part-mark {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-soft);
  opacity: 0.75;
  transition: color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.logo-card.part-wordmark:hover .part-mark { color: var(--green); opacity: 1; }

/* Bande horizontale sobre AP TECHNIC */
.part-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 40px 44px;
}
.part-band-text h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0 0 14px; }
.part-band-text > p { color: var(--grey-text); margin: 0; max-width: 52ch; }
.part-band-text .btn { margin-top: 24px; }
.part-band-figure { margin: 0; }
.part-band-figure img { height: 260px; }

/* Puces courtes en pastilles */
.part-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.part-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grey-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--grey-text);
}
.part-chips svg { color: var(--green); flex: none; }

/* RTL (cohérent avec le traitement de .finance-card) */
html[dir="rtl"] .part-band { border-left: 1px solid var(--line); border-right: 4px solid var(--green); }

/* Responsive */
@media (max-width: 900px) {
  .part-band { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
  .part-band-figure img { height: 230px; }
}
@media (max-width: 640px) {
  .part-group { margin-top: 30px; }
  .part-group-title { letter-spacing: 0.12em; }
  .part-band { padding: 22px 18px; }
  .part-band-figure img { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .part-wordmark .part-mark,
  .part-chips li { transition: none; }
}


/* ===================== Page Engagement (préfixe eng-) ===================== */

.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.eng-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.eng-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0 62%, var(--yellow) 62% 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.eng-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}
.eng-card:hover::before { transform: scaleX(1); }
.eng-ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: rgba(23, 111, 64, 0.09);
  color: var(--green);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.eng-ico svg { transition: transform 0.4s var(--ease); }
.eng-card:hover .eng-ico svg { transform: rotate(-7deg) scale(1.1); }
.eng-card h3 { font-size: 1.14rem; margin: 0 0 8px; }
.eng-card p {
  margin: 0;
  color: var(--grey-text);
  font-size: 0.97rem;
  text-align: left;
}

.eng-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.eng-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--carbon);
}
.eng-badge svg { color: var(--green); flex: none; }

.eng-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.eng-next-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  color: var(--carbon);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.eng-next-card:hover,
.eng-next-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--green);
  color: var(--carbon);
}
.eng-next-card .eng-ico { margin: 0; flex: none; }
.eng-next-card h3 { font-size: 1.08rem; margin: 0 0 6px; }
.eng-next-card p {
  margin: 0 0 12px;
  color: var(--grey-text);
  font-size: 0.95rem;
  text-align: left;
}

html[dir="rtl"] .eng-card::before { transform-origin: right; background: linear-gradient(270deg, var(--green) 0 62%, var(--yellow) 62% 100%); }

@media (max-width: 900px) {
  .eng-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .eng-grid { grid-template-columns: 1fr; }
  .eng-next { grid-template-columns: 1fr; }
  .eng-next-card { flex-direction: column; }
  .eng-badges { gap: 10px; }
  .eng-badge { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .eng-card, .eng-card::before, .eng-ico svg, .eng-next-card { transition: none; }
  .eng-card:hover, .eng-next-card:hover, .eng-next-card:focus-visible { transform: none; }
  .eng-card:hover .eng-ico svg { transform: none; }
  .eng-card:hover::before { transform: none; }
}


/* ============================================================
   ACTUALITÉS — fil d'actualités (préfixe act-)
   ============================================================ */

/* --- Carte « À la une » --- */
.act-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.act-featured-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.act-featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.act-featured:hover .act-featured-media img { transform: scale(1.04); }
.act-featured-body {
  padding: 42px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.act-featured-body h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  margin-bottom: 12px;
}
.act-featured-body p { color: var(--grey-text); margin-bottom: 16px; }

/* --- Badge de catégorie --- */
.act-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: var(--radius);
}
.act-tag-carbon { background: var(--carbon); color: #fff; }
.act-tag-yellow { background: var(--yellow); color: var(--carbon); }
.act-tag-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-deep);
  border: 1px solid var(--green);
}

/* --- Ligne méta (statut · année) --- */
.act-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin: 0;
}
.act-meta .act-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

/* --- Filtres --- */
.act-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
}
.act-filter {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 20px;
  background: #fff;
  color: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.act-filter:hover {
  border-color: var(--green);
  color: var(--green-deep);
  transform: translateY(-1px);
}
.act-filter.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* --- Grille de cartes --- */
.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.act-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              opacity 0.6s var(--ease);
}
.act-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.act-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.act-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.act-card:hover .act-card-media img { transform: scale(1.06); }
.act-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.act-card-body h3 {
  font-size: 1.06rem;
  line-height: 1.32;
  margin-bottom: 8px;
}
.act-card-body p {
  font-size: 0.94rem;
  color: var(--grey-text);
  margin-bottom: 14px;
}
.act-card-body .act-meta { margin-top: auto; }
.act-hide { display: none !important; }

/* --- Lien média (injecté seulement si data-media contient une URL réelle) --- */
.act-media-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.act-media-link:hover { color: var(--green-deep); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .act-featured { grid-template-columns: 1fr; }
  .act-featured-media { min-height: 0; aspect-ratio: 16 / 9; }
  .act-featured-body { padding: 28px 30px; }
}
@media (max-width: 640px) {
  .act-grid { grid-template-columns: 1fr; gap: 20px; }
  .act-filters { gap: 8px; margin-bottom: 28px; }
  .act-filter { padding: 10px 16px; }
  .act-featured-body { padding: 24px 22px; }
}

/* --- Mouvement réduit --- */
@media (prefers-reduced-motion: reduce) {
  .act-card,
  .act-filter,
  .act-card-media img,
  .act-featured-media img { transition: none; }
  .act-card:hover { transform: none; }
  .act-filter:hover { transform: none; }
  .act-card:hover .act-card-media img,
  .act-featured:hover .act-featured-media img { transform: none; }
}

/* Bandeau de page : eyebrow et titre toujours empilés (réclamation client :
   « pas sur la même ligne, il faut que ça soit plus bas ») */
.page-hero .container { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- Visionneuse d'images (lightbox) ---------- */

.lb-zoomable { cursor: zoom-in; }
.lb-zoomable:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
body.lb-lock { overflow: hidden; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(9, 20, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
#lightbox.open { opacity: 1; visibility: visible; }
#lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
#lightbox figure img {
  max-width: min(1100px, 92vw);
  max-height: 74vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#lightbox.open figure img { transform: scale(1); }
#lightbox figcaption {
  color: #fff;
  opacity: 0.94;
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.lb-counter {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin: 8px 0 0;
}
.lb-btn {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.lb-btn:hover { background: var(--green); border-color: var(--green); transform: scale(1.06); }
.lb-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }

@media (max-width: 640px) {
  .lb-btn { width: 44px; height: 44px; }
  #lightbox figure img { max-height: 64vh; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #lightbox, #lightbox figure img, .lb-btn { transition: none; }
}

/* ============================================================== */
/* Couche d'interactions premium — style cabinet de conseil       */
/* ============================================================== */

:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* — En-tête sticky : état au défilement — */
.site-header { transition: box-shadow 0.28s ease, background-color 0.28s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(9, 20, 14, 0.10); }
.brand img { transition: transform 0.28s var(--ease-out); transform-origin: left center; }
.site-header.scrolled .brand img { transform: scale(0.87); }

/* — Reveals plus nerveux (0,55 s, courbe sortante) — */
.reveal {
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
/* après apparition, plus aucun délai hérité ne freine les survols */
.reveal.in.revealed { transition-delay: 0s !important; }

/* — Cartes : élévation douce + liseré lumineux discret — */
.pillar, .expertise-card, .real-card, .act-card, .logo-card, .eng-next-card, .form-card {
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out),
              border-color 0.32s ease, opacity 0.55s var(--ease-out);
}
.pillar:hover, .expertise-card:hover, .real-card:hover, .act-card:hover,
.logo-card:hover, .eng-next-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 111, 64, 0.35);
  box-shadow: 0 1px 0 rgba(23, 111, 64, 0.10), 0 18px 42px rgba(9, 20, 14, 0.12);
}
.flt-card:hover { border-color: rgba(23, 111, 64, 0.35); }

/* — Boutons : lift au survol, pression au clic, halo primaire — */
.btn {
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
              background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.09s; }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(23, 111, 64, 0.30); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* — Filtres et pastilles : retour de pression — */
.flt-filter:active, .lang-btn:active, button[class*="filter"]:active { transform: scale(0.96); }

/* — Figures : voile dégradé + pastille loupe sur les images cliquables — */
.caption-figure { position: relative; }
.caption-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 20, 14, 0.30), transparent 46%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.caption-figure:hover::after { opacity: 1; }
.caption-figure:has(.lb-zoomable)::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176F40' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E")
    center / 19px no-repeat;
  box-shadow: 0 6px 16px rgba(9, 20, 14, 0.20);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s var(--ease-out);
  pointer-events: none;
}
.caption-figure:has(.lb-zoomable):hover::before { opacity: 1; transform: none; }

/* — Formulaires : anneau de focus animé, libellé actif — */
.form-field input, .form-field select, .form-field textarea {
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(23, 111, 64, 0.14);
}
.form-field label { transition: color 0.2s ease; }
.form-field:focus-within label { color: var(--green); }

/* — Liens « voir plus » : flèche qui glisse — */
.link-more svg, .flt-more svg { transition: transform 0.25s var(--ease-out); }
a:hover .link-more svg, .link-more:hover svg,
.champ-link:hover .link-more svg { transform: translateX(5px); }

/* — Accessibilité : mouvement réduit — */
@media (prefers-reduced-motion: reduce) {
  .site-header, .brand img, .btn, .reveal,
  .caption-figure::after, .caption-figure::before { transition: none; }
  .btn:hover, .btn:active,
  .pillar:hover, .expertise-card:hover, .real-card:hover, .act-card:hover,
  .logo-card:hover, .eng-next-card:hover, .flt-filter:active, .lang-btn:active { transform: none; }
  main { animation: none; }
}

/* — En-tête compact sur petits écrans : tout tient, burger accessible — */
@media (max-width: 560px) {
  .nav-wrap { gap: 8px; }
  .brand { gap: 8px; min-width: 0; flex: 1 1 auto; }
  .brand img { width: 52px; height: auto; }
  .brand-name { font-size: 0.8rem; letter-spacing: 0.02em; }
  .brand-name small { display: none; }
  .lang-btn { padding: 7px 10px; }
  .lang-menu { right: 0; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 0.72rem; }
  .lang-btn { padding: 6px 8px; }
}

/* — Bandeau de chiffres : tenue parfaite sur petits écrans — */
.stats-grid > * { min-width: 0; }
@media (max-width: 430px) {
  .stat { padding: 26px 16px; }
  .stat-value { font-size: 2.05rem; }
  .stat-label { font-size: 0.72rem; letter-spacing: 0.06em; overflow-wrap: break-word; }
}

/* — En-tête : marque calée à gauche, nav à droite, zéro chevauchement — */
.site-header .container { max-width: 100%; padding-inline: 18px; }
.brand { flex-shrink: 0; }
@media (max-width: 1560px) {
  .brand-name small { font-size: 0.56rem; letter-spacing: 0.12em; }
}
.site-header .nav-wrap { padding: 12px 16px; }
@media (max-width: 1400px) and (min-width: 1141px) {
  .nav-wrap { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { height: 40px; }
  .brand-name { font-size: 0.84rem; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 5px; font-size: 0.67rem; letter-spacing: 0.04em; }
  .nav-cta { padding: 9px 10px; font-size: 0.67rem; }
  .lang-btn { padding: 6px 9px; }
}
.site-header .container { width: 100%; }
@media (max-width: 1400px) and (min-width: 1141px) {
  .brand-name { font-size: 0.8rem; }
  .main-nav a { font-size: 0.65rem; padding: 8px 4px; }
}

/* — Pied de page : logo sur sa propre ligne, 4 colonnes alignées — */
.footer-logoline { margin-bottom: 30px; }
.footer-logoline img { display: block; }
.footer-brand > p:first-child, .footer-brand .sig { margin-top: 0; }
.footer-col h4 { margin-top: 0; }

/* — Pied de page parfaitement droit : rangée de titres uniforme — */
.footer-brand .sig {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.12;
  margin: 0 0 20px;
}
.footer-brand > p:not(.sig) { margin-top: 0; }
.footer-col ul { margin-top: 0; }

/* — Barre du bas sur une seule ligne (© à gauche, mentions + crédit à droite) — */
.footer-bottom .container {
  flex-wrap: wrap;
  row-gap: 8px;
}
.footer-bottom .container > span { flex: 1 1 auto; min-width: 0; }
.footer-legal { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
@media (max-width: 900px) {
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
/* hauteur de titre commune aux 4 colonnes (le slogan tient sur 2 lignes) */
.footer-brand .sig, .footer-col h4 { min-height: 30px; margin-bottom: 20px; }
/* barre du bas : une seule ligne au-dessus de 900 px */
@media (min-width: 901px) {
  .footer-bottom .container { flex-wrap: nowrap; }
}
@media (max-width: 1400px) {
  .footer-bottom .container { font-size: 0.78rem; }
}

/* ============================================================== */
/* Explorateur des champs d'expertise (accueil, style cabinet)     */
/* ============================================================== */

.xp-explorer {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: stretch;
}
.xp-list { display: flex; flex-direction: column; }
.xp-item {
  position: relative;
  display: block;
  padding: 26px 6px 26px 18px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background-color 0.25s ease, padding-left 0.3s var(--ease-out);
}
.xp-item:first-child { border-top: 1px solid var(--line); }
.xp-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease-out);
}
.xp-item.active::before, .xp-item:hover::before { transform: scaleY(1); }
.xp-item.active, .xp-item:hover { padding-left: 26px; }
.xp-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  color: var(--carbon);
  transition: color 0.25s ease;
}
.xp-item-title svg { flex: none; opacity: 0; transform: translateX(-8px); transition: opacity 0.25s ease, transform 0.3s var(--ease-out); color: var(--green); }
.xp-item.active .xp-item-title, .xp-item:hover .xp-item-title { color: var(--green-deep); }
.xp-item.active .xp-item-title svg, .xp-item:hover .xp-item-title svg { opacity: 1; transform: none; }
.xp-item-sub { display: block; margin-top: 7px; color: var(--grey-text); font-size: 0.95rem; max-width: 92%; }
.xp-item:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }

.xp-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 480px;
  background: var(--grey-bg);
}
.xp-visual { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.05); transition: opacity 0.5s ease, transform 1.1s var(--ease-out); }
.xp-visual.on { opacity: 1; transform: scale(1); }
.xp-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-visual figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 28px 22px;
  background: linear-gradient(to top, rgba(9, 20, 14, 0.78), transparent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

@media (max-width: 940px) {
  .xp-explorer { display: block; }
  .xp-stage { display: none; }
  .xp-item-title svg { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-item, .xp-item::before, .xp-item-title, .xp-item-title svg, .xp-visual { transition: none; }
}

/* ============================================================== */
/* Médias des champs d'expertise : duo asymétrique + carte-chiffre */
/* ============================================================== */

.xd-media {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
  align-items: end;
  margin-top: 38px;
}
.xd-main, .xd-side { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.xd-main img { width: 100%; height: 430px; object-fit: cover; display: block; transition: transform 0.7s var(--ease-out); }
.xd-side { margin-bottom: 48px; }
.xd-side img { width: 100%; height: 310px; object-fit: cover; display: block; transition: transform 0.7s var(--ease-out); }
.xd-main:hover img, .xd-side:hover img { transform: scale(1.045); }

.xd-stat {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: 13px 18px 12px;
  box-shadow: 0 14px 34px rgba(9, 20, 14, 0.22);
  pointer-events: none;
  max-width: 78%;
}
.xd-stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--green-deep);
}
.xd-stat span { display: block; margin-top: 3px; font-size: 0.8rem; color: var(--grey-text); }

.xd-cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  background: rgba(9, 20, 14, 0.78);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (max-width: 760px) {
  .xd-media { grid-template-columns: 1fr; align-items: stretch; }
  .xd-main img { height: 260px; }
  .xd-side { margin-bottom: 0; }
  .xd-side img { height: 220px; }
  .xd-stat b { font-size: 1.2rem; }
}

/* — Figures légendées : pastille sur l'image (fini les barres grises) — */
.caption-figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  width: max-content;
  max-width: calc(100% - 24px);
  background: rgba(9, 20, 14, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  pointer-events: none;
}

/* — Chatbox : badge bulle, invitation flottante, discrétion — */
.chat-fab-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(9, 20, 14, 0.3);
  animation: chatWiggle 6s ease-in-out 4s infinite;
}
@keyframes chatWiggle {
  0%, 86% { transform: rotate(0); }
  89% { transform: rotate(-14deg) scale(1.08); }
  93% { transform: rotate(10deg); }
  97% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}
#ict-chat-btn::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid #fff;
}
#ict-chat-btn.seen::after, #ict-chat-btn.open::after { display: none; }

.chat-teaser {
  position: fixed;
  right: 98px;
  bottom: 30px;
  z-index: 3499;
  max-width: 250px;
  background: #fff;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 18px 46px rgba(9, 20, 14, 0.25);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.chat-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
.chat-teaser-open {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
  padding: 13px 34px 13px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
}
.chat-teaser-x {
  appearance: none;
  border: 0;
  background: var(--grey-bg);
  cursor: pointer;
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--grey-text);
  transition: background 0.2s ease, color 0.2s ease;
}
.chat-teaser-x:hover { background: var(--green); color: #fff; }

html[dir="rtl"] .chat-teaser { right: auto; left: 98px; border-radius: 14px 14px 14px 4px; transform-origin: bottom left; }
html[dir="rtl"] .chat-teaser-open { text-align: right; padding: 13px 16px 13px 34px; }
html[dir="rtl"] .chat-teaser-x { right: auto; left: 7px; }
html[dir="rtl"] .chat-fab-badge { right: auto; left: -3px; }
html[dir="rtl"] #ict-chat-btn::after { right: auto; left: 1px; }

/* le chat s'efface quand le menu mobile est ouvert */
body.nav-open #ict-chat-btn, body.nav-open .chat-teaser {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 560px) {
  #ict-chat-btn { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  #ict-chat-btn img { width: 40px; }
  .chat-teaser { right: 82px; bottom: 20px; max-width: calc(100vw - 110px); }
  html[dir="rtl"] .chat-teaser { left: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-fab-badge { animation: none; }
  .chat-teaser { transition: none; }
}

/* — Phrase d'introduction des bandeaux de page : pleine ligne, sans coupure — */
.page-hero .lead {
  max-width: none;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}
html[dir="rtl"] .page-hero .lead { text-align: right; }

/* — Filigrane rotatif : présence renforcée — */
.watermark.spin { opacity: 0.12; }
.section-dark .watermark.spin,
.section-carbon .watermark.spin,
.cta-band .watermark.spin,
.diagonal-band .watermark.spin,
.site-footer .watermark.spin { opacity: 0.085; }

/* — Filigrane : rotation 3D de 180° (axe vertical) au lieu du 360° à plat — */
@keyframes wm-flip3d {
  from { transform: translate(-50%, -50%) perspective(1100px) rotateY(0deg); }
  to   { transform: translate(-50%, -50%) perspective(1100px) rotateY(180deg); }
}
.watermark.spin {
  animation: wm-flip3d 9s ease-in-out infinite alternate;
  backface-visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .watermark.spin { animation: none; }
}

/* — Mur de partenaires : logos seuls, hauteur uniforme — */
.logo-card { min-height: 128px; }

/* — Titres : lignes équilibrées (fini le mot isolé en début de titre) — */
.hero h1, .page-hero h1, .section-head h2, .cta-band h2 { text-wrap: balance; }

/* — Expertises : carte de champ active — */
.champ-link.active {
  border-color: rgba(23, 111, 64, 0.55);
  box-shadow: 0 1px 0 rgba(23, 111, 64, 0.12), 0 18px 42px rgba(9, 20, 14, 0.12);
}
.champ-link.active h3 { color: var(--green-deep); }

/* — Partenaires : logos en couleurs en permanence — */
.logo-card img { filter: none; opacity: 1; }
.part-wordmark .part-mark { color: var(--green-deep); opacity: 1; }

/* — Pied de page sans colonne de marque : 3 colonnes équilibrées — */
.footer-main { grid-template-columns: 1fr 1fr 1.4fr; }
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* ============================================================== */
/* Hero cinématique plein écran (format Turner)                    */
/* ============================================================== */

.hero-cinema {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 920px);
  overflow: hidden;
  background: var(--carbon);
}
.hero-cinema .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-cinema .hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9, 20, 14, 0.82) 0%, rgba(9, 20, 14, 0.35) 42%, rgba(9, 20, 14, 0.18) 100%),
    linear-gradient(100deg, rgba(9, 20, 14, 0.55) 0%, transparent 55%);
  pointer-events: none;
}
.hero-cinema .container { position: relative; z-index: 2; }
.hero-cinema .hero-inner { max-width: 780px; padding: 140px 0 84px; }
.hero-cinema h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 18px 0 14px;
}
.hero-cinema h1 em { font-style: normal; color: var(--yellow); }
.hero-cinema .hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero-cinema .hero-text {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 16px 0 30px;
  text-align: left;
  -webkit-hyphens: none;
  hyphens: none;
}
.hero-cinema .btn-outline { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.hero-cinema .btn-outline:hover { background: #fff; color: var(--carbon); }
.hero-cinema .hero-road { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }

@media (max-width: 760px) {
  .hero-cinema { min-height: 78vh; }
  .hero-cinema .hero-inner { padding: 110px 0 64px; }
}

/* — Transitions entre onglets : fondu rapide, fluide et élégant — */
#page-veil {
  transition: opacity 0.26s ease-out;
}
#page-veil.v-left, #page-veil.v-right, #page-veil.v-up, #page-veil.v-down,
#page-veil.v-split, #page-veil.v-circle, #page-veil.v-diag, #page-veil.v-fade {
  transform: none;
  clip-path: none;
  opacity: 0;
}
#page-veil.active { opacity: 1; }
#page-veil img { transform: scale(0.96); transition: transform 0.3s ease-out; opacity: 0.14; }
#page-veil.active img { transform: scale(1); }

/* — Transition sans voile : le contenu s'estompe, l'en-tête reste — */
main, .site-footer { transition: opacity 0.22s ease; }
body.page-leaving main, body.page-leaving .site-footer { opacity: 0; }
#page-veil { display: none !important; }

/* ============================================================== */
/* Sous-menu « À propos » (Partenaires, Engagement)               */
/* ============================================================== */

.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item.has-sub > a svg { transition: transform 0.25s var(--ease-out); }
.nav-item.has-sub:hover > a svg,
.nav-item.has-sub:focus-within > a svg { transform: rotate(180deg); }

/* pont invisible pour garder le survol entre le lien et le menu */
.nav-item.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }

.sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(9, 20, 14, 0.16);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.26s var(--ease-out), visibility 0.22s;
  z-index: 1200;
}
.nav-item.has-sub:hover .sub-menu,
.nav-item.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.main-nav .sub-menu a { display: block; padding: 11px 16px; border-radius: 8px; white-space: nowrap; }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover { background: var(--grey-bg); color: var(--green-deep); }

@media (max-width: 1140px) {
  .nav-item { display: block; position: static; }
  .nav-item.has-sub::after { display: none; }
  .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sub-menu, .nav-item.has-sub > a svg { transition: none; }
}

/* ancres des blocs fusionnés dans À propos */
#engagement, #partenaires { scroll-margin-top: 88px; }

/* bandeau réalisations à 3 colonnes : passage en 1 colonne sur mobile */
@media (max-width: 700px) {
  .stats-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}

/* ============================================================== */
/* Photo du directeur en 3D interactive                            */
/* ============================================================== */

.director-photo {
  margin: 0 0 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(9, 20, 14, 0.35);
  max-width: 340px;
}
.director-photo img { width: 100%; display: block; }

.tilt3d {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  will-change: transform;
  animation: tiltFloat 7s ease-in-out infinite;
  position: relative;
}
.tilt3d.tilting { animation: none; transition: transform 0.08s linear, box-shadow 0.3s ease; }
.tilt3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.tilt3d:hover::after { opacity: 1; }
.tilt3d:hover { box-shadow: 0 34px 70px rgba(9, 20, 14, 0.45); }

@keyframes tiltFloat {
  0%, 100% { transform: perspective(900px) rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(4deg) rotateX(-2deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .tilt3d { animation: none; transition: none; }
}

/* — Carte actualité vidéo — */
.act-video { position: relative; background: #0a140e; }
.act-video video { width: 100%; aspect-ratio: 1 / 1; max-height: 420px; display: block; object-fit: cover; background: #0a140e; }
.act-card-video .act-tag { pointer-events: none; }

/* — Section reportage vidéo grand format — */
.video-feature .section-head.center { margin-inline: auto; text-align: center; }
.video-feature .section-head.center .route-line { margin-inline: auto; }
.video-stage {
  margin: 0 auto;
  max-width: 860px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.video-stage video { width: 100%; display: block; background: #000; }

/* — Panneau directeur : carte photo réduite, texte à droite de la photo — */
.director-photo { max-width: 300px; }
@media (max-width: 900px) and (min-width: 641px) {
  .director-panel {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 36px;
  }
  .director-panel .director-photo { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .director-panel h3 { grid-column: 2; grid-row: 1; margin-top: 6px; }
  .director-panel .role { grid-column: 2; grid-row: 2; }
  .director-panel .org { grid-column: 2; grid-row: 3; align-self: start; }
}

/* — Citation du directeur : guillemet fermant symétrique du guillemet ouvrant — */
.director-quote blockquote::after {
  content: "”";
  display: block;
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 800;
  line-height: 0.55;
  color: rgba(0, 122, 61, 0.14);
  text-align: right;
  margin: 14px 0 -34px;
}

/* — Filigranes : vrai logo aux couleurs d'origine, bien visibles, texte lisible — */
.watermark { opacity: 0.26; }
.page-hero .watermark { opacity: 0.3; }
.director-panel .watermark { opacity: 0.32; }
.cta-band .watermark { opacity: 0.3; }
.site-footer .watermark { opacity: 0.26; }
.watermark.spin { opacity: 0.3; }
.section-dark .watermark.spin,
.section-carbon .watermark.spin,
.cta-band .watermark.spin,
.diagonal-band .watermark.spin,
.site-footer .watermark.spin { opacity: 0.36; }

/* — Les filigranes ne débordent jamais de leur section (y compris en 3D) — */
:is(section, footer, div):has(> img.watermark) {
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
}
