/* F39 / F40 — Rendez-vous (style inspiré de la branche Front-accueil : cartes ambrées, accent or, DM Mono) */
.rdv-kicker { margin: 0 0 6px; font: 500 0.6875rem "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: #efbd54; }
.rdv-kicker span { color: var(--texte-doux); }

/* Étapes */
.etapes-rdv { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: e; flex-wrap: wrap; }
.etapes-rdv li { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 0.875rem; color: var(--texte-doux);
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(28, 20, 14, .6); }
.etapes-rdv .num { display: inline-grid; place-items: center; width: 26px; height: 26px; font: 600 0.75rem "DM Mono", monospace; border: 1px solid currentColor; }
.etapes-rdv li.en-cours { color: var(--texte); border-color: rgba(239, 189, 84, .6); background: rgba(239, 189, 84, .08); }
.etapes-rdv li.en-cours .num { color: #1a1208; background: #efbd54; border-color: #efbd54; }
.etapes-rdv li.faite { color: #9fd9b9; }

/* Étape 1 : services */
.services-rdv { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0; padding: 0; list-style: none; }
.carte-service-rdv { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; color: var(--texte); text-decoration: none;
  border: 1px solid #c5a77b1b; background: linear-gradient(145deg, #302216 0%, #1c140e 66%); transition: border-color .2s, transform .2s; }
.carte-service-rdv:hover, .carte-service-rdv:focus-visible { border-color: #efbd548c; transform: translateY(-3px); }
.carte-service-rdv .ico { font-size: 1.625rem; }
.carte-service-rdv strong { font-size: 1.0625rem; }
.carte-service-rdv .lieu { margin-top: auto; font: 0.75rem "DM Mono", monospace; color: var(--texte-doux); }

/* Étape 2 : créneaux */
.rdv-service-choisi { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.rdv-service-choisi .ico { font-size: 2rem; }
.rdv-service-choisi .sous-section { margin: 0; }
.rdv-service-choisi p { margin: 2px 0 0; }
.lien-changer { margin-left: auto; font-size: 0.875rem; color: #efbd54; }
.jours-rdv { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 14px 0 18px; }
.jour-rdv { margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(8, 9, 15, .35); }
.jour-rdv legend { padding: 0 6px; font-weight: 600; font-size: 0.9375rem; color: var(--texte); }
.heures-rdv { display: flex; flex-wrap: wrap; gap: 6px; }
.heure-rdv { position: relative; cursor: pointer; }
.heure-rdv input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.heure-rdv span { display: inline-block; padding: 7px 11px; font: 500 0.8125rem "DM Mono", monospace; border: 1px solid rgba(239, 189, 84, .35); }
.heure-rdv:hover span { background: rgba(239, 189, 84, .1); }
.heure-rdv input:checked + span { color: #1a1208; background: #efbd54; border-color: #efbd54; }
.heure-rdv input:focus-visible + span { outline: 2px solid #efbd54; outline-offset: 2px; }

/* Récapitulatif */
.recap-rdv { display: grid; gap: 0; margin: 14px 0; border: 1px solid rgba(239, 189, 84, .3); }
.recap-rdv > div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.recap-rdv > div:last-child { border-bottom: 0; }
.recap-rdv dt { font: 500 0.6875rem "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); padding-top: 3px; }
.recap-rdv dd { margin: 0; }
.recap-rdv .recap-date dd, .recap-rdv .recap-heure dd { font-size: 1.1875rem; font-weight: 700; color: #efbd54; }
.recap-rdv .recap-heure small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--texte-doux); }
.recap-rdv ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.recap-docs { background: rgba(239, 189, 84, .05); }
.rdv-recap, .rdv-confirme { max-width: 760px; }
.rdv-confirme { border-color: rgba(107, 227, 176, .4); }

/* Mes rendez-vous */
.liste-rdv { display: grid; gap: 16px; margin-bottom: 24px; }
.carte-rdv-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.carte-rdv-entete .sous-section { margin: 0; }
.carte-rdv.bientot { border-color: rgba(239, 189, 84, .7); box-shadow: 0 0 0 1px rgba(239, 189, 84, .25); }
.carte-rdv .actions form { margin: 0; }
.historique-rdv { list-style: none; margin: 0; padding: 0; }
.historique-rdv li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--texte-doux); }
@media (max-width: 37.5em) {
  .recap-rdv > div { grid-template-columns: 1fr; gap: 2px; }
  .lien-changer { margin-left: 0; }
}

/* ===== Mise en page reprise de la branche Front-accueil (priseRendezVous.twig) ===== */
.rdv-hero { padding: 18px 0 26px; }
.rdv-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 500 0.75rem "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: #efbd54; }
.rdv-eyebrow .trait { width: 32px; height: 1px; background: #efbd54; }
.rdv-hero h1 { margin: 0; font: 600 clamp(38px, 5vw, 60px)/1.03 "Space Grotesk", sans-serif; letter-spacing: -.05em; color: #f4f1eb; }
.rdv-hero h1 span { color: #efbd54; }
.rdv-hero > p:last-child { max-width: 580px; color: var(--texte-doux); line-height: 1.6; }
.rdv-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; align-items: start; }
.rdv-panneau { padding: 26px; border: 1px solid #e5b75c35; border-radius: 5px; background: linear-gradient(145deg, #302216 0%, #1b130e 88%); }
.rdv-panneau h2 { margin: 0 0 20px; font: 600 1.5rem "Space Grotesk", sans-serif; letter-spacing: -.03em; color: #f4f1eb; }
.section-kicker { margin: 0 0 12px; font: 500 0.6875rem "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: #d4b56e; }
.section-kicker span { color: #8290a0; }
.booking-form { display: grid; gap: 8px; margin-bottom: 8px; }
.booking-form label, .rdv-choix legend { margin-top: 8px; font-size: 0.8125rem; font-weight: 600; color: #e0c990; letter-spacing: 0; text-transform: none; font-family: "Space Grotesk", sans-serif; }
.booking-form select, .booking-form input[type=text] { width: 100%; min-height: 46px; padding: 10px 12px; font: 0.9375rem "Space Grotesk", sans-serif; color: #f4f1eb; background: #17110c; border: 1px solid #ad7c3b66; border-radius: 3px; color-scheme: dark; }
.booking-form select:focus, .booking-form input:focus { border-color: #f2bd4b; box-shadow: 0 0 0 3px #f2bd4b24; }
.slot-help, .booking-privacy, .rdv-note { color: #aeb4bd; font-size: 0.8125rem; line-height: 1.6; }
.booking-privacy { margin: 14px 0 0; color: #9e8c75; font-size: 0.75rem; }
.rdv-lieu { margin: 4px 0 6px; font: 0.75rem "DM Mono", monospace; color: #c7b28b; }
.rdv-choix { margin: 0; padding: 0; border: 0; min-width: 0; }
.rdv-choix legend { padding: 0; margin-bottom: 8px; }
/* jours */
.jours-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.chip-jour { position: relative; flex: 0 0 auto; cursor: pointer; }
.chip-jour input, .chip-heure input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip-jour span { display: grid; justify-items: center; gap: 1px; width: 64px; padding: 8px 4px; border: 1px solid #ad7c3b66; border-radius: 4px; background: #17110c; }
.chip-jour small { font: 0.6875rem "DM Mono", monospace; color: #c7b28b; }
.chip-jour strong { font: 700 1.375rem "Space Grotesk", sans-serif; color: #f4f1eb; }
.chip-jour:hover span { border-color: #f2bd4b; }
.chip-jour input:checked + span { background: linear-gradient(160deg, #f2bd4b, #d8893f); border-color: #f2bd4b; }
.chip-jour input:checked + span small, .chip-jour input:checked + span strong { color: #21170f; }
.chip-jour input:focus-visible + span, .chip-heure input:focus-visible + span { outline: 2px solid #f2bd4b; outline-offset: 2px; }
/* heures */
.heures-jour { padding: 12px; margin-bottom: 8px; border: 1px solid #ffffff12; border-radius: 4px; background: #17110c99; }
.heures-titre { margin: 0 0 10px; font-weight: 700; color: #f2bd4b; }
.heures-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.chip-heure { position: relative; cursor: pointer; }
.chip-heure span { display: block; padding: 10px 6px; text-align: center; font: 500 0.875rem "DM Mono", monospace; color: #f4f1eb; border: 1px solid #ad7c3b66; border-radius: 3px; background: #1d160f; }
.chip-heure:hover span { border-color: #f2bd4b; background: #2a1f14; }
.chip-heure input:checked + span { color: #21170f; background: #f2bd4b; border-color: #f2bd4b; font-weight: 700; }
/* boutons */
.booking-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 14px; padding: 0 16px; font: 700 0.875rem "Space Grotesk", sans-serif; color: #21170f; text-decoration: none;
  background: linear-gradient(100deg, #f2bd4b, #d8893f); border: 1px solid #f2bd4b; border-radius: 3px; cursor: pointer; transition: filter .2s, transform .2s; }
.booking-submit:hover { filter: brightness(1.12); transform: translateY(-1px); }
.booking-submit span { color: #493019; font-size: 1.125rem; }
.booking-cancel { display: block; margin: 12px auto 0; padding: 4px; font: 0.8125rem "Space Grotesk", sans-serif; color: #d4b56e; text-align: center; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.review-actions { display: grid; }
/* récapitulatif façon Front-accueil (2 colonnes) */
.rdv-panneau .recap-rdv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 6px 16px; border: 1px solid #d89b4350; border-radius: 4px; background: #1a130e; }
.rdv-panneau .recap-rdv > div { display: block; padding: 12px 0; border-bottom: 1px solid #ffffff12; }
.rdv-panneau .recap-rdv dt { margin-bottom: 5px; padding: 0; }
.rdv-panneau .recap-rdv .recap-docs { grid-column: 1 / -1; border-bottom: 0; background: none; }
/* agenda */
.appointment-list { display: grid; gap: 10px; }
.appointment-item { display: flex; align-items: flex-start; gap: 11px; padding: 15px 12px; border: 1px solid #e5b75c2b; border-radius: 3px; background: #1d160f; }
.appointment-indicator { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #f2bd4b; box-shadow: 0 0 10px #f2bd4b80; }
.appointment-item-info, .modal-appointment-info { min-width: 0; flex: 1; }
.appointment-item h3, .modal-appointment h3 { margin: 0; font: 600 1rem "Space Grotesk", sans-serif; }
.appointment-item p, .modal-appointment-info p { margin: 5px 0; font: 0.75rem "DM Mono", monospace; color: #dfb65c; }
.appointment-attendee, .modal-appointment-info > span { font-size: 0.75rem; color: #b5a48c; }
.appointment-documents, .modal-appointment-info > small { display: block; margin-top: 5px; font-size: 0.75rem; line-height: 1.5; color: #a98f72; }
.appointment-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.appointment-confirmed { font: 0.625rem "DM Mono", monospace; letter-spacing: .08em; color: #f2bd4b; }
.appointment-ics { font: 0.75rem "DM Mono", monospace; color: #c7b28b; text-decoration: underline; text-underline-offset: 3px; }
.empty-agenda { display: grid; min-height: 190px; place-content: center; justify-items: center; padding: 20px; text-align: center; border: 1px dashed #ad7c3b66; border-radius: 3px; }
.empty-agenda > span { font-size: 1.875rem; color: #f2bd4b; }
.empty-agenda p { margin: 8px 0 5px; font-size: 0.9375rem; }
.empty-agenda small { max-width: 280px; font-size: 0.8125rem; line-height: 1.6; color: #a98f72; }
.modal-new-appointment { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; font-size: 0.875rem; color: #f2bd4b; text-decoration: none; border-top: 1px solid #ffffff18; }
.modal-new-appointment:hover { color: #ffd77a; }
/* fenêtre « Gérer mes rendez-vous » */
.appointment-modal { width: min(560px, calc(100vw - 32px)); max-height: min(84vh, 760px); overflow: auto; padding: 26px; color: #f4f1eb;
  background: linear-gradient(145deg, #302216, #19120d); border: 1px solid #d89b43a0; border-radius: 8px; box-shadow: 0 25px 80px #000b; }
.appointment-modal::backdrop { background: #090705c9; backdrop-filter: blur(5px); }
.appointment-modal h2 { margin: 0; font: 600 1.625rem/1.2 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #ffffff18; }
.modal-heading .section-kicker { margin: 0 0 8px; }
.modal-close { display: grid; flex: 0 0 42px; width: 2.625rem; height: 2.625rem; place-items: center; font-size: 1.5rem; line-height: 1; color: #f4f1eb; background: #24190f; border: 1px solid #d89b4370; border-radius: 50%; cursor: pointer; }
.modal-close:hover, .modal-close:focus-visible { border-color: #f2bd4b; color: #f2bd4b; }
.modal-appointment-list { display: grid; gap: 10px; }
.modal-appointment { display: flex; align-items: center; gap: 12px; padding: 14px; background: #1c150f; border: 1px solid #d89b4338; border-radius: 4px; }
.modal-appointment-actions { display: flex; align-items: center; gap: 10px; }
.modal-appointment-actions form { margin: 0; }
.modal-edit-button { padding: 7px 10px; font-size: 0.75rem; color: #f2bd4b; background: #342516; border: 1px solid #d89b4370; border-radius: 3px; cursor: pointer; }
.modal-edit-button:hover { background: #4a351b; }
.notification-empty { margin: 0; color: #b5b4b2; }
@media (max-width: 56.25em) { .rdv-layout { grid-template-columns: 1fr; } }
@media (max-width: 37.5em) {
  .rdv-panneau { padding: 18px 15px; }
  .rdv-panneau .recap-rdv { grid-template-columns: 1fr; }
  .modal-appointment { flex-wrap: wrap; }
}
