/* Grille de créneaux sur cinq jours : demi-journées, meilleur créneau mis en avant, liste dépliable. Utilisée par l'étape « créneaux » de la réservation et par le panneau de la page prestation. */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.week-scroll { overflow-x: auto; padding-bottom: 6px; }
.week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 10px; min-width: min-content; }
.week-day { display: flex; flex-direction: column; gap: 8px; }
.week-day header { text-align: center; padding-bottom: 6px; border-bottom: 1px solid #e3e8ee; }
.week-day header b { display: block; font-size: .72rem; letter-spacing: .04em; color: var(--primary, #0a7a8f); }
.week-day header strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.week-day header small { color: #6b7a8c; }
.week-day.full header b, .week-day.full header strong { color: #8a96a5; }
.week-period { font-size: .68rem; letter-spacing: .05em; color: #6b7a8c; margin: 8px 0 -2px; text-transform: uppercase; }
.slot { position: relative; display: block; width: 100%; text-align: center; background: #fff; border: 1px solid #d9e0e8; border-radius: 10px; padding: 8px 4px; cursor: pointer; font: inherit; color: inherit; }
.slot:hover, .slot:focus-visible { border-color: var(--primary, #0a7a8f); outline: none; box-shadow: 0 0 0 2px rgba(10, 122, 143, .18); }
.slot .t { display: block; font-size: 1.15rem; font-weight: 700; }
.slot .e { display: block; font-size: .72rem; color: #6b7a8c; }
.slot .p { display: block; font-size: .82rem; font-weight: 700; color: var(--primary, #0a7a8f); }
.slot .u { display: block; font-size: .68rem; color: #b45309; }
.slot.best { background: #e6f7ec; border-color: #7fcf9b; }
.slot .stars { position: absolute; top: 4px; right: 6px; font-size: .62rem; color: #f59e0b; letter-spacing: -1px; }
.more { background: #fff; border: 1px solid #d9e0e8; border-radius: 8px; padding: 4px; cursor: pointer; font: inherit; font-size: .78rem; color: #4a5a6c; width: 100%; }
.week-day .extra { display: none; }
.week-day.open .extra { display: block; }
.week-day.open .more { display: none; }
.full-note { text-align: center; color: #8a96a5; font-size: .85rem; padding: 18px 0; }
.best-only { margin-top: 10px; }

/* Version compacte, dans le panneau de réservation de la page prestation. */
.slot-picker .week { grid-auto-columns: minmax(68px, 1fr); gap: 6px; }
.slot-picker .slot { padding: 6px 2px; border-radius: 8px; }
.slot-picker .slot .t { font-size: 1rem; }
.slot-picker .slot .e { font-size: .66rem; }
.slot-picker .slot .p { font-size: .72rem; }
.slot-picker .week-day header strong { font-size: 1.2rem; }
.slot-picker .week-day header b { font-size: .6rem; }
.slot-picker .slot-load { width: 100%; }
.slot-picker .slot-company { font-size: .8rem; color: #4a5a6c; margin: 4px 0 8px; }

/* Client connecté : adresses enregistrées en liste, et fenêtre d'ajout d'une adresse. */
.address-combo { position: relative; }
.address-combo .booking-address { width: 100%; box-sizing: border-box; }
.address-combo:has(.address-toggle) .booking-address { padding-right: 38px; }
.address-toggle { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: #5b6f82; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #d2dfe7; border-radius: 10px; box-shadow: 0 12px 30px rgba(8, 35, 77, .18); max-height: 280px; overflow-y: auto; }
.ac-list[hidden] { display: none; }
.ac-group { padding: 6px 12px 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6f82; }
.ac-item { display: grid; gap: 2px; padding: 8px 12px; font-size: 13px; color: #183650; cursor: pointer; }
.ac-item b { font-weight: 700; }
.ac-item small { color: #5b6f82; font-size: 12px; }
.ac-item em { color: #b45309; font-size: 11px; font-style: normal; }
.ac-item.active, .ac-item:hover { background: #eef9fa; }
.ac-item.is-disabled { opacity: .6; cursor: not-allowed; }
.ac-item.add { color: var(--primary, #0a7a8f); font-weight: 700; border-top: 1px solid #e6eef3; }
.address-dialog .ac-list { top: 100%; }
.address-dialog .address-combo { position: relative; }
.address-dialog { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 14px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(8, 35, 77, .3); }
.address-dialog::backdrop { background: rgba(15, 25, 40, .55); }
.address-dialog h2 { margin: 0 0 6px; font-size: 1.15rem; }
.address-dialog-grid { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.address-dialog-error { color: #b42318; font-size: 13px; margin: 10px 0 0; }
.address-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Numéro et rue, saisis avec la commune à l'étape « Adresse d'intervention » (même allure que les autres champs du panneau). */
.booking-field-label { display: block; margin: 10px 0 4px; font-size: 12px; color: #183650; }
.booking-address { width: 100%; box-sizing: border-box; padding: 11px; border: 1px solid #d2dfe7; border-radius: 9px; background: #fff; color: #183650; font: inherit; }
.booking-address:focus { outline: 2px solid rgba(10, 122, 143, .35); border-color: var(--primary, #0a7a8f); }

.booking-order { width: 100%; margin-top: 12px; }
.booking-order[hidden] { display: none; }

/* Attestation du taux réduit de TVA (étape 2 de la page prestation) */
.vat-attest { margin-top: 10px; padding: 12px 14px; border: 1px solid #b7e0e0; border-radius: 10px; background: #eef9fa; font-size: 13px; line-height: 1.45; color: #183650; }
.vat-attest[hidden] { display: none; }
.vat-attest p { margin: 6px 0 10px; }

/* Présentation compacte (page prestation) : une ligne Matin, une ligne Après-midi, un créneau visible par case, le reste se déplie. */
.week-title { display: grid; gap: 2px; }
.week-title strong { font-size: 1.05rem; }
.week-title small { color: #5b6f82; font-size: .78rem; font-weight: 400; }
.slot-picker .week.compact { grid-auto-flow: row; grid-template-columns: 52px repeat(var(--n, 5), minmax(56px, 1fr)); gap: 6px; align-items: start; min-width: 0; }
.wc-head { text-align: center; padding: 6px 2px; border-radius: 8px; background: #f3f7fa; color: #183650; line-height: 1.2; }
.wc-head b { display: block; font-size: .72rem; text-transform: capitalize; }
.wc-head span { display: block; font-size: .72rem; color: #4a5a6c; }
.wc-head.full { color: #8a96a5; }
.wc-label { align-self: stretch; display: flex; align-items: flex-start; padding: 8px 4px; overflow-wrap: anywhere; border-radius: 8px; background: #eef9fa; color: #183650; font-size: .74rem; }
.wc-cell { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wc-none { text-align: center; color: #8a96a5; font-size: .74rem; padding: 10px 0; }
.slot-picker .wc-cell .slot { padding: 6px 2px; }
.wc-cell .more { font-size: .7rem; padding: 4px 2px; }
.wc-cell .extra { display: none; }
.wc-cell.open .extra { display: block; }
.wc-cell.open .more { display: none; }
.slot.selected { border-color: var(--primary, #0a7a8f); box-shadow: 0 0 0 2px var(--primary, #0a7a8f); }
.slot.selected::after { content: "✓"; position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary, #0a7a8f); color: #fff; font-size: .7rem; line-height: 18px; }
.stars-legend .why-link { color: var(--primary, #0a7a8f); white-space: nowrap; }
.stars-legend .why-text { display: block; margin-top: 4px; color: #4a5a6c; }
.slot-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid #bfe7cc; border-radius: 10px; background: #e6f7ec; color: #183650; font-size: .82rem; }
.slot-selection[hidden] { display: none; }
.slot-selection strong { margin-left: auto; color: var(--primary, #0a7a8f); font-size: 1rem; }

/* Ajustements de lisibilité du panneau */
.slot-picker .week-nav { flex-wrap: nowrap; align-items: flex-start; }
.slot-picker .week-title { min-width: 0; flex: 1; }
.slot-picker .week-nav > span:last-child { display: flex; gap: 6px; flex: none; }
.slot-picker .week-nav .btn.small { padding: 6px 12px; min-width: 0; }
.slot-picker .stars-legend { font-size: .78rem; line-height: 1.4; color: #4a5a6c; margin: 10px 0 0; }
.slot-picker .stars-legend .why-text { font-size: .76rem; }
.slot-picker .slot-company { font-size: .8rem; }
.wc-cell .more { font-size: .66rem; line-height: 1.2; letter-spacing: -.01em; }

/* « Pourquoi des tarifs différents ? » : lien à droite du titre, comme sur la maquette. */
.slot-picker .week-nav { justify-content: space-between; }
.slot-picker .why-link { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: .78rem; color: var(--primary, #0a7a8f); text-decoration: underline; white-space: nowrap; }
.why-i { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; font-size: .66rem; font-weight: 700; font-style: normal; line-height: 1; text-decoration: none; }
.slot-picker .why-text { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #eef9fa; color: #183650; font-size: .76rem; line-height: 1.4; }
.slot-picker .why-text[hidden] { display: none; }
.slot-picker .week-arrows { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; }
.slot-picker .week-arrows .btn.small { padding: 4px 12px; min-width: 0; }

/* Aide vide : pas de bloc ; nom de l'artisan proposé mis en valeur. */
.slot-picker .booking-help:empty { display: none; }
.slot-picker .slot-company { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; padding: 10px 12px; border: 1px solid #b8dfdb; border-radius: 10px; background: #eef9fa; }
.slot-picker .slot-company:empty { display: none; }
.slot-company-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #4a5a6c; }
.slot-company-name { font-size: 1.05rem; color: #07194a; }

/* Libellés Matin / Après-midi : texte puis pictogramme en dessous. */
.wc-label { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.wc-label .wc-icon { color: var(--primary, #0a7a8f); flex: none; }

/* Étoiles : en haut à droite du créneau, sur une ligne au-dessus de l'heure pour ne jamais la recouvrir. */
.slot { padding-top: 13px; }
.slot .stars { position: absolute; top: 3px; right: 6px; font-size: .6rem; line-height: 1; letter-spacing: 0; }
/* Flèches de part et d'autre de la ligne des jours, jour choisi en teal. */
.slot-picker .week.compact { grid-template-columns: 52px repeat(var(--n, 5), minmax(54px, 1fr)) 34px; }
.wc-corner { display: flex; align-items: center; justify-content: center; }
.wc-corner .btn.small { width: 32px; height: 32px; min-width: 0; padding: 0; display: grid; place-items: center; border-radius: 10px; font-size: 1.3rem; line-height: 1; }
.wc-label { grid-column: 1; padding: 8px 2px; font-size: .68rem; }
.wc-head { background: #fff; box-shadow: 0 2px 8px #0028470f; }
.wc-head.active { background: #079b91; color: #fff; }
.wc-head.active span { color: #fff; }
.slot-picker .week-arrows[hidden] { display: none; }

/* Barre « Votre sélection » : pastille cochée, séparateur, puis date, heures et prix avec leurs pictogrammes. */
.slot-selection { gap: 6px 14px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(110deg, #e6f7ec, #eaf8f6); border-color: #cfeadf; font-size: .82rem; }
.slot-selection .sel-check { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #079b70; color: #fff; }
.slot-selection .sel-title { font-size: .95rem; color: #07194a; }
.slot-selection .sel-sep { align-self: stretch; width: 1px; min-height: 24px; background: #b9dccd; }
.slot-selection .sel-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #07194a; }
.slot-selection .sel-ico { flex: none; color: #079b91; }
.slot-selection .sel-euro { display: inline-grid; place-items: center; width: 18px; font-size: 1.2rem; font-weight: 700; line-height: 1; }
.slot-selection .sel-price { margin-left: auto; }
.slot-selection strong { margin-left: 0; font-size: .95rem; color: #07194a; }

/* « Revenir aux meilleurs rendez-vous » : centré et bien visible. */
.slot-picker .btn.best-only { display: block; width: auto; margin: 14px auto 4px; padding: 11px 26px; border: 0; border-radius: 999px; background: #079b91; color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; box-shadow: 0 6px 16px #079b9140; }
.slot-picker .btn.best-only::before { content: "★ "; color: #fde68a; }
.slot-picker .btn.best-only:hover { filter: brightness(.94); }
.slot-picker .btn.best-only[hidden] { display: none; }

.slot-picker .slot-load[hidden] { display: none; }
.slot-picker .why-text b { color: #07194a; }

/* Chargement des créneaux : roue crantée qui tourne. */
.wc-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 0; color: var(--primary, #0a7a8f); font-weight: 600; font-size: .9rem; }
.wc-loading .wc-cog { animation: wc-spin 1.6s linear infinite; }
@keyframes wc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wc-loading .wc-cog { animation-duration: 4s; } }
.week:has(> .wc-loading) { display: block; }
/* Adresses enregistrées du client connecté : liste à cocher au-dessus du champ d'adresse */
.saved-pick { display: grid; gap: 6px; margin: 0 0 12px; }
.saved-pick-title { font-size: 12.5px; font-weight: 700; color: #08234d; }
.saved-pick-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid #cfdde6; border-radius: 10px; background: #fff; cursor: pointer; }
.saved-pick-row:hover { background: #f4fafb; }
.saved-pick-row:has(input:checked) { border-color: #0b8f8a; background: #eef9f8; }
.saved-pick-row.is-disabled { opacity: .6; cursor: not-allowed; }
.saved-pick-row input { margin-top: 3px; accent-color: #0b8f8a; }
.saved-pick-text { display: grid; gap: 2px; }
.saved-pick-text b { font-size: 13.5px; color: #183650; }
.saved-pick-text small, .saved-pick-text em { font-size: 12px; color: #5b6f82; font-style: normal; }
