/* Same visual language as the printed support (../support):
   Lora + Inter + JetBrains Mono, hairline borders, square corners, mono overlines,
   Meuse blue band (#21518D) and Meuse green accent (#59C134),
   the colours of the département logo. */
:root {
  --ink: #1B2B3F;
  --text-2: #536173;
  --border: #D5DEE8;
  --surface: #F1F5F9;
  --page: #FFFFFF;
  --night: #21518D;
  --accent: #59C134;
  --accent-text: #357A1D;
  --accent-soft: #EEF8E9;
  --accent-line: #C5E8B6;
  --on-night: #9BE07F;
  --on-night-text: #E3EBF5;
  --on-night-muted: #C8D6E8;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 68rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--page); font-size: 1.0625rem; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--page); padding: 0.5rem 1rem; z-index: 10; }

.over { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.wordmark { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark i { color: var(--night); font-weight: 400; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -0.015em; margin-top: 0.5rem; }
h2 em { font-weight: 400; color: var(--night); }
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--border); }

.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 0.8rem 1.4rem; background: var(--accent); color: var(--ink); border: 2px solid var(--accent); }
.btn:hover { background: var(--on-night); border-color: var(--on-night); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }

/* ---------- header ---------- */
.top { padding: 1.25rem 0; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top .wordmark { font-size: 1.6rem; }
.top .over { margin-top: 0.4rem; color: var(--text-2); }
.top .tel { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; text-decoration: none; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { background: var(--night); color: #fff; padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero .over { color: var(--on-night); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.8rem; max-width: 22ch; }
.hero h1 em { display: block; font-style: italic; font-weight: 400; color: var(--on-night); }
.hero .lede { margin-top: 1.4rem; font-size: 1.15rem; color: var(--on-night-text); max-width: 42rem; }
.marks { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; list-style: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--on-night-muted); }
.marks li::before { content: '• '; color: var(--on-night); }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero a:focus-visible { outline-color: var(--on-night); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: var(--on-night-muted); }
.hero .btn.ghost:hover { border-color: #fff; }

/* ---------- prices ---------- */
.plans { margin-top: 2rem; display: grid; border: 1px solid var(--border); }
.plan { padding: 1.6rem 1.6rem 1.2rem; display: flex; flex-direction: column; }
.plan + .plan { border-top: 1px solid var(--accent-line); background: var(--accent-soft); }
@media (min-width: 48rem) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan + .plan { border-top: 0; border-left: 1px solid var(--accent-line); }
}
.plan h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.plan .price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; margin-top: 0.7rem; }
.plan .price small { font-family: var(--sans); font-size: 1rem; color: var(--text-2); letter-spacing: 0; }
.plan .desc { margin-top: 0.7rem; color: var(--text-2); }
.plan ul { list-style: none; margin-top: 0.9rem; }
.plan li { padding: 0.45rem 0 0.45rem 1.4rem; text-indent: -1.4rem; border-top: 1px solid var(--border); }
.plan + .plan li { border-top-color: var(--accent-line); }
.plan li::before { content: '• '; color: var(--accent-text); }
.plan .urgent { margin-top: auto; padding-top: 1.2rem; }
.plan .urgent h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; }
.fine { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-2); }

/* ---------- getting started ---------- */
.start { background: var(--surface); border-left: 6px solid var(--accent); padding: 1.8rem 1.6rem; margin-top: 2rem; }
.start h2 { font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.steps { margin-top: 1.6rem; display: grid; gap: 1.4rem; list-style: none; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { display: flex; gap: 0.9rem; counter-increment: step; }
.steps li::before { content: '0' counter(step); flex: none; width: 2.2rem; height: 2.2rem; border: 1px solid var(--accent); background: var(--page); font-family: var(--mono); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; color: var(--accent-text); }
.steps h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.steps p { color: var(--text-2); font-size: 0.97rem; margin-top: 0.2rem; }

/* ---------- scope ---------- */
.scope { list-style: none; margin-top: 1.6rem; display: grid; column-gap: 2rem; }
@media (min-width: 40rem) { .scope { grid-template-columns: 1fr 1fr; } }
.scope li { padding: 0.6rem 0 0.6rem 1.4rem; text-indent: -1.4rem; border-top: 1px solid var(--border); }
.scope li::before { content: '• '; color: var(--accent-text); }
.area { margin-top: 2.4rem; }
.area h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.area p { margin-top: 0.5rem; color: var(--text-2); max-width: 34rem; }

/* Croix des distances : Verdun au nord, Revigny à l'ouest, Saint-Mihiel à l'est, Bar-le-Duc au sud.
   Les noms et les durées ont le fond de la page : ils masquent les traits qui passent dessous. */
.map { position: relative; margin: 1.6rem auto 0; max-width: 26rem; aspect-ratio: 100 / 125; }
.map .lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .lines path { fill: none; stroke: var(--text-2); stroke-opacity: 0.55; stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.map .lines-wide { display: none; }
.map .home, .map .city, .map .time { position: absolute; z-index: 1; background: var(--page); line-height: 1.3; }
.map .home, .map .city { padding: 0.2rem 0.5rem; }
.map .home { left: 50%; top: 30.4%; transform: translate(-50%, -50%); margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; }
.map .time { padding: 0.3rem 0.4rem; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); white-space: nowrap; }
.dist { list-style: none; }
.dist .n .city { left: 50%; top: 0; transform: translateX(-50%); }
.dist .s .city { left: 50%; bottom: 0; transform: translateX(-50%); }
.dist .w .city { left: 0; top: 62.4%; transform: translateY(-50%); max-width: 45%; padding-left: 0; }
.dist .e .city { right: 0; top: 62.4%; transform: translateY(-50%); max-width: 45%; padding-right: 0; text-align: right; }
.dist .n .time { left: 50%; top: 14.4%; }
.dist .s .time { left: 50%; top: 82.4%; }
.dist .w .time { left: 35%; top: 46.4%; }
.dist .e .time { left: 66%; top: 46.4%; }
@media (min-width: 48rem) {
  .map { max-width: none; aspect-ratio: 7 / 2; }
  .map .lines-wide { display: block; }
  .map .lines-narrow { display: none; }
  .map .home { top: 50%; }
  .dist .w .city, .dist .e .city { top: 50%; max-width: none; }
  .dist .n .time { top: 25%; }
  .dist .s .time { top: 75%; }
  .dist .w .time { left: 30%; top: 50%; }
  .dist .e .time { left: 70%; top: 50%; }
}

/* ---------- contact ---------- */
.contact { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.contact .wrap { position: relative; }
/* Contour de la Meuse en fond du haut de page et du contact (décoratif, même tracé via <use>). */
.meuse { position: absolute; right: -4rem; bottom: -2rem; height: 65%; width: auto; }
.meuse { fill: #2A5C9C; }
@media (min-width: 48rem) { .meuse { right: max(2rem, calc((100% - var(--wrap)) / 2 + 2rem)); top: -8%; bottom: auto; height: 116%; } }
.contact .over { color: var(--on-night); }
.contact h2 em { color: var(--on-night); }
.call { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.call img { width: 7.5rem; height: 7.5rem; object-fit: cover; }
.call .tel { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.1; color: #fff; text-decoration: none; white-space: nowrap; }
.call .mail { display: inline-block; margin-top: 0.4rem; color: var(--on-night); overflow-wrap: anywhere; }
.call .days { margin-top: 0.3rem; color: var(--on-night-muted); }
.contact a:focus-visible { outline-color: var(--on-night); }

/* ---------- footer ---------- */
.foot { padding: 1.6rem 0 2rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; }
.foot a { color: var(--text-2); }

/* ---------- legal page ---------- */
.legal { padding: 2.5rem 0 3.5rem; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; margin-top: 0.5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal p, .legal address { margin-top: 0.6rem; font-style: normal; max-width: 44rem; }
