/* =========================================================================
   SM-O-RM — Transport & logistique internationale
   Direction artistique : typographie monumentale, ciels atmosphériques,
   palette quasi monochrome. Aucun arrondi, aucune ombre portée.
   ========================================================================= */

:root {
  /* Couleurs */
  --marine: #0d1a30;
  --marine-rgb: 13, 26, 48;
  --night-rgb: 5, 10, 20;
  --jetstream: #001489;
  --onyx: #000000;
  --cloud: #ffffff;

  --muted: rgba(0, 0, 0, 0.62);
  --muted-light: rgba(255, 255, 255, 0.72);
  --rule: rgba(0, 0, 0, 1);
  --rule-light: rgba(255, 255, 255, 0.28);
  --accent: var(--jetstream);

  /* Typographie */
  --font-display: "Inter Tight", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --text-body: 18px;
  --text-heading: clamp(36px, 3.9vw, 60px);
  --text-hero: clamp(52px, 8.6vw, 156px);

  /* Espacements */
  --gutter: clamp(16px, 2.8vw, 40px);
  --section: clamp(72px, 8.5vw, 132px);
  --nav-h: 76px;

  /* Courbes */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--onyx);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.3;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, picture, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit; color: inherit; letter-spacing: inherit;
  background: none; border: 0; padding: 0; margin: 0;
  border-radius: 0; cursor: pointer;
}
input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; border-radius: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, address, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
sup { vertical-align: baseline; }

::selection { background: var(--jetstream); color: var(--cloud); }
:focus-visible { outline: 2px solid var(--jetstream); outline-offset: 4px; }
[data-theme="dark"] :focus-visible { outline-color: var(--cloud); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------------------------------------------------------------- Surfaces */

/* Sections sur fond noir : textes, filets et accents s'inversent */
[data-theme="dark"] {
  --muted: rgba(255, 255, 255, 0.66);
  --rule: rgba(255, 255, 255, 0.78);
  --accent: var(--cloud);
}
.surface-onyx {
  background: var(--onyx);
  color: var(--cloud);
}

/* ---------------------------------------------------------------- Utilitaires */

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

.skip {
  position: fixed; z-index: 300; left: var(--gutter); top: 12px;
  padding: 12px 18px; background: var(--cloud); color: var(--onyx);
  border: 1.5px solid var(--jetstream);
  transform: translateY(-200%);
  transition: transform 0.4s var(--ease-out);
}
.skip:focus { transform: none; }

/* Masques de lignes pour les révélations de texte */
.line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0 0.14em;
  margin: -0.06em 0 -0.14em;
}
.line__in { display: block; }

.ch { display: inline-block; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.025em;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 6.2vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.u-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.6s var(--ease-out);
}
.u-link:hover { background-size: 100% 1px; }

/* Lien à effet « roulement » : le texte glisse vers le haut et se remplace */
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.25;
}
.roll > span {
  position: relative;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.roll > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  white-space: nowrap;
}
.roll:hover > span,
.roll:focus-visible > span { transform: translateY(-100%); }

/* ---------------------------------------------------------------- Boutons fantômes */

.btn {
  --b: var(--jetstream);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px 15px 24px;
  border: 1.5px solid var(--b);
  color: var(--onyx);
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.5s var(--ease-out);
}
.btn:hover {
  color: var(--jetstream);
  box-shadow: inset 0 0 0 1px var(--b);
}
.btn--sm { padding: 10px 14px 10px 18px; font-size: 16px; }

.btn--light,
[data-theme="dark"] .btn {
  --b: rgba(255, 255, 255, 0.7);
  color: var(--cloud);
}
.btn--light:hover,
[data-theme="dark"] .btn:hover {
  --b: var(--cloud);
  color: var(--cloud);
}

/* Bouton principal plein : l'action « Demander un devis » mise en avant */
.btn--primary {
  --b: var(--jetstream);
  background: var(--jetstream);
  color: var(--cloud);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  --b: #1c3bd6;
  background: #1c3bd6;
  color: var(--cloud);
  box-shadow: none;
}
.btn--lg {
  gap: 22px;
  padding: 22px 26px 22px 32px;
  font-size: 19px;
}

.btn__label {
  position: relative;
  display: block;
  overflow: hidden;
}
.btn__label > span {
  position: relative;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.btn__label > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}
.btn:hover .btn__label > span { transform: translateY(-100%); }

.btn__arrow {
  position: relative;
  width: 1em;
  height: 1.25em;
  overflow: hidden;
  flex: none;
}
.btn__arrow i {
  position: absolute;
  inset: 0;
  font-style: normal;
  transition: transform 0.6s var(--ease-out);
}
.btn__arrow i:last-child { transform: translateX(-130%); }
.btn:hover .btn__arrow i:first-child { transform: translateX(130%); }
.btn:hover .btn__arrow i:last-child { transform: translateX(0); }

/* ---------------------------------------------------------------- Préchargement */

.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px var(--gutter) 30px;
  background: var(--marine);
  color: var(--cloud);
  animation: loader-failsafe 0.6s 9s forwards;
}
.no-anim .loader { display: none !important; }

@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

.loader__top,
.loader__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-size: 15px;
}
.loader__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21vw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  padding-top: 0.04em;
}
.loader__bar {
  position: relative;
  flex: 1;
  height: 1px;
  margin-bottom: 0.9em;
  background: var(--rule-light);
}
.loader__bar i {
  position: absolute;
  inset: 0;
  background: var(--cloud);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.loader__count {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 9vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.loader__num { display: block; padding-top: 0.04em; }

/* Texte ajusté à la largeur de son conteneur */
.fit { display: inline-block; white-space: nowrap; }

/* ---------------------------------------------------------------- Progression */

.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  height: 2px;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--jetstream);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.menu-open .progress { opacity: 0; }

/* ---------------------------------------------------------------- Navigation */

.nav {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  top: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  color: var(--cloud);
  transition: transform 0.8s var(--ease-out), color 0.5s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: opacity 0.5s ease, background-color 0.5s ease;
}
.nav[data-theme="dark"]::before { background: rgba(var(--marine-rgb), 0.5); }
.nav[data-surface="onyx"]::before { background: rgba(0, 0, 0, 0.55); }
.nav[data-theme="light"] { color: var(--onyx); }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }

.menu-open .nav { color: var(--cloud); transform: none; }
.menu-open .nav::before { opacity: 0; }
.menu-open .nav .btn { --b: rgba(255, 255, 255, 0.7); color: var(--cloud); }

/* Nom seul, sans symbole ; au survol, le texte « roule » comme les liens */
.nav__logo {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 17px;
}

.nav__burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-right: -10px;
}
.nav__burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.7s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 26px; }
.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- Menu mobile */

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  background: linear-gradient(180deg, var(--marine) 0%, #1a2d50 100%);
  color: var(--cloud);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu-open.no-anim .menu { visibility: visible; clip-path: none; }

.menu__nav { display: grid; gap: 4px; }
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(44px, 11vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.menu__link em {
  display: inline-block;
  width: 2.6em;
  font-family: var(--font-text);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: top;
  margin-top: 0.6em;
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- Hero */

/* Une seule photo, un titre centré, un filet : sobre et premium */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--marine);
  color: var(--cloud);
}
.hero__media {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__slide picture,
.hero__slide img {
  width: 100%;
  height: 100%;
}
.hero__slide img {
  object-fit: cover;
  object-position: 50% 35%;
  transform: scale(1.04);
}
/* Voile bleu nuit : plus dense sur les bords et sous le texte */
.hero__veil {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 38%, rgba(var(--night-rgb), 0) 45%, rgba(var(--night-rgb), 0.5) 100%),
    linear-gradient(180deg, rgba(var(--marine-rgb), 0.6) 0%, rgba(var(--marine-rgb), 0.15) 22%, rgba(var(--marine-rgb), 0.2) 45%, rgba(var(--night-rgb), 0.82) 100%);
}

.hero__content {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(44px, 8.5vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__eyebrow {
  margin-bottom: clamp(18px, 2.6vh, 30px);
  padding-left: 0.26em; /* compense l'espacement après la dernière lettre */
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, min(6.4vw, 10.5vh), 116px); /* écrans bas : le titre se resserre */
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero__title .line__in { padding-left: 0.05em; }
.hero__rule {
  display: block;
  width: clamp(120px, 13vw, 220px);
  height: 1px;
  margin: clamp(26px, 4.4vh, 46px) 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0));
}
.hero__lead {
  max-width: 50ch;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.64);
}
.hero__lead em {
  font-style: normal;
  color: var(--cloud);
}

/* Indication de défilement : mot vertical et fil animé, en bas à gauche */
.hero__scroll {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero__scroll > span:first-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 80px;
  overflow: hidden;
  background: var(--rule-light);
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cloud);
  animation: scroll-line 2.4s var(--ease-io) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------------------------------------------------------------- Manifeste */

.manifesto {
  padding: var(--section) var(--gutter);
  background: var(--cloud);
}
.manifesto__inner { position: relative; }
.manifesto__label {
  position: absolute;
  left: 0;
  top: 0.75em;
}
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.3vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-indent: clamp(0px, 22vw, 360px);
}
.manifesto__text .w { text-indent: 0; }
.manifesto__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: end;
  margin-top: clamp(56px, 7vw, 110px);
  padding-left: clamp(0px, 22vw, 360px);
}
.manifesto__foot p {
  max-width: 44ch;
  color: var(--muted);
}
.manifesto__cta {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.manifesto__foot .manifesto__cta-title {
  max-width: none;
  color: var(--onyx);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.manifesto__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.3s;
}
.manifesto__more:hover { color: var(--onyx); }
.manifesto__more > span[aria-hidden] { transition: transform 0.6s var(--ease-out); }
.manifesto__more:hover > span[aria-hidden] { transform: translateY(3px); }

/* ---------------------------------------------------------------- Modes de transport */

.modes {
  position: relative;
  background: rgb(var(--night-rgb));
  color: var(--cloud);
}
.modes__track {
  display: flex;
  flex-direction: column;
}
.modes__intro {
  position: relative;
  z-index: 0; /* contexte d'empilement : la mer reste sous le texte */
  display: grid;
  gap: 48px;
  padding: var(--section) var(--gutter);
  background: linear-gradient(180deg, rgb(var(--night-rgb)) 0%, #0f2238 100%); /* repli si l'image ne charge pas */
}

/* Mer sous l'introduction. Mobile : simple texture de mer calme. */
.modes__sea {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: rgb(var(--night-rgb));
}
.modes:not(.modes--h) .modes__sea {
  background: rgb(var(--night-rgb)) url("../img/mer-calme.jpg") 50% 50% / cover no-repeat;
}
.modes__sea::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgb(var(--night-rgb)) 0%,
      rgba(var(--night-rgb), 0.45) 22%,
      rgba(var(--night-rgb), 0.12) 50%,
      rgba(var(--night-rgb), 0.35) 80%,
      rgba(var(--night-rgb), 0.8) 100%);
}
.modes__sea-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 58%;
  transform-origin: 30% 45%;
}

/* Ordinateur : la même photo s'étend sous l'introduction ET le panneau Maritime,
   pour former un seul paysage marin continu. */
.modes--h .modes__sea { width: calc(100% + 100vw); }
.modes--h .modes__sea-img { display: block; will-change: transform; }
.modes--h .modes__sea::after {
  background:
    linear-gradient(180deg, rgb(var(--night-rgb)) 0%, rgba(var(--night-rgb), 0.55) 10%, rgba(var(--night-rgb), 0.18) 22%, rgba(var(--night-rgb), 0) 36%),
    linear-gradient(0deg, rgba(var(--night-rgb), 0.72) 0%, rgba(var(--night-rgb), 0.3) 26%, rgba(var(--night-rgb), 0) 52%),
    linear-gradient(90deg, rgba(var(--night-rgb), 0.38) 0%, rgba(var(--night-rgb), 0) 30%),
    radial-gradient(38% 70% at 100% 100%, rgba(var(--night-rgb), 0.45) 0%, rgba(var(--night-rgb), 0) 70%);
}
.modes--h .mode--sea .mode__media,
.modes--h .mode--sea .mode__veil { display: none; }
.modes__intro-body { display: grid; gap: 36px; }
.modes__lead { max-width: 42ch; color: var(--muted-light); }
.modes__hint {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.modes__hint span { animation: hint 1.8s var(--ease-io) infinite; }
@keyframes hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.mode {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.mode__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 1.4s var(--ease-out);
}
.mode__media img {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}
/* Réglages par photo, en variables sur la balise <img> :
   --focus : point d'intérêt (mobile), --focus-h : point d'intérêt (bureau),
   --h / --top : agrandit et remonte la photo pour dégager la zone de texte (bureau). */
.modes--h .mode__media img {
  top: var(--top, 0);
  height: var(--h, 100%);
  object-position: var(--focus-h, var(--focus, 50% 50%));
}
.mode:hover .mode__media { transform: scale(1.03); }
.mode__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--marine-rgb), 0.6) 0%, rgba(var(--marine-rgb), 0) 34%),
    radial-gradient(90% 75% at 100% 100%, rgba(var(--night-rgb), 0.5) 0%, rgba(var(--night-rgb), 0) 60%),
    linear-gradient(0deg, rgba(var(--night-rgb), 0.66) 0%, rgba(var(--night-rgb), 0.18) 40%, rgba(var(--night-rgb), 0) 62%);
}
.mode__content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  grid-template-rows: auto 1fr;
  column-gap: 40px;
  padding: calc(var(--nav-h) + 28px) var(--gutter) 56px;
}
.mode__top {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
}
.mode__index { font-weight: 600; }
.mode__count { opacity: 0.6; }
.mode__kicker { margin-left: auto; }
.mode__title {
  grid-column: 1;
  align-self: end;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.8;
  letter-spacing: -0.045em;
  white-space: nowrap;
  overflow: hidden;
  padding-top: 0.06em;
  margin-bottom: -0.04em;
}
.mode__body {
  grid-column: 2;
  align-self: end;
  display: grid;
  gap: 24px;
  justify-items: start;
}
.mode__body p { color: rgba(255, 255, 255, 0.86); }
.mode__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mode__tags li {
  padding: 6px 10px;
  border: 1px solid var(--rule-light);
  font-size: 14px;
  line-height: 1.2;
}

/* Disposition horizontale (bureau) */
.modes--h { height: 100vh; overflow: hidden; }
.modes--h .modes__track {
  flex-direction: row;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.modes--h .modes__intro {
  width: 64vw;
  height: 100%;
  align-content: space-between;
  padding: calc(var(--nav-h) + 28px) clamp(40px, 6vw, 110px) 56px var(--gutter);
}
.modes--h .modes__hint { display: inline-flex; }
.modes--h .mode {
  width: 100vw;
  height: 100%;
  min-height: 0;
}
.modes__progress {
  display: none;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 24px;
  height: 1px;
  background: var(--rule-light);
}
.modes__progress i {
  position: absolute;
  inset: 0;
  background: var(--cloud);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.modes--h .modes__progress { display: block; }

/* Écrans d'ordinateur peu hauts : on allège les panneaux pour dégager les photos */
@media (max-height: 760px) {
  .modes--h .mode__tags { display: none; }
}

/* ---------------------------------------------------------------- En-têtes de section */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 28px;
  align-items: end;
}
.section-head .label { grid-column: 1 / -1; }
.section-head .h-section { grid-column: 1 / span 7; }
.section-head__aside {
  grid-column: 9 / -1;
  max-width: 42ch;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Chiffres */

.figures { padding: var(--section) var(--gutter) calc(var(--section) * 0.7); }
.figures__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 20px;
  margin-top: clamp(64px, 8vw, 120px);
}
.figure {
  position: relative;
  padding-top: 24px;
}
.figure__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: 0 50%;
}
.figure__num {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 6.4vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figure__num sup {
  margin-left: 0.04em;
  font-size: 0.42em;
  line-height: 1;
  letter-spacing: -0.02em;
}
.figure__label {
  max-width: 22ch;
  margin-top: 18px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Bandeau défilant */

.marquee {
  padding: clamp(64px, 8vw, 120px) 0 var(--section); /* suit désormais une section blanche */
  overflow: hidden;
}
.marquee__row {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 11vw, 190px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.marquee__row--alt { color: rgba(255, 255, 255, 0.32); }
.marquee__inner {
  display: inline-flex;
  will-change: transform;
}
.marquee__unit { display: inline-flex; }
.marquee__unit i {
  font-style: normal;
  font-weight: 500;
  padding: 0 0.22em;
}

/* ---------------------------------------------------------------- Réseau */

.network {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px;
  min-height: 100vh;
  padding: var(--section) var(--gutter);
  overflow: hidden;
  background: linear-gradient(180deg, var(--marine) 0%, #081221 100%);
  color: var(--cloud);
}
.network__text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-content: start;
}
.network__lead {
  max-width: 44ch;
  color: var(--muted-light);
}
.hubs__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 14px;
  color: var(--muted-light);
}
.hubs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.hub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
  text-align: left;
}
.hub__name {
  font-size: 19px;
  transition: transform 0.6s var(--ease-out);
}
.hub__time {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-light);
  transition: color 0.4s;
}
.hub:hover .hub__name,
.hub.is-active .hub__name { transform: translateX(12px); }
.hub:hover .hub__time,
.hub.is-active .hub__time { color: var(--cloud); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.network__globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 92vh;
  justify-self: center;
}
.network__globe canvas {
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.network__globe canvas:active { cursor: grabbing; }
.network__hint {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--muted-light);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- Méthode */

.method {
  padding: var(--section) var(--gutter) 0;
  background: var(--cloud);
}
.method__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
}
.method__sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  gap: 32px;
  height: 100vh;
  height: 100svh;
  padding: var(--nav-h) 0 40px;
}
.method__visual {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  margin-top: 16px;
}
.method__counter {
  height: 1em;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(96px, 13vw, 220px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.method__digits { display: block; }
.method__digits span { display: block; height: 1em; }

.method__media {
  position: relative;
  flex: none;
  width: clamp(160px, 17vw, 280px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.method__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.method__media img:not(:first-child) { clip-path: inset(100% 0 0 0); }

.method__steps-wrap {
  position: relative;
  padding: 18vh 0 22vh 48px;
}
.method__progress {
  position: absolute;
  left: 0;
  top: 18vh;
  bottom: 22vh;
  width: 1px;
  background: rgba(0, 0, 0, 0.14);
}
.method__progress i {
  position: absolute;
  inset: 0;
  background: var(--jetstream);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.step {
  display: grid;
  gap: 18px;
  min-height: 46vh;
  align-content: center;
  opacity: 0.18;
  transition: opacity 0.7s ease;
}
.step.is-active,
.no-anim .step { opacity: 1; }
.step__num {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.step__text {
  max-width: 40ch;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Vente de conteneurs */

.ctn { padding: var(--section) var(--gutter); }

.ctn__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(56px, 7vw, 100px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.ctn__states { display: flex; gap: 8px; }
.ctn__states span {
  padding: 7px 13px;
  border: 1.5px solid var(--jetstream);
  color: var(--jetstream);
  font-size: 14px;
  line-height: 1.2;
}
.ctn__key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  color: var(--muted);
}
.ctn__key b {
  margin-right: 6px;
  color: var(--onyx);
  font-weight: 600;
}

.ctn__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 20px;
  margin-top: 40px;
}
.ctn-card {
  display: grid;
  grid-template-rows: auto 1fr; /* le corps occupe toute la hauteur de la rangée */
  gap: 22px;
}

.ctn-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e8ec;
}
.ctn-card__img {
  position: absolute;
  inset: 0;
}
.ctn-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.ctn-card__media:hover .ctn-card__img img,
.ctn-card__media:focus-visible .ctn-card__img img { transform: scale(1.07); }
.ctn-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--night-rgb), 0.55) 0%, rgba(var(--night-rgb), 0) 45%);
  pointer-events: none;
}
.ctn-card__tag {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 14px;
  padding: 7px 11px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cloud);
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.4s;
}
.ctn-card__media:hover .ctn-card__tag { background: var(--jetstream); }
.ctn-card__feet {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 8px;
  color: var(--cloud);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 4.4vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  transition: transform 0.8s var(--ease-out);
}
.ctn-card__media:hover .ctn-card__feet { transform: translateY(-6px); }

.ctn-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.ctn-card__kicker {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ctn-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.5vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.4s;
}
.ctn-card:hover .ctn-card__title { color: var(--jetstream); }
.ctn-card__desc {
  flex: 1 0 auto; /* absorbe l'écart : les caractéristiques restent alignées d'une fiche à l'autre */
  max-width: 34ch;
  font-size: 16px;
  color: var(--muted);
}
.ctn-card__specs {
  align-self: stretch;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.spec dt {
  font-size: 14px;
  color: var(--muted);
}
.spec dd {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.spec dd.spec__hi { color: var(--jetstream); } /* hauteur des High Cube : la seule cote qui change */
.spec__gauge {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}
.spec__gauge i {
  position: absolute;
  inset: 0;
  background: var(--jetstream);
  transform: scaleX(var(--v, 1));
  transform-origin: 0 50%;
  transition: transform 1.8s var(--ease-out) 0.25s;
}
.js .ctn-card:not(.is-in) .spec__gauge i { transform: scaleX(0); }
.ctn-card__cta { margin-top: 12px; }

/* Demandes spéciales : formats rares, fournis à la demande */
.ctn-special {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: clamp(72px, 8vw, 120px);
  background: #eef0f4;
}
.ctn-special__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(28px, 3.6vw, 56px);
}
.ctn-special__kicker span {
  display: inline-block;
  padding: 7px 13px;
  border: 1.5px solid var(--jetstream);
  color: var(--jetstream);
  font-size: 14px;
  line-height: 1.2;
}
.ctn-special__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ctn-special__desc {
  max-width: 46ch;
  font-size: 16px;
  color: var(--muted);
}
.ctn-special__desc b {
  color: var(--onyx);
  font-weight: 600;
}
.ctn-special__list {
  align-self: stretch;
  margin-top: auto; /* la liste se cale en bas si la photo est plus haute que le texte */
  border-top: 1px solid var(--rule);
}

.special-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
.special-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--jetstream);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.8s var(--ease-out);
}
.special-item:hover::after,
.special-item:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.special-item__feet {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.special-item__name {
  position: relative;
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.special-item__name > span {
  position: relative;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.special-item__name > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--jetstream);
}
.special-item:hover .special-item__name > span,
.special-item:focus-visible .special-item__name > span { transform: translate(10px, -100%); }
.special-item__more {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.4s;
}
.special-item__arrow {
  display: inline-block;
  transition: transform 0.6s var(--ease-out);
}
.special-item:hover .special-item__more { color: var(--jetstream); }
.special-item:hover .special-item__arrow { transform: translateX(6px); }

.ctn-special__media {
  position: relative;
  display: block;
  min-height: 440px;
  overflow: hidden;
  background: #dfe3ea;
}
.ctn-special__img {
  position: absolute;
  inset: 0;
}
.ctn-special__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.ctn-special__media:hover .ctn-special__img img,
.ctn-special__media:focus-visible .ctn-special__img img { transform: scale(1.06); }
.ctn-special__tag,
.ctn-special__count {
  position: absolute;
  z-index: 1;
  padding: 7px 11px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cloud);
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.4s;
}
.ctn-special__tag { left: 14px; top: 14px; }
.ctn-special__count { right: 14px; bottom: 14px; }
.ctn-special__media:hover .ctn-special__tag { background: var(--jetstream); }

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

.refs {
  padding: var(--section) 0;
  overflow: hidden;
}
.refs .section-head { padding: 0 var(--gutter); }

.refs__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: clamp(56px, 7vw, 100px);
  padding: 0 var(--gutter);
}
.refs__count {
  min-width: 64px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.refs__progress {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
}
.refs__progress i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20%;
  background: var(--onyx);
}
.refs__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.refs__hint span { animation: hint 1.8s var(--ease-io) infinite; }
.refs__nav { display: flex; gap: 8px; }
.refs__btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--jetstream);
  font-size: 20px;
  transition: color 0.4s, box-shadow 0.5s var(--ease-out), opacity 0.4s;
}
.refs__btn:hover:not(:disabled) {
  color: var(--jetstream);
  box-shadow: inset 0 0 0 1px var(--jetstream);
}
.refs__btn:disabled { opacity: 0.25; cursor: default; }

.refs__track {
  position: relative;
  display: flex;
  gap: 20px;
  margin-top: 28px;
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.refs__track::-webkit-scrollbar { display: none; }
.refs__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.refs__track.is-dragging a { pointer-events: none; }

.ref {
  flex: 0 0 clamp(300px, 46vw, 780px);
  display: grid;
  align-content: start;
  gap: 24px;
  scroll-snap-align: start;
}
.ref__open { display: block; }
.ref__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7e8ec;
}
.ref__parallax {
  position: absolute;
  top: 0;
  left: -6%;
  width: 112%;
  height: 100%;
}
.ref__parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.ref__open:hover .ref__parallax img,
.ref__open:focus-visible .ref__parallax img { transform: scale(1.06); }
.ref__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cloud);
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.4s;
}
.ref__open:hover .ref__badge { background: var(--jetstream); }

.ref__body {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-right: 8%;
}
.ref__index {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ref__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.ref__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 15px;
  font-weight: 500;
}
.ref__meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--muted);
}
.ref__text {
  max-width: 48ch;
  font-size: 16px;
  color: var(--muted);
}
.ref__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ref__tags li {
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 13px;
  line-height: 1.2;
}
.ref__more {
  margin-top: 6px;
  font-size: 16px;
}
.ref__more span {
  display: inline-block;
  transition: transform 0.6s var(--ease-out);
}
.ref__more:hover span { transform: translateX(6px); }

/* ---------------------------------------------------------------- Visionneuse */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(var(--night-rgb), 0.96);
  color: var(--cloud);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__top,
.lightbox__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--gutter);
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
}
.lightbox__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lightbox__count {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-light);
}
.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-size: 15px;
  transition: border-color 0.3s;
}
.lightbox__close:hover { border-color: var(--cloud); }
.lightbox__stage {
  position: relative;
  min-height: 0;
  touch-action: pan-y;
}
.lightbox__img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 2 * var(--gutter));
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}
.lightbox__img.is-leaving { opacity: 0; transform: scale(0.98); }
.lightbox__alt {
  flex: 1;
  max-width: 60ch;
  font-size: 14px;
  text-align: center;
  color: var(--muted-light);
}
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-size: 20px;
  transition: border-color 0.3s, opacity 0.3s;
}
.lightbox__btn:hover:not(:disabled) { border-color: var(--cloud); }
.lightbox__btn:disabled { opacity: 0.2; cursor: default; }
.lightbox-open { overflow: hidden; }

/* ---------------------------------------------------------------- Appel à l'action */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84vh;
  min-height: 84svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 48px;
  overflow: hidden;
  background: var(--marine);
  color: var(--cloud);
}
.cta__media {
  position: absolute;
  inset: -12% 0;
}
.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--marine-rgb), 0.88) 0%, rgba(var(--marine-rgb), 0.3) 42%, rgba(var(--marine-rgb), 0) 62%),
    linear-gradient(0deg, rgba(var(--night-rgb), 0.66) 0%, rgba(var(--night-rgb), 0.3) 32%, rgba(var(--night-rgb), 0) 58%);
}
.cta__label,
.cta__body { position: relative; }
.cta__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: 40px;
  margin-top: 40px;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(52px, 9.6vw, 176px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.cta__actions {
  display: grid;
  gap: 28px;
  justify-items: start;
  padding-bottom: 0.4em;
}
.cta__actions p { max-width: 32ch; }

/* ---------------------------------------------------------------- Formulaire */

.contact { padding: var(--section) var(--gutter); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px clamp(40px, 6vw, 120px);
}
.contact__info {
  display: grid;
  align-content: start;
  gap: 28px;
}
.contact__info > p {
  max-width: 40ch;
  color: var(--muted);
}
.contact__details {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}
.contact__details dt {
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}
.contact__details dd { font-size: 20px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
/* Achat de conteneur : pas d'origine, le lieu de livraison prend toute la largeur */
.form[data-type="achat"] .field--dest { grid-column: 1 / -1; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 26px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-size: 20px;
  line-height: 1.3;
  outline: none;
  appearance: none;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field label {
  position: absolute;
  left: 0;
  top: 26px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--muted);
  transform-origin: 0 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), color 0.3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-26px) scale(0.7);
  color: var(--onyx);
}
.field__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--jetstream);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out);
}
.field input:focus ~ .field__line,
.field textarea:focus ~ .field__line { transform: scaleX(1); }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #b00020; }
.field.is-invalid label { color: #b00020; }

.chips {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 0;
  border: 0;
}
.chips legend {
  margin-bottom: 14px;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 11px 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  font-size: 16px;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease-out);
  cursor: pointer;
}
.chip:hover span { border-color: var(--onyx); }
.chip input:checked + span {
  border-color: var(--jetstream);
  color: var(--jetstream);
  box-shadow: inset 0 0 0 1px var(--jetstream);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--jetstream);
  outline-offset: 3px;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--onyx);
  cursor: pointer;
}
.consent input::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--jetstream);
  transform: scale(0);
  transition: transform 0.35s var(--ease-out);
}
.consent input:checked::after { transform: scale(1); }
.consent.is-invalid { color: #b00020; }
.consent.is-invalid input { border-color: #b00020; }

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.form__status {
  max-width: 46ch;
  font-size: 15px;
  color: var(--jetstream);
}

/* ---------------------------------------------------------------- Pied de page */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--onyx);
  color: var(--cloud);
}
.footer__inner { padding: clamp(80px, 9vw, 140px) var(--gutter) 28px; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px 40px;
}
.footer__claim {
  display: grid;
  gap: 32px;
  align-content: start;
  justify-items: start;
}
.footer__claim p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}
.footer__cols h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}
.footer__cols li + li { margin-top: 10px; }
.footer__cols address,
.footer__mail { color: var(--muted-light); }
.footer__mail { margin-top: 14px; overflow-wrap: anywhere; }

.footer__clocks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  margin-top: clamp(64px, 7vw, 110px);
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  font-size: 15px;
}
.footer__clocks li { display: flex; gap: 10px; }
.footer__clocks span { color: var(--muted-light); }
.footer__clocks time { font-variant-numeric: tabular-nums; }

.footer__brand {
  margin-top: clamp(40px, 5vw, 72px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21vw;
  line-height: 0.8;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.footer__brand .fit {
  overflow: hidden;
  padding-top: 0.04em;
  vertical-align: top;
}
.footer__brand .ch > span {
  display: inline-block;
  transition: transform 0.7s var(--ease-out), color 0.4s;
}
.footer__brand .ch:hover > span { transform: translateY(-9%); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 28px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted-light);
}
.footer__legal { display: flex; gap: 24px; }
.footer__license { margin-top: 10px; color: var(--muted-light); }
.footer__top-link { color: var(--cloud); }

/* ---------------------------------------------------------------- Page conditions générales */

.legal-bar,
.legal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px var(--gutter);
  background: var(--onyx);
  color: var(--cloud);
  font-size: 15px;
}
.legal-bar__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--gutter) var(--section);
}
.legal__draft {
  margin-bottom: 40px;
  padding: 12px 16px;
  border: 1.5px solid var(--jetstream);
  color: var(--jetstream);
  font-size: 15px;
}
.legal__title {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.legal__date { margin-top: 16px; color: var(--muted); font-size: 16px; }
.legal section { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.16); }
.legal h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal section p { line-height: 1.55; overflow-wrap: anywhere; }
.legal section p + p { margin-top: 12px; }
.legal strong { font-weight: 600; }

/* ---------------------------------------------------------------- Choix de la langue */

.lang {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1;
}
.lang a { padding: 6px 0; opacity: 0.6; transition: opacity 0.3s ease; }
.lang a:hover,
.lang a:focus-visible { opacity: 1; }
.lang a[aria-current] { opacity: 1; font-weight: 600; box-shadow: 0 1px 0 currentColor; }
.lang a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-text); letter-spacing: 0; }
.legal-bar__right { display: flex; align-items: center; gap: 24px; }
.legal__note { margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------------------------------------------------------------- Arabe : lecture de droite à gauche */

html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Inter Tight", Arial, sans-serif;
  --font-text: "IBM Plex Sans Arabic", "Inter", Arial, sans-serif;
}
html[lang="ar"] *,
html[lang="ar"] *::before,
html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.5; }

/* Masques de titres : laisser de la place aux lettres arabes qui descendent */
html[lang="ar"] .line { padding-block: 0.16em; margin-block: -0.16em; }
html[lang="ar"] .h-display,
html[lang="ar"] .h-section,
html[lang="ar"] .cta__title,
html[lang="ar"] .hero__title,
html[lang="ar"] .mode__title,
html[lang="ar"] .manifesto__text,
html[lang="ar"] .footer__claim p { line-height: 1.3; }
html[lang="ar"] .hero__eyebrow,
html[lang="ar"] .hero__title .line__in { padding-left: 0; }

/* Ce qui défile reste physique : photos et bandeaux se déplacent comme dans les autres langues */
html[dir="rtl"] .modes,
html[dir="rtl"] .refs__track,
html[dir="rtl"] .refs__nav,
html[dir="rtl"] .marquee,
html[dir="rtl"] .lightbox__bottom,
html[dir="rtl"] .globe,
html[dir="rtl"] .loader__brand,
html[dir="rtl"] .footer__brand { direction: ltr; }
html[dir="rtl"] .modes__intro,
html[dir="rtl"] .mode,
html[dir="rtl"] .ref,
html[dir="rtl"] .lightbox__alt { direction: rtl; }

/* Flèches d'action : elles pointent dans le sens de lecture */
html[dir="rtl"] .btn__arrow,
html[dir="rtl"] .ref__more span,
html[dir="rtl"] .special-item__arrow { display: inline-block; transform: scaleX(-1); }

/* Formats de conteneurs : « 20′ Dry » se lit toujours de gauche à droite */
html[dir="rtl"] .ctn-card__title { direction: ltr; text-align: right; }

/* Positions */
html[dir="rtl"] .skip { left: auto; right: var(--gutter); }
html[dir="rtl"] .nav__logo { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .nav__burger { margin-right: 0; margin-left: -10px; }
html[dir="rtl"] .hero__scroll { left: auto; right: var(--gutter); }
html[dir="rtl"] .hero__scroll > span:first-child { writing-mode: horizontal-tb; transform: none; }
html[dir="rtl"] .manifesto__label { left: auto; right: 0; }
html[dir="rtl"] .manifesto__foot { padding-left: 0; padding-right: clamp(0px, 22vw, 360px); }
html[dir="rtl"] .mode__kicker { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .figure__line { left: auto; right: 0; transform-origin: 100% 50%; }
html[dir="rtl"] .figure__num sup { margin-left: 0; margin-right: 0.04em; }
html[dir="rtl"] .hub { text-align: right; }
html[dir="rtl"] .method__progress { left: auto; right: 0; }
html[dir="rtl"] .method__steps-wrap { padding: 18vh 48px 22vh 0; }
html[dir="rtl"] .ctn__key b { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .spec__gauge i { transform-origin: 100% 50%; }
html[dir="rtl"] .progress span { transform-origin: 100% 50%; }
html[dir="rtl"] .ref__body { padding-right: 0; padding-left: 8%; }
html[dir="rtl"] .field label { left: auto; right: 0; transform-origin: 100% 0; }
html[dir="rtl"] .field__line { transform-origin: 100% 50%; }
/* E-mail et téléphone s'écrivent toujours de gauche à droite */
html[dir="rtl"] .field input[type="email"],
html[dir="rtl"] .field input[type="tel"] { direction: ltr; text-align: right; }

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

/* Écrans moyens : les 4 conteneurs restent alignés sur une ligne, en fiches plus compactes */
@media (max-width: 1200px) {
  .ctn__grid { gap: 48px 14px; }
  .ctn-card { gap: 16px; }
  .ctn-card__tag { left: 10px; top: 10px; padding: 6px 9px; font-size: 12px; }
  .ctn-card__feet { left: 10px; bottom: 6px; font-size: clamp(34px, 4.4vw, 52px); }
  .ctn-card__body { gap: 8px; }
  .ctn-card__kicker { font-size: 13px; }
  .ctn-card__title { font-size: clamp(21px, 2.5vw, 30px); }
  .ctn-card__desc { font-size: 14px; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; }
  .spec dt { font-size: 12.5px; }
  .spec dd { font-size: 15px; }
  .spec__gauge { margin-top: 6px; }
  .ctn-card__cta {
    align-self: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px 9px 12px;
    font-size: 14px;
  }
}
@media (min-width: 701px) and (max-width: 860px) {
  .ctn-card__cta { justify-content: center; padding-inline: 8px; font-size: 13px; }
  .ctn-card__cta .btn__arrow { display: none; }
}

@media (max-width: 1199px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .lang { margin-inline-end: 4px; }
}

@media (max-width: 1023px) {
  :root { --nav-h: 68px; }

  .ctn-special { grid-template-columns: minmax(0, 1fr); }
  .ctn-special__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }


  .manifesto__label { position: static; display: flex; margin-bottom: 28px; }
  .manifesto__text { text-indent: 0; }
  .manifesto__foot,
  html[dir="rtl"] .manifesto__foot { padding-left: 0; padding-right: 0; }

  .mode__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    row-gap: 28px;
  }
  .mode__title { grid-row: 2; font-size: clamp(56px, 14vw, 140px); }
  .mode__body { grid-column: 1; grid-row: 3; max-width: 520px; }
  .mode__veil {
    background:
      linear-gradient(180deg, rgba(var(--marine-rgb), 0.6) 0%, rgba(var(--marine-rgb), 0) 30%),
      linear-gradient(0deg, rgba(var(--night-rgb), 0.78) 0%, rgba(var(--night-rgb), 0.48) 42%, rgba(var(--night-rgb), 0) 74%);
  }
  /* Raccord avec l'introduction (même mer, même bande sombre de part et d'autre) */
  .mode--sea .mode__veil {
    background:
      linear-gradient(180deg, rgba(var(--night-rgb), 0.8) 0%, rgba(var(--night-rgb), 0.32) 14%, rgba(var(--night-rgb), 0) 32%),
      linear-gradient(0deg, rgba(var(--night-rgb), 0.78) 0%, rgba(var(--night-rgb), 0.48) 42%, rgba(var(--night-rgb), 0) 74%);
  }
  /* Marge pour la parallaxe verticale des photos (évite un liseré vide en haut ou en bas) */
  .mode__media img { top: -7%; height: 114%; }
  /* Porte-conteneurs remonté au-dessus du titre « Maritime » */
  /* Le navire occupe le haut du panneau puis se fond dans le bleu nuit, sous le titre */
  .mode--sea .mode__media { background: #264961; }
  .mode--sea .mode__media img {
    left: 0;
    width: 100%;
    top: 0;
    height: 64%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }

  .section-head .h-section,
  .section-head__aside { grid-column: 1 / -1; }



  .network { grid-template-columns: minmax(0, 1fr); }
  .network__globe { max-width: 720px; }

  .method__grid { grid-template-columns: minmax(0, 1fr); }
  .method__sticky {
    position: static;
    height: auto;
    padding: 0;
  }
  .method__visual { display: none; }
  .method__steps-wrap { padding: 48px 0 var(--section) 32px; }
  html[dir="rtl"] .method__steps-wrap { padding: 48px 32px var(--section) 0; }
  .method__progress { top: 48px; bottom: var(--section); }
  .step { min-height: 0; padding: 40px 0; opacity: 1; }


  .cta__body { grid-template-columns: minmax(0, 1fr); }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }

  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 17px; }

  .hero__scroll { display: none; }
  .hero__slide img { object-position: 10% 50%; } /* passerelle du navire en entier, la coque file à droite */
  .hero__content { bottom: 44px; }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: 0.18em; padding-left: 0.18em; }
  .hero__title { font-size: min(12vw, 56px); }
  .hero__lead { font-size: 15.5px; }

  .manifesto__foot { grid-template-columns: minmax(0, 1fr); }
  .manifesto__cta { justify-items: stretch; }
  .manifesto__cta .btn--lg { justify-content: space-between; }
  .manifesto__more { justify-self: start; }


  .mode { min-height: 560px; }
  .mode__content { padding-bottom: 40px; }
  .mode__top .mode__kicker { display: none; }

  .figures__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }


  .hubs__list { column-gap: 20px; }
  .hub { padding: 12px 0; }
  .hub__name { font-size: 16px; }
  .hub__time { font-size: 14px; }


  .form { grid-template-columns: minmax(0, 1fr); }

  /* Téléphone : les 4 fiches restent sur une ligne et défilent au doigt (la suivante dépasse) */
  .ctn__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .ctn__grid::-webkit-scrollbar { display: none; }
  .ctn-card { scroll-snap-align: start; }
  .special-item { gap: 12px; }
  .special-item__feet { font-size: 30px; }
  .special-item__name { font-size: 21px; }
  .ctn__bar { align-items: flex-start; }

  .refs__hint { display: none; }
  .refs__bar { gap: 16px; }
  .refs__btn { width: 44px; height: 44px; font-size: 18px; }
  .refs__track { gap: 14px; }
  .ref { flex-basis: 84vw; gap: 18px; }
  .ref__body,
  html[dir="rtl"] .ref__body { padding-right: 0; padding-left: 0; }
  .lightbox__btn { width: 46px; height: 46px; }
  .lightbox__alt { display: none; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { gap: 18px; }
}

/* ---------------------------------------------------------------- Mouvement réduit */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Très petits téléphones : flèche seule, pour laisser la place au nom */
@media (max-width: 380px) {
  .special-item__label { display: none; }
}
