/* =====================================================================
   PLAN DE SALLE 2026 (page Les Vignerons)
   Positions en mm du plan Word (salle --L × --H) ; au téléphone, la salle tourne d'un quart de tour (portrait),
   le contenu des stands reste droit. États de départ des animations : posés par le script seulement.
   ===================================================================== */
.salle { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--rythme); color: var(--clair-2);
  background: radial-gradient(70% 90% at 50% 40%, #4A111C 0%, #2C090C 55%, #1A060A 100%); }
.salle::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06; background-image: var(--grain); pointer-events: none; }
.salle .titre { color: var(--clair); }
.salle .surtitre { color: var(--or-moyen); }
.salle__tete { margin-bottom: 26px; }
.salle__filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 2.6vw, 34px); }
.filtre { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(237, 216, 134, .32); color: var(--clair); font-size: 13.5px; font-weight: 600; background: rgba(19, 9, 10, .25); transition: background-color var(--d-survol) ease, border-color var(--d-survol) ease, color var(--d-survol) ease; }
.filtre span { font-weight: 500; color: var(--clair-3); }
.filtre:hover { border-color: var(--or-clair); }
.filtre.actif { background: linear-gradient(180deg, #F8DDA2, #DDA954); border-color: transparent; color: #2A1408; }
.filtre.actif span { color: rgba(42, 20, 8, .7); }
.salle__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); gap: clamp(20px, 2.4vw, 36px); align-items: start; }

.salle__cadre { position: relative; aspect-ratio: 133.99 / 75.99; container-type: size; margin-block: 30px 44px;
  width: min(100%, calc((84svh - var(--h-entete) - 24px) * 1.7633)); justify-self: center; margin-inline: auto; }
.plan { position: absolute; inset: 0; container-type: inline-size; }
.plan > * { --u: calc(100cqw / var(--L)); }
/* le sol : un parquet chaud, bordé d'une ombre, comme une nappe posée dans la nuit */
.plan__sol { position: absolute; inset: 0; border-radius: 6px;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(255, 214, 150, .16), rgba(255, 214, 150, 0) 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 1px, rgba(0, 0, 0, 0) 1px calc(var(--u) * 6)),
    repeating-linear-gradient(0deg, rgba(255, 230, 190, .045) 0 1px, rgba(0, 0, 0, 0) 1px calc(var(--u) * 2.2)),
    linear-gradient(160deg, #5A2A1C, #3E1A12 55%, #2E120D);
  box-shadow: inset 0 0 calc(var(--u) * 9) rgba(10, 3, 4, .75), 0 30px 70px -30px rgba(0, 0, 0, .9); }
.plan__traits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plan__mur { fill: none; stroke: #E6C277; stroke-width: .36; stroke-linecap: round; }
.plan__mur--halo { stroke: rgba(237, 216, 134, .16); stroke-width: 1.25; }
.plan__parcours { fill: none; stroke: rgba(237, 216, 134, .62); stroke-width: .24; stroke-linecap: round; }
.plan__parcours-masque { fill: none; stroke: #fff; stroke-width: 8; }
.plan__porte { position: absolute; left: calc(var(--x) * var(--u)); translate: -50% 0; font-size: max(9px, calc(var(--u) * 1.75)); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--or-clair); pointer-events: none; text-align: center; }
/* les portes s’annoncent hors des murs, face à leur ouverture */
.plan__porte--bas { top: calc(100% + 8px); }
.plan__porte--haut { bottom: calc(100% + 8px); }
.plan__porte--issue { color: rgba(247, 241, 232, .6); font-size: max(8px, calc(var(--u) * 1.4)); }
.plan__porte--entree::before { content: ""; display: block; width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); margin: 0 auto 4px; border-radius: 50%; background: var(--or-clair); box-shadow: 0 0 0 calc(var(--u) * .9) rgba(237, 216, 134, .25), 0 0 18px rgba(237, 216, 134, .7); }

/* un stand : une étiquette posée sur le sol */
.pstand { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--l) * var(--u)); height: calc(var(--h) * var(--u));
  rotate: var(--r); padding: 0; border-radius: calc(var(--u) * .7); cursor: pointer;
  background: linear-gradient(180deg, #FFFBF3, #F3E7D2); border: 1px solid rgba(201, 151, 63, .75);
  box-shadow: 0 calc(var(--u) * .6) calc(var(--u) * 1.6) rgba(10, 3, 4, .55), inset 0 0 0 calc(var(--u) * .35) rgba(255, 255, 255, .5);
  transition: border-color 300ms ease; }
.pstand--sombre { background: linear-gradient(180deg, #4A1420, #2C090C); border-color: rgba(237, 216, 134, .7); }
.pstand--association { background: rgba(237, 216, 134, .1); border: 1.5px dashed rgba(237, 216, 134, .8); }
.pstand--libre { background: rgba(247, 241, 232, .04); border: 1.5px dashed rgba(247, 241, 232, .3); box-shadow: none; cursor: default; }
.pstand::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: rgba(22, 7, 10, .78); opacity: 0; transition: opacity 400ms ease; pointer-events: none; z-index: 2; }
.pstand__in { position: absolute; left: 50%; top: 50%; width: calc(var(--c) * var(--u)); height: calc(var(--c) * var(--u)); translate: -50% -50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pstand__num { position: absolute; left: 8%; top: 5%; font-family: var(--f-titre); font-weight: 700; font-size: calc(var(--u) * 2.1); line-height: 1; color: var(--encre-2); font-variant-numeric: lining-nums; }
.pstand--sombre .pstand__num, .pstand--association .pstand__num { color: var(--or-clair); }
.pstand--libre .pstand__num { color: rgba(247, 241, 232, .4); }
.pstand__logo { width: 80%; height: 48%; max-width: none; object-fit: contain; margin-top: 16%; }
.pstand--association .pstand__num, .pstand--libre .pstand__num { position: static; font-size: calc(var(--u) * 3.6); }
.pstand__nom { display: block; width: 88%; margin-top: 18%; font-family: var(--f-titre); font-weight: 600; font-size: max(7px, calc(var(--u) * 1.42)); line-height: 1.12; text-align: center; color: var(--encre); overflow-wrap: normal; hyphens: manual; text-wrap: balance; }
.pstand--association .pstand__in::after { content: "Association"; position: absolute; bottom: 12%; font-size: calc(var(--u) * 1.15); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(237, 216, 134, .85); }
.pstand--libre .pstand__in::after { content: "À pourvoir"; position: absolute; bottom: 12%; font-size: calc(var(--u) * 1.1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(247, 241, 232, .45); }
.pstand::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: 3; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 231, 166, .95), 0 0 calc(var(--u) * 4) rgba(237, 216, 134, .75); opacity: 0; transition: opacity 240ms ease; }
.pstand:not(.pstand--libre):hover, .pstand.actif, .pstand:focus-visible { z-index: 5; border-color: #FFE7A6; }
.pstand:focus-visible { outline: 2px solid #FFF8E6; outline-offset: 3px; }
.pstand:not(.pstand--libre):hover::after, .pstand.actif::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .pstand:not(.pstand--libre):hover .pstand__in { scale: 1.04; } }
.pstand__in { transition: scale 320ms var(--e-out); }
.plan.filtre-on .pstand:not(.eclaire)::before { opacity: 1; }
.plan.filtre-on .pstand.eclaire { z-index: 4; border-color: #FFE7A6; }
.plan.filtre-on .pstand.eclaire::after { opacity: .85; transition: opacity 450ms var(--e-out) calc(var(--rang, 0) * 35ms); }
/* la ronde : un éclat quand la lumière passe ; l'appel : l'anneau se resserre sur le stand */
.pstand.visite::after { animation: pstand-visite 1s var(--e-out); }
@keyframes pstand-visite { 0% { opacity: 0; } 30% { opacity: .75; } 100% { opacity: 0; } }
.pstand.appel::after { animation: pstand-appel 900ms var(--e-out) both; }
@keyframes pstand-appel { from { opacity: 0; scale: 1.35; } to { opacity: 1; scale: 1; } }
.plan__lumiere { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; z-index: 6; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #FFF4D8 0 3px, rgba(246, 213, 140, .95) 4.5px, rgba(237, 216, 134, .32) 10px, rgba(237, 216, 134, 0) 32px); }
html:not(.js) .fiche, html:not(.js) .salle__filtres { display: none; }

/* la fiche du stand */
.fiche { position: relative; min-height: 100%; padding: 26px 24px 24px; border-radius: 10px; color: var(--clair-2);
  background: linear-gradient(180deg, rgba(74, 20, 32, .92), rgba(28, 7, 11, .96)); border: 1px solid rgba(237, 216, 134, .3);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); }
.fiche__fermer { display: none; position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; place-items: center; border: 1px solid var(--or-filet); border-radius: 50%; }
.fiche__invite { font-family: var(--f-titre); font-size: 22px; line-height: 1.25; color: var(--clair); }
.fiche__legende { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--clair-3); }
.pastille { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--or-clair); box-shadow: 0 0 10px rgba(237, 216, 134, .8); }
.fiche__stand { font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--or-moyen); }
.fiche__stand b { font-family: var(--f-titre); font-size: 30px; letter-spacing: 0; color: var(--or-clair); margin-left: 6px; vertical-align: -3px; }
.fiche__logo { display: grid; place-items: center; margin-top: 16px; height: 120px; border-radius: 8px; background: linear-gradient(180deg, #FFFBF3, #F3E7D2); }
.fiche__logo.sombre { background: linear-gradient(180deg, #4A1420, #2C090C); border: 1px solid rgba(237, 216, 134, .3); }
.fiche__logo:empty { display: none; }
.fiche__logo img { max-width: 78%; max-height: 72%; width: auto; height: auto; object-fit: contain; }
.fiche__nom { margin-top: 18px; font-family: var(--f-titre); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--clair); }
.fiche__app { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.fiche__region { margin-top: 10px; display: inline-flex; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(237, 216, 134, .35); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--or-clair); }
.fiche__region:empty { display: none; }
.fiche__lien { color: var(--or-clair); }

/* la liste : chaque stand avec son logo */
.stand { grid-template-columns: auto 92px minmax(0, 1fr); align-items: center; gap: 0 16px; }
.stand__num { grid-row: auto; }
.stand__logo-cadre { display: grid; place-items: center; width: 92px; height: 60px; border-radius: 6px; background: #FFFDF8; border: 1px solid var(--filet-clair); overflow: hidden; }
.stand--sombre .stand__logo-cadre { background: linear-gradient(180deg, #4A1420, #2C090C); border-color: rgba(201, 151, 63, .5); }
.stand__logo { max-width: 84%; max-height: 78%; width: auto; height: auto; object-fit: contain; }
.stand__monogramme { font-family: var(--f-titre); font-weight: 600; font-size: 30px; color: var(--or-texte); }
.stand__txt { min-width: 0; }
.stand__voir { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(110, 26, 40, .35); }
.stand__voir:hover { text-decoration-color: currentColor; }

@media (max-width: 1100px) {
  .salle__grille { grid-template-columns: 1fr; }
  .fiche { min-height: 0; }
  .fiche__vide { display: none; }
  .fiche:not(.ouverte) { display: none; }
  .fiche.ouverte { position: fixed; z-index: 95; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; padding-right: 60px; }
  .fiche__fermer { display: grid; }
  .fiche__logo { height: 96px; }
  .salle.feuille { z-index: 1; }
}
@media (max-width: 700px) {
  /* la salle en portrait : un quart de tour, l'entrée se retrouve en bas à droite */
  .salle__cadre { aspect-ratio: 75.99 / 133.99; }
  .plan { inset: auto; left: 50%; top: 50%; width: 100cqh; height: 100cqw; translate: -50% -50%; rotate: -90deg; }
  .pstand__in { rotate: 90deg; }
  .plan__porte { rotate: 90deg; white-space: normal; line-height: 1.15; font-size: max(8px, calc(var(--u) * 1.6)); }
  .plan__porte--bas { top: calc(100% - var(--u) * 1.6); bottom: auto; transform-origin: 100% 50%; translate: -100% -50%; text-align: right; }
  .plan__porte--haut { top: calc(var(--u) * 1.6); bottom: auto; transform-origin: 0 50%; translate: 0 -50%; text-align: left; }
  .plan__porte--issue { width: min-content; }
  .plan__porte--entree { width: max-content; }
  .salle__cadre { margin: 10px auto; }
  .salle__filtres { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--marge)); padding: 2px var(--marge) 8px; scroll-padding-inline: var(--marge); scrollbar-width: none; scroll-snap-type: x proximity; }
  .salle__filtres::-webkit-scrollbar { display: none; }
  .filtre { flex: none; scroll-snap-align: start; }
  .pstand__num { font-size: calc(var(--u) * 2.6); }
  .salle__cadre { width: min(100% - 28px, calc((92svh - var(--h-entete) - 16px) * .5671)); }
  .plan__mur { stroke-width: .5; }
  .plan__mur--halo { stroke-width: 1.6; }
  .plan__parcours { stroke-width: .34; }
  .plan__lumiere { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .pstand__logo { width: 86%; height: 52%; }
  .pstand__nom { width: 94%; margin-top: 22%; font-size: max(6.5px, calc(var(--u) * 1.45)); line-height: 1.08; }
  .stand { grid-template-columns: auto minmax(0, 1fr); }
  .stand__logo-cadre { grid-column: 2; grid-row: 1; justify-self: start; }
  .stand__txt { grid-column: 1 / -1; margin-top: 12px; }
}

/* =====================================================================
   LES EXPOSANTS : grille compacte, filtrable par région (21/10/2026)
   ===================================================================== */
.exposants-section { scroll-margin-top: var(--h-entete); }
.exposants__tete { display: grid; gap: 18px; margin-bottom: clamp(22px, 2.4vw, 32px); }
.exposants__tete .entete-bloc { margin-bottom: 0; }
.exposants__tete .filtre-regions { margin-bottom: 0; }
.filtre-regions a.actif { background: var(--encre); border-color: var(--encre); color: var(--creme); }
.filtre-regions a.actif span { color: var(--clair-3); }
.exposants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.exposant { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 78px; padding: 10px 10px 10px 10px; border-radius: 8px; background: var(--papier); border: 1px solid var(--filet-clair); scroll-margin-top: calc(var(--h-entete) + 24px); transition: border-color 300ms ease, box-shadow 300ms ease; }
.exposant[hidden] { display: none; }
.ancre-region { position: absolute; top: calc(-1 * var(--h-entete) - 90px); }
.exposant__logo { display: grid; place-items: center; width: 64px; height: 52px; border-radius: 6px; background: #FFFDF8; border: 1px solid var(--filet-clair); overflow: hidden; }
.exposant--sombre .exposant__logo { background: linear-gradient(180deg, #4A1420, #2C090C); border-color: rgba(201, 151, 63, .5); }
.exposant__logo-img { max-width: 84%; max-height: 78%; width: auto; height: auto; object-fit: contain; }
.exposant__mono { font-family: var(--f-titre); font-weight: 600; font-size: 24px; color: var(--or-texte); }
.exposant__txt { min-width: 0; }
.exposant__haut { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.exposant__num { flex: none; white-space: nowrap; color: var(--encre-2); font-weight: 700; }
.exposant__region { min-width: 0; color: var(--texte-doux); font-weight: 600; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exposant__region::before { content: "·"; margin-right: 8px; color: var(--or); }
.exposant__nom { margin-top: 3px; font-family: var(--f-titre); font-weight: 600; font-size: 15.5px; line-height: 1.2; color: var(--encre); }
.exposant__app { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--texte-doux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exposant__voir { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--filet-clair); color: var(--encre-2); transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease; }
.exposant__voir .ic { font-size: 16px; }
@media (hover: hover) and (pointer: fine) {
  .exposant:hover { border-color: rgba(201, 151, 63, .7); box-shadow: 0 14px 30px -22px rgba(43, 14, 18, .6); }
  .exposant__voir:hover { background: var(--encre); color: var(--or-clair); border-color: var(--encre); }
}
.exposant::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 2px var(--or), 0 16px 34px -18px rgba(43, 14, 18, .5); opacity: 0; transition: opacity 600ms ease; }
.exposant.repere::after { opacity: 1; transition-duration: 300ms; }
@media (max-width: 1240px) { .exposants { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .exposants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .exposants { grid-template-columns: 1fr; gap: 8px; }
  .exposant { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; min-height: 64px; padding: 8px; }
  .exposant__logo { width: 52px; height: 42px; }
  .exposant__nom { font-size: 14.5px; margin-top: 1px; }
  .exposant__app { -webkit-line-clamp: 1; }
  .exposant__voir { width: 32px; height: 32px; }
  .exposants__tete .filtre-regions { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--marge)); padding: 2px var(--marge) 8px; scroll-padding-inline: var(--marge); scrollbar-width: none; max-width: none; }
  .exposants__tete .filtre-regions::-webkit-scrollbar { display: none; }
  .exposants__tete .filtre-regions a { flex: none; }
}
