/* Structure de page configurable (Sitebuilder, section « Structure ») : bandeaux → colonnes → blocs,
   rendus par _includes/structure/layout.tpl du thème. Reprend tmc-footer-layout.css en classes tmc_structure_*. */
.tmc_structure_row { position: relative; }
.tmc_structure_row > [class^="container"] { position: relative; z-index: 1; }
.tmc_structure_row > [class^="container"] > .row { row-gap: 1.5rem; }
.tmc_structure_bg_video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tmc_structure_bg_video:empty { display: none; }
.tmc_structure_bg_video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Slideshow en fond de bandeau (1043786) : remplit le conteneur, ratio inline du diaporama neutralisé ; seuls les contrôles reprennent les clics (le texte du bandeau reste cliquable). */
.tmc_bg_slideshow, .tmc_bg_slideshow .pxm-ss, .tmc_bg_slideshow .pxm-ss__stage, .tmc_bg_slideshow .pxm-ss__viewport { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; max-width: none; border-radius: 0; }
.tmc_bg_slideshow { isolation: isolate; z-index: 0; }
.tmc_bg_slideshow .pxm-ss__viewport { aspect-ratio: auto !important; }
.tmc_bg_slideshow .pxm-ss__title { display: none; }
.tmc_bg_slideshow .pxm-ss__bar { position: absolute; right: 0; bottom: .5rem; left: 0; z-index: 10; padding: 0; pointer-events: none; }
.tmc_bg_slideshow .pxm-ss__arrow, .tmc_bg_slideshow .pxm-ss__dots, .tmc_bg_slideshow .pxm-ss__pause { pointer-events: auto; }
.tmc_structure_footer { display: flex; flex-direction: column; row-gap: 2rem; }
.tmc_structure_col { display: flex; flex-direction: column; }
.tmc_structure_block + .tmc_structure_block { margin-top: var(--tmc-structure-block-gap, 1.25rem); }
.tmc_structure_block:empty { display: none; }
.tmc_structure_block { display: flex; flex-direction: column; }
.tmc_structure_align_left { align-items: flex-start; text-align: left; }
.tmc_structure_align_center { align-items: center; text-align: center; }
.tmc_structure_align_right { align-items: flex-end; text-align: right; }
.tmc_structure_align_center :is(.d-flex, .tmc_footer_inline) { justify-content: center; }
.tmc_structure_align_right :is(.d-flex, .tmc_footer_inline) { justify-content: flex-end; }
.tmc_structure_block :is(table, .footer-hours) { text-align: left; }
.tmc_footer_inline { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; }

/* En-tête : la structure ne s'affiche qu'à partir de 1200 px (en dessous, en-tête mobile d'origine du thème).
   display: contents pour que le bandeau collant colle sur toute la page et pas seulement dans le <header>. */
.tmc_structure_header { display: none; }
@media (min-width: 1200px) {
  .tmc_structure_header { display: contents; }
}
.tmc_structure_sticky { position: sticky; top: 0; z-index: 1020; }
.tmc_structure_header .tmc_structure_col { justify-content: center; }
.tmc_structure_row[hidden], [data-tmc-reserve], [data-tmc-title][hidden] { display: none !important; }

/* Superposition de bandeaux (1044094) : une partie qui contient une pile (bandeau de base + bandeaux superposés
   qui le suivent) devient une grille d'une colonne ; chaque bandeau reçoit sa rangée (--gr bureau, --gr-m mobile)
   et les bandeaux d'une pile partagent la même cellule. Variables posées par structure/layout.tpl (StructureStack)
   et surchargeables par un wireframe. Contenu et pied ici ; l'en-tête est traité à part ci-dessous. */
.tmc_structure_content.tmc_structure_stacked,
.tmc_structure_footer.tmc_structure_stacked { display: grid; grid-template-columns: minmax(0, 1fr); }
.tmc_structure_footer.tmc_structure_stacked { row-gap: 2rem; }
.tmc_structure_stacked > .tmc_structure_row { grid-row: var(--gr); grid-column: 1; min-width: 0; }
/* Base à z-index 1 : un bandeau « Derrière le précédent » (--z:0) passe dessous, les superposés devant (--z ≥ 2)
   restent dessus. */
.tmc_ly_base { z-index: 1; min-height: var(--ly-h, 0px); }
.tmc_ly_over { z-index: var(--z, 2); align-self: var(--ay, center); transform: translate(var(--ox, 0px), var(--oy, 0px)); }
.tmc_ly_over > [class^="container"] { display: flex; justify-content: var(--ax, center); }
.tmc_ly_over > [class^="container"] > .row { width: var(--w, 100%); max-width: 100%; }
/* Le bandeau superposé (souvent transparent) couvre toute la cellule de la base : il laisse passer les clics vers
   la base, seule sa .row (le contenu réel) les reçoit. */
.tmc_ly_over { pointer-events: none; }
.tmc_ly_over > [class^="container"] > .row { pointer-events: auto; }
/* En-tête : seule la partie passe en grille, et seulement à partir de 1200 px (le <header> reste en contents ; sous
   1200 px, le display: none de .tmc_structure_header continue de masquer l'en-tête Structure). */
@media (min-width: 1200px) {
  .tmc_structure_header.tmc_structure_stacked { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tmc_ly_nd { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .tmc_ly_nt { display: none !important; }
}
@media (max-width: 767.98px) {
  .tmc_ly_nm { display: none !important; }
  .tmc_structure_stacked > .tmc_structure_row { grid-row: var(--gr-m); }
  .tmc_ly_over { transform: none; }
}
