/* Feuille de style du site henro (reprend la page de test henro-test, adaptée au téléphone) */
:root { --encre: #2b2118; --papier: #faf6ef; --rouge: #a3271f; --gris: #6d6259; --trait: #e4dccf; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 Georgia, "Noto Serif JP", serif; color: var(--encre); background: var(--papier); }
a { color: var(--rouge); }
.jp { font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; }

/* Bandeau et pied */
.bandeau { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .6em 1.2em; background: var(--encre); font: 15px system-ui, sans-serif; }
.bandeau a { color: #fff; text-decoration: none; }
.bandeau .logo { font-weight: bold; font-size: 1.1em; }
.bandeau nav { display: flex; gap: 1em; }
.pied { border-top: 1px solid var(--trait); color: var(--gris); font: 13px system-ui, sans-serif; text-align: center; padding: 1em 1.2em 2em; }

.page { max-width: 1000px; margin: 0 auto; padding: 1em 1.2em 3em; }
h1 { line-height: 1.2; }
h2 { color: var(--rouge); border-bottom: 2px solid var(--trait); padding-bottom: .2em; margin-top: 2em; }
h2 small { display: block; color: var(--gris); font-size: .55em; font-weight: normal; }
.chapo { font-size: 1.15em; }
.bouton { display: inline-block; background: var(--rouge); color: #fff; padding: .6em 1.2em; border-radius: 4px; text-decoration: none; font: 16px system-ui, sans-serif; }

/* Liste des temples */
.liste-temples { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .4em; }
.liste-temples a { display: grid; grid-template-columns: 2.6em 1fr; grid-template-rows: auto auto; column-gap: .6em; padding: .5em .7em; background: #fff; border: 1px solid var(--trait); border-radius: 6px; text-decoration: none; color: var(--encre); }
.liste-temples a:hover { border-color: var(--rouge); }
.liste-temples .num { grid-row: 1 / 3; align-self: center; text-align: center; background: var(--rouge); color: #fff; border-radius: 4px; font: bold 15px system-ui, sans-serif; padding: .3em 0; }
.liste-temples .ville { font: 13px system-ui, sans-serif; color: var(--gris); }
.liste-temples .pastille { grid-column: 2; font: 12px system-ui, sans-serif; color: #1b7f3b; }

/* En-tête de la fiche temple */
.entete { position: relative; min-height: 260px; background: #333 center/cover; color: #fff; display: flex; align-items: flex-end; }
.entete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.75)); }
.entete-texte { position: relative; z-index: 1; padding: 1.2em; max-width: 1000px; margin: 0 auto; width: 100%; }
.entete .numero { display: inline-block; background: var(--rouge); padding: .1em .6em; border-radius: 3px; font: bold 15px system-ui, sans-serif; }
.entete h1 { margin: .2em 0 0; font-size: 2.2em; }
.entete h1 span { font-size: .8em; margin-left: .3em; }
.entete p { margin: .2em 0 0; opacity: .9; }
nav.voisins { display: flex; justify-content: space-between; gap: 1em; font: 15px system-ui, sans-serif; margin: .3em 0 1em; }
nav.voisins a { text-decoration: none; }
.fiche .large { grid-column: 1 / -1; }
.texte img { max-width: 100%; height: auto; }
.pastille-carte { border: 2px solid #a3271f; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.sous-carte { font: 14px system-ui, sans-serif; margin: .3em 0 0; }
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .4em 2em; }
.fiche div { padding: .4em 0; border-bottom: 1px dotted var(--trait); }
.fiche b { display: block; font: 13px system-ui, sans-serif; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
.jp { font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; }
#carte { height: 460px; border-radius: 6px; border: 1px solid var(--trait); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6em; }
.galerie figure { margin: 0; cursor: zoom-in; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; display: block; }
.galerie figcaption { font: 13px system-ui, sans-serif; color: var(--gris); text-transform: capitalize; }
#visionneuse { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 2000; cursor: zoom-out; }
#visionneuse.ouvert { display: flex; }
#visionneuse img { max-width: 95vw; max-height: 92vh; }
.acces table { border-collapse: collapse; font: 14px system-ui, sans-serif; }
.acces td, .acces th { border: 1px solid var(--trait); padding: .2em .5em; }
details { background: #fff; border: 1px solid var(--trait); border-radius: 4px; padding: .5em 1em; margin: .5em 0; }
summary { cursor: pointer; color: var(--rouge); }
/* Fiches horaires (plan A) */
#h-barre { position: sticky; top: 0; z-index: 1000; background: var(--papier); border-bottom: 1px solid var(--trait); padding: .5em 0; font: 15px system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: .5em 1.5em; align-items: center; }
#h-barre form { font-size: 13px; color: var(--gris); }
.h-fiche { background: #fff; border: 1px solid var(--trait); border-radius: 6px; padding: 1em; margin: 1em 0; font: 15px/1.5 system-ui, sans-serif; }
.h-titre { font-weight: bold; font-size: 1.05em; margin-bottom: .4em; }
.h-troncons { display: flex; flex-direction: column; gap: .2em; font-size: 14px; margin-bottom: .6em; }
.h-troncons i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: .4em; }
.h-jrpass { color: #1b7f3b; }
.h-prochain { background: #eef6ee; border-left: 4px solid #1b7f3b; padding: .6em .8em; border-radius: 4px; margin: .6em 0; }
.h-prochain.h-fini { background: #fbeeee; border-color: var(--rouge); }
.h-dans { font-weight: bold; font-size: 1.15em; margin-bottom: .2em; }
.h-arrivee, .h-reste { color: var(--gris); font-size: 14px; }
.h-conseil { margin-top: .3em; }
.h-alerte { color: var(--rouge); font-weight: bold; }
.h-attente { color: var(--gris); }
.h-onglets { display: flex; gap: .3em; margin: .6em 0 .3em; flex-wrap: wrap; }
.h-onglets button { border: 1px solid var(--trait); background: #f4efe6; border-radius: 4px; padding: .3em .7em; cursor: pointer; font: inherit; font-size: 14px; }
.h-onglets button.actif { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.h-grille { border-collapse: collapse; width: 100%; }
.h-grille th { background: #b4c2dc; width: 2.5em; text-align: center; font-weight: normal; }
.h-grille th, .h-grille td { border: 1px dotted #ccc; padding: .25em .4em; }
.h-pastille { display: inline-block; padding: 2px 6px; margin: 2px 0; border-radius: 3px; font-size: 14px; white-space: nowrap; }
.h-pastille small { opacity: .8; }
.h-passe { opacity: .35; }
.h-suivant { outline: 3px solid #1b7f3b; outline-offset: 1px; font-weight: bold; }
.h-source { margin-top: .5em; font-size: 13px; color: var(--gris); }
.h-vieux { background: #fff3cd; color: #7a5a00; padding: 1px 6px; border-radius: 3px; margin-left: .4em; }

/* Téléphone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .entete { min-height: 200px; }
  .entete h1 { font-size: 1.7em; }
  #carte { height: 340px; }
  .h-grille { font-size: 13px; }
  .h-pastille { white-space: normal; }
  #h-barre form input { max-width: 9em; }
  .acces { overflow-x: auto; }
}

/* Étapes à pied depuis le temple précédent et vers le suivant */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6em; margin-top: 1em; font: 15px/1.5 system-ui, sans-serif; }
.etape { background: #fff; border: 1px solid var(--trait); border-left: 5px solid; border-radius: 6px; padding: .6em .8em; }
.etape.arrivee { border-left-color: #1f6fb5; }
.etape.depart { border-left-color: #a3271f; }
.etape b { display: block; }
.source-etapes { font: 13px system-ui, sans-serif; color: var(--gris); margin: .3em 0 0; }

/* Onglets de la fiche temple (barre collante, défilement horizontal sur téléphone) */
.onglets { position: sticky; top: 0; z-index: 1100; display: flex; gap: .2em; overflow-x: auto; background: var(--papier); border-bottom: 2px solid var(--trait); padding: 0 .8em; font: 15px system-ui, sans-serif; scrollbar-width: none; }
.onglets a { flex: none; padding: .7em .9em; text-decoration: none; color: var(--gris); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.onglets a.actif { color: var(--rouge); border-bottom-color: var(--rouge); font-weight: bold; }
.panneau { padding-top: .5em; }
.liens { display: flex; flex-wrap: wrap; gap: .3em 1.2em; font: 14px system-ui, sans-serif; margin-top: .4em; }
#h-barre { top: 2.9em; }
.abris { margin-top: .4em; font-size: 14px; }
.abris ul { margin: .2em 0 0; padding-left: 1.2em; }

/* Lexique (inspiré du dictionnaire KanjiYomou) */
.lex-recherche { position: relative; max-width: 640px; margin: 0 auto 1em; }
#lex-champ, #tp-champ { width: 100%; padding: .8em 1.3em; font-size: 1.1em; border: 2px solid var(--rouge); border-radius: 30px; outline: none; background: #fff; font-family: system-ui, sans-serif; }
#lex-champ:focus, #tp-champ:focus { box-shadow: 0 0 0 4px rgba(163, 39, 31, .15); }
#lex-suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; list-style: none; margin: .3em 0 0; padding: .3em 0; background: #fff; border: 1px solid var(--trait); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); font: 15px system-ui, sans-serif; }
#lex-suggestions a { display: block; padding: .45em 1em; text-decoration: none; color: var(--encre); }
#lex-suggestions a:hover, #lex-suggestions a:focus { background: #f6eee3; outline: none; }
#lex-suggestions small { color: var(--gris); }
.lex-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em; margin-bottom: 1em; }
.lex-filtres button, .lex-vues button { border: 1px solid var(--trait); background: #fff; border-radius: 20px; padding: .35em .9em; cursor: pointer; font: 14px system-ui, sans-serif; color: var(--encre); }
.lex-filtres button.actif, .lex-vues button.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.lex-filtres small { opacity: .7; }
.lex-barre { display: flex; justify-content: space-between; align-items: center; font: 14px system-ui, sans-serif; color: var(--gris); margin-bottom: .6em; }
.lex-vues button { border-radius: 4px; padding: .2em .6em; }
.lex-mot { text-decoration: none; color: var(--encre); }
.lex-mot[hidden] { display: none !important; }
.lex-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7em; }
.lex-tuiles .lex-mot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2em; background: #fff; border: 1px solid var(--trait); border-top: 4px solid var(--rouge); border-radius: 8px; padding: .8em .6em; transition: transform .15s, box-shadow .15s; }
.lex-tuiles .lex-mot:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.lex-tuiles .lex-kanji { font-size: 1.7em; line-height: 1.2; min-height: 1.2em; }
.lex-tuiles .lex-titre { font-weight: bold; }
.lex-tuiles .lex-resume { font: 13px/1.35 system-ui, sans-serif; color: var(--gris); flex-grow: 1; }
.lex-liste { display: flex; flex-direction: column; }
.lex-liste .lex-mot { display: grid; grid-template-columns: 5em 11em 1fr auto; gap: .8em; align-items: center; padding: .55em .4em; border-bottom: 1px solid var(--trait); }
.lex-liste .lex-mot:hover { background: #fff; }
.lex-liste .lex-kanji { font-size: 1.2em; }
.lex-liste .lex-resume { font: 14px system-ui, sans-serif; color: var(--gris); }
.lex-badges { display: flex; flex-wrap: wrap; gap: .3em; justify-content: center; }
.badge { display: inline-block; background: #f6eee3; color: var(--rouge); border: 1px solid #ead9c4; border-radius: 12px; padding: .1em .6em; font: 12px system-ui, sans-serif; }
.badge.a-valider { background: #fff3cd; color: #7a5a00; border-color: #f0dc9c; }
.lex-entete { display: flex; gap: 1.2em; align-items: center; margin: 1em 0; }
.lex-entete h1 { margin: 0; }
.lex-entete .lex-badges { justify-content: flex-start; }
.lex-grand-kanji { font-size: 3.2em; line-height: 1.1; color: var(--rouge); background: #fff; border: 2px solid var(--rouge); border-radius: 12px; padding: .15em .35em; white-space: nowrap; }
.lex-details { font: 15px system-ui, sans-serif; display: grid; grid-template-columns: auto 1fr; gap: .3em 1em; color: var(--gris); }
.lex-details dt { font-weight: bold; }
.lex-details dd { margin: 0; }
.lex-voisins { display: flex; flex-wrap: wrap; gap: .4em; }
.lex-voisins a { background: #fff; border: 1px solid var(--trait); border-radius: 16px; padding: .2em .8em; text-decoration: none; font: 14px system-ui, sans-serif; }
@media (max-width: 600px) {
  .lex-filtres { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .3em; scrollbar-width: none; }
  .lex-filtres button { flex: none; }
  .lex-tuiles { grid-template-columns: repeat(2, 1fr); }
  .lex-liste .lex-mot { grid-template-columns: 4em 1fr; }
  .lex-liste .lex-resume, .lex-liste .lex-badges { grid-column: 2; justify-content: flex-start; }
  .lex-entete { flex-direction: column; align-items: flex-start; }
  .lex-grand-kanji { font-size: 2.4em; }
}

/* Mots du lexique dans les textes, et leur bulle */
a.lex-lien { color: inherit; text-decoration: underline dotted var(--rouge); text-underline-offset: 3px; cursor: help; }
.lex-bulle { position: absolute; z-index: 3000; background: #fff; border: 1px solid var(--trait); border-top: 3px solid var(--rouge); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); padding: .6em .8em; font: 14px/1.4 system-ui, sans-serif; }
.lex-bulle b, .lex-bulle span, .lex-bulle a { display: block; }
.lex-bulle span { color: var(--gris); margin: .2em 0 .4em; }
.lex-abris { font: 14px/1.6 system-ui, sans-serif; padding-left: 1.2em; columns: 2 300px; }
.lex-kanji rt, .lex-grand-kanji rt { font: bold 11px system-ui, sans-serif; color: #1f6fb5; letter-spacing: .02em; }
.lex-grand-kanji rt { font-size: 13px; }
.lex-tuiles .lex-kanji { min-height: 2em; display: flex; align-items: flex-end; }
.lex-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6em; margin: 1em 0; }
.lex-photos figure { margin: 0; }
.lex-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
.lex-photos figcaption { font: 13px system-ui, sans-serif; color: var(--gris); }

/* Barre du bas (téléphone), reprise de KanjiYomou */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #e0e0e0; z-index: 9990; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -2px 10px rgba(0,0,0,.05); font-family: system-ui, sans-serif; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0 6px; color: #888; text-decoration: none; flex: 1; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.bottom-nav-item:active { background: #f9f9f9; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--rouge); }
.bottom-nav-icon { font-size: 1.4em; margin-bottom: 3px; line-height: 1; }
.bottom-nav-label { font-size: .65em; font-weight: 600; }
@media (max-width: 900px) {
  .bottom-nav { display: flex; }
  .bandeau nav { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* Accueil à trois portes et guide */
.portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1em; margin-top: 1.5em; }
.porte { background: #fff; border: 1px solid var(--trait); border-top: 5px solid var(--rouge); border-radius: 10px; padding: 1em 1.2em; }
.porte h2 { margin: 0 0 .3em; border: none; padding: 0; font-size: 1.3em; }
.porte p { font: 15px system-ui, sans-serif; color: var(--gris); margin: 0 0 .6em; }
.porte ul { margin: 0; padding-left: 1.1em; font: 15px/1.7 system-ui, sans-serif; }
.cartes-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8em; }
.carte-article { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trait); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--encre); }
.carte-article img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.carte-article b { padding: .6em .8em 0; }
.carte-article span { padding: .2em .8em .8em; font: 14px system-ui, sans-serif; color: var(--gris); }
.article .texte figure { margin: 1em 0; }
.article .texte img { max-width: 100%; height: auto; border-radius: 6px; cursor: zoom-in; }
.article .texte figcaption { font: 13px system-ui, sans-serif; color: var(--gris); }

/* Carte d'ensemble */
#carte-ensemble { height: 70vh; min-height: 420px; border-radius: 8px; border: 1px solid var(--trait); }
.num-temple { width: 26px; height: 26px; border-radius: 50%; color: #fff; font: bold 11px system-ui, sans-serif; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.abri-carte { font-size: 16px; line-height: 22px; text-align: center; background: #fff; border-radius: 50%; border: 1px solid #999; }
.abri-carte.disparu { opacity: .45; }

/* Page des temples : filtres, vues, tableau */
.tp-filtres { display: flex; flex-direction: column; gap: .4em; margin-bottom: .8em; }
.tp-groupe { display: flex; flex-wrap: wrap; gap: .35em; align-items: center; }
.tp-groupe button, #tp-honzon { border: 1px solid var(--trait); background: #fff; border-radius: 20px; padding: .35em .85em; cursor: pointer; font: 14px system-ui, sans-serif; color: var(--encre); }
.tp-groupe button.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.tp-effacer { color: var(--rouge) !important; }
.tp-intro { margin: 0 0 .8em; font-size: .95em; }
.tp-pref h2 small { display: block; }
#tp-groupes li[hidden], .tp-pref[hidden] { display: none; }
.liste-temples .icones { grid-column: 2; font-size: 13px; letter-spacing: .1em; }
.vue-liste .liste-temples { grid-template-columns: 1fr; gap: 0; }
.vue-liste .liste-temples a { grid-template-columns: 2.6em 1fr auto; grid-template-rows: auto; border-radius: 0; border-width: 0 0 1px; background: transparent; align-items: center; }
.vue-liste .liste-temples .num { grid-row: auto; }
.vue-liste .liste-temples .ville { grid-column: 2; }
.vue-liste .liste-temples .icones { grid-column: 3; grid-row: 1 / 3; }
#tp-tableau { overflow-x: auto; }
.tp-table { border-collapse: collapse; width: 100%; font: 14px system-ui, sans-serif; background: #fff; }
.tp-table th { position: sticky; top: 0; background: #f6eee3; cursor: pointer; text-align: left; padding: .45em .5em; white-space: nowrap; user-select: none; }
.tp-table th.trie { color: var(--rouge); }
.tp-table td { border-top: 1px solid var(--trait); padding: .4em .5em; vertical-align: top; }
.tp-table tr:hover td { background: #fbf7f0; }
@media (max-width: 600px) {
  .tp-groupe { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2em; }
  .tp-groupe button, #tp-honzon { flex: none; }
}

/* ==========================================================================
   Hero Banner Diaporama Immersif (Page d'accueil)
   ========================================================================== */
.hero-diaporama {
  position: relative;
  width: 100%;
  height: clamp(400px, 58vh, 560px);
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
  user-select: none;
}
.hero-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 8s ease-out;
  transform: scale(1.04);
  pointer-events: none;
}
.hero-slide.actif {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.hero-lieu-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  font: 12px system-ui, sans-serif;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 3px solid var(--rouge);
  letter-spacing: 0.02em;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 1.8em 1.5em 3.2em;
  /* Voile doux en haut pour le texte et en bas pour les boutons, milieu transparent */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 32%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.55) 100%);
}
.hero-header {
  max-width: 900px;
  margin: 0 auto;
}
.hero-kanji {
  display: inline-block;
  font-size: 1.1em;
  letter-spacing: 0.35em;
  color: #ffe8b3;
  margin-bottom: 0.2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.9);
  font-weight: 600;
}
.hero-titre {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin: 0 0 0.2em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.9);
  font-weight: 700;
}
.hero-chapo {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  margin: 0 0 0.3em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.9);
}
.hero-devise {
  font-style: italic;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: #f1f5f9;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.6em;
  border-radius: 30px;
  font: 600 15px system-ui, sans-serif;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-hero-primary {
  background: var(--rouge);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-hero-primary:hover {
  background: #bd2d24;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(163, 39, 31, 0.45);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.hero-fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(15, 20, 28, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.hero-fleche:hover {
  background: rgba(163, 39, 31, 0.85);
  transform: translateY(-50%) scale(1.08);
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-points {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero-point {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-point:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-point.actif {
  width: 42px;
  background: var(--rouge);
}
.intro-accueil {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.intro-accueil h2 {
  margin-top: 0.5em;
}

@media (max-width: 600px) {
  .hero-diaporama {
    height: clamp(420px, 66vh, 500px);
  }
  .hero-overlay {
    padding: 1.2em 0.8em 3.4em;
  }
  .hero-fleche {
    display: none;
  }
  .hero-kanji {
    font-size: 0.82em;
    letter-spacing: 0.25em;
    margin-bottom: 0.1em;
  }
  .hero-titre {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    white-space: nowrap;
    margin-bottom: 0.15em;
  }
  .hero-chapo {
    font-size: clamp(0.7rem, 2.9vw, 0.85rem);
    white-space: nowrap;
    margin-bottom: 0.15em;
  }
  .hero-devise-jp {
    display: none;
  }
  .hero-devise {
    font-size: clamp(0.68rem, 2.8vw, 0.82rem);
    white-space: nowrap;
  }
  .hero-lieu-tag {
    bottom: 38px;
    right: 10px;
    font-size: 11px;
    padding: 2px 7px;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    max-width: 270px;
    margin: 0 auto;
  }
  .btn-hero {
    width: 100%;
    padding: 0.65em 1.1em;
    font-size: 13.5px;
  }
}


/* ==========================================================================
   Filtres de la carte interactive & Popups enrichis
   ========================================================================== */
.carte-entete {
  margin-bottom: 0.8em;
}
.carte-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.5em;
  align-items: center;
}
.btn-filtre-carte {
  border: 1px solid var(--trait);
  background: #fff;
  border-radius: 20px;
  padding: 0.4em 0.85em;
  cursor: pointer;
  font: 14px system-ui, sans-serif;
  color: var(--encre);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-filtre-carte:hover {
  background: #f7f7f7;
  border-color: #bbb;
}
.btn-filtre-carte.actif {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}
.btn-filtre-carte.actif .badge-nb {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.badge-nb {
  font-size: 11px;
  font-weight: bold;
  background: #eee;
  color: #555;
  padding: 1px 6px;
  border-radius: 10px;
}
.btn-filtre-carte.btn-tableau {
  margin-left: auto;
  border-color: #2e7d32;
  color: #2e7d32;
  font-weight: 500;
}
.btn-filtre-carte.btn-tableau:hover {
  background: #e8f5e9;
}

/* Pastilles Bekkaku sur la carte */
.num-temple.bekkaku {
  background: #4a148c !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Popups Leaflet enrichis */
.carte-popup-temple, .carte-popup-goya {
  font: 13.5px/1.4 system-ui, sans-serif;
}
.carte-popup-temple .popup-titre, .carte-popup-goya .popup-titre {
  font-size: 14px;
  margin-bottom: 0.4em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eee;
}
.popup-meta, .popup-info {
  font-size: 12.5px;
  color: #555;
  margin-bottom: 0.3em;
}
.popup-nom {
  font-size: 13px;
  color: #333;
}
.badge-disparu {
  display: inline-block;
  background: #fff3e0;
  color: #d84315;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 0.4em;
}
.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-top: 0.6em;
  padding-top: 0.5em;
  border-top: 1px dashed #ddd;
}
.popup-btn {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #ccc;
  background: #fdfdfd;
  color: #333;
}
.popup-btn:hover {
  background: #eee;
}
.popup-btn.primary {
  background: var(--rouge);
  color: #fff;
  border-color: var(--rouge);
}
.popup-btn.nav {
  background: #e8f5e9;
  border-color: #81c784;
  color: #1b5e20;
}
.popup-btn.street {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #0d47a1;
}

/* ==========================================================================
   Page & Tableau Henro Goya
   ========================================================================== */
.henro-goya-page {
  max-width: 1200px;
}
.goya-entete {
  margin-bottom: 1em;
}
.goya-intro {
  font: 15px/1.5 system-ui, sans-serif;
  color: var(--gris);
  max-width: 800px;
  margin: 0.3em 0 0.8em;
}
.goya-actions-top {
  margin-bottom: 1em;
}
.btn-goya-carte {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--rouge);
  color: #fff;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: opacity 0.15s;
}
.btn-goya-carte:hover {
  opacity: 0.9;
}
.goya-recherche input {
  width: 100%;
  max-width: 600px;
  padding: 0.6em 1em;
  border: 1px solid var(--trait);
  border-radius: 6px;
  font-size: 15px;
}
.btn-goya-filtre, .btn-goya-filtre-statut {
  border: 1px solid var(--trait);
  background: #fff;
  border-radius: 20px;
  padding: 0.35em 0.85em;
  cursor: pointer;
  font: 14px system-ui, sans-serif;
  color: var(--encre);
}
.btn-goya-filtre.actif, .btn-goya-filtre-statut.actif {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}
.goya-barre-compteur {
  font: 14px system-ui, sans-serif;
  color: var(--gris);
  margin: 0.5em 0 0.8em;
}
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: 8px;
  background: #fff;
}
.goya-table {
  width: 100%;
  border-collapse: collapse;
  font: 14px/1.4 system-ui, sans-serif;
}
.goya-table th {
  background: #f9f9f9;
  border-bottom: 2px solid var(--trait);
  padding: 0.65em 0.8em;
  text-align: left;
  font-weight: bold;
  font-size: 13px;
  color: var(--gris);
}
.goya-table td {
  padding: 0.65em 0.8em;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.goya-table tr:hover {
  background: #fbfbfb;
}
.goya-ligne.ligne-disparu {
  background: #fdfaf8;
  opacity: 0.85;
}
.badge-goya-num {
  display: inline-block;
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.badge-goya-num.disparu {
  border-color: #e0a800;
  background: #fff9e6;
}
.nom-goya-romaji strong {
  font-size: 15px;
  color: var(--encre);
}
.adresse-goya {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}
.tag-disparu {
  display: inline-block;
  font-size: 11px;
  color: #b71c1c;
  background: #ffebee;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: bold;
  margin-left: 0.4em;
}
.badge-pref {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
}
.badge-pref.badge-tokushima { background: #2e7d32; }
.badge-pref.badge-kōchi, .badge-pref.badge-kochi { background: #c62828; }
.badge-pref.badge-ehime { background: #1565c0; }
.badge-pref.badge-kagawa { background: #6a1b9a; }

.col-situation, .col-equipements {
  font-size: 13px;
  color: #444;
}
.texte-gris {
  color: #aaa;
}
.actions-goya-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.btn-action {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #ccc;
  background: #fdfdfd;
  color: #333;
  white-space: nowrap;
  transition: background 0.1s, border-color 0.1s;
}
.btn-action:hover {
  background: #f0f0f0;
}
.btn-action.carte {
  background: #fff8e1;
  border-color: #ffe082;
  color: #8d6e00;
}
.btn-action.carte:hover {
  background: #ffecb3;
}
.btn-action.itineraire {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #2e7d32;
}
.btn-action.itineraire:hover {
  background: #c8e6c9;
}
.btn-action.gps {
  background: #f3e5f5;
  border-color: #ce93d8;
  color: #6a1b9a;
}
.btn-action.gps:hover {
  background: #e1bee7;
}
.btn-action.street {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1565c0;
}
.btn-action.street:hover {
  background: #bbdefb;
}

@media (max-width: 600px) {
  .carte-filtres {
    gap: 0.3em;
  }
  .btn-filtre-carte {
    font-size: 12.5px;
    padding: 0.35em 0.65em;
  }
  .btn-filtre-carte.btn-tableau {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ========================================================
   Schéma d'itinéraire combiné Temple ➔ Temple (Prototype)
   ======================================================== */
.h-schema-voyage {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  margin: 1.2em 0;
  padding: 1.2em;
  font-family: system-ui, -apple-system, sans-serif;
}

.h-schema-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1em;
}

.h-schema-badge {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3em 0.8em;
  border-radius: 20px;
}

.h-schema-titre-route {
  font-size: 1.05rem;
  color: #1e293b;
}

.h-fleche-route {
  color: #94a3b8;
  margin: 0 0.3em;
}

/* Frise horizontale (Desktop) */
.h-frise-conteneur {
  overflow-x: auto;
  padding: 0.8em 0.2em 1.2em;
}

.h-schema-frise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 640px;
  position: relative;
}

.h-frise-noeud {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 110px;
}

.h-noeud-bulle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-bottom: 0.5em;
  transition: transform 0.2s ease;
}

.h-noeud-temple .h-noeud-bulle {
  border-color: #a3271f;
  background: #fff5f5;
}

.h-noeud-transport .h-noeud-bulle {
  border-color: #2563eb;
  background: #eff6ff;
}

.h-noeud-ico {
  font-size: 1.25rem;
}

.h-noeud-num {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #a3271f;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1;
}

.h-noeud-corps {
  font-size: 0.85rem;
}

.h-noeud-nom {
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  margin-bottom: 0.25em;
}

.h-noeud-timing {
  font-size: 0.75rem;
  color: #64748b;
}

.h-noeud-timing b {
  color: #0f172a;
}

.h-timing-actif {
  color: #059669;
  font-weight: 600;
}

.h-timing-dep b {
  color: #2563eb;
}

.h-timing-arr b {
  color: #a3271f;
}

/* Liaisons intermédiaires */
.h-frise-liaison {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0 0.4em;
  margin-top: -1.8em;
}

.h-liaison-trait {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 1;
}

.h-liaison-marche .h-liaison-trait {
  border-top: 2px dashed #94a3b8;
}

.h-liaison-transport .h-liaison-trait {
  border-top: 3px solid #2563eb;
}

.h-liaison-badge {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.25em 0.65em;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.h-liaison-marche .h-liaison-badge {
  border-color: #cbd5e1;
  color: #475569;
}

.h-liaison-transport .h-liaison-badge {
  border-color: #93c5fd;
  background: #f8fafc;
  color: #1e40af;
  font-weight: 600;
}

.h-l-dist {
  font-weight: 700;
}

.h-l-tps {
  color: #64748b;
}

.h-l-deniv {
  font-size: 0.7rem;
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Détails du voyage (Travel Details) */
.h-schema-details {
  margin-top: 0.8em;
}

.h-details-carte {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1em 1.2em;
}

.h-det-titre {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.8em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.h-det-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1em;
}

.h-det-col {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.h-det-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.h-det-val {
  font-size: 1.05rem;
  color: #0f172a;
}

.h-det-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.h-texte-vert b {
  color: #059669;
}

/* Grille détaillée repliable */
.h-details-horaires {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.6em 1em;
  margin-top: 0.8em;
}

/* Adaptations Responsive Mobile (Timeline verticale) */
@media (max-width: 768px) {
  .h-schema-voyage {
    padding: 1em 0.8em;
  }

  .h-frise-conteneur {
    padding: 0.5em 0;
  }

  .h-schema-frise {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-left: 1.8rem;
    position: relative;
  }

  .h-frise-noeud {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    margin: 0.6em 0;
  }

  .h-noeud-bulle {
    position: absolute;
    left: 0;
    margin-bottom: 0;
    width: 38px;
    height: 38px;
  }

  .h-noeud-corps {
    margin-left: 2.8rem;
  }

  .h-frise-liaison {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    margin: 0.2em 0;
    padding: 0.4em 0 0.4em 2.8rem;
  }

  .h-liaison-trait {
    top: -1em;
    bottom: -1em;
    left: 19px;
    right: auto;
    width: 0;
    height: calc(100% + 2em);
    border-top: none !important;
  }

  .h-liaison-marche .h-liaison-trait {
    border-left: 2px dashed #94a3b8;
  }

  .h-liaison-transport .h-liaison-trait {
    border-left: 3px solid #2563eb;
  }

  .h-liaison-badge {
    white-space: normal;
    display: inline-flex;
    font-size: 0.75rem;
  }

  .h-det-grille {
    grid-template-columns: 1fr;
    gap: 0.8em;
  }
}

/* Éléments de chronologie détaillée du voyage */
.h-l-heures {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 0.3em;
}

.h-timing-sous {
  font-size: 0.72rem;
  color: #64748b;
}

.h-etapes-chrono {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em 0.6em;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.6em 0.8em;
  margin-bottom: 1em;
  font-size: 0.85rem;
}

.h-chrono-pt {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: #f8fafc;
  padding: 0.25em 0.55em;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.h-c-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.h-c-badge.final {
  color: #a3271f;
}

.h-c-nom {
  color: #1e293b;
  font-weight: 600;
}

.h-c-h {
  color: #0f172a;
}

.h-c-h.final {
  color: #a3271f;
}

.h-chrono-liaison {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: #64748b;
  font-size: 0.75rem;
}

.h-chrono-liaison .h-c-txt {
  background: #fff;
  border: 1px dashed #cbd5e1;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ==========================================================================
   Trajet porte à porte (03/11/2026) : cartes « lieu » et « liaison » qui passent à la ligne
   selon la largeur ; colonne verticale sur téléphone. Caractères à la taille du texte.
   ========================================================================== */
.h-tj { margin: .6em 0 1em; font-size: 1rem; }
.h-tj-trajet { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5em .4em; }
.h-tj-lieu, .h-tj-liaison { border-radius: 10px; padding: .55em .8em; line-height: 1.35; }
.h-tj-lieu { background: #fff; border: 1px solid #d6cdbf; flex: 0 1 auto; min-width: 9em; max-width: 18em; }
.h-tj-temple { border-color: #b0413e; background: #fff8f6; }
.h-tj-nom { font-size: 1rem; }
.h-tj-jp { color: #7a6f63; font-size: .9em; }
.h-tj-heures { margin-top: .25em; font-size: .95rem; color: #3a332c; }
.h-tj-heures b { font-size: 1.1em; }
.h-tj-meme { border-style: dashed; }
.h-tj-change { border-color: #c98a1b; background: #fffaf0; }
.h-tj-liaison { display: flex; gap: .5em; align-items: flex-start; flex: 0 1 auto; max-width: 22em; background: #f1f5f9; border: 1px solid transparent; }
.h-tj-marche { background: #eef7ee; }
.h-tj-transport { background: #e8f2fb; }
.h-tj-ico { font-size: 1.3em; line-height: 1.1; }
.h-tj-l-titre { font-weight: 600; }
.h-tj-l-det { font-size: .9rem; color: #4b5563; }
/* Flèche entre deux cartes, sur une même ligne */
.h-tj-trajet > * { position: relative; }
.h-tj-bilan { display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: .6em; margin-top: .8em; }
.h-tj-bilan > div { background: #faf7f2; border: 1px solid #e7dfd3; border-radius: 10px; padding: .55em .8em; display: flex; flex-direction: column; gap: .15em; }
.h-tj-bilan span { font-size: .85rem; color: #6b5f52; text-transform: uppercase; letter-spacing: .03em; }
.h-tj-bilan b { font-size: 1.25rem; }
.h-tj-bilan small { font-size: .88rem; color: #6b7280; }
@media (max-width: 640px) {
  .h-tj-trajet { flex-direction: column; gap: 0; }
  .h-tj-lieu, .h-tj-liaison { max-width: none; }
  .h-tj-liaison { margin: 0 0 0 1.1em; border-left: 3px solid #cbd5e1; border-radius: 0; background: none; padding: .5em .8em .5em 1em; }
  .h-tj-marche { border-left-color: #6fbf73; }
  .h-tj-transport { border-left-color: #4a90d9; }
}

/* ==========================================================================
   Plan du trajet + feuille de route + horaires en deux colonnes (03/11/2026)
   ========================================================================== */
.h-mode-marche { --c: #5a9e5e; } .h-mode-train { --c: #2f6fb3; } .h-mode-bus { --c: #1f9d6b; }
.h-mode-dmv { --c: #c48a0c; } .h-mode-telepherique { --c: #8a5bc4; } .h-mode-bateau { --c: #157a9e; }
.h-plan { display: flex; align-items: flex-start; margin: .8em 0 1em; padding: 1.7em .2em 0; overflow-x: auto; }
.h-plan-arret { flex: 0 0 auto; width: 7.5em; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.h-plan-pt { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #6b7280; margin-top: -2px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; z-index: 1; box-sizing: border-box; }
.h-plan-temple .h-plan-pt { width: 34px; height: 34px; margin-top: -6px; background: #b0413e; border-color: #b0413e; color: #fff; font-size: .95rem; }
.h-plan-change .h-plan-pt { border-color: #c98a1b; }
.h-plan-nom { margin-top: .35em; font-size: .92rem; line-height: 1.25; }
.h-plan-h { font-weight: 700; font-size: 1.05rem; margin-top: .15em; }
.h-plan-seg { flex: 1 1 0; min-width: 5.5em; position: relative; height: 3.4em; margin: 0 -3.75em; padding: 0 3.75em; }
.h-plan-trait { position: absolute; left: 0; right: 0; top: 9px; border-top: 6px solid var(--c, #888); }
.h-mode-marche .h-plan-trait { border-top-style: dotted; }
.h-plan-mode { position: absolute; left: 0; right: 0; top: -1.6em; text-align: center; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.h-plan-sous { position: absolute; left: 0; right: 0; top: 22px; text-align: center; font-size: .85rem; color: #4b5563; white-space: nowrap; }
.h-deux-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2em; margin-top: .8em; align-items: start; }
.h-col-titre { font-weight: 700; margin: .6em 0 .3em; }
.h-feuille { list-style: none; margin: 0; padding: 0; }
.h-feuille li { display: grid; grid-template-columns: 3.4em 1.6em 1fr; align-items: stretch; }
.h-f-h { font-weight: 700; font-size: 1.05rem; padding-top: .1em; text-align: right; padding-right: .3em; }
.h-f-rail { position: relative; }
.h-f-seg .h-f-rail::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); border-left: 5px solid var(--c, #999); }
.h-f-seg.h-mode-marche .h-f-rail::before { border-left-style: dotted; }
.h-f-arret .h-f-rail i { position: absolute; left: 50%; top: .35em; width: 16px; height: 16px; transform: translateX(-50%); border-radius: 50%; background: #fff; border: 4px solid #6b7280; box-sizing: border-box; }
.h-f-temple .h-f-rail i { background: #b0413e; border-color: #b0413e; width: 20px; height: 20px; top: .2em; }
.h-f-change .h-f-rail i { border-color: #c98a1b; }
.h-f-txt { padding: .15em 0 .55em .3em; line-height: 1.35; }
.h-f-seg .h-f-txt { padding: .45em 0 .65em .3em; color: #374151; }
.h-f-txt small { display: block; font-size: .88rem; color: #6b7280; }
.h-f-jp { color: #7a6f63; font-weight: normal; }
@media (max-width: 760px) {
  .h-plan { display: none; }
  .h-deux-col { grid-template-columns: 1fr; }
}
.h-troncons[hidden] { display: none !important; }
/* Variantes d'un trajet (03/11/2026) */
.h-variantes { margin: .4em 0 .2em; }
.h-var-boutons { display: flex; flex-wrap: wrap; gap: .4em; }
.h-var-boutons button { font: inherit; font-size: 1rem; padding: .45em 1em; border-radius: 999px; border: 2px solid #d6cdbf; background: #fff; cursor: pointer; }
.h-var-boutons button[aria-selected="true"] { border-color: #b0413e; background: #b0413e; color: #fff; font-weight: 700; }
.h-var-compare { margin-top: .45em; font-size: .95rem; color: #3a332c; background: #faf7f2; border-left: 4px solid #c98a1b; padding: .4em .7em; border-radius: 4px; }
.h-var-compare:empty { display: none; }

/* ==========================================================================
   Deux largeurs (03/11/2026) : le texte reste lisible (~900 px), les données
   (transports, carte et chemins, photos) prennent jusqu'à 1 400 px.
   ========================================================================== */
.page-large { max-width: 1400px; }
.page-large > .voisins, .page-large > #temple, .page-large > #histoire { max-width: 900px; margin-left: auto; margin-right: auto; }
.page-large #carte { height: 560px; }
@media (max-width: 640px) { .page-large #carte { height: 340px; } }
/* Barre « heure au Japon / simuler » mise en valeur (03/11/2026) : carte sous « Vers le temple suivant » */
#h-barre { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em; background: #fff8ec; border: 2px solid #e2b86b; border-radius: 12px; padding: .7em 1em; margin: .4em 0 .8em; font-size: 1rem; }
#h-horloge { font-size: 1.1rem; }
#h-horloge b { font-size: 1.15em; color: #8a2b27; }
#h-barre form { font-size: .95rem; color: #5c5145; display: flex; flex-wrap: wrap; align-items: center; gap: .35em; }
#h-barre form input, #h-barre form button { font-size: .95rem; padding: .3em .5em; border-radius: 6px; border: 1px solid #d6cdbf; background: #fff; }
#h-barre form button { cursor: pointer; font-weight: 600; }
#h-barre form button[data-maintenant] { background: #b0413e; border-color: #b0413e; color: #fff; }
.h-variantes, .h-variantes button { font-family: system-ui, sans-serif; }

/* ==========================================================================
   Articles (03/11/2026) : en-tête image, galeries à miniatures, cartes, boutons flottants
   (Navigation 📚 / Sommaire, même allure que KanjiYomou)
   ========================================================================== */
.entete-image { min-height: 0; height: clamp(160px, 28vw, 340px); }
.entete-image::after { display: none; }
.article { max-width: 1100px; }
.article .art-titre { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: .2em 0 .5em; line-height: 1.2; }
.article .art-retour { font: .95rem system-ui, sans-serif; margin: .2em 0 0; }
.article .texte { font-size: 1.08rem; line-height: 1.7; max-width: 820px; }
.article .texte h2 { font-size: 1.5rem; margin: 1.4em 0 .5em; clear: both; }
.article .texte h3 { font-size: 1.25rem; margin: 1.2em 0 .4em; clear: both; }
.article .texte ul { padding-left: 1.2em; }
.article .texte li { margin: .35em 0; }
/* Galeries : principale + miniatures ; à gauche du texte sur grand écran */
.art-galerie { margin: .4em 0 1em; }
.art-principale { margin: 0; background: #fff; border: 1px solid var(--trait, #ddd); border-radius: 8px; overflow: hidden; }
.art-principale img { display: block; width: 100%; max-height: 420px; object-fit: cover; cursor: zoom-in; }
.art-principale figcaption { font: .9rem system-ui, sans-serif; color: #5c5145; padding: .4em .6em; }
.art-miniatures { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; padding-bottom: 2px; }
.art-miniatures button { flex: 0 0 auto; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .75; }
.art-miniatures button.actif { border-color: #b0413e; opacity: 1; }
.art-miniatures img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .article .texte .art-galerie { float: left; width: 42%; margin: .3em 1.6em 1em 0; }
}
/* Cartes des articles : petites en haut, avec résumé en fin d'article */
.art-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7em; }
.art-cartes-haut { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: .2em 0 1.4em; }
.art-carte { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trait, #ddd); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.art-carte:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.art-carte-img { display: block; height: 110px; background: #ddd center/cover; }
.art-carte.compacte .art-carte-img { height: 72px; }
.art-carte-img.vide { display: grid; place-items: center; font-size: 1.8rem; }
.art-carte-txt { padding: .5em .65em .6em; display: flex; flex-direction: column; gap: .2em; font-family: system-ui, sans-serif; }
.art-carte-txt b { font-size: .95rem; line-height: 1.25; }
.art-carte.compacte .art-carte-txt b { font-size: .85rem; }
.art-carte-txt small { font-size: .82rem; color: #6b7280; line-height: 1.35; }
.art-alire { clear: both; margin-top: 2.2em; border-top: 1px solid var(--trait, #ddd); padding-top: 1em; }
@media (max-width: 640px) {
  .art-cartes-haut { display: flex; overflow-x: auto; gap: .6em; }
  .art-cartes-haut .art-carte { flex: 0 0 140px; }
}
/* Boutons flottants Navigation / Sommaire (identité KanjiYomou) */
.flottants { position: fixed; top: 64px; right: 14px; z-index: 1001; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.flottants-boutons { display: flex; gap: 8px; background: rgba(0,0,0,.05); padding: 7px; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 4px 10px rgba(0,0,0,.05); }
.flottant { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; cursor: pointer; color: #333; }
.flottant:hover { background: #f7f7f7; }
.flottant .ico { font-size: 1.25em; line-height: 1; }
.flottant .fleche { font-size: 1.4em; line-height: 1; transition: transform .2s; margin-left: 4px; }
.flottant.ouvert .fleche { transform: rotate(90deg); }
.ico-lignes { display: flex; flex-direction: column; gap: 4px; }
.ico-lignes i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; position: relative; margin-left: 7px; }
.ico-lignes i::before { content: ""; position: absolute; left: -8px; top: -1.5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.flottant-panneau { width: 290px; max-height: 70vh; overflow-y: auto; background: rgba(255,255,255,.98); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 8px 10px; font-family: system-ui, sans-serif; }
.flottant-panneau .fp-titre { font-weight: 700; padding: 6px 4px 8px; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.flottant-panneau a { display: block; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: .95rem; background: rgba(0,0,0,.03); margin: 4px 0; }
.flottant-panneau a:hover { background: #f0f0f0; }
.flottant-panneau a.fp-sous { margin-left: 14px; font-size: .9rem; }
.flottant-panneau a.fp-tout { background: none; color: #b0413e; font-weight: 600; }
@media (max-width: 640px) { .flottants { top: auto; bottom: 74px; right: 10px; } .flottant-panneau { width: min(290px, 86vw); max-height: 60vh; } .flottants { flex-direction: column-reverse; } }
@media (min-width: 900px) { .article .texte .art-galerie + ul, .article .texte .art-galerie + ol { display: flow-root; } }

/* Lecture confortable (03/11/2026, demande de l'autrice) : page large, grands caractères */
.article { max-width: min(1500px, 94vw); }
.article .texte { max-width: none; font-size: clamp(1.15rem, 0.9rem + 0.55vw, 1.35rem); line-height: 1.75; }
.article .art-titre { font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); }
.article .texte h2 { font-size: 1.55em; }
.article .texte h3 { font-size: 1.3em; }
.article .art-principale figcaption { font-size: 1rem; }
.art-carte-txt b { font-size: 1.05rem; }
.art-carte.compacte .art-carte-txt b { font-size: .98rem; }
.art-carte-txt small { font-size: .95rem; }
.art-carte-img { height: 140px; }
.art-carte.compacte .art-carte-img { height: 90px; }
.art-cartes { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.art-cartes-haut { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.flottant-panneau a { font-size: 1.05rem; }
@media (min-width: 900px) { .article .texte .art-galerie { width: 45%; } .art-principale img { max-height: 520px; } }
/* Cartes centrées en largeur (colonnes de taille fixe, centrées) */
.art-cartes { grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; }
.art-cartes-haut { grid-template-columns: repeat(auto-fit, minmax(170px, 210px)); justify-content: center; }
@media (max-width: 640px) { .art-cartes-haut { justify-content: flex-start; } }
.art-carte-sous { font-size: .9rem; line-height: 1.3; color: #4b5563; }
.art-carte.compacte .art-carte-sous { font-size: .82rem; }
/* Mêmes largeur et taille de texte que les articles pour les autres pages (03/11/2026) */
.carte-page, .henro-goya-page, .temples-page, .accueil, .page-guide, .page-lexique { max-width: min(1500px, 94vw); }
.carte-page, .henro-goya-page, .temples-page, .page-guide, .page-lexique { font-size: clamp(1.05rem, 0.85rem + 0.45vw, 1.25rem); }
.henro-goya-page table { font-size: 1em; }
.carte-page #carte-ensemble { height: min(78vh, 900px); }
.guide, .lexique, .lexique-mot { max-width: min(1500px, 94vw); font-size: clamp(1.05rem, 0.85rem + 0.45vw, 1.25rem); }
/* Henro Goya : textes à la taille du reste du site */
.henro-goya-page .goya-intro { font-size: 1.05em; max-width: none; }
.henro-goya-page .goya-table, .henro-goya-page .goya-table td { font-size: .95em; }
.henro-goya-page .goya-table th { font-size: .85em; }
.henro-goya-page .goya-table td small, .henro-goya-page .goya-adresse { font-size: .85em; }
/* Page des temples (03/11/2026) : carte de Shikoku ; filtres sur une seule bande (une rangée qui défile sur téléphone) */
.tp-carte-shikoku { margin: 0 auto 1em; max-width: 1024px; }
.tp-carte-shikoku img { width: 100%; height: auto; display: block; border-radius: 10px; }
.tp-filtres { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .45em .6em; }
.tp-groupe { flex-wrap: nowrap; gap: .35em; }
.tp-groupe + .tp-groupe { border-left: 1px solid var(--trait); padding-left: .6em; }
.tp-groupe button, #tp-honzon { font-size: .95rem; padding: .3em .75em; white-space: nowrap; }
@media (max-width: 760px) {
  .tp-filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: .3em; margin-left: -1.2em; margin-right: -1.2em; padding-left: 1.2em; padding-right: 1.2em; }
  .tp-filtres::-webkit-scrollbar { display: none; }
  .tp-groupe { overflow: visible; flex: none; }
}
/* Filtres secondaires derrière « ⚙️ Filtres ▾ » : préfectures visibles, le reste dans un panneau */
.tp-bouton-plus { border: 1px solid var(--trait); background: #fff; border-radius: 20px; padding: .3em .85em; cursor: pointer; font: .95rem system-ui, sans-serif; white-space: nowrap; }
.tp-bouton-plus.actif { border-color: var(--rouge); color: var(--rouge); font-weight: 700; }
.tp-plus { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .45em .6em; background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: .6em .7em; }
.tp-plus[hidden] { display: none; }
.tp-plus .tp-groupe { flex-wrap: wrap; }
.tp-plus .tp-groupe + .tp-groupe { border-left: 1px solid var(--trait); padding-left: .6em; }
@media (max-width: 760px) {
  .tp-filtres { flex-wrap: wrap; overflow: visible; }
  .tp-filtres > .tp-groupe[data-groupe="pref"] { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
  .tp-plus .tp-groupe { flex: 1 1 100%; border-left: none !important; padding-left: 0 !important; }
}
.tp-carte-shikoku { max-width: 1150px; }
.carte-shikoku { width: 100%; height: auto; display: block; border-radius: 12px; }
.carte-shikoku .cs-temple { cursor: pointer; }
.carte-shikoku .cs-temple:hover circle:last-of-type, .carte-shikoku .cs-temple:focus circle:last-of-type { fill: #fff3c4; stroke-width: 3; }
/* Page des temples : carte et outils côte à côte sur grand écran (03/11/2026) */
@media (min-width: 1100px) {
  .tp-entete { display: grid; grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: 1.4em; align-items: start; }
  .tp-entete .tp-carte-shikoku { margin: 0; max-width: none; }
  .tp-outils { position: sticky; top: 4em; }
  .tp-outils .lex-recherche { max-width: none; margin: 0 0 .8em; }
  .tp-outils .tp-filtres { margin-bottom: 0; }
}
/* Les quatre provinces à droite de la carte (03/11/2026) */
.tp-provinces { display: none; }
@media (min-width: 1100px) {
  .tp-provinces { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin-top: 1em; }
  .tp-filtres > .tp-groupe[data-groupe="pref"] { display: none; }   /* remplacées par les cartes des provinces */
}
.tp-province { text-align: left; background: #fff; border: 1px solid var(--trait); border-left: 6px solid var(--c); border-radius: 10px; padding: .65em .8em; cursor: pointer; font: inherit; font-family: system-ui, sans-serif; display: flex; flex-direction: column; gap: .15em; }
.tp-province:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.tp-province.actif { background: color-mix(in srgb, var(--c) 10%, #fff); border-color: var(--c); }
.tp-province b { font-size: 1.35rem; color: var(--c); }
.tp-province > span { font-size: .95rem; color: #3a332c; }
.tp-province .tp-voie { font-weight: 600; color: var(--c); }
.tp-province small { font-size: .9rem; color: #6b7280; }
/* Henro Goya numérotés sur la carte interactive (03/11/2026) */
.abri-carte { display: inline-flex; align-items: center; gap: 2px; width: auto; height: 22px; padding: 0 5px 0 3px; border-radius: 11px; border: 1px solid #8a6d3b; background: #fff8e6; font: 700 12px/22px system-ui, sans-serif; color: #5c3d10; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.abri-carte span { font-size: 13px; }

/* ========================================================
   Mode Plein Écran pour Cartes Interactives (Mobile & Desktop)
   ======================================================== */
.carte-pe-actif {
  overflow: hidden !important;
  touch-action: none !important;
}

.carte-plein-ecran {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
}

/* Bouton bascule Plein écran dans les contrôles Leaflet */
.h-ctrl-pe {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 10px !important;
  margin-right: 10px !important;
}

.btn-pe-toggle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 6px 11px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-pe-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.ico-pe {
  font-size: 15px;
  line-height: 1;
}

/* Bouton Quitter (visible uniquement en mode plein écran) */
.btn-pe-quitter {
  display: none;
}

.carte-plein-ecran .btn-pe-quitter {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100000;
  background: #ffffff;
  color: #a3271f;
  border: 2px solid #a3271f;
  border-radius: 30px;
  padding: 8px 18px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.carte-plein-ecran .btn-pe-quitter:hover {
  background: #fff5f5;
  transform: scale(1.04);
}

/* Bouton GPS Me Localiser (visible uniquement en mode plein écran) */
.btn-pe-gps {
  display: none;
}

.carte-plein-ecran .btn-pe-gps {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 24px;
  right: 18px;
  z-index: 100000;
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 20px;
  cursor: pointer;
}

.carte-plein-ecran .btn-pe-gps.chargement {
  animation: pulse-gps 1s infinite;
}

@keyframes pulse-gps {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.marker-ma-position {
  width: 18px;
  height: 18px;
  background: #2563eb;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.carte-plein-ecran .h-ctrl-pe {
  display: none !important;
}

@media (max-width: 600px) {
  .btn-pe-toggle .label-pe {
    display: none; /* n'affiche que l'icône ⛶ sur smartphone pour ne pas encombrer */
  }
  .btn-pe-toggle {
    padding: 7px 9px;
    font-size: 17px;
  }
  .carte-plein-ecran .btn-pe-quitter {
    top: 10px;
    right: 10px;
    padding: 7px 13px;
    font-size: 13px;
  }
}

/* Blocs « Où dormir » sous l'article pelerinage-de-shikoku-dormir (04/11/2026) : temples qui logent les pèlerins */
.dormir-sommaire { display: flex; flex-wrap: wrap; gap: .5em; margin: 1em 0 1.5em; }
.dormir-sommaire a { padding: .45em .9em; border: 1px solid var(--trait); border-radius: 999px; background: #fff; text-decoration: none; color: var(--encre); font: 16px system-ui, sans-serif; }
.dormir-sommaire a:hover { border-color: var(--encre); }
.dormir-blocs h2 { margin-top: 1.6em; scroll-margin-top: 1em; }
.dormir-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9em; }
.dormir-table th, .dormir-table td { padding: .45em .6em; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.dormir-table td:first-child { font-weight: bold; white-space: nowrap; }
.dormir-table .jp { color: var(--gris); }
.dormir-tsuyado { columns: 3 260px; padding-left: 1.2em; }
.dormir-tsuyado li { margin: .25em 0; break-inside: avoid; }
.dormir-tsuyado .jp { color: var(--gris); }
.dormir-boutons { display: flex; flex-wrap: wrap; gap: .6em; }
.accueil .porte li.lien-fort a { font-weight: bold; }
.accueil .porte li.lien-sous { padding-left: 1.4em; font-size: .95em; }

/* Diaporama à thèmes (04/11/2026) : barre des chapitres sous les photos */
.hero-chapitres { background: var(--encre); color: #fff; padding: .7em max(1em, calc((100% - 1500px) / 2)) .9em; font: 16px system-ui, sans-serif; }
.hero-onglets { display: flex; gap: .4em; overflow-x: auto; scrollbar-width: none; padding-bottom: .1em; }
.hero-onglets::-webkit-scrollbar { display: none; }
.hero-onglet { flex: none; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: .4em .95em; font: inherit; cursor: pointer; white-space: nowrap; }
.hero-onglet:hover { border-color: #fff; }
.hero-onglet.actif { background: var(--rouge); border-color: var(--rouge); }
.hero-pause { position: sticky; right: 0; flex: none; margin-left: auto; background: var(--encre) !important; width: 2.4em; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; cursor: pointer; font: inherit; }
.hero-theme { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: .6em; }
.hero-theme[hidden] { display: none; }
.hero-theme p { margin: 0; font-size: 1.05em; }
.hero-theme-phrase { color: #e9e2d6; margin-left: .3em; }
.hero-theme .bouton { flex: none; }
@media (max-width: 600px) {
  .hero-chapitres { font-size: 14px; padding: .6em .7em .8em; }
  .hero-theme-phrase { display: none; }   /* téléphone : titre et bouton seulement */
  .hero-lieu-tag { bottom: 12px; }
}
.dormir-table tr.a-confirmer td { background: #fff8e6; }
.dormir-table .gris { color: var(--gris); font-style: italic; }
.dormir-fermes { font-size: .9em; color: var(--gris); }
/* Phrase propre à chaque photo (fondu) et lien discret à la place des deux gros boutons (04/11/2026) */
#hero-phrase { transition: opacity .35s ease; min-height: 1.5em; }
#hero-phrase.change { opacity: 0; }
.hero-lien { color: #fff; font: 600 15px system-ui, sans-serif; text-decoration: none; padding: .4em 1em; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.hero-lien:hover { background: rgba(0,0,0,.45); }
@media (max-width: 600px) { #hero-phrase { white-space: normal; } .hero-lien { font-size: 13.5px; } }

/* Menu des temples (05/11/2026) : panneau sous le bandeau (ordinateur) ou feuille qui monte du bas (téléphone) */
.menu-temples[hidden] { display: none; }
.menu-temples { position: fixed; inset: 0; z-index: 9995; font-family: system-ui, sans-serif; }
.mt-fond { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.mt-panneau { position: absolute; top: 3.2em; left: max(1em, calc(50% - 700px)); width: min(460px, 94vw); max-height: calc(100vh - 5em); overflow-y: auto;
  background: var(--papier); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: .6em .9em 1em; }
.mt-tete { display: flex; justify-content: space-between; align-items: center; padding: .3em 0 .6em; font-size: 18px; }
.mt-fermer { border: none; background: none; font-size: 22px; cursor: pointer; color: var(--encre); padding: .2em .4em; }
.mt-tous { display: block; padding: .7em .9em; margin-bottom: .6em; background: var(--rouge); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 17px; }
.mt-province { border-top: 1px solid var(--trait); }
.mt-province summary { cursor: pointer; padding: .75em .3em; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .6em; font-size: 18px; }
.mt-province summary::-webkit-details-marker { display: none; }
.mt-province summary::before { content: '▸'; color: var(--rouge); width: 1em; }
.mt-province[open] summary::before { content: '▾'; }
.mt-ancien { font-weight: 700; }
.mt-pref { color: var(--gris); font-size: .85em; }
.mt-province ul { list-style: none; margin: 0 0 .6em; padding: 0; columns: 2 180px; column-gap: .6em; }
.mt-province li { break-inside: avoid; }
.mt-province li a { display: block; padding: .45em .5em; border-radius: 6px; color: var(--encre); text-decoration: none; font-size: 17px; }
.mt-province li a:hover { background: #fff; }
.mt-province li a b { display: inline-block; min-width: 1.8em; color: var(--rouge); }
.mt-province li a .jp { color: var(--gris); font-size: .85em; }
.mt-province li.mt-ici a { background: var(--rouge); color: #fff; }
.mt-province li.mt-ici a b, .mt-province li.mt-ici a .jp { color: #fff; }
body.mt-ouvert { overflow: hidden; }
@media (max-width: 900px) {
  .mt-panneau { top: auto; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); left: 0; width: 100%; max-height: 78vh; border-radius: 14px 14px 0 0; }
  .mt-province ul { columns: 1; }
}

/* Carte de la fiche temple : boutons de cadrage (05/11/2026) */
.carte-cadrages { display: flex; gap: 4px; background: rgba(255,255,255,.9); padding: 4px; border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.carte-cadrage { border: 1px solid #ccc; background: #fff; border-radius: 6px; padding: 6px 10px; font: bold 15px system-ui, sans-serif; cursor: pointer; min-width: 40px; }
.carte-cadrage:hover { background: #f3efe7; }
.carte-cadrage.c-arrivee { color: #1f6fb5; border-color: #1f6fb5; }
.carte-cadrage.c-depart { color: #a3271f; border-color: #a3271f; }
.carte-cadrage.c-temple { color: #2b2118; }

/* Par où commencer : portes d'entrée (05/11/2026) */
.entrees { --tokushima: #2e7d4f; --kagawa: #7a3b8f; --ehime: #c06a10; --kochi: #1f6fb5; }
.pref-tokushima { --pref: var(--tokushima); } .pref-kagawa { --pref: var(--kagawa); } .pref-ehime { --pref: var(--ehime); } .pref-kochi { --pref: var(--kochi); }
.entrees-choix { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin: 1.2em 0 .8em; font: 17px system-ui, sans-serif; }
.entrees-choix span { font-weight: 600; }
.entrees-choix button { border: 1px solid var(--trait); background: #fff; color: var(--encre); padding: .5em 1em; border-radius: 99px; font: inherit; cursor: pointer; }
.entrees-choix button.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.entrees-aucune { color: var(--gris); font-style: italic; }
.entrees-carte { height: min(62vh, 520px); border-radius: 10px; border: 1px solid var(--trait); margin: .5em 0 .3em; }
.entrees-legende { color: var(--gris); font: 14px system-ui, sans-serif; display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.lg-porte { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--encre); color: #fff; font-weight: 700; font-size: 12px; }
.lg-temple { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); }
.lg-ferry { display: inline-block; width: 26px; border-top: 3px dashed #1f6fb5; }
.porte-pastille { width: 34px; height: 34px; border-radius: 50%; background: var(--pref, var(--encre)); color: #fff; display: grid; place-items: center;
  font: 700 17px system-ui, sans-serif; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.porte-pastille.pref-tokushima { background: #2e7d4f; } .porte-pastille.pref-kagawa { background: #7a3b8f; }
.porte-pastille.pref-ehime { background: #c06a10; } .porte-pastille.pref-kochi { background: #1f6fb5; }
.leaflet-marker-icon.attenuee, .attenuee .porte-pastille { opacity: .35; }
.entrees-portes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.2em; }
.porte { background: #fff; border: 1px solid var(--trait); border-top: 6px solid var(--pref, var(--rouge)); border-radius: 10px; padding: 1em 1.2em; transition: opacity .2s; }
.porte.attenuee { opacity: .45; }
.porte header { display: flex; gap: .8em; align-items: center; }
.porte h3 { margin: 0; font-size: 1.4em; color: var(--pref, var(--rouge)); }
.porte header small { color: var(--gris); font: 15px system-ui, sans-serif; }
.porte-n { flex: none; width: 2em; height: 2em; border-radius: 50%; background: var(--pref, var(--rouge)); color: #fff; display: grid; place-items: center; font: 700 20px system-ui, sans-serif; }
.porte-accroche { font-style: italic; margin: .6em 0; }
.porte-moyens { list-style: none; padding: 0; margin: 0; }
.porte-moyens li { display: flex; gap: .7em; padding: .6em 0; border-top: 1px solid var(--trait); }
.pm-ico { font-size: 1.4em; line-height: 1.2; }
.porte-moyens strong { display: inline; }
.pm-chiffres { display: block; font: 600 16px system-ui, sans-serif; color: var(--encre); }
.pm-texte { display: block; color: var(--gris); font-size: .95em; }
.pm-nuit { background: #2b2118; color: #fff; border-radius: 4px; padding: 0 .4em; font: 13px system-ui, sans-serif; }
.porte-acces { background: var(--papier); border-radius: 6px; padding: .5em .7em; }
.porte-temoin { margin: .6em 0; padding: .5em .8em; border-left: 4px solid var(--pref, var(--rouge)); background: var(--papier); font-style: italic; }
.porte-liens { display: flex; flex-wrap: wrap; gap: .4em .6em; align-items: center; margin-top: .8em; }
.entrees-ferries { width: 100%; border-collapse: collapse; background: #fff; }
.entrees-ferries th, .entrees-ferries td { padding: .5em .6em; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.entrees-pass { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1em; }
.entrees-pass > div { background: #fff; border: 1px solid var(--trait); border-radius: 10px; padding: .4em 1.1em; }
.entrees-date { color: var(--gris); margin-top: 1.5em; }

/* Le chemin étape par étape : ligne « plan de métro » (05/11/2026) */
.etapes { --tokushima: #2e7d4f; --kagawa: #7a3b8f; --ehime: #c06a10; --kochi: #1f6fb5; --v-gain: #1f6fb5; --v-moins: #8db8e0; --v-aucun: #c9bfb2; }
.etapes-sommaire { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .5em; padding: .6em 0; background: var(--papier); font: 16px system-ui, sans-serif; }
.etapes-sommaire a { padding: .35em .9em; border-radius: 99px; color: #fff; background: var(--pref); text-decoration: none; font-weight: 600; }
.etapes-legende { display: flex; flex-wrap: wrap; gap: .4em 1.4em; font: 15px system-ui, sans-serif; color: var(--gris); margin: .4em 0 1.2em; }
.etapes-legende .lg { display: inline-block; width: 26px; height: 6px; border-radius: 3px; vertical-align: middle; margin-right: .3em; }
.lg.v-gain { background: var(--v-gain); } .lg.v-moins { background: var(--v-moins); } .lg.v-aucun { background: var(--v-aucun); }
.etapes-note { flex-basis: 100%; font-size: 14px; }
.etapes-ligne { --rail-x: 22px; }
.et-pref { border: none; margin: 1.6em 0 .6em; padding: .35em .8em; border-radius: 8px; color: #fff !important; background: var(--pref); font-size: 1.3em; scroll-margin-top: 6.5em; }
.et-pref small { display: inline; color: #fff; opacity: .85; font-size: .65em; margin-left: .6em; }
.et-temple { display: flex; align-items: center; gap: .7em; position: relative; z-index: 1; }
.et-n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 4px solid var(--pref, var(--encre)); color: var(--encre);
  display: grid; place-items: center; font: 700 17px system-ui, sans-serif; text-decoration: none; }
.et-nom { font-size: 1.15em; font-weight: 600; color: var(--encre); text-decoration: none; }
.et-nom .jp { color: var(--gris); font-weight: normal; font-size: .85em; }
.et-fin .et-n { background: var(--pref); color: #fff; }
.et-seg { display: flex; gap: 0; margin-left: calc(var(--rail-x) - 4px); }
.et-rail { flex: none; width: 8px; border-radius: 4px; margin: -4px 0; }
.v-gain .et-rail { background: var(--v-gain); }
.v-moins .et-rail { background: var(--v-moins); }
.v-aucun .et-rail, .v-faible .et-rail { background: repeating-linear-gradient(var(--v-aucun) 0 10px, transparent 10px 16px); }
.et-infos { padding: .7em 0 .9em 1.6em; font: 16px/1.5 system-ui, sans-serif; flex: 1; min-width: 0; }
.et-pied { color: var(--encre); }
.et-transport { margin-top: .3em; color: var(--encre); }
.v-moins .et-transport b { color: #3d6f9c; } .v-gain .et-transport b { color: var(--v-gain); }
.et-badge { display: inline-block; background: var(--v-gain); color: #fff; border-radius: 4px; padding: 0 .45em; font-size: 13px; margin-left: .3em; }
.et-badge.pale { background: var(--v-moins); color: var(--encre); }
.et-ouvrir { border: 1px solid var(--trait); background: #fff; border-radius: 99px; padding: .15em .8em; margin-left: .4em; cursor: pointer; font: 14px system-ui, sans-serif; color: var(--rouge); }
.et-detail { background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: .4em 1em; margin-top: .6em; }
.et-option + .et-option { border-top: 1px dashed var(--trait); }
.et-o-titre { font-weight: 600; margin-top: .5em; }
.et-o-titre small { color: var(--gris); font-weight: normal; }
.et-troncons { margin: .3em 0; padding-left: 1.3em; }
.et-departs { color: var(--gris); font-size: 15px; }
.etapes .pref-tokushima { --pref: var(--tokushima); } .etapes .pref-kagawa { --pref: var(--kagawa); } .etapes .pref-ehime { --pref: var(--ehime); } .etapes .pref-kochi { --pref: var(--kochi); }
.et-badge.gris { background: var(--v-aucun); color: var(--encre); }
.etapes { --v-pied: #8f8478; }
.lg.v-pied { background: var(--v-pied); }
.v-pied .et-rail { background: var(--v-pied); }
.et-sans { color: var(--gris); font-size: 15px; }
.lien-etapes { margin: 0 0 .8em; font: 16px system-ui, sans-serif; }
.mt-etapes { background: #fff; color: var(--rouge); border: 2px solid var(--rouge); }
.porte-plus { margin: .6em 0; }
.porte-plus summary { cursor: pointer; color: var(--rouge); }
.porte-plus p { margin: .5em 0; }

/* Contact et mentions légales (08/11/2026) */
.contact, .mentions { max-width: 760px; }
.contact-formulaire label { display: block; margin: 1em 0 .35em; font-weight: bold; }
.contact-formulaire input, .contact-formulaire select, .contact-formulaire textarea { width: 100%; box-sizing: border-box; padding: .7em; border: 1px solid var(--trait); border-radius: 6px; font: inherit; background: #fff; }
.contact-formulaire textarea { resize: vertical; min-height: 10em; }
.contact-formulaire .cf-turnstile { margin-top: 1em; }
.contact-formulaire button { margin-top: 1.2em; padding: .75em 1.3em; border: 0; border-radius: 6px; background: var(--rouge); color: #fff; font-weight: bold; font-size: 1em; cursor: pointer; }
.contact-formulaire button:disabled { background: var(--gris); cursor: not-allowed; }
.contact-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aide { color: var(--gris); font-size: .9em; font-weight: normal; }
.contact-alerte { padding: .8em 1em; border-radius: 6px; }
.contact-ok { background: #ecf6ee; color: #1d5e2c; }
.contact-erreur { background: #fbeceb; color: #8a1f18; }
.pied nav { margin-top: .6em; }
.pied nav a { color: inherit; margin: 0 .6em; }
.etape-remarque, .et-remarque { font-size: .92em; color: var(--gris); }
.etape-remarque { margin: .5em 0 0; }

/* Pages des préfectures (08/11/2026) */
.pref-entete { background-color: var(--c); background-size: cover; background-position: center; }
.pref-entete h1 .jp { font-weight: normal; opacity: .9; }
.pref-voie { margin: .3em 0 0; font-size: 1.05em; }
.pref-page h2 { border-bottom: 3px solid var(--c); padding-bottom: .2em; margin-top: 1.8em; }
.pref-chiffres { list-style: none; padding: 0; margin: 1.2em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7em; }
.pref-chiffres li { background: #fff; border: 1px solid var(--trait); border-top: 4px solid var(--c); border-radius: 8px; padding: .7em .8em; }
.pref-chiffres b { display: block; font-size: 1.45em; line-height: 1.2; }
.pref-chiffres small { display: block; color: var(--gris); font: 13px system-ui, sans-serif; margin-top: .2em; }
.pref-relire { background: #fff7e0; border: 1px dashed #c9a227; border-radius: 6px; padding: .5em .8em; font: 14px system-ui, sans-serif; }
#carte-pref { height: min(60vh, 520px); min-height: 320px; border-radius: 8px; border: 1px solid var(--trait); }
.pref-liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5em; }
.pref-liste a { display: flex; align-items: center; gap: .7em; padding: .5em .7em; background: #fff; border: 1px solid var(--trait); border-radius: 8px; color: var(--encre); text-decoration: none; height: 100%; box-sizing: border-box; }
.pref-liste a:hover { border-color: var(--c); }
.pref-num { flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: bold; }
.pref-nom { flex: 1; min-width: 0; }
.pref-nom small { display: block; color: var(--gris); font: 13px system-ui, sans-serif; }
.pref-icones { flex: none; }
.pref-table-defile { overflow-x: auto; }
.pref-table { width: 100%; border-collapse: collapse; font: 15px system-ui, sans-serif; min-width: 560px; }
.pref-table th, .pref-table td { text-align: left; padding: .45em .5em; border-bottom: 1px solid var(--trait); vertical-align: top; }
.pref-table th { background: #f3eee5; }
.pref-table td small { display: block; color: var(--gris); font-size: 13px; }
.pref-dormir ul, .pref-porte ul { padding-left: 1.2em; }
.pref-porte { background: #fff; border: 1px solid var(--trait); border-radius: 8px; padding: .3em 1em .6em; margin-bottom: .8em; }
.pref-porte h3 small { font-weight: normal; color: var(--gris); font-size: .75em; }
.tp-lien-pref { margin: .2em 0 .8em; font: 15px system-ui, sans-serif; }

/* Diaporama des quatre provinces, en bas de l'accueil (08/11/2026) */
.provinces { max-width: 1000px; margin: 1em auto 3em; padding: 0 1.2em; box-sizing: content-box; }
.provinces-titre { margin-bottom: .6em; }
.provinces-titre small { display: inline; font-weight: normal; color: var(--gris); font-size: .6em; margin-left: .4em; }
.provinces-cadre { position: relative; height: clamp(320px, 42vw, 440px); border-radius: 12px; overflow: hidden; background: var(--encre); }
.province-diapo { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.province-diapo.actif { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.province-fond { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.province-diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,10,.82) 0%, rgba(20,14,10,.55) 45%, rgba(20,14,10,.05) 80%); }
.province-textes { position: absolute; z-index: 1; left: clamp(1em, 4vw, 3em); bottom: clamp(1.4em, 4vw, 2.6em); right: 1em; max-width: 34em; color: #fff; }
.province-textes h3 { font-size: clamp(1.8em, 4.5vw, 2.8em); margin: .15em 0 .1em; line-height: 1.1; }
.province-textes h3 .jp { font-weight: normal; font-size: .7em; opacity: .9; }
.province-plage { display: inline-block; background: var(--rouge); padding: .15em .6em; border-radius: 4px; font: bold 14px system-ui, sans-serif; }
.province-voie { margin: 0 0 .5em; font-size: 1.05em; opacity: .95; }
.province-accroche { margin: 0 0 .9em; font-size: 1.1em; line-height: 1.45; }
.province-textes .bouton { display: inline-block; background: #fff; color: var(--encre); padding: .55em 1.1em; border-radius: 6px; font-weight: bold; text-decoration: none; }
.province-textes .bouton:hover, .province-textes .bouton:focus { background: var(--papier); }
.provinces-progression { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.provinces-progression span { display: block; height: 100%; width: 0; background: #fff; }
.provinces-onglets { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .7em; align-items: center; }
.province-onglet { padding: .45em 1em; border: 1px solid var(--trait); border-radius: 999px; background: #fff; color: var(--encre); text-decoration: none; font: 15px system-ui, sans-serif; }
.province-onglet.actif { background: var(--encre); color: #fff; border-color: var(--encre); }
.provinces-pause { margin-left: auto; border: 1px solid var(--trait); background: #fff; border-radius: 999px; width: 2.4em; height: 2.4em; cursor: pointer; }
/* Avec JavaScript : la photo avance lentement et les textes apparaissent l'un après l'autre (comme l'ancien diaporama) */
.provinces.js .province-diapo.actif .province-fond { animation: province-zoom 9s ease-out forwards; }
.provinces.js .province-textes > * { opacity: 0; transform: translateY(14px); }
.provinces.js.visible .province-diapo.actif .province-textes > * { animation: province-entree .7s ease-out forwards; }
.provinces.js.visible .province-diapo.actif .pv-2 { animation-delay: .35s; }
.provinces.js.visible .province-diapo.actif .pv-3 { animation-delay: .7s; }
.provinces.js.visible .province-diapo.actif .pv-4 { animation-delay: 1.05s; }
.provinces.js.visible .province-diapo.actif .pv-5 { animation-delay: 1.4s; }
@keyframes province-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes province-entree { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .provinces.js .province-textes > * { opacity: 1; transform: none; animation: none !important; }
  .provinces.js .province-diapo.actif .province-fond { animation: none; }
  .province-diapo, .province-diapo.actif { transition: none; }
}
@media (max-width: 640px) {
  .province-diapo::after { background: linear-gradient(0deg, rgba(20,14,10,.88) 0%, rgba(20,14,10,.6) 55%, rgba(20,14,10,.1) 100%); }
  .province-accroche { font-size: 1em; }
}
/* Bandeau « Continuer le pèlerinage » en bas des pages de préfecture (08/11/2026) */
.pref-autres { margin: 2.5em 0 1em; }
.pref-autres-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.pref-autre { position: relative; display: block; min-height: 170px; border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none; background: var(--c, var(--encre)); }
.pref-autre-fond { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.pref-autre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,10,.85) 0%, rgba(20,14,10,.35) 60%, rgba(20,14,10,.1) 100%); }
.pref-autre:hover .pref-autre-fond, .pref-autre:focus .pref-autre-fond { transform: scale(1.06); }
.pref-autre-texte { position: absolute; z-index: 1; left: .9em; right: .9em; bottom: .8em; display: flex; flex-direction: column; gap: .15em; }
.pref-autre-plage { align-self: flex-start; background: var(--c, var(--rouge)); padding: .1em .5em; border-radius: 4px; font: bold 12px system-ui, sans-serif; }
.pref-autre b { font-size: 1.35em; line-height: 1.15; }
.pref-autre b .jp { font-weight: normal; font-size: .75em; }
.pref-autre-voie { font: 13px system-ui, sans-serif; opacity: .95; }
.pref-autre-88 { background: #e8f3f8; border: 1px solid var(--trait); }
.pref-autre-88 .pref-autre-fond { background-size: 115%; }
.pref-autre-88 .pref-autre-plage { background: var(--rouge); }
.pref-boucler { margin-top: .8em; }
@media (max-width: 760px) { .pref-autres-grille { grid-template-columns: 1fr 1fr; } .pref-autre { min-height: 140px; } }
@media (prefers-reduced-motion: reduce) { .pref-autre-fond { transition: none; } }
