/* Concept « Liaison », reconstruit avec la signature « Tracez votre ligne ».
   Ivoire, encre marine, orange du logo réservé à l'action principale et aux lignes.
   Une seule famille (Hanken Grotesk) : la hiérarchie vient de la taille et de la graisse, pas d'ornements. */
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ivoire: #f2f1ec; --papier: #fbfbf8; --encre: #172036; --marine: #1f2a6b; --gris: #565d6c; --filet: #d8d7cf;
  --orange: #eb8d2c; --orange-fonce: #d4761a; --orange-texte: #a3540d; --terre: #dfe2d8; --cote: #a8af9f;
  --erreur: #a3241b; --succes: #1d6b3a;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { background: var(--ivoire); color: var(--encre); font: 400 17px/1.6 "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--marine); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.cadre { max-width: 1280px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.evitement { position: absolute; left: -9999px; } .evitement:focus { left: 12px; top: 12px; background: var(--encre); color: #fff; padding: 10px 14px; z-index: 50; }

/* Boutons : un seul bouton principal (orange), un seul secondaire (contour marine) */
.btn, .btn-contour { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; font: 700 1rem "Hanken Grotesk", sans-serif; text-decoration: none; border-radius: 6px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn { background: var(--orange); color: var(--encre); border: 2px solid var(--orange); }
.btn:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); }
.btn:active, .btn-contour:active { transform: translateY(1px); }
.btn-contour { background: transparent; color: var(--marine); border: 2px solid var(--marine); }
.btn-contour:hover { background: var(--marine); color: #fff; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 30; background: rgba(242, 241, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--filet); }
.entete-ligne { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--gris); }
.marque img { width: 88px; }
.signature { font-size: .85rem; border-left: 1px solid var(--filet); padding-left: 14px; line-height: 1.25; max-width: 7em; }
.menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.menu a:not(.btn) { color: var(--encre); text-decoration: none; font-weight: 600; font-size: .97rem; }
.menu a:not(.btn):hover { color: var(--marine); text-decoration: underline; }
.menu .tel { font-variant-numeric: tabular-nums; }
.menu-bouton { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; font: 700 1rem "Hanken Grotesk", sans-serif; color: var(--marine); background: none; border: 2px solid var(--marine); border-radius: 6px; cursor: pointer; }

/* Ouverture : le formulaire de tracé et la carte travaillent ensemble */
.ouverture { padding-block: clamp(32px, 4.5vw, 72px) clamp(40px, 5vw, 80px); }
.ouverture-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(24px, 3vw, 40px); }
h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
h1 span { display: block; animation: monte .8s cubic-bezier(.2, .8, .2, 1) both; }
h1 span + span { animation-delay: .14s; }
@keyframes monte { from { opacity: .08; transform: translateY(24px); } }
.chapeau { font-size: 1.12rem; color: #333b4c; max-width: 44ch; }
.tracer { margin-top: 28px; padding: 18px; background: var(--papier); border: 1px solid var(--filet); border-radius: 10px; display: grid; gap: 14px; }
.tracer-champs { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 10px; align-items: end; }
.tracer-fleche { height: 2px; background: var(--orange); margin-bottom: 24px; position: relative; }
.tracer-fleche::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--orange); }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label { font-weight: 600; font-size: .93rem; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; color: var(--encre); background: #fff; border: 1.5px solid #bfc0b8; border-radius: 6px; }
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--marine); outline-offset: 0; border-color: var(--marine); }
.champ [aria-invalid="true"] { border-color: var(--erreur); box-shadow: inset 0 0 0 1px var(--erreur); }
.message-champ { color: var(--erreur); font-size: .9rem; font-weight: 600; }
.tracer .champ { position: relative; }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; padding: 6px; margin: 0; background: #fff; border: 1px solid var(--filet); border-radius: 8px; box-shadow: 0 18px 40px -18px rgba(23, 32, 54, .35); max-height: 320px; overflow-y: auto; }
.suggestions li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.suggestions li span { color: var(--gris); font-weight: 400; font-variant-numeric: tabular-nums; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: #fdf1e3; }
.tracer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.position { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; font: 600 .95rem "Hanken Grotesk", sans-serif; color: var(--marine); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.position::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--marine); box-shadow: 0 0 0 4px rgba(31, 42, 107, .18); }
.position:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }
.carte .ici circle { fill: var(--marine); }
.carte .ici text { fill: var(--marine); font-weight: 700; }
.carte.avec-trace .ici text { visibility: hidden; }
.resultat { margin-top: 18px; display: grid; gap: 14px; justify-items: start; }
.resultat p { font-size: 1.02rem; max-width: 46ch; }
.resultat strong { color: var(--marine); }
.appel { margin-top: 18px; color: var(--gris); font-size: .95rem; }
.appel a { font-weight: 700; }
.horaire { white-space: nowrap; }

.carte-cadre { position: relative; margin: 0; background: var(--papier); border: 1px solid var(--filet); border-radius: 10px; padding: clamp(10px, 1.4vw, 18px); }
.carte { width: 100%; height: auto; max-height: 74vh; }
.carte .terre { fill: var(--terre); stroke: var(--cote); stroke-width: calc(1px * var(--z, 1)); }
.carte .frontieres { fill: none; stroke: var(--papier); stroke-width: calc(1.4px * var(--z, 1)); }
.carte .ligne .trace { fill: none; stroke: var(--orange); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-width .2s, opacity .2s; }
.js .carte .ligne .trace { stroke-dashoffset: 1; }
.js .carte .ligne.tracee .trace { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.6, 0, .2, 1), stroke-width .2s, opacity .2s; }
.carte .ligne .terminus { fill: var(--papier); stroke: var(--orange-fonce); stroke-width: 3; }
.carte text { font: 600 calc(22px * var(--z, 1)) "Hanken Grotesk", sans-serif; fill: var(--encre); paint-order: stroke; stroke: var(--papier); stroke-width: calc(6px * var(--z, 1)); stroke-linejoin: round; }
.carte .ligne.active .trace { stroke-width: 6; }
.carte .quotidiennes, .carte .antenne { transition: opacity .35s; }
.carte.avec-trace .quotidiennes, .carte.avec-trace .antenne { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.carte-retour { position: absolute; z-index: 2; top: clamp(18px, 2vw, 28px); left: clamp(18px, 2vw, 28px); min-height: 40px; padding: 0 14px; font: 600 .9rem "Hanken Grotesk", sans-serif; color: var(--marine); background: #fff; border: 1.5px solid var(--marine); border-radius: 999px; cursor: pointer; box-shadow: 0 6px 18px -10px rgba(23, 32, 54, .5); }
.carte-retour:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }
.carte.focalise .ligne:not(.active) { opacity: .3; }
.carte .antenne circle { fill: var(--marine); }
.carte .base circle { fill: var(--orange); }
.carte .base text { font-weight: 700; }
.carte .ici .onde { fill: none; stroke: var(--marine); stroke-width: calc(3px * var(--z, 1)); transform-box: fill-box; transform-origin: center; animation: onde 2.6s ease-out infinite; }
@keyframes onde { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
#votre-ligne .trace-vous { fill: none; stroke: var(--marine); stroke-width: calc(4.5px * var(--z, 1)); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.2s cubic-bezier(.6, 0, .2, 1) forwards; }
#votre-ligne .trace-vous.hors-carte { stroke-dasharray: none; }
#votre-ligne .trace-vous.itineraire { stroke-linejoin: round; }
#votre-ligne .point { fill: var(--marine); stroke: var(--papier); stroke-width: calc(4px * var(--z, 1)); }
.carte .envoi { fill: var(--orange-fonce); stroke: #fff; stroke-width: 2.5; opacity: 0; }
.carte.avec-trace .envoi { opacity: 0 !important; }
#votre-ligne .envoi-vous { fill: var(--marine); stroke: #fff; stroke-width: calc(3px * var(--z, 1)); opacity: 0; }
#votre-ligne text { fill: var(--marine); font-weight: 700; }
#votre-ligne marker path, #fleche-liaison path { fill: var(--marine); }
@keyframes tracer { to { stroke-dashoffset: 0; } }
figcaption { margin-top: 12px; display: grid; gap: 10px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces button { min-height: 40px; padding: 0 14px; font: 600 .92rem "Hanken Grotesk", sans-serif; color: var(--encre); background: #fff; border: 1.5px solid var(--filet); border-radius: 999px; cursor: pointer; }
.puces button[aria-pressed="true"] { border-color: var(--orange-fonce); background: #fdf1e3; }
.carte-note { font-size: .9rem; color: var(--gris); }

/* Preuves */
.preuves { border-block: 1px solid var(--filet); background: var(--papier); }
.preuves-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.preuves-liste div { padding: 26px 24px 26px 0; border-right: 1px solid var(--filet); margin-right: 24px; }
.preuves-liste div:last-child { border-right: 0; margin-right: 0; }
.preuves dt { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; color: var(--marine); line-height: 1.1; }
.preuves dd { color: var(--gris); margin-top: 4px; font-size: .97rem; }
/* Pays desservis chaque jour : le même rond orange que les terminus de la carte ; un clic montre la ligne. */
.pays { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 10px 32px; align-items: baseline; padding-block: 28px 32px; border-top: 1px solid var(--filet); }
.pays-titre { margin: 0; font-size: .97rem; font-weight: 600; color: var(--gris); line-height: 1.3; }
.pays-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.pays-liste a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--marine); text-decoration: none; }
.pays-liste a::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--orange-fonce); background: var(--papier); transition: background .15s; }
.pays-liste a:hover { color: var(--orange-texte); }
.pays-liste a:hover::before { background: var(--orange); }
.pays-liste a:focus-visible, .pays-france a:focus-visible { outline: 3px solid var(--marine); outline-offset: 3px; border-radius: 4px; }
.pays-france { grid-column: 2; margin: 0; color: var(--gris); }
.pays-france a { color: var(--encre); font-weight: 600; }
.pays-liste.a-animer li { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.pays-liste.vu li { opacity: 1; transform: none; }
.pays-liste.vu li:nth-child(2) { transition-delay: .08s; } .pays-liste.vu li:nth-child(3) { transition-delay: .16s; } .pays-liste.vu li:nth-child(4) { transition-delay: .24s; }
.pays-liste.vu li:nth-child(5) { transition-delay: .32s; } .pays-liste.vu li:nth-child(6) { transition-delay: .4s; } .pays-liste.vu li:nth-child(7) { transition-delay: .48s; } .pays-liste.vu li:nth-child(8) { transition-delay: .56s; }

/* Situations */
.situations { padding-block: clamp(64px, 8vw, 112px); }
.situations-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.situations dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.situations dt { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; padding-top: 14px; border-top: 3px solid var(--orange); }
.situations dd { color: var(--gris); margin-top: 6px; }

/* Métier */
.metier { padding-block: clamp(64px, 8vw, 112px); background: var(--papier); border-block: 1px solid var(--filet); }
.metier-tete { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: end; }
.metier-tete p { color: #333b4c; }
.etapes { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding: 48px 28px 0 0; border-top: 2px solid var(--encre); }
.etapes li::before { content: counter(etape); position: absolute; top: -19px; left: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--papier); border: 2px solid var(--encre); font-weight: 700; }
.etapes li:nth-child(2)::before { background: var(--orange); border-color: var(--orange-fonce); }
/* Étapes : la ligne se trace de gauche à droite et chaque numéro apparaît à son tour */
.etapes.a-animer li { border-top-color: transparent; }
.etapes.a-animer li::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform .5s ease-out; }
.etapes.a-animer li::before { transform: scale(.4); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.etapes.vu li::after { transform: scaleX(1); }
.etapes.vu li::before { transform: none; opacity: 1; }
.etapes.vu li:nth-child(2)::after, .etapes.vu li:nth-child(2)::before { transition-delay: .45s; }
.etapes.vu li:nth-child(3)::after, .etapes.vu li:nth-child(3)::before { transition-delay: .9s; }
.etapes.vu li:nth-child(4)::after, .etapes.vu li:nth-child(4)::before { transition-delay: 1.35s; }
.etapes li { z-index: 0; } .etapes li::before { z-index: 1; }
.etapes p { color: var(--gris); margin-top: 8px; }

/* Modes (section sombre) */
.modes { background: var(--encre); color: #e9ebf2; padding-block: clamp(64px, 8vw, 112px); }
.modes h2 { color: #fff; }
.modes-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.modes-grille > div p { margin-top: 20px; color: #c3c8d6; max-width: 44ch; }
.modes-liste div { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 20px; }
.modes-liste div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.modes-liste dt { font-weight: 700; font-size: 1.25rem; color: #fff; }
.modes-liste dd { color: #c3c8d6; }
.modes :focus-visible { outline-color: #fff; }

/* Plan de chargement */
.chargement { padding-block: clamp(64px, 8vw, 112px); }
.chargement-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.chargement-texte > p { margin-top: 18px; color: #333b4c; max-width: 44ch; }
.reglages { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; }
.formats { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats legend, .quantite > label { font-weight: 600; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.formats label { position: relative; }
.formats input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.formats span { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.15; min-height: 44px; padding: 4px 14px; border: 1.5px solid #bfc0b8; border-radius: 6px; background: #fff; font-weight: 600; }
.formats small { font-size: .75rem; font-weight: 500; color: var(--gris); }
.formats input:checked + span { border-color: var(--marine); box-shadow: inset 0 0 0 1px var(--marine); }
.formats input:focus-visible + span { outline: 3px solid var(--marine); outline-offset: 2px; }
.compteur { display: inline-flex; border: 1.5px solid var(--marine); border-radius: 6px; overflow: hidden; background: #fff; }
.compteur button { width: 44px; min-height: 44px; font: inherit; font-size: 1.3rem; background: none; border: 0; cursor: pointer; color: var(--marine); }
.compteur input { width: 60px; text-align: center; font: 700 1.1rem "Hanken Grotesk", sans-serif; border: 0; border-inline: 1.5px solid var(--filet); -moz-appearance: textfield; color: var(--encre); }
.compteur input::-webkit-inner-spin-button, .compteur input::-webkit-outer-spin-button { -webkit-appearance: none; }
.mesures { flex-basis: 100%; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: end; gap: 8px 10px; }
.mesures legend { font-weight: 600; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.mesure { display: grid; gap: 4px; }
.mesure label { font-size: .85rem; color: var(--gris); }
.mesure input { width: 92px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--marine); border-radius: 6px; background: #fff; font: 700 1.05rem "Hanken Grotesk", sans-serif; color: var(--encre); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.mesure input::-webkit-inner-spin-button, .mesure input::-webkit-outer-spin-button { -webkit-appearance: none; }
.mesure input:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }
.mesure input[aria-invalid="true"] { border-color: var(--orange-texte); box-shadow: inset 0 0 0 1px var(--orange-texte); }
.fois { min-height: 44px; display: flex; align-items: center; color: var(--gris); font-weight: 600; }
.alerte { margin: -6px 0 18px; padding: 10px 14px; border-left: 3px solid var(--orange); background: #fff; border-radius: 0 6px 6px 0; font-size: .95rem; color: var(--encre); max-width: 34em; }
.ajout-format { flex-basis: 100%; display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; padding: 0; font: 600 .97rem "Hanken Grotesk", sans-serif; color: var(--marine); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ajout-format:focus-visible, .lot-choisir:focus-visible, .lot-retirer:focus-visible { outline: 3px solid var(--marine); outline-offset: 2px; }
.lots { flex-basis: 100%; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lots li { display: flex; align-items: center; border: 1.5px solid var(--filet); border-radius: 6px; background: #fff; }
.lots li[aria-current="true"] { border-color: var(--marine); box-shadow: inset 0 0 0 1px var(--marine); }
.lot-choisir { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; padding: 8px 12px; text-align: left; font: 600 1rem "Hanken Grotesk", sans-serif; color: var(--encre); background: none; border: 0; cursor: pointer; font-variant-numeric: tabular-nums; }
.lot-choisir small { font-size: .82rem; font-weight: 500; color: var(--gris); }
.lot-retirer { flex: none; width: 44px; min-height: 44px; font-size: 1.3rem; line-height: 1; color: var(--gris); background: none; border: 0; cursor: pointer; }
.lot-retirer:hover { color: var(--orange-texte); }
.gerbe { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.gerbe input { width: 24px; height: 24px; accent-color: var(--marine); }
.ldm { margin: 24px 0 18px; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--marine); }
.ldm-legende { display: block; margin-top: 8px; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--gris); }
.remorque { margin: 0; }
.remorque svg { width: 100%; overflow: visible; }
.rr-sol-ombre { fill: rgba(23, 32, 54, .14); filter: blur(16px); }
.rr-plancher { fill: #e3e5dd; stroke: #7d8494; stroke-width: 2; }
.rr-lame { stroke: rgba(23, 32, 54, .07); stroke-width: 2; }
.rr-paroi { fill: rgba(31, 42, 107, .07); stroke: rgba(31, 42, 107, .3); stroke-width: 2; }
.rr-avant { fill: rgba(31, 42, 107, .1); stroke: rgba(31, 42, 107, .4); stroke-width: 2; }
.rr-ridelle { stroke: rgba(31, 42, 107, .14); stroke-width: 3; }
.rr-arceau { stroke: rgba(31, 42, 107, .3); stroke-width: 2.5; }
.rr-arete { stroke: var(--marine); stroke-width: 3; stroke-linecap: round; }
.rr-chassis { fill: #2a3148; } .rr-roue { fill: #2a3148; stroke: #555d74; stroke-width: 2; }
.rr-cote { font: 700 30px "Hanken Grotesk", sans-serif; fill: var(--gris); }
.rr-ldm, .rr-ldm-fin { stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.pal-bois-dessus { fill: #b98448; } .pal-bois-face { fill: #93622e; } .pal-bois-cote { fill: #744b20; }
.pal-charge-dessus { fill: #f6b768; } .pal-charge-face { fill: #eb8d2c; } .pal-charge-cote { fill: #c76f18; }
.pal-film { stroke: rgba(255, 255, 255, .45); stroke-width: 2; }
.palette { animation: chute .5s cubic-bezier(.2, .9, .25, 1.15) both; }
.semi-arrive { animation: arrivee .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrivee { from { opacity: 0; transform: translateY(80px); } }
@keyframes chute { from { opacity: 0; transform: translateY(-110px); } 60% { opacity: 1; } }
.debord { font: 700 30px "Hanken Grotesk", sans-serif; fill: var(--erreur); }

/* Cotation */
.cotation { padding-block: clamp(64px, 8vw, 112px); background: var(--papier); border-top: 1px solid var(--filet); }
.cotation-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cotation-texte { position: sticky; top: 104px; }
.cotation-texte > p { margin-top: 18px; color: #333b4c; }
.direct { display: grid; gap: 4px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--filet); }
.direct-tel { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; color: var(--encre); text-decoration: none; }
.demande { background: #fff; border: 1px solid var(--filet); border-radius: 10px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; min-width: 0; }
.progression { display: none; list-style: none; padding: 0; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: p; }
.js .progression { display: grid; }
.progression li { counter-increment: p; border-top: 4px solid var(--filet); padding-top: 8px; font-weight: 600; color: var(--gris); font-size: .95rem; }
.progression li::before { content: counter(p) ". "; }
.progression li.active, .progression li.fait { border-color: var(--orange); color: var(--encre); }
.etape { border: 0; padding: 0; min-width: 0; }
.etape legend { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; padding: 0; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.champ.large { grid-column: 1 / -1; }
.facultatif { font-weight: 400; color: var(--gris); }
.type-marchandise { border: 0; padding: 0; margin: 0; min-width: 0; }
.type-marchandise legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: .93rem; }
.cases { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.case { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.case input { width: 22px; height: 22px; flex: none; accent-color: var(--marine); }
.precisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 4px; }
.precisions .champ[hidden] { display: none; }
.consentement { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: .95rem; color: #333b4c; cursor: pointer; }
.consentement input { width: 24px; height: 24px; flex: none; accent-color: var(--marine); }
.recap { margin-top: 16px; padding: 12px 14px; background: var(--ivoire); border-radius: 6px; font-weight: 600; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erreur { color: var(--erreur); font-weight: 600; }
.pied-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.pied-form #envoyer { margin-left: auto; }
.succes { border: 2px solid var(--succes); border-radius: 8px; padding: 22px; background: #eef6f0; }
.succes h3 { color: var(--succes); font-size: 1.4rem; }
.succes p { margin-top: 6px; }
.demande.envoyee > :not(.succes) { display: none; }

/* Pied de page */
.pied { padding-block: 32px; border-top: 1px solid var(--filet); font-size: .92rem; color: var(--gris); }
.pied-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.pied img { width: 72px; }
.pied-liens { display: flex; gap: 20px; }
.barre-mobile { display: none; }

@media (max-width: 1020px) {
  .menu-bouton { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--papier); border-bottom: 1px solid var(--filet); padding: 6px max(20px, env(safe-area-inset-left, 0px)) 20px; }
  .menu.ouvert { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--filet); }
  .menu .btn { margin-top: 16px; }
  .ouverture-grille, .chargement-grille, .cotation-grille, .situations-grille, .metier-tete, .modes-grille { grid-template-columns: minmax(0, 1fr); }
  /* sur tablette et téléphone, la semi passe au-dessus des réglages pour rester visible pendant la saisie */
  .chargement-grille { gap: 0; }
  .chargement-texte { display: contents; }
  .chargement-texte > h2, .chargement-texte > p:first-of-type, .remorque { order: -1; }
  .remorque { margin-top: 20px; }
  .cotation-texte { position: static; }
  .pays { grid-template-columns: minmax(0, 1fr); }
  .pays-france { grid-column: auto; }
  .preuves-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preuves-liste div:nth-child(2n) { border-right: 0; margin-right: 0; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 78px; font-size: 16px; }
  .signature { display: none; }
  .tracer-champs { grid-template-columns: minmax(0, 1fr); }
  .tracer-fleche { display: none; }
  .tracer .btn-contour { justify-self: stretch; }
  .preuves-liste, .situations dl, .etapes, .champs, .precisions { grid-template-columns: minmax(0, 1fr); }
  .preuves-liste div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--filet); padding: 18px 0; }
  .modes-liste div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pied-ligne { grid-template-columns: minmax(0, 1fr); }
  .carte text { font-size: calc(30px * var(--z, 1)); stroke-width: calc(8px * var(--z, 1)); }
  .barre-mobile { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(251, 251, 248, .97); border-top: 1px solid var(--filet); }
  .barre-mobile a { min-height: 48px; padding: 0 10px; font-size: .95rem; white-space: nowrap; }
}

/* Pages annexes : mentions légales, confidentialité, envoi */
.entete-cta { margin-left: auto; }
.page-texte { max-width: 760px; padding-block: clamp(48px, 7vw, 96px); }
.page-texte h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 24px; }
.page-texte h2 { font-size: 1.15rem; margin: 32px 0 8px; }
.page-texte p, .page-texte ul { margin: 0 0 12px; color: #333b4c; }
.page-texte .btn-contour { margin-top: 18px; }
.page-texte mark { background: #fdf1e3; color: var(--orange-texte); padding: 0 4px; }
@media (max-width: 640px) { .entete-cta { min-height: 44px; padding: 0 14px; font-size: .9rem; } }
