/* We Event en deux sites — bloc « encarts et vitrines » (26/11). Se charge APRÈS deux-sites.css et n'emploie que ses jetons.
   1. Les trois encarts du premier écran (.portes) : ces règles REMPLACENT celles de la feuille commune (« Les trois événements »,
      et les lignes .porte… de son bloc « Tablette »).
   2. La barre de lieu de la section des vitrines (.lieu) : règles nouvelles. Les règles communes .repli et .statut ne servent plus ici. */

/* ================================================================ 1. Les trois encarts : photo pleine, cadre d'or en dégradé, flèche en or */
.portes { width: min(100%, 940px); margin-top: 22px; }
.portes__titre { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 11px; color: var(--accent-clair-uni);
  font: 650 .86rem/1.2 var(--police); letter-spacing: .01em; text-shadow: 0 1px 10px rgba(4, 9, 26, .7); }
/* Deux filets d'or de part et d'autre du mot : décor seulement */
.portes__titre::before, .portes__titre::after { content: ""; flex: 0 1 72px; height: 1px; background: linear-gradient(90deg, rgba(235, 209, 147, 0) 0%, rgba(235, 209, 147, .95) 100%); }
.portes__titre::after { transform: scaleX(-1); }
.portes ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }

/* Le cadre : le fond du lien est l'or en dégradé, la photo est posée dedans avec 2 px de retrait */
.porte { --cadre: 2px; --r: 15px; --h-texte: 44px; position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 1 / 1.3; border-radius: var(--r);
  background: linear-gradient(150deg, #F8E7B4 0%, #D8B45C 26%, #8F6C2C 58%, #C9A24B 82%, #F0D48A 100%); color: #fff; text-align: left; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(8, 15, 38, .5), 0 14px 26px -14px var(--bouton-lueur), 0 26px 40px -22px rgba(4, 9, 26, .95);
  transition: transform .3s var(--courbe), box-shadow .3s; }
.porte__photo { position: absolute; inset: var(--cadre); z-index: -2; overflow: hidden; border-radius: calc(var(--r) - var(--cadre)); background: var(--nuit-2); }
.porte .porte__photo img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.14) contrast(1.04); transition: transform .9s var(--courbe); }
/* Reflet qui traverse la photo au survol, comme sur le bouton « Rechercher » */
.porte__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 244, 214, .45) 50%, rgba(255, 255, 255, 0) 62%); transform: translateX(-130%); transition: transform .9s var(--courbe); }
/* Voile : marine en bas sous le texte, une lueur d'or dans l'angle, un filet clair en haut pour le relief */
.porte__voile { position: absolute; inset: var(--cadre); z-index: -1; border-radius: calc(var(--r) - var(--cadre));
  background: linear-gradient(0deg, rgba(8, 15, 38, .95) 0, rgba(11, 21, 48, .74) var(--h-texte), rgba(15, 30, 64, 0) calc(var(--h-texte) * 1.95)),
    radial-gradient(85% 70% at 0% 0%, rgba(230, 196, 108, .3) 0%, rgba(230, 196, 108, 0) 62%),
    linear-gradient(205deg, rgba(150, 40, 112, .2) 0%, rgba(150, 40, 112, 0) 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 0 0 1px rgba(8, 15, 38, .3); }
.porte__corps { position: absolute; left: 9px; right: 9px; bottom: 9px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
/* Le trait d'or des titres de section, en petit, au-dessus du nom : décor seulement */
.porte__corps::before { content: ""; width: 22px; height: 3px; margin-bottom: 5px; border-radius: 3px; background: var(--accent); box-shadow: 0 4px 10px -2px var(--bouton-lueur); }
/* Le nom réserve deux lignes tant que les encarts sont étroits : les trois traits d'or restent à la même hauteur */
.porte__nom { min-height: 2.36em; font-weight: 700; font-size: .78rem; line-height: 1.18; letter-spacing: -.012em; text-wrap: balance; text-shadow: 0 1px 10px rgba(4, 9, 26, .6); }
.porte__metiers { display: none; }
.porte__fleche { position: absolute; right: 8px; top: 8px; bottom: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bouton); color: var(--bouton-texte);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--bouton-bord), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -8px 10px -8px var(--bouton-ombre), 0 8px 16px -8px var(--bouton-lueur), 0 2px 5px rgba(4, 9, 26, .45);
  transition: transform .3s var(--courbe), filter .2s; }
.porte__fleche .icone { width: 14px; height: 14px; stroke-width: 2.4; }
.porte:hover, .porte:focus-visible { color: #fff; transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(8, 15, 38, .5), 0 20px 34px -14px var(--bouton-lueur), 0 30px 46px -22px rgba(4, 9, 26, .98); }
.porte:hover .porte__photo img, .porte:focus-visible .porte__photo img { transform: scale(1.06); }
.porte:hover .porte__photo::after, .porte:focus-visible .porte__photo::after { transform: translateX(130%); }
.porte:hover .porte__fleche, .porte:focus-visible .porte__fleche { background: var(--bouton); color: var(--bouton-texte); transform: translateX(3px); filter: saturate(1.1) brightness(1.07);
  box-shadow: inset 0 0 0 1px var(--bouton-bord), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -8px 10px -8px var(--bouton-ombre), 0 10px 20px -8px var(--bouton-lueur), 0 2px 5px rgba(4, 9, 26, .45); }
.porte:active { transform: translateY(-1px); }

@media (prefers-reduced-motion: no-preference) {
  .portes__titre { animation: monter .7s var(--courbe) .12s both; }
}

@media (min-width: 720px) {
  .portes { margin-top: 30px; }
  .portes__titre { margin-bottom: 14px; font-size: .95rem; }
  .portes ul { gap: 14px; }
  .porte { --r: 18px; --h-texte: 50px; aspect-ratio: 1.7 / 1; border-radius: var(--r); }
  .porte__corps { left: 16px; right: 60px; bottom: 14px; gap: 1px; }
  .porte__corps::before { width: 26px; margin-bottom: 7px; }
  .porte__nom { font-weight: 700; font-size: 1.06rem; text-wrap: wrap; }
  .porte__fleche { top: auto; right: 14px; bottom: 14px; width: 40px; height: 40px; }
  .porte__fleche .icone { width: 18px; height: 18px; }
}
@media (min-width: 1024px) {
  .porte { --h-texte: 62px; aspect-ratio: 1.62 / 1; }
  .porte__nom { min-height: 0; }
  .porte__metiers { display: block; max-width: 100%; overflow: hidden; color: var(--accent-clair-uni); font-size: .85rem; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
}

/* ================================================================ 2. Vitrines : la barre de lieu (« Autour de moi », ou une ville) */
.lieu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; }
/* Barre de lieu DISCRÈTE (demande de Hugo, 26/11 au soir : « moins visible, moins mis en avant ») : ni or plein ni ombre,
   des pastilles au contour fin. Elle accompagne la liste des vitrines, elle ne la domine pas. */
.lieu__bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px 0 13px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .5); color: var(--titre); font: 600 .94rem/1 var(--police); white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--ligne-forte); transition: background .2s, box-shadow .2s, scale .12s var(--courbe); }
.lieu__bouton .icone { width: 18px; height: 18px; color: var(--or-brun); }
/* conseil A4 des vidéos du 28/11 : les deux boutons de la barre se réduisent à 0,97 à l'appui (rien pour qui demande moins d'animations) */
@media (prefers-reduced-motion: no-preference) { .lieu__bouton:active, .lieu__voir:active { scale: .97; } }
.lieu__bouton:hover, .lieu__bouton:focus-visible { background: #fff; color: var(--titre); box-shadow: inset 0 0 0 1px var(--or-brun); }
/* Attente de la position ou des vitrines : le viseur bat */
.lieu__bouton[aria-busy="true"] { cursor: progress; }
.lieu__bouton[aria-busy="true"] .icone { animation: lieu-attente 1.1s ease-in-out infinite; }
@keyframes lieu-attente { 0%, 100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1.12); opacity: 1; } }
/* Position en service : une teinte d'or légère et un liseré, rien de plus */
.lieu__bouton.est-actif, .lieu__bouton.est-actif:hover, .lieu__bouton.est-actif:focus-visible { background: rgba(201, 162, 75, .16); color: var(--titre); box-shadow: inset 0 0 0 1px var(--or-brun); }

/* Le champ « ville » : une pastille au contour fin ; « Voir » est un simple mot, sans fond */
.lieu__ville { display: flex; align-items: center; gap: 8px; flex: 0 1 290px; min-height: 44px; padding: 0 4px 0 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px var(--ligne-forte); transition: background .2s, box-shadow .2s; }
.lieu__ville > .icone { flex: none; width: 17px; height: 17px; color: var(--or-brun); }
.lieu__ville input { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--encre); font-size: 1rem; outline: none; -webkit-appearance: none; appearance: none; }
.lieu__ville input::placeholder { color: var(--gris); opacity: 1; }
.lieu__ville input::-webkit-calendar-picker-indicator { display: none !important; }
.lieu__ville:focus-within { background: #fff; outline: 2px solid var(--focus); outline-offset: 2px; }
.lieu__voir { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--accent-lien); font: 650 .9rem/1 var(--police); cursor: pointer; transition: background .2s, color .2s, scale .12s var(--courbe); }
.lieu__voir:hover, .lieu__voir:focus-visible { background: rgba(15, 30, 64, .07); color: var(--titre); }
/* Position refusée : le champ « ville » prend la main, d'un simple liseré d'or */
.lieu--ville .lieu__ville { background: #fff; box-shadow: inset 0 0 0 1.5px var(--or-brun); }
.lieu__retour { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--accent-lien);
  font: 600 .9rem/1.2 var(--police); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lieu__retour:hover, .lieu__retour:focus-visible { background: none; color: var(--titre); }

/* Le message (attente, refus, pas assez de vitrines) : une ligne claire, filet d'or à gauche */
.lieu__annuaire { margin-left: auto; }
.lieu__statut { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; width: fit-content; max-width: 100%; margin: -8px 0 22px; padding: 12px 16px 12px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #FBF8F0 100%); box-shadow: inset 3px 0 0 var(--or), inset 0 0 0 1px var(--ligne); color: var(--encre); font-size: .96rem; line-height: 1.45; }
.lieu__statut p { flex: 1 1 260px; }

@media (max-width: 719px) {
  .lieu { gap: 10px; margin-bottom: 20px; }
  .lieu__bouton, .lieu__ville { flex: 1 1 100%; max-width: none; }
  .lieu__voir { min-height: 44px; }
  .lieu__annuaire { margin-left: 0; }
}
