/* ==========================================================================
   Billetterie publique.

   Reprend la structure de jetons de `theme.css` (couleurs, typographie,
   rayons) mais pas ses composants ni ses valeurs : le front n'a ni menu ni
   tableau, et sa direction artistique est celle du site institutionnel, pas
   celle du CRM. Tout est préfixé `cc-bt-` pour ne jamais entrer en collision
   avec le backoffice.
   ========================================================================== */
/* ------------------------------------------- 0. Charte du Centre Culturel

   Le front public reprend la direction artistique de centreculturelcassis.com :
   jaune de marque #fddf00, or des liens #e9b108, bleu secondaire #2d87b2,
   titres #111 sur fond blanc, Roboto pour toute la page.

   Les jetons sont redéfinis **sur `.cc-bt`** et non sur `:root` : `theme.css`
   est chargé sur la même page pour ses composants transverses (messages flash,
   `cc-select`), et le backoffice doit garder sa palette d'origine. Redéfinir
   ici suffit à repeindre les 800 lignes qui suivent, toutes écrites en `var()`.
   ----------------------------------------------------------------------- */
.cc-bt {
    --jaune: #fddf00;
    --or: #e9b108;
    --azur: #2d87b2;

    --encre-900: #111;
    --encre-800: #1d1d1d;
    --encre-700: #2f2f2f;
    --encre-600: #3d3d3d;
    --encre-400: #6b6b6b;

    --calanque-700: #8a6a00;
    --calanque-600: var(--or);
    --calanque-500: var(--jaune);
    --calanque-200: #ffeea3;
    --calanque-100: #fffbe3;

    --calcaire-50: #f5f5f5;
    --calcaire-100: #ededed;
    --trait: #e6e6e6;
    --trait-fort: #d2d2d2;

    --texte: #333;
    --texte-2: #555;
    --texte-3: #7a7a7a;

    --police: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --police-titre: var(--police);

    --ombre-1: 0 2px 8px rgba(0, 0, 0, .08);
    --ombre-2: 0 4px 10px rgba(0, 0, 0, .06), 0 14px 30px rgba(0, 0, 0, .09);

    --r-1: 6px;
    --r-2: 8px;
    --r-3: 10px;

    background: #fff;
    font-family: var(--police);
    font-weight: 300;
    color: var(--texte);
}

/* Le site institutionnel n'a pas de titres en très gras : ils se distinguent
   par la taille et le crénage, pas par la graisse. */
.cc-bt .cc-bt-titre,
.cc-bt .cc-bt-carte__titre,
.cc-bt .cc-bt-prix,
.cc-bt .cc-bt-panneau__titre {
    font-weight: 500;
}

.cc-bt-largeur {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ------------------------------------------------------- 1. Coquille

   Barre blanche, logo à gauche, menu du site à droite, filet jaune de marque
   en bas : la même lecture que centreculturelcassis.com. */
.cc-bt-entete {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 3px solid var(--jaune);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.cc-bt-entete__contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 78px;
    padding-block: .5rem;
}

.cc-bt-marque {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.cc-bt-marque__logo {
    width: auto;
    height: 54px;
}

.cc-bt-marque__texte {
    display: block;
}

.cc-bt-marque__nom {
    display: block;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--encre-900);
}

.cc-bt-marque__suite {
    display: block;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--or);
}

/* Menu du site institutionnel. Pas de sous-menus déroulants : la billetterie
   ne rejoue pas la navigation complète, elle y ramène. */
.cc-bt-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: auto;
}

.cc-bt-nav__lien {
    font-size: .8125rem;
    font-weight: 400;
    color: var(--encre-900);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.cc-bt-nav__lien:hover {
    color: var(--encre-900);
    border-bottom-color: var(--jaune);
}

/* Le retour au site reprend le bouton du thème : fond transparent, filet
   jaune, texte encre. */
.cc-bt-nav__retour {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border: 1.5px solid var(--jaune);
    border-radius: var(--r-max);
    font-size: .75rem;
    font-weight: 500;
    color: var(--encre-900);
    text-decoration: none;
    white-space: nowrap;
}

.cc-bt-nav__retour:hover {
    background: var(--jaune);
    color: var(--encre-900);
}

/* Sur bureau, le retour au CRM reste après le menu, comme avant l'ajout du
   burger (il le précède désormais dans le HTML, pour le placement mobile). */
.cc-bt-lien-discret {
    order: 3;
    font-size: .75rem;
    font-weight: 500;
    color: var(--texte-2);
    text-decoration: none;
    white-space: nowrap;
}

.cc-bt-lien-discret:hover {
    color: var(--encre-900);
}

.cc-bt-corps {
    min-height: 60vh;
    padding: 2.5rem 0 4rem;
}

/* ------------------------------------------------------ 1b. Pied de page

   Aplat jaune et texte encre, comme le `uk-section-primary` qui porte le pied
   du site institutionnel. Sur ce fond, plus rien n'est gris : les nuances de
   `--texte-2` / `--texte-3` deviendraient illisibles, la hiérarchie se fait
   donc à l'opacité et à la graisse. */
.cc-bt-pied {
    padding: 2.75rem 0 1.5rem;
    background: var(--jaune);
    color: var(--encre-900);
}

.cc-bt-pied__contenu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    font-size: .8125rem;
    color: var(--encre-900);
}

/* Le logo porte un disque jaune, invisible sur l'aplat de marque : il lui faut
   une plaque blanche pour rester lisible au pied de page. */
.cc-bt-pied__logo {
    display: block;
    width: auto;
    height: 62px;
    margin-bottom: .95rem;
    padding: .6rem .8rem;
    background: #fff;
    border-radius: var(--r-2);
    box-sizing: content-box;
}

.cc-bt-pied__titre {
    margin: 0 0 .75rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--encre-900);
}

.cc-bt-pied__adresse {
    margin: 0 0 .75rem;
    line-height: 1.7;
}

.cc-bt-pied__adresse a,
.cc-bt-pied__liens a,
.cc-bt-pied__legal a {
    color: var(--encre-900);
    text-decoration: none;
}

.cc-bt-pied__adresse a:hover,
.cc-bt-pied__liens a:hover,
.cc-bt-pied__legal a:hover {
    color: var(--encre-900);
    text-decoration: underline;
}

.cc-bt-pied__reseaux {
    display: flex;
    gap: .6rem;
    margin: 0;
}

.cc-bt-pied__reseaux a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--encre-900);
    border-radius: var(--r-max);
    color: var(--encre-900);
    font-size: 1rem;
    text-decoration: none;
}

.cc-bt-pied__reseaux a:hover {
    background: var(--encre-900);
    color: var(--jaune);
}

.cc-bt-pied__liens {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 2;
}

.cc-bt-pied__mention {
    max-width: 42ch;
    margin: 0 0 .6rem;
    font-size: .75rem;
    color: var(--encre-900);
    opacity: .78;
}

.cc-bt-pied__bas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, .18);
    font-size: .75rem;
    color: var(--encre-900);
}

.cc-bt-pied__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

/* Bouton du menu mobile : rond à filet jaune, comme « Retour au site ». */
.cc-bt-burger {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--jaune);
    border-radius: var(--r-max);
    background: transparent;
    color: var(--encre-900);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.cc-bt-burger:hover,
.cc-bt-entete.est-ouvert .cc-bt-burger {
    background: var(--jaune);
}

.cc-bt-burger:focus-visible {
    outline: 2px solid var(--encre-900);
    outline-offset: 2px;
}

.cc-bt-burger__fermer,
.cc-bt-entete.est-ouvert .cc-bt-burger__ouvrir {
    display: none;
}

.cc-bt-entete.est-ouvert .cc-bt-burger__fermer {
    display: inline;
}

/* Sous 992 px, repli sans JS : le menu passe en bande défilante. */
@media (max-width: 991px) {
    .cc-bt-entete__contenu {
        flex-wrap: wrap;
        gap: .5rem 1rem;
    }

    .cc-bt-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        gap: 1rem;
        padding-bottom: .5rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .cc-bt-nav::-webkit-scrollbar {
        display: none;
    }

    .cc-bt-marque__logo {
        height: 44px;
    }

    /* Menu burger, dès que `billetterie.js` a pris la main (`est-pilote`) :
       le menu devient un panneau déroulé sous l'en-tête. */
    .cc-bt-entete.est-pilote .cc-bt-entete__contenu {
        flex-wrap: nowrap;
        min-height: 64px;
    }

    .cc-bt-entete.est-pilote .cc-bt-burger {
        display: grid;
        flex-shrink: 0;
        order: 2;
    }

    .cc-bt-entete.est-pilote .cc-bt-lien-discret {
        order: 1;
        margin-left: auto;
    }

    /* Sans lien de retour au CRM, c'est le bouton qui se cale à droite. */
    .cc-bt-entete.est-pilote .cc-bt-marque + .cc-bt-burger {
        margin-left: auto;
    }

    .cc-bt-entete.est-pilote .cc-bt-nav {
        position: absolute;
        top: calc(100% + 3px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: auto;
        max-height: calc(100vh - 70px);
        padding: .25rem 1.25rem 1.25rem;
        overflow-y: auto;
        background: #fff;
        border-bottom: 3px solid var(--jaune);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    }

    .cc-bt-entete.est-pilote:not(.est-ouvert) .cc-bt-nav {
        display: none;
    }

    .cc-bt-entete.est-pilote .cc-bt-nav__lien {
        padding: .9rem 0;
        border-bottom: 1px solid var(--trait);
        font-size: 1rem;
        white-space: normal;
    }

    .cc-bt-entete.est-pilote .cc-bt-nav__lien:hover {
        border-bottom-color: var(--trait);
        color: var(--or);
    }

    .cc-bt-entete.est-pilote .cc-bt-nav__retour {
        justify-content: center;
        margin-top: 1rem;
        padding: .7rem 1rem;
        font-size: .875rem;
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: no-preference) {
    .cc-bt-entete.est-pilote.est-ouvert .cc-bt-nav {
        animation: cc-bt-deroule .18s ease-out;
    }
}

@keyframes cc-bt-deroule {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ----------------------------------------------------- 2. Titres */
.cc-bt-titre {
    margin: 0 0 .35rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--encre-900);
}

.cc-bt-accroche {
    margin: 0 0 2rem;
    font-size: 1rem;
    color: var(--texte-2);
}

.cc-bt-section-titre {
    margin: 2.5rem 0 1rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--texte-3);
}

/* --------------------------------------------------- 3. Affiche */
.cc-bt-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.cc-bt-carte {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    box-shadow: var(--ombre-1);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.cc-bt-carte:hover {
    transform: translateY(-3px);
    box-shadow: var(--ombre-2);
    color: inherit;
}

.cc-bt-carte__visuel {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(150deg, #fff6c2, #f5f5f5);
    overflow: hidden;
}

.cc-bt-carte__visuel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Décor : jamais cliquable, et toujours contenu dans son cadre — sans
   `position: relative` sur le parent, l'image se cale sur la page entière et
   passe devant le fil d'Ariane. */
.cc-bt-carte__vagues {
    position: absolute;
    inset: auto 0 -1px 0;
    width: 100%;
    opacity: .18;
    pointer-events: none;
    user-select: none;
}

.cc-bt-carte__date {
    position: absolute;
    top: .7rem;
    left: .7rem;
    display: grid;
    place-items: center;
    padding: .3rem .55rem;
    border-radius: var(--r-1);
    background: rgba(255, 255, 255, .94);
    line-height: 1.05;
    text-align: center;
}

.cc-bt-carte__date strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--encre-900);
}

.cc-bt-carte__date span {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--texte-2);
}

.cc-bt-carte__corps {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: .35rem;
    padding: 1rem 1.1rem 1.15rem;
}

.cc-bt-carte__titre {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--encre-900);
}

.cc-bt-carte__meta {
    font-size: .8125rem;
    color: var(--texte-2);
}

.cc-bt-carte__pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .85rem;
}

.cc-bt-prix {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--encre-900);
}

.cc-bt-prix small {
    font-size: .6875rem;
    font-weight: 600;
    color: var(--texte-3);
}

/* --------------------------------------------- 4. Pastilles d'état */
.cc-bt-pastille {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: var(--r-max);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.cc-bt-pastille--dispo {
    background: var(--sauge-100);
    color: var(--sauge-700);
}

.cc-bt-pastille--tension {
    background: #fdf3e0;
    color: #8a5a12;
}

.cc-bt-pastille--complet {
    background: var(--falaise-100);
    color: var(--falaise-700);
}

/* ------------------------------------------------ 5. Page billet */
.cc-bt-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.cc-bt-affiche {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-3);
    border: 1px solid var(--trait);
    background: linear-gradient(150deg, #fff6c2, #f5f5f5);
    aspect-ratio: 16 / 9;
}

.cc-bt-affiche img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-bt-fil {
    margin-bottom: 1rem;
    font-size: .8125rem;
    color: var(--texte-3);
}

.cc-bt-description {
    margin-top: 1.25rem;
    font-size: .95rem;
    line-height: 1.65;
    color: var(--texte);
    white-space: pre-line;
}

.cc-bt-infos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--trait);
}

.cc-bt-info__intitule {
    display: block;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--texte-3);
}

.cc-bt-info__valeur {
    display: block;
    margin-top: .15rem;
    font-weight: 700;
    color: var(--encre-800);
}

/* Panneau d'achat, qui suit le défilement sur grand écran. */
.cc-bt-achat {
    position: sticky;
    top: 92px;
    padding: 1.35rem;
    background: #fff;
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    box-shadow: var(--ombre-2);
}

.cc-bt-achat__titre {
    margin: 0 0 1rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--texte-3);
}

.cc-bt-tarif {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--trait);
}

.cc-bt-tarif:last-of-type {
    border-bottom: 0;
}

.cc-bt-tarif__intitule {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-bt-tarif__libelle {
    display: block;
    font-weight: 700;
    color: var(--encre-800);
}

.cc-bt-tarif__montant {
    display: block;
    font-family: var(--police-data);
    font-size: .8125rem;
    color: var(--texte-2);
}

.cc-bt-quantite {
    flex: 0 0 auto;
    width: 4.75rem;
    padding: .4rem .5rem;
    border: 1px solid var(--trait-fort);
    border-radius: var(--r-1);
    background: #fff;
    font-family: var(--police-data);
    font-weight: 600;
    text-align: center;
    color: var(--encre-900);
}

.cc-bt-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1rem 0 .25rem;
    padding-top: 1rem;
    border-top: 2px solid var(--encre-900);
}

.cc-bt-total__valeur {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--encre-900);
}

/* Liste déroulante du thème (`cc-select`) : sur le front, pas de puce ronde
   devant les options d'un choix unique — l'option retenue se lit à sa
   couleur. Le choix multiple garde sa case à cocher. */
.cc-bt .cc-select:not(.cc-select--multiple) .cc-select__option::before {
    content: none;
}

/* Barre « Réserver » collée en bas de l'écran, sur mobile seulement. */
.cc-bt-barre-reserver {
    display: none;
}

.cc-bt-mention {
    margin: .6rem 0 0;
    font-size: .6875rem;
    line-height: 1.5;
    color: var(--texte-3);
}

/* ------------------------------------------------- 6. Boutons */
/* Le jaune de marque en aplat, texte encre : c'est le contraste le plus fort
   de la charte (≈ 15:1), et le seul qui tienne sur un bouton d'achat. */
.cc-bt-bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    padding: .8rem 1.25rem;
    border: 1.5px solid var(--jaune);
    border-radius: var(--r-max);
    background: var(--jaune);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--encre-900);
    text-decoration: none;
    cursor: pointer;
}

.cc-bt-bouton:hover:not(:disabled) {
    background: transparent;
    color: var(--encre-900);
}

.cc-bt-bouton:disabled {
    background: var(--calcaire-100);
    border-color: var(--trait-fort);
    color: var(--texte-3);
    cursor: not-allowed;
}

.cc-bt-bouton--fantome {
    width: auto;
    background: none;
    border: 1.5px solid rgba(0, 0, 0, .1);
    color: var(--encre-900);
}

.cc-bt-bouton--fantome:hover {
    background: none;
    border-color: var(--jaune);
    color: var(--encre-900);
}

/* ------------------------------------- 7. Formulaire de réservation */
.cc-bt-panneau {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--trait);
    border-radius: var(--r-3);
    box-shadow: var(--ombre-1);
}

.cc-bt-panneau + .cc-bt-panneau {
    margin-top: 1.25rem;
}

.cc-bt-panneau__titre {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--encre-900);
}

.cc-bt-panneau__aide {
    margin: 0 0 1.25rem;
    font-size: .8125rem;
    color: var(--texte-2);
}

.cc-bt-place {
    position: relative;
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--trait);
}

/* Bouton de retrait, en haut à droite de la place : le rang et les champs
   gardent toute leur largeur. Les champs de la première ligne sont décalés
   pour ne pas passer dessous. */
.cc-bt-place__retirer {
    position: absolute;
    top: 1rem;
    right: 0;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--trait-fort);
    border-radius: 50%;
    background: #fff;
    color: var(--texte-2);
    font-size: .95rem;
    cursor: pointer;
}

.cc-bt-place__retirer:hover {
    border-color: #c0392b;
    background: #fdecea;
    color: #c0392b;
}

.cc-bt-place__retirer:focus-visible {
    outline: 2px solid var(--encre-900);
    outline-offset: 2px;
}

.cc-bt-place:has(.cc-bt-place__retirer:not([hidden])) > .row {
    padding-right: 2.75rem;
}

.cc-bt-place__rang {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--encre-800);
    font-size: .8125rem;
    font-weight: 800;
    color: #fff;
}

.cc-bt-recapitulatif {
    position: sticky;
    top: 92px;
}

.cc-bt-ligne-recap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
    font-size: .875rem;
    border-bottom: 1px solid var(--trait);
}

.cc-bt-ligne-recap:last-of-type {
    border-bottom: 0;
}

/* ------------------------------------------------- 8. Paiement */
.cc-bt-paiement {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

#paiement-element {
    margin-bottom: 1.25rem;
}

.cc-bt-erreur-paiement {
    display: none;
    margin-top: .85rem;
    padding: .7rem .85rem;
    border: 1px solid var(--falaise-200);
    border-left-width: 3px;
    border-radius: var(--r-1);
    background: var(--falaise-100);
    font-size: .8125rem;
    color: var(--falaise-700);
}

.cc-bt-erreur-paiement.est-visible {
    display: block;
}

.cc-bt-securite {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    font-size: .75rem;
    color: var(--texte-3);
}

.cc-bt-securite i {
    font-size: 1rem;
    color: var(--sauge-600);
}

.cc-bt-compte-a-rebours {
    font-family: var(--police-data);
    font-weight: 600;
    color: var(--falaise-700);
}

/* --------------------------------------------- 9. Confirmation */
.cc-bt-succes {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--sauge-100);
    font-size: 1.9rem;
    color: var(--sauge-700);
}

.cc-bt-billet-ligne {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--trait);
}

.cc-bt-billet-ligne:last-child {
    border-bottom: 0;
}

.cc-bt-billet-ligne__identite {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-bt-vide {
    padding: 3.5rem 1rem;
    text-align: center;
    color: var(--texte-2);
}

.cc-bt-vide i {
    font-size: 2rem;
    color: var(--texte-3);
}

/* ------------------------------------------------ 10. Étroit */
@media (max-width: 900px) {
    .cc-bt-detail,
    .cc-bt-paiement {
        grid-template-columns: minmax(0, 1fr);
    }

    .cc-bt-achat,
    .cc-bt-recapitulatif {
        position: static;
    }

    /* Le lien « Réserver » amène le panneau sous l'en-tête collant, pas
       dessous. */
    .cc-bt-achat {
        scroll-margin-top: 80px;
    }

    .cc-bt-titre {
        font-size: 1.6rem;
    }

    .cc-bt-barre-reserver {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 3px solid var(--jaune);
        box-shadow: 0 -6px 18px rgba(0, 0, 0, .1);
        transition: transform .22s ease, visibility .22s;
    }

    .cc-bt-barre-reserver[hidden] {
        display: none;
    }

    .cc-bt-barre-reserver.est-masquee {
        visibility: hidden;
        transform: translateY(110%);
    }

    .cc-bt-barre-reserver__prix {
        flex: 0 0 auto;
        font-size: 1.125rem;
        font-weight: 500;
        line-height: 1.15;
        color: var(--encre-900);
    }

    .cc-bt-barre-reserver__des {
        display: block;
        font-size: .625rem;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: var(--texte-3);
    }

    .cc-bt-barre-reserver__bouton {
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .cc-bt-barre-reserver {
        transition: none;
    }
}

/* ========================================================= 11. À la une */
.cc-bt-une {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--r-3);
    overflow: hidden;
    background: var(--encre-900);
}

.cc-bt-une__piste {
    display: flex;
    transition: transform .5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .cc-bt-une__piste {
        transition: none;
    }
}

.cc-bt-une__diapo {
    position: relative;
    flex: 0 0 100%;
    display: block;
    aspect-ratio: 21 / 8;
    min-height: 220px;
    text-decoration: none;
    overflow: hidden;
}

.cc-bt-une__image,
.cc-bt-une__vagues {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cc-bt-une__vagues {
    inset: auto 0 0 0;
    height: auto;
    opacity: .2;
}

/* Voile sombre : le titre reste lisible quelle que soit l'affiche. */
.cc-bt-une__voile {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 22, 31, .92) 0%, rgba(8, 22, 31, .55) 55%, rgba(8, 22, 31, .2) 100%);
    pointer-events: none;
}

.cc-bt-une__texte {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 34rem;
    padding: 1.75rem 2rem;
}

.cc-bt-une__etiquette {
    display: inline-block;
    margin-bottom: .5rem;
    padding: .15rem .5rem;
    border-radius: var(--r-max);
    background: var(--jaune);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--encre-900);
}

.cc-bt-une__titre {
    display: block;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
}

.cc-bt-une__meta {
    display: block;
    margin-top: .35rem;
    font-size: .875rem;
    color: var(--calanque-200);
}

.cc-bt-une__fleche {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--encre-900);
    font-size: 1rem;
}

.cc-bt-une__fleche:hover {
    background: #fff;
}

.cc-bt-une__fleche--avant {
    left: .75rem;
}

.cc-bt-une__fleche--apres {
    right: .75rem;
}

.cc-bt-une__puces {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: .35rem;
}

.cc-bt-une__puce {
    width: .5rem;
    height: .5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
}

.cc-bt-une__puce.est-active {
    width: 1.35rem;
    border-radius: var(--r-max);
    background: #fff;
}

/* ================================================ 12. Outils de l'affiche */
.cc-bt-outils {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
    padding: .85rem;
    background: var(--calcaire-50);
    border: 1px solid var(--trait);
    border-radius: var(--r-2);
}

.cc-bt-chercher {
    position: relative;
    flex: 1 1 16rem;
}

.cc-bt-chercher i {
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texte-3);
    pointer-events: none;
}

.cc-bt-chercher input {
    width: 100%;
    height: 40px;
    padding: 0 .75rem 0 2.1rem;
    border: 1px solid var(--trait-fort);
    border-radius: var(--r-1);
    background: #fff;
    font-size: .875rem;
    color: var(--texte);
}

.cc-bt-chercher input:focus {
    outline: none;
    border-color: var(--calanque-500);
    box-shadow: 0 0 0 3px var(--calanque-100);
}

.cc-bt-tri {
    min-width: 12rem;
    height: 40px;
    padding: 0 .6rem;
    border: 1px solid var(--trait-fort);
    border-radius: var(--r-1);
    background: #fff;
    font-size: .8125rem;
    color: var(--texte);
}

.cc-bt-outils .cc-bt-bouton {
    width: auto;
    padding: .55rem 1rem;
    font-size: .8125rem;
}

.cc-bt-compte {
    margin: 0 0 1rem;
    font-size: .8125rem;
    color: var(--texte-3);
}

@media (max-width: 700px) {
    .cc-bt-une__titre {
        font-size: 1.25rem;
    }

    .cc-bt-une__texte {
        padding: 1.1rem 1.15rem;
    }
}

/* Saisie sur écran tactile : mêmes 16px minimum que dans le CRM, sans quoi
   iOS Safari zoome à chaque clic dans un champ. La règle générale vit dans
   `custom.css` ; ces deux sélecteurs sont repris ici parce que cette feuille
   est chargée après elle et redéfinit leur taille. */
@media (hover: none) and (pointer: coarse) {
    .cc-bt-tri,
    .cc-bt-chercher input {
        font-size: 16px;
    }
}

/* Vidéo de présentation, reprise de la fiche événement : même rapport 16/9 que
   l'affiche, et bords arrondis du reste de la page. */
.cc-bt-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--r-3);
    background: #000;
    box-shadow: var(--ombre-1);
}

.cc-bt-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
