/*
 * INSPIRATIONS_REFONTE_2026_10_13 — page publique Inspirations au style de la billetterie (maquettes validées le 13/10).
 * S'appuie sur css/billetterie.css (classes bil-*, variables posées sur .bil) et ne contient que ce qui lui manque :
 * couverture (crédit photo, recherche du téléphone, carte « À la une » avec photo), galerie en mosaïque, visionneuse.
 * La fenêtre moodboard et l'avis (#we-mb-*) gardent css/modules/pages/inspirations.css ; seuls leurs plans sont relevés
 * ici pour passer au-dessus de la visionneuse. Toutes les classes nouvelles commencent par « ig- ».
 * Cibles de 44 px au moins, focus visible (règle .bil :focus-visible), mouvement réduit (règle de billetterie.css).
 */
main.bil.ig { display: block; background: var(--bil-creme); }
.ig [hidden], .ig-vis [hidden], .ig-vis[hidden] { display: none !important; }

/* ---------- Couverture ---------- */
.ig-couv .bil-couv__photo { object-position: 50% 40%; }
.ig-couv .bil-couv__grille { grid-template-columns: minmax(0, 1fr) 420px; }
.ig--sans-une .ig-couv .bil-couv__grille { grid-template-columns: minmax(0, 1fr); }
.ig-couv__compte { margin: 0; font-size: 14.5px; color: var(--bil-pale); }
.ig-couv__compte strong { font-weight: 600; color: #FFFFFF; }
.ig-couv__accroche-tel, .ig-couv__recherche { display: none; }
.ig-credit { position: absolute; right: 24px; bottom: 112px; z-index: 1; margin: 0; font-size: 12px; color: rgba(255, 255, 255, 0.74); }
.ig-credit a { display: inline-block; padding-block: 12px; margin-block: -12px; color: inherit; text-decoration: underline; text-underline-offset: 2px; } /* zone tactile de 44 px */
.ig-credit a:hover { color: #FFFFFF; }

/* Carte « À la une » (photo en tête, texte dessous) */
.ig-une { gap: 0; padding: 0; overflow: hidden; }
.ig-une:hover { transform: none; }
.ig-une__photo { display: block; width: 100%; height: 300px; padding: 0; overflow: hidden; border: 0; background: var(--bil-marine-2); cursor: pointer; }
.ig-une__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ig-une__photo:hover img { transform: scale(1.03); }
.ig-une__photo:focus-visible { outline-offset: -4px; }
.ig-une__corps { display: flex; flex-direction: column; gap: 10px; padding: 22px 26px 26px; }
.ig-une__corps .bil-kick { font-size: 11.5px; color: var(--bil-pale); }
.ig-une__nom { margin: 0; font-family: var(--bil-serif); font-size: 28px; font-weight: 400; line-height: 1.12; color: #FFFFFF; overflow-wrap: anywhere; }
.ig-une__compte { font-size: 13.5px; color: var(--bil-pale); }
.ig-une .bil-une__bas .bil-bouton { min-height: 50px; padding: 0 24px; }
.ig-note { white-space: nowrap; }
.ig-une-telephone, .ig-une-tel { display: none; }

/* ---------- Galerie ---------- */
.ig-recherche { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
.ig-seg-metier { position: relative; border-right: 0; cursor: pointer; }
.ig-seg-metier::after { content: ""; position: absolute; top: 50%; right: 26px; width: 8px; height: 8px; border-right: 2px solid var(--bil-encre-3); border-bottom: 2px solid var(--bil-encre-3); transform: translateY(-20%) rotate(45deg); pointer-events: none; }
.ig-seg-metier:focus-within { border-radius: 999px; outline: 3px solid var(--bil-marine); outline-offset: 2px; }
.ig-seg__liste { width: 100%; min-height: 24px; margin: 0; padding: 0 26px 0 0; border: 0; outline: none; background: transparent; font: 400 15.5px var(--bil-sans); color: var(--bil-encre-3); cursor: pointer; -webkit-appearance: none; appearance: none; }
.ig-recherche-active { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: -6px 0 0; font-size: 15px; color: var(--bil-encre-2); }
.ig-recherche-active strong { color: var(--bil-encre); }
.ig-puces { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.ig-puces .bil-compteur { margin-left: auto; }

/* Mosaïque : colonnes construites par le script (une tuile garde sa colonne quand « Voir plus » en ajoute) */
.ig-mosaique { display: flex; align-items: flex-start; gap: 20px; }
.ig-mosaique--attente { min-height: 240px; }
.ig-colonne { display: flex; flex: 1 1 0; flex-direction: column; gap: 20px; min-width: 0; }
.ig-mosaique--liste { width: 100%; max-width: 760px; margin: 0 auto; }
.ig-message { flex: 1 1 100%; }
.ig-tuile { position: relative; overflow: hidden; border-radius: 18px; background: var(--bil-creme-2); box-shadow: 0 1px 2px rgba(9, 28, 59, 0.06), 0 10px 26px rgba(9, 28, 59, 0.07); transition: box-shadow 0.2s ease; }
.ig-tuile__ouvrir { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.ig-tuile__ouvrir img { display: block; width: 100%; height: auto; aspect-ratio: auto 4 / 5; object-fit: cover; background: linear-gradient(135deg, #E9E1CC, #F4EFE1); }
.ig-tuile__ouvrir:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -6px; }
.ig-tuile__legende { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 2px; padding: 40px 16px 14px; background: linear-gradient(180deg, rgba(7, 21, 48, 0) 0%, rgba(7, 21, 48, 0.85) 100%); color: #FFFFFF; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.ig-tuile__nom, .ig-tuile__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-tuile__nom { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ig-tuile__meta { font-size: 12.5px; color: #D5DCE8; }
/* Actions invisibles = inatteignables : sans « pointer-events: none », un toucher en haut d'une petite tuile ouvrait la
   fenêtre moodboard au lieu de la photo (recette du 13/10, 390 px). Visibles au survol ou au clavier (focus). */
.ig-tuile__actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.ig-tuile:hover .ig-tuile__legende, .ig-tuile:focus-within .ig-tuile__legende, .ig-mosaique--liste .ig-tuile__legende,
.ig-tuile:hover .ig-tuile__actions, .ig-tuile:focus-within .ig-tuile__actions { opacity: 1; pointer-events: auto; }
.ig-tuile:focus-within { box-shadow: 0 0 0 3px var(--bil-or), 0 20px 40px rgba(9, 28, 59, 0.18); }
@media (hover: hover) {
  .ig-tuile:hover { box-shadow: 0 0 0 3px var(--bil-or), 0 20px 40px rgba(9, 28, 59, 0.18); }
}
@media (hover: none) {
  .ig-tuile__actions { display: none; } /* au doigt : la visionneuse porte « j'aime » et le moodboard */
}
.ig-rond { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #DCD3BC; border-radius: 50%; background: rgba(255, 255, 255, 0.96); color: var(--bil-encre); cursor: pointer; }
.ig-rond:hover { border-color: var(--bil-marine); }
.ig-rond[aria-pressed="true"] svg, .ig-rond.on svg { fill: var(--bil-or); stroke: var(--bil-or-fonce); }
.ig-pilule-mb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bil-or); color: var(--bil-marine); font: 600 13.5px var(--bil-sans); white-space: nowrap; cursor: pointer; }
.ig-pilule-mb:hover { background: var(--bil-or-survol); }
.ig-pilule-mb[aria-pressed="true"] { background: var(--bil-marine); color: #FFFFFF; }
/* Gating session (2026-06-11) : « j'aime » visible connecté seulement ; le moodboard reste proposé à tous (la fenêtre
   moodboard demande la connexion au visiteur anonyme). */
body:not(.we-authed) .ig-tuile__aime, body:not(.we-authed) #modalLikeBtn { display: none !important; }
body:not(.we-authed) #modalSaveBtn { display: inline-flex !important; }

/* Attente du chargement */
.ig-attente { height: 260px; border-radius: 18px; background: linear-gradient(100deg, #EFE7D2 30%, #F8F2E4 50%, #EFE7D2 70%); background-size: 300% 100%; animation: ig-reflet 1.4s ease-in-out infinite; }
.ig-attente--haute { height: 360px; }
@keyframes ig-reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }
.ig-plus { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.ig-plus .bil-compteur { white-space: normal; text-align: center; }

/* Appel aux prestataires */
.ig-publier { border-top: 1px solid var(--bil-ligne); border-bottom: 0; }

/* ---------- Visionneuse ---------- */
.ig-vis { position: fixed; inset: 0; z-index: 2147483001; } /* au-dessus de la pastille « Assistant IA » (2147483000) */
.ig-vis__fond { position: absolute; inset: 0; background: rgba(7, 21, 48, 0.88); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ig-vis__cadre { position: absolute; top: 48px; right: 64px; bottom: 48px; left: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; overflow: hidden; border-radius: 24px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.ig-vis__scene { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; background: #050E22; --bil-anneau: var(--bil-or-clair); }
.ig-vis__image { display: block; width: 100%; height: 100%; object-fit: contain; }
.ig-vis__fleche { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-top: -28px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; background: rgba(7, 21, 48, 0.55); color: #FFFFFF; cursor: pointer; }
.ig-vis__fleche:hover { background: rgba(7, 21, 48, 0.85); }
.ig-vis__fleche--prec { left: 20px; }
.ig-vis__fleche--suiv { right: 20px; }
.ig-vis__legende { position: absolute; bottom: 18px; left: 20px; max-width: calc(100% - 40px); padding: 5px 12px; overflow: hidden; border-radius: 999px; background: rgba(7, 21, 48, 0.75); color: #FFFFFF; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ig-vis__position, .ig-vis__points, .ig-vis__poignee { display: none; }
.ig-vis__panneau { display: flex; flex-direction: column; gap: 18px; min-height: 0; padding: 30px 30px 26px; overflow-y: auto; overscroll-behavior: contain; background: var(--bil-creme); }
.ig-vis__fermer { position: absolute; top: 18px; right: 18px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #DCD3BC; border-radius: 50%; background: #FFFFFF; color: var(--bil-encre); cursor: pointer; }
.ig-vis__entete { display: flex; align-items: center; gap: 14px; padding-right: 50px; }
.ig-vis__logo { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 60px; height: 60px; overflow: hidden; border: 2px solid var(--bil-or-clair); border-radius: 50%; background: #FFFFFF; font-family: var(--bil-serif); font-size: 24px; color: var(--bil-marine); }
.ig-vis__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ig-vis__titres { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ig-vis__nom { margin: 0; font-family: var(--bil-serif); font-size: 23px; font-weight: 400; line-height: 1.12; color: var(--bil-encre); overflow-wrap: anywhere; }
.ig-vis__nom:focus { outline: none; }
.ig-vis__meta { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--bil-encre-3); }
.ig-vis__meta .ig-note { font-weight: 600; color: var(--bil-or-fonce); }
.ig-vis__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: #24324D; }
.ig-vis__liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ig-vis__liens .bil-bouton { min-height: 50px; padding: 0 12px; }
.ig-vis__actions { display: flex; gap: 10px; }
.ig-vis__actions .ig-rond { width: 48px; height: 48px; }
.ig-vis__mb { flex-grow: 1; min-height: 48px; padding: 0 16px; font-size: 14.5px; }
.ig-vis__mb .ig-mb-coche, .ig-vis__mb.saved .ig-mb-plus { display: none; }
.ig-vis__mb.saved .ig-mb-coche { display: inline; }
.ig-vis__mb.saved { background: var(--bil-marine); color: #FFFFFF; }
.ig-vis__autres { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ig-vis__autres-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ig-lien { min-height: 44px; padding: 0 4px; border: 0; background: transparent; font: 600 13px var(--bil-sans); color: var(--bil-encre); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ig-vis__vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ig-vis__vignettes--repliees .ig-vis__vignette:nth-child(n+7) { display: none; }
.ig-vis__vignette { display: block; width: 100%; height: 96px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: var(--bil-creme-2); cursor: pointer; }
.ig-vis__vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-vis__vignette[aria-current="true"] { box-shadow: 0 0 0 3px var(--bil-or); }
/* Fenêtre moodboard et avis : au-dessus de la visionneuse (la fenêtre s'ouvre depuis elle) */
body .we-mb-overlay { z-index: 2147483002; }
body .we-mb-toast, body .we-mb-toast.we-mb-toast-texte { z-index: 2147483003; }

/* ---------- Points de rupture ---------- */
@media (max-width: 1279px) {
  .ig-couv .bil-couv__grille { grid-template-columns: minmax(0, 1fr) 380px; }
  .ig-une__photo { height: 250px; }
}
@media (max-width: 1023px) {
  .ig-couv .bil-couv__grille { grid-template-columns: minmax(0, 1fr) 320px; }
  .ig-une__photo { height: 210px; }
  .ig-une__nom { font-size: 24px; }
  .ig-credit { right: 16px; }
  .ig-vis__cadre { top: 24px; right: 24px; bottom: 24px; left: 24px; grid-template-columns: minmax(0, 1fr) 360px; }
  .ig-vis__panneau { padding: 26px 22px 22px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .ig-mosaique--attente .ig-colonne:nth-child(n+4) { display: none; }
}
@media (max-width: 767px) {
  /* Couverture du téléphone : texte en bas, recherche dans la couverture, ni « Explorer » ni carte « À la une » */
  .ig-couv .bil-couv__scene { min-height: 620px; }
  .ig-couv .bil-couv__photo { object-position: 62% 40%; }
  .ig-couv .bil-couv__voile { background: linear-gradient(180deg, rgba(7, 21, 48, 0.8) 0%, rgba(7, 21, 48, 0.58) 42%, rgba(7, 21, 48, 0.96) 100%); }
  .ig-couv .bil-couv__grille { display: flex; flex-direction: column; flex-grow: 1; justify-content: flex-end; padding: 24px 20px 16px; }
  .ig-couv .bil-couv__accroche--long, .ig-couv__compte, .ig-couv .bil-explorer, .ig-une-zone { display: none; }
  .ig-couv__accroche-tel { display: block; margin: 0; font-size: 16px; line-height: 1.5; color: #D5DCE8; }
  .ig-couv__recherche { display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 4px; padding: 0 4px 0 18px; border-radius: 999px; background: #FFFFFF; }
  .ig-couv__recherche:focus-within { outline: 3px solid var(--bil-or-clair); outline-offset: 2px; }
  .ig-couv__recherche input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0; border: 0; outline: none; background: transparent; font: 400 16px var(--bil-sans); color: var(--bil-encre); }
  .ig-couv__recherche input::placeholder { color: var(--bil-encre-3); opacity: 1; }
  .ig-couv__recherche button { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bil-or); color: var(--bil-marine); cursor: pointer; }
  .ig-credit { position: relative; right: auto; bottom: auto; padding: 0 20px 22px; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); }

  /* Galerie du téléphone */
  .ig-puces { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .ig-puces::-webkit-scrollbar { display: none; }
  .ig-puces .bil-puce { flex-shrink: 0; padding: 0 14px; }
  .ig-puces .bil-compteur { display: none; }
  .ig-recherche-active { margin: 0; font-size: 14px; }
  .ig-une-telephone { display: block; }
  .ig-une-telephone:empty { display: none; }
  .ig-une-tel { display: grid; grid-template-columns: 120px minmax(0, 1fr); width: 100%; min-height: 120px; padding: 0; overflow: hidden; border: 1px solid rgba(226, 201, 119, 0.45); border-radius: 16px; background: var(--bil-marine); color: #FFFFFF; font: inherit; text-align: left; cursor: pointer; --bil-anneau: var(--bil-or-clair); }
  .ig-une-tel img { display: block; width: 120px; height: 100%; min-height: 120px; object-fit: cover; }
  .ig-une-tel__texte { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 14px 16px; }
  .ig-une-tel .bil-kick { font-size: 9.5px; letter-spacing: 0.2em; color: var(--bil-or-clair); }
  .ig-une-tel__nom { font-family: var(--bil-serif); font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
  .ig-une-tel__meta { font-size: 12.5px; color: var(--bil-pale); }
  .ig-mosaique, .ig-colonne { gap: 10px; }
  .ig-tuile { border-radius: 14px; box-shadow: 0 6px 18px rgba(9, 28, 59, 0.08); }
  /* Téléphone (maquette) : tuiles sans actions ni légende ; « j'aime » et moodboard sont dans la visionneuse. Sur une
     tuile basse, la pilule recouvrait le centre de la photo (recette du 13/10, 390 px). */
  .ig-tuile__actions, .ig-tuile__legende { display: none; }
  .ig-mosaique--attente .ig-colonne:nth-child(n+3) { display: none; }
  .ig-attente { height: 200px; border-radius: 14px; }
  .ig-attente--haute { height: 260px; }
  .ig-plus .bil-bouton { width: 100%; }

  /* Appel aux prestataires : carte bleu nuit */
  .ig-publier { gap: 14px; margin: 0 16px 32px; padding: 26px 22px; border: 0; border-radius: 20px; background: var(--bil-marine); --bil-anneau: var(--bil-or-clair); }
  .ig-publier .bil-kick--or { color: var(--bil-or-clair); }
  .ig-publier .bil-orga__titre { font-size: 26px; line-height: 1.1; color: #FFFFFF; }
  .ig-publier .bil-orga__texte-long { display: none; }
  .ig-publier .bil-bouton--marine { min-height: 50px; background: var(--bil-or); color: var(--bil-marine); }

  /* Visionneuse plein écran : photo en haut, fiche en feuille au bas de l'écran */
  .ig-vis__fond { background: #050E22; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ig-vis__cadre { inset: 0; display: flex; flex-direction: column; border-radius: 0; background: #050E22; box-shadow: none; }
  .ig-vis__scene { flex: 1 1 auto; min-height: 220px; padding: 64px 0 34px; }
  .ig-vis__fleche, .ig-vis__legende { display: none; }
  .ig-vis__position { position: absolute; top: 22px; left: 16px; display: block; font-size: 13.5px; color: var(--bil-pale); }
  .ig-vis__points { position: absolute; right: 0; bottom: 12px; left: 0; display: flex; justify-content: center; gap: 6px; }
  .ig-vis__point { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); }
  .ig-vis__point--actif { width: 18px; background: var(--bil-or); }
  .ig-vis__fermer { top: 10px; right: 16px; border-color: rgba(255, 255, 255, 0.35); background: transparent; color: #FFFFFF; --bil-anneau: var(--bil-or-clair); }
  .ig-vis__panneau { flex: 0 0 auto; gap: 14px; max-height: 64%; padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; }
  .ig-vis__poignee { display: block; align-self: center; width: 44px; height: 5px; border-radius: 3px; background: #DCD3BC; }
  .ig-vis__entete { gap: 12px; padding-right: 0; }
  .ig-vis__logo { width: 52px; height: 52px; font-size: 21px; }
  .ig-vis__nom { font-size: 20px; line-height: 1.15; }
  .ig-vis__meta { font-size: 12.5px; }
  .ig-vis__desc, .ig-vis__autres-haut .ig-lien { display: none; }
  .ig-vis__liens { gap: 8px; }
  .ig-vis__liens .bil-bouton { min-height: 48px; font-size: 14.5px; }
  .ig-vis__actions { gap: 8px; }
  .ig-vis__autres { margin-top: 0; }
  .ig-vis__autres-haut .bil-kick { font-size: 10.5px; }
  .ig-vis__vignettes { display: flex; gap: 8px; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
  .ig-vis__vignettes::-webkit-scrollbar { display: none; }
  .ig-vis__vignettes--repliees .ig-vis__vignette:nth-child(n+7) { display: block; }
  .ig-vis__vignette { flex: 0 0 96px; width: 96px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-attente { animation: none; }
  .ig-une__photo img, .ig-tuile, .ig-tuile__legende, .ig-tuile__actions { transition: none; }
  .ig-une__photo:hover img { transform: none; }
}
