/* ==========================================================================
   Palma V4 — page « Réservation » (chargée seulement sur cette page, après v4.css)
   Habille le widget de reservation.js avec le système V4 : trois couleurs,
   titres en couleur, textes en noir, cartes blanches discrètes.
   Les classes du widget (resa, jour, creneau, choix, recap, alerte, calendrier,
   feuille…) sont générées ou lues par reservation.js : ne pas les renommer.
   ========================================================================== */

/* ------------------------------------------------------------ Utilitaires */
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.p4-resa .icone, .feuille .icone { width: 1.375rem; height: 1.375rem; flex: none; }
.p4-page-resa .p4-ent__cta { display: none; }
@media (max-width: 1020px) { .p4-page-resa .p4-burger { margin-left: auto; } }
@media (min-width: 1024px) { .mobile-seulement { display: none !important; } }

/* ------------------------------------------------------------ En-tête compact */
.p4-resa-tete { padding: clamp(28px, 4vw, 56px) 0 clamp(22px, 3vw, 36px); text-align: center; }
.p4-resa-tete .p4-sur { justify-content: center; }
.p4-resa-tete h1 { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.6rem); line-height: 1; max-width: 18ch; margin-inline: auto; }
.p4-resa-tete .p4-chapeau { margin: 16px auto 0; max-width: 56ch; }

/* ------------------------------------------------------------ Zone du widget */
.p4-resa-zone { padding-bottom: calc(var(--p4-esp) / 2); }
.reservation { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.resa, .resa__panneau, .participants, .participants__compteur { min-width: 0; }
@media (min-width: 1024px) { .reservation { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; } }

.resa { position: relative; background: #fff; border: 1px solid var(--p4-trait); border-radius: var(--p4-r); padding: clamp(18px, 3vw, 34px); box-shadow: 0 24px 50px -36px rgb(28 28 28 / .35); }

/* Progression */
.resa__tete { margin-bottom: clamp(20px, 3vw, 30px); }
.resa__etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.resa__etape { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; font: 700 .9rem/1.2 Nunito, system-ui, sans-serif; color: var(--p4-doux); text-align: left; cursor: default; }
.resa__etape:not(:disabled) { cursor: pointer; }
.resa__etape-num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--p4-trait); font-weight: 800; font-size: .9rem; color: var(--p4-texte); background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.resa__etape[aria-current="step"] { color: var(--p4-texte); font-weight: 800; }
.resa__etape[aria-current="step"] .resa__etape-num { background: var(--p4-violet); border-color: var(--p4-violet); color: #fff; }
.resa__etape.is-faite { color: var(--p4-texte); }
.resa__etape.is-faite .resa__etape-num { background: var(--p4-jaune); border-color: var(--p4-jaune); }
.resa__etape.is-faite:hover .resa__etape-libelle { text-decoration: underline; text-underline-offset: 3px; }
.resa__etape:focus-visible { outline: 3px solid var(--p4-violet); outline-offset: 3px; border-radius: 10px; }
.resa__barre { height: 4px; border-radius: 4px; background: var(--p4-fond-2); overflow: hidden; }
.resa__barre-remplissage { display: block; height: 100%; width: calc(var(--progression, .25) * 100%); border-radius: inherit; background: var(--p4-violet); transition: width .45s cubic-bezier(.2,.7,.3,1); }

/* Panneaux */
.resa__panneau { animation: p4-resa-entre .35s ease both; }
.resa__panneau.is-retour { animation-name: p4-resa-retour; }
@keyframes p4-resa-entre { from { opacity: 0; transform: translateX(14px); } }
@keyframes p4-resa-retour { from { opacity: 0; transform: translateX(-14px); } }
.resa__panneau-tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.resa__titre { font-family: var(--p4-titre); font-weight: 400; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); line-height: 1.05; color: var(--p4-violet); outline: none; }
.resa__sous-titre { margin-top: 6px; font-size: .97rem; color: var(--p4-texte); max-width: 52ch; }
.resa__date-choisie { font-weight: 800; }
.resa__lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font: 800 .95rem Nunito, system-ui, sans-serif; color: var(--p4-violet); cursor: pointer; }
.resa__lien span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgb(58 19 198 / .3); }
.resa__lien:hover span { text-decoration-color: currentColor; }
.resa__lien .icone { width: 20px; height: 20px; }
.resa__lien:focus-visible { outline: 3px solid var(--p4-violet); outline-offset: 3px; border-radius: 8px; }
.resa__alerte { margin-bottom: 16px; }
/* Étape 1 : nombre de personnes (menu déroulant) puis jour */
.resa__personnes { margin: -4px 0 26px; }
.resa__select { position: relative; display: inline-block; width: min(100%, 280px); }
.resa__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--p4-violet); border-bottom: 2.5px solid var(--p4-violet); transform: rotate(45deg); pointer-events: none; }
.resa__select select { width: 100%; min-height: 54px; padding: 0 48px 0 18px; border: 1.5px solid var(--p4-trait); border-radius: 14px; background: #fff; font: 800 1.05rem Nunito, system-ui, sans-serif; color: var(--p4-texte); -webkit-appearance: none; appearance: none; cursor: pointer; }
.resa__select select:hover { border-color: var(--p4-violet); }
.resa__select select:focus-visible { outline: none; border-color: var(--p4-violet); box-shadow: 0 0 0 3px rgb(58 19 198 / .15); }
.resa__personnes-aide { margin-top: 8px; font-size: .9rem; color: var(--p4-texte); }
.resa__personnes-aide a { font-weight: 800; color: var(--p4-violet); text-decoration: underline; text-underline-offset: 3px; }
.resa__sous-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; margin-bottom: 12px; padding-top: 22px; border-top: 1px solid var(--p4-trait); }
.resa__sous-titre-etape { margin: 0; font-family: var(--p4-titre); font-weight: 400; font-size: 1.7rem; line-height: 1.05; color: var(--p4-violet); }

/* Choix générique (input radio caché, corps cliquable) */
.choix { position: relative; display: block; cursor: pointer; }
.choix__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.choix__corps { display: block; border: 1.5px solid var(--p4-trait); border-radius: 16px; background: #fff; color: var(--p4-texte); transition: border-color .2s, background-color .2s, color .2s, transform .2s; }
.choix:hover .choix__input:not(:disabled) + .choix__corps { border-color: var(--p4-violet); }
.choix__input:checked + .choix__corps { border-color: var(--p4-violet); background: var(--p4-violet); color: #fff; }
.choix__input:focus-visible + .choix__corps { outline: 3px solid var(--p4-violet); outline-offset: 3px; }
.choix__input:disabled { cursor: not-allowed; }
.choix__input:disabled + .choix__corps { opacity: .42; background: var(--p4-fond-2); border-color: transparent; }

/* Étape 1 : bande des jours */
.jours { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 4px 14px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--p4-trait) transparent; }
.jour, .jours__squelette { flex: none; width: 74px; scroll-snap-align: start; }
.jour .choix__corps { display: grid; justify-items: center; gap: 1px; padding: 10px 4px 9px; text-align: center; }
.jour__semaine { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jour__numero { font-family: var(--p4-titre); font-size: 2rem; line-height: 1; color: var(--p4-violet); }
.jour__mois { min-height: 1.1em; font-size: .75rem; font-weight: 700; }
.jour__dispo { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--p4-violet); }
.jour--complet .jour__dispo, .jour--ferme .jour__dispo, .jour--passe .jour__dispo { background: transparent; }
.choix__input:checked + .choix__corps .jour__numero { color: #fff; }
.choix__input:checked + .choix__corps .jour__dispo { background: var(--p4-jaune); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 6px 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--p4-texte); }
.legende__item { display: inline-flex; align-items: center; gap: 8px; }
.legende__puce { width: 9px; height: 9px; border-radius: 50%; background: var(--p4-violet); }
.legende__puce--complet { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(28 28 28 / .35); }

/* Chargement */
.squelette { border-radius: 16px; background: linear-gradient(100deg, var(--p4-fond-2) 30%, #fff 50%, var(--p4-fond-2) 70%) 0 0 / 300% 100%; animation: p4-miroite 1.3s ease-in-out infinite; }
.jours__squelette { height: 92px; }
.creneaux__squelette { height: 64px; }
@keyframes p4-miroite { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Étape 2 : créneaux */
.creneaux__groupe + .creneaux__groupe { margin-top: 22px; }
.creneaux__titre { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 .8125rem/1.2 Nunito, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--p4-texte); }
.creneaux__titre .icone { width: 18px; height: 18px; color: var(--p4-orange); }
.creneaux__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.creneau .choix__corps { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; }
.creneau__heure { font-weight: 800; font-size: 1.12rem; }
.creneau__fleche { font-weight: 600; font-size: .85rem; opacity: .75; }
.creneau__places { font-size: .8125rem; font-weight: 700; color: var(--p4-violet); }
.choix__input:checked + .choix__corps .creneau__places { color: #fff; }

/* Étape 3 : participants */
.participants { display: grid; gap: 26px; }
.participants__compteur { display: grid; justify-items: start; gap: 12px; }
.compteur { display: inline-flex; align-items: center; gap: 18px; }
.compteur__btn { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--p4-trait); border-radius: 50%; background: #fff; color: var(--p4-violet); cursor: pointer; transition: border-color .2s, background-color .2s; }
.compteur__btn:hover:not(:disabled) { border-color: var(--p4-violet); }
.compteur__btn:disabled { opacity: .35; cursor: not-allowed; }
.compteur__btn:focus-visible { outline: 3px solid var(--p4-violet); outline-offset: 3px; }
.compteur__valeur { min-width: 2ch; font-family: var(--p4-titre); font-size: 3.4rem; line-height: 1; text-align: center; color: var(--p4-violet); }
.compteur__valeur.is-rebond { animation: p4-rebond .35s ease; }
@keyframes p4-rebond { 40% { transform: scale(1.18); } }
.participants__note { font-size: .94rem; color: var(--p4-texte); max-width: 48ch; }
.participants__note a, .resa-groupe a { font-weight: 800; color: var(--p4-violet); text-decoration: underline; text-underline-offset: 3px; }
.resa-groupe { display: none !important; }
.choix-groupe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.choix-groupe__legende { width: 100%; margin-bottom: 4px; padding: 0; font-weight: 800; color: var(--p4-texte); }
.champ__optionnel { font-weight: 400; color: var(--p4-doux); }
.choix-groupe .choix { flex: 1 1 calc(33.333% - 10px); min-width: 132px; }
.choix-groupe .choix__corps { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 14px; border-radius: 14px; font-weight: 700; font-size: .95rem; }
.choix-groupe .choix__corps .icone { width: 20px; height: 20px; color: var(--p4-orange); }
.choix-groupe .choix__input:checked + .choix__corps { background: rgb(58 19 198 / .07); color: var(--p4-violet); }
.choix-groupe .choix__input:checked + .choix__corps .icone { color: var(--p4-violet); }

/* Récapitulatif */
.recap { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; text-align: left; }
.recap__ligne { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; line-height: 1.35; }
.recap__icone { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--p4-fond-2); color: var(--p4-violet); }
.recap__icone .icone { width: 18px; height: 18px; }
.recap__libelle { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--p4-doux); }
.recap__valeur { font-weight: 800; color: var(--p4-texte); }
.recap__valeur--vide::before { content: "—"; font-weight: 400; color: var(--p4-doux); }
.recap-live { padding: 18px; border-radius: 16px; background: var(--p4-fond-2); }
.recap-live__titre, .resa-aside__titre { margin-bottom: 12px; font-family: var(--p4-titre); font-size: 1.6rem; line-height: 1; color: var(--p4-violet); }

/* Étape 4 : formulaire */
.formulaire { display: grid; gap: 16px; }
.formulaire__ligne { display: grid; gap: 16px; }
@media (min-width: 600px) { .formulaire__ligne--2 { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: 6px; align-content: start; }
.champ__label { font-weight: 800; font-size: .95rem; color: var(--p4-texte); }
.champ__requis { color: var(--p4-orange); }
.champ__saisie { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--p4-trait); border-radius: 14px; background: #fff; font: 500 1rem/1.4 Nunito, system-ui, sans-serif; color: var(--p4-texte); transition: border-color .2s, box-shadow .2s; }
textarea.champ__saisie { min-height: 104px; resize: vertical; }
.champ__saisie::placeholder { color: rgb(28 28 28 / .45); }
.champ__saisie:hover { border-color: rgb(28 28 28 / .3); }
.champ__saisie:focus-visible { outline: none; border-color: var(--p4-violet); box-shadow: 0 0 0 3px rgb(58 19 198 / .15); }
.champ__saisie[aria-invalid="true"] { border-color: var(--p4-orange); }
.champ__aide { font-size: .85rem; color: var(--p4-doux); }
.champ__erreur { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: .875rem; font-weight: 700; color: var(--p4-texte); }
.champ__erreur .icone { width: 18px; height: 18px; color: var(--p4-orange); }
.case { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.case__input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--p4-violet); cursor: pointer; }
.case__texte { font-size: .92rem; line-height: 1.5; color: var(--p4-texte); }
.case__texte a { font-weight: 700; color: var(--p4-violet); text-decoration: underline; text-underline-offset: 3px; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.resa__mention { font-size: .85rem; color: var(--p4-doux); }

/* Alertes (générées par le script) */
.alerte { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--p4-fond-2); color: var(--p4-texte); font-size: .94rem; }
.alerte--soleil { background: rgb(250 223 112 / .45); }
.alerte__icone { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--p4-violet); color: #fff; }
.alerte--erreur .alerte__icone { background: var(--p4-orange); }
.alerte__icone .icone { width: 18px; height: 18px; }
.alerte__titre { font-weight: 800; font-size: 1rem; }
.alerte__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.p4-resa .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--p4-violet); border-radius: 999px; background: transparent; font: 800 .92rem Nunito, system-ui, sans-serif; color: var(--p4-violet); text-decoration: none; cursor: pointer; }
.p4-resa .btn:hover { background: rgb(58 19 198 / .07); }
.p4-resa .btn .icone { width: 18px; height: 18px; }

/* Barre d'action */
.resa__actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--p4-trait); }
.resa__actions[hidden] { display: none; }
.resa__precedent { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1.5px solid var(--p4-trait); border-radius: 50%; background: #fff; color: var(--p4-texte); cursor: pointer; }
.resa__precedent:hover { border-color: var(--p4-violet); color: var(--p4-violet); }
.resa__precedent:focus-visible { outline: 3px solid var(--p4-violet); outline-offset: 3px; }
.resa__resume { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.resa__resume-principal { overflow: hidden; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.resa__resume-secondaire { overflow: hidden; font-size: .875rem; color: var(--p4-doux); white-space: nowrap; text-overflow: ellipsis; }
.resa__suivant { flex: none; }
.p4-resa .p4-btn .icone { width: 20px; height: 20px; }
.resa__suivant:disabled { opacity: .4; cursor: not-allowed; transform: none; background: var(--p4-violet); }
.resa__suivant.is-chargement { opacity: .7; cursor: progress; }
@media (max-width: 767px) {
  .resa__actions { position: sticky; z-index: 20; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); margin: 22px -6px 0; padding: 8px 8px 8px 14px; border: 1px solid var(--p4-trait); border-radius: 999px; background: rgb(255 255 255 / .97); box-shadow: 0 14px 30px -14px rgb(28 28 28 / .4); }
  .resa__suivant { min-height: 48px; padding: 0 20px; }
  /* Étape 1 : choisir un jour fait avancer tout seul, la barre ne colle pas encore (elle masquerait les jours) */
  .resa:has([data-resa-panneau="1"]:not([hidden])) .resa__actions { position: static; margin-inline: 0; }
}

/* Étape 5 : confirmation */
.confirmation { position: relative; display: grid; justify-items: center; gap: 12px; padding: 10px 0 4px; text-align: center; }
.confirmation__visuel { position: relative; width: 120px; height: 120px; margin-bottom: 4px; }
.confirmation__soleil { position: absolute; inset: 0; color: var(--p4-jaune); }
.confirmation__coche { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; translate: -50% -50%; border-radius: 50%; background: var(--p4-violet); color: #fff; }
.confirmation__coche .icone { width: 28px; height: 28px; }
.confirmation__titre { font-family: var(--p4-titre); font-weight: 400; font-size: clamp(2.4rem, 2rem + 1.6vw, 3rem); line-height: 1; color: var(--p4-violet); outline: none; }
.resa-confirmation__texte { max-width: 48ch; font-size: var(--p4-fs-lead); }
.resa-confirmation__email { font-size: .95rem; }
.confirmation__reference { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--p4-fond-2); font-size: .9rem; }
.confirmation .recap { width: min(100%, 420px); margin: 10px 0; padding: 18px; border-radius: 16px; background: var(--p4-fond-2); }
.confirmation__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; }
.resa-confirmation__cadeau { font-size: .94rem; }
.resa-confirmation__cadeau a { font-weight: 800; color: var(--p4-violet); }
.confettis { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; background: var(--confetti, var(--p4-orange)); animation: p4-confetti var(--duree, 2.6s) cubic-bezier(.25,.6,.4,1) var(--delai, 0s) forwards; }
@keyframes p4-confetti { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--derive, 30px), 560px, 0) rotate(var(--rotation, 540deg)); } }

/* Récapitulatif latéral (ordinateur) */
.resa-aside { display: none; }
@media (min-width: 1024px) {
  .resa-aside { display: grid; gap: 18px; position: sticky; top: 100px; }
}
.resa-aside__carte { padding: 22px; border-radius: var(--p4-r); background: var(--p4-fond-2); }
.resa-aside__aide { display: grid; gap: 2px; margin: 0; padding: 0 4px; list-style: none; }

/* ------------------------------------------------------------ Feuille calendrier (<dialog>) */
dialog.feuille { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 520px; max-height: min(90dvh, 760px); margin: 0 auto; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--p4-fond); color: var(--p4-texte); box-shadow: 0 -10px 40px -10px rgb(28 28 28 / .35); overflow: hidden; flex-direction: column; font-family: Nunito, system-ui, sans-serif; transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.8,.25,1), overlay .38s allow-discrete, display .38s allow-discrete; }
dialog.feuille[open] { display: flex; }
dialog.feuille.is-ouverte { transform: translateY(0); }
dialog.feuille.is-glisse { transition: none; }
dialog.feuille::backdrop { background: rgb(28 28 28 / 0); transition: background-color .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
dialog.feuille[open]::backdrop { background: rgb(28 28 28 / .45); }
@media (min-width: 768px) { dialog.feuille { bottom: 24px; width: calc(100% - 48px); border-radius: 26px; } }
.feuille__entete { position: relative; flex: none; padding: 10px 20px 10px; touch-action: none; cursor: grab; }
.feuille__poignee { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: rgb(28 28 28 / .2); }
.feuille__titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feuille__titre { margin: 0; font-family: var(--p4-titre); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--p4-violet); }
.feuille__corps { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.btn-icone { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--p4-fond-2); color: var(--p4-texte); cursor: pointer; }
.btn-icone:hover:not(:disabled) { background: rgb(58 19 198 / .1); color: var(--p4-violet); }
.btn-icone:disabled { opacity: .35; cursor: not-allowed; }
.btn-icone:focus-visible { outline: 3px solid var(--p4-violet); outline-offset: 2px; }
.calendrier__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.calendrier__mois { margin: 0; font-weight: 800; font-size: 1.1rem; text-transform: capitalize; }
.calendrier__grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendrier__jour-semaine { padding-bottom: 4px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; color: var(--p4-doux); }
.calendrier__jour { aspect-ratio: 1; min-height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; font: 800 1rem Nunito, system-ui, sans-serif; color: rgb(28 28 28 / .38); cursor: not-allowed; }
.calendrier__jour--ouvert { background: rgb(58 19 198 / .08); color: var(--p4-violet); cursor: pointer; }
.calendrier__jour--ouvert:hover { background: rgb(58 19 198 / .18); }
.calendrier__jour[aria-pressed="true"] { background: var(--p4-violet); color: #fff; }
.calendrier__jour.is-aujourdhui { box-shadow: inset 0 0 0 1.5px var(--p4-orange); }
.calendrier__jour:focus-visible { outline: 3px solid var(--p4-violet); outline-offset: 2px; }
.calendrier .legende { margin-top: 16px; }

/* ------------------------------------------------------------ Bon à savoir */
.p4-resa-infos h2 { margin-bottom: var(--p4-esp-tete); }
.p4-resa-infos__liste { display: grid; gap: 26px 48px; }
@media (min-width: 720px) { .p4-resa-infos__liste { grid-template-columns: 1fr 1fr; } }
.p4-resa-infos__liste h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.p4-resa-infos__liste h3::before { content: ""; flex: none; width: 15px; height: 15px; background: var(--p4-orange); -webkit-mask: var(--p4-m-soleil) center / contain no-repeat; mask: var(--p4-m-soleil) center / contain no-repeat; }
.p4-resa-infos__liste p { max-width: 54ch; }
.p4-resa-infos__liste a, .p4-resa-groupe__carte p a { font-weight: 700; color: var(--p4-violet); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ Groupes (petit aplat jaune) */
.p4-resa-groupe__carte { position: relative; max-width: 820px; margin-inline: auto; padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 44px); border-radius: var(--p4-r); background: var(--p4-jaune); rotate: -1deg; }
.p4-resa-groupe__carte h2 { position: relative; z-index: 1; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1.05; padding-right: 30px; }
.p4-resa-groupe__carte p { position: relative; z-index: 1; margin-top: 10px; max-width: 58ch; }
.p4-resa-groupe__liens { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 12px; }
.p4-resa-groupe__soleil { position: absolute; width: 58px; right: -14px; top: -22px; color: var(--p4-orange); }
@media (max-width: 600px) { .p4-resa-groupe__carte { rotate: 0deg; } .p4-resa-groupe__soleil { right: -4px; } }

/* FAQ */
.p4-resa-faq__plus { margin-top: 22px; text-align: center; }

/* ------------------------------------------------------------ Mobile */
@media (max-width: 600px) {
  .p4-resa-tete h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .p4-resa-tete .p4-chapeau { font-size: 1rem; }
  .resa { padding: 18px 14px; border-radius: 18px; }
  .resa__etape { flex-direction: column; justify-content: center; gap: 4px; font-size: .75rem; text-align: center; }
  .resa__etape-num { width: 28px; height: 28px; }
  .jour, .jours__squelette { width: 66px; }
  .creneaux__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compteur { gap: 14px; }
  .participants__compteur { justify-items: center; text-align: center; }
  .choix-groupe .choix { flex-basis: calc(50% - 10px); min-width: 0; }
  .p4-resa-infos h2, .p4-resa-infos > .p4-conteneur > .p4-sur { text-align: center; }
  .p4-resa-infos > .p4-conteneur { text-align: left; }
  .p4-resa-infos > .p4-conteneur > .p4-sur { display: flex; justify-content: center; }
}
@media (max-width: 359px) {
  .resa__etape-libelle { font-size: .6875rem; }
  .choix-groupe .choix { flex-basis: 100%; }
}

/* Toast (palma.js) */
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; padding: 12px 20px; border-radius: 999px; background: var(--p4-texte); color: #fff; font-weight: 700; opacity: 0; transition: opacity .25s, translate .25s; pointer-events: none; }
.toast.is-visible { opacity: 1; translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  .resa__panneau, .compteur__valeur.is-rebond, .squelette { animation: none !important; }
  dialog.feuille { transition: none; }
}

/* ==========================================================================
   V4.4 — plus de jaune et d'orange sur la réservation (retours du 14/10)
   ========================================================================== */
.resa__barre-remplissage { background: var(--p4-orange); }
.resa__etape[aria-current="step"] .resa__etape-num { background: var(--p4-jaune); border: 2px solid var(--p4-orange); color: var(--p4-texte); }
.resa__etape.is-faite .resa__etape-num { background: #fff; border: 2px solid var(--p4-orange); color: var(--p4-texte); }
.resa__titre, .resa__sous-titre-etape, .confirmation__titre, .recap-live__titre, .resa-aside__titre, .p4-resa-infos h2 { color: var(--p4-orange); }
.choix:hover .choix__input:not(:disabled) + .choix__corps { border-color: var(--p4-orange); }
.choix__input:checked + .choix__corps,
.choix-groupe .choix__input:checked + .choix__corps { border-color: var(--p4-orange); background: var(--p4-jaune); color: var(--p4-texte); }
.choix__input:checked + .choix__corps .jour__numero, .choix__input:checked + .choix__corps .creneau__places { color: var(--p4-texte); }
.choix__input:checked + .choix__corps .jour__dispo { background: var(--p4-orange); }
.choix-groupe .choix__input:checked + .choix__corps .icone { color: var(--p4-orange); }
.jour__dispo, .legende__puce { background: var(--p4-orange); }
.legende__puce--complet { background: transparent; }
.jour--complet .jour__dispo, .jour--ferme .jour__dispo, .jour--passe .jour__dispo { background: transparent; }
.creneau__places { color: var(--p4-texte); }
.calendrier__jour--ouvert { background: rgb(239 64 35 / .1); color: var(--p4-texte); }
.calendrier__jour--ouvert:hover { background: rgb(239 64 35 / .2); }
.calendrier__jour[aria-pressed="true"] { background: var(--p4-jaune); color: var(--p4-texte); box-shadow: inset 0 0 0 2px var(--p4-orange); }
.compteur__valeur { color: var(--p4-orange); }
.recap__icone { color: var(--p4-orange); }
.recap-live, .resa-aside__carte { background: rgb(250 223 112 / .38); }
.resa__select::after { border-color: var(--p4-orange); }
.resa__suivant:disabled { background: var(--p4-orange); }
.confirmation__coche { background: var(--p4-orange); }
.creneaux__titre .icone { color: var(--p4-orange); }
