body.theme-client main:has(.home-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 .page-compte:has(.home-hero) { max-width: none; margin: 0; padding: 0; }
.page-compte {
  --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 .balance { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; background: #fffaf1cf; border: 1px solid #fffc; border-radius: 30px; color: var(--gigi-encre,#4f453b); font-size: .82rem; white-space: nowrap; }
body.theme-client .balance::before { content: ""; width: 14px; height: 11px; border-radius: 3px; border: 1px solid currentColor; box-shadow: 2px -2px 0 -1px var(--gigi-surface,#fff8ed), 2px -2px currentColor; }
body.theme-client .home-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px;
      display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 24px;
      padding: clamp(26px,4vw,48px); color: var(--gigi-encre,#372a20); min-height: 295px;
      background:
        radial-gradient(ellipse 70% 94% at 106% 3%, var(--gigi-lichen,#8b3a24) 5%, var(--gigi-lichen,#bc5f3a) 34%, transparent 75%),
        radial-gradient(ellipse 60% 65% at 68% 78%, var(--gigi-lichen,#ffc18c) 5%, transparent 86%),
        linear-gradient(116deg, var(--gigi-rouge-doux,#f2e7d6) 9%, var(--gigi-rouge-doux,#f1d6b9) 58%, var(--gigi-lichen,#d38e6b)); }
body.theme-client .home-hero::before { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: -4%; background: radial-gradient(ellipse 108% 180% at 108% -89%, transparent 65%, #ffe6bd80 70%, #fff4dccc 72%, transparent 82%); filter: blur(7px); }
body.theme-client .hero-date, body.theme-client .section-label { font-size: .86rem; font-weight: 550; }
body.theme-client .home-hero h1 { margin: 12px 0 23px; font: 400 clamp(46px,6.2vw,80px)/1.03 var(--serif); letter-spacing: -.052em; }
body.theme-client .text-link { color: var(--clay); font: 600 .9rem/1.4 var(--sans); text-underline-offset: 4px; }
body.theme-client .home-hero .text-link { color: var(--gigi-rouge,#5d382b); }
body.theme-client .next-card { border-radius: 19px; border: 1px solid #fff9; background: #fffaf0ed; box-shadow: 0 9px 26px #58341b12; padding: clamp(17px,2.6vw,28px); backdrop-filter: blur(14px); }
body.theme-client .next-card .section-label { color: var(--gigi-muet,#5b574a); }
body.theme-client .next-card h2 { margin: 9px 0 4px; font: 400 clamp(24px,3vw,36px)/1.1 var(--serif); letter-spacing: -.032em; }
body.theme-client .next-card p:not(.section-label) { color: var(--gigi-encre,#574c3e); text-wrap: balance; }
body.theme-client .home-below { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,.85fr); gap: clamp(20px,4vw,48px); margin-top: 26px; align-items: stretch; }
body.theme-client .home-agenda { padding: 12px 0; }
body.theme-client .home-agenda h2, body.theme-client .filtres-boutique h2 { font: 400 clamp(26px,3vw,36px)/1.15 var(--serif); letter-spacing: -.04em; }
body.theme-client .home-times { list-style: none; margin: 12px 0 0; padding: 0; }
body.theme-client .home-times li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: baseline; border-top: 1px solid var(--line); padding: 9px 0; }
body.theme-client .home-times time { font-weight: 700; font-variant-numeric: tabular-nums; }
body.theme-client .next-card { display: grid; gap: 4px; align-content: start; justify-items: start; }
body.theme-client .next-card strong { font: 400 clamp(24px,3vw,36px)/1.1 var(--serif); letter-spacing: -.032em; }
.home-below { margin-bottom: 28px; }
@media (max-width: 719px) {
  body.theme-client .home-hero, body.theme-client .home-below, body.theme-client .appointment-layout { grid-template-columns: 1fr; }
  body.theme-client .home-hero { min-height: 0; padding: 22px 16px 16px; border-radius: 20px; gap: 16px; }
  body.theme-client .home-hero h1 { font-size: clamp(35px,9vw,55px); margin: 8px 0 12px; }
  body.theme-client .home-below { margin-top: 14px; gap: 16px; }
}
.cartes-accueil { display: grid; gap: 12px; min-width: 0; grid-template-columns: minmax(0,1fr); overflow-wrap: anywhere; }
#actualite-du-club { row-gap: 1px; }
#actualite-du-club > small { margin-bottom: 3px; }
.next-card .reservation-membre, .next-card .autres-reservations { width: 100%; min-width: 0; }
.reservation-membre summary { display: grid; gap: 5px; cursor: pointer; list-style: none; }
.reservation-membre summary::-webkit-details-marker { display: none; }
.reservation-membre time { color: var(--gigi-encre,#594d43); font-variant-numeric: tabular-nums; }
.lien-detail-resa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--gigi-rouge,#704530); font-size: .88rem; font-weight: 600; }
.lien-detail-resa::after, .autres-reservations > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.reservation-membre[open] > summary .lien-detail-resa::after, .autres-reservations > summary::after { transform: rotate(225deg); }
.details-reservation { display: grid; grid-template-columns: minmax(0,1fr) fit-content(48%); align-items: start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.details-reservation .infos { display: grid; gap: 4px; min-width: 0; }
.details-reservation .action { min-width: 0; justify-self: end; text-align: end; }
.reservation-compte-type { color: var(--gigi-encre,#715541); font-size: .84rem; font-weight: 600; }
.autres-reservations { border-block: 1px solid var(--line); }
.autres-reservations > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; list-style: none; padding: 12px 0; cursor: pointer; font-size: .9rem; font-weight: 600; }
.autres-reservations .reservation-membre { padding-top: 10px; }
body.theme-client .autres-reservations .reservation-membre strong { font-size: 1.25rem; }
.next-card .lien-agenda { color: var(--gigi-encre,#63584d); padding-block: 8px; font-size: .85rem; text-underline-offset: 3px; }

.home-hero > .balance { grid-area: 1/2; justify-self: end; align-self: start; }
.accueil-bienvenue { grid-area: 1/1/3/2; min-width: 0; overflow-wrap: anywhere; }
.home-hero .cartes-accueil { grid-area: 2/2; }
@media (max-width: 719px) {
  body.theme-client .entete-accueil.home-hero { grid-template-columns: minmax(0,1fr) auto; row-gap: 0; }
  .accueil-bienvenue { display: contents; }
  .accueil-bienvenue > small { grid-area: 1/1; align-self: center; }
  .accueil-bienvenue > :is(h1,a) { grid-column: 1/-1; justify-self: start; }
  .home-hero .cartes-accueil { grid-area: auto/1/auto/-1; margin-top: 16px; }
}
.produits-membre { min-width: 0; align-self: start; display: grid; gap: 16px; scroll-margin-top: 7rem; }
.bloc-produit-membre {
  --bloc-fond: var(--gigi-lichen-doux,#edf0e7); --bloc-nuance: var(--gigi-lichen-doux,#e3e9dd); --bloc-reflet: var(--gigi-lichen-doux,#d1dcca);
  min-width: 0; padding: clamp(18px,3vw,28px); border-radius: 20px; color: var(--gigi-lichen-texte,#354739);
  background: radial-gradient(ellipse at 98% 0,var(--bloc-reflet),transparent 65%),linear-gradient(110deg,var(--bloc-fond),var(--bloc-nuance));
}
.portefeuille-cartes { --bloc-fond: var(--gigi-fond,#f4f0e6); --bloc-nuance: var(--gigi-fond,#ebe5d8); --bloc-reflet: var(--gigi-bord,#e1d5c1); color: var(--gigi-encre,#514637); }
.produits-membre .compte-titre-section { margin: 0; color: inherit; font: 600 .9rem/1.2 var(--sans); letter-spacing: normal; scroll-margin-top: 7rem; }
.entete-cartes-membre { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
body.theme-client .produits-membre .carte-compte {
  margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid #7b80643b; border-radius: 0; background: transparent; box-shadow: none;
}
.produits-membre .carte-compte-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; }
.produits-membre .carte-compte-tete strong, .produits-membre .carte-membre h3 { color: var(--ink); font: 400 clamp(22px,2.3vw,30px)/1.15 var(--serif); letter-spacing: -.025em; }
.abonnement-identite { display: grid; gap: 3px; }
.produits-membre .montant-abo { color: var(--gigi-encre,#435647); font-variant-numeric: tabular-nums; }
.produits-membre .carte-compte-chiffres { gap: 10px 18px; }
.produits-membre .carte-abonnement .carte-compte-chiffres { margin-top: 12px; }
.produits-membre .chiffre-bloc strong { color: var(--gigi-encre,#405344); font: 550 1.2rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.produits-membre .chiffre-bloc small, .produits-membre .abonnement-periode { font-size: .84rem; color: var(--muted); }
.produits-membre .actions-abonnement-membre { justify-content: start; flex-wrap: wrap; gap: 8px; }
.produits-membre .modifier-abonnement-membre { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--gigi-encre,#405344); }

.liste-cartes-membre, .archives-cartes ul { margin: 0; padding: 0; list-style: none; }
.liste-cartes-membre { display: grid; gap: 16px; margin-top: 16px; }
.carte-membre {
  color: var(--gigi-encre,#384e3e); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 30%); align-items: center;
  gap: 10px 12px; padding-top: 16px; border-top: 1px solid #84745d40;
}
.carte-membre[data-type-credit^="sauna"] { color: var(--gigi-encre,#664937); }
.carte-membre[data-type-credit="prestation"] { color: var(--gigi-rouge,#654857); }
.carte-membre-identite, .carte-membre-solde { min-width: 0; overflow-wrap: anywhere; }
.carte-membre-discipline, .carte-membre-validite { display: flex; align-items: center; gap: 8px; }
.carte-membre-discipline { font-size: .84rem; font-weight: 600; }
.carte-membre svg { width: 18px; height: 18px; flex-shrink: 0; }
.carte-membre h3 { margin: 7px 0 0; }
.carte-membre-solde { display: grid; justify-items: end; gap: 3px; text-align: end; font-variant-numeric: tabular-nums; }
.carte-membre-solde strong { font: 400 clamp(30px, 3.4vw, 44px)/1.05 var(--serif); }
.carte-membre-solde small { font: 500 .9rem/1 var(--sans); white-space: nowrap; }
.carte-membre-solde > span, .carte-membre-validite { font-size: .82rem; line-height: 1.4; }
.carte-membre-validite { grid-column: 1/-1; margin: 0; }
.carte-membre-validite svg { width: 15px; height: 15px; }
.cartes-membre-vide { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #84745d40; }
.archives-cartes { margin-top: 8px; }
.archives-cartes summary { width: fit-content; padding: 12px 2px; cursor: pointer; font: 550 .88rem/1.4 var(--sans); color: var(--muted); }
.archives-cartes li { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.archives-cartes small { color: var(--muted); }
