/* Ajustements propres à WordPress (le reste vient de main.css, CSS du site d origine). */
#wpadminbar { position: fixed; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
html { background: #fff; }

/* Résultats de recherche (page sans équivalent dans la CSS d'origine) */
.tdg-results { list-style: none; margin: 30px 0; padding: 0; }
.tdg-results li { margin: 0 0 25px; padding: 0 0 20px; border-bottom: 1px solid #e5e5e5; }
.tdg-results li > a { font-weight: 700; font-size: 1.2em; text-transform: uppercase; }
.tdg-results li p { margin: 8px 0 0; }
.nav-links { display: flex; gap: 10px; margin-bottom: 40px; }

/* Contenus en blocs : légendes et liens d'images au rendu du site d'origine */
.block-image-legend .image figcaption { margin-top: 5px; display: block; text-align: center; }
.ce-gallery figure.wp-block-image { display: table; margin: 0; }
.ce-gallery figure.wp-block-image figcaption { display: table-caption; caption-side: bottom; }
.wp-block-group:empty { display: none; }

/* Défilement natif à la place de mCustomScrollbar : menu de gauche et colonne de droite.
   Pas d'overscroll-behavior: contain, qui bloquait la molette au-dessus de ces zones. */
#left-wrap .content-left-wrap, #right-wrap {
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.35) transparent; }
#left-wrap .content-left-wrap { scrollbar-color: rgba(255,255,255,.4) transparent; }
/* Fiche Apidae : la colonne de droite (photos, Tarifs/Prestations) prend la hauteur de son contenu, au lieu
   d'une hauteur fixe avec un cadre défilant à l'intérieur (on restait « coincé » dans les tarifs).
   overflow: hidden est gardé : c'est lui qui place la colonne à côté du descriptif. */
#main-wrap #right-content { height: auto; min-height: 100%; }
#main-wrap #right-content #second-content,
#main-wrap #right-content #second-content .content-scroll { height: auto; overflow: visible; }

/* Bouton billetterie de l'en-tête : pastille compacte avec icône (template-parts/reservation-*.php) */
#reservation-button a.tdg-tickets {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font: 15px/1.2 'SatoshiMedium', arial, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  color: #224740 !important;
  background-color: #95c11f;
  text-decoration: none !important; }
#reservation-button a.tdg-tickets:hover,
#reservation-button a.tdg-tickets:focus-visible {
  background-color: #a6d12a; }
#reservation-button a.tdg-tickets svg {
  flex: none; }
@media screen and (max-width: 950px) {
  #reservation-button a.tdg-tickets {
    border: 0;
    padding: 8px 16px; } }

/* Bulle de l'assistant Virage AI : pictogramme noir illisible sur le fond vert, passé en blanc. */
#ai-virage-chat-widget-fab img {
  filter: brightness(0) invert(1); }

/* Page protégée par mot de passe (Espace pro) */
.tdg-password { max-width: 560px; margin: 10px 0 40px; }
.tdg-password__intro { margin: 0 0 20px; }
.tdg-password__label { display: block; margin-bottom: 6px; font-weight: 700; }
.tdg-password__row { display: flex; gap: 10px; align-items: stretch; }
.tdg-password__row input[type="password"] {
  flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0 12px;
  border: 1px solid #575756; border-radius: 0; background: #fff; font: inherit; font-size: 16px; }
.tdg-password__row input[type="password"]:focus { outline: 2px solid #224740; outline-offset: 2px; }
.tdg-password__row input[type="submit"] { flex: 0 0 auto; height: 44px; margin: 0; padding: 0 22px; }
.tdg-password__error { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid #b32d2e; background: #fcf0f1; color: #8a1f1f; }
@media (max-width: 480px) { .tdg-password__row { flex-direction: column; } }
