/* Escape from life — blog de voyage. Disposition des maquettes (vault/Piste/Maquettes/blog/) : carnet de route, grande
   photo d'ouverture, récit par arrêts numérotés, carte de la trace qui suit la lecture. Thème clair ou sombre selon le
   système, sans JavaScript. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 600; font-display: swap;
  src: url(polices/big-shoulders-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap;
  src: url(polices/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap;
  src: url(polices/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap;
  src: url(polices/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-style: normal; font-display: swap;
  src: url(polices/source-serif-4-latin-opsz-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-style: italic; font-display: swap;
  src: url(polices/source-serif-4-latin-opsz-italic.woff2) format("woff2-variations"); }

:root {
  --paper: #F1F3F0; --ink: #1B2326; --muted: #5B686B; --rule: #D3D9D6; --sea: #1E5E6A; --on-sea: #F1F3F0;
  --sand: #B98C4B; --land: #E2E0D3; --water: #D7E3E4; --panel: #FFFFFF; --tint: rgba(30, 94, 106, .10);
  --ph-aller: #B98C4B; --ph-ferry_aller: #7C8A8D; --ph-islande: #1E5E6A; --ph-ferry_retour: #7C8A8D; --ph-retour: #9A5B3E;
  --f-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111719; --ink: #E4E9E7; --muted: #95A3A5; --rule: #29343A; --sea: #74B6C1; --on-sea: #0E1517;
    --sand: #D6AE6C; --land: #222B2D; --water: #162023; --panel: #182023; --tint: rgba(116, 182, 193, .14);
    --ph-aller: #D6AE6C; --ph-ferry_aller: #7F8E91; --ph-islande: #74B6C1; --ph-ferry_retour: #7F8E91; --ph-retour: #D08A68;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem;
  line-height: 1.65; }
a { color: var(--sea); }
img { max-width: 100%; }
.wrap { max-width: 78rem; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* En-tête */
.mast { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: space-between;
  padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1; color: var(--ink); text-decoration: none; }
.mast .langue, .couv-nav .langue { font-family: var(--f-data); font-size: .78rem; letter-spacing: .04em;
  text-decoration: none; border-bottom: 1px solid currentColor; }
.mast .langue { color: var(--muted); }
.couv-liens { display: flex; gap: 1.25rem; align-items: center; }
.brand small { font-family: var(--f-data); font-weight: 400; font-size: .72rem; letter-spacing: .08em; color: var(--muted);
  margin-left: .6rem; text-transform: none; }
.site { font-family: var(--f-data); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; }

/* Bandeau des jours (partie 13) : titre du voyage, précédent / suivant, une case par jour colorée par phase */
.bandeau-jours { background: var(--panel); border: 1px solid var(--rule); margin-top: 1rem; overflow: hidden; }
.bandeau-jours .haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline;
  padding: .75rem 1rem; border-bottom: 1px solid var(--rule); }
.bandeau-jours .haut b { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem;
  letter-spacing: .02em; }
.bandeau-jours .haut > span { font-family: var(--f-data); font-size: .75rem; color: var(--muted); }
.bandeau-jours .haut a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.bandeau-jours .haut a:hover, .bandeau-jours .haut a:focus-visible { color: var(--sea); border-color: var(--sea); }
.bandeau-jours .cases { display: flex; gap: 3px; padding: .6rem 1rem; overflow-x: auto; }
.bandeau-jours .cases a, .bandeau-jours .cases span { flex: 0 0 2rem; height: 2rem; display: grid; place-items: center;
  font-family: var(--f-data); font-size: .72rem; text-decoration: none; color: var(--ink); background: var(--paper);
  border-bottom: 3px solid var(--c, var(--rule)); font-variant-numeric: tabular-nums; }
.bandeau-jours .cases a:hover, .bandeau-jours .cases a:focus-visible { background: var(--tint); outline: none; }
.bandeau-jours .cases a.cur { background: var(--ink); color: var(--paper); }

/* Ouverture */
.hero { padding-block: 1.5rem 0; }
.hero figure { margin: 0; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; max-height: 78vh; }
.hero figcaption { font-family: var(--f-data); font-size: .74rem; color: var(--muted); padding-top: .4rem; }
.headline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 2rem; align-items: end;
  padding-block: 1.5rem 1rem; }
.daynum { font-family: var(--f-display); font-weight: 800; color: var(--sea); line-height: .82;
  font-size: clamp(4.5rem, 13vw, 9.5rem); text-transform: uppercase; letter-spacing: .01em; }
.daynum span { display: block; font-size: .32em; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.daynum.double { font-size: clamp(3.2rem, 9vw, 6.5rem); }
.headline h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02;
  margin: 0; text-wrap: balance; }
.dateline { font-family: var(--f-data); font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }
.log { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; margin: 0; padding-block: 1rem;
  border-block: 1px solid var(--rule); }
.log div { min-width: 0; }
.log dt { font-family: var(--f-data); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.log dd { margin: .15rem 0 0; font-family: var(--f-data); font-size: .95rem; font-variant-numeric: tabular-nums; }

/* Corps du jour */
.day { display: grid; grid-template-columns: minmax(0, 41rem) minmax(0, 18rem); gap: 4rem; justify-content: center;
  padding-block: 2.5rem 3rem; }
.story { min-width: 0; }
.lede { font-size: 1.28rem; line-height: 1.5; margin: 0 0 1rem; }
.stop { padding-top: 1.75rem; }
.stop h2 { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; font-family: var(--f-display);
  font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .6rem; }
.num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--sea); color: var(--on-sea); font-family: var(--f-data); font-size: .85rem; font-weight: 500;
  letter-spacing: 0; transform: translateY(-.15rem); flex: none; }
.num.night { background: var(--ink); color: var(--paper); }
.time { font-family: var(--f-data); font-size: .8rem; font-weight: 400; letter-spacing: .02em; color: var(--muted);
  text-transform: none; }
.story p { margin: 0 0 1rem; }
.row { display: flex; gap: .5rem; margin: 1.25rem 0 1.5rem; align-items: flex-start; }
.row figure { margin: 0; min-width: 0; flex-basis: 0; }
.row img, .aside img { display: block; width: 100%; height: auto; background: var(--land); }
figcaption { font-size: .86rem; line-height: 1.4; color: var(--muted); padding-top: .35rem; }
.cap-rangee { font-size: .86rem; line-height: 1.4; color: var(--muted); margin: -1.15rem 0 1.5rem; }
.aside { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 1.25rem; align-items: start;
  background: var(--panel); border: 1px solid var(--rule); padding: 1.25rem; margin: 1.5rem 0; }
.aside.seul { grid-template-columns: minmax(0, 1fr); }
.aside h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; text-transform: uppercase;
  letter-spacing: .03em; margin: 0 0 .5rem; line-height: 1.1; }
.aside p { font-size: 1rem; }
.aside figure { margin: 0; }
.tomorrow { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-style: italic; }
.tomorrow strong { font-family: var(--f-data); font-style: normal; font-weight: 500; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sea); display: block; margin-bottom: .25rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule);
  padding-block: 1.25rem 3rem; font-family: var(--f-data); font-size: .85rem; }
.pager a { color: var(--ink); text-decoration: none; }
.pager a:hover, .pager a:focus-visible { color: var(--sea); }
.pager small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.pager .next { text-align: right; margin-left: auto; }

/* Carte */
.mapcol { min-width: 0; }
.day.seule { grid-template-columns: minmax(0, 41rem); }
.map.large { position: static; padding-top: 2rem; }
.map.large svg { max-height: 30rem; }
.map { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1.25rem); }
.map svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 7rem); }
.map .sea { fill: var(--water); }
.map .land { fill: var(--land); stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map .trace { fill: none; stroke: var(--sand); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; }
.map .trace.mer { stroke-dasharray: 2 6; }
.map .pin circle { fill: var(--sea); stroke: var(--paper); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.map .pin text { fill: var(--on-sea); font-family: var(--f-data); font-weight: 500; text-anchor: middle;
  dominant-baseline: central; }
.map .pin.night circle { fill: var(--ink); }
.map .pin.night text { fill: var(--paper); }
.map .pass { fill: var(--paper); stroke: var(--sand); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.map .lbl { fill: var(--ink); font-family: var(--f-data); paint-order: stroke; stroke: var(--land); stroke-linejoin: round; }
.mapcap { font-family: var(--f-data); font-size: .72rem; color: var(--muted); margin-top: .5rem; line-height: 1.5; }
.map .ph { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map .ph.mer { stroke-dasharray: 3 5; }
.map a:hover .ph, .map a:focus-visible .ph { stroke-width: 5; }
.map .hors .ph { stroke-width: 1.5; opacity: .45; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; padding: 0; margin: .5rem 0 0;
  font-family: var(--f-data); font-size: .72rem; color: var(--muted); }
.legend i { display: inline-block; width: 1.2rem; height: .2rem; vertical-align: middle; margin-right: .35rem; border-radius: 2px; }

/* Accueil */
.intro { padding-block: 2rem 1rem; }
.intro h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .95;
  text-transform: uppercase; margin: 0; letter-spacing: .01em; }
.intro p { font-family: var(--f-data); font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
/* Accueil (maquette-accueil.html) : grande photo du dernier voyage, puis une fiche par voyage */
.couv { position: relative; min-height: min(78vh, 46rem); display: flex; align-items: flex-end; color: #F3F5F2;
  overflow: hidden; background: #1B2326; }
.couv > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.couv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,18,.35) 0%,
  rgba(10,16,18,0) 30%, rgba(10,16,18,0) 45%, rgba(10,16,18,.78) 100%); }
.couv > .wrap { position: relative; z-index: 1; width: 100%; padding-block: 1.5rem 2.5rem; }
.couv-nav { position: absolute; z-index: 2; top: 0; left: 0; right: 0; }
.couv-nav .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem; }
.couv-nav a { color: inherit; }
.couv-nav .marque { font-family: var(--f-display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  font-size: 1.05rem; text-decoration: none; }
.couv-nav nav a { font-family: var(--f-data); font-size: .78rem; text-decoration: none;
  border-bottom: 1px solid rgba(243,245,242,.5); }
.couv h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .82;
  font-size: clamp(3.6rem, 13vw, 11rem); margin: 0; max-width: 9ch; text-wrap: balance; }
.couv .accroche { font-size: 1.15rem; max-width: 36rem; margin: 1rem 0 0; }
.couv .faits { font-family: var(--f-data); font-size: .85rem; letter-spacing: .04em; margin-top: 1rem;
  font-variant-numeric: tabular-nums; }
.couv .credit { font-family: var(--f-data); font-size: .68rem; opacity: .8; margin-top: .4rem; }
.surtitre { font-family: var(--f-data); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); }
a.surtitre { text-decoration: none; }
a.surtitre:hover, a.surtitre:focus-visible { color: var(--sea); }
.voyages { padding-block: 3rem 1rem; }
.voyages > .wrap > .surtitre { display: block; margin-bottom: 1rem; }
.fiche { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; padding-block: 1.5rem 2.5rem;
  border-top: 2px solid var(--ink); }
.fiche h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .9; margin: 0; letter-spacing: .01em; }
.fiche .sous { font-family: var(--f-data); font-size: .85rem; color: var(--muted); margin: .6rem 0 1.4rem; }
.stats { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr) minmax(0, .7fr); gap: .75rem;
  margin: 0 0 1.25rem; padding: 0; }
.stats div { min-width: 0; border-top: 1px solid var(--rule); padding-top: .5rem; }
.stats dt { font-family: var(--f-data); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: .1rem 0 0; font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1;
  font-variant-numeric: tabular-nums; }
.stats dd small { display: block; font-family: var(--f-data); font-weight: 400; font-size: .68rem; color: var(--muted);
  margin-top: .25rem; line-height: 1.3; }
.trajet { font-family: var(--f-data); font-size: .8rem; color: var(--muted); margin: 0 0 1.5rem; }
.trajet b { color: var(--ink); font-weight: 500; }
.cta { display: inline-flex; align-items: center; gap: .6rem; background: var(--sea); color: var(--on-sea);
  text-decoration: none; font-family: var(--f-data); font-size: .9rem; padding: .75rem 1.1rem; }
.cta:hover, .cta:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.grille-tete { font-family: var(--f-data); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 1.75rem 0 .5rem; }
.grille { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.grille a, .grille span { display: grid; place-items: center; aspect-ratio: 1; font-family: var(--f-data); font-size: .74rem;
  text-decoration: none; color: var(--ink); background: var(--panel); border-bottom: 3px solid var(--c, var(--rule));
  font-variant-numeric: tabular-nums; }
.grille a:hover, .grille a:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.grille .off, .bandeau-jours .off { color: var(--muted); opacity: .45; }
.legende-phases { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--f-data); font-size: .68rem;
  color: var(--muted); margin-top: .6rem; }
.legende-phases span::before { content: ""; display: inline-block; width: .9rem; height: 3px; background: var(--c);
  vertical-align: middle; margin-right: .35rem; }
.cartes-voyage { min-width: 0; }
.map.boite { position: relative; top: auto; }
.map.boite svg { max-height: none; }
.map .grande { border: 1px solid var(--rule); }
.map .medaillon { position: absolute; left: .75rem; top: .75rem; width: 27%; border: 1px solid var(--rule);
  box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.map .medaillon .ph { stroke-width: 1.6; }
.map .dot { fill: var(--ink); }
.moments-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; }
.moments { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; padding-block: .75rem 2.5rem; }
.moment { text-decoration: none; color: var(--ink); min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.moment img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--land);
  transition: transform .2s; }
.moment .n { font-family: var(--f-data); font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.moment .t { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; line-height: 1.05; text-transform: uppercase; }
.moment:hover img, .moment:focus-visible img { transform: scale(1.02); }
.moment:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
@media (max-width: 900px) {
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .cartes-voyage { order: -1; }
  .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(2) { grid-column: span 2; order: 3; }
  .grille { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map .medaillon { position: static; display: block; width: 55%; margin-top: .5rem; box-shadow: none; }
  .couv-nav nav { display: none; }
  /* Sans JavaScript, une bande qui défile s'ouvre au jour 1 : en téléphone, tous les jours d'un coup */
  .bandeau-jours .cases { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); overflow: visible;
    padding-inline: .6rem; }
  .bandeau-jours .cases a, .bandeau-jours .cases span { height: auto; aspect-ratio: 1; min-width: 0; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .moment img { transition: none; } }
footer.pied { border-top: 1px solid var(--rule); padding-block: 1.25rem 2.5rem; font-family: var(--f-data); font-size: .72rem;
  color: var(--muted); }

/* Aperçu local (piste serve) : coulisses, jamais dans le site publié */
.prov { display: none; font-family: var(--f-data); font-size: .7rem; line-height: 1.45; color: var(--sea); margin-top: .2rem; }
.apercu .prov { display: block; }
.apercu .basse { outline: 3px dashed var(--sand); outline-offset: -3px; }
.bandeau-apercu { background: var(--sand); color: #1B2326; font-family: var(--f-data); font-size: .75rem; padding: .4rem 1rem; }
.bandeau-apercu a { color: inherit; }

@media (max-width: 960px) {
  .day { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .mapcol { order: -1; }
  .map { position: static; }
  .map svg { max-height: 26rem; width: auto; max-width: 100%; margin-inline: auto; }
  .story { max-width: 41rem; margin-inline: auto; }
}
@media (max-width: 640px) {
  .headline { grid-template-columns: minmax(0, 1fr); }
  .aside { grid-template-columns: minmax(0, 1fr); }
  .aside figure { max-width: 14rem; }
  .brand small { display: block; margin: .35rem 0 0; }
  .row.n3 { flex-wrap: wrap; }
  .row.n3 figure { flex-basis: 40% !important; }
  .stop h2 { font-size: 1.6rem; }
}
