/* ==========================================================================
   Transports Bouchery — V3
   Police : Archivo (variable) — SIL Open Font License 1.1,
   © The Archivo Project Authors — hébergée localement (/fonts).
   Aucune ressource externe.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --graphite: #15181b;
  --graphite-2: #1c2024;
  --graphite-3: #262b30;
  --night: #0e1113;
  --white: #ffffff;
  --mist: #f3f4f5;
  --ink: #15181b;
  --muted-d: #9aa1a8;      /* texte secondaire sur fond sombre */
  --muted-l: #5d656d;      /* texte secondaire sur fond clair */
  --rule-d: rgba(255,255,255,.12);
  --rule-l: #dfe2e5;
  --teal: #007b8f;
  --teal-l: #3fb0c2;
  --header-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  --out: cubic-bezier(.16,1,.3,1);
  --inout: cubic-bezier(.76,0,.24,1);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
sup { font-size: .6em; line-height: 0; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal-l); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 3000; background: var(--teal); color: #fff; padding: .7rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }

h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; line-height: 1; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-stretch: 104%; margin: .6rem 0 1.4rem; }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.15; }
.kicker { color: var(--teal); font-weight: 600; font-size: .98rem; letter-spacing: .01em; }
.lede { max-width: 60ch; margin-top: 1rem; color: var(--muted-l); }
.lede strong { font-weight: 600; color: var(--ink); }
.sec { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 50px; padding: .85rem 1.5rem; border-radius: 4px;
  font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}
.btn::after { content: ""; width: 16px; height: 10px; flex-shrink: 0; background: currentColor; clip-path: polygon(0 45%, 75% 45%, 75% 15%, 100% 50%, 75% 85%, 75% 55%, 0 55%); transition: transform .35s var(--out); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: #006a7b; }
.btn--glass { color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ── Ligne d'itinéraire (progression) ────────────────────────────────────── */
.track { position: fixed; z-index: 950; left: 0; right: 0; top: var(--header-h); height: 2px; background: transparent; pointer-events: none; }
.track-fill { position: absolute; inset: 0; background: var(--teal); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.track-dot { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,123,143,.2); transform: translateX(calc(var(--p, 0) * 100vw)); }

/* ── En-tête (toujours visible) ──────────────────────────────────────────── */
.site-header { position: fixed; z-index: 900; top: 0; left: 0; right: 0; height: var(--header-h); display: flex; align-items: center; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule-l); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.25); }
.header-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; font-weight: 500; font-size: .97rem; }
.nav > a:not(.btn) { position: relative; padding: .35rem 0; color: #3a4148; transition: color .25s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--out); }
.nav > a:not(.btn):hover, .nav > a.is-active { color: var(--ink); }
.nav > a:not(.btn):hover::after, .nav > a.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: .55rem 1.1rem; }
.lang { display: inline-flex; border: 1px solid var(--rule-l); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.lang-btn { min-width: 40px; height: 34px; font-weight: 600; font-size: .8rem; color: var(--muted-l); transition: background .25s, color .25s; }
.lang-btn.is-active { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; position: relative; flex-shrink: 0; z-index: 960; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .4s var(--out), top .4s var(--out); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.nav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ── ACCUEIL ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; padding-top: var(--header-h); }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 55%; transform: scale(1.06); }
.js .hero-media img { animation: kb 14s var(--ease) forwards; }
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1.03); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(14,17,19,.55) 0%, rgba(14,17,19,.25) 35%, rgba(14,17,19,.75) 72%, rgba(14,17,19,.96) 100%),
  linear-gradient(90deg, rgba(14,17,19,.7) 0%, rgba(14,17,19,0) 65%); }
.hero-route { position: absolute; left: 0; right: 0; bottom: 1.5%; width: 100%; height: 13vh; overflow: visible; pointer-events: none; z-index: 1; }
.hero-route path { fill: none; stroke: var(--teal-l); stroke-width: 2; stroke-dasharray: 2600; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; opacity: .75; }
.js .hero-route path { stroke-dashoffset: 2600; animation: draw 2.6s var(--inout) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-route-dot { fill: #fff; filter: drop-shadow(0 0 6px var(--teal-l)); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) clamp(6rem, 17vh, 10rem); }
.hero-place { color: rgba(255,255,255,.75); font-weight: 500; }
.hero-title { font-size: clamp(2.8rem, 7.2vw, 7.4rem); font-stretch: 106%; font-weight: 700; letter-spacing: -.035em; line-height: .92; margin: 1rem 0 1.6rem; color: #fff; max-width: 14ch; }
.hero-title .l { display: block; }
.hero-title .l--teal { color: var(--teal-l); font-size: .42em; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin-top: .55em; max-width: none; }
.hero-sub { max-width: 58ch; color: rgba(255,255,255,.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.js .hero-inner > * { opacity: 0; transform: translateY(22px); animation: up 1s var(--out) forwards; }
.js .hero-inner > :nth-child(1) { animation-delay: .15s; } .js .hero-inner > :nth-child(2) { animation-delay: .3s; }
.js .hero-inner > :nth-child(3) { animation-delay: .5s; } .js .hero-inner > :nth-child(4) { animation-delay: .65s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* ── CHIFFRES (bandeau) ──────────────────────────────────────────────────── */
.fleet { background: var(--white); border-bottom: 1px solid var(--rule-l); }
.fleet-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; align-items: stretch; }
.fleet-title { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--teal); margin: 0; padding: 2.4rem 1.5rem 2.4rem 0; align-self: center; }
.metric { display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: 2.2rem 1.5rem; border-left: 1px solid var(--rule-l); }
.metric-num { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 650; font-stretch: 104%; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-num i { font-style: normal; color: var(--teal); margin: 0 .05em; }
.metric-label { color: var(--muted-l); font-size: .95rem; }
.metric-values { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 2rem; padding: 1rem 0 1.2rem; border-top: 1px solid var(--rule-l); font-weight: 600; font-size: .95rem; }
.metric-values li { display: inline-flex; align-items: center; gap: .6rem; }
.metric-values li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ── SERVICES ────────────────────────────────────────────────────────────── */
.services { background: var(--graphite); color: #fff; padding-bottom: 0; }
.services h2 { color: #fff; }
.services .lede { color: var(--muted-d); }
.services .kicker, .secu .kicker, .zone .kicker, .contact .kicker { color: var(--teal-l); }
.services-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 4rem; align-items: end; }
.services-head .kicker { grid-column: 1 / -1; }
.services-head h2 { margin-bottom: 0; }
.rail-viewport { margin-top: 3.5rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail-viewport::-webkit-scrollbar { display: none; }
.rail { display: flex; gap: 16px; width: max-content; padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); }
.card {
  position: relative; flex-shrink: 0; scroll-snap-align: start; overflow: hidden; isolation: isolate;
  width: clamp(270px, 25vw, 340px); min-height: 360px; padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; background: var(--graphite-2); border: 1px solid var(--rule-d); border-radius: 6px;
  transition: border-color .35s var(--ease), transform .45s var(--out);
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--teal-l); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--out); }
.card-ico { width: 28px; height: 28px; stroke: var(--teal-l); fill: none; stroke-width: 1.4; margin-bottom: 2.6rem; }
.card h3 { color: #fff; margin-bottom: .8rem; }
.card p { color: var(--muted-d); font-size: .96rem; line-height: 1.6; }
.card p a { color: #fff; border-bottom: 1px solid var(--teal-l); }
.card-tag { margin-top: auto; padding-top: 1.4rem; font-size: .85rem; font-weight: 600; color: var(--teal-l); }
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: rgba(63,176,194,.5); transform: translateY(-4px); } .card:hover::before { transform: scaleX(1); } }
.card--photo .card-bg { position: absolute; inset: 0; z-index: -1; }
.card--photo .card-bg picture, .card--photo .card-bg img { width: 100%; height: 100%; }
.card--photo .card-bg img { object-fit: cover; opacity: .4; }
.card--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,24,27,.3), rgba(21,24,27,.92) 60%); }
.card--cta { background: var(--teal); border-color: var(--teal); justify-content: flex-end; }
.card--cta h3 { font-size: 1.7rem; }
.card--cta p { color: rgba(255,255,255,.9); }
.card--cta p a { border-color: #fff; }
.rail-foot { padding-top: 2rem; padding-bottom: clamp(4rem, 10vh, 7rem); }
.rail-meter { display: block; height: 2px; max-width: 280px; background: var(--rule-d); overflow: hidden; }
.rail-meter span { display: block; height: 100%; background: var(--teal-l); transform-origin: 0 50%; transform: scaleX(var(--p, .08)); transition: transform .15s linear; }
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .js .services.is-pinned { height: var(--pin-h, 300vh); padding: 0; }
  .js .services.is-pinned .services-pin { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
  .js .services.is-pinned .rail-viewport { overflow: visible; scroll-snap-type: none; margin-top: 2.5rem; }
  .js .services.is-pinned .rail { transform: translate3d(var(--cx, 0px), 0, 0); will-change: transform; }
  .js .services.is-pinned .rail-foot { padding-bottom: 0; }
  .js .services.is-pinned h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
}

/* ── CONVOI EXCEPTIONNEL ─────────────────────────────────────────────────── */
.exc { background: var(--mist); }
.exc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.exc-photo { position: relative; aspect-ratio: 4 / 3; margin: 0 26px 26px 0; }
.exc-photo picture, .exc-photo img { width: 100%; height: 100%; border-radius: 4px; }
.exc-photo img { object-fit: cover; }
.dim { position: absolute; background: var(--teal); }
.dim--w { left: 0; right: 0; bottom: -18px; height: 1px; }
.dim--h { top: 0; bottom: 0; right: -18px; width: 1px; }
.dim::before, .dim::after { content: ""; position: absolute; background: var(--teal); }
.dim--w::before, .dim--w::after { width: 1px; height: 11px; top: -5px; } .dim--w::before { left: 0; } .dim--w::after { right: 0; }
.dim--h::before, .dim--h::after { height: 1px; width: 11px; left: -5px; } .dim--h::before { top: 0; } .dim--h::after { bottom: 0; }
.js .dim--w { transform: scaleX(0); transition: transform 1.4s var(--out) .5s; }
.js .dim--h { transform: scaleY(0); transition: transform 1.4s var(--out) .7s; }
.js .in .dim { transform: none; }
.table { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3.5rem, 8vh, 5.5rem); border-top: 1px solid var(--rule-l); }
.table > div { padding: 1.5rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--rule-l); }
.table > div:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--rule-l); }
.table dt { font-weight: 650; font-size: 1.1rem; margin-bottom: .35rem; }
.table dd { color: var(--muted-l); font-size: .97rem; }
.table--5 { grid-template-columns: repeat(5, 1fr); border-color: var(--rule-d); }
.table--5 > div { border-color: var(--rule-d) !important; padding-left: 1.2rem; padding-right: 1.2rem; }
.table--5 > div:first-child { padding-left: 0; }
.table--5 > div:not(:first-child) { border-left: 1px solid var(--rule-d); }

/* ── SÉCURITÉ ────────────────────────────────────────────────────────────── */
.secu { background: var(--graphite); color: #fff; padding-top: 0; }
.secu h2 { color: #fff; } .secu .lede { color: var(--muted-d); } .secu .lede strong { color: #fff; }
.secu-band { position: relative; height: clamp(260px, 42vw, 520px); overflow: hidden; }
.secu-band picture, .secu-band img { width: 100%; height: 100%; }
.secu-band img { object-fit: cover; }
.secu-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,24,27,0) 40%, var(--graphite)); }
.secu-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(-6rem, -6vw, -3rem); position: relative; z-index: 2; }
.checks { list-style: none; border-top: 1px solid var(--rule-d); align-self: end; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule-d); }
.checks strong { display: block; font-weight: 600; margin-bottom: .15rem; }
.checks span:not(.tick) { color: var(--muted-d); font-size: .96rem; }
.tick { position: relative; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--muted-d); transition: border-color .3s, background .3s; }
.tick::after { content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--out); }
.checks li.ok .tick, .no-js .tick { background: var(--teal); border-color: var(--teal); }
.checks li.ok .tick::after, .no-js .tick::after { transform: rotate(45deg) scale(1); }

/* ── ZONE — carte ────────────────────────────────────────────────────────── */
.zone { background: var(--night); color: #fff; }
.zone h2 { color: #fff; } .zone .lede { color: var(--muted-d); } .zone .lede strong { color: #fff; }
.zone-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips li { padding: .4rem .85rem; border: 1px solid var(--rule-d); border-radius: 999px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.88); }
.map { position: relative; border: 1px solid var(--rule-d); border-radius: 6px; overflow: hidden; background: #0b0d0f; }
.map-svg { width: 100%; height: auto; }
.map-border { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.map-country { font-family: var(--font); font-size: 26px; font-weight: 600; letter-spacing: .3em; fill: rgba(255,255,255,.12); text-transform: uppercase; }
.map-route { fill: none; stroke: var(--teal-l); stroke-width: 2; stroke-linecap: round; opacity: .85; }
.map-route--dash { stroke-dasharray: 3 9; }
.js .map-route:not(.map-route--dash) { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.4s var(--out); }
.js .map.in .map-route { stroke-dashoffset: 0; }
.map-cities circle { fill: #0b0d0f; stroke: #fff; stroke-width: 2; }
.map-cities text { font-family: var(--font); font-size: 21px; font-weight: 500; fill: rgba(255,255,255,.85); }
.map-sud { fill: var(--teal-l) !important; }
.map-flow circle { fill: #fff; filter: drop-shadow(0 0 4px var(--teal-l)); }
.js .map-flow { opacity: 0; transition: opacity .8s 2s; }
.js .map.in .map-flow { opacity: 1; }
.hub-core { fill: var(--teal); stroke: #fff; stroke-width: 3; }
.hub-name { font-family: var(--font); font-size: 30px; font-weight: 700; fill: #fff; }
.hub-pulse { transform-origin: 0 0; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.zone .table { margin-top: clamp(3rem, 7vh, 4.5rem); }
.zone .table dd { color: var(--muted-d); }

/* ── PARC ────────────────────────────────────────────────────────────────── */
.parc { background: var(--white); }
.parc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.parc-head h2 { margin-bottom: 0; }
.hint { margin-top: 1rem; color: var(--muted-l); font-size: .92rem; }
.parc-wide { margin-top: 3rem; height: clamp(220px, 34vw, 460px); overflow: hidden; border-radius: 6px; }
.parc-wide picture, .parc-wide img { width: 100%; height: 100%; }
.parc-wide img { object-fit: cover; object-position: center 40%; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.tile { position: relative; display: block; text-align: left; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--mist); color: #fff; isolation: isolate; }
.tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform 1.1s var(--out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,17,19,0) 40%, rgba(14,17,19,.85)); transition: opacity .4s; }
.tile-name { position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: 1rem; font-weight: 600; font-size: 1.08rem; line-height: 1.2; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; }
.tile-go { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: inline-flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s, transform .4s var(--out); }
.tile-go::before { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateX(-2px) rotate(45deg); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover .tile-go, .tile:focus-visible .tile-go { background: var(--teal); border-color: var(--teal); }

/* ── DEVIS ───────────────────────────────────────────────────────────────── */
.contact { background: var(--graphite); color: #fff; overflow: hidden; }
.contact h2 { color: #fff; } .contact .lede { color: var(--muted-d); }
.contact-bg { position: absolute; inset: 0; }
.contact-bg picture, .contact-bg img { width: 100%; height: 100%; }
.contact-bg img { object-fit: cover; opacity: .18; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--graphite) 30%, rgba(21,24,27,.75)); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); }
.coords { margin-top: 2.2rem; border-top: 1px solid var(--rule-d); }
.coords > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule-d); }
.coords dt { color: var(--muted-d); }
.coords dd a { border-bottom: 1px solid var(--teal-l); transition: color .25s; }
.coords dd a:hover { color: var(--teal-l); }
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.4rem; align-self: start; background: var(--white); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: 6px; box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: #3a4148; }
.field input, .field select, .field textarea { width: 100%; font-size: 16px; color: var(--ink); background: var(--mist); border: 1px solid transparent; border-radius: 4px; padding: .8rem .9rem; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, #5d656d 50%), linear-gradient(135deg, #5d656d 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,123,143,.15); }
.form-foot { margin-top: .4rem; }
.form-status { margin-top: .8rem; color: var(--teal); font-weight: 600; }
.form-status:empty { display: none; }
.form-note { margin-top: .9rem; font-size: .82rem; color: var(--muted-l); line-height: 1.5; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ── Bandeau destinations ────────────────────────────────────────────────── */
.ticker { background: var(--white); border-bottom: 1px solid var(--rule-l); padding: 1.3rem 0; overflow: hidden; }
.ticker-track { display: flex; gap: 3.5rem; width: max-content; white-space: nowrap; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); will-change: transform; }
.ticker-track span { display: inline-flex; align-items: center; gap: 3.5rem; }
.ticker-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ── Pied de page ────────────────────────────────────────────────────────── */
.site-footer { background: var(--white); padding: clamp(3.5rem, 7vh, 5rem) 0 2rem; color: var(--muted-l); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.site-footer h5 { color: var(--ink); font-size: .95rem; font-weight: 650; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { padding: .28rem 0; font-size: .94rem; }
.site-footer a:hover { color: var(--teal); }
.link-btn { padding: 0; text-align: left; border-bottom: 1px solid var(--rule-l); transition: color .25s, border-color .25s; }
.link-btn:hover { color: var(--teal); border-color: var(--teal); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: 1.8rem; border-top: 1px solid var(--rule-l); font-size: .86rem; }
.social { display: flex; gap: .5rem; margin-left: auto; }
.social a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid var(--rule-l); transition: background .3s, border-color .3s; }
.social a:hover { background: var(--teal); border-color: var(--teal); }
.social svg { width: 17px; height: 17px; fill: var(--ink); transition: fill .3s; }
.social a:hover svg { fill: #fff; }

.to-top { position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 850; width: 48px; height: 48px; border-radius: 4px; background: var(--teal); border: 1px solid rgba(255,255,255,.25); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s, transform .45s var(--out), background .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #006a7b; }
.to-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ── Apparitions ─────────────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--out), transform 1s var(--out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .reveal-img picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--inout); }
.js .reveal-img.in picture { clip-path: inset(0 0 0 0); }
.js .reveal-img img { transform: scale(1.12); transition: transform 1.8s var(--out), opacity .6s; }
.js .reveal-img.in img { transform: none; }

/* ── Modales ─────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 1100; display: none; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(14,17,19,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.visible .modal-bg { opacity: 1; }
.modal-box { position: absolute; inset: 5vh clamp(1rem, 5vw, 5rem); max-width: 1180px; margin: 0 auto; background: #fff; border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(30px); transition: opacity .4s, transform .55s var(--out); }
.modal.visible .modal-box { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1.2rem, 3vw, 2.2rem); border-bottom: 1px solid var(--rule-l); flex-shrink: 0; }
.modal-head h3 { font-size: 1.3rem; }
.modal-close { width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--rule-l); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .25s, color .25s, border-color .25s; }
.modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-close svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: clamp(1.3rem, 4vw, 3rem); flex: 1; }
.modal-body h4 { font-weight: 650; font-size: 1.1rem; margin: 2rem 0 .7rem; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { color: var(--muted-l); margin-bottom: 1rem; line-height: 1.7; font-size: .97rem; }
.modal-body dl { display: grid; grid-template-columns: 220px 1fr; gap: .6rem 1.4rem; padding: 1.3rem; background: var(--mist); border-left: 3px solid var(--teal); margin: 1rem 0 1.5rem; }
.modal-body dt { font-weight: 600; } .modal-body dd { color: #3a4148; }
.modal-body a { color: var(--teal); border-bottom: 1px solid currentColor; }
.modal--gallery .modal-box { background: var(--night); color: #fff; }
.modal--gallery .modal-head { border-color: var(--rule-d); }
.modal--gallery .modal-close { border-color: var(--rule-d); color: #fff; }
.modal--gallery .modal-close:hover { background: #fff; color: var(--ink); }
.modal--gallery .modal-body { padding: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 4px; }
.gallery-grid figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite-2); cursor: zoom-in; opacity: 0; transform: translateY(12px); animation: up .6s var(--out) forwards; }
.gallery-grid figure picture, .gallery-grid img { width: 100%; height: 100%; }
.gallery-grid img { object-fit: cover; transition: transform .9s var(--out); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 1200; display: none; background: #08090a; }
.lightbox.open { display: flex; align-items: center; justify-content: center; }
.lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 70px clamp(.5rem, 6vw, 6rem); }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: lb .45s var(--out); }
@keyframes lb { from { opacity: 0; transform: scale(.97); } }
.lb-btn { position: absolute; z-index: 2; width: 50px; height: 50px; border-radius: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.lb-btn:hover { background: var(--teal); border-color: var(--teal); }
.lb-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; margin-top: -25px; } .lb-next { right: 1rem; top: 50%; margin-top: -25px; }
.lb-count { position: absolute; top: 1.5rem; left: 1.3rem; color: var(--muted-d); font-weight: 500; }

.js .contact-bg img, .js .tile img, .js .card-bg img, .js .gallery-grid img { opacity: 0; transition: opacity .6s, transform 1.1s var(--out); }
.js .tile img.is-ready, .js .gallery-grid img.is-ready { opacity: 1; }
.js .contact-bg img.is-ready { opacity: .18; }
.js .card-bg img.is-ready { opacity: .4; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) { .nav { gap: 1.3rem; font-size: .93rem; } .table--5 { grid-template-columns: repeat(3, 1fr); } .table--5 > div:nth-child(4) { padding-left: 0; border-left: 0 !important; } }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { height: 30px; }
  .lang { margin-left: auto; }
  .burger { display: block; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 940; margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 1.5rem var(--gutter) 2rem; background: #fff; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s, transform .45s var(--out), visibility 0s .45s; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s var(--out), visibility 0s; }
  .nav > a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--rule-l); color: var(--ink); }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a.is-active { color: var(--teal); }
  .nav .nav-cta { margin-top: 1.5rem; min-height: 54px; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
  /* le flou de l'en-tête piègerait le menu plein écran : on le coupe quand il est ouvert */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }

  .fleet-grid { grid-template-columns: 1fr 1fr 1fr; }
  .fleet-title { grid-column: 1 / -1; padding: 1.6rem 0 .4rem; }
  .metric { padding: 1.2rem 1rem 1.5rem; }
  .metric:nth-of-type(1) { border-left: 0; padding-left: 0; }
  .services-head, .exc-grid, .secu-grid, .zone-grid, .contact-grid, .parc-head { grid-template-columns: minmax(0, 1fr); }
  .services-head h2 { margin-bottom: .5rem; }
  .map { order: -1; }
  .table { grid-template-columns: 1fr 1fr; }
  .table > div, .table > div:not(:nth-child(3n+1)) { padding: 1.3rem 1.2rem 1.3rem 0; border-left: 0; }
  .table > div:nth-child(2n) { padding-left: 1.2rem; border-left: 1px solid var(--rule-l); }
  .table--5 > div:nth-child(2n) { border-left: 1px solid var(--rule-d) !important; }
  .table--5 > div:nth-child(2n+1) { border-left: 0 !important; padding-left: 0; }
  .secu-grid { margin-top: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { inset: 0; border-radius: 0; }
  .modal-body dl { grid-template-columns: 1fr; gap: .2rem; }
  .modal-body dd { margin-bottom: .6rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-title { font-size: clamp(2.5rem, 12.4vw, 3.6rem); }
  .hero-title .l--teal { font-size: .5em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-route { height: 9vh; bottom: 1%; }
  .fleet-grid { grid-template-columns: 1fr; }
  .metric, .metric:nth-of-type(1) { border-left: 0; padding: 1.1rem 0; border-top: 1px solid var(--rule-l); flex-direction: row; align-items: baseline; gap: 1rem; }
  .metric { justify-content: flex-start; }
  .metric-num { min-width: 2.6ch; text-align: left; }
  .table, .table--5 { grid-template-columns: 1fr; }
  .table > div, .table > div:nth-child(2n), .table--5 > div, .table--5 > div:nth-child(2n) { padding: 1.1rem 0 !important; border-left: 0 !important; }
  .quote { grid-template-columns: 1fr; }
  .coords > div { grid-template-columns: 1fr; gap: .1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .social { margin-left: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; margin: 0; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .dim--h { display: none; }
  .exc-photo { margin-right: 0; }
}
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } .lang-btn { min-width: 34px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hub-pulse { animation: none !important; }
}
@media print {
  .site-header, .track, .ticker, .to-top, .hero-route { display: none !important; }
  .js [data-reveal], .js .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
