/* ============================================================
   reservation-tunnel.css — composant tunnel de réservation.
   Utilisé sur /reservation.php (public) et /gestion/booking/new.php (BO).
   Lot 7 du chantier V2.
   ============================================================ */

.reservation-tunnel { padding: 40px 0 80px; background: #faf8f4; }
.reservation-tunnel .inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Boutons (réplique allégée de bo.css .btn-primary — bo.css n'étant pas
   chargé côté public). Limité au contexte du tunnel pour éviter d'écraser
   les styles existants du site public. */
.reservation-tunnel .btn-primary,
.tunnel-choice .btn-primary,
.mi-container .btn-primary {
    background: #947436;
    color: #fff;
    border: 1px solid #947436;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.reservation-tunnel .btn-primary:hover,
.tunnel-choice .btn-primary:hover,
.mi-container .btn-primary:hover { background: #b8975a; border-color: #b8975a; color: #fff; }
.reservation-tunnel .btn-primary.ghost,
.tunnel-choice .btn-primary.ghost,
.mi-container .btn-primary.ghost {
    background: transparent;
    color: #947436;
}
.reservation-tunnel .btn-primary.ghost:hover,
.tunnel-choice .btn-primary.ghost:hover,
.mi-container .btn-primary.ghost:hover { background: #947436; color: #fff; }
/* Variante .sm — plus discrète pour les boutons secondaires inline */
.reservation-tunnel .btn-primary.sm,
.tunnel-choice .btn-primary.sm,
.mi-container .btn-primary.sm {
    padding: 6px 14px;
    font-size: 10.5px;
}

/* Flash message en haut de /reservation.php après création de booking */
.reservation-flash { padding: 20px 0; }
.reservation-flash .inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.reservation-flash.ok .inner {
    background: #e8f4e8;
    color: #3d6b3d;
    border-left: 3px solid #3d6b3d;
}
.reservation-flash.err .inner {
    background: #fbe8e8;
    color: #a0282a;
    border-left: 3px solid #a0282a;
}

.tunnel-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b6b6b;
    text-decoration: none;
    margin-bottom: 18px;
    transition: color 0.15s;
}
.tunnel-back:hover { color: #947436; }

/* ---- Card presta ---- */
.tunnel-presta-card {
    background: #fff;
    border: 1px solid #e8e1d4;
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 24px;
}
.tunnel-presta-card h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 32pt;
    color: #947436;
    line-height: 1;
    margin: 0 0 10px;
    font-weight: 400;
}
.tunnel-presta-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
    color: #2a2a2a;
}
.tunnel-presta-meta .tunnel-sep { color: #b8a880; }
.tunnel-presta-meta .tunnel-price { color: #947436; font-weight: 600; }
.tunnel-presta-desc {
    color: #6b6b6b;
    font-size: 13.5px;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* ---- Titre + hint ---- */
.tunnel-h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 26pt;
    color: #947436;
    line-height: 1;
    margin: 24px 0 6px;
    font-weight: 400;
}
.tunnel-hint {
    font-size: 12px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin: 0 0 18px;
}

/* ---- Layout calendrier + panneau heures ---- */
/* Mode public : calendrier en haut, heures en dessous (vertical), pleine
   largeur du conteneur parent. */
.cal-layout-public { display: block; }
.cal-layout-public .cal-wrapper,
.cal-layout-public .cal-day-panel { max-width: none; }

/* Mode BO : hauteur fixée au viewport (100vh - topbar 60 - padding content 56).
   Calendrier à gauche, colonne droite (heures + récap) qui matche la hauteur.
   Les cellules du calendrier et les boutons d'horaires se répartissent
   verticalement dans l'espace dispo (grid-auto-rows: 1fr). Le bouton "Créer"
   reste de hauteur fixe (flex: 0 0 auto). */
/* Le calendrier dicte la hauteur (cellules aspect-ratio 1.6/1).
   La colonne droite (heures + récap) s'aligne via flex stretch.
   Heures = flex 1 (remplit), Créer = flex 0 (hauteur fixe en bas). */
.cal-layout-bo {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.cal-layout-bo .cal-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 520px;
    margin-bottom: 0;
}
.cal-layout-bo .cal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.cal-layout-bo .cal-day-panel {
    flex: 1;
    max-width: none;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.cal-layout-bo .cal-slots {
    flex: 1;
    min-height: 0;
    align-content: flex-start;  /* pas d'étirement vertical : hauteur naturelle */
    overflow-y: auto;
}
.cal-layout-bo .cal-slots .tunnel-slot-btn { width: 100%; }
.cal-layout-bo .tunnel-choice {
    flex: 0 0 auto;
    margin-top: 0;
}
/* Mode public : cal-right contient day-panel + choice empilés (block normal) */
.cal-layout-public .cal-right { display: contents; }

@media (max-width: 900px) {
    .cal-layout-bo { flex-direction: column; }
    .cal-layout-bo .cal-wrapper { max-width: none; }
}

/* ---- Calendrier mensuel ---- */
.cal-wrapper {
    background: #fff;
    border: 1px solid #e8e1d4;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 20pt;
    color: #947436;
    line-height: 1;
    text-transform: capitalize;
}
.cal-nav {
    background: transparent;
    border: 1px solid #e8e1d4;
    color: #2a2a2a;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    padding: 0;
}
.cal-nav:hover:not(:disabled) { background: #947436; border-color: #947436; color: #fff; }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
/* minmax(0, 1fr) au lieu de 1fr seul : empêche la grille de déborder si
   le contenu intrinsèque d'une cellule (.cal-cell-num 36×36) dépasse la
   part 1fr disponible. Sans ce min=0, les colonnes peuvent grandir au-delà
   de leur share et l'entête / la grille se désalignent. */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
}
.cal-weekdays span {
    text-align: center;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6b6b6b;
    font-weight: 600;
    padding: 4px 0;
    min-width: 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
}
.cal-cell {
    aspect-ratio: 1.6 / 1;
    background: transparent;
    border: none;
    font-family: inherit;
    color: #2a2a2a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    padding: 0;
    min-width: 0;        /* coopère avec minmax(0, 1fr) du parent grid */
    box-sizing: border-box;
}
.cal-cell-blank { background: transparent; cursor: default; pointer-events: none; }
/* Numéro : toujours un rond 36px, par défaut transparent. Les states
   (hover, is-today, is-selected) override le fond / la couleur / la border. */
.cal-cell-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.cal-cell-dot {
    width: 4px; height: 4px;
    background: #947436;
    border-radius: 50%;
}
/* Hover sur cellule active : applique le rond beige clair sur le numéro */
.cal-cell:hover:not(:disabled):not(.cal-cell-blank) .cal-cell-num {
    background: #faf4e6;
    border-color: #b8975a;
}
.cal-cell.is-empty {
    color: #c8bea8;
    cursor: not-allowed;
}
.cal-cell.is-past { color: #c8bea8; }
/* Aujourd'hui : cercle outline or */
.cal-cell.is-today .cal-cell-num {
    color: #947436;
    border-color: #947436;
    background: #fff;
}
/* Jour sélectionné : disque or plein autour du numéro */
.cal-cell.is-selected .cal-cell-num {
    background: #947436;
    color: #fff;
    border-color: #947436;
}
.cal-cell.is-selected .cal-cell-dot { background: #fff; }

/* ---- Panneau heures du jour sélectionné ---- */
.cal-day-panel {
    background: #fff;
    border: 1px solid #e8e1d4;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 14px;
    max-width: 520px;
}
.cal-day-title {
    font-family: 'Dancing Script', cursive;
    font-size: 18pt;
    color: #947436;
    line-height: 1;
    margin: 0 0 12px;
    font-weight: 400;
    text-transform: capitalize;
}
.cal-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.cal-slots .tunnel-slot-btn {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
}
/* En mode BO (panneau étroit), on garde la grille pour optimiser l'espace.
   Cibles plus petites que côté public (64px au lieu de 80px) → plus de
   slots par ligne, sélecteur compact. */
.cal-layout-bo .cal-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    justify-content: stretch;
    gap: 6px;
}
.cal-layout-bo .cal-slots .tunnel-slot-btn {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;     /* plus compact que le 10/18 par défaut */
    font-size: 12px;
}
.tunnel-slot-btn {
    background: #fff;
    color: #947436;
    border: 1px solid #947436;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    font-variant-numeric: tabular-nums;
}
.tunnel-slot-btn:hover {
    background: #947436;
    color: #fff;
    border-color: #947436;
}
.tunnel-slot-btn.selected {
    background: #947436;
    color: #fff;
    border-color: #947436;
}
/* Slot en dépassement de la fermeture (<30min). Visuellement signalé en orange
   pour avertir que la presta finit après l'heure d'ouverture officielle. */
.tunnel-slot-btn.is-overflow {
    border-color: #ff9500;
    color: #b86b00;
}
.tunnel-slot-btn.is-overflow:hover {
    background: #ff9500;
    color: #fff;
    border-color: #ff9500;
}
.tunnel-slot-btn.is-overflow.selected {
    background: #ff9500;
    color: #fff;
    border-color: #ff9500;
}
/* Slot BO hors plage normale d'ouverture d'Aurélia (samedi, dimanche, soirée…).
   Border en pointillés pour bien signaler le caractère exceptionnel sans interdire. */
.tunnel-slot-btn.is-outside-normal {
    border-style: dashed;
    border-width: 2px;
    padding: 9px 17px; /* compense le +1px de border pour ne pas décaler */
}
.tunnel-slot-btn.is-outside-normal:hover,
.tunnel-slot-btn.is-outside-normal.selected {
    border-style: dashed;
    border-width: 2px;
}

/* ---- Choix confirmé (récap) ---- */
.tunnel-choice {
    margin-top: 28px;
    padding: 22px 26px;
    background: #fff;
    border: 2px solid #947436;
    border-radius: 8px;
}
.tunnel-choice p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; }
.tunnel-choice strong { color: #947436; }
.tunnel-choice .tc-placeholder {
    color: #6b6b6b;
    font-style: italic;
    /* margin héritée du sélecteur générique .tunnel-choice p — ne pas surcharger
       pour conserver la même hauteur que le récap (évite le saut au switch). */
}
.tunnel-choice .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
/* Réserve la place du bouton "Choisir un autre" sans l'afficher,
   pour éviter le saut de hauteur entre placeholder et récap. */
.tc-invisible { visibility: hidden; pointer-events: none; }

/* ---- Form coordonnées tunnel public (Lot 8a) ---- */
.tc-public-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8e1d4;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tc-form-row {
    display: grid;
    /* minmax(0, 1fr) : empêche les colonnes de grandir au-delà de leur share
       à cause du min-content des inputs (~20 char width par défaut). Sans ça,
       les 2 colonnes peuvent avoir des largeurs différentes. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .tc-form-row { grid-template-columns: minmax(0, 1fr); }
}
/* Espace vertical entre les blocs (rows / fields pleine largeur) de la section
   « Mes coordonnées ». Sélecteur en enfant direct (>) pour ne PAS toucher les
   .tc-field côte à côte DANS une .tc-form-row : sinon la 2e colonne reçoit un
   margin-top et le layout se désaligne. */
.mi-section > .tc-form-row + .tc-form-row,
.mi-section > .tc-form-row + .tc-field,
.mi-section > .tc-field + .tc-form-row,
.mi-section > .tc-field + .tc-field { margin-top: 14px; }

.tc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
/* L'attribut HTML5 [hidden] doit gagner sur notre display: flex.
   Sans cette règle, .tc-field garde display: flex même quand hidden est posé
   (l'UA stylesheet [hidden]{display:none} perd contre une règle auteure de
   spécificité égale). Ex : champ « Raison sociale » qui ne devrait apparaître
   que quand la case « entreprise / association » est cochée. */
.tc-field[hidden],
.tc-form-row[hidden],
.tc-pay-option[hidden],
.mi-section[hidden] { display: none; }
.tc-field > span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #6b6b6b;
    font-weight: 600;
}
.tc-field > span small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: #999;
    margin-left: 4px;
}
.tc-field > span .req { color: #947436; }
.tc-field input,
.tc-field textarea,
.tc-field select {
    font-family: inherit;
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid #e8e1d4;
    border-radius: 6px;
    background: #fff;
    color: #2a2a2a;
    /* Force la largeur à la colonne du grid (sans ça, l'input garde sa taille
       intrinsèque ~20 caractères qui peut être plus grande que le 1fr de la
       colonne et désaligne les rows). */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.tc-field { min-width: 0; }  /* coopère avec minmax(0, 1fr) du parent grid */
.tc-field input:focus,
.tc-field textarea:focus,
.tc-field select:focus {
    outline: none;
    border-color: #947436;
    box-shadow: 0 0 0 3px rgba(148, 116, 54, 0.12);
}
.tc-field textarea { resize: vertical; min-height: 60px; line-height: 1.4; }
/* Champs identité verrouillés (cliente connectée) : fond beige discret, non
   éditables. Déverrouillés via « Ce n'est pas X ? ». */
.tc-field input[readonly] {
    background: #f3efe8;
    color: #6b6b6b;
    cursor: not-allowed;
}
.tc-field input[readonly]:focus {
    border-color: #e8e1d4;
    box-shadow: none;
}
/* Select : style des inputs + chevron doré custom (remplace la flèche OS). */
.tc-field select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23947436' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 11px 8px;
}
/* Placeholders nettement distincts d'une vraie valeur saisie (texte = #2a2a2a) :
   gris clair + italique, pour qu'on ne les prenne pas pour un champ pré-rempli. */
.tc-field input::placeholder,
.tc-field textarea::placeholder {
    color: #b3aa99;
    font-style: italic;
    opacity: 1; /* Firefox baisse l'opacité par défaut */
}
/* Avertissement identité : e-mail saisi déjà associé à un autre nom en base.
   Invite à vérifier nom/prénom ou à passer en « pour un proche ». */
.tc-id-warn {
    margin: 10px 0 4px;
    padding: 10px 14px;
    background: #fff5e6;
    border-left: 3px solid #d99a2b;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #8b6516;
}
.tc-benef {
    margin: 12px 0 16px;
    padding: 14px 16px;
    background: #faf7f2;
    border: 1px solid #e8dec9;
    border-radius: 8px;
}
.tc-benef .tc-field + .tc-form-row,
.tc-benef .tc-form-row { margin-top: 12px; }
.tc-benef-note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #8a7d68;
    font-style: italic;
}
.tc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #2a2a2a;
    cursor: pointer;
    line-height: 1.5;
    margin: 14px 0;
}
.tc-check:first-of-type { margin-top: 18px; }
.tc-check + .tc-check { margin-top: 10px; }
.tc-check input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #947436;
    cursor: pointer;
    flex-shrink: 0;
}
.tc-check a { color: #947436; }
.tc-pay-info {
    background: #fdf9f0;
    border-left: 3px solid #947436;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #2a2a2a;
    margin: 4px 0 0;
}
/* Sélecteur mode paiement (online / sur place) — Lot 8c */
.tc-pay-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 8px;
}
/* Section Règlement quand la carte cadeau couvre 100% du prix :
   on masque le choix online/sur place (rien à régler) et on affiche
   la bannière verte d'information. */
#miReglement.is-fully-covered .tc-pay-choice { display: none; }
#miReglement.is-fully-covered .tc-pay-info-covered { display: block !important; }
.tc-pay-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e8e1d4;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.tc-pay-option:hover { background: #faf7f2; border-color: #b8975a; }
.tc-pay-option input[type="radio"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #947436;
    cursor: pointer;
    flex-shrink: 0;
}
.tc-pay-option:has(input:checked) {
    background: #fdf9f0;
    border-color: #947436;
}
.tc-pay-option-body { display: flex; flex-direction: column; gap: 3px; }
.tc-pay-option-body strong { font-size: 14px; color: #2a2a2a; font-weight: 600; }
.tc-pay-option-body small { font-size: 12.5px; color: #6b6b6b; line-height: 1.5; }
.tc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    justify-content: flex-end;
}
.tunnel-soon {
    background: #fff5e6;
    border-left: 3px solid #8b6516;
    color: #8b6516;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin: 12px 0 16px;
}

/* ---- État vide ---- */
.tunnel-empty {
    padding: 40px 22px;
    text-align: center;
    background: #fff;
    border: 1px dashed #e8e1d4;
    border-radius: 8px;
}
.tunnel-empty p { margin: 0 0 8px; font-size: 14.5px; color: #2a2a2a; }
.tunnel-empty-sub { color: #6b6b6b !important; font-size: 13px !important; }

/* ---- BO mode : choix cliente ---- */
.tunnel-bo-client {
    background: #fff;
    border: 1px solid #e8e1d4;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.tunnel-bo-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #6b6b6b;
    font-weight: 600;
    margin: 0 0 6px;
}
.tunnel-bo-value { font-size: 15px; margin: 0; }

@media (max-width: 600px) {
    .tunnel-day summary {
        grid-template-columns: 40px 40px 1fr;
    }
    .tday-count { display: none; }
    .tunnel-presta-card h1 { font-size: 28pt; }
}

/* ============================================================
   "Mon Instant" — structure narrative en sections (mode public).
   ============================================================ */
/* Largeur standard du content public ALS : 860px (alignée sur .reservation
   .inner du catalogue, .parrainage .inner, .prestas .inner home).
   .mi-container--embed (mode slide-panel) ignore cette contrainte pour
   utiliser tout l'espace du panel. */
.mi-container {
    background: #fff;
    border: 1px solid #e8e1d4;
    border-radius: 12px;
    padding: 28px 32px 36px;
    margin: 0 auto;
    max-width: 860px;
}
/* En mode slide-panel : pas de double encadrement (le panel a déjà son chrome) */
.mi-container--embed {
    border: none;
    border-radius: 0;
    padding: 8px 24px 32px;
    max-width: none;
}
.mi-title {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 40pt;
    color: #2a2a2a;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.1;
}
.mi-title span { color: #947436; }
.mi-section {
    border-top: 1px solid #f3efe8;
    padding: 24px 0 6px;
}
.mi-section:first-of-type { border-top: none; padding-top: 18px; }
.mi-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.mi-h2 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 22pt;
    color: #947436;
    line-height: 1;
    margin: 0 0 14px;
}
.mi-section-head .mi-h2 { margin: 0; }
.mi-h2 small {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #8a7d68;
    margin-left: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}
.mi-presta {
    background: #faf7f2;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.mi-presta-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    color: #2a2a2a;
    font-weight: 500;
}
.mi-presta-desc {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #8a7d68;
    font-style: italic;
    line-height: 1.5;
}
.mi-presta-meta {
    white-space: nowrap;
    font-size: 14px;
    color: #947436;
}
.mi-presta-price { font-weight: 600; font-size: 17px; }
.mi-presta-dur   { color: #8a7d68; font-size: 13px; margin-left: 4px; }

/* Étape OPTIONS (add-ons payants) — choix avant le reste du formulaire. */
.mi-options-lead {
    margin: 0 0 14px; font-size: 14px; color: #6b6b6b; line-height: 1.55;
}
.mi-options-list { display: flex; flex-direction: column; gap: 10px; }
.mi-option {
    display: flex; align-items: center; gap: 12px;
    background: #faf7f2; border: 1px solid #ece3d2; border-radius: 8px;
    padding: 12px 16px; cursor: pointer; transition: border-color .15s, background .15s;
}
.mi-option:hover { border-color: #d8c9a8; }
.mi-option input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: #947436; flex-shrink: 0; cursor: pointer;
}
.mi-option-name { flex: 1; font-size: 15px; color: #2a2a2a; }
.mi-option-sup { font-size: 14px; font-weight: 600; color: #947436; white-space: nowrap; }
.mi-options-actions { margin-top: 16px; text-align: right; }
/* Étape validée : on garde les options visibles/modifiables, léger état « fait ». */
.mi-options--done .mi-options-actions .btn-primary { opacity: 0.6; }

@media (max-width: 600px) {
    .mi-container { padding: 22px 18px 28px; border-radius: 10px; }
    .mi-title     { font-size: 32pt; }
    .mi-h2        { font-size: 18pt; }
    .mi-presta    { flex-direction: column; align-items: flex-start; }
    .mi-presta-meta { align-self: flex-end; }
}

/* Chip "Bonjour Marie" affiché quand la cliente est déjà loggée
   (pas de login inline : email = clé unique côté backend, dédoublonnage auto). */
.tc-logged-chip {
    display: inline-block;
    background: #faf7f2;
    border: 1px solid #e8dec9;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    color: #6b6b6b;
    margin-bottom: 14px;
}
.tc-logged-chip strong { color: #947436; }
/* Lien « Ce n'est pas X ? » : réinitialise les coordonnées pour réserver
   au nom d'une autre personne depuis un appareil déjà connecté. */
.tc-not-me {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    font: inherit;
    font-size: 12px;
    color: #947436;
    text-decoration: underline;
    cursor: pointer;
}
.tc-not-me:hover { color: #b8975a; }
.tc-logged-chip.is-reset { color: #6b6b6b; }

/* Tuile "+ Autre horaire" (BO uniquement) : saisie libre HH:MM
   pour walk-in à 14:15 etc. Style discret, bordure dashed. */
.tunnel-slot-free {
    display: inline-flex;
    align-items: center;
}
.tunnel-slot-free-btn {
    border: 1px dashed #cfc4ad !important;
    color: #8a7d68;
    background: #fff;
    font-style: italic;
    font-size: 13px;
}
.tunnel-slot-free-btn:hover {
    background: #faf7f2;
    color: #947436;
    border-color: #947436 !important;
}
.tunnel-slot-free-input {
    border: 1px solid #947436;
    border-radius: 999px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #947436;
    background: #fff;
    min-width: 110px;
    cursor: pointer;
}
.tunnel-slot-free-input.selected {
    background: #947436;
    color: #fff;
}
