/* Écrans 2 à 4 : le tableau. Colonne choisie toujours première, rouge plein de la tête à la dernière ligne. */
main { container-type: inline-size; }
.tableau { width: var(--g); margin: 0 auto; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.tableau th, .tableau td { padding: 14px 24px; text-align: left; vertical-align: top; font-weight: 400; }
.tableau .col { background: var(--blanc); transition: background-color .2s, color .2s; }
.tableau .col.choisie { background: var(--rouge); color: var(--blanc); }
.tableau .cache { display: none; }
.tableau tbody th { padding-left: 0; font: 500 14px/1.45 var(--texte); color: var(--gris); padding-top: 17px; }
.tableau tbody th small { display: block; font-size: 14px; }
.tableau td { font-size: 17px; line-height: 1.5; }
.tableau tbody tr:not(.groupe, .bande, .train) > * { border-bottom: 1px solid rgb(22 32 27 / .1); }
.tableau tbody tr:not(.groupe, .bande, .train) > .choisie { border-bottom-color: rgb(255 255 255 / .18); }

/* Tête collante : choix de la colonne, prix du palier actif, « Réserver ». */
.tete th { position: sticky; z-index: 6; top: calc(var(--demobar-offset, 0px) + var(--rang)); height: var(--tete);
  padding: 4px 16px; vertical-align: middle; background: var(--blanc); }
.tete .tete__lab { width: 220px; padding-left: 0; }
.tete__info { font: 500 14px/1.3 var(--texte); color: var(--gris); }
.echange { display: none; }
.tete .col { background: var(--pale); }
.tete__choix { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; }
.tete__q { display: none; height: 28px; width: auto; flex: none; }
.tete select { -webkit-appearance: none; appearance: none; min-width: 0; height: 40px; padding: 0 26px 0 0; border: 0; border-radius: 8px;
  background: transparent; font: 400 20px/1 var(--titre); cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: currentColor; }
.tete select option { color: var(--encre); background: var(--blanc); font-family: var(--texte); }
.tete__coche { position: relative; left: -24px; width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; flex: none; }
.tete__prix { display: inline-flex; align-items: baseline; gap: 6px; height: 44px; line-height: 44px; font: 500 15px/44px var(--texte); }
.tete__prix strong { font: 400 24px/44px var(--titre); }
.tete__resa { position: absolute; right: 12px; bottom: 4px; min-height: 44px; padding: 0 16px; border-radius: 8px;
  border: 2px solid currentColor; background: transparent; font: 700 15px/1 var(--texte); }
.tete__resa:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.tete .choisie .tete__resa { background: var(--blanc); border-color: var(--blanc); color: var(--rouge); }
.tete .choisie .tete__resa:hover { background: var(--rouge-f); border-color: var(--rouge-f); color: var(--blanc); }
@media (min-width: 1280px) { .tete__q { display: block; } }

/* Groupes : un nom en Kiwi Maru, 40 px de blanc, un trait d'encre. */
.groupe > * { padding-top: 48px !important; padding-bottom: 10px !important; border-bottom: 2px solid var(--encre); }
.groupe > .choisie { border-bottom-color: var(--rouge-f); }
.groupe .groupe__nom { display: block; font: 400 24px/1.2 var(--titre); color: var(--encre); }
.paliers { display: flex; gap: 14px; margin-top: 8px; }
.paliers button { min-height: 44px; padding: 0 2px; border: 0; background: none; font: 500 16px/1 var(--texte); color: var(--gris);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: transparent; }
.paliers button[aria-pressed="true"] { color: var(--encre); text-decoration-color: var(--rouge); font-weight: 700; }

.l-dessin td { vertical-align: bottom; padding-top: 28px; padding-bottom: 18px; }
.l-dessin .fleches { display: none; }
.q { width: calc(var(--l) / 205 * 85%); height: auto; }
.prix td { text-align: center; font: 400 32px/1.2 var(--titre); padding-top: 10px; padding-bottom: 10px; }
.prix th { padding-top: 20px; }
.prix[data-actif] > th { color: var(--encre); font-weight: 700; }
.heure th { font: 400 20px/1.3 var(--titre) !important; color: var(--encre) !important; padding-top: 14px; }

/* Le surligneur : il ne passe que sous la colonne qui vient de changer. */
.v { position: relative; z-index: 0; }
.v::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .08em; height: .55em; border-radius: 3px;
  background: rgb(163 25 31 / .16); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.3, .7, .2, 1);
  transition-delay: calc(var(--r, 0) * 25ms); }
.choisie .v::after { background: rgb(255 255 255 / .3); }
.surligne .v::after { transform: none; }

/* La bande : d'un bord à l'autre de l'écran, une ligne du tableau. */
.bande td { padding: 40px 0 0; }
.bande__fig { position: relative; width: 100cqw; margin-left: calc((var(--g) - 100cqw) / 2); }
.bande__fig img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.cartouche { position: absolute; left: calc((100cqw - var(--g)) / 2 - 24px); bottom: 0; transform: translateY(50%);
  display: grid; gap: 4px; max-width: min(560px, 90%); padding: 18px 24px; background: var(--blanc); }
.cartouche span { font: 500 15px/1.45 var(--texte); color: var(--encre); }
.cartouche small { font-size: 14px; color: var(--gris); }
.bande + .groupe > * { padding-top: 96px !important; }
.train td { padding: 28px 0 0; font: 400 20px/1.4 var(--titre); }

@media (max-width: 1023.98px) {
  .tableau, .tableau thead, .tableau tbody { display: block; }
  .tableau { width: auto; margin: 16px var(--mg) 0; }
  .tableau tr { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
  .tableau th, .tableau td { padding: 34px 12px 12px; }
  .tableau td { font-size: 16px; line-height: 1.4; }
  .tableau tbody th { position: absolute; z-index: 1; top: 10px; left: 12px; width: calc(50% - 24px); padding: 0; font-size: 13.5px;
    line-height: 1.2; color: rgb(255 255 255 / .8); pointer-events: none; }
  .tableau tbody th small { display: none; }
  .tableau tbody tr:not(.groupe, .bande, .train) > * { border-bottom: 0; }
  .tableau tbody tr:not(.groupe, .bande, .train) { border-bottom: 1px solid rgb(22 32 27 / .1); }
  .tableau thead { position: sticky; z-index: 6; top: calc(var(--demobar-offset, 0px) + var(--rang)); margin: 0 calc(-1 * var(--mg));
    padding: 0 var(--mg); background: var(--blanc); }
  .tete th { position: static; height: 48px; padding: 0 0 0 8px; }
  .tableau thead tr.tete { grid-template-columns: 1fr 44px 1fr; }
  .tete .tete__lab { width: auto; order: 2; padding: 2px 0; display: grid; place-items: center; }
  .tete .choisie { order: 1; }
  .tete .col:not(.choisie) { order: 3; }
  .tete__info, .tete__prix, .tete__resa { display: none; }
  .echange { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--blanc); }
  .echange svg { width: 24px; height: 24px; fill: none; stroke: var(--encre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tete__choix { height: 48px; gap: 6px; }
  .tete__q { display: block; height: 24px; }
  .tete select { flex: 1; height: 48px; padding-right: 18px; font: 700 16px/1 var(--texte); text-underline-offset: 5px; }
  .tete__coche { position: absolute; left: auto; right: 6px; top: 20px; }
  .groupe { grid-template-columns: 1fr 1fr; }
  .tableau .groupe > th { position: static; width: auto; grid-column: 2; grid-row: 1; padding: 28px 12px 8px !important; color: var(--encre); pointer-events: auto; }
  .tableau .groupe > td.choisie { grid-column: 1; grid-row: 1; }
  .tableau .groupe > td:not(.choisie) { display: none; }
  .groupe > * { border-bottom: 0 !important; }
  .tableau .groupe { border-bottom: 2px solid var(--encre); }
  .groupe .groupe__nom { font-size: 20px; }
  .paliers { gap: 10px; flex-wrap: wrap; }
  .l-dessin th { inset: 0; width: auto !important; top: 0 !important; left: 0 !important; }
  .l-dessin .lab { position: absolute; top: 10px; left: 12px; }
  .l-dessin .fleches { display: flex; position: absolute; top: 2px; right: 0; pointer-events: auto; }
  .fleche { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; }
  .fleche svg { width: 22px; height: 22px; fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .l-dessin td { padding-top: 56px; padding-bottom: 14px; min-height: 140px; display: flex; align-items: flex-end; }
  .q { width: calc(var(--l) * 140px / 205); }
  .prix td { font-size: 24px; text-align: left; padding-top: 32px; }
  .tableau .heure th { font: 500 13.5px/1.2 var(--texte) !important; color: rgb(255 255 255 / .8) !important; }
  .tableau .bande, .tableau .bande td, .tableau .train, .tableau .train td { display: block; }
  .bande td { padding: 0; }
  .bande__fig { width: auto; margin: 0 calc(-1 * var(--mg)); }
  .bande__fig img { aspect-ratio: 4 / 3; }
  .cartouche { position: relative; left: auto; transform: none; margin: -28px 48px 0 0; max-width: none; padding: 14px 16px 0 var(--mg); }
  .tableau .prix[data-actif] > th { color: rgb(255 255 255 / .8); }
  .bande + .groupe > * { padding-top: 32px !important; }
  .train td { padding: 20px 0 0; font-size: 18px; }
  .tableau tbody { touch-action: pan-y; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .tete__prix { font-size: 0; gap: 0; }
  .tete__prix strong { font-size: 24px; }
  .tete__resa { padding: 0 12px; }
}
