/* Librairie de la Bourse — « La Maison des Cartes » */
:root {
  --ink: #1E2A55;
  --ink-2: #2B3A70;
  --paper: #F4EFE3;
  --paper-2: #EAE2CF;
  --ign: #E3A92B;
  --sea: #17628C;
  --wood: #3F1D16;
  --wood-2: #5A2A1E;
  --tile: #8E3B2E;
  --text: #1C1A17;
  --muted: #5A5246;
  --line: rgba(30, 42, 85, .18);

  --f-display: "Bodoni Moda", "Didot", Georgia, serif;
  --f-text: "Newsreader", Georgia, "Times New Roman", serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;

  --wrap: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --radius: 2px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: clamp(1.06rem, .3vw + 1rem, 1.18rem);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  /* graticule */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
  background-attachment: fixed;
  overflow-x: hidden;
}
body::before { /* veil to soften the graticule */
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 30% 20%, rgba(244,239,227,.55), rgba(244,239,227,.85));
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ign); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); line-height: 1.05; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.label, .kicker {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; font-size: .85rem; color: var(--tile);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  font-family: var(--f-label); font-weight: 600; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .98rem; }
.btn:active { transform: translateY(1px); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 227, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { max-width: var(--wrap); margin: 0 auto; padding: .55rem var(--pad); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; min-height: 44px; justify-content: center; }
.brand__small { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .32em; font-size: .72rem; font-weight: 600; }
.brand__big { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.nav { display: none; margin-left: auto; gap: .25rem; }
.nav a {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none; padding: .7rem .7rem; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ign); }
.topbar__call { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .topbar__call { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; border-bottom: 2px solid var(--ink); }
.hero__photo { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; object-position: 50% 45%; }
.hero__sheet { padding: 2rem var(--pad) 2.5rem; position: relative; background: var(--paper); }
.coords { font-family: var(--f-label); letter-spacing: .2em; font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; font-weight: 500; }
.cartouche {
  border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px;
  padding: 1.4rem 1.2rem 1.2rem; margin: 6px 6px 1.75rem; text-align: center; background: #F8F4EA;
}
.cartouche__over { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; font-weight: 600; color: var(--sea); margin-bottom: .6rem; }
.cartouche__title { text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .1em; }
.t-small { font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: .14em; font-weight: 700; }
.t-mid { font-family: var(--f-label); font-size: clamp(.95rem, 3vw, 1.15rem); letter-spacing: .4em; font-weight: 600; }
.t-big { font-size: clamp(3rem, 15vw, 5.6rem); font-weight: 800; letter-spacing: .03em; line-height: .95; }
.cartouche__since {
  margin: .9rem 0 0; font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: .5rem; border-top: 1px solid var(--ink); padding-top: .55rem;
}
.cartouche__since span { font-family: var(--f-label); text-transform: uppercase; font-size: .8rem; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.hero__promise { font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); line-height: 1.45; font-style: italic; color: var(--text); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero__status { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; color: var(--muted); margin: 0; display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.hero__status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); flex: none; }
.hero__status.is-open { color: #1D5B2E; }
.hero__status.is-open::before { background: #2E8B4A; box-shadow: 0 0 0 3px rgba(46,139,74,.2); }
.hero__status.is-closed::before { background: var(--tile); }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.35fr 1fr; min-height: calc(100vh - 64px); max-height: 900px; }
  .hero__photo img { aspect-ratio: auto; position: absolute; inset: 0; }
  .hero__sheet { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem clamp(2rem, 4vw, 4rem); border-left: 2px solid var(--ink); }
  .hero__sheet .cartouche { margin-left: 6px; margin-right: 6px; }
}

/* ---------- IGN yellow band ---------- */
.ign-band { background: var(--ign); color: var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; }
.ign-band__track {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem; padding: .85rem var(--pad);
  font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(.95rem, .5vw + .85rem, 1.15rem);
  max-width: var(--wrap); margin: 0 auto; text-align: center;
}


/* ---------- sections ---------- */
.section { padding: var(--sec) 0; position: relative; }
.sec-head { position: relative; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 52rem; }
.sec-head h2 { text-wrap: balance; }
.sec-head h2 { font-size: clamp(2.1rem, 4.6vw + .5rem, 3.9rem); letter-spacing: -.005em; }
.kicker { margin-bottom: .75rem; display: flex; align-items: center; gap: .75rem; }
.kicker::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }
.grid-ref {
  position: absolute; right: 100%; top: .1rem; margin-right: 1.25rem;
  font-family: var(--f-label); font-weight: 700; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--ink); width: 2.6rem; height: 2.6rem; display: none; align-items: center; justify-content: center;
}
@media (min-width: 1320px) { .grid-ref { display: flex; } }

/* histoire */
.histoire__grid { display: grid; gap: 3rem; }
.lead { font-size: clamp(1.2rem, .8vw + 1rem, 1.42rem); line-height: 1.5; }
.quote { margin: 2rem 0; padding: 1.5rem 0 1.5rem 1.5rem; border-left: 4px solid var(--ign); }
.quote p { font-family: var(--f-display); font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem); line-height: 1.3; color: var(--ink); font-weight: 600; font-style: italic; margin-bottom: .75rem; }
.quote footer { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; font-weight: 600; color: var(--text); }
.quote .src { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }

.route { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; }
.route::before { /* dashed itinerary */
  content: ""; position: absolute; left: .7rem; top: .6rem; bottom: .6rem;
  border-left: 3px dashed var(--tile);
}
.route__stop { position: relative; padding-bottom: 2rem; }
.route__stop:last-child { padding-bottom: 0; }
.route__stop::before {
  content: ""; position: absolute; left: -2.25rem; top: .35rem; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); margin-left: .25rem;
}
.route__stop--now::before { background: var(--ign); width: 1.35rem; height: 1.35rem; margin-left: .15rem; top: .25rem; }
.route__year { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem); color: var(--ink); line-height: 1.1; }
.route__label { display: block; color: var(--text); max-width: 32ch; }
.histoire__fig { margin: clamp(3rem, 6vw, 4.5rem) 0 0; display: grid; gap: 1rem; }
.histoire__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 62%; border: 2px solid var(--ink); }
.histoire__fig figcaption { font-style: italic; color: var(--muted); font-size: 1rem; }
@media (min-width: 900px) {
  .histoire__grid { grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .route { margin-top: .5rem; }
  .histoire__fig img { aspect-ratio: 21 / 9; }
}

/* rayons — dark wood */
.rayons {
  background: var(--wood); color: #F1E8D6;
  background-image:
    linear-gradient(rgba(241,232,214,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,232,214,.05) 1px, transparent 1px);
  background-size: 120px 120px;
}
.sec-head--light h2 { color: #FBF6EA; }
.sec-head--light .kicker { color: var(--ign); }
.sec-head--light .grid-ref { color: #FBF6EA; border-color: #FBF6EA; }
.rayons__layout { display: grid; gap: 3rem; }
.big-number { font-family: var(--f-display); font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); color: #FBF6EA; line-height: 1; margin-bottom: 1.25rem; font-weight: 700; }
.big-number span { display: block; font-size: clamp(4.5rem, 12vw, 8.5rem); color: var(--ign); font-weight: 800; letter-spacing: -.02em; }
.rayons__feature > p:not(.big-number) { max-width: 36ch; }
.tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .9rem;
  border: 1.5px solid rgba(241,232,214,.5); padding: .3rem .7rem;
}
.gazetteer { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(241,232,214,.25); }
.gazetteer li { display: flex; align-items: baseline; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid rgba(241,232,214,.25); }
.g-name { font-family: var(--f-display); font-size: clamp(1.1rem, .6vw + 1rem, 1.35rem); font-weight: 600; color: #FBF6EA; }
.g-dots { flex: 1; border-bottom: 2px dotted rgba(241,232,214,.35); min-width: 1rem; transform: translateY(-.3em); }
.g-ref { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: #E9C77D; font-weight: 600; white-space: nowrap; }
.rayons__foot { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--ign); display: grid; gap: 1rem; }
.rayons__foot p { margin: 0; max-width: 60ch; }
.rayons__foot strong { color: #FBF6EA; }
.pay .label { color: var(--ign); margin-right: .6rem; }
@media (min-width: 900px) {
  .rayons__layout { grid-template-columns: 1fr 1.25fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .rayons__foot { grid-template-columns: 1.4fr 1fr; align-items: center; }
}

/* galerie */
.mosaic { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.m { margin: 0; overflow: hidden; border: 2px solid var(--ink); background: var(--paper-2); }
.m img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.m:hover img { transform: scale(1.03); }
.m--wide { grid-column: span 2; aspect-ratio: 4 / 3; }
.m:not(.m--wide) { aspect-ratio: 3 / 4; }
@media (max-width: 899px) { .m--tall { grid-column: span 2; aspect-ratio: 4 / 3 !important; } }
.m--tall img { object-position: 50% 75%; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 1rem; }
  .mosaic .m { aspect-ratio: auto; grid-column: auto; grid-row: auto; }
  .mosaic .m:nth-child(1) { grid-row: 1 / span 2; }
  .mosaic .m:nth-child(3) img { object-position: 50% 40%; }
}

/* avis */
.rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); margin-bottom: 2.5rem; }
.rating strong { font-family: var(--f-display); font-size: 3rem; color: var(--ink); letter-spacing: 0; line-height: 1; }
.stars { color: #9A6B0B; letter-spacing: .15em; font-size: 1.2rem; }
.reviews { display: grid; gap: 1.5rem; }
.review { margin: 0; padding: 1.5rem 0 0; border-top: 2px solid var(--ink); }
.review p { font-size: 1.15rem; line-height: 1.5; margin-bottom: .8rem; }
.review footer { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--tile); font-size: .95rem; }
.review footer::before { content: "— "; }
.review--lg p { font-family: var(--f-display); font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); line-height: 1.2; color: var(--ink); font-weight: 600; font-style: italic; }
@media (min-width: 900px) {
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
  .review--lg { grid-column: 1 / -1; padding-top: 2rem; }
  .review--lg p { max-width: 28ch; }
}

/* infos */
.infos { border-top: 2px solid var(--ink); }
.infos__grid { display: grid; gap: 2.5rem; }
.infos__card h3 { font-size: 1.6rem; margin: 0 0 1rem; }
.infos__card h3:not(:first-child) { margin-top: 2.25rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px dotted rgba(30,42,85,.35); vertical-align: top; }
.hours th { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink); padding-right: 1rem; width: 7.5rem; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { background: rgba(227,169,43,.28); }
.hours tr.is-today th { padding-left: .5rem; }
address { font-style: normal; font-size: 1.15rem; line-height: 1.6; }
address a { font-weight: 500; display: inline-block; padding: .4rem 0; min-height: 44px; }
.access { margin-top: 1rem; }
.access .label { margin-right: .5rem; }
.infos__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.infos__map { position: relative; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; margin: 6px; background: var(--paper-2); min-height: 340px; }
.infos__map iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: sepia(.25) saturate(.85); }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; text-align: center; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--ink); }
.map-fallback strong { font-family: var(--f-display); text-transform: none; letter-spacing: 0; font-size: 1.6rem; }
.scale { z-index: 2; }
.scale { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; display: flex; align-items: center; background: rgba(244,239,227,.92); padding: .4rem .6rem; gap: 0; }
.scale span { width: 22px; height: 6px; border: 1px solid var(--ink); }
.scale span:nth-child(odd) { background: var(--ink); }
.scale em { font-family: var(--f-label); font-style: normal; font-size: .8rem; letter-spacing: .08em; margin-left: .5rem; color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .infos__grid { grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .infos__map, .infos__map iframe { min-height: 520px; }
}

/* footer */
.footer { background: var(--ink); color: #E6E3EF; padding: 3rem 0 calc(3rem + var(--bar-h)); }
.footer a { color: #FBF6EA; }
.footer a:hover { color: var(--ign); }
.footer__inner { display: grid; gap: 1.5rem; }
.footer__name { font-family: var(--f-display); text-transform: uppercase; font-weight: 800; font-size: 1.6rem; color: #FBF6EA; margin-bottom: .5rem; letter-spacing: .03em; }
.footer__credits { font-size: .92rem; color: #C9CBDB; margin: 0; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; align-items: end; } .footer__credits { text-align: right; } }

/* mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); border-top: 3px solid var(--ign);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  min-height: 60px; color: #FBF6EA; text-decoration: none;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .9rem;
}
.actionbar a + a { border-left: 1px solid rgba(251,246,234,.18); }
.actionbar svg { width: 20px; height: 20px; fill: var(--ign); }
.actionbar a:focus-visible { outline-offset: -4px; box-shadow: none; }
body { --bar-h: 64px; }
@media (min-width: 960px) { .actionbar { display: none; } body { --bar-h: 0px; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* band separators stay attached to their label */
.ign-band__track span:not(:last-child)::after { content: "◆" / ""; font-size: .65em; margin-left: 1.1rem; vertical-align: .15em; }
.rayons__foot .src { color: #D9CDB4; font-size: .9em; font-style: italic; }
