/*
 * La vitrine de histour.app : l'accueil et l'écoute des parcours offerts.
 * Les couleurs de l'app : bleu nuit, or, parchemin. Un seul thème, voulu.
 * Aucune police distante (promesse de vie privée) : des polices du système, à empattements pour les titres.
 * Les pages légales gardent _style.css.
 */
:root {
  --nuit: #101725;
  --nuit-2: #1b2e4c;
  --surface: #18202f;
  --ligne: #2c3648;
  --texte: #f2efe8;
  --doux: #a7b0bf;
  --or: #d4af52;
  --or-clair: #e6c776;
  --parchemin: #e8e0ce;
  --encre: #23201a;
  --titre: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Noto Serif CJK JP", "Songti SC", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 17px/1.6 var(--ui); }
img { display: block; max-width: 100%; }
a { color: var(--or); }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--parchemin); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
main { display: block; }
body { overflow-x: hidden; }

/* La barre du haut */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 18px 16px; }
.marque { font-family: var(--titre); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: var(--or); text-decoration: none; }
.langues { position: relative; font-size: 15px; }
.langues summary { cursor: pointer; list-style: none; padding: 6px 12px; border: 1px solid var(--ligne); border-radius: 999px; color: var(--doux); }
.langues summary::-webkit-details-marker { display: none; }
.langues summary::after { content: " ▾"; }
.langues nav { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 6px; display: grid; min-width: 150px; z-index: 10; }
.langues nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--texte); }
.langues nav a:hover, .langues nav a[aria-current] { background: var(--nuit-2); color: var(--or); }

/* Le haut de page */
.heros { max-width: 1120px; margin: 0 auto; padding: 32px 16px 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.heros h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; color: var(--texte); }
.heros .sous { font-size: 20px; color: var(--doux); max-width: 34ch; margin: 18px 0 10px; }
.heros .villes { color: var(--or); letter-spacing: .06em; font-size: 15px; margin: 0 0 24px; }
.heros-tel { position: relative; height: 470px; }
.heros-tel img { position: absolute; width: 205px; height: auto; border-radius: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); border: 1px solid #2c3648; }
.heros-tel img:nth-child(1) { left: 2%; top: 46px; transform: rotate(-7deg); }
.heros-tel img:nth-child(2) { left: 31%; top: 0; z-index: 2; }
.heros-tel img:nth-child(3) { left: 60%; top: 46px; transform: rotate(7deg); }

.boutiques { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.bouton { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 12px; font-weight: 600; text-decoration: none; background: var(--or); color: var(--encre); border: 1px solid var(--or); }
.bouton + .bouton { background: transparent; color: var(--texte); border-color: var(--ligne); }
.bouton:hover { background: var(--or-clair); color: var(--encre); border-color: var(--or-clair); }

/* Les blocs */
.bloc { max-width: 1120px; margin: 0 auto; padding: 56px 16px; width: 100%; border-top: 1px solid var(--ligne); }
.bloc > .intro { color: var(--doux); max-width: 62ch; margin: 12px 0 28px; }
.note { color: var(--doux); font-size: 15px; margin-top: 28px; }

/* Les parcours offerts, à écouter */
#ecouter { background: linear-gradient(180deg, var(--nuit-2), var(--nuit)); max-width: none; }
#ecouter > * { max-width: 1088px; margin-left: auto; margin-right: auto; }
.offertes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.offerte { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 18px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--texte); isolation: isolate; border: 1px solid var(--ligne); }
.offerte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.offerte::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 23, 37, 0) 25%, rgba(16, 23, 37, .82) 62%, rgba(16, 23, 37, .97)); }
.offerte:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .offerte img { transition: none; } .offerte:hover img { transform: none; } }
.offerte .ville { color: var(--or); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.offerte strong { font-family: var(--titre); font-size: 22px; line-height: 1.15; margin: 4px 0 6px; }
.offerte .st { color: var(--doux); font-size: 14.5px; line-height: 1.4; }
.offerte .action { margin-top: 14px; color: var(--or); font-weight: 600; }
.offerte .duree { color: var(--doux); font-weight: 400; font-size: 14px; margin-left: 6px; }

/* Comment ça marche */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.point { background: var(--parchemin); color: var(--encre); border-radius: 16px; padding: 22px; }
.point h3 { font-size: 22px; color: var(--encre); margin-bottom: 8px; }
.point p { margin: 0; }

/* Les captures */
.galerie { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 0 12px; }
.galerie img { flex: 0 0 auto; width: 210px; height: auto; border-radius: 22px; scroll-snap-align: start; border: 1px solid var(--ligne); }

/* Le catalogue */
.villeh { font-size: 26px; margin: 34px 0 14px; color: var(--texte); }
.villeh small { font-family: var(--ui); font-size: 14px; color: var(--doux); font-weight: 400; margin-left: 8px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.parcours { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; overflow: hidden; color: var(--texte); text-decoration: none; min-height: 88px; }
.parcours img { width: 88px; height: 100%; min-height: 88px; object-fit: cover; object-position: center 20%; }
.parcours .texte { padding: 8px 12px 8px 0; display: grid; gap: 2px; align-content: center; min-width: 0; }
.parcours strong { font-family: var(--titre); font-size: 16px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.parcours .st { color: var(--doux); font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.parcours { border-color: var(--or); }
a.parcours:hover strong { color: var(--or); }
.badge { justify-self: start; display: inline-block; background: var(--or); color: var(--encre); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; }

/* La fin */
.fin { text-align: center; padding: 72px 16px; border-top: 1px solid var(--ligne); background: radial-gradient(ellipse at top, var(--nuit-2), var(--nuit) 70%); }
.fin p { color: var(--doux); margin: 12px auto 26px; max-width: 46ch; }
.fin .boutiques { justify-content: center; }

.pied { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; color: var(--doux); font-size: 14px; border-top: 1px solid var(--ligne); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied p { margin: 14px 0 0; }

/* La page d'écoute */
.carte { max-width: 1120px; margin: 0 auto; padding: 0 16px 34px; width: 100%; }
.carte h2 { font-size: 26px; margin-bottom: 12px; }
.plan { overflow-x: auto; border-radius: 16px; border: 1px solid var(--ligne); }
.plan img { width: 100%; height: auto; display: block; }
.carte p { color: var(--doux); font-size: 14.5px; margin: 10px 0 0; }
.carte .osm { font-size: 13px; }
.ecoute .retour { max-width: 1120px; margin: 0 auto; padding: 4px 16px; width: 100%; }
.ecoute .retour a { text-decoration: none; }
.tete { max-width: 1120px; margin: 0 auto; padding: 18px 16px 34px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; width: 100%; }
.tete img { width: 100%; border-radius: 18px; border: 1px solid var(--ligne); }
.tete .ville { color: var(--or); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.tete h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; margin: 8px 0 10px; }
.tete .st { color: var(--or-clair); font-size: 18px; margin: 0 0 14px; }
.tete p { max-width: 62ch; }
.tete .duree { color: var(--doux); font-size: 15px; }
.lecteur { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; width: 100%; }
.commandes { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; padding: 12px 14px; }
.commandes button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ligne); background: var(--nuit); color: var(--texte); font-size: 17px; cursor: pointer; }
.commandes .lire { width: 54px; height: 54px; background: var(--or); color: var(--encre); border-color: var(--or); font-size: 20px; }
.encours { flex: 1 1 200px; font-family: var(--titre); font-size: 18px; color: var(--texte); min-width: 0; }
.voix { color: var(--doux); font-size: 14px; }
.voix select { margin-left: 6px; background: var(--nuit); color: var(--texte); border: 1px solid var(--ligne); border-radius: 8px; padding: 6px 8px; font: inherit; }
.lecteur progress { width: 100%; height: 4px; margin: 10px 0 4px; accent-color: var(--or); }
.lecteur h2 { font-size: 26px; margin: 24px 0 12px; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.etape { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); }
.etape.active { border-color: var(--or); background: var(--nuit-2); }
.etape .jouer { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--or); background: transparent; color: var(--or); font: 600 16px var(--ui); cursor: pointer; }
.etape.active .jouer { background: var(--or); color: var(--encre); }
.etape strong { font-family: var(--titre); font-size: 18px; }
.etape .d { color: var(--doux); font-size: 14px; margin-left: 6px; }
.etape details { margin-top: 4px; }
.etape summary { cursor: pointer; color: var(--doux); font-size: 14px; }
.etape details p { color: var(--parchemin); max-width: 66ch; margin: 10px 0; }

@media (max-width: 820px) {
  .heros { grid-template-columns: 1fr; padding-bottom: 48px; }
  .heros-tel { height: 380px; max-width: 420px; width: 100%; margin: 0 auto; }
  .heros-tel img { width: 165px; }
  .tete { grid-template-columns: 1fr; }
  .tete img { max-width: 260px; }
  .grille { grid-template-columns: 1fr; }
  .plan img { min-width: 760px; }
}
