/* =====================================================================
   Nexergy Afrique — site vitrine
   Palette inchangée (bleu nuit, bleu nuit profond, sarcelle, vert du logo).
   Une seule famille de caractères, Archivo, dont on fait varier la chasse :
   titres élargis (allure de signalétique d'infrastructure), texte courant
   en largeur normale.
   ===================================================================== */

:root {
  --deep: #081428;
  --navy: #0d1f3c;
  --teal: #12b3a6;
  --teal-dark: #0f8f85;
  --green: #3fae49;

  --text: #e8edf1;
  --muted: #a3b0ba;
  --faint: #808c99;
  --line: rgba(232, 237, 241, 0.14);
  --line-strong: rgba(232, 237, 241, 0.28);

  --paper: #ffffff;
  --paper-line: #e3e8ec;
  --ink: #0d1f3c;
  --ink-muted: rgba(13, 31, 60, 0.7);

  /* "Inter" n'est chargée que pour le caractère « & » (voir base.html) ;
     tout le reste du texte retombe sur Archivo. */
  --font: "Inter", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
strong { font-weight: 600; }

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.h-display {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-stretch: 115%;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  font-stretch: 110%;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.kicker {
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ---------- Liens et boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--deep); }
.btn-primary:hover { background: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--teal); color: var(--deep); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* Lien souligné : le trait part d'un court tiret et s'étire au survol. */
.link-line,
.link-quiet {
  display: inline-block;
  font-weight: 600;
  padding-bottom: 5px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 28px 1.5px;
  transition: background-size 0.4s var(--ease), color 0.25s ease;
}
.link-line:hover,
.link-quiet:hover { background-size: 100% 1.5px; color: var(--teal); }
.link-quiet { color: var(--text); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  color: var(--ink);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--paper-line), 0 10px 30px rgba(8, 20, 40, 0.12); }
.site-header-inner {
  max-width: 1240px;
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.site-logo-word { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.site-logo-word.site-logo-green { color: var(--green); }
.site-logo-tag { font-size: 0.55rem; color: var(--ink-muted); margin-top: 2px; }
.site-logo-img { height: 46px; width: auto; max-width: 240px; object-fit: contain; }

.site-nav { display: flex; gap: 34px; margin-inline: auto; }
.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--teal-dark); }
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--teal-dark); }
.site-nav .nav-naos { display: none; }

.site-header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230d1f3c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 9px 6px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  padding: 9px 28px 9px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lang-switch:hover { border-color: var(--ink); }
.lang-switch option { color: var(--ink); background: var(--paper); }

.btn-naos {
  background: var(--navy);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease);
}
.btn-naos:hover { background: var(--teal-dark); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .site-header-inner { gap: 16px; }
  .site-logo-img { height: 38px; }
  .site-header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 30px rgba(8, 20, 40, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease);
  }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--paper-line); font-size: 1.05rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-naos { display: block; color: var(--teal-dark); border-bottom: 0; }
}
@media (max-width: 560px) {
  .btn-naos { display: none; }
}

/* ---------- Bandes de section ---------- */
.band { position: relative; padding-block: clamp(80px, 10vw, 136px); }
.band-deep { background: var(--deep); }
.band-navy { background: var(--navy); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-paper .kicker { color: var(--teal-dark); }

/* En-tête de section en deux colonnes : titre à gauche, introduction à droite,
   alignés sur leur ligne de base basse. */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 76px);
}
.split-intro { color: var(--muted); font-size: 1.06rem; max-width: 42ch; }
.band-paper .split-intro { color: var(--ink-muted); }
@media (max-width: 860px) {
  .split-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Médias d'arrière-plan (vidéos) ---------- */
.hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-video[data-error] { display: none; }

/* ---------- Hero d'accueil ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 20, 40, 0.94) 0%, rgba(8, 20, 40, 0.55) 48%, rgba(8, 20, 40, 0.25) 100%),
    linear-gradient(to right, rgba(8, 20, 40, 0.55) 0%, rgba(8, 20, 40, 0) 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(40px, 6vh, 64px);
}
.hero-place {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(232, 237, 241, 0.78);
  margin-bottom: 22px;
}
.hero-place span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: currentColor;
  opacity: 0.5;
  margin-right: 14px;
  vertical-align: -0.1em;
}
.hero-title {
  font-size: clamp(3rem, 8.2vw, 7.4rem);
  font-stretch: 118%;
  font-weight: 620;
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: end;
  margin-top: clamp(36px, 5vh, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(232, 237, 241, 0.22);
}
.hero-lead { font-size: 1.14rem; color: rgba(232, 237, 241, 0.88); max-width: 44ch; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-signature { margin-top: 22px; font-size: 0.95rem; color: rgba(232, 237, 241, 0.66); }
.hero-signature strong { color: var(--text); }

@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
}

/* Moment d'entrée de la page : les deux lignes du titre montent depuis leur
   masque, puis le reste apparaît. C'est la seule animation automatique. */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.js .hero-title .line > span { animation: rise 1.1s var(--ease) both; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.js .hero-place,
.js .hero-foot,
.js .hero-signature { animation: appear 0.9s ease 0.55s both; }

/* ---------- Démarche : la ligne électrique ---------- */
.process .split-head { margin-bottom: clamp(56px, 7vw, 96px); }
.power-line {
  --dot: 60px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: none;
}
.power-line::before,
.power-line::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2);
  left: 10%;
  height: 1px;
}
.power-line::before { right: 10%; background: var(--line-strong); }
.power-line::after {
  width: calc(80% * var(--progress));
  height: 2px;
  margin-top: -0.5px;
  background: var(--teal);
  transition: width 0.15s linear;
}
.node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.node-dot {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--deep);
  border: 1px solid var(--line-strong);
  color: var(--faint);
  transition: border-color 0.5s ease, color 0.5s ease, background-color 0.5s ease;
}
.node-dot svg { width: 24px; height: 24px; }
.node-index { margin-top: 22px; font-size: 0.85rem; font-weight: 600; color: var(--faint); transition: color 0.5s ease; }
.node-label {
  margin-top: 4px;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-stretch: 112%;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.5s ease;
}
.node.is-lit .node-dot { border-color: var(--teal); color: var(--teal); background: var(--navy); }
.node.is-lit .node-index { color: var(--teal); }
.node.is-lit .node-label { color: var(--text); }

@media (max-width: 760px) {
  .power-line { --dot: 52px; grid-template-columns: 1fr; gap: 28px; }
  .power-line::before,
  .power-line::after {
    top: calc(var(--dot) / 2);
    left: calc(var(--dot) / 2);
    right: auto;
    width: 1px;
  }
  .power-line::before { height: auto; bottom: calc(var(--dot) / 2); }
  .power-line::after {
    width: 2px;
    margin: 0 0 0 -0.5px;
    height: calc((100% - var(--dot)) * var(--progress));
    transition: height 0.15s linear;
  }
  .node { flex-direction: row; text-align: left; gap: 18px; }
  .node-index { margin: 0; min-width: 1ch; }
  .node-label { margin: 0; }
}

/* ---------- Problèmes résolus ---------- */
.problems-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.problem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.problem-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}
.problem-ic { flex-shrink: 0; color: var(--teal); display: inline-flex; }
.problem-ic svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .problems-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .problem-list { grid-template-columns: 1fr; }
}

/* ---------- Domaines d'expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 36px; }
.expertise { display: flex; flex-direction: column; align-items: flex-start; }
.expertise .link-line { margin-top: auto; }
.expertise-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 26px;
  overflow: hidden;
}
.expertise-figure img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.8s var(--ease);
}
.expertise:hover .expertise-figure img { transform: scale(1.04); }

/* Arrivée des domaines : chaque illustration monte depuis le bas en
   grandissant, l'une après l'autre, puis son texte suit. Les délais sont
   posés seulement à l'arrivée pour ne pas retarder le zoom au survol. */
.js .expertise-grid.reveal-stagger > * { opacity: 1; transform: none; }
.js .expertise-grid .expertise-figure {
  opacity: 0;
  transform: translateY(90px) scale(0.8);
  filter: blur(8px);
  transition: opacity 1s ease, transform 1.3s var(--ease), filter 1s ease;
}
.js .expertise-grid .expertise > :not(.expertise-figure) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}
.js .expertise-grid.in-view .expertise-figure,
.js .expertise-grid.in-view .expertise > :not(.expertise-figure) {
  opacity: 1;
  transform: none;
  filter: none;
}
.js .expertise-grid.in-view .expertise > :not(.expertise-figure) { transition-delay: 0.45s; }
.js .expertise-grid.in-view .expertise:nth-child(2) .expertise-figure { transition-delay: 0.15s; }
.js .expertise-grid.in-view .expertise:nth-child(2) > :not(.expertise-figure) { transition-delay: 0.6s; }
.js .expertise-grid.in-view .expertise:nth-child(3) .expertise-figure { transition-delay: 0.3s; }
.js .expertise-grid.in-view .expertise:nth-child(3) > :not(.expertise-figure) { transition-delay: 0.75s; }
.js .expertise-grid.in-view .expertise:nth-child(4) .expertise-figure { transition-delay: 0.45s; }
.js .expertise-grid.in-view .expertise:nth-child(4) > :not(.expertise-figure) { transition-delay: 0.9s; }
@media (prefers-reduced-motion: reduce) {
  .js .expertise-grid .expertise-figure,
  .js .expertise-grid .expertise > * { opacity: 1; transform: none; filter: none; }
}
.expertise h3 { font-size: 1.2rem; font-stretch: 108%; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.expertise p { color: var(--ink-muted); font-size: 0.98rem; margin-bottom: 18px; }
.expertise .link-line { color: var(--ink); }
.expertise .link-line:hover { color: var(--teal-dark); }
@media (max-width: 1080px) {
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ---------- Pourquoi Nexergy Afrique ---------- */
.band-video { overflow: hidden; }
.why-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 20, 40, 0.95) 0%, rgba(8, 20, 40, 0.84) 55%, rgba(8, 20, 40, 0.66) 100%);
}
.band-video .wrap { position: relative; z-index: 1; }
.why-head .h-display { max-width: 15ch; }
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(56px, 7vw, 88px);
}
.principle { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.principle h3 { font-size: 1.35rem; font-stretch: 110%; font-weight: 600; margin-bottom: 12px; }
.principle p { color: var(--muted); }

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(64px, 8vw, 104px);
}
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.figures dt { color: var(--muted); font-size: 0.95rem; }
.stat-num {
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
  font-stretch: 116%;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* ---------- Savoir-faire (équipe) ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--navy); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.person:hover .person-photo img { transform: scale(1.04); }
.person figcaption { padding-top: 20px; }
.person h3 { font-size: 1.12rem; font-stretch: 108%; font-weight: 600; margin-bottom: 6px; }
.person p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 1080px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Vidéo de présentation ---------- */
.video-frame { border-radius: 6px; overflow: hidden; background: var(--deep); }
.video-frame video { width: 100%; }

/* ---------- Partenaires ---------- */
.partner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 24px;
}
.partner + .partner { border-left: 1px solid var(--paper-line); }
.partner img {
  max-height: 58px;
  max-width: 190px;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.partner:hover img,
.partner:focus-visible img { transform: scale(1.1); }
@media (max-width: 640px) {
  .partner-row { grid-template-columns: 1fr; }
  .partner + .partner { border-left: 0; border-top: 1px solid var(--paper-line); }
  .partner { min-height: 112px; }
}

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(88px, 11vw, 140px);
  background: var(--navy) url("/site-assets/img/cta-band.jpg") center / cover no-repeat;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 20, 40, 0.93) 0%, rgba(8, 20, 40, 0.74) 50%, rgba(8, 20, 40, 0.4) 100%);
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  flex-wrap: wrap;
}
.cta-inner .h-section { max-width: 18ch; margin-bottom: 14px; }
.cta-inner p { color: rgba(232, 237, 241, 0.84); max-width: 48ch; }

/* ---------- Bannières des pages intérieures ---------- */
.page-hero {
  position: relative;
  min-height: clamp(380px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.page-hero-image {
  background: var(--navy) url("/site-assets/img/solutions/hero-solutions.jpg") center / cover no-repeat;
}
.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 20, 40, 0.95) 0%, rgba(8, 20, 40, 0.5) 60%, rgba(8, 20, 40, 0.3) 100%),
    linear-gradient(to right, rgba(8, 20, 40, 0.6) 0%, rgba(8, 20, 40, 0) 70%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 120px clamp(48px, 7vh, 72px);
}
.page-hero-lead { margin-top: 22px; font-size: 1.12rem; color: rgba(232, 237, 241, 0.86); max-width: 54ch; }
.js .page-hero-content > * { animation: appear 0.9s ease both; }
.js .page-hero-content > .h-display { animation-delay: 0.08s; }
.js .page-hero-content > .page-hero-lead { animation-delay: 0.18s; }

/* ---------- Page Solutions : offres en rangées alternées ---------- */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.offer + .offer { margin-top: clamp(72px, 9vw, 128px); }
.offer:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.offer:nth-child(even) .offer-media { order: 2; }
/* Les visuels des offres sont des affiches avec du texte : on les montre
   en entier, sans recadrage. */
.offer-media {
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy);
  cursor: zoom-in;
}
.offer-media img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.offer-media:hover img { transform: scale(1.03); }
.offer-text .h-section { margin-bottom: 20px; }
.offer-text p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.offer-text strong { color: var(--text); }
@media (max-width: 860px) {
  .offer,
  .offer:nth-child(even) { grid-template-columns: 1fr; }
  .offer:nth-child(even) .offer-media { order: 0; }
}

/* ---------- Réalisations et actualités ---------- */
.partners-intro { max-width: 22ch; margin-bottom: clamp(48px, 6vw, 72px); }
.partner-group + .partner-group { margin-top: clamp(80px, 9vw, 120px); }
.partner-group-head {
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.logo-plate { display: inline-flex; background: var(--paper); padding: 10px 16px; border-radius: 4px; }
.logo-plate img { height: 32px; width: auto; }

.project-grid,
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
.project-media,
.news-media {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy);
}
.project-media { aspect-ratio: 4 / 3; cursor: zoom-in; }
.news-media { aspect-ratio: 16 / 10; }
.project-media img,
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-media:hover img,
.news-media:hover img { transform: scale(1.04); }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 20px 0 10px;
  font-size: 0.86rem;
  color: var(--faint);
}
.tag { color: var(--teal); font-weight: 600; }
.project h3,
.news h3 { font-size: 1.2rem; font-stretch: 106%; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.project h3 a,
.news h3 a {
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 0 1.5px;
  transition: background-size 0.45s var(--ease), color 0.25s ease;
}
.project h3 a:hover,
.news h3 a:hover { background-size: 100% 1.5px; color: var(--teal); }
.project p,
.news p { color: var(--muted); font-size: 0.97rem; }
.news .link-line { margin-top: 16px; color: var(--text); }

@media (max-width: 1080px) {
  .project-grid,
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .project-grid,
  .news-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.field { margin-bottom: 30px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 1px 0 var(--teal); }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-status { font-size: 0.95rem; }
.form-status.success { color: var(--teal); }
.form-status.error { color: #f08a7e; }

.contact-card { background: var(--navy); border-radius: 6px; padding: clamp(28px, 4vw, 40px); }
.contact-card-title { font-size: 1.35rem; font-stretch: 110%; font-weight: 600; margin-bottom: 8px; }
.contact-lines li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-lines .ic { color: var(--teal); flex-shrink: 0; display: inline-flex; margin-top: 3px; }
.contact-lines .ic svg { width: 19px; height: 19px; }
.contact-lines a { transition: color 0.2s ease; }
.contact-lines a:hover { color: var(--teal); }
.contact-access { margin-top: 24px; display: grid; gap: 10px; color: var(--muted); font-size: 0.97rem; }
.contact-access a { color: var(--text) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.contact-access a:hover { color: var(--teal) !important; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--muted); }
.site-footer-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 96px) var(--gutter) 56px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo-img { height: 44px; background: var(--paper); padding: 6px 12px; border-radius: 4px; }
.footer-brand .site-logo-word { display: block; color: var(--text); }
.footer-brand .site-logo-green { color: var(--green); }
.footer-brand p { margin-top: 18px; font-size: 0.97rem; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.97rem; }
.footer-col h4 { color: var(--text); font-size: 0.97rem; font-weight: 600; margin-bottom: 6px; }
.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--teal); }
.footer-motto {
  max-width: 1240px;
  margin-inline: auto;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-stretch: 114%;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.footer-motto span:nth-child(2) { color: var(--muted); }
.footer-motto span:nth-child(3) { color: var(--faint); }
.footer-bottom {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 var(--gutter) 36px;
  font-size: 0.88rem;
  color: var(--faint);
}
@media (max-width: 860px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Visionneuse d'image ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 56px);
  background: rgba(8, 20, 40, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  transform: scale(0.97);
  transition: transform 0.4s var(--ease);
}
.lightbox-overlay.is-open .lightbox-img { transform: none; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover { background: rgba(232, 237, 241, 0.12); }

/* ---------- Apparition au défilement ----------
   Discrète : un fondu court avec un léger déplacement, une seule fois.
   Uniquement quand le JavaScript est actif, pour que le contenu reste visible
   sinon. */
.js .reveal,
.js .reveal-stagger > *,
.js .reveal-rotate > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.in-view,
.js .reveal-stagger.in-view > *,
.js .reveal-rotate.in-view > * { opacity: 1; transform: none; }
.js .reveal-stagger.in-view > :nth-child(2) { transition-delay: 0.08s; }
.js .reveal-stagger.in-view > :nth-child(3) { transition-delay: 0.16s; }
.js .reveal-stagger.in-view > :nth-child(4) { transition-delay: 0.24s; }
.js .reveal-stagger.in-view > :nth-child(n+5) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal,
  .js .reveal-stagger > *,
  .js .reveal-rotate > * { opacity: 1; transform: none; }
  .hero-video { display: none; }
}
