/*
  encre-de-paris.css — "Paris ink"
  ------------------------------------------------------------
  Signature idea: the enamel street-name plaque bolted to the
  corner of every Parisian building (rue de la Tour-Eiffel style)
  is reused as the header device for every page and section.
  Practical-info boxes borrow the oval outline of a passport
  entry stamp; "nearby" tags borrow the coloured roundel of a
  métro line number. All three are things a tourist actually
  holds or looks up at during a trip — the chrome IS the subject.
*/

:root {
  --encre: #0f2038;       /* ink navy, sampled from the mark */
  --encre-soft: #1c3155;
  --rouge: #e0483f;       /* rouge, sampled from the mark */
  --rouge-deep: #b73a33;
  --papier: #faf7f1;      /* warm paper, not stark white */
  --papier-carte: #ffffff;
  --or: #b58a3d;          /* worn brass, for stamps/plaques */
  --gris: #52596b;
  --ligne: #ded3bd;
  --ombre: 0 18px 40px -22px rgba(15, 32, 56, 0.45);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --script: "Caveat", "Segoe Script", cursive;
  --mono: "Space Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* language-family overrides swap the display face for something
   that actually renders instead of tofu, while keeping colour
   and rhythm identical across all ten editions of the site */
[data-script="cjk-jp"], [data-script="cjk-zh"], [data-script="cjk-kr"] {
  --serif: "Noto Serif JP", "Noto Serif SC", "Noto Serif KR", "Hiragino Mincho ProN", serif;
  --script: var(--serif);
  --sans: "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", sans-serif;
}
[data-script="arabic"] {
  --serif: "Noto Naskh Arabic", "Traditional Arabic", serif;
  --script: var(--serif);
  --sans: "Noto Kufi Arabic", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------
   COMPASS NAV — a horizontal bar that behaves like a wayfinding
   rose: brand at the pin, topics as bearings, language as a
   stamp you tap.
------------------------------------------------------------------ */
.compas-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: .7rem 1.5rem;
  background: var(--encre);
  color: var(--papier);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--ombre);
}
.compas-nav__mark {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.compas-nav__mark img { height: 52px; width: auto; display: block; }
.compas-nav__routes {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  margin-inline-start: .5rem;
  flex: 1;
}
.compas-nav__routes a {
  color: var(--papier);
  opacity: .78;
  text-decoration: none;
  font-size: .92rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.compas-nav__routes a:hover,
.compas-nav__routes a[aria-current="page"] {
  opacity: 1;
  border-color: var(--rouge);
}
.tampon-lang {
  position: relative;
}
.tampon-lang__bouton {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: transparent;
  color: var(--papier);
  border: 1.5px dashed rgba(250, 247, 241, .55);
  border-radius: 999px;
  padding: .4rem .9rem;
  cursor: pointer;
}
.tampon-lang__liste {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .5rem);
  background: var(--papier-carte);
  color: var(--encre);
  border-radius: 10px;
  box-shadow: var(--ombre);
  padding: .4rem;
  min-width: 190px;
  max-height: 60vh;
  overflow-y: auto;
}
.tampon-lang__liste.est-ouvert { display: block; }
.tampon-lang__liste a {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .6rem;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  font-size: .92rem;
}
.tampon-lang__liste a:hover { background: var(--papier); }
.tampon-lang__liste a[aria-current="true"] { color: var(--rouge); font-weight: 600; }
.tampon-lang__tout {
  border-top: 1px dashed var(--ligne);
  margin-top: .3rem;
  padding-top: .7rem !important;
  color: var(--gris) !important;
  font-size: .84rem !important;
}

/* ---------------------------------------------------------------
   THE PLAQUE — signature element. An enamel street-sign header,
   reused for every topic page and, smaller, for every section.
------------------------------------------------------------------ */
.plaque {
  --plaque-pad: 1.9rem;
  margin: 2.5rem auto 0;
  max-width: 920px;
  background: var(--encre);
  color: var(--papier-carte);
  border: 3px solid var(--papier-carte);
  outline: 7px solid var(--encre);
  outline-offset: -12px;
  padding: var(--plaque-pad) calc(var(--plaque-pad) + .4rem);
  text-align: center;
  position: relative;
  box-shadow: var(--ombre);
}
.plaque::before, .plaque::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--or);
  top: 10px;
}
.plaque::before { inset-inline-start: 10px; }
.plaque::after  { inset-inline-end: 10px; }
.plaque__eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 .6rem;
}
.plaque__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0;
  line-height: 1.08;
}
.plaque__title-local {
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .02em;
  opacity: .72;
  margin: .5rem 0 0;
}
.plaque__tagline {
  font-family: var(--script);
  color: var(--rouge);
  background: var(--papier-carte);
  display: inline-block;
  padding: .1rem .9rem;
  border-radius: 999px;
  margin-top: .9rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
}

/* mini plaque used for in-page section headers */
.plaque--mini {
  --plaque-pad: 1rem;
  outline-width: 4px;
  outline-offset: -8px;
  border-width: 2px;
  margin: 3rem auto 0;
  max-width: 640px;
}
.plaque--mini .plaque__title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

/* ---------------------------------------------------------------
   CARNET PAGE — the "notebook" body: a ruled left margin like a
   travel journal, red twine-stitch dividers between sections.
------------------------------------------------------------------ */
.carnet-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.75rem 5rem;
}
.carnet-feuillet {
  background: var(--papier-carte);
  border: 1px solid var(--ligne);
  border-inline-start: 10px solid var(--encre);
  padding: 2.4rem clamp(1.25rem, 4vw, 3rem);
  box-shadow: var(--ombre);
}
.carnet-feuillet > .intro {
  font-size: 1.18rem;
  max-width: 62ch;
}
.couture {
  border: none;
  border-top: 2px dashed var(--rouge);
  opacity: .55;
  margin: 2.6rem 0;
}

.reperes {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.reperes li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .8rem;
  align-items: start;
}
.reperes li::before {
  content: "✦";
  color: var(--rouge);
  font-size: 1rem;
  line-height: 1.6;
}

/* passport-stamp style practical-info box */
.tampon-pratique {
  margin-top: 2.2rem;
  border: 2px solid var(--rouge);
  border-radius: 130px / 40px;
  padding: 1.4rem 2rem;
  transform: rotate(-1deg);
  position: relative;
  color: var(--rouge-deep);
}
.tampon-pratique::before {
  content: attr(data-label);
  position: absolute;
  top: -.75rem;
  inset-inline-start: 1.6rem;
  background: var(--papier-carte);
  padding: 0 .6rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tampon-pratique dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0;
  font-family: var(--sans);
  color: var(--encre);
}
.tampon-pratique dt {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rouge-deep);
  align-self: center;
}
.tampon-pratique dd { margin: 0; }

/* métro-roundel "nearby" tags */
.roundels {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.roundel {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: .35rem .9rem .35rem .35rem;
  font-size: .88rem;
}
.roundel__pastille {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: .68rem;
  flex-shrink: 0;
}
.roundel__nom { color: var(--encre); }
.roundel__genre { color: var(--gris); font-size: .8rem; }

/* home / language-index grid of destination cards */
.grille-destinations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}
.carte-destination {
  background: var(--papier-carte);
  border: 1px solid var(--ligne);
  border-top: 5px solid var(--encre);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.carte-destination:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.carte-destination__eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or);
}
.carte-destination__titre {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: .3rem 0 .4rem;
}
.carte-destination__tagline {
  font-family: var(--script);
  color: var(--rouge);
  font-size: 1.15rem;
}

/* language landing / root picker */
.passeport {
  max-width: 720px;
  margin: 4vh auto;
  text-align: center;
  padding: 0 1.5rem;
}
.passeport__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem;
  margin-top: 2.2rem;
}
.passeport__lien {
  border: 1.5px solid var(--encre);
  padding: 1rem .6rem;
  text-decoration: none;
  color: var(--encre);
  font-family: var(--sans);
  display: block;
}
.passeport__lien:hover { background: var(--encre); color: var(--papier); }
.passeport__drapeau { font-size: 1.5rem; display: block; margin-bottom: .3rem; }

/* ---------------------------------------------------------------
   IMAGES — hero banner, "postcard" 4:5 tucked into the notebook
   page, and destination-card thumbnails. Every <img> here can
   silently resolve to a 1×1 transparent pixel (see compas/gabarit.js)
   until the real photo lands at /images/<slug>[-hero].webp — the
   .est-vide class is added by that same onerror handler so the
   reserved space collapses to a quiet paper-coloured plate instead
   of a broken-image glyph.
------------------------------------------------------------------ */
.heros {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  aspect-ratio: 16 / 6;
  background: var(--encre-soft);
  overflow: hidden;
  border-bottom: 3px solid var(--rouge);
  position: relative;
}
.heros__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.heros__img.est-vide { opacity: 0; }

.carte-postale {
  float: right;
  width: min(230px, 40%);
  margin: 0 0 1rem 1.5rem;
  background: var(--papier-carte);
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre);
  padding: .5rem .5rem 1rem;
  transform: rotate(2deg);
}
.carte-postale img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--papier);
}
.carte-postale img.est-vide {
  background: repeating-linear-gradient(135deg, var(--papier), var(--papier) 10px, #f0ead9 10px, #f0ead9 20px);
}

.carte-destination__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--papier);
  margin-bottom: .9rem;
}
.carte-destination__photo.est-vide { display: none; }

@media (max-width: 640px) {
  .heros { aspect-ratio: 4 / 3; margin-top: 0; }
  .carte-postale { float: none; width: min(280px, 70%); margin: 0 auto 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .carte-postale { transform: none; }
}

footer.semelle {
  border-top: 1px solid var(--ligne);
  margin-top: 4rem;
  padding: 2rem 1.75rem 3rem;
  text-align: center;
  color: var(--gris);
  font-size: .85rem;
}
footer.semelle a { color: var(--encre); }
footer.semelle .semelle__reseau {
  max-width: 52ch;
  margin: .6rem auto;
  font-size: .78rem;
  opacity: .85;
}

/* a missing photo hides its whole reserved box instead of leaving an
   empty aspect-ratio plate — see onerr() in compas/gabarit.js */
.est-cache { display: none !important; }

/* ---------------------------------------------------------------
   SHARE BAR — sits at the bottom of every topic page.
------------------------------------------------------------------ */
.partage {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--ligne);
  text-align: center;
}
.partage__label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 0 0 .7rem;
}
.partage__icones {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.partage__bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--papier);
  border: 1px solid var(--ligne);
  color: var(--encre);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.partage__bouton:hover { background: var(--encre); color: var(--papier-carte); }
.partage__copier.est-copie { background: var(--rouge); color: #fff; border-color: var(--rouge); }

/* ---------------------------------------------------------------
   AFFILIATE BOX — small, non-intrusive CTAs near the bottom of a
   topic page, above the share bar.
------------------------------------------------------------------ */
.tampon-affilie {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
}
.bouton-affilie {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--or);
  border-radius: 999px;
  color: var(--encre);
  text-decoration: none;
  font-size: .84rem;
  background: var(--papier);
}
.bouton-affilie:hover { background: var(--or); color: #fff; }

/* ---------------------------------------------------------------
   EXTENDED CONTENT — long-form sections, FAQ accordion, sources
   list, related-pages nav, and the "last updated" byline. All
   optional per-topic (see carnet/*.carte.js t.sections / t.faq /
   t.sources) except the byline and related nav, which render on
   every topic page automatically.
------------------------------------------------------------------ */
.section-body { max-width: 68ch; }
.section-body p { margin: 0 0 1.1rem; }
.section-body ul, .section-body ol { padding-inline-start: 1.3rem; }
.section-body table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
.section-body th, .section-body td { border: 1px solid var(--ligne); padding: .5rem .7rem; text-align: start; }
.section-body th { background: var(--papier); font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }

.faq-liste { max-width: 68ch; }
.faq-item {
  border: 1px solid var(--ligne);
  border-inline-start: 4px solid var(--or);
  padding: .8rem 1.1rem;
  margin-bottom: .7rem;
  background: var(--papier-carte);
}
.faq-item summary { cursor: pointer; font-family: var(--serif); font-weight: 600; }
.faq-item p { margin: .7rem 0 0; }

.sources-liste { max-width: 68ch; padding-inline-start: 1.2rem; font-size: .92rem; }
.sources-liste li { margin-bottom: .4rem; }

.meta-byline {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--gris);
  text-align: center;
}

.associes__liste {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.lien-associe {
  display: inline-block;
  padding: .4rem 1rem;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: var(--papier);
  color: var(--encre);
  text-decoration: none;
  font-size: .86rem;
}
.lien-associe:hover { background: var(--encre); color: var(--papier-carte); }

/* ---------------------------------------------------------------
   PARIS MAP — quartiers/<lang>/paris-map.html
------------------------------------------------------------------ */
.filtre-carte {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.filtre-carte__bouton {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--encre);
  background: var(--papier-carte);
  color: var(--encre);
  cursor: pointer;
}
.filtre-carte__bouton.est-actif { background: var(--encre); color: var(--papier-carte); }
.carte-paris {
  margin-top: 1.2rem;
  height: min(70vh, 640px);
  min-height: 360px;
  width: 100%;
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre);
}
.carte-pastille span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 32, 56, .4);
}

@media (max-width: 640px) {
  .compas-nav { flex-wrap: wrap; }
  .compas-nav__routes { order: 3; width: 100%; }
  .tampon-pratique dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte-destination { transition: none; }
}

/* right-to-left flip for Arabic edition — logical properties above
   already do most of the work; this covers the few physical ones */
[dir="rtl"] .reperes li { grid-template-columns: 1fr 1.6rem; }
[dir="rtl"] .reperes li::before { grid-column: 2; }
[dir="rtl"] .tampon-pratique { transform: rotate(1deg); }

/* 2026-08-29 navigation repair: keep the global header compact. Long-tail
   discovery belongs in the home grid, map and related-reading blocks, not in
   a 40+ link site-wide masthead. */
.compas-nav {
  flex-wrap: nowrap;
  gap: .75rem 1.25rem;
  padding: .65rem clamp(.8rem, 2vw, 1.5rem);
}
.compas-nav__routes {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: .2rem 1rem;
  min-width: 0;
}
.compas-nav__routes::-webkit-scrollbar { display: none; }
.compas-nav__routes a { flex: 0 0 auto; }

/* If an older generated page has already swapped a missing hero to the 1x1
   transparent fallback, collapse the entire band without waiting for JS. */
.heros:has(.heros__img.est-vide) { display: none !important; }

@media (max-width: 760px) {
  .compas-nav { position: sticky; padding: .55rem .75rem; }
  .compas-nav__mark span { display: none; }
  .compas-nav__mark img { height: 42px; }
  .compas-nav__routes { margin-inline-start: 0; }
  .compas-nav__routes a { font-size: .84rem; }
  .tampon-lang__bouton { padding: .35rem .65rem; }
}


/* 2026-08-29 visual polish: boxed masthead, larger image-only brand,
   wider content canvas and a real footer/navigation section. */
.compas-nav {
  width: calc(100% - 2rem);
  max-width: 1320px;
  margin: .9rem auto 0;
  padding: .75rem 1rem;
  top: .65rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,32,56,.16);
}
.compas-nav__mark {
  flex: 0 0 auto;
  padding: .15rem .25rem;
}
.compas-nav__mark img {
  height: 82px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
}
.compas-nav__routes {
  align-items: center;
  padding: .45rem .75rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}
.compas-nav__routes a {
  padding: .38rem .08rem;
}

.plaque,
.carnet-page {
  max-width: 1180px;
}
.carnet-page {
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.carnet-feuillet {
  padding-inline: clamp(1.35rem, 4.2vw, 4rem);
}
.carnet-feuillet > .intro,
.carnet-page > .intro {
  max-width: 76ch !important;
}

footer.semelle {
  width: calc(100% - 2rem);
  max-width: 1320px;
  margin: 4.5rem auto 1.5rem;
  padding: 0;
  text-align: left;
  color: rgba(255,255,255,.82);
  background: var(--encre);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,32,56,.14);
  overflow: hidden;
}
footer.semelle a { color: var(--papier-carte); }
.semelle__inner {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.4rem clamp(1.4rem, 4vw, 3.2rem);
}
.semelle__brand img {
  display: block;
  width: min(190px, 100%);
  height: auto;
  background: var(--papier-carte);
  padding: .45rem;
  border-radius: 6px;
}
.semelle__brand p {
  max-width: 32ch;
  margin: 1rem 0 0;
  line-height: 1.6;
}
.semelle__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem .85rem;
}
.semelle__links a {
  display: block;
  padding: .62rem .72rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  text-decoration: none;
  background: rgba(255,255,255,.035);
}
.semelle__links a:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.semelle__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem clamp(1.4rem, 4vw, 3.2rem);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .78rem;
}
footer.semelle .semelle__reseau {
  max-width: none;
  margin: 0;
  font-size: inherit;
  opacity: .8;
}
.semelle__bottom p { margin: 0; }

@media (max-width: 900px) {
  .compas-nav__mark img { height: 66px; max-width: 108px; }
  .semelle__inner { grid-template-columns: 1fr; }
  .semelle__brand { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
  .semelle__brand p { margin: 0; }
}
@media (max-width: 760px) {
  .compas-nav {
    width: calc(100% - 1rem);
    margin-top: .5rem;
    top: .35rem;
    padding: .5rem .55rem;
    border-radius: 9px;
  }
  .compas-nav__mark img { height: 54px; max-width: 88px; }
  .compas-nav__routes { padding: .3rem .45rem; }
  .semelle__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .semelle__bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .semelle__brand { grid-template-columns: 1fr; }
  .semelle__brand img { width: 150px; }
  .semelle__links { grid-template-columns: 1fr; }
}

/* Give the image-light destination index stronger hierarchy until the photo
   library catches up: spacious cards, clearer type and a calmer grid. */
.grille-destinations {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.25rem;
  margin-top: 2.4rem;
}
.carte-destination {
  min-height: 178px;
  padding: 1.55rem 1.6rem 1.45rem;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(15,32,56,.055);
  display: flex;
  flex-direction: column;
}
.carte-destination__titre {
  font-size: 1.38rem;
  line-height: 1.15;
}
.carte-destination__tagline {
  margin-top: auto;
  padding-top: .65rem;
  line-height: 1.3;
}

/* 2026-08-30 owner visual cleanup — header/logo, footer and map.
   Kept as shared-source CSS so every generated language edition receives the
   same treatment without hand-editing generated HTML. */

/* Brand mark: make the supplied white-backed PNG behave like an enamel stamp
   on the navy masthead instead of a pasted white rectangle. */
.compas-nav__mark {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: .3rem .55rem;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.compas-nav__mark img {
  height: 68px;
  max-width: 112px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: .96;
}

/* Keep the masthead as one deliberate boxed unit on desktop; routes scroll
   horizontally rather than wrapping into an ungainly second/third row. */
.compas-nav {
  min-height: 88px;
  align-items: center;
}
.compas-nav__routes {
  min-height: 50px;
  flex: 1 1 auto;
  overscroll-behavior-inline: contain;
}
.tampon-lang { flex: 0 0 auto; }

/* Map: keep the interactive surface visually dominant but bounded. The
   shared page shell already controls the outer width; this block reserves a
   stable responsive canvas before Leaflet initialises. */
.carte-paris {
  position: relative;
  isolation: isolate;
  height: clamp(440px, 62vh, 680px);
  min-height: 440px;
  max-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(15,32,56,.2);
  border-radius: 12px;
  background:
    linear-gradient(rgba(15,32,56,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,32,56,.035) 1px, transparent 1px),
    var(--papier-carte);
  background-size: 28px 28px;
  box-shadow: 0 14px 34px -22px rgba(15,32,56,.5);
}
.carte-paris .leaflet-container,
.carte-paris .leaflet-pane,
.carte-paris .leaflet-map-pane { max-width: 100%; }
.carte-paris .leaflet-control-attribution {
  max-width: calc(100% - 16px);
  white-space: normal;
  line-height: 1.25;
}
.filtre-carte {
  margin-bottom: .35rem;
}

/* Footer: stronger contained finish, clear visual grouping and a restrained
   brand treatment. Existing semantic nav remains intact and fully keyboard
   accessible. */
footer.semelle {
  margin-top: 5rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(224,72,63,.13), transparent 32rem),
    var(--encre);
}
.semelle__inner {
  grid-template-columns: minmax(190px, .72fr) minmax(0, 2.28fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: 2.8rem;
  padding-bottom: 2.8rem;
}
.semelle__brand {
  padding-inline-end: clamp(1rem, 2vw, 2rem);
  border-inline-end: 1px solid rgba(255,255,255,.12);
}
.semelle__brand img {
  width: min(164px, 100%);
  max-height: 92px;
  object-fit: contain;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  mix-blend-mode: multiply;
  opacity: .95;
}
.semelle__brand p {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}
.semelle__links {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  align-content: start;
  gap: .7rem .8rem;
}
.semelle__links a {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: .7rem .82rem .7rem 1rem;
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.025);
  font-size: .9rem;
  line-height: 1.25;
}
.semelle__links a::before {
  content: "";
  position: absolute;
  inset-block: .7rem;
  inset-inline-start: .42rem;
  width: 2px;
  border-radius: 2px;
  background: var(--rouge);
  opacity: .72;
}
.semelle__links a:hover,
.semelle__links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.075);
}
.semelle__bottom {
  background: rgba(0,0,0,.1);
  color: rgba(255,255,255,.66);
}
.semelle__bottom a { text-decoration-color: rgba(255,255,255,.35); }

@media (max-width: 900px) {
  .compas-nav__mark { min-width: 78px; }
  .compas-nav__mark img { height: 56px; max-width: 92px; }
  .semelle__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .semelle__brand {
    grid-template-columns: 130px minmax(0, 1fr);
    padding-inline-end: 0;
    padding-bottom: 1.6rem;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .semelle__brand img { width: 130px; max-height: 76px; }
}

@media (max-width: 760px) {
  .compas-nav { min-height: 70px; }
  .compas-nav__mark {
    align-self: center;
    min-width: 66px;
    padding: .2rem .35rem;
  }
  .compas-nav__mark img { height: 46px; max-width: 76px; }
  .carte-paris {
    height: min(66vh, 560px);
    min-height: 380px;
    border-radius: 9px;
  }
  .filtre-carte {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .45rem;
    scrollbar-width: thin;
  }
  .filtre-carte__bouton { flex: 0 0 auto; }
  .semelle__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .carte-paris { min-height: 340px; height: 58vh; }
  .semelle__brand { grid-template-columns: 1fr; }
  .semelle__brand img { width: 120px; }
  .semelle__links { grid-template-columns: 1fr; }
}
/* 2026-08-30 multilingual desktop refinement */
@media (min-width: 1100px) {
  .compas-nav { width: calc(100% - 3rem); max-width: 1480px; gap: .8rem 1rem; padding-inline: 1.15rem; }
  .compas-nav__mark { min-width: 86px; flex-basis: 86px; }
  .compas-nav__mark img { height: 64px; max-width: 106px; }
  .compas-nav__routes { gap: .2rem clamp(.55rem, .8vw, 1rem); padding-inline: clamp(.55rem, 1vw, .9rem); }
  .compas-nav__routes a { white-space: nowrap; font-size: clamp(.76rem, .72vw, .88rem); line-height: 1.2; }
  .tampon-lang__bouton { white-space: nowrap; }
  .plaque, .carnet-page { max-width: 1260px; }
  footer.semelle { width: calc(100% - 3rem); max-width: 1480px; }
  .semelle__inner { grid-template-columns: minmax(220px, .9fr) minmax(0, 3.1fr); gap: clamp(2.5rem, 4.5vw, 5rem); padding: 3rem clamp(1.8rem, 4vw, 4rem); }
  .semelle__brand { display: flex; flex-direction: column; justify-content: center; min-height: 180px; padding: 1.1rem clamp(1.4rem, 2.4vw, 2.4rem) 1.1rem 0; }
  .semelle__brand p { max-width: 34ch; font-size: .95rem; line-height: 1.65; }
  .semelle__links { grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: .8rem; }
  .semelle__links a { min-height: 52px; padding: .8rem .85rem .8rem 1.05rem; }
  .semelle__bottom { padding: 1.05rem clamp(1.8rem, 4vw, 4rem); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .compas-nav__routes a { white-space: nowrap; }
  .tampon-lang__bouton { white-space: nowrap; }
  .semelle__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* 2026-08-30 structural footer hierarchy — three real navigation groups.
   The brand column + three groups creates a deliberate four-column desktop
   composition while retaining a semantic, responsive footer nav. */
.semelle__links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 2rem);
}
.semelle__group {
  min-width: 0;
  padding-inline-start: clamp(.2rem, .8vw, .7rem);
}
.semelle__group h2 {
  margin: 0 0 .85rem;
  color: var(--papier-carte);
  font-family: var(--serif);
  font-size: clamp(.94rem, .86rem + .22vw, 1.12rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}
.semelle__group h2::after {
  content: "";
  display: block;
  width: 2.1rem;
  height: 2px;
  margin-top: .55rem;
  border-radius: 999px;
  background: var(--rouge);
  opacity: .9;
}
.semelle__group-links {
  display: grid;
  gap: .55rem;
}
.semelle__group-links a {
  width: 100%;
}
@media (min-width: 1100px) {
  .semelle__links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.35rem, 2vw, 2.25rem); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .semelle__links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .semelle__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .semelle__links { grid-template-columns: 1fr; }
  .semelle__group { padding-inline-start: 0; }
}


/* 2026-08-30 v1.5 owner visual completion — transparent brand, resilient map
   and stronger grouped footer. Kept in shared CSS so every language edition
   receives the same treatment without generated-page hand edits. */

/* The shared PNG now has a transparent background. Let the actual artwork
   breathe instead of recreating a white badge around it. */
.compas-nav__mark {
  align-self: center;
  min-width: 132px;
  padding: .18rem .25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.compas-nav__mark img {
  width: auto;
  height: 56px;
  max-width: 150px;
  object-fit: contain;
  mix-blend-mode: normal;
  opacity: 1;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.08));
}

/* Keep the map visually dominant and make failure states deliberate rather
   than leaving visitors with a mysterious empty rectangle. */
.carte-paris {
  width: 100%;
  height: clamp(520px, 68vh, 760px);
  min-height: 520px;
  max-height: 760px;
}
.carte-paris__status {
  margin: .8rem 0 -.3rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(15,32,56,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.58);
  color: var(--gris);
  font-size: .86rem;
  line-height: 1.45;
}
.carte-paris__status[hidden] { display: none !important; }
.carte-paris.is-fallback {
  display: grid;
  place-items: center;
}
.carte-paris.is-fallback::after {
  content: "Interactive map temporarily unavailable";
  display: block;
  max-width: 34ch;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(15,32,56,.28);
  border-radius: 10px;
  background: rgba(250,247,241,.88);
  color: var(--encre);
  text-align: center;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .02em;
}

/* Footer groups read as real sections rather than a loose wall of links. */
footer.semelle {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 55px -34px rgba(15,32,56,.85);
}
.semelle__brand {
  justify-content: flex-start;
}
.semelle__brand img {
  width: min(210px, 100%);
  max-height: 112px;
  mix-blend-mode: normal;
  opacity: 1;
  object-fit: contain;
}
.semelle__group {
  padding: 1.15rem 1.1rem 1rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.semelle__group-links a {
  min-height: 0;
  padding: .46rem .2rem .46rem .78rem;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  background: transparent;
}
.semelle__group-links a:last-child { border-bottom: 0; }
.semelle__group-links a:hover,
.semelle__group-links a:focus-visible {
  transform: none;
  background: rgba(255,255,255,.055);
}
.semelle__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.semelle__reseau {
  max-width: none !important;
  margin: 0 !important;
}
.semelle__reseau a {
  display: inline-block;
  margin-inline: .12rem;
  color: var(--papier-carte);
  font-weight: 600;
}

@media (min-width: 1100px) {
  .compas-nav__mark { min-width: 145px; flex-basis: 145px; }
  .compas-nav__mark img { height: 60px; max-width: 168px; }
}
@media (max-width: 900px) {
  .compas-nav__mark { min-width: 108px; }
  .compas-nav__mark img { height: 50px; max-width: 132px; }
  .semelle__brand img { width: 180px; max-height: 98px; }
}
@media (max-width: 760px) {
  .compas-nav__mark { min-width: 92px; padding-inline: 0; }
  .compas-nav__mark img { height: 44px; max-width: 116px; }
  .carte-paris { min-height: 400px; height: 60vh; max-height: 560px; }
  .semelle__bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .carte-paris { min-height: 350px; height: 55vh; }
  .semelle__brand img { width: 160px; }
}

/* TATS owner P0 HERO/sidebar 75/25 layout — 2026-09-11 */
.hero-top-layout {
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.hero-main { min-width: 0; }
.hero-main .heros,
.hero-main .tats-auto-hero {
  width: 100%;
  max-width: none;
  margin: 0;
}
.hero-sidebar {
  min-width: 0;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.hero-sidebar .carte-postale {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
}
.hero-sidebar .tampon-pratique {
  margin: 0;
  transform: none;
  border-radius: 18px;
  padding: 1.25rem 1.1rem;
  background: var(--papier-carte);
}
.hero-sidebar .tampon-pratique dl {
  grid-template-columns: 1fr;
  gap: .25rem;
}
.hero-sidebar .tampon-pratique dd { margin: 0 0 .65rem; }
.hero-sidebar-card {
  display: block;
  padding: 1.15rem;
  border: 1px solid var(--ligne);
  border-top: 3px solid var(--rouge);
  border-radius: 10px;
  background: var(--papier-carte);
  box-shadow: var(--ombre);
}
.hero-sidebar-card > strong {
  display: block;
  margin-bottom: .75rem;
  color: var(--encre);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-sidebar-links {
  display: grid;
  gap: .15rem;
}
.hero-sidebar-links a {
  display: block;
  padding: .55rem 0;
  border-bottom: 1px solid var(--ligne);
  color: var(--encre);
}
.hero-sidebar-links a:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .hero-top-layout {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 1rem;
    margin-top: 0;
  }
  .hero-main .heros,
  .hero-main .tats-auto-hero { border-radius: 0; }
  .hero-sidebar {
    padding: 0 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

