/* Chinode, proposition V4 « La carte gravée » : la terre de briqueterie, les traits d'engobe. */
:root {
  --terre: #74503f;
  --terre-fonce: #5b3d30;
  --engobe: #f1eadf;
  --eau: #6f8a92;
  --encre: #2a1d16;
  --carte: #f3ede4;
  --doux: #6d5d52;
  --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(--terre); 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 carte */
.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; }
.sol { position: absolute; inset: -400px; background-color: var(--terre); 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 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }
.sol::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(255, 230, 210, .08), rgba(40, 20, 12, .35) 80%); }
svg.relief { position: absolute; left: 0; top: 0; width: 3200px; height: 2200px; overflow: visible; }
.courbes path { fill: none; stroke: var(--engobe); stroke-width: 1.1; opacity: .3; stroke-linejoin: round; }
.courbes path.maitresse { stroke-width: 2.1; opacity: .58; }
.eau path.nappe { fill: var(--eau); opacity: .62; }
.eau path.rive { fill: none; stroke: var(--engobe); stroke-width: 1; opacity: .45; }
.bois use { stroke: var(--engobe); fill: none; stroke-width: 1.3; opacity: .5; }
.chemin { fill: none; stroke: var(--engobe); stroke-width: 3; stroke-dasharray: 1 12; stroke-linecap: round; opacity: .8; }
.piste { fill: none; stroke: var(--engobe); stroke-width: 2; stroke-dasharray: 14 10; opacity: .6; }
.clairiere { fill: none; stroke: var(--engobe); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .75; }
.maison { fill: var(--engobe); opacity: .9; }
.nature { font-family: var(--serif); font-style: italic; fill: var(--engobe); }
.lieu { font-family: var(--sans); font-weight: 500; letter-spacing: .32em; fill: var(--engobe); }

/* incision des courbes à l'entrée */
@media (prefers-reduced-motion: no-preference) {
  .js .courbes path, .js .chemin-trace { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.45, 0, .2, 1); transition-delay: var(--d, 0s); }
  .js .incise .courbes path, .js .incise .chemin-trace { stroke-dashoffset: 0; }
  .js .apres-incision { opacity: 0; transition: opacity 1.2s ease 1.4s; }
  .js .incise .apres-incision { opacity: 1; }
}
.chemin-trace { fill: none; stroke: var(--engobe); stroke-width: 3; opacity: .8; stroke-linecap: round; }

/* les repères : les vraies pièces, détourées */
.repere { position: absolute; transform: translate(-50%, -100%); border: 0; padding: 0; background: none; cursor: pointer; }
.repere img { position: relative; z-index: 1; width: var(--w); height: auto; filter: drop-shadow(0 22px 18px rgba(26, 12, 6, .38)); transition: transform 600ms var(--sortie); }
.repere .ombre { position: absolute; left: 50%; bottom: -8px; width: 74%; height: 26px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(26, 12, 6, .5), rgba(26, 12, 6, 0)); }
.repere:hover img, .repere:focus-visible img { transform: translateY(-14px); }
.repere.glyphe { width: 180px; height: 120px; transform: translate(-50%, -50%); }
.repere.glyphe:hover, .repere.glyphe:focus-visible { background: rgba(241, 234, 223, .08); border-radius: 50%; }

/* entrée */
.entree { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 0; padding: 32px; text-align: center; background: rgba(91, 61, 48, .52); transition: opacity 900ms ease, visibility 900ms; }
.entree h1 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(84px, 12vw, 190px); line-height: .9; letter-spacing: -0.01em; }
.entree p { margin: 26px 0 34px; max-width: 40ch; font-size: 18px; line-height: 1.55; }
.entree .autre { position: relative; z-index: 1; margin-top: 18px; padding: 4px 10px; border-radius: 2px; background: rgba(91, 61, 48, .92); font-size: 14px; letter-spacing: .04em; }
/* Halo des étiquettes de carte : le texte se détache des courbes et du village qui passent dessous. */
.entree p, .entree .autre, .entree h1 { text-shadow: 0 0 3px rgba(74, 48, 38, .9), 0 0 14px rgba(74, 48, 38, .8); }
.entree.partie { opacity: 0; visibility: hidden; }
html:not(.js) .entree { position: static; min-height: 100vh; background: var(--terre-fonce); }
html:not(.js) .entree [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; }
.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, .4); border-radius: 999px; background: rgba(91, 61, 48, .45); font-size: 14px; font-weight: 500; letter-spacing: .08em; 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-plein { background: var(--engobe); color: var(--encre); border-color: var(--engobe); padding: 0 28px; font-size: 15px; }
.btn-plein:hover { background: #ffffff; }
.liste-lieux { position: fixed; z-index: 21; top: 78px; right: 26px; width: min(320px, calc(100% - 32px)); background: var(--carte); color: var(--encre); border-radius: 16px; padding: 10px; box-shadow: 0 24px 60px rgba(20, 8, 4, .35); }
.liste-lieux ul { list-style: none; margin: 0; padding: 0; }
.liste-lieux button { width: 100%; text-align: left; padding: 12px 14px; border: 0; background: none; border-radius: 10px; font-size: 15px; cursor: pointer; }
.liste-lieux button:hover, .liste-lieux button:focus-visible { background: rgba(42, 29, 22, .07); }
.pied-carte { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; justify-content: space-between; align-items: end; gap: 16px; padding: 22px 26px; pointer-events: none; font-size: 14px; }
.js .pied-carte { display: flex; }
.pied-carte > * { pointer-events: auto; margin: 0; }
.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; }
.contact-court a, .autre-coin { text-decoration: none; }
.contact-court a:hover, .autre-coin:hover { text-decoration: underline; text-underline-offset: 4px; }
.trace { position: fixed; inset: 0; z-index: 10; 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: .22em; 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; }
.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; }
.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; }
.js .lieux { display: none; }

@media (max-width: 760px) {
  .chrome { padding: 14px 14px; }
  .marque { font-size: 26px; }
  .btn { min-height: 42px; padding: 0 16px; }
  .btn.rond { display: none; }
  .liste-lieux { top: 66px; right: 14px; }
  .pied-carte { padding: 14px; font-size: 13px; }
  .autre-coin, .contact-court { display: none; }
  .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; }
  .entree p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .entree, .panneau, .repere img { transition: none; }
}
