/* Direction « Atlas » — carte de territoire : marine, sable, ambre ; Fraunces + Figtree + IBM Plex Mono.
 * Six escales, une route, et Maya qui y conduit. */

.dir-atlas {
  --bg: #0d2b36; --bg2: #143f50; --ink: #ece4cf; --soft: #d2d0c0; --line: rgba(236, 228, 207, .2);
  --card: #143f50; --card-alt: #0d2b36; --acc: #f0b840; --on-acc: #0a1f27; --link: #f0b840; --focus: #f0b840; --mark: #f0b840;
  --bub: #ece4cf; --on-bub: #0a1f27; --bub-who: #2b5a68; --kick: #7cc0cc; --bd: rgba(236, 228, 207, .6); --star: #f0b840;
  --hf: 'Fraunces', Georgia, serif; --hw: 600; --hls: -.02em;
  --bf: 'Figtree', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --br: 999px; --cr: 16px; --nav-bg: #0d2b36; --menu-hover: rgba(236, 228, 207, .12);
  --field-bg: #ece4cf; --field-ink: #0a1f27; --field-bd: #7cc0cc;
  color-scheme: dark;
  background-image: radial-gradient(rgba(236, 228, 207, .11) 1px, transparent 1.3px);
  background-size: 28px 28px;
}
.dir-atlas .nav { border-bottom: 1px solid var(--line); }
.dir-atlas .brand { font: 600 24px/1 'Fraunces', Georgia, serif; letter-spacing: -.01em; text-decoration: none; }
.dir-atlas .brand em { color: var(--acc); font-style: normal; }
.dir-atlas .nav .l { font-weight: 500; }
.dir-atlas .btn-g:hover { background: rgba(236, 228, 207, .12); }
.dir-atlas .btn-p:hover { background: #f6c963; }
.dir-atlas a.card:hover { border-color: var(--acc); }
.dir-atlas .post .tag { border-color: var(--kick); color: var(--kick); }
.dir-atlas .post h4 { color: var(--ink); }

/* Haut de page */
.dir-atlas .hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.dir-atlas .contours { position: absolute; inset: 0; background: url(/assets/accueil/atlas-contours.svg) center / cover no-repeat; pointer-events: none; }
.hero-in {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 28fr) minmax(0, 30fr);
  column-gap: clamp(16px, 3vw, 44px); width: 100%; max-width: 1360px; min-height: 624px; margin: 0 auto; padding: 52px var(--gut) 0;
}
.dir-atlas .copy { min-width: 0; align-self: start; }
.dir-atlas h1 { font: 600 clamp(2rem, 4.4vw, 4.1rem)/1.03 'Fraunces', Georgia, serif; letter-spacing: -.02em; margin: 14px 0 18px; }
.dir-atlas .lead { font-size: 17px; max-width: 44ch; color: var(--soft); margin: 0 0 24px; }
.dir-atlas .cta { display: flex; flex-wrap: wrap; gap: 12px; }

.map { position: relative; align-self: stretch; min-height: 400px; margin: 4px 0 40px; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-dasharray: 1 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pin {
  position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -22px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
}
.pin b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--acc); color: var(--on-acc);
  font: 700 18px/1 'Figtree', sans-serif; box-shadow: 0 0 0 6px rgba(240, 184, 64, .2); transition: transform .15s ease, box-shadow .15s ease;
}
.pin i { padding: 4px 11px; border-radius: 999px; background: var(--ink); color: #0a1f27; font: 600 14px/1.2 'Figtree', sans-serif; font-style: normal; white-space: nowrap; }
.pin:hover b, .pin:focus-visible b { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(240, 184, 64, .35); }
.pin:focus-visible { outline-offset: 8px; border-radius: 22px; }
.pin.on b { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--ink); }

.hero-who { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; min-width: 0; padding-top: 34px; }
.dir-atlas .hero-who .bubble { width: 100%; max-width: none; font-size: 15px; }
.dir-atlas .hero-who .bubble::after { left: auto; right: 16%; margin: 0; }
.dir-atlas .hero-who .more { display: inline-flex; margin-top: 10px; color: #0a4a5c; }
.dir-atlas .hero-who .maya { display: block; width: auto; height: clamp(300px, 34vw, 480px); max-width: 100%; object-fit: contain; margin-right: 2%; }

.parc { background: var(--bg2); padding: 26px 0 40px; }
.parc h2 { font: 600 30px/1.15 'Fraunces', Georgia, serif; margin: 6px 0 0; letter-spacing: -.01em; }
.parc .grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.parc .card { padding: 12px 0 0; border: 0; border-top: 2px solid var(--acc); border-radius: 0; background: none; }
.parc .card:hover { transform: none; border-top-color: var(--ink); }
.parc .card small { font: 500 12px/1 'IBM Plex Mono', monospace; color: var(--acc); }
.parc .card h3 { margin: 8px 0 6px; font-size: 1.25rem; }
.parc .card p { font-size: 14px; line-height: 1.5; color: var(--soft); }

/* Scènes (escales) */
.dir-atlas .num {
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--acc); color: var(--on-acc);
  font: 700 20px/1 'Figtree', sans-serif; letter-spacing: 0; box-shadow: 0 0 0 6px rgba(240, 184, 64, .2);
}
.route-dots { display: flex; gap: 6px; margin: -4px 0 16px; padding: 0; list-style: none; }
.route-dots li { width: 24px; height: 4px; border-radius: 2px; background: var(--line); }
.route-dots li.on { background: var(--acc); }

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .map { grid-column: 1 / -1; grid-row: 2; min-height: 340px; margin: 0 0 40px; }
  .parc .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero-in { display: flex; flex-direction: column; gap: 22px; min-height: 0; padding: 26px 16px 8px; }
  .dir-atlas h1 { font-size: 2.2rem; }
  .dir-atlas .lead { font-size: 16px; margin-bottom: 18px; }
  .hero-who { flex-direction: row-reverse; align-items: flex-end; justify-content: flex-start; gap: 14px; padding-top: 0; }
  .dir-atlas .hero-who .maya { width: 104px; height: auto; flex: none; margin: 0; }
  .dir-atlas .hero-who .bubble { flex: 1; width: auto; margin-bottom: 26px; }
  .dir-atlas .hero-who .bubble::after { left: -7px; right: auto; bottom: 26px; width: 14px; height: 14px; }
  .map { height: 330px; min-height: 0; margin: 0 0 12px; }
  .pin i { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .parc { padding: 24px 0 28px; }
  .parc .grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
