/* Pass-cirque — pages de réservation en ligne (complète css/style.css) */
.bt-page h2 { font-size: var(--t-3); margin-top: 2rem; }
.bt-entete { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.5rem; }
.bt-affiche { width: 160px; height: auto; border-radius: var(--rayon); box-shadow: 0 6px 18px rgba(27, 35, 64, .18); flex: none; }
.bt-surtitre { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--rouge); margin-bottom: .3rem; }
.bt-lieu { color: var(--gris); }
.bt-note { font-weight: 600; border-left: 3px solid var(--or); padding-left: .7rem; }
.bt-aide { color: var(--gris); font-size: .9rem; font-weight: 400; margin: .2rem 0 0; }
.bt-alerte { color: var(--rouge-fonce) !important; font-weight: 700; }

.bt-seances label { align-items: flex-start; }
.bt-seances input { margin-top: .15rem; }
.bt-seances strong { display: block; }
.bt-seances small { display: block; color: var(--gris); font-size: .875rem; margin-top: .1rem; }
.bt-seances .bt-indispo { opacity: .55; cursor: not-allowed; background: #F6F5F2; }

.bt-tarifs { display: grid; gap: .5rem; }
.bt-tarif { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 2px solid var(--trait); border-radius: var(--rayon); }
.bt-tarif strong { display: block; font-size: var(--t-1); }
.bt-tarif__prix { color: var(--gris); }
.bt-tarif__prix b { color: var(--rouge); font-size: var(--t-1); }
.bt-tarif__prix em { font-style: normal; font-weight: 700; color: var(--nuit); background: var(--or); border-radius: 99px; padding: 0 .45em; font-size: .85rem; }
.formulaire .bt-quantite { display: flex; align-items: center; gap: .3rem; flex: none; }
.bt-quantite input { width: 3.2rem; text-align: center; padding: .45rem .2rem; -moz-appearance: textfield; }
.bt-quantite input::-webkit-inner-spin-button, .bt-quantite input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bt-quantite button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--trait); background: #fff; font: 700 1.25rem/1 var(--corps); color: var(--nuit); cursor: pointer; }
.bt-quantite button:hover { border-color: var(--rouge); color: var(--rouge); }

.bt-recap { background: var(--sciure); border-radius: 10px; padding: 1rem 1.25rem; border: 2px dashed #D6C9B1; }
.bt-recap p { margin: 0; max-width: none; }
.bt-recap__ligne { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-weight: 600; }
.bt-recap__ligne b { font: 900 1.8rem/1.1 var(--titre); color: var(--rouge); white-space: nowrap; }
.bt-recap__detail { color: var(--gris); font-size: .9rem; margin-bottom: .6rem !important; }
.bt-recap__detail:last-child { margin-bottom: 0 !important; }
.bt-form button[disabled] { opacity: .5; cursor: not-allowed; }

.bt-billet { margin: 1.5rem 0; }
.bt-billet__code { font-size: 1.1rem; margin-bottom: .5rem !important; }
.bt-billet__code b { font-family: ui-monospace, monospace; font-size: 1.4rem; letter-spacing: .08em; }
.bt-billet__corps { display: block; }
.bt-billet__places { padding-left: 1.2rem; margin: 0 0 .75rem; }
.bt-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

@media (max-width: 40rem) {
  .bt-entete { flex-direction: column; }
  .bt-affiche { width: 120px; }
  .bt-tarif { flex-direction: column; align-items: flex-start; }
}

/* En-tête et pied de page de la billetterie */
.bt-haut { border-bottom: 1px solid var(--trait); background: #fff; }
.bt-haut__barre { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.5rem; }
.bt-haut__logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--nuit); font: 800 1.4rem/1 var(--titre); text-transform: uppercase; letter-spacing: .03em; }
.bt-haut__nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.bt-haut__nav a { color: var(--nuit); font-weight: 600; text-decoration: none; }
.bt-haut__nav a:hover { color: var(--rouge); }
.bt-bas { background: var(--nuit); color: #fff; padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.bt-bas a { color: #fff; }
.bt-bas ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.bt-bas__copyright { font-size: .85rem; opacity: .7; }

/* Accueil : offres du moment */
.bt-cartes { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.bt-carte a { display: flex; gap: 1rem; padding: 1rem; border: 2px solid var(--trait); border-radius: 10px; text-decoration: none; color: var(--texte); height: 100%; }
.bt-carte a:hover { border-color: var(--rouge); }
.bt-carte img, .bt-carte__sans { width: 96px; height: auto; border-radius: var(--rayon); flex: none; align-self: flex-start; }
.bt-carte__sans { height: 136px; display: grid; place-items: center; background: var(--rouge); color: var(--or); font-size: 2rem; }
.bt-carte__corps { display: grid; gap: .25rem; align-content: start; }
.bt-carte__corps strong { font: 800 1.35rem/1.1 var(--titre); }
.bt-carte__prix b { color: var(--rouge); font-size: var(--t-1); }
.bt-carte__prix em { font-style: normal; font-weight: 700; color: var(--nuit); background: var(--or); border-radius: 99px; padding: 0 .45em; font-size: .85rem; }
.bt-comment { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 0; margin: 2.5rem 0 0; list-style: none; counter-reset: etape; }
.bt-comment li { counter-increment: etape; background: var(--sciure); border-radius: 10px; padding: 1rem 1.1rem; }
.bt-comment li::before { content: counter(etape); display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--rouge); color: #fff; font-weight: 800; margin-right: .5rem; }
@media (max-width: 40rem) { .bt-haut__logo span { display: none; } }

/* Zones affichées par le script */
[hidden] { display: none !important; }
.bt-chargement { color: var(--gris); font-style: italic; }
.bt-apercu { margin: 0; padding: .5rem 1rem; background: var(--or); color: var(--nuit); font-weight: 700; text-align: center; max-width: none; }
mark { background: #FFF3B0; padding: 0 .2em; }

/* En-tête : panier et compte */
.bt-haut__nav { align-items: center; }
.bt-haut__panier, .bt-haut__compte { display: inline-flex; align-items: center; gap: .35rem; }
.bt-haut__panier { background: var(--rouge); color: #fff !important; padding: .45rem .9rem; border-radius: 999px; }
.bt-haut__panier:hover { background: var(--rouge-fonce); }
.bt-pastille { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 99px; background: var(--or); color: var(--nuit); font-size: .8rem; font-weight: 800; }
@media (max-width: 46rem) {
  .bt-haut__barre { flex-wrap: wrap; padding: .5rem 0; }
  .bt-haut__nav { gap: .5rem 1rem; font-size: .95rem; }
  .bt-haut__nav a:nth-child(2) { display: none; }
}

/* Accueil */
.bt-heros { background: var(--nuit); color: #fff; padding: 3.5rem 0 3rem; background-image: radial-gradient(circle at 85% 20%, rgba(253, 220, 51, .18), transparent 40%), repeating-linear-gradient(90deg, rgba(211, 47, 47, .14) 0 40px, transparent 40px 80px); }
.bt-heros h1 { font-size: var(--t-5); margin: 0 0 1rem; max-width: 14ch; }
.bt-heros__chapo { font-size: var(--t-1); max-width: 56ch; color: #E6E8F0; }
.bt-heros__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.bt-surtitre--clair { color: var(--or); }
.bt-carte__lien { color: var(--rouge-fonce); font-weight: 700; margin-top: .25rem; }
.bt-etapes { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.bt-etapes li { background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 10px rgba(27, 35, 64, .06); }
.bt-etapes h3 { font-size: var(--t-2); margin: .6rem 0 .4rem; }
.bt-etapes p { margin: 0; color: var(--gris); }
.bt-etapes__num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--rouge); color: #fff; font: 900 1.3rem/1 var(--titre); }
.bt-exemple { background: #fff; border-left: 4px solid var(--or); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; }
.bt-exemple p { margin: 0; max-width: none; }

/* Ajout au panier */
.bt-ajoute { border: 2px solid #43A047; background: #F1F8F1; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.bt-ajoute p { margin: 0 0 .75rem; }
.bt-ajoute .bt-actions { margin: 0; }

/* Lignes du panier et billets du compte */
.bt-lignes { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.bt-ligne { display: flex; gap: 1rem; padding: 1rem; border: 2px solid var(--trait); border-radius: 10px; background: #fff; }
.bt-ligne img { width: 72px; height: auto; border-radius: var(--rayon); align-self: flex-start; flex: none; }
.bt-ligne__corps { display: grid; gap: .15rem; flex: 1; align-content: start; }
.bt-ligne__corps strong { font: 800 1.25rem/1.15 var(--titre); }
.bt-ligne__billets { margin: .3rem 0 0; padding-left: 1.1rem; }
.bt-ligne__prix { display: grid; gap: .35rem; justify-items: end; align-content: start; text-align: right; white-space: nowrap; }
.bt-ligne--probleme { border-color: #E9A5A5; background: #FFF7F7; }
.bt-ligne--annulee { opacity: .7; }
.bt-statut { justify-self: start; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #2E7D32; }
.bt-ligne--annulee .bt-statut { color: var(--rouge-fonce); }
.bt-vide { color: var(--gris); font-style: italic; }
@media (max-width: 40rem) {
  .bt-ligne { flex-wrap: wrap; }
  .bt-ligne__prix { justify-items: start; text-align: left; width: 100%; grid-auto-flow: column; justify-content: start; gap: 1rem; }
}

/* Compte : onglets et historique */
.bt-onglets { display: flex; gap: .5rem; border-bottom: 2px solid var(--trait); margin: 1.5rem 0 .5rem; }
.bt-onglets button { font: 700 1rem var(--corps); background: none; border: 0; padding: .7rem 1rem; cursor: pointer; color: var(--gris); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.bt-onglets button[aria-selected="true"] { color: var(--rouge); border-bottom-color: var(--rouge); }
.bt-tableau { overflow-x: auto; }
.bt-tableau table { width: 100%; border-collapse: collapse; }
.bt-tableau th, .bt-tableau td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--trait); }
.bt-tableau th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--gris); }

/* Retouches */
.bt-carte__prix em, .bt-tarif__prix em { white-space: nowrap; }
.bt-form .formulaire__ligne { align-items: start; }
.bt-recap { margin-bottom: 1.5rem; }

/* Page « Vous êtes un cirque ? » */
.bt-atouts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.bt-atouts li { border: 2px solid var(--trait); border-radius: 12px; padding: 1.25rem; display: grid; gap: .4rem; align-content: start; }
.bt-atouts strong { font: 900 1.6rem/1.1 var(--titre); color: var(--rouge); }
.bt-atouts span { color: var(--gris); }

/* Espace cirque */
.bt-bloc-cirque { margin-bottom: 2rem; }
.bt-bloc-cirque h2 { margin-bottom: .2rem; }
.bt-seances-cirque { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.bt-seance-cirque { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; text-align: left; font: inherit; background: #fff; border: 2px solid var(--trait); border-radius: 10px; padding: .9rem 1.1rem; cursor: pointer; color: var(--texte); }
.bt-seance-cirque:hover { border-color: var(--rouge); }
.bt-seance-cirque__date { font-weight: 700; font-size: var(--t-1); }
.bt-seance-cirque__nb { text-align: right; }
.bt-seance-cirque__nb b { font: 900 1.4rem/1 var(--titre); color: var(--rouge); }
.bt-seance-cirque__fleche { text-align: right; color: var(--rouge-fonce); font-weight: 700; }
.bt-compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.bt-compteurs p { margin: 0; background: var(--sciure); border-radius: 10px; padding: .8rem 1rem; display: grid; gap: .1rem; max-width: none; }
.bt-compteurs b { font: 900 1.8rem/1 var(--titre); color: var(--nuit); }
.bt-compteurs span { font-size: .85rem; color: var(--gris); }
.bt-recherche { display: grid; gap: .3rem; font-weight: 700; max-width: 24rem; margin: 1rem 0; }
.bt-recherche input { font: inherit; padding: .6rem .8rem; border: 2px solid var(--trait); border-radius: 8px; }
.bt-liste td { vertical-align: middle; }
.bt-liste .n { color: var(--gris); width: 2rem; }
.bt-liste .code { font-family: ui-monospace, monospace; color: var(--gris); font-size: .9rem; }
.bt-liste .prix { font-weight: 700; white-space: nowrap; }
.bt-liste .case { text-align: center; width: 4.5rem; }
.bt-liste .case input { width: 1.8rem; height: 1.8rem; accent-color: var(--rouge); cursor: pointer; }
.bt-liste tr.venu td { background: #F1F8F1; }
.bt-liste tr.venu td:not(.case) { color: var(--gris); }
.ok { background: #E8F5E9; border-left: 4px solid #43A047; padding: .6rem .8rem; }
@media print {
  .bt-haut, .bt-bas, .bt-apercu, .noprint, .bt-recherche { display: none !important; }
  .bt-liste .case input { display: none; }
  .bt-liste .case::after { content: "☐"; font-size: 1.3rem; }
  .bt-liste tr.venu td { background: none; }
}

/* ---------- Mise à jour : ancres précises ---------- */
.bt-ancre { scroll-margin-top: 1.25rem; }
.bt-ancre:target { animation: bt-repere 1.6s ease-out; }
@keyframes bt-repere { 0% { color: var(--rouge); } 100% { color: inherit; } }

/* ---------- Bandeaux rouges rayés (accueil et page cirques) ---------- */
.bt-heros {
  position: relative; overflow: hidden; color: #fff;
  background:
    repeating-conic-gradient(from -90deg at 50% 118%, #D32F2F 0deg 5deg, #E8595A 5deg 10deg);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
}
.bt-heros::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: radial-gradient(circle at 18px 0, transparent 17px, #fff 18px) 0 0 / 36px 22px repeat-x; }
.bt-heros h1 { text-shadow: 0 2px 10px rgba(120, 10, 10, .35); }
.bt-heros__chapo { color: #fff; text-shadow: 0 1px 6px rgba(120, 10, 10, .35); }
.bt-surtitre--clair { color: var(--or); text-shadow: 0 1px 4px rgba(120, 10, 10, .4); }

/* ---------- Filtres des offres ---------- */
.bt-filtres { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; background: var(--sciure); border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0 .5rem; }
.bt-filtres label { display: grid; gap: .25rem; font-weight: 700; font-size: .9rem; flex: 1 1 9rem; }
.bt-filtres select { font: inherit; font-weight: 400; padding: .55rem .6rem; border: 2px solid var(--trait); border-radius: 8px; background: #fff; min-height: 44px; }
.bt-filtres button { flex: 0 0 auto; padding: .7rem .25rem; }
.bt-carte[hidden] { display: none !important; }

/* ---------- Carrousel des photos du spectacle ---------- */
.bt-carrousel { position: relative; margin: 0 0 1.75rem; border-radius: 12px; overflow: hidden; background: var(--nuit); }
.bt-carrousel__piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.bt-carrousel__piste::-webkit-scrollbar { display: none; }
.bt-carrousel__piste figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 16 / 10; }
.bt-carrousel__piste img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-carrousel__fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--nuit); font: 700 1.8rem/1 var(--corps); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.bt-carrousel__fleche--prec { left: .75rem; }
.bt-carrousel__fleche--suiv { right: .75rem; }
.bt-carrousel__points { position: absolute; left: 0; right: 0; bottom: .6rem; display: flex; justify-content: center; gap: .4rem; }
.bt-carrousel__points button { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.bt-carrousel__points button[aria-current="true"] { background: #fff; }
.bt-badge-vacances { display: inline-block; font-size: .75rem; font-weight: 700; background: #E3F2FD; color: #0D47A1; border-radius: 99px; padding: .05rem .5rem; margin-left: .4rem; vertical-align: middle; }
