/* Chinode, V4 creusée : le vrai relief de Peyrat et du lac de Vassivière, gravé en engobe sur la terre de briqueterie. */
:root {
  --terre: #74503f;
  --terre-fonce: #4a3128;
  --hors-feuille: #3b2720;
  --engobe: #f1eadf;
  --sillon: rgba(28, 14, 8, .62);
  --eau: #6f8a92;
  --encre: #2a1d16;
  --carte: #f3ede4;
  --doux: #6d5d52;
  --halo: rgba(70, 45, 35, .85);
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --sortie: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--hors-feuille); color: var(--engobe); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.js, .js body { height: 100%; overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--engobe); outline-offset: 3px; }

/* la feuille : estompage peint dans un canvas à la taille de la grille, étiré, puis le grain */
.vue { position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; display: none; }
.js .vue { display: block; }
.vue:active { cursor: grabbing; }
.monde { position: absolute; left: 0; top: 0; width: 3200px; height: 2200px; transform-origin: 0 0; }
.feuille { position: absolute; left: 0; top: 0; width: 3200px; height: 2200px; overflow: hidden; background: var(--terre); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 40px 120px rgba(10, 4, 2, .5); }
.estompage { position: absolute; left: -20px; top: -20px; width: 3240px; height: 2240px; }
.grain { position: absolute; inset: 0; opacity: .55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .12  0 0 0 0 .08  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
svg.relief { position: absolute; left: 0; top: 0; width: 3200px; height: 2200px; overflow: visible; }

/* les incisions : un sillon sombre décalé vers le soleil, puis le trait d'engobe ; épaisseurs constantes à l'écran (--px = 1/zoom) */
.relief path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.sillon path { stroke: var(--sillon); stroke-width: calc(var(--px, 1) * 1.3px); }
.engobe path { stroke: var(--engobe); stroke-width: calc(var(--px, 1) * .8px); opacity: .5; }
.maitresses .sillon path { stroke-width: calc(var(--px, 1) * 2.2px); }
.maitresses .engobe path { stroke-width: calc(var(--px, 1) * 1.45px); opacity: .82; }
.fines { display: none; }
.relief.detail .fines { display: inline; }
.eau .nappe { fill: var(--eau); stroke: none; }
.eau .rive { fill: none; stroke: var(--engobe); stroke-width: calc(var(--px, 1) * .8px); opacity: .55; }
.eau .rive.loin { opacity: .3; }
.eau .bord { fill: none; stroke: var(--engobe); stroke-width: calc(var(--px, 1) * 1.5px); opacity: .9; }
.cadre rect { fill: none; stroke: var(--engobe); }
.cadre .exterieur { stroke-width: calc(var(--px, 1) * 2.4px); opacity: .9; }
.cadre .interieur { stroke-width: calc(var(--px, 1) * .9px); opacity: .7; }
.cadre .graduation { stroke: var(--engobe); stroke-width: calc(var(--px, 1) * 1.2px); opacity: .8; }
.chinode-trait { stroke: var(--engobe); stroke-width: calc(var(--px, 1) * 1.8px); stroke-dasharray: calc(var(--px, 1) * 10px) calc(var(--px, 1) * 8px); opacity: .85; }

/* l'incision des maîtresses à l'entrée */
@media (prefers-reduced-motion: no-preference) {
  .js .maitresses path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s cubic-bezier(.45, 0, .2, 1); transition-delay: var(--d, 0s); }
  .js .incise .maitresses path { stroke-dashoffset: 0; }
  .js .apres-incision { opacity: 0; transition: opacity 1.2s ease 1.6s; }
  .js .incise .apres-incision, .js .calque.incise { opacity: 1; }
  .js .calque { opacity: 0; transition: opacity 1s ease 1.2s; }
}
.maitresses.incisee path { stroke-dasharray: none; }

/* le calque d'écran : repères et étiquettes à taille bornée, placés à chaque zoom */
.calque { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; display: none; }
.js .calque { display: block; }
.calque > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.calque [hidden] { display: none; }
.calque img { max-width: none; }
.etiquette { pointer-events: none; white-space: nowrap; text-shadow: 0 0 3px var(--halo), 0 0 10px var(--halo); }
.etiquette > span { display: block; transform: translate(-50%, -50%); }
.etiquette.nature { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; }
.etiquette.grand > span { font-size: 46px; }
.etiquette.lieu { font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.etiquette.eau-nom { color: #e8f0f1; }
.cote { pointer-events: none; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--engobe); text-shadow: 0 0 3px var(--halo), 0 0 6px var(--halo); }
.cote > span { display: block; transform: translate(-50%, -50%) rotate(var(--a, 0deg)); }
.graticule { pointer-events: none; font-size: 11px; letter-spacing: .06em; opacity: .85; font-variant-numeric: tabular-nums; }
.graticule > span { display: block; transform: translate(-50%, -50%); }
[data-niveau="loin"] .proche, [data-niveau="loin"] .tres-proche, [data-niveau="moyen"] .tres-proche { display: none; }

/* les pièces : la vraie photo détourée, une ombre de contact, une ombre portée à l'opposé du soleil */
.repere { pointer-events: auto; border: 0; padding: 0; background: none; cursor: pointer; }
.repere .pose { position: relative; display: block; transform: translate(-50%, -100%); }
.repere img { position: relative; z-index: 2; width: var(--w); height: auto; transition: transform 600ms var(--sortie); }
.repere .ombre { position: absolute; z-index: 1; left: 50%; bottom: -6px; width: 78%; height: 20px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(22, 10, 5, .55), rgba(22, 10, 5, 0)); }
.repere .portee { position: absolute; z-index: 0; left: 50%; bottom: 2px; width: 70%; height: 26px; transform-origin: 0 50%; background: radial-gradient(closest-side, rgba(22, 10, 5, var(--po, .32)), rgba(22, 10, 5, 0)); transform: translate(0, 50%) rotate(var(--pa, 90deg)) scaleX(var(--pl, 1)); }
.repere:hover img, .repere:focus-visible img { transform: translateY(-12px); }
.repere .nom { position: absolute; left: 50%; top: 100%; margin-top: 12px; transform: translateX(-50%); white-space: nowrap; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.1; text-shadow: 0 0 3px var(--halo), 0 0 10px var(--halo); }
.repere .nom small { display: block; margin-top: 4px; font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
[data-niveau="moyen"] .repere .nom small { display: none; }
[data-niveau="loin"] .repere .nom { display: none; }

/* le bourg : les maisons, leurs fenêtres la nuit ; les stages ; la rose des directions de son parcours */
.glyphe { pointer-events: auto; border: 0; padding: 0; background: none; cursor: pointer; color: var(--engobe); }
.glyphe svg { display: block; overflow: visible; }
.glyphe .pose { display: block; transform: translate(-50%, -50%); padding: 8px; border-radius: 50%; transition: background-color 200ms ease; }
.glyphe:hover .pose, .glyphe:focus-visible .pose { background: rgba(241, 234, 223, .12); }
.maisons path { fill: var(--engobe); }
.maisons .fenetre { fill: var(--terre-fonce); transition: fill 800ms ease; }
.nuit .maisons .fenetre { fill: #ffcf73; }
.nuit .maisons { filter: drop-shadow(0 0 6px rgba(255, 196, 92, .55)); }
.cercle-stages { fill: none; stroke: var(--engobe); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.directions { pointer-events: auto; border: 0; padding: 0; background: none; cursor: pointer; color: var(--engobe); }
.directions .pose { display: block; position: relative; width: 0; height: 0; }
.directions svg { position: absolute; left: -170px; top: -170px; width: 340px; height: 340px; overflow: visible; pointer-events: none; }
.directions { pointer-events: none; }
.directions .vers { pointer-events: auto; cursor: pointer; }
.directions line { stroke: var(--engobe); stroke-width: 1.4; stroke-linecap: round; }
.directions circle { fill: var(--engobe); }
.directions .vers { position: absolute; white-space: nowrap; font-size: 12px; line-height: 1.25; text-shadow: 0 0 3px var(--halo), 0 0 8px var(--halo); }
.directions .vers b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; }
.directions:hover line, .directions:focus-visible line { stroke-width: 2.2; }
[data-niveau="loin"] .directions .vers { display: none; }
.piste-chinode { pointer-events: auto; border: 0; padding: 4px 8px; background: none; cursor: pointer; color: var(--engobe); }
.piste-chinode .pose { display: block; transform: translate(-100%, -50%) rotate(var(--a, -10deg)); transform-origin: 100% 50%; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 24px; text-shadow: 0 0 3px var(--halo), 0 0 10px var(--halo); }
.piste-chinode .pose small { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .14em; margin-left: 8px; }
.piste-chinode:hover .pose, .piste-chinode:focus-visible .pose { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* le cartouche d'entrée */
.cartouche { position: fixed; z-index: 30; left: 32px; bottom: 32px; width: min(460px, calc(100% - 64px)); padding: 30px 32px 28px; background: rgb(66, 42, 33); border: 1px solid rgba(241, 234, 223, .55); outline: 1px solid rgba(241, 234, 223, .3); outline-offset: 5px; transition: opacity 700ms ease, visibility 700ms, transform 700ms var(--sortie); }
.cartouche h1 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 62px; line-height: .95; letter-spacing: -0.01em; }
.cartouche p { margin: 16px 0 24px; font-size: 16px; line-height: 1.55; }
.cartouche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cartouche .autre { font-size: 14px; text-underline-offset: 4px; }
.cartouche.partie { opacity: 0; visibility: hidden; transform: translateY(16px); }
.entree-active .chrome .marque { visibility: hidden; }
html:not(.js) .cartouche { position: static; width: auto; max-width: 760px; margin: 48px auto 0; }
html:not(.js) .cartouche [data-entrer] { display: none; }

/* habillage */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: none; justify-content: space-between; align-items: center; padding: 22px 26px; pointer-events: none; }
.js .chrome { display: flex; }
.chrome > * { pointer-events: auto; }
.marque { border: 0; background: none; padding: 0; font-family: var(--serif); font-style: italic; font-size: 32px; cursor: pointer; text-shadow: 0 0 3px var(--halo), 0 0 12px var(--halo); }
.outils { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid rgba(241, 234, 223, .45); border-radius: 999px; background: rgba(66, 42, 33, .7); font-size: 14px; font-weight: 500; letter-spacing: .06em; cursor: pointer; text-decoration: none; transition: background-color 200ms ease, transform 160ms var(--sortie); }
.btn:hover { background: rgba(241, 234, 223, .16); }
.btn:active { transform: scale(.97); }
.btn.rond { width: 44px; padding: 0; font-size: 20px; letter-spacing: 0; }
.btn.petit { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-plein { background: var(--engobe); color: var(--encre); border-color: var(--engobe); padding: 0 28px; font-size: 15px; }
.btn-plein:hover { background: #ffffff; }

.legende { position: fixed; z-index: 21; top: 78px; right: 26px; width: min(340px, calc(100% - 32px)); max-height: calc(100svh - 190px); overflow-y: auto; background: var(--carte); color: var(--encre); border-radius: 14px; padding: 16px 10px 12px; box-shadow: 0 24px 60px rgba(20, 8, 4, .35); }
.legende-titre { margin: 0 14px 8px; font-family: var(--serif); font-style: italic; font-size: 24px; }
.legende ul { list-style: none; margin: 0; padding: 0; }
.legende button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 8px 14px; min-height: 44px; border: 0; background: none; border-radius: 10px; font-size: 15px; cursor: pointer; }
.legende button:hover, .legende button:focus-visible { background: rgba(42, 29, 22, .07); }
.legende button img, .legende button svg { flex: none; width: 40px; height: 30px; object-fit: contain; }
.legende button svg { fill: none; stroke: var(--encre); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.legende-credits { margin: 10px 14px 0; font-size: 12px; line-height: 1.45; color: var(--doux); }

.pied-carte { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; grid-template-columns: 1fr auto; align-items: end; gap: 16px; padding: 20px 26px; pointer-events: none; font-size: 14px; }
.legende-contact { margin: 12px 14px 0; font-size: 14px; line-height: 1.6; }
.legende-contact a { text-underline-offset: 3px; }
.js .pied-carte { display: grid; }
.pied-carte > * { pointer-events: auto; margin: 0; }
.echelle-rose { display: flex; align-items: end; gap: 18px; }
.rose { width: 26px; height: 40px; fill: none; stroke: var(--engobe); stroke-width: 1.5; stroke-linecap: round; overflow: visible; }
.rose text { fill: var(--engobe); stroke: none; font-family: var(--sans); font-size: 11px; font-weight: 600; }
.echelle { display: grid; gap: 6px; }
.barre-echelle { display: block; height: 8px; width: 120px; border: 2px solid var(--engobe); border-top: 0; }
.txt-echelle { letter-spacing: .12em; text-shadow: 0 0 3px var(--halo); }
.cadran { justify-self: end; display: grid; gap: 4px; justify-items: center; padding: 10px 18px 12px; border-radius: 16px; background: rgba(54, 34, 27, .78); }
.cadran-texte { margin: 0; font-size: 14px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cadran-commandes { display: flex; align-items: center; gap: 12px; }
.pied-droite { justify-self: end; text-align: right; display: grid; gap: 6px; text-shadow: 0 0 3px var(--halo), 0 0 10px var(--halo); }
.contact-court a, .autre-coin { text-decoration: none; }
.contact-court a:hover, .autre-coin:hover { text-decoration: underline; text-underline-offset: 4px; }

/* le curseur du soleil : une piste jour et nuit, le soleil en pouce */
.curseur {
  --piste: 6px; --pouce: 20px;
  appearance: none; inline-size: 260px; block-size: 36px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.curseur::-webkit-slider-runnable-track { block-size: var(--piste); border: 0; border-radius: 999px; background: var(--jour, rgba(241, 234, 223, .35)); }
.curseur::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; inline-size: var(--pouce); block-size: var(--pouce); margin-block-start: calc((var(--piste) - var(--pouce)) / 2); border: 2px solid var(--encre); border-radius: 50%; background: var(--engobe); }
.curseur::-moz-range-track { block-size: var(--piste); border: 0; border-radius: 999px; background: var(--jour, rgba(241, 234, 223, .35)); }
.curseur::-moz-range-thumb { inline-size: var(--pouce); block-size: var(--pouce); border: 2px solid var(--encre); border-radius: 50%; background: var(--engobe); }
.curseur:focus-visible { outline: 2px solid var(--engobe); outline-offset: 4px; }

.trace { position: fixed; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }

/* panneau */
.panneau { position: fixed; z-index: 25; top: 14px; right: 14px; bottom: 14px; width: min(470px, calc(100% - 28px)); overflow-y: auto; overscroll-behavior: contain; background: var(--carte); color: var(--encre); border-radius: 20px; box-shadow: 0 30px 90px rgba(20, 8, 4, .45); transform: translateX(calc(100% + 30px)); transition: transform 700ms var(--sortie); }
.panneau.ouvert { transform: none; }
.fermer { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(42, 29, 22, .08); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.fermer:hover { background: rgba(42, 29, 22, .16); }
.panneau-corps { padding: 30px 32px 40px; }
.panneau-corps h2:focus { outline: none; }
.panneau-corps .sur-titre, .lieux .sur-titre { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--doux); }
.panneau-corps h2, .lieux h2 { margin: 10px 0 22px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 46px; line-height: 1; }
.panneau-corps p, .lieux p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.panneau-corps .chapo, .lieux .chapo { font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.etat { position: relative; padding: 10px 16px 10px 36px; border-radius: 14px; background: rgba(42, 29, 22, .07); font-size: 15px !important; line-height: 1.45 !important; font-weight: 500; }
.etat::before { content: ""; position: absolute; left: 16px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--doux); }
.etat.ouvert::before { background: #5d8a4e; }
.etat small { display: block; font-size: 13px; font-weight: 400; color: var(--doux); }
.coordonnees { font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--doux); font-size: 14px !important; }
.a-confirmer { font-style: italic; color: var(--doux); text-decoration: underline dotted; text-underline-offset: 3px; }
.photos { display: grid; gap: 8px; margin: 0 0 22px; }
.photos.grille { grid-template-columns: 1fr 1fr; }
.photos.grille img:first-child { grid-column: 1 / -1; }
.photos img { width: 100%; border-radius: 12px; object-fit: cover; }
.photos figure { margin: 0; }
.photos figcaption { margin-top: 6px; font-size: 13px; color: var(--doux); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0 0 24px; font-size: 15px; }
dt { color: var(--doux); }
dd { margin: 0; }
.ensembles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.ensembles li { padding: 6px 14px; border-radius: 999px; background: rgba(42, 29, 22, .07); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 24px !important; }
.btn-encre { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--encre); color: var(--carte); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 200ms ease; }
.btn-encre:hover { background: #000; }
.lien { font-weight: 500; text-underline-offset: 4px; }
.note { font-size: 14px !important; color: var(--doux); }
blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: 26px; line-height: 1.3; font-style: italic; }
blockquote.recit p { font-family: var(--serif); font-size: 22px; line-height: 1.4; font-style: italic; }
.tarifs, .parcours { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.tarifs li, .parcours li { display: flex; justify-content: space-between; gap: 20px; }
.tarifs li span:last-child { font-weight: 600; white-space: nowrap; }
.parcours li span:last-child { color: var(--doux); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* sans script : les lieux en sections */
.lieux { display: block; max-width: 760px; margin: 0 auto; padding: 64px 24px; color: var(--engobe); }
.lieux section { margin-bottom: 96px; }
.lieux .a-confirmer, .lieux .note, .lieux dt, .lieux .sur-titre { color: rgba(241, 234, 223, .75); }
.credits-sans-script { font-size: 13px !important; opacity: .8; }
.js .lieux { display: none; }

@media (max-width: 1100px) {
  .entree-active .cadran { visibility: hidden; }
}
@media (max-width: 760px) {
  .chrome { padding: 14px; }
  .marque { font-size: 26px; }
  .btn { min-height: 42px; padding: 0 16px; }
  .btn.rond { display: none; }
  .legende { top: auto; bottom: 0; right: 0; left: 0; width: 100%; max-height: 72svh; border-radius: 18px 18px 0 0; }
  .pied-carte { grid-template-columns: 1fr; padding: 10px 12px 12px; justify-items: center; }
  .echelle-rose { position: fixed; left: 14px; top: 70px; gap: 10px; }
  .outils .btn[href] { display: none; }
  .cadran { justify-self: stretch; width: 100%; padding: 8px 12px 10px; }
  .curseur { inline-size: min(220px, 52vw); }
  .cartouche { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 20px 20px; background: rgb(66, 42, 33); }
  .cartouche h1 { font-size: 48px; }
  .cartouche p { font-size: 15px; margin: 12px 0 18px; }
  .panneau { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 80svh; border-radius: 20px 20px 0 0; transform: translateY(calc(100% + 30px)); }
  .panneau-corps { padding: 24px 20px 40px; }
  .panneau-corps h2 { font-size: 38px; }
  .etiquette.grand > span { font-size: 34px; }
  .graticule { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cartouche, .panneau, .repere img, .maisons .fenetre { transition: none; }
}
