/* ==========================================================================
   Booking – page unique (artistes + formulaire)
   Reprend les codes du site : #252525 / #1b1b1b / bordures #4c4d4c,
   Montserrat, angles droits, photos N&B qui passent en couleur au survol.
   ========================================================================== */

:root {
    --bk-bg: #252525;
    --bk-surface: #1b1b1b;
    --bk-deep: rgba(13, 14, 13, 0.97);
    --bk-line: #4c4d4c;
    --bk-text: #ffffff;
    --bk-muted: #a7a8a7;
    --bk-ease: cubic-bezier(.2, .7, .2, 1);
}

.bk-main {
    width: 100%;
    min-width: 0; /* empêche le débordement horizontal (body est en flex colonne) */
    max-width: 1220px;
    margin: 0 auto;
    padding: 110px 16px 90px;
    box-sizing: border-box;
    color: var(--bk-text);
}

.content-wrapper { min-width: 0; max-width: 100%; }

.bk-main *,
.bk-main *::before,
.bk-main *::after { box-sizing: border-box; }

.bk-main section { scroll-margin-top: 80px; }

/* ---------- Boutons (style du site + variante principale) ---------- */
.bk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font: inherit;
    font-size: 14px;
    letter-spacing: .02em;
    color: var(--bk-text);
    background: var(--bk-surface);
    border: 1px solid var(--bk-line);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--bk-ease);
}
.bk-btn:hover { background: #343634; }
.bk-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bk-btn-primary {
    background: #fff;
    color: #0d0e0d;
    border-color: #fff;
    font-weight: 700;
}
.bk-btn-primary:hover { background: #d9d9d9; border-color: #d9d9d9; }
.bk-btn .bk-arrow { transition: transform .25s var(--bk-ease); }
.bk-btn:hover .bk-arrow { transform: translateX(4px); }
.bk-btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- En-tête de page ---------- */
.bk-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--bk-line);
}
.bk-kicker {
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--bk-muted);
    margin-bottom: 10px;
}
.bk-hero h2 {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.01em;
}
.bk-hero p.bk-lead {
    margin-top: 16px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.6;
    color: #d6d6d6;
}
.bk-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Titres de section ---------- */
.bk-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 56px 0 20px;
}
.bk-section-head h3 {
    font-size: 26px;
    font-weight: 700;
}
.bk-section-head span {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bk-muted);
}

/* ---------- Roster (cartes artistes) ---------- */
.bk-roster {
    display: grid;
    grid-template-columns: repeat(var(--bk-cols, 3), minmax(0, 1fr)); /* --bk-cols : nombre d'artistes (js/artists.js) */
    gap: 12px;
}
.bk-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
    color: var(--bk-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.bk-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transform: scale(1.02);
    transition: filter .6s ease, transform .9s var(--bk-ease);
}
.bk-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%);
    pointer-events: none;
}
.bk-card-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    padding: 18px 18px 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.bk-card-num {
    display: block;
    font-size: 11px;
    letter-spacing: .25em;
    color: var(--bk-muted);
    margin-bottom: 6px;
}
.bk-card-name {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}
.bk-card-genre {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d6d6d6;
}
.bk-card-cta {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.6);
    font-size: 20px;
    line-height: 1;
    transition: background-color .3s, color .3s, transform .4s var(--bk-ease);
}
.bk-card:hover img,
.bk-card:focus-visible img,
.bk-card.is-active img { filter: grayscale(0%); transform: scale(1.07); }
.bk-card-cta span { display: block; transition: transform .4s var(--bk-ease); }
.bk-card:hover .bk-card-cta,
.bk-card:focus-visible .bk-card-cta { background: #fff; color: #0d0e0d; }
.bk-card:hover .bk-card-cta span,
.bk-card:focus-visible .bk-card-cta span { transform: rotate(90deg); }
.bk-card.is-active { border-top: 4px solid #fff; }
.bk-card.is-active .bk-card-cta { background: #fff; color: #0d0e0d; }
.bk-card.is-active .bk-card-cta span { transform: rotate(45deg); }
.bk-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Fiche artiste (dans la page) ---------- */
.bk-profile-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .6s var(--bk-ease), margin-top .6s var(--bk-ease);
    margin-top: 0;
}
.bk-profile-wrap.is-open { grid-template-rows: 1fr; margin-top: 12px; }
.bk-profile-wrap > .bk-profile-inner { overflow: hidden; min-height: 0; }

.bk-profile-panel {
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
}
/* La fiche reçoit le focus à son ouverture (lecteurs d'écran) : pas de cadre de focus du navigateur */
.bk-profile-panel:focus { outline: none; }
.bk-profile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 10px 18px;
    border-bottom: 1px solid var(--bk-line);
    background: var(--bk-deep);
}
.bk-profile-count {
    font-size: 12px;
    letter-spacing: .25em;
    color: var(--bk-muted);
}
.bk-profile-count strong { color: #fff; font-weight: 700; }
.bk-profile-nav { display: flex; gap: 6px; }
.bk-icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    font: inherit;
    font-size: 18px;
    color: #fff;
    background: transparent;
    border: 1px solid var(--bk-line);
    cursor: pointer;
    transition: background-color .25s;
}
.bk-icon-btn:hover { background: #343634; }
.bk-icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bk-profile {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.bk-profile[hidden] { display: none; }
.bk-profile.is-entering { animation: bkProfileIn .55s var(--bk-ease); }
.bk-profile.is-entering.from-left { animation-name: bkProfileInLeft; }

.bk-profile-media {
    position: relative;
    min-height: 340px;
    border-right: 1px solid var(--bk-line);
    overflow: hidden;
}
.bk-profile-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bk-profile-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
}
.bk-profile-body h4 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 700;
}
.bk-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px !important;
}
.bk-tags li {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px solid var(--bk-line);
    color: #d6d6d6;
}
.bk-bio {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #e2e2e2;
}
.bk-bio p + p { margin-top: 10px; }
.bk-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}
.bk-profile-player {
    grid-column: 1 / -1;
    border-top: 1px solid var(--bk-line);
    padding: 18px;
    background: var(--bk-bg);
}
.bk-player-label {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bk-muted);
    margin-bottom: 12px !important;
}
/* Le lecteur Spotify a ses propres coins arrondis (12px) : pas de cadre carré autour,
   sinon on voit à la fois l'angle et l'arrondi dans les coins. */
.bk-player-frame {
    position: relative;
    height: 352px;
    border-radius: 12px;
    overflow: hidden;
}
.bk-player-frame::before {
    content: 'Loading player…';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--bk-muted);
    background: var(--bk-surface);
    border-radius: 12px;
}
.bk-player-frame iframe {
    position: relative;
    display: block;
    width: 100%;
    height: 352px;
    border: 0;
}

@keyframes bkProfileIn {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}
@keyframes bkProfileInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Formulaire ---------- */
.bk-form-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #d6d6d6;
    margin-bottom: 24px !important;
    max-width: 640px;
}
.bk-form {
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
}
.bk-step {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 26px 24px;
    border: 0;
    margin: 0;
    border-bottom: 1px solid var(--bk-line);
    min-width: 0;
}
.bk-step legend {
    float: left;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
}
.bk-step legend span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .25em;
    color: var(--bk-muted);
    margin-bottom: 6px;
}
.bk-step-hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--bk-muted);
    margin-top: 8px !important;
    font-weight: 400;
}
.bk-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    min-width: 0;
}
.bk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk-field-full { grid-column: 1 / -1; }
.bk-field label {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #d6d6d6;
}
.bk-field label small { text-transform: none; letter-spacing: 0; color: var(--bk-muted); }
.bk-input-wrap { position: relative; }
.bk-form input[type="text"],
.bk-form input[type="email"],
.bk-form input[type="url"],
.bk-form input[type="date"],
.bk-form textarea {
    width: 100%;
    padding: 12px 2px;
    font: inherit;
    font-size: 15px;
    color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--bk-line);
    border-radius: 0;
    outline: none;
    transition: border-color .25s;
    color-scheme: dark;
}
.bk-form textarea {
    padding: 12px;
    border: 1px solid var(--bk-line);
    resize: vertical;
    min-height: 130px;
}
.bk-form input::placeholder,
.bk-form textarea::placeholder { color: #6f706f; }
.bk-form input:focus,
.bk-form textarea:focus { border-color: #fff; }
.bk-form input:user-invalid,
.bk-form textarea:user-invalid { border-color: #e0605f; }
.bk-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: .85;
    transform: scale(1.3);
}
.bk-suffix {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bk-muted);
    font-size: 15px;
    pointer-events: none;
}
.bk-input-wrap input { padding-right: 24px !important; }
.bk-counter {
    align-self: flex-end;
    font-size: 11px;
    color: var(--bk-muted);
}

/* Choix de l'artiste */
.bk-choices {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.bk-choice { position: relative; display: block; cursor: pointer; }
.bk-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.bk-choice-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--bk-line);
    background: var(--bk-bg);
    transition: border-color .25s, background-color .25s;
}
.bk-choice img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter .35s;
    flex-shrink: 0;
}
.bk-choice-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.bk-choice-genre { display: block; font-size: 11px; color: var(--bk-muted); font-weight: 400; margin-top: 2px; }
.bk-choice-check {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border: 1px solid var(--bk-line);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: transparent;
    flex-shrink: 0;
    transition: background-color .25s, color .25s, border-color .25s;
}
.bk-choice:hover .bk-choice-box { border-color: #8a8b8a; }
.bk-choice:hover img { filter: grayscale(0%); }
.bk-choice input:focus-visible + .bk-choice-box { outline: 2px solid #fff; outline-offset: 2px; }
.bk-choice input:checked + .bk-choice-box { border-color: #fff; background: #2f302f; }
.bk-choice input:checked + .bk-choice-box img { filter: grayscale(0%); }
.bk-choice input:checked + .bk-choice-box .bk-choice-check { background: #fff; border-color: #fff; color: #0d0e0d; }
.bk-choices.has-error .bk-choice-box { border-color: #e0605f; }

/* Récapitulatif du plateau (plusieurs artistes possibles) */
.bk-lineup {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -4px;
}
.bk-lineup-text { font-size: 13px; color: var(--bk-muted); }
.bk-lineup-text strong { color: #fff; }
.bk-lineup-all {
    padding: 7px 14px;
    font: inherit;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #d6d6d6;
    background: transparent;
    border: 1px solid var(--bk-line);
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}
.bk-lineup-all:hover { border-color: #fff; color: #fff; }
.bk-lineup-all:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bk-error-msg { grid-column: 1 / -1; font-size: 12px; color: #ff8a89; margin-top: -4px !important; }
.bk-error-msg[hidden] { display: none; }

.bk-form-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
}
.bk-form-note { font-size: 12px; color: var(--bk-muted); max-width: 520px; line-height: 1.5; }
.bk-result { font-size: 14px; color: #ff8a89; }
.bk-result:empty { display: none; }

.bk-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.bk-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(13,14,13,.25);
    border-top-color: #0d0e0d;
    border-radius: 50%;
    animation: bkSpin .8s linear infinite;
}
@keyframes bkSpin { to { transform: rotate(360deg); } }

/* Confirmation */
.bk-success {
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
    padding: 48px 24px;
    text-align: center;
}
.bk-success[hidden] { display: none; }
.bk-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border: 2px solid #fff;
    display: grid;
    place-items: center;
}
.bk-success-icon svg { width: 30px; height: 30px; }
.bk-success-icon path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: bkDraw .6s .15s var(--bk-ease) forwards;
}
@keyframes bkDraw { to { stroke-dashoffset: 0; } }
.bk-success h4 { font-size: 24px; font-weight: 700; }
.bk-success p { margin: 12px auto 24px !important; max-width: 520px; font-size: 14px; line-height: 1.6; color: #d6d6d6; }

/* ---------- Apparition au défilement ---------- */
/* Masqué seulement si le JavaScript de la page est actif (classe bk-js) :
   sans script, tout le contenu reste visible. */
.bk-js .bk-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--bk-ease), transform .7s var(--bk-ease); }
.bk-js .bk-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .bk-reveal { opacity: 1; transform: none; transition: none; }
    .bk-profile.is-entering, .bk-success-icon path { animation: none; stroke-dashoffset: 0; }
    .bk-card img, .bk-profile-wrap { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .bk-hero { grid-template-columns: 1fr; }
    .bk-profile { grid-template-columns: 1fr; }
    .bk-profile-media { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--bk-line); }
    .bk-step { grid-template-columns: 1fr; gap: 16px; }
    .bk-step legend { float: left; width: 100%; }
    .bk-choices { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .bk-main { padding-top: 96px; }
    .bk-roster {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .bk-roster::-webkit-scrollbar { display: none; }
    .bk-card { scroll-snap-align: start; aspect-ratio: 4 / 5; }
    .bk-fields { grid-template-columns: 1fr; }
    .bk-profile-body { padding: 22px 18px; }
    .bk-step { padding: 22px 16px; }
    .bk-form-footer { padding: 18px 16px; }
    .bk-form-footer .bk-btn { width: 100%; justify-content: center; }
    .bk-section-head { margin-top: 44px; }
    .bk-section-head span { display: none; }
    .bk-hero-actions .bk-btn { flex: 1 1 auto; justify-content: center; }
}
