/* =========================================================
   CAEMAS ? Espace Client
   Sidebar: navy #1b2a4a  |  Content: cr?me #f5f0e1
   ========================================================= */

:root {
  --navy:      #1b2a4a;
  --hero-blue: #173C7C;
  --royal:     #1C3E72;
  --orange:    #D85228;
  --base:      #f5f0e1;
  --lavender:  #8b7fc7;
  --mist:      #d5d3da;
  --sidebar-w: 220px;
  --topbar-h:  64px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ??? Reset ???????????????????????????????????????????? */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* BUG-36: curseur masqu? uniquement souris pr?cise */
@media (pointer: fine)  { *, *::before, *::after { cursor: none !important; } }
@media (pointer: coarse){ *, *::before, *::after { cursor: auto !important; } }
*::-webkit-scrollbar { display: none; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: "Barlow", sans-serif;
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}

/* ??? Cursor ??????????????????????????????????????????? */
#client-cursor {
  position: fixed; top: 0; left: 0;
  z-index: 100001; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease, width .18s ease, height .18s ease, margin .18s ease;
}
#client-cursor.is-big {
  width: 28px; height: 28px;
  margin-left: -7px; margin-top: -7px;
}
@media (pointer: coarse) { #client-cursor { display: none; } }

/* ??? Rideau (retour landing) ?????????????????????????? */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  background: #f5f0e1;
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
}

/* ??? Grain ???????????????????????????????????????????? */
.grain {
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none; background-repeat: repeat;
  opacity: 0.035;
}

/* ??? Loading screen ??????????????????????????????????? */
.admin-loading {
  position: fixed; inset: 0; z-index: 500;
  background: #06101f;
  display: flex; align-items: center; justify-content: center;
}
.admin-loading__inner {
  display: flex; align-items: center; justify-content: center;
}
.admin-loading__bar {
  width: clamp(80px, 14vw, 140px);
  height: 1px;
  background: rgba(200, 221, 245, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.admin-loading__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200,221,245,0.15) 20%,
    rgba(200,221,245,0.9) 50%,
    rgba(200,221,245,0.15) 80%,
    transparent 100%);
  animation: adm-load 1.8s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes adm-load {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ??? Shell ???????????????????????????????????????????? */
.admin-shell {
  display: flex; height: 100vh; overflow: hidden;
}

/* ??? Sidebar ?????????????????????????????????????????? */
.admin-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--navy);
  display: flex; flex-direction: column;
  height: 100vh;
  position: fixed; left: 0; top: 0; z-index: 100;
  border-right: 1px solid rgba(245,240,225,.05);
  transition: transform 0.4s var(--ease);
}

.admin-sidebar__head {
  padding: 1.7rem 1.4rem 1.3rem;
  border-bottom: 1px solid rgba(245,240,225,.06);
  display: flex; align-items: center; gap: 0.6rem;
}
.admin-sidebar__logo {
  display: flex; align-items: center; gap: 0.52rem;
  text-decoration: none; flex: 1;
}
.admin-sidebar__logo-img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  /* Fond blanc ? transparent via difference ; silhouette noire ? blanche sur navy */
  filter: invert(1);
  transition: transform 0.42s var(--ease);
}
.admin-sidebar__logo:hover .admin-sidebar__logo-img {
  transform: rotate(-8deg) scale(1.12);
}
.admin-sidebar__logo-text {
  font-size: 0.79rem; font-weight: 800;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--base);
}

/* Nav */
.admin-nav {
  flex: 1; padding: 1rem 0.7rem;
  display: flex; flex-direction: column; gap: 0.18rem;
  overflow-y: auto;
}
.admin-nav__item {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 0.78rem;
  width: 100%; background: none; border: none;
  padding: 0.72rem 0.9rem; border-radius: 10px;
  color: rgba(245,240,225,.44);
  font-family: "Barlow", sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.025em; text-align: left;
  transition: color 0.22s ease;
}
.admin-nav__item::before {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background: rgba(245,240,225,.055);
  opacity: 0; transition: opacity 0.22s ease;
}
.admin-nav__item:hover { color: rgba(245,240,225,.82); }
.admin-nav__item:hover::before { opacity: 1; }
.admin-nav__item.is-active {
  color: var(--base);
  background: rgba(245,240,225,.09);
}
.admin-nav__item.is-active::after {
  content: ""; position: absolute;
  right: 0; top: 50%;
  width: 3px;
  background: var(--orange);
  border-radius: 3px 0 0 3px;
  /* Animation : grandit depuis 0 vers 55% de hauteur */
  animation: navBarIn .38s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: 0 0 8px rgba(216,82,40,.6);
}
@keyframes navBarIn {
  from {
    height: 0;
    transform: translateY(-50%) scaleY(0);
    opacity: 0;
    box-shadow: 0 0 0 rgba(216,82,40,0);
  }
  to {
    height: 55%;
    transform: translateY(-50%) scaleY(1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(216,82,40,.55);
  }
}
.admin-nav__icon {
  width: 16px; height: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.55; transition: opacity 0.22s ease;
}
.admin-nav__icon svg {
  width: 16px; height: 16px;
  display: block; flex-shrink: 0;
}
.admin-nav__item.is-active .admin-nav__icon,
.admin-nav__item:hover .admin-nav__icon { opacity: 1; }
.admin-bottom-nav__icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-bottom-nav__icon svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.admin-logout__icon {
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
}
.admin-logout__icon svg { width: 15px; height: 15px; display: block; }

/* Sidebar footer */
.admin-sidebar__foot {
  padding: 0.9rem 0.7rem 1.4rem;
  border-top: 1px solid rgba(245,240,225,.06);
}
.admin-logout {
  display: flex; align-items: center; gap: 0.78rem;
  width: 100%; background: none; border: none;
  padding: 0.72rem 0.9rem; border-radius: 10px;
  color: rgba(245,240,225,.35);
  font-family: "Barlow", sans-serif;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.025em;
  text-align: left;
  transition: color 0.25s ease, background 0.25s ease;
}
.admin-logout:hover {
  color: var(--orange);
  background: rgba(216,82,40,.1);
}
.admin-logout__icon {
  font-size: 0.95rem; opacity: 0.65; display: inline-block;
  transition: transform 0.35s var(--ease);
}
.admin-logout:hover .admin-logout__icon { transform: translateX(4px); }

/* ??? Main area ???????????????????????????????????????? */
.admin-main {
  margin-left: var(--sidebar-w); flex: 1;
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
}

/* Topbar ? fusionne visuellement avec le hero navy */
.admin-topbar {
  height: var(--topbar-h); flex-shrink: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(245,240,225,.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  position: relative; z-index: 10;
}
.admin-topbar__left {
  display: flex; align-items: center; gap: 0.9rem;
}
.admin-topbar__title {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,240,225,.32);
}
.admin-menu-toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 34px; height: 34px;
  background: none; border: none; border-radius: 8px;
  transition: background 0.2s ease;
}
.admin-menu-toggle:hover { background: rgba(245,240,225,.07); }
.admin-menu-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: rgba(245,240,225,.6); border-radius: 2px;
}
.admin-user-chip {
  display: flex; align-items: center; gap: 0.75rem;
}
.admin-user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.79rem; font-weight: 800; flex-shrink: 0;
}
.admin-user-info { display: flex; flex-direction: column; }
.admin-user-name {
  font-size: 0.8rem; font-weight: 700;
  color: var(--base); line-height: 1.25;
}
.admin-user-email {
  font-size: 0.68rem; color: rgba(245,240,225,.42); line-height: 1.25;
}
/* Bouton retour adapt? au fond navy */
.client-back {
  background: rgba(245,240,225,.1) !important;
  border: 1px solid rgba(245,240,225,.15) !important;
  box-shadow: none !important;
  color: var(--base) !important;
}
.client-back:hover {
  background: rgba(245,240,225,.18) !important;
}

/* ??? Content area ????????????????????????????????????? */
.admin-content {
  flex: 1; overflow-y: auto;
  padding: 2.2rem 2.4rem;
  /* scrollbar native cach?e ? custom JS scrollbar ? la place */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.admin-content::-webkit-scrollbar { display: none; width: 0; }

/* ??? Client panels ???????????????????????????????????? */
.client-panel { display: none; }
.client-panel.is-active { display: block; }

.client-panel-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}
.client-tab__head {
  width: 100%;
  text-align: left;
  margin-bottom: 1.35rem;
}
.admin-tab__desc {
  font-size: 0.88rem;
  opacity: 0.52;
  margin-top: 0.5rem;
  line-height: 1.5;
  max-width: 36rem;
}

/* Retour landing ? m?me langage que .auth-back */
.client-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--base);
  text-decoration: none;
  cursor: none;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(27, 42, 74, 0.14);
}
.client-back svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s var(--ease);
}
.client-back:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.2);
}
.client-back:hover svg { transform: translateX(-3px); }
.client-back:active { transform: scale(1.02); }

/* Carte profil / onglets ? align?e admin (.adm-card / .ud-hero) */
.cl-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.06);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.cl-card:hover {
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.09);
}
.cl-card__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.03), rgba(216, 82, 40, 0.04));
}
.cl-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.cl-card__identity {
  flex: 1;
  min-width: 0;
}
.cl-card__name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--navy);
}
.cl-card__meta {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.52;
  line-height: 1.35;
  word-break: break-word;
}
.cl-card__spent {
  flex-shrink: 0;
  text-align: right;
  padding: 0.55rem 0.9rem;
  background: rgba(27, 42, 74, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(27, 42, 74, 0.06);
}
.cl-card__spent-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  opacity: 0.85;
  margin-bottom: 0.15rem;
  font-weight: 700;
}
.cl-card__spent-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.cl-card__body {
  padding: 1.35rem 1.5rem 1.1rem;
}
.cl-card__foot {
  padding: 0.85rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(27, 42, 74, 0.08);
}
.cl-card__foot .client-save-status { margin-top: 0; }

/* Tab head */
.admin-tab__head { margin-bottom: 2rem; }
.admin-section-eyebrow {
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(27,42,74,.33); margin-bottom: 0.4rem;
}
.admin-section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 0.94;
  letter-spacing: -0.024em; text-transform: uppercase;
  color: var(--navy);
}

/* ??? Sidebar overlay (mobile) ????????????????????????? */
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  z-index: 90;
  background: rgba(27,42,74,.38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.admin-sidebar-overlay.is-visible {
  opacity: 1; pointer-events: auto;
}

/* ??? Floating Pill Bottom Nav ???????????????????????????????? */
.admin-bottom-nav {
  display: none;
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(28px);
  width: calc(100% - 36px);
  max-width: 400px;
  height: 66px;
  border-radius: 100px;
  background: rgba(11, 16, 40, 0.90);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(245,240,225,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 6px 20px rgba(0,0,0,.30),
              inset 0 1px 0 rgba(255,255,255,.06);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.34,1.56,0.64,1),
              opacity  0.5s  ease;
}
.admin-bottom-nav.is-ready {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Sliding glow-pill indicator */
.admin-bottom-nav__pill {
  position: absolute;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255,90,0,.22) 0%, rgba(220,50,0,.12) 100%);
  border: 1px solid rgba(255,90,0,.30);
  box-shadow: 0 0 18px rgba(255,90,0,.18), inset 0 1px 0 rgba(255,160,60,.15);
  pointer-events: none;
  /* CSS-var positioning: no getBoundingClientRect() required */
  left: calc(var(--pill-index, 0) * 25% + 7px);
  width: calc(25% - 14px);
  transition: left  0.48s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 0;
}

.admin-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: rgba(245,240,225,.32);
  position: relative;
  z-index: 1;
  font-family: "Barlow", sans-serif;
  padding: 0;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}
.admin-bottom-nav__item.is-active { color: var(--orange); }
.admin-bottom-nav__item:not(.is-active):active .admin-bottom-nav__icon {
  transform: scale(0.82);
}

.admin-bottom-nav__icon {
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.42s cubic-bezier(0.34,1.56,0.64,1);
}
.admin-bottom-nav__icon svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.admin-bottom-nav__item.is-active .admin-bottom-nav__icon {
  transform: translateY(-3px) scale(1.18);
}

.admin-bottom-nav__label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.28s ease 0.06s, transform 0.38s cubic-bezier(0.34,1.56,0.64,1) 0.06s;
}
.admin-bottom-nav__item.is-active .admin-bottom-nav__label {
  opacity: 1;
  transform: translateY(0);
}

/* ??? Topbar mobile logo (hidden on desktop) ??????????? */
.admin-topbar__mobile-logo {
  display: none;
  align-items: center;
  gap: 0.45rem;
}
.admin-topbar__mobile-logo-mark {
  font-size: 0.88rem;
  color: var(--orange);
}
.admin-topbar__mobile-logo-text {
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ??? Mobile (? 768px) ???????????????????????????????? */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-sidebar-overlay { display: none !important; }
  .admin-menu-toggle { display: none; }

  .admin-topbar { height: 52px; padding: 0 1.2rem; }
  .admin-topbar__title { display: none; }
  .admin-topbar__mobile-logo { display: flex; }

  .admin-main { margin-left: 0; }
  .admin-content { padding: 1.5rem 1.2rem 100px; }

  .admin-user-info { display: none; }

  .admin-bottom-nav { display: flex; }

  .cl-form-grid { grid-template-columns: 1fr !important; }
  .cl-card__hero { flex-direction: column; align-items: flex-start; }
  .cl-card__spent { align-self: stretch; text-align: left; }
}

@media (max-width: 400px) {
  .cl-form-grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------
   CLIENT ? NOUVEAU DESIGN COMPLET
   ----------------------------------------------------------- */

/* -- admin-content padding reset pour le hero full-bleed -- */
.admin-content {
  padding: 0 !important;
  overflow-y: auto;
}

/* -- Panel body centr? -- */
.cl-panel-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  /* chevauchement de 4px pour masquer la jointure vague/corps */
  margin-top: -4px;
  position: relative;
  z-index: 1;
  background: var(--base);
}

/* -- client-panel -- */
.client-panel  { display: none; }
.client-panel.is-active { display: block; }

/* ----------------------------------------------------------
   HERO PANEL ? dark navy editorial banner
   ---------------------------------------------------------- */
.cl-ph {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  /* topbar is also navy ? zero gap, hero starts flush */
  padding: 2rem 2.8rem 4.8rem;
  margin-top: 0;
}
.cl-ph--sm { padding: 1.5rem 2.8rem 4rem; }

/* grain overlay */
.cl-ph__grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.038;
}

/* decorative blurred circle accent */
.cl-ph::before {
  content: "";
  position: absolute;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.065;
  top: -140px; right: -80px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.cl-ph__wrap {
  position: relative; z-index: 2;
  max-width: 860px; margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  
}

.cl-ph__id {
  display: flex; flex-direction: column; gap: .55rem;
}
.cl-ph__eye {
  font-size: .6rem; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin: 0;
}
.cl-ph__name {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.03em;
  text-transform: uppercase; color: var(--base);
  margin: 0; line-height: .95;
}
.cl-ph__email {
  font-size: .8rem; color: rgba(245,240,225,.42);
  margin: 0;
}

.cl-ph__aside {
  display: flex; align-items: center; gap: 1.6rem;
}
.cl-ph__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.02em;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(216,82,40,.25), 0 8px 24px rgba(0,0,0,.25);
}
.cl-ph__stat {
  display: flex; flex-direction: column; align-items: flex-end; gap: .18rem;
  padding: .7rem 1.1rem;
  background: rgba(245,240,225,.06);
  border: 1px solid rgba(245,240,225,.1);
  border-radius: 14px;
}
.cl-ph__stat-val {
  font-size: 1.4rem; font-weight: 800;
  color: var(--base); letter-spacing: -.03em;
  line-height: 1;
}
.cl-ph__stat-lbl {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,240,225,.45);
}

/* Wave SVG at bottom of hero ? CSS translateX, 0 JS */
.cl-ph__wavebox {
  position: absolute;
  bottom: 0; left: 0; right: 0; z-index: 2;
  line-height: 0; height: 62px;
  overflow: hidden;
}
.cl-ph__wave-svg {
  /* 300% wide, 3 periods ? slide by -33.33% = seamless loop (pilot� par GSAP) */
  width: 300%; height: 100%;
  display: block;
  will-change: transform;
}
.cl-ph__wave-path { fill: var(--base); }

/* ----------------------------------------------------------
   CARDS
   ---------------------------------------------------------- */
.cl-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,42,74,.07), 0 1px 3px rgba(27,42,74,.04);
  transition: box-shadow .3s;
  will-change: transform;
}
.cl-card:hover { box-shadow: 0 8px 36px rgba(27,42,74,.1); }

.cl-card__head {
  padding: 1.3rem 1.6rem 1.1rem;
  border-bottom: 1px solid rgba(27,42,74,.06);
  display: flex; align-items: baseline; gap: 1rem;
  justify-content: space-between;
}
.cl-card__head-title {
  font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy);
}
.cl-card__head-sub {
  font-size: .68rem; color: rgba(27,42,74,.38);
}
.cl-card__body  { padding: 1.5rem 1.6rem 1.1rem; }
.cl-card__foot  {
  padding: .9rem 1.6rem 1.2rem;
  border-top: 1px solid rgba(27,42,74,.06);
  display: flex; align-items: center; gap: .75rem;
}

/* -- Form fields ? floating label -- */
.cl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.4rem;
}
.cl-field {
  position: relative;
}
.cl-field input {
  width: 100%;
  padding: 1.25rem 1rem .55rem;
  background: rgba(27,42,74,.03);
  border: 1.5px solid rgba(27,42,74,.12);
  border-radius: 12px;
  font-family: "Barlow", sans-serif;
  font-size: .9rem;
  color: var(--navy);
  outline: none;
  transition: border-color .2s, background .2s;
}
.cl-field input:focus {
  border-color: var(--navy);
  background: rgba(27,42,74,.01);
}
.cl-field input:disabled {
  opacity: .55;
  background: rgba(27,42,74,.04);
}
/* Floating label */
.cl-field > label {
  position: absolute;
  left: 1rem; top: .55rem;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(27,42,74,.38);
  pointer-events: none;
  transition: none;
}
.cl-field input:not(:placeholder-shown) + label,
.cl-field input:focus + label {
  color: var(--orange);
}
.cl-field small {
  font-size: .65rem;
  color: rgba(27,42,74,.35);
  margin-top: .28rem;
  display: block;
  padding-left: .2rem;
}
.cl-field--wide { grid-column: 1 / -1; }

/* Country display (readonly field) */
.cl-country-display {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.25rem 1rem .55rem;
  background: rgba(27,42,74,.04);
  border: 1.5px solid rgba(27,42,74,.1);
  border-radius: 12px;
  min-height: 52px;
}
.cl-country__flag { border-radius: 3px; flex-shrink: 0; }
.cl-country__text { font-size: .9rem; color: var(--navy); }
.cl-label--static {
  display: block;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(27,42,74,.38);
  margin-top: .3rem;
  padding-left: .2rem;
}

/* Save status */
.client-save-status { font-size: .75rem; flex: 1; }
.client-save-status.is-saving  { color: rgba(27,42,74,.5); }
.client-save-status.is-success { color: #15803d; }
.client-save-status.is-error   { color: #dc2626; }

/* ----------------------------------------------------------
   LISTS (achats, formations, notifications)
   ---------------------------------------------------------- */
.cl-list {
  display: flex; flex-direction: column; gap: .85rem;
}
.client-empty {
  text-align: center;
  font-size: .85rem;
  color: rgba(27,42,74,.35);
  padding: 3rem 0;
}

/* ----------------------------------------------------------
   PURCHASE CARDS ? nouveau design dark-head
   ---------------------------------------------------------- */
.cl-pc {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(27,42,74,.07), 0 1px 3px rgba(27,42,74,.04);
  transition: box-shadow .25s;
  will-change: transform;
}
.cl-pc:hover {
  box-shadow: 0 10px 40px rgba(27,42,74,.11);
}

/* Dark header band */
.cl-pc__head {
  position: relative;
  background: linear-gradient(130deg, var(--navy) 0%, #243660 100%);
  padding: 1.1rem 1.3rem .95rem;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  overflow: hidden;
}
.cl-pc__head-left  { flex: 1; min-width: 0; }
.cl-pc__head-eye {
  font-size: .55rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,240,225,.4);
  margin: 0 0 .28rem;
}
.cl-pc__head-title {
  font-size: .92rem; font-weight: 800;
  color: var(--base); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-pc__head-when {
  font-size: .72rem;
  color: rgba(245,240,225,.5);
  margin: .3rem 0 0;
}
.cl-pc__reschedule-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1.5px solid rgba(240,234,216,.28);
  border-radius: 10px;
  background: rgba(240,234,216,.08);
  color: rgba(240,234,216,.92);
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .22s ease, color .22s ease;
}
.cl-pc__reschedule-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}
/* Icône calendrier de l'indicateur « Replanifié » — DOIT être contrainte,
   sinon le SVG (sans width/height) remplit toute la carte. */
.cl-pc__head-resched svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}
.cl-pc__reschedule-btn:hover {
  background: rgba(240,234,216,.18);
  border-color: rgba(240,234,216,.55);
  color: #fff;
  transform: scale(1.06);
}
.cl-pc__reschedule-btn:active {
  transform: scale(0.98);
}

.cl-pc__head-right {
  display: flex; flex-direction: row;
  align-items: center; gap: .5rem;
  flex-shrink: 0;
}

/* Badge statut */
.cl-badge {
  display: inline-flex; align-items: center;
  padding: .22rem .65rem;
  border-radius: 999px;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
}
.badge--ok     { background: rgba(34,197,94,.18);  color: #bbf7d0; border: 1px solid rgba(34,197,94,.3); }
.badge--warn   { background: rgba(251,191,36,.15); color: #fde68a; border: 1px solid rgba(251,191,36,.25); }
.badge--err    { background: rgba(248,113,113,.15);color: #fecaca; border: 1px solid rgba(248,113,113,.25); }
.badge--muted  { background: rgba(255,255,255,.08); color: rgba(245,240,225,.45); border: 1px solid rgba(255,255,255,.1); }
.badge--refund { background: rgba(167,139,250,.15); color: #ddd6fe; border: 1px solid rgba(167,139,250,.25); }

/* White body */
.cl-pc__body {
  padding: 1rem 1.3rem 1.1rem;
}
.cl-pc__price-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.cl-pc__price {
  font-size: 1.35rem; font-weight: 800;
  color: var(--navy); letter-spacing: -.03em;
}
.cl-pc__bought {
  font-size: .7rem; color: rgba(27,42,74,.35);
  text-align: right;
}

/* Footer / refund row */
.cl-pc__foot {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: .8rem; padding-top: .75rem;
  border-top: 1px solid rgba(27,42,74,.06);
}
.cl-pc__timer {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; color: rgba(27,42,74,.5);
}
.cl-pc__timer svg { width: 13px; height: 13px; }

.cl-pc__refund-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem;
  border-radius: 100px;
  border: 1.5px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.05);
  color: #dc2626; font-size: .72rem; font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer; font-family: inherit;
  transition: background .18s, border-color .18s;
}
.cl-pc__refund-btn:hover { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.4); }
.cl-pc__refund-btn svg { width: 12px; height: 12px; animation: pcSpin 1.2s linear infinite; }
@keyframes pcSpin { to { transform: rotate(360deg); } }

/* Status pills */
.cl-pc__pill {
  display: inline-flex; align-items: center; gap: .38rem;
  margin-top: .7rem;
  font-size: .72rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 100px;
}
.cl-pc__pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.cl-pc__pill--ok     { background: rgba(34,197,94,.1);  color: #15803d; }
.cl-pc__pill--err    { background: rgba(220,38,38,.08); color: #dc2626; }
.cl-pc__pill--muted  { background: rgba(27,42,74,.06);  color: rgba(27,42,74,.45); }
.cl-pc__pill--purple { background: rgba(139,92,246,.1); color: #6d28d9; }
.cl-pc__pill--purple svg { animation: pcSpin 1.4s linear infinite; }

/* ----------------------------------------------------------
   FORMATION & NOTIFICATION items
   ---------------------------------------------------------- */
.client-item {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 2px 10px rgba(27,42,74,.06);
  transition: box-shadow .2s, transform .2s;
}
.client-item:hover { box-shadow: 0 6px 22px rgba(27,42,74,.09); transform: translateY(-1px); }
.client-item strong { font-size: .9rem; font-weight: 700; color: var(--navy); }
.client-item p  { font-size: .8rem; color: rgba(27,42,74,.55); margin-top: .35rem; line-height: 1.5; }
.client-item small { font-size: .68rem; color: rgba(27,42,74,.32); margin-top: .4rem; display: block; }
.client-item--unread { border-left: 3px solid var(--orange); }

/* Formations achetées */
.client-item__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  margin-top: .5rem;
}
.client-item__ticket { font-size: .74rem; color: rgba(27,42,74,.55); }
.client-item__ticket code {
  font-weight: 700; color: var(--navy);
  background: rgba(27,42,74,.06); padding: .12rem .4rem; border-radius: 5px;
}
.client-item__price { font-size: .82rem; font-weight: 700; color: var(--orange); }
.client-access-btn {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem;
  background: var(--navy); color: #fff; text-decoration: none;
  font-size: .8rem; font-weight: 700; padding: .55rem 1rem; border-radius: 999px;
  transition: background .2s, transform .15s;
}
.client-access-btn:hover { background: #243a63; transform: translateY(-1px); }
.client-item--formation { border-left: 3px solid var(--navy); }

/* ----------------------------------------------------------
   DANGER ZONE
   ---------------------------------------------------------- */
.cl-danger-zone {
  border-radius: 20px;
  background: var(--orange);
  position: relative;
  overflow: hidden;
}
/* Grain sur la carte */
.cl-danger-zone::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.055;
  pointer-events: none;
}
/* Cercle d?co */
.cl-danger-zone::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -80px; right: -50px;
  pointer-events: none; z-index: 0;
  filter: blur(40px);
}
.cl-dz__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
  padding: 1.7rem 1.9rem; flex-wrap: wrap;
}
.cl-dz__eyebrow {
  font-size: .55rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: .3rem;
}
.cl-dz__title {
  font-size: 1rem; font-weight: 800;
  color: #fff; margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.cl-dz__desc {
  font-size: .78rem; color: rgba(255,255,255,.72);
  line-height: 1.55; max-width: 460px;
}
.cl-dz__desc strong { color: #fff; font-weight: 800; }
.cl-dz__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.5rem; border-radius: 100px;
  font-size: .74rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  font-family: inherit; cursor: pointer;
  border: none;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: background .18s, color .18s, transform .15s, box-shadow .18s;
  flex-shrink: 0;
}
.cl-dz__btn:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

/* ----------------------------------------------------------
   MODAL DANGER ZONE
   ---------------------------------------------------------- */
.cl-dz-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.cl-dz-modal[hidden] { display: none; }
.cl-dz-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,5,5,.64);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cl-dz-modal__box {
  position: relative;
  background: #fff; border-radius: 22px;
  padding: 2.4rem 2.2rem 2rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 32px 80px rgba(120,20,20,.2);
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center;
  opacity: 0;
  transform: scale(.92) translateY(16px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.34,1.56,.64,1);
}
.cl-dz-modal__box.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.cl-dz-modal__icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(185,28,28,.08);
  display: flex; align-items: center; justify-content: center;
  color: #b91c1c;
}
.cl-dz-modal__icon svg { width: 28px; height: 28px; }
.cl-dz-modal__title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -.02em; }
.cl-dz-modal__body  { font-size: .83rem; line-height: 1.6; color: rgba(22,19,15,.52); margin: 0; max-width: 300px; }
.cl-dz-modal__body strong { color: rgba(22,19,15,.8); }
.cl-dz-modal__code  { font-family: monospace; font-size: .8rem; background: rgba(185,28,28,.08); color: #b91c1c; padding: .1rem .4rem; border-radius: 5px; }
.cl-dz-modal__input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid rgba(185,28,28,.2); border-radius: 10px;
  font-family: monospace; font-size: .88rem; color: var(--navy);
  background: rgba(185,28,28,.03); outline: none; text-align: center;
  letter-spacing: .08em; transition: border-color .18s;
}
.cl-dz-modal__input:focus { border-color: rgba(185,28,28,.5); }
.cl-dz-modal__foot { display: flex; gap: .6rem; width: 100%; }
.cl-dz-modal__cancel {
  flex: 1; padding: .72rem;
  border-radius: 100px; border: 1.5px solid rgba(27,42,74,.15);
  background: transparent; font-size: .78rem; font-weight: 600;
  color: rgba(27,42,74,.55); cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.cl-dz-modal__cancel:hover { background: rgba(27,42,74,.05); }
.cl-dz-modal__confirm {
  flex: 1.5; padding: .72rem;
  border-radius: 100px; border: none;
  background: #b91c1c; color: #fff;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: opacity .18s;
}
.cl-dz-modal__confirm:disabled { opacity: .32; cursor: not-allowed; }
.cl-dz-modal__confirm:not(:disabled):hover { opacity: .85; }
.cl-dz-modal__spinner,.cl-rfm__spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: pcSpin .7s linear infinite;
}
.cl-dz-modal__err { font-size: .77rem; color: #b91c1c; background: rgba(185,28,28,.07); border-radius: 8px; padding: .45rem .8rem; width: 100%; text-align: center; }

/* ----------------------------------------------------------
   MODAL REMBOURSEMENT
   ---------------------------------------------------------- */
.cl-rfm {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.cl-rfm[hidden] { display: none; }
.cl-rfm__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,8,20,.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.cl-rfm__box {
  position: relative;
  background: #fff; border-radius: 22px;
  padding: 2.2rem 2rem 1.8rem;
  max-width: 400px; width: 100%;
  box-shadow: 0 28px 70px rgba(27,42,74,.18);
  display: flex; flex-direction: column; align-items: center;
  gap: .85rem; text-align: center;
  /* animation d'entr?e CSS ? pas de d?pendance GSAP */
  opacity: 0;
  transform: scale(.92) translateY(16px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.34,1.56,.64,1);
}
.cl-rfm__box.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.cl-rfm__icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(27,42,74,.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.cl-rfm__icon svg { width: 30px; height: 30px; }
.cl-rfm__title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -.02em; }
.cl-rfm__body  { font-size: .83rem; line-height: 1.6; color: rgba(22,19,15,.5); margin: 0; max-width: 300px; }
.cl-rfm__foot  { display: flex; gap: .6rem; width: 100%; margin-top: .3rem; }
.cl-rfm__cancel {
  flex: 1; padding: .7rem;
  border-radius: 100px; border: 1.5px solid rgba(27,42,74,.15);
  background: transparent; font-size: .78rem; font-weight: 600;
  color: rgba(27,42,74,.55); cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.cl-rfm__cancel:hover { background: rgba(27,42,74,.06); }
.cl-rfm__confirm {
  flex: 1.5; padding: .7rem;
  border-radius: 100px; border: none;
  background: linear-gradient(135deg, var(--navy), #2d4080);
  color: #fff; font-size: .78rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: opacity .15s;
}
.cl-rfm__confirm:hover { opacity: .88; }
.cl-rfm__confirm:disabled { opacity: .35; cursor: not-allowed; }
.cl-rfm__err { font-size: .77rem; color: #dc2626; background: rgba(220,38,38,.07); border-radius: 8px; padding: .4rem .8rem; width: 100%; text-align: center; }
.cl-rvm__err { font-size: .77rem; color: #dc2626; background: rgba(220,38,38,.07); border-radius: 8px; padding: .4rem .8rem; width: 100%; text-align: center; margin: 0; }

/* ----------------------------------------------------------
   AVIS CLIENT — étoiles + bloc sur cartes + modale
   ---------------------------------------------------------- */
.cl-stars { display: inline-flex; align-items: center; gap: .15rem; }
.cl-star { display: inline-flex; width: 22px; height: 22px; color: #d8b24a; line-height: 0; }
.cl-star__svg { width: 100%; height: 100%; display: block; }
.cl-stars--static .cl-star { color: #e0a92e; }
.cl-stars--static .cl-star:not(.is-on) { color: rgba(27,42,74,.22); }

.cl-star--btn {
  -webkit-appearance: none; appearance: none;
  background: none; border: none; padding: 2px; margin: 0;
  cursor: pointer; color: rgba(27,42,74,.25);
  transition: color .15s ease, transform .15s cubic-bezier(.34,1.56,.64,1);
}
.cl-star--btn:hover { transform: scale(1.18); }
.cl-star--btn.is-on { color: #e0a92e; }

/* Bloc avis dans la carte d'achat */
.cl-rev {
  margin-top: .9rem;
  padding-top: .85rem;
  border-top: 1px dashed rgba(27,42,74,.14);
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
}
.cl-rev__label {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(27,42,74,.45);
}
.cl-rev .cl-stars--input { gap: .1rem; }
.cl-rev__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.cl-rev__comment {
  font-size: .82rem; font-style: italic; line-height: 1.5;
  color: rgba(27,42,74,.7); margin: 0;
}
.cl-rev__pending {
  font-size: .7rem; font-weight: 600; color: #b8861d;
  background: rgba(224,169,46,.12); border-radius: 100px; padding: .2rem .6rem; margin: 0;
}
.cl-rev__edit {
  -webkit-appearance: none; appearance: none;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: .76rem; font-weight: 700; color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px;
  transition: opacity .15s;
}
.cl-rev__edit:hover { opacity: .65; }

/* Modale avis — étoiles plus grandes + textarea */
.cl-rvm__stars { display: inline-flex; gap: .25rem; margin: .1rem 0 .2rem; }
.cl-rvm__stars .cl-star--btn { width: 38px; height: 38px; }
.cl-rvm__textarea {
  width: 100%; resize: vertical; min-height: 84px;
  border: 1.5px solid rgba(27,42,74,.15); border-radius: 14px;
  padding: .75rem .9rem; font-family: inherit; font-size: .85rem; line-height: 1.5;
  color: var(--navy); background: #fbfaf7;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cl-rvm__textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,.08);
}

/* ----------------------------------------------------------
   SCROLLBAR CUSTOM (style index ? 2px, mix-blend-mode)
   ---------------------------------------------------------- */
.cl-scrollbar {
  position: fixed;
  top: 0; right: 0;
  width: 2px;
  height: 100vh;
  z-index: 99998;
  pointer-events: none;
  background: transparent;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s ease;
}
.cl-scrollbar.is-visible { opacity: 1; }
.cl-scrollbar__thumb {
  position: absolute;
  right: 0; top: 0;
  width: 2px;
  background: #fff;
  border-radius: 1px;
  transition: height .1s linear, transform .1s linear;
  opacity: .65;
}
/* Pastille ronde en bas du thumb */
.cl-scrollbar__thumb::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: inherit;
}

/* ----------------------------------------------------------
   REVEAL ANIMATION target
   ---------------------------------------------------------- */
.cl-reveal { }

/* Hero content always fully visible ? never hidden by GSAP or other */
.cl-ph__id > *,
.cl-ph__aside > * {
  opacity: 1;
  will-change: transform;
}

/* ----------------------------------------------------------
   RETOUR LANDING
   ---------------------------------------------------------- */
.client-back {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 50%; background: var(--navy); color: var(--base);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .3s;
  box-shadow: 0 4px 18px rgba(27,42,74,.14);
}
.client-back svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.client-back:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(27,42,74,.2); }
.client-back:hover svg { transform: translateX(-3px); }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-sidebar-overlay { display: none !important; }
  .admin-menu-toggle { display: none; }
  .admin-topbar { height: 52px; padding: 0 1.2rem; }
  .admin-topbar__title { display: none; }
  .admin-topbar__mobile-logo { display: flex; }
  .admin-main { margin-left: 0; }
  .admin-user-info { display: none; }
  .admin-bottom-nav { display: flex; }

  .cl-ph { padding: 2rem 1.4rem 3.8rem; }
  .cl-ph__name { font-size: 1.8rem; }
  .cl-ph__avatar { width: 48px; height: 48px; font-size: 1.1rem; }
  .cl-ph__stat { display: none; }
  .cl-panel-body { padding: 1.4rem 1rem 6.5rem; }
  .cl-form-grid { grid-template-columns: 1fr !important; }
  .cl-dz__inner { flex-direction: column; align-items: flex-start; }
  .cl-pc__head-title { font-size: .85rem; }
  .cl-pc__price { font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .cl-form-grid { grid-template-columns: 1fr; }
}

/* -- Bouton re?u PDF dans les cartes d'achat -- */
.cl-pc__receipt-row {
  padding: .75rem 1.25rem .9rem;
  border-top: 1px solid rgba(27,42,74,.07);
  display: flex; justify-content: flex-end;
}
.cl-pc__receipt-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent;
  color: rgba(27,42,74,.55);
  border: 1.5px solid rgba(27,42,74,.18);
  border-radius: 9px; padding: .45rem .95rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: all .25s var(--ease, cubic-bezier(.16,1,.3,1));
}
.cl-pc__receipt-btn:hover {
  border-color: var(--navy, #1b2a4a);
  color: var(--navy, #1b2a4a);
  background: rgba(27,42,74,.04);
  transform: translateY(-1px);
}
