/* Plan du Village : aquarelle par type de boutique, filets et lettres victoriennes.
 * Polices Playfair Display et Open Sans déjà chargées par le thème : aucun appel externe. */

.vplan {
  --vpv-papier: #F6EEDF; --vpv-encre: #2B2620; --vpv-filet: #FFF6E6; --vpv-laiton: #A06F37; --vpv-doux: #6B5E4E;
  --vpv-titre: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --vpv-texte: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  max-width: 1280px; margin: 0 auto; color: var(--vpv-encre); font-family: var(--vpv-texte); font-size: 15px; line-height: 1.55;
}
.vplan *, .vplan *::before, .vplan *::after { box-sizing: border-box; }
.vplan [hidden] { display: none !important; }
.vplan button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; line-height: 1.3; }
.vplan svg text, .vplan button, .vplan .vpv-panneau { font-variant-numeric: lining-nums !important; }

/* En-tête */
.vplan-en-tete { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.vplan-surtitre { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vpv-laiton); }
.vplan .vplan-grand-titre { margin: 0; font: 500 clamp(30px, 4vw, 44px)/1.15 var(--vpv-titre); color: var(--vpv-encre); }
.vplan-chapo { margin: 14px 0 0; font-size: 16px; color: var(--vpv-doux); }

/* Planche */
.vpv-module { background: var(--vpv-papier); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; border-radius: 2px;
  box-shadow: 0 0 0 1px #D8C6A6, 0 10px 40px rgba(40, 30, 15, .12); }
.vpv-commandes { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.vpv-niveaux { display: flex; border: 1.5px solid var(--vpv-encre); padding: 3px; outline: 1px solid var(--vpv-encre); outline-offset: 2px; background: transparent; }
.vplan .vpv-niveaux button { font: italic 600 16px var(--vpv-titre); background: transparent; color: var(--vpv-encre); border: 0; border-radius: 0; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.vplan .vpv-niveaux button[aria-pressed="true"] { background: var(--vpv-encre); color: var(--vpv-filet); }
.vpv-recherche { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; margin: 0; padding: 6px 12px; background: #FFFAF1; border: 1px solid #CDB894; border-radius: 999px; color: var(--vpv-laiton); }
.vplan .vpv-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 2px 0; margin: 0; font: 15px var(--vpv-texte); color: var(--vpv-encre); box-shadow: none; height: auto; }
.vpv-filtres-titre { font: 700 11px var(--vpv-texte); letter-spacing: .16em; text-transform: uppercase; color: #7A6447; margin: 0 0 6px; }
.vpv-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.vplan .vpv-filtres button { font: 600 13.5px var(--vpv-texte); color: var(--vpv-encre); background: #FFFAF1; border: 1px solid #CDB894; border-radius: 999px;
  padding: 5px 12px 5px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.vpv-filtres button i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(43, 38, 32, .55), inset 0 0 0 3px rgba(255, 246, 230, .7); }
.vpv-filtres button small { font-weight: 400; color: #7A6447; font-size: 12px; }
.vplan .vpv-filtres button[aria-pressed="true"] { background: var(--vpv-encre); color: var(--vpv-filet); border-color: var(--vpv-encre); }
.vpv-filtres button[aria-pressed="true"] small { color: #D8C6A6; }
.vplan button:focus-visible, .vpv-shop:focus-visible, .vpv-zone:focus-visible, .vpv-lien:focus-visible { outline: 3px solid var(--vpv-laiton); outline-offset: 2px; }

/* Carte + panneau */
.vpv-corps { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.vpv-carte { position: relative; min-width: 0; }
.vpv-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vpv-carte svg { display: block; width: 100%; height: auto; }
.vpv-panneau { position: sticky; top: 110px; background: #FFFAF1; border: 1.5px solid var(--vpv-encre); outline: 1px solid var(--vpv-encre); outline-offset: 3px; margin: 4px; overflow: hidden; }
.vpv-accueil, .vpv-fiche { padding: 18px 20px 20px; }
.vpv-panneau h2 { font: 700 26px/1.2 var(--vpv-titre); margin: 4px 0 10px; color: var(--vpv-encre); text-transform: none; letter-spacing: 0; }
.vpv-cat { margin: 0; font: 700 11px var(--vpv-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--cf, #7A6447); }
.vpv-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1.5px solid var(--vpv-encre); }
.vplan .vpv-fermer { position: absolute; top: 8px; right: 8px; z-index: 1; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--vpv-encre);
  background: rgba(255, 250, 241, .94); color: var(--vpv-encre); font: 22px/1 var(--vpv-texte); cursor: pointer; }
.vpv-accroche { margin: 0 0 10px; font: italic 500 17px/1.45 var(--vpv-titre); color: #3A332A; }
.vpv-ou { margin: 0 0 10px; font-size: 13px; color: var(--vpv-doux); }
.vpv-presentation { font-size: 14.5px; line-height: 1.65; }
.vpv-presentation p { margin: 0 0 .8em; }
.vpv-contacts { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #E3D6C3; }
.vpv-contacts li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 3px 0; font-size: 14.5px; margin: 0; }
.vpv-contacts li span { color: var(--vpv-doux); font-size: 13px; }
.vpv-contacts a { color: var(--vpv-encre); text-decoration: none; border-bottom: 1px solid #CDB894; overflow-wrap: anywhere; }
.vpv-contacts a:hover { border-bottom-color: var(--vpv-laiton); color: var(--vpv-laiton); }
.vpv-etapes { list-style: none; counter-reset: etape; margin: 6px 0 0; padding: 0; }
.vpv-etapes li { counter-increment: etape; position: relative; padding: 9px 0 9px 42px; border-top: 1px solid #EFE5D3; font-size: 14.5px; margin: 0; }
.vpv-etapes li::before { content: counter(etape); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--vpv-laiton); color: var(--vpv-laiton); font: 700 14px/25px var(--vpv-titre); text-align: center; }

/* Dessin */
.vpv-shop { cursor: pointer; transition: opacity .25s; }
.vpv-shop text, .vpv-libre, .vpv-cadre, .vpv-repere { pointer-events: none; }
.vpv-shop .vpv-formes * { fill: var(--c); stroke: var(--c); stroke-width: 1.5; transition: fill .18s, stroke .18s; }
.vpv-shop:hover .vpv-formes *, .vpv-shop.vpv-actif .vpv-formes * { fill: var(--cf); stroke: var(--cf); }
.vpv-carte.vpv-filtre .vpv-shop:not(.vpv-retenu) { opacity: .16; }
.vpv-libre .vpv-forme * { fill: url(#vpv-hachure); stroke: #B9A483; stroke-width: 1; }
.vpv-libre.vpv-exterieur .vpv-forme * { fill: url(#vpv-hachureV); stroke: #A9B48E; }
.vpv-sol { fill: url(#vpv-dallage); }
.vpv-mur { fill: none; stroke: var(--vpv-encre); stroke-width: 3; stroke-linecap: square; }
.vpv-mur-fin { fill: none; stroke: var(--vpv-encre); stroke-width: .8; opacity: .6; }
.vpv-cour-sol { fill: #E3E9D2; }
.vpv-nom { font-family: var(--vpv-titre); font-weight: 700; fill: #FFF8EC; letter-spacing: .05em; text-transform: uppercase; }
.vpv-decor .vpv-forme * { fill: #E2D4BC; stroke: var(--vpv-encre); stroke-width: 1.2; }
.vpv-decor text { font: italic 600 25px var(--vpv-titre); fill: #5B4A32; pointer-events: none; }
.vpv-decor.vpv-lien { cursor: pointer; }
.vpv-decor.vpv-lien:hover .vpv-forme * { fill: #D6C4A4; }
.vpv-cadre-titre { font: italic 600 30px var(--vpv-titre); fill: #2B2620; }
.vpv-rp-fond { fill: #2B2620; } .vpv-rp-filet { fill: none; stroke: #E9D9B8; stroke-width: 1; }
.vpv-rp-texte { font-family: var(--vpv-titre); font-style: italic; font-weight: 600; fill: #FFF4E0; }
.vpv-rp-fleche { fill: #2B2620; }
.vpv-entree .vpv-rp-fond, .vpv-entree .vpv-rp-fleche { fill: #2F5A3F; }
.vpv-secours .vpv-rp-fond, .vpv-secours .vpv-rp-fleche { fill: #8E2C2C; }
.vpv-zone { cursor: pointer; }
.vpv-zone-fond { fill: url(#vpv-herbe); stroke: #2B2620; stroke-width: 2; }
.vpv-zone-filet { fill: none; stroke: #7F8F5E; stroke-width: 1; stroke-dasharray: 2 5; }
.vpv-zone:hover .vpv-zone-fond { stroke-width: 3.5; }
.vpv-zone-titre { font: italic 600 40px var(--vpv-titre); fill: #3F4E2C; }
.vpv-zone-sous { font: 600 19px var(--vpv-texte); fill: #56663D; }

/* Liste des boutiques */
.vpv-liste { margin-top: 40px; }
.vplan .vpv-liste h3 { font: 600 26px var(--vpv-titre); text-align: center; margin: 0 0 18px; color: var(--vpv-encre); }
.vpv-liste ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.vpv-liste li { margin: 0; }
.vplan .vpv-liste button { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 10px 12px; text-align: left; cursor: pointer;
  background: #FFFAF1; color: var(--vpv-encre); border: 1px solid #E3D6C3; border-left: 5px solid var(--c); border-radius: 2px; transition: border-color .15s, box-shadow .15s; }
.vplan .vpv-liste button:hover { border-color: var(--c); box-shadow: 0 10px 24px -16px rgba(23, 37, 42, .45); }
.vpv-vignette { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #F1E7D4; border: 1px solid #E3D6C3; color: var(--vpv-laiton); font: 700 20px var(--vpv-titre); }
.vpv-vignette img { width: 100%; height: 100%; object-fit: cover; }
.vpv-texte-liste { min-width: 0; }
.vpv-texte-liste b { display: block; font: 700 16px/1.25 var(--vpv-titre); }
.vpv-texte-liste small { display: block; font-size: 12.5px; color: var(--vpv-doux); }

/* Tablette et téléphone : panneau sous le plan, plan défilant de côté */
@media (max-width: 900px) {
  .vpv-corps { grid-template-columns: 1fr; }
  .vpv-panneau { position: relative; top: 0; }
  .vpv-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .vpv-module { padding: 10px; }
  .vpv-niveaux { width: 100%; }
  .vplan .vpv-niveaux button { flex: 1 1 auto; font-size: 14px; padding: 6px 8px; }
  .vpv-recherche { flex: 1 1 100%; }
  .vpv-filtres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .vplan .vpv-filtres button { flex: none; }
  .vpv-carte svg { min-width: 640px; }
}
@media (prefers-reduced-motion: reduce) { .vplan * { transition: none !important; } }
