/* Fiche d’un centre d’intérêt — maquette Claude Design « annuaire-lieu » (27/09/2026).
   La grille d’informations, l’épingle et la mini-carte viennent de evenement.css (même dessin). */

/* Bandeau : il remonte sous l’en-tête fixe, comme celui des pages. */
.rq-lieu-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 420px; margin-top: -114px; background: var(--degrade-rouge); color: var(--blanc); }
.rq-lieu-hero--photo { min-height: 560px; background: var(--brume); }
.rq-lieu-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rq-lieu-hero__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 32, 62, 0.2) 0%, rgba(20, 32, 62, 0.05) 35%, rgba(102, 6, 19, 0.72) 100%); pointer-events: none; }
.rq-lieu-hero__motif { position: absolute; right: 120px; top: 150px; height: 340px; width: auto; opacity: 0.14; filter: brightness(0) invert(1); pointer-events: none; }
.rq-lieu-hero__interieur { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 36px; width: 100%; box-sizing: border-box; padding-top: 190px; padding-bottom: 56px; }
.rq-lieu-hero__logo { flex-shrink: 0; width: 220px; height: 220px; padding: 20px; box-sizing: border-box; border-radius: var(--radius-header, 6px 6px 4px 4px); background: var(--blanc); box-shadow: 0 18px 40px rgba(13, 26, 51, 0.3); }
.rq-lieu-hero--photo .rq-lieu-hero__logo { width: 104px; height: 104px; padding: 10px; }
.rq-lieu-hero__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rq-lieu-hero__texte { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rq-lieu-hero .rq-fil { font-family: var(--font-alt); font-weight: 500; font-size: 16px; line-height: 22px; letter-spacing: 0.5px; color: var(--blanc); }
.rq-lieu-hero .rq-fil a { color: var(--blanc); }
.rq-lieu-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rq-lieu-hero__cat { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--radius-header, 6px 6px 4px 4px); background: var(--blanc); font-family: var(--font-alt); font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--encre); }
.rq-lieu-hero__cat img { width: 16px; height: 16px; }
.rq-lieu-hero__etat { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius-header, 6px 6px 4px 4px); background: rgba(255, 255, 255, 0.12); font-family: var(--font-alt); font-weight: 700; font-size: 15px; color: var(--blanc); }
.rq-lieu-hero__etat__point, .rq-lieu-actions__etat__point { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.rq-lieu-hero__etat:has(.est-ouvert) .rq-lieu-hero__etat__point { background: #7BE495; }
.rq-lieu-hero__etat:has(.est-ferme) .rq-lieu-hero__etat__point { background: #FFC2CC; }
/* La pastille d’état du thème garde ses attributs (mise à jour en direct) mais pas son habillage. */
.rq-lieu-hero__etat .rq-etat-ouverture, .rq-lieu-actions__etat .rq-etat-ouverture { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.rq-lieu-hero__etat .rq-etat-ouverture::before, .rq-lieu-actions__etat .rq-etat-ouverture::before { content: none; }
.rq-lieu-hero__titre { margin: 0 0 0 -2px; font-family: var(--font-display); font-weight: 700; font-size: 74px; line-height: 68px; color: var(--blanc); text-wrap: balance; overflow-wrap: break-word; }

/* Barre d’actions */
.rq-lieu-actions { background: var(--blanc); border-bottom: 1px solid var(--bordure); }
.rq-lieu-actions__interieur { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-sizing: border-box; }
.rq-lieu-actions__gauche { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-alt); font-weight: 700; font-size: 16px; color: var(--encre); }
.rq-lieu-actions__etat { display: inline-flex; align-items: center; gap: 8px; }
.rq-lieu-actions__etat__point { width: 10px; height: 10px; background: var(--gris-neutre); }
.rq-lieu-actions__etat:has(.est-ouvert) .rq-lieu-actions__etat__point { background: #3F7D3A; }
.rq-lieu-actions__etat:has(.est-ferme) .rq-lieu-actions__etat__point { background: var(--rouge); }
.rq-lieu-actions__ou { font-weight: 500; color: var(--gris-texte); }
.rq-lieu-actions__boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rq-lieu-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; box-sizing: border-box; padding: 0 16px; border: 1.5px solid var(--encre); border-radius: var(--radius-btn); background: var(--blanc); color: var(--encre); font-family: var(--font-body); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rq-lieu-btn:hover { background: var(--encre); color: var(--blanc); }
.rq-lieu-btn--plein { padding: 0 8px 0 16px; background: var(--encre); color: var(--blanc); font-family: var(--font-display); font-size: 16px; }
.rq-lieu-btn--plein:hover { background: var(--rouge); border-color: var(--rouge); }
.rq-lieu-btn__sq { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: var(--radius-fleche); background: var(--blanc); color: var(--rouge); }
.rq-lieu-btn__sq--noir { background: var(--noir-doux); color: var(--blanc); }
.rq-lieu-btn:focus-visible, .rq-lieu :is(a, button):focus-visible, .rq-lieu-cote a:focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }

/* Corps de la fiche */
.rq-lieu { padding: 56px 0 96px; }
.rq-lieu__grille { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; }
.rq-lieu__principal { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.rq-lieu__principal > .cb-el:empty { display: none; }
.rq-lieu__chapo { margin: 0; font-family: var(--font-alt); font-weight: 700; font-size: 24px; line-height: 33px; color: var(--encre); text-wrap: pretty; }
.rq-lieu__texte { font-size: 17px; line-height: 28px; color: var(--bleu-nuit); }
.rq-lieu__texte > :first-child { margin-top: 0; }
.rq-lieu__texte > :last-child { margin-bottom: 0; }
.rq-lieu__texte h2 { margin: 30px 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 36px; color: var(--encre); }
.rq-lieu__texte h3 { margin: 24px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 28px; color: var(--encre); }
.rq-lieu__texte p { margin: 0 0 18px; }
.rq-lieu__label { margin: 0 0 12px; font-family: var(--font-alt); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--encre); }
.rq-lieu__bloc + .rq-lieu__bloc { margin-top: 40px; }
.rq-lieu__paragraphe { margin: 0; font-size: 17px; line-height: 28px; color: var(--bleu-nuit); }
.rq-lieu__liens { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.rq-lieu__carte-liens { padding: 24px 26px; border: 1px solid var(--bordure); }
.rq-lieu__carte-liens .rq-lieu__label { margin-bottom: 10px; }
.rq-lieu__carte-liens ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rq-lieu__carte-liens a { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--encre); text-decoration: none; }
.rq-lieu__carte-liens a:hover { color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }
.rq-lieu__maj { margin: 0; font-size: 16px; color: var(--gris-texte); }
/* Crédit de la photo du bandeau (01/10/2026, demande de Dorian : plus de pastille « i » sur la grande photo). La licence
   des photos de Wikimedia Commons (CC BY-SA) impose de citer l’auteur : le crédit passe en ligne de texte. */
.rq-lieu__credit { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--gris-texte); }
.rq-lieu__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rq-lieu__credit a:hover { color: var(--rouge); }

/* Colonne */
.rq-lieu__cote { position: sticky; top: calc(150px + var(--rq-alerte-h, 0px)); }
.rq-lieu-cote { display: flex; flex-direction: column; gap: 22px; }
.rq-lieu-cote__logo { display: flex; align-items: center; justify-content: center; padding: 26px; background: var(--brume); }
.rq-lieu-cote__logo img { width: 150px; height: 150px; object-fit: contain; } /* 200 px jusqu’au 01/10/2026 : trop présent à côté du bandeau */
.rq-lieu-cote__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 30px; background: var(--blanc); box-shadow: var(--ombre-carte); }
.rq-lieu-cote__contact .rq-lieu__label { margin: 0; }
.rq-lieu-cote__adresse { margin: 0; font-size: 17px; line-height: 26px; color: var(--bleu-nuit); }
.rq-lieu-cote__tel, .rq-lieu-cote__email { font-weight: 700; color: var(--encre); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rq-lieu-cote__tel { font-size: 18px; }
.rq-lieu-cote__email { font-size: 16px; }
.rq-lieu-cote__tel:hover, .rq-lieu-cote__email:hover { color: var(--rouge); }
/* Nom attaché à un numéro, lignes Contact / Adresse postale / Réseaux sociaux (annuaire des associations, 29/09/2026) */
.rq-lieu-cote__qui { margin-top: -6px; font-size: 14px; line-height: 20px; color: var(--gris-texte); }
.rq-lieu-cote__ligne { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 23px; color: var(--bleu-nuit); overflow-wrap: anywhere; }
.rq-lieu-cote__intitule { font-family: var(--font-alt); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--gris-texte); }
.rq-lieu-cote__reseaux { display: flex; gap: 10px; margin-top: 6px; }
.rq-lieu-cote__reseaux a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--brume); }
.rq-lieu-cote__reseaux a:hover { background: var(--bordure); }
.rq-lieu-cote__carte { position: relative; height: 200px; overflow: hidden; }
.rq-lieu-cote__carte .rq-evt-lieu__carte { height: 100%; border: 0; }
.rq-lieu-cote__carte .leaflet-bottom { bottom: 57px; } /* mention OpenStreetMap juste au-dessus de la bande « Voir sur la carte » (en haut, elle cachait le zoom sur téléphone) */
.rq-lieu-cote__carte-lien { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 500; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; background: var(--blanc); box-shadow: var(--ombre-carte); font-weight: 700; font-size: 15px; color: var(--encre); text-decoration: none; }
.rq-lieu-cote__carte-lien:hover { color: var(--rouge); }
/* « Signaler une erreur » : encadré et vrai bouton depuis le 04/10/2026 (demande de Dorian : le lien gris souligné, centré
   sous la carte, passait inaperçu). Liseré rouge comme les citations ; pictogramme rouge sur le bouton blanc (5,7:1). */
.rq-lieu-cote__signaler { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 24px; background: var(--brume); border-left: 4px solid var(--rouge); }
.rq-lieu-cote__signaler-titre { margin: 0; font-family: var(--font-alt); font-weight: 700; font-size: 17px; line-height: 24px; color: var(--encre); }
.rq-lieu-cote__signaler-texte { margin: 0 0 10px; font-size: 15px; line-height: 22px; color: var(--gris-texte); }
.rq-lieu-cote__signaler-btn svg { color: var(--rouge); }
.rq-lieu-cote__signaler-btn:hover svg { color: currentColor; }

/* Tablette */
@media (max-width: 1455px) {
  .rq-lieu-hero { min-height: 360px; margin-top: -104px; }
  .rq-lieu-hero--photo { min-height: 460px; }
  .rq-lieu-hero__interieur { padding-top: 180px; padding-bottom: 44px; gap: 28px; }
  .rq-lieu-hero__logo { width: 160px; height: 160px; padding: 14px; }
  .rq-lieu-hero__motif { right: 40px; height: 280px; }
  .rq-lieu-hero__titre { font-size: 56px; line-height: 54px; }
  .rq-lieu-actions__interieur { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .rq-lieu__grille { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 1023px) {
  .rq-lieu__grille { grid-template-columns: minmax(0, 1fr); }
  .rq-lieu__cote { position: static; }
}
/* Téléphone */
@media (max-width: 767px) {
  .rq-lieu-hero { min-height: 300px; margin-top: -80px; }
  .rq-lieu-hero--photo { min-height: 380px; }
  .rq-lieu-hero__interieur { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 150px; padding-bottom: 30px; }
  .rq-lieu-hero__logo { width: 104px; height: 104px; padding: 10px; }
  .rq-lieu-hero__motif { right: -40px; top: 110px; height: 220px; }
  .rq-lieu-hero__texte { gap: 12px; }
  .rq-lieu-hero .rq-fil { font-size: 14px; }
  .rq-lieu-hero__cat, .rq-lieu-hero__etat { font-size: 13px; }
  .rq-lieu-hero__titre { font-size: 36px; line-height: 38px; }
  .rq-lieu-actions__gauche { font-size: 15px; }
  .rq-lieu-actions__boutons { width: 100%; }
  .rq-lieu-btn { flex: 1 1 auto; justify-content: center; }
  .rq-lieu-btn--plein { justify-content: space-between; }
  .rq-lieu { padding: 36px 0 64px; }
  .rq-lieu__principal { gap: 32px; }
  .rq-lieu__chapo { font-size: 19px; line-height: 27px; }
  .rq-lieu__texte h2 { font-size: 26px; line-height: 30px; }
  .rq-lieu-cote__contact { padding: 22px 20px; }
}
/* Téléphone, allègement du 01/10/2026 (« un peu chargé et désorganisé », Dorian) :
   - bandeau : logo et titre plus petits (le fil d’Ariane réduit au lien parent est une règle de tout le site, style.css) ;
   - plus de doublons : la ligne sous le bandeau (état, catégorie, adresse) répétait le bandeau et les informations,
     le bloc Contact répétait l’adresse, le logo apparaissait deux fois ;
   - ordre de lecture : chapô, informations, contact, texte, horaires et créneaux, liens, carte, date de mise à jour.
     Les colonnes principale et latérale s’effacent (display: contents) pour que leurs blocs se rangent ensemble ;
   - informations en liste légère au lieu de cases encadrées. */
@media (max-width: 767px) {
  .rq-lieu-hero { min-height: 260px; }
  .rq-lieu-hero--photo { min-height: 330px; }
  .rq-lieu-hero__interieur { gap: 14px; padding-top: 128px; padding-bottom: 24px; }
  .rq-lieu-hero__logo, .rq-lieu-hero--photo .rq-lieu-hero__logo { width: 72px; height: 72px; padding: 7px; }
  .rq-lieu-hero__titre { font-size: 32px; line-height: 35px; }
  /* fil d’Ariane réduit au lien parent : règle commune à tout le site, dans style.css */

  .rq-lieu-actions__gauche { display: none; }
  .rq-lieu-actions__interieur { min-height: 0; padding-top: 14px; padding-bottom: 14px; }

  .rq-lieu__grille { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .rq-lieu__principal, .rq-lieu__cote, .rq-lieu__cote > .cb-el, .rq-lieu-cote { display: contents; }
  .rq-lieu__principal > [data-id="fl_chapo"] { order: 1; }
  .rq-lieu__principal > [data-id="fl_infos"] { order: 2; }
  .rq-lieu-cote__contact { order: 3; }
  .rq-lieu__principal > [data-id="fl_texte"] { order: 4; }
  .rq-lieu__principal > [data-id="fl_details"] { order: 5; }
  .rq-lieu__principal > [data-id="fl_liens"] { order: 6; }
  .rq-lieu-cote__carte { order: 7; }
  .rq-lieu__principal > [data-id="fl_maj"] { order: 8; }
  .rq-lieu-cote__signaler { order: 9; align-self: stretch; padding: 20px; }
  .rq-lieu-cote__signaler-btn { align-self: stretch; justify-content: center; white-space: normal; }
  .rq-lieu-cote__logo { display: none; }

  .rq-lieu__infos { display: flex; flex-direction: column; border: 0; }
  .rq-lieu__infos .rq-evt-info { gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--bordure); }
  .rq-lieu__infos .rq-evt-info:first-child { border-top: 1px solid var(--bordure); }
  .rq-lieu__infos .rq-evt-info__icone { width: 22px; height: 22px; }
  .rq-lieu__infos .rq-evt-info__valeur { font-size: 17px; line-height: 22px; }
  .rq-lieu__infos .rq-evt-info__detail { font-size: 14px; }

  .rq-lieu-cote__contact { gap: 10px; padding: 20px; }
  .rq-lieu-cote__adresse { display: none; }
  /* Contact réduit à l’adresse (monuments) : déjà dans les informations, le bloc disparaît. */
  .rq-lieu-cote__contact:not(:has(> :not(.rq-lieu__label, .rq-lieu-cote__adresse))) { display: none; }
  .rq-lieu__carte-liens { padding: 18px 20px; }
  .rq-lieu__carte-liens a { font-size: 15px; line-height: 22px; }
  .rq-lieu-cote__carte { height: 180px; }
  .rq-lieu__maj { font-size: 14px; }
}
/* Fiche sans texte : le conteneur du contenu reste vide, il ne doit pas creuser d’écart. */
.rq-lieu__principal > .rq-lieu__texte:not(:has(*)) { display: none; }
/* L’état d’ouverture est déjà dans le bandeau et la barre d’actions : pas une troisième fois au-dessus du tableau. */
.rq-lieu__horaires .rq-grille-horaires__etat { display: none; }
