/* ===================================================================
   GO24 — Prise de rendez-vous en ligne
   Bouton « Prendre rendez-vous » à côté du numéro + formulaire en
   4 étapes ouvert dans le bandeau. Palette du site : noir, orange
   #F85A2D, cartes #0e0e0e / #1a1a1a, bordures blanches translucides.
   =================================================================== */

/* ---- Bandeau : le numéro et « Prendre rendez-vous » côte à côte ---- */
.hero-call-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.hero-call-wrap .hero-call,
.hero-call-wrap .hero-rdv { min-width: 260px; justify-content: center; box-sizing: border-box; margin: 0; }

.hero-rdv {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--orange, #F85A2D); color: #000;
    font-family: 'Satoshi', Arial, sans-serif; font-weight: 700;
    font-size: 17.6px; line-height: 17.6px;
    padding: 18px 28px; border-radius: 14px;
    border: 1px solid var(--orange, #F85A2D);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .3s, background .3s, border-color .3s;
}
.hero-rdv:hover { transform: translateY(-2px); background: #ff7a52; border-color: #ff7a52; color: #000; }
.hero-rdv-ico { width: 22px; height: 22px; flex: 0 0 auto; }

/* Conteneur du formulaire (toute la largeur de la rangée, fermé par défaut) */
/* flex-basis 100 % sans max-width : le conteneur occupe toujours sa propre
   rangée sous les boutons ; c'est la carte (.bk-card) qui se limite à 760 px. */
.booking-host { display: none; flex: 1 1 100%; width: 100%; margin: 10px 0 0; min-width: 0; }
.booking-host.open { display: block; }

@media (max-width: 767px) {
    .hero-call-wrap { flex-direction: column; gap: 10px; }
    .hero-call-wrap .hero-call,
    .hero-call-wrap .hero-rdv { width: 100%; max-width: 280px; min-width: 0; }
    .hero-rdv { font-size: 14px; line-height: 14px; padding: 14px 22px; order: -1; }   /* rendez-vous au-dessus du numéro */
    .hero-rdv-ico { width: 18px; height: 18px; }
    .booking-host { max-width: 100%; margin-top: 6px; }
}

/* ---- Bandeau en deux colonnes : texte et boutons à gauche, photo à droite,
        le formulaire prend la place de la photo quand il s'ouvre ---- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: center; max-width: 1300px; margin: 0 auto; width: 100%; text-align: left; }
.hero-split .hero-left { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hero-split .hero-top { text-align: left; margin: 0; }
.hero-split .hero-top h1 { font-size: 64px; line-height: 1.02; text-align: left; margin: 0 0 22px; max-width: none; }
.hero-split .service-h1 { font-size: 64px; line-height: 1.02; text-align: left; margin: 0; }
.hero-split .hero-eta { justify-content: flex-start; }
.hero-split .hero-call-wrap { justify-content: flex-start; margin: 4px 0 0; }
.hero-split .hero-right { min-width: 0; position: relative; }
.hero .hero-split { margin-bottom: 64px; }   /* accueil : respiration avant la grille des métiers */
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.hero-right.booking-active .hero-photo, .hero-right.booking-active picture { display: none; }
.hero-right .booking-host { margin: 0; }
.hero-right .bk-card { max-width: none; }

/* Pages métiers : fond noir pointillé du site à la place de la photo plein écran */
.service-hero.hero-split-section { background-color: #000; background-image: url('../images/go24/background.webp'); background-repeat: no-repeat; background-position: 50% 0; background-size: auto; padding: 70px 20px; min-height: 0; }

@media (max-width: 1024px) {
    .hero-split { gap: 28px; }
    .hero-split .hero-top h1, .hero-split .service-h1 { font-size: 52px; }
}
@media (max-width: 767px) {
    .hero-split { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .hero-split .hero-left { align-items: center; gap: 16px; }
    .hero-split .hero-top { text-align: center; }
    .hero-split .hero-top h1, .hero-split .service-h1 { font-size: 42px; line-height: 1.05; text-align: center; margin: 0 0 14px; }
    .hero-split .hero-eta { justify-content: center; }
    .hero-split .hero-call-wrap { justify-content: center; }
    .hero-photo { aspect-ratio: 16 / 10; border-radius: 18px; }
    .hero .hero-split { margin-bottom: 36px; }
    .service-hero.hero-split-section { padding: 40px 20px 36px; }
}

/* ---- Carte du formulaire ---- */
.booking-section { display: none; width: 100%; min-width: 0; scroll-margin-top: 90px; text-align: left; }
.booking-section.open { display: block; }

.bk-card {
    background: rgba(10, 10, 10, .94);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    width: 100%; max-width: 760px; margin: 0 auto;
    padding: 30px 28px 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
    color: #fff; font-family: 'Satoshi', Arial, sans-serif;
    color-scheme: dark;
    animation: bkIn .3s ease;
}
@keyframes bkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bk-head { text-align: center; margin-bottom: 22px; position: relative; padding: 0 36px; }
.bk-title { font-family: 'Satoshi', Arial, sans-serif; font-size: 24px; font-weight: 900; color: #fff; margin: 0; line-height: 1.15; }
.bk-title-steps { display: block; font-size: 14px; font-weight: 700; color: var(--orange, #F85A2D); margin-top: 6px; letter-spacing: .02em; }

.bk-back {
    position: absolute; top: -6px; left: -6px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
    background: #1a1a1a; color: #fff;
    cursor: pointer; padding: 0; transition: border-color .2s, background .2s;
}
.bk-back svg { width: 18px; height: 18px; }
.bk-back .bk-ico-close { display: none; font-size: 16px; line-height: 1; }
.bk-back.bk-back-close .bk-ico-back { display: none; }
.bk-back.bk-back-close .bk-ico-close { display: inline; }
.bk-back:hover { border-color: var(--orange, #F85A2D); background: rgba(248, 90, 45, .15); }

/* ---- Barre de progression ---- */
.bk-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.bk-progress-item { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); transition: background .3s; }
.bk-progress-item.done { background: var(--orange, #F85A2D); }
.bk-progress-item.current { background: #fff; }
.booking-section.bk-done .bk-progress { display: none; }

/* ---- Étapes ---- */
.bk-step { display: none; }
.bk-step.active { display: block; animation: bkFade .25s ease; }
@keyframes bkFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bk-card, .bk-step.active { animation: none; } }

.bk-field { margin-bottom: 16px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk-row .bk-field { margin-bottom: 16px; }
@media (max-width: 560px) { .bk-row { grid-template-columns: 1fr; gap: 0; } }

.bk-field input[type="text"],
.bk-field input[type="email"],
.bk-field input[type="tel"],
.bk-field select,
.bk-field textarea {
    width: 100%; padding: 13px 14px;
    background: rgb(43, 43, 43); color: #fff;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px;
    font-family: 'Satoshi', Arial, sans-serif; font-size: 16px; line-height: 1.25;
    outline: none; transition: border-color .15s; box-sizing: border-box;
}
.bk-field select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F85A2D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.bk-field select option { background: #1a1a1a; color: #fff; }
.bk-field select optgroup { background: #1a1a1a; color: #a8a8a8; font-weight: 700; font-style: normal; }
.bk-field textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: rgba(255, 255, 255, .5); opacity: 1; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { border-color: var(--orange, #F85A2D); }
.bk-field input.bk-err, .bk-field select.bk-err { border-color: #ff6b6b; }
.bk-errmsg { color: #ff6b6b; font-size: 13px; margin-top: 6px; display: block; line-height: 1.4; }
.bk-errmsg.bk-checking { color: #a8a8a8; }
.bk-errmsg.bk-ok { color: #4ade80; }
.bk-optional { font-weight: 400; color: #a8a8a8; font-size: 12px; }

/* Autocomplétion code postal / ville / adresse */
.bk-cp-wrap, .bk-adr-wrap { position: relative; }
.bk-ac {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px);
    background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    max-height: 240px; overflow-y: auto; z-index: 30;
}
.bk-ac-item { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; cursor: pointer; font-size: 14px; color: #fff; }
.bk-ac-item:hover, .bk-ac-item.active { background: rgba(248, 90, 45, .18); }
.bk-ac-code { font-weight: 700; color: var(--orange, #F85A2D); min-width: 48px; }
.bk-ac-city { color: #e6e6e6; }

/* ---- Téléphone : sélecteur de pays (intl-tel-input) au thème sombre ---- */
.bk-field .iti { width: 100%; display: block; }
.bk-field .iti__flag-container { padding: 0; }
.bk-field .iti__selected-flag {
    background: rgba(255, 255, 255, .06); border-right: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px 0 0 12px; padding: 0 10px 0 12px; transition: background .2s;
}
.bk-field .iti__selected-flag:hover, .bk-field .iti--container .iti__selected-flag { background: rgba(255, 255, 255, .1); }
.bk-field .iti__selected-dial-code { color: #fff; font-weight: 600; font-size: 15px; margin-left: 8px; }
.bk-field .iti__arrow { border-top-color: var(--orange, #F85A2D); margin-left: 8px; }
.bk-field .iti__arrow--up { border-bottom-color: var(--orange, #F85A2D); }
/* Liste des pays. Dans cette version de la bibliothèque, la boîte blanche qui défile est
   .iti__dropdown-content (bordure, 200 px de haut) ; .iti__country-list n'est que le <ul> à l'intérieur.
   Les fonds sont posés sur la boîte, le <ul> ET chaque ligne (opaques, !important) pour qu'aucune
   règle ne puisse laisser une ligne blanche. Le sélecteur .iti couvre aussi la fenêtre plein écran
   mobile (.iti.iti--container.iti--fullscreen-popup), rattachée au <body> hors du formulaire. */
.iti .iti__dropdown-content {
    background: #1a1a1a !important; color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5); max-height: 260px; margin-top: 4px; z-index: 40;
    width: 360px; max-width: 90vw; scrollbar-width: thin; scrollbar-color: #555 #1a1a1a;
}
.iti .iti__country-list { background: #1a1a1a !important; white-space: normal; }
.iti .iti__country {
    padding: 9px 12px; font-size: 14px; display: flex; align-items: center; gap: 8px;
    background: #1a1a1a !important; color: #fff !important;
}
.iti .iti__country.iti__highlight, .iti .iti__country:hover { background: #42261d !important; }   /* orange à 18 % sur #1a1a1a, opaque */
.iti .iti__country-name { color: #fff !important; }
.iti .iti__dial-code { color: #a8a8a8 !important; }
.iti .iti__divider { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 4px; margin-bottom: 4px; }
.bk-field .iti input.bk-err { border-color: #ff6b6b; }
@media (max-width: 560px) { .bk-field .iti__dropdown-content { width: calc(100vw - 48px); max-width: none; } }
/* Fenêtre plein écran (téléphone ou fenêtre de 500 px et moins). */
.iti--fullscreen-popup.iti--container { background: rgba(0, 0, 0, .78); padding: 18px 16px; font-family: 'Satoshi', Arial, sans-serif; }
.iti--fullscreen-popup .iti__dropdown-content { width: auto; max-width: none; max-height: 78vh; margin: 0; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.iti--fullscreen-popup .iti__country { padding: 12px 14px; font-size: 15px; line-height: 1.4; }
.iti--fullscreen-popup .iti__country-list::after { content: 'Touchez en dehors de la liste pour fermer'; display: block; padding: 10px 14px 12px; font-size: 12px; color: #8f8f8f; text-align: center; border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---- Planning : jours et créneaux ---- */
.bk-scheduler { margin-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .18); padding-top: 18px; }
.bk-sched-label { font-weight: 700; color: #fff; font-size: 14px; margin-bottom: 10px; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; min-width: 0; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: thin; }
.bk-day {
    flex: 0 0 auto; min-width: 62px; text-align: center;
    padding: 8px 6px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
    background: #1a1a1a; color: #fff; cursor: pointer; transition: all .15s; font-family: inherit;
}
.bk-day:hover { border-color: var(--orange, #F85A2D); }
.bk-day.selected { border-color: var(--orange, #F85A2D); background: var(--orange, #F85A2D); color: #000; }
.bk-day-dow { font-size: 10px; text-transform: uppercase; font-weight: 700; opacity: .85; letter-spacing: .04em; }
.bk-day-num { font-size: 18px; font-weight: 900; line-height: 1.1; }
.bk-day-mon { font-size: 10px; opacity: .85; }
/* Pastille sous le jour : « Offert » (déplacement offert) ou « 39 € » (jour même) */
.bk-day-free { margin: 5px auto 0; display: inline-block; font-size: 10px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 20px; background: rgba(74, 222, 128, .16); color: #4ade80; white-space: nowrap; }
.bk-day-free-paid { background: rgba(248, 90, 45, .2); color: #ff8a65; }
.bk-day.selected .bk-day-free { background: rgba(0, 0, 0, .2); color: #000; }
.bk-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bk-slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    white-space: nowrap; text-align: center;
    padding: 9px 6px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
    background: #1a1a1a; color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all .15s; font-family: inherit;
}
.bk-slot:hover { border-color: var(--orange, #F85A2D); }
.bk-slot.selected { border-color: var(--orange, #F85A2D); background: var(--orange, #F85A2D); color: #000; }
/* Prix du déplacement sur chaque créneau : « Offert » ou « 39 € » */
.bk-slot-price { font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 20px; background: rgba(255, 255, 255, .1); color: #d5d5d5; }
.bk-slot-free .bk-slot-price { background: rgba(74, 222, 128, .16); color: #4ade80; }
.bk-slot-paid .bk-slot-price { background: rgba(248, 90, 45, .2); color: #ff8a65; }
.bk-slot.selected .bk-slot-price { background: rgba(0, 0, 0, .2); color: #000; }

/* ---- Récapitulatif ---- */
.bk-recap { background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 4px 14px; margin-bottom: 14px; }
.bk-recap-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.bk-recap-row:last-child { border-bottom: none; }
.bk-recap-k { color: #a8a8a8; font-weight: 500; flex: 0 0 auto; }
.bk-recap-v { color: #fff; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ---- Photo (facultative) ---- */
.bk-photo-field { margin: 2px 0 14px; }
.bk-photo-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 16px; cursor: pointer;
    background: transparent; border: 1px dashed rgba(255, 255, 255, .35); border-radius: 12px;
    color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; transition: border-color .2s, background .2s;
}
.bk-photo-btn:hover { border-color: var(--orange, #F85A2D); background: rgba(248, 90, 45, .1); }
.bk-photo-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.bk-photo-preview {
    display: flex; align-items: center; gap: 12px; margin-top: 12px;
    background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px 12px;
}
.bk-photo-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.bk-photo-name { flex: 1; font-size: 13px; color: #e6e6e6; word-break: break-all; }
.bk-photo-remove {
    flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
    background: #0e0e0e; color: #fff; cursor: pointer; line-height: 1;
}
.bk-photo-remove:hover { border-color: var(--orange, #F85A2D); }

/* ---- Boutons de navigation ---- */
.bk-actions { display: flex; gap: 12px; margin-top: 22px; }
.bk-btn {
    flex: 1; padding: 15px; border-radius: 12px; font-size: 16px; font-weight: 700;
    cursor: pointer; border: 1px solid transparent; font-family: inherit; transition: background .2s, border-color .2s, transform .2s;
}
.bk-btn-primary { background: var(--orange, #F85A2D); color: #000; border-color: var(--orange, #F85A2D); }
.bk-btn-primary:hover { background: #ff7a52; border-color: #ff7a52; }
.bk-btn-primary:disabled { background: rgba(248, 90, 45, .45); border-color: transparent; color: rgba(0, 0, 0, .6); cursor: not-allowed; }
.bk-btn:focus-visible, .bk-back:focus-visible, .bk-day:focus-visible, .bk-slot:focus-visible, .hero-rdv:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Confirmation ---- */
.bk-success { text-align: center; padding: 6px 0 2px; }
.bk-success-ico {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--orange, #F85A2D); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 900; line-height: 1;
}
.bk-success h3 { margin: 0 0 10px; font-size: 24px; font-weight: 900; color: #fff; }
.bk-success p { margin: 0 0 10px; color: #c9c9c9; font-size: 15px; line-height: 1.55; }
.bk-success-call a { color: var(--orange, #F85A2D); font-weight: 700; text-decoration: none; white-space: nowrap; }
.bk-success-call a:hover { text-decoration: underline; }
.bk-success .bk-actions { margin-top: 18px; }

@media (max-width: 560px) {
    .bk-card { padding: 22px 16px 20px; border-radius: 16px; }
    .bk-head { padding: 0 30px; }
    .bk-title { font-size: 20px; }
    .bk-slots { grid-template-columns: repeat(3, 1fr); }
    .bk-actions { flex-wrap: wrap; }
}
