body.theme-client main:has(.appointment-hero) {
  box-sizing: border-box; width: 100%; max-width: 1176px; margin: 0 auto;
  padding: clamp(16px,3vw,36px) clamp(18px,4.2vw,54px) 64px;
}
body.theme-client {
  --linen: var(--gigi-fond,#f8f6f1); --paper: var(--gigi-surface,#fffcf7); --ink: var(--gigi-encre,#292b26); --muted: var(--gigi-muet,#635e55); --line: var(--gigi-bord,#dcd6ca);
  --clay: var(--gigi-rouge,#863e2c); --lichen: var(--gigi-lichen-texte,#53675b); --serif: "Baskerville", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.theme-client .mast { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: end;
      justify-content: space-between; gap: 12px; border-radius: 24px;
      padding: clamp(22px, 3.7vw, 42px); background: var(--gigi-fond,#eee7dc);
      box-shadow: inset 0 1px 0 #fff9, 0 7px 20px #37291609; }
body.theme-client .mast::before, body.theme-client .mast::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
body.theme-client .mast::before { background: radial-gradient(ellipse 38% 155% at 100% 10%, var(--mast-accent,var(--gigi-lichen,#d7ae94)) 6%, transparent 90%), radial-gradient(ellipse 42% 195% at 75% -55%, var(--mast-light,var(--gigi-rouge-doux,#faf1dc)) 24%, transparent 88%), linear-gradient(110deg, var(--mast-base,var(--gigi-lichen-doux,#e9e9df)), var(--mast-middle,var(--gigi-rouge-doux,#f5ebe0)) 54%, var(--mast-edge,var(--gigi-lichen,#e9d4bf))); }
body.theme-client .mast::after { background: radial-gradient(ellipse 88% 290% at 115% -150%, transparent 66%, #fff4dbb3 71%, transparent 79%); filter: blur(4px); }
body.theme-client .mast h1 { font: 400 clamp(43px, 6.3vw, 74px)/1 var(--serif); letter-spacing: -.065em; }
body.theme-client .appointment-hero { min-height: clamp(130px, calc(13.7vw + 38px), 188px); align-items: center; background: var(--gigi-lichen-doux,#e4e6d6); }
body.theme-client .appointment-hero::before { background: radial-gradient(ellipse 66% 160% at 2% 105%,var(--gigi-lichen-doux,#dbddce) 5%,transparent 84%), radial-gradient(ellipse 48% 158% at 98% 0,var(--gigi-lichen,#98aa99),transparent 85%),linear-gradient(115deg,var(--gigi-lichen-doux,#e2e5d8) 22%,var(--gigi-lichen-doux,#f1ead9) 65%,var(--gigi-lichen,#c9d3bf)); }
body.theme-client .appointment-hero::after { inset: -20%; background: repeating-linear-gradient(118deg,transparent 0 7%,#fff7dd80 9%,transparent 13% 16%); filter: blur(9px); mask-image: linear-gradient(90deg,transparent 28%,black 80%); }
body.theme-client .appointment-hero h1 { font-size: clamp(42px,6vw,72px); }
body.theme-client .appointment-hero p { margin-top: 8px; color: var(--gigi-encre,#465047); }
body.theme-client .appointment-layout { display: grid; grid-template-columns: minmax(200px,.8fr) minmax(0,2fr); align-items: start; gap: clamp(16px,4vw,56px); margin-top: clamp(24px,4vw,46px); }
body.theme-client :is(.appointment-layout,.rdv-reservations) h2 { margin: 0; font: 400 clamp(26px,3vw,36px)/1.12 var(--serif); letter-spacing: -.035em; }
.rdv-entete { flex-wrap: wrap; }
.rdv-entete > *, .rdv-prestation .libelle, .rdv-reservation .infos { min-width: 0; overflow-wrap: anywhere; }
.rdv-solde { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 8px 14px; border: 1px solid #fff9; border-radius: 16px; background: #fffdf3dc; color: var(--gigi-encre,#394a3e); font-size: .86rem; }
.rdv-solde strong { font-size: 1.05rem; }
body.theme-client .rdv-retour, body.theme-client .rdv-selection a { display: inline-flex; align-items: center; color: var(--gigi-lichen-texte,#3f5145); font: 600 .9rem var(--sans); text-underline-offset: 3px; }
.rdv-retour { min-height: 44px; }
.rdv-selection a { margin-inline-start: 8px; }
.rdv-semaine { margin-block: clamp(16px,2.5vw,28px) 0; }
.rdv-periode { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--gigi-encre,#485248); font-size: .94rem; font-weight: 550; }
.rdv-fleches { display: flex; gap: 6px; }
body.theme-client .rdv-fleches :is(a,button) {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: var(--paper); color: var(--gigi-lichen-texte,#344b3b); font: 400 1.45rem/1 var(--sans); text-decoration: none; box-shadow: none;
}
.rdv-fleches button:disabled { opacity: .45; }
body.theme-client .rdv-semaine .jours-planning { margin-top: 8px; gap: 5px; }
.rdv-semaine .jour-pastille { min-width: 0; border-radius: 13px; }
.rdv-semaine .jour-pastille[aria-current="date"] { background: var(--gigi-lichen-texte, var(--gigi-lichen-texte,#4f5e50)); }
.rdv-semaine .jour-pastille[aria-current="date"] :is(small,strong) { color: white; }
@media (min-width: 720px) {
  .rdv-semaine .jour-pastille {
    flex-direction: row; align-items: baseline; justify-content: center; gap: 7px;
    padding-block: 12px;
  }
}
.rdv-jour { flex-wrap: wrap; }
.rdv-jour > span, .rdv-intro { color: var(--muted); font-size: .92rem; }
.rdv-creneaux, .rdv-prestations { border-top: 1px solid var(--gigi-bord,#bfc4b6); }
body.theme-client .rdv-creneau, .rdv-prestation, .rdv-reservation {
  display: grid; grid-template-columns: 5.75rem minmax(0,1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ink); font: 400 1rem/1.4 var(--sans); text-align: start; text-transform: none;
}
.rdv-creneau .heures { font: 550 1.5rem/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.rdv-creneau .duree { display: block; margin-top: 3px; font: 400 .82rem/1.3 var(--sans); color: var(--muted); }
.rdv-detail { font-weight: 550; overflow-wrap: anywhere; }
.rdv-action, body.theme-client .rdv-reservation button {
  padding: 7px 15px; border: 1px solid var(--gigi-bord,#c8d1c2); border-radius: 24px; background: var(--gigi-lichen-doux,#edf1e8);
  color: var(--gigi-lichen-texte,#364a3c); font: 600 .86rem/1.3 var(--sans); letter-spacing: normal; text-transform: none; box-shadow: none;
}
body.theme-client .rdv-creneau:is(:disabled,[aria-disabled]) { color: var(--muted); cursor: default; opacity: 1; }
.rdv-creneau:disabled .rdv-action { background: transparent; border-color: transparent; color: var(--muted); }
body.theme-client .rdv-creneau:enabled:active { background: var(--gigi-lichen-doux,#e5ebdf); transform: none; }
.rdv-vide { margin: 0; padding: 18px 12px; border-radius: 0 0 14px 14px; background: linear-gradient(110deg,var(--gigi-lichen-doux,#eef0e6),var(--gigi-fond,#f7f5ed)); color: var(--gigi-encre,#475249); }
.rdv-vide p { margin: 0; }
.rdv-vide p + p { margin-top: 8px; }
.rdv-prestation, .rdv-reservation { grid-template-columns: auto minmax(0,1fr) auto; text-decoration: none; }
body.theme-client .rdv-prestation { color: var(--ink); }
.rdv-prestation .libelle > strong, .rdv-reservation .infos > strong { display: block; font: 400 clamp(22px,2.5vw,30px)/1.18 var(--serif); }
.rdv-prestation .libelle > small, .rdv-reservation .infos small { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.rdv-picto, .rdv-date { display: grid; place-content: center; justify-items: center; width: 48px; min-height: 52px; border: 1px solid var(--gigi-bord,#d4dacb); border-radius: 13px; background: linear-gradient(130deg,var(--gigi-surface,#fbfaef),var(--gigi-lichen-doux,#e1e7d9)); color: var(--gigi-lichen-texte,#405a48); }
.rdv-picto svg { width: 23px; height: 23px; }
.rdv-prestation .chevron { color: var(--gigi-lichen-texte,#516555); font-size: 1.5rem; }
.rdv-offre { border-bottom: 1px solid var(--line); }
.rdv-offre .rdv-prestation { border: 0; }
.rdv-offre .description-prestation { margin: -6px 8px 8px 70px; }
main:has(.appointment-hero) .description-prestation summary { color: var(--gigi-lichen-texte,#405a48); border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
main:has(.appointment-hero) .description-prestation-texte { border: 0; background: var(--gigi-lichen-doux,#eef0e6); color: var(--gigi-encre,#3d493f); }
.rdv-reservations { margin-top: clamp(30px,4vw,48px); }
body.theme-client .rdv-reservations h2 { padding-bottom: 14px; border-bottom: 1px solid var(--gigi-bord,#bfc4b6); }
.rdv-date strong { font: 500 1.4rem/1 var(--serif); }
.rdv-date span { font-size: .77rem; }
body.theme-client .rdv-reservation button { min-height: 44px; background: transparent; }
@media (hover: hover) {
  body.theme-client .rdv-creneau:enabled:hover, .rdv-prestation:hover { background: var(--gigi-lichen-doux,#edf0e7); }
  body.theme-client .rdv-fleches a:hover, body.theme-client .rdv-reservation button:hover { background: var(--gigi-lichen-doux,#e5ebdf); }
}

@media (max-width: 719px) {
  body.theme-client .appointment-layout { grid-template-columns: minmax(0,1fr); }
  .rdv-creneau { gap: 8px; }
}

body.theme-client dialog.dialog-detail {
  box-sizing: border-box; position: fixed; inset: 0 0 0 auto; margin: 0; padding: 24px;
  width: min(430px,100%); max-width: 100%; height: 100dvh; max-height: 100dvh;
  border: 0; border-left: 1px solid var(--gigi-bord,#dad1c4); border-radius: 0; background: var(--paper); color: var(--ink);
}
body.theme-client dialog.dialog-detail h2 { color: var(--ink); font: 400 2.15rem/1.1 var(--serif); letter-spacing: -.04em; }
.actions-confirmation-creneau { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.25rem; }
.actions-confirmation-creneau a { display: inline-flex; align-items: center; }
.actions-confirmation-creneau :is(a, button) { min-height: 44px; }
body.theme-client:has(dialog[open]) { overflow: hidden; }

@media (max-width: 719px) {
  body.theme-client dialog.dialog-detail {
    inset: auto 0 0; height: auto; max-height: 91dvh; width: 100%; border: 0; border-radius: 24px 24px 0 0;
    padding: 12px 20px max(20px,env(safe-area-inset-bottom));
  }
  body.theme-client dialog.dialog-detail::before {
    content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: var(--gigi-bord,#c6baad);
  }
}

body.theme-client dialog.dialog-detail { background: radial-gradient(ellipse 135% 290px at 110% 0,#ecd4bba3,transparent 78%),var(--paper); }
