/* ==========================================================================
   NavAir — page d'accueil
   L'objet central est l'étiquette kraft d'un carton : c'est ce que le client
   envoie réellement, et la marque (唛头) qu'on y lit est ce qui relie le carton
   à son propriétaire à l'entrepôt.
   ========================================================================== */
:root {
  --hm-ink: #0b1f3a;       /* marine de la marque : texte, blocs sombres */
  --hm-signal: #ea5b0c;    /* orange de la marque : tampon, actions */
  --hm-kraft: #cfa873;     /* carton kraft : uniquement l'étiquette */
  --hm-kraft-d: #a9824d;
  --hm-slab: #e7ebef;      /* béton d'entrepôt : fond de page */
  --hm-steel: #56657a;     /* acier : texte secondaire */
  --hm-line: #cdd4dc;
  --hm-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --hm-stencil: 'Big Shoulders Stencil Display', 'Big Shoulders Display', sans-serif;
  --hm-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --hm-marker: 'Permanent Marker', 'Comic Sans MS', cursive;
}

.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; }

.hm { background: var(--hm-slab); color: var(--hm-ink); padding-top: var(--nav-h, 72px); overflow-x: clip; }
.hm-mono { font-family: var(--hm-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-steel); }

/* ---------- Boutons ---------- */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 6px; font-weight: 800; font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.hm-btn:focus-visible, .hm-track button:focus-visible, .hm-country:focus-visible, .hm-board a:focus-visible { outline: 3px solid var(--hm-signal); outline-offset: 3px; }
.hm-btn-main { background: var(--hm-signal); color: #fff; }
.hm-btn-main:hover { background: #c94d08; transform: translateY(-1px); }
.hm-btn-light { background: #fff; color: var(--hm-ink); }
.hm-btn-light:hover { background: var(--hm-slab); }
.hm-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hm-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Hero ---------- */
.hm-hero { padding: 56px 0 72px; background-color: var(--hm-slab); background-image: repeating-linear-gradient(90deg, transparent 0 119px, rgba(11, 31, 58, .045) 119px 120px); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hm-kicker { font-family: var(--hm-mono); font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hm-steel); margin: 0 0 18px; }
.hm-title { font-family: var(--hm-display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; margin: 0 0 26px; font-size: clamp(3.4rem, 8.4vw, 7.6rem); color: var(--hm-ink); }
.hm-title > span { display: block; }
.hm-to { display: flex !important; align-items: baseline; gap: .12em; color: var(--hm-signal); }
.hm-arrow { font-weight: 800; font-size: .8em; transform: translateY(-.04em); }
.hm-city { display: inline-block; }
.hm-city.swap { animation: hm-swap .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes hm-swap { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
.hm-lead { font-size: 1.08rem; line-height: 1.65; color: #2c3b52; max-width: 36em; margin: 0 0 28px; }
.hm-lead strong { color: var(--hm-ink); }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.hm-track { display: flex; min-height: 50px; background: #fff; border: 2px solid var(--hm-ink); border-radius: 6px; overflow: hidden; flex: 1 1 260px; max-width: 360px; }
.hm-track input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-family: var(--hm-mono); font-size: .92rem; font-weight: 500; color: var(--hm-ink); background: transparent; }
.hm-track input:focus { outline: none; }
.hm-track:focus-within { box-shadow: 0 0 0 3px rgba(234, 91, 12, .25); }
.hm-track button { border: 0; background: var(--hm-ink); color: #fff; font-weight: 800; padding: 0 18px; cursor: pointer; font-family: inherit; }

/* ---------- L'étiquette (signature) ---------- */
.hm-label-wrap { position: relative; }
.hm-countries { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hm-country { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--hm-line); background: #fff; color: var(--hm-ink); font-weight: 700; font-size: .86rem; cursor: pointer; font-family: inherit; }
.hm-country .pays-flag { width: 20px; box-shadow: 0 0 0 1px rgba(11, 31, 58, .15); border-radius: 2px; }
.hm-country[aria-checked="true"] { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.hm-label {
  position: relative; margin: 0; padding: 26px 26px 22px; transform: rotate(-1.6deg);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .18), transparent 40%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .025) 0 2px, transparent 2px 5px),
    var(--hm-kraft);
  color: #1c1409; border-radius: 3px;
  box-shadow: 0 1px 0 var(--hm-kraft-d), 0 24px 40px -18px rgba(11, 31, 58, .45);
}
/* rubans adhésifs aux coins */
.hm-label::before, .hm-label::after { content: ""; position: absolute; width: 92px; height: 26px; background: rgba(240, 236, 226, .72); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.hm-label::before { top: -12px; left: -18px; transform: rotate(-32deg); }
.hm-label::after { top: -10px; right: -20px; transform: rotate(30deg); }
.hm-label-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid #1c1409; padding-bottom: 8px; }
.hm-label .hm-mono { color: #5a4526; }
.hm-stencil { font-family: var(--hm-stencil); font-weight: 800; font-size: 1.9rem; letter-spacing: .04em; line-height: 1; }
.hm-mark { position: relative; font-family: var(--hm-marker); font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; margin: 18px 0 16px; color: #111; transform: rotate(-1deg); white-space: nowrap; }
.hm-ex { position: absolute; top: -.2em; left: 0; transform: translateY(-100%) rotate(1deg); font-family: var(--hm-mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b5330; }
.hm-label-rows { display: grid; gap: 8px; border-top: 1.5px dashed rgba(28, 20, 9, .45); padding-top: 12px; }
.hm-label-rows div { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 10px; font-size: .92rem; }
.hm-label-rows strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.hm-label-rows .pays-flag { width: 22px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.hm-barcode { height: 34px; margin-top: 18px; background: repeating-linear-gradient(90deg, #1c1409 0 2px, transparent 2px 4px, #1c1409 4px 7px, transparent 7px 8px, #1c1409 8px 9px, transparent 9px 13px); opacity: .85; width: 46%; }
.hm-stamp {
  position: absolute; right: 16px; bottom: -30px; transform: rotate(-7deg);
  border: 3px solid var(--hm-signal); color: var(--hm-signal); border-radius: 6px; padding: 6px 12px 5px; text-align: center;
  font-family: var(--hm-display); text-transform: uppercase; line-height: 1; background: rgba(207, 168, 115, .35);
  mix-blend-mode: multiply;
}
.hm-stamp.thunk { animation: hm-thunk .5s cubic-bezier(.3, 1.6, .5, 1) .35s both; }
@keyframes hm-thunk { from { opacity: 0; transform: rotate(-16deg) scale(1.6); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
.hm-stamp-t { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.hm-stamp-d { display: block; font-size: 1.9rem; font-weight: 900; }
.hm-stamp-s { display: block; font-family: var(--hm-mono); font-size: .66rem; font-weight: 600; letter-spacing: .02em; margin-top: 3px; text-transform: none; white-space: nowrap; }
.hm-label-note { font-size: .84rem; line-height: 1.55; color: var(--hm-steel); margin: 50px 0 0; max-width: 30em; }

/* ---------- Titres de section ---------- */
.hm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: 30px; }
.hm-head p { margin: 0; color: var(--hm-steel); line-height: 1.6; }
.hm-h2 { font-family: var(--hm-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: .9; margin: 0; color: var(--hm-ink); }

/* ---------- Tableau des départs ---------- */
.hm-board-sec { background: var(--hm-ink); color: #fff; padding: 72px 0; }
.hm-board-sec .hm-h2 { color: #fff; }
.hm-board-sec .hm-head p { color: #aab7c9; }
.hm-board { border-top: 2px solid rgba(255, 255, 255, .85); }
.hm-row { display: grid; grid-template-columns: 1.1fr 1.5fr .9fr 1.1fr 1.2fr auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); font-family: var(--hm-mono); font-size: .95rem; }
.hm-row-head { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #8193ab; padding: 10px 4px; }
.hm-row .hm-date { font-family: var(--hm-display); font-weight: 900; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .01em; }
.hm-row .hm-dest { display: flex; align-items: center; gap: 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.02rem; }
.hm-row .pays-flag { width: 26px; border-radius: 2px; }
.hm-row .hm-st { font-size: .8rem; font-weight: 600; }
.hm-st.open { color: #fdba8c; }
.hm-st.hot { color: #ff8a5c; }
.hm-st.closed { color: #8193ab; }
.hm-row a { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .86rem; text-decoration: none; border-bottom: 2px solid var(--hm-signal); padding-bottom: 2px; white-space: nowrap; }
.hm-row a:hover { color: #fdba8c; }
.hm-row.is-closed { opacity: .55; }

/* ---------- Trajet ---------- */
.hm-route-sec { padding: 84px 0 76px; }
.hm-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: etape; }
.hm-route::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 3px; background: repeating-linear-gradient(90deg, var(--hm-ink) 0 14px, transparent 14px 22px); }
.hm-route li { position: relative; padding-top: 36px; counter-increment: etape; }
.hm-route li::before { content: ""; position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--hm-slab); border: 3px solid var(--hm-ink); }
.hm-route li:last-child::before { background: var(--hm-signal); border-color: var(--hm-signal); }
.hm-stop { font-family: var(--hm-mono); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hm-signal); }
.hm-stop::before { content: counter(etape) " · "; color: var(--hm-steel); }
.hm-route h3 { font-family: var(--hm-display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: .95; margin: 8px 0 10px; }
.hm-route p { margin: 0; color: #3b4a60; line-height: 1.6; font-size: .95rem; }

/* ---------- Tarifs ---------- */
.hm-rates-sec { padding: 0 0 84px; }
.hm-rates { display: grid; grid-template-columns: 1fr 1fr .9fr; border: 2px solid var(--hm-ink); border-radius: 6px; overflow: hidden; background: #fff; }
.hm-rate { padding: 28px 26px; }
.hm-rate + .hm-rate { border-left: 2px solid var(--hm-ink); }
.hm-rate-v { font-family: var(--hm-display); font-weight: 900; font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; margin: 12px 0 10px; }
.hm-rate-v small { font-family: var(--hm-mono); font-size: .8rem; font-weight: 600; text-transform: uppercase; color: var(--hm-steel); vertical-align: middle; }
.hm-rate-v em { font-style: normal; font-size: .38em; letter-spacing: .02em; color: var(--hm-signal); }
.hm-rate p { margin: 0; color: #3b4a60; font-size: .92rem; line-height: 1.55; }
.hm-rate-cta { background: var(--hm-ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.hm-rate-cta .hm-btn { min-height: 46px; padding: 10px 18px; text-align: center; line-height: 1.25; }
.hm-rate-cta p { color: #c3cedd; }

/* ---------- Entrepôts ---------- */
.hm-wh-sec { padding: 0 0 90px; }
.hm-wh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hm-wh-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.hm-wh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.hm-wh-text > p { color: var(--hm-steel); line-height: 1.65; margin: 16px 0 22px; }
.hm-wh-list { margin: 0 0 26px; display: grid; gap: 0; border-top: 1.5px solid var(--hm-ink); }
.hm-wh-list div { padding: 12px 0; border-bottom: 1px solid var(--hm-line); display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.hm-wh-list dd { margin: 0; font-weight: 700; font-size: .92rem; white-space: pre-line; }

/* ---------- Avis ---------- */
.hm-rev-sec { padding: 0 0 84px; }

/* ---------- Fin ---------- */
.hm-end { background: var(--hm-signal); color: #fff; padding: 64px 0; }
.hm-end-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.hm-end-t { font-family: var(--hm-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: .9; margin: 0; max-width: 12ch; }
.hm-end-a { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-end .hm-btn-main { background: var(--hm-ink); }
.hm-end .hm-btn-main:hover { background: #06142a; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hm-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hm-label-wrap { max-width: 520px; }
  .hm-head { grid-template-columns: 1fr; }
  .hm-route { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .hm-route::before { display: none; }
  .hm-rates { grid-template-columns: 1fr 1fr; }
  .hm-rate-cta { grid-column: 1 / -1; border-left: 0 !important; border-top: 2px solid var(--hm-ink); }
  .hm-wh { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hm-row, .hm-row-head { grid-template-columns: 1fr auto; row-gap: 4px; }
  .hm-row-head { display: none; }
  .hm-row .hm-date { grid-column: 1; }
  .hm-row .hm-dest { grid-column: 1; }
  .hm-row .hm-mode, .hm-row .hm-cut { font-size: .82rem; color: #aab7c9; }
  .hm-row .hm-st { grid-column: 1; }
  .hm-row a { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (max-width: 600px) {
  .hm-hero { padding: 34px 0 52px; }
  .hm-title { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .hm-track { max-width: none; }
  .hm-actions > .hm-btn { flex: 1 1 100%; }
  .hm-label { padding: 22px 18px 18px; }
  .hm-stencil { font-size: 1.45rem; }
  .hm-stamp { right: 8px; bottom: -26px; }
  .hm-stamp-d { font-size: 1.5rem; }
  .hm-barcode { width: 44%; }
  .hm-mark { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .hm-route { grid-template-columns: 1fr; }
  .hm-rates { grid-template-columns: 1fr; }
  .hm-rate + .hm-rate { border-left: 0; border-top: 2px solid var(--hm-ink); }
  .hm-wh-list div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-city.swap, .hm-stamp.thunk { animation: none; }
  .hm-btn { transition: none; }
}

/* Illustrations du trajet (SVG en ligne : les polices du site s'y appliquent) */
.hm-illus-wrap { margin: 0 0 18px; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--hm-line); background: #e7ebef; }
.hm-illus { display: block; width: 100%; height: auto; }
.hm-route li { padding-top: 0; }
.hm-route li::before { top: auto; bottom: auto; display: none; }
.hm-route::before { display: none; }

/* ---------- Photos ---------- */
.hm-band { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; background: var(--hm-ink); }
.hm-band-img, .hm-band-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 58, 0) 35%, rgba(11, 31, 58, .82)); }
.hm-band-in { position: relative; z-index: 1; padding-bottom: 30px; }
.hm-band-t { margin: 0; max-width: 34em; color: #fff; font-size: 1.12rem; line-height: 1.55; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.hm-rate { position: relative; }
.hm-rate-img { display: block; margin: -28px -26px 22px; height: 150px; overflow: hidden; border-bottom: 2px solid var(--hm-ink); }
.hm-rate-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-wh-photo picture, .hm-wh-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-end-photo { position: relative; overflow: hidden; }
.hm-end-img { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; }
.hm-end-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-end-photo::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 42%; background: linear-gradient(90deg, var(--hm-signal), rgba(234, 91, 12, 0) 38%); }
.hm-end-photo .hm-end-in { position: relative; z-index: 1; padding-right: 44%; }
@media (max-width: 980px) {
  .hm-end-img, .hm-end-photo::after { position: relative; display: block; width: 100%; height: 220px; }
  .hm-end-photo::after { display: none; }
  .hm-end-photo { padding-top: 0; }
  .hm-end-photo .hm-end-in { padding-right: 16px; padding-top: 44px; }
  .hm-end-photo { display: flex; flex-direction: column-reverse; }
}
@media (max-width: 600px) {
  .hm-band { min-height: 300px; }
  .hm-band-t { font-size: 1rem; }
  .hm-rate-img { height: 130px; margin: -28px -26px 20px; }
}
