  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --sage: #4f7257;
    --sage-light: #b5cdb9;
    --sage-pale: #ecf1ec;
    --sand: #e6e1d4;
    --sand-dark: #bfb293;
    --clay: #b07d5b;
    --dark: #1f231e;
    --mid: #585d56;
    --light: #f5f5f0;
    --white: #fefefe;
    --radius: 12px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Instrument Sans', sans-serif;
    background: var(--light);
    color: var(--dark);
    font-size: 16px;
    line-height: 1.6;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(245,245,240,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79,114,87,0.2);
    padding: 0 2rem;
    /* Respecte l'encoche / Dynamic Island iOS */
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    height: calc(64px + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between;
  }

  .logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    letter-spacing: 0.5px;
    color: var(--dark);
    cursor: pointer;
  }
  .logo span { color: var(--sage); font-style: normal; font-weight: 500; }

  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    font-size: 14px; font-weight: 400; color: var(--mid); text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--sage); }

  .nav-right { display: flex; align-items: center; gap: 10px; }

  .nav-cta {
    background: var(--sage); color: white; border: none;
    padding: 9px 20px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
  }
  .nav-cta:hover { background: #3f5d46; }

  .nav-account-btn {
    background: transparent; color: var(--dark); border: 1.5px solid var(--sand-dark);
    padding: 8px 16px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 400;
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px;
  }
  .nav-account-btn:hover { border-color: var(--sage); color: var(--sage); }
  .nav-account-btn.logged { background: var(--sage-pale); border-color: var(--sage-light); color: var(--sage); }

  /* HERO */
  #hero {
    min-height: 100vh;
    padding: 100px 2rem 4rem;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center;
  }

  .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
      radial-gradient(ellipse 60% 70% at 80% 40%, rgba(200,221,201,0.45) 0%, transparent 70%),
      radial-gradient(ellipse 40% 50% at 20% 80%, rgba(232,223,208,0.5) 0%, transparent 60%),
      var(--light);
  }

  .hero-layout {
    position: relative; z-index: 1;
    max-width: 1200px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 4rem; align-items: center;
  }
  .hero-content { animation: fadeUp 0.8s ease both; }

  /* Sans photo hero (visiteur), la colonne vide disparaît : on recentre */
  .hero-layout:has(#uph-hero:not(.has-photo)) {
    grid-template-columns: 1fr;
    max-width: 780px;
  }
  body.admin-active .hero-layout:has(#uph-hero:not(.has-photo)) {
    grid-template-columns: 1.1fr 1fr;
    max-width: 1200px;
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  .hero-photo-col {
    position: relative; animation: fadeUp 0.9s ease both; animation-delay: 0.3s; opacity: 0;
  }
  .uph-hero {
    aspect-ratio: 4/5; min-height: unset;
    width: 100%; border-radius: 20px;
    box-shadow: 0 24px 56px rgba(44,44,40,0.15);
  }
  .uph-hero.has-photo { border-radius: 20px; overflow: hidden; }

  @media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-photo-col { max-width: 420px; justify-self: center; width: 100%; }
    .uph-hero { aspect-ratio: 4/3; }
  }

  .hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: none;
    padding: 0; border-radius: 0;
    font-size: 13px; color: var(--sage); font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 1.5rem;
  }
  .hero-tag::before { content: ''; width: 22px; height: 2px; border-radius: 0; background: var(--sage); }

  h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.5rem, 5.2vw, 3.7rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--dark);
  }
  h1 em, h2 em {
    font-style: normal; color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(79,114,87,0.5);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.16em;
  }

  .hero-sub {
    font-size: 17px; color: var(--mid); font-weight: 300;
    margin-bottom: 2rem; max-width: 480px; line-height: 1.7;
  }

  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary {
    background: var(--dark); color: white; border: none;
    padding: 13px 28px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
  }
  .btn-primary:hover { background: var(--sage); transform: translateY(-1px); }

  .btn-outline {
    background: transparent; color: var(--dark);
    border: 1.5px solid var(--sand-dark);
    padding: 13px 28px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 400;
    cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
  }
  .btn-outline:hover { border-color: var(--sage); color: var(--sage); }

  .hero-stats {
    display: flex; gap: 0; margin-top: 3rem;
    padding-top: 1.5rem; border-top: 1px solid var(--sand);
  }
  /* Traitement éditorial : l'étiquette (petites capitales sauge) coiffe la valeur,
     posée en corps de texte — informations pratiques, pas tableau de bord. */
  .hero-stats > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 0 1.9rem; border-left: 1px solid var(--sand); }
  .hero-stats > div:first-child { padding-left: 0; border-left: none; }
  /* Bloc dont tous les textes sont vides : masque HORS edition seulement.
     En mode edition il reste visible avec son placeholder, sinon on ne
     pourrait jamais le remplir a nouveau. */
  body:not(.edit-mode) .ed-empty-block { display: none !important; }
  /* Quand un bloc est masque, le suivant devient le premier visible :
     il ne doit plus porter le separateur de gauche.
     N'est pose QUE sur de vrais separateurs (bordure a gauche seulement),
     jamais sur une carte encadree sur ses quatre cotes. */
  .ed-first-visible { border-left: none !important; padding-left: 0 !important; }
  .stat-num { font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 16px; color: var(--dark); letter-spacing: 0; }
  .stat-label { font-size: 11px; color: var(--sage); margin-top: 0; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500; }

  /* SECTIONS */
  section { padding: 5rem 2rem; }
  .section-inner { max-width: 900px; margin: 0 auto; }

  .section-tag {
    font-size: 12px; font-weight: 500; color: var(--sage);
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.12; margin-bottom: 1rem; color: var(--dark);
  }

  .section-intro { font-size: 17px; color: var(--mid); font-weight: 300; max-width: 560px; }

  /* SERVICES */
  #services { background: var(--white); }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
  }

  .service-card {
    background: var(--light); border-radius: var(--radius);
    padding: 2rem 1.75rem;
    border: 1px solid transparent;
    transition: all 0.25s;
    position: relative; overflow: hidden;
  }
  .service-card::after {
    content: '';
    pointer-events: none; position: absolute; inset: 0;
    border-radius: var(--radius);
    border: 1.5px solid var(--sage-light);
    opacity: 0; transition: opacity 0.25s;
  }
  .service-card:hover { transform: translateY(-3px); background: var(--sage-pale); }
  .service-card:hover::after { opacity: 1; }

  .service-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--sage-pale); border: 1px solid var(--sage-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; font-size: 22px; color: var(--sage);
  }
  .service-icon svg { display: block; }
  .service-title { font-weight: 500; font-size: 17px; margin-bottom: 0.6rem; }
  .service-desc { font-size: 14px; color: var(--mid); line-height: 1.65; }

  /* PHOTO ZONE */
  .photo-zone {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 2.5rem;
    position: relative;
    background: var(--sand);
    min-height: 280px;
    display: flex; align-items: center; justify-content: center;
  }
  .photo-zone img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    max-height: 380px;
  }
  .photo-zone-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--mid); font-size: 14px; text-align: center; padding: 3rem;
  }
  .photo-zone-placeholder .pz-icon { font-size: 36px; opacity: 0.5; }
  .photo-zone-edit-btn {
    position: absolute; top: 12px; right: 12px;
    background: rgba(44,44,40,0.75); color: white; border: none;
    padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 500;
    cursor: pointer; font-family: 'Instrument Sans', sans-serif;
    display: none; transition: background 0.2s;
    backdrop-filter: blur(4px);
  }
  .photo-zone-edit-btn:hover { background: rgba(79,114,87,0.9); }
  body.admin-active .photo-zone-edit-btn { display: block; }

  .photos-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem;
  }
  .photo-cell {
    border-radius: 12px; overflow: hidden;
    aspect-ratio: 1;
    background: var(--sand);
    position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .photo-cell img { width: 100%; height: 100%; object-fit: cover; }
  .photo-cell-placeholder { font-size: 24px; opacity: 0.35; }
  .photo-cell-edit {
    position: absolute; inset: 0; background: rgba(0,0,0,0.45);
    display: none; align-items: center; justify-content: center;
    cursor: pointer; color: white; font-size: 13px; font-weight: 500;
    border-radius: 12px;
  }
  body.admin-active .photo-cell:hover .photo-cell-edit { display: flex; }

  /* APPROACH */
  #approche { background: var(--sand); }

  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 3rem; }

  .step { display: flex; flex-direction: column; gap: 0.75rem; }
  .step-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 3rem; color: var(--sage); opacity: 0.4; line-height: 1; }
  .step-title { font-weight: 500; font-size: 16px; }
  .step-text { font-size: 14px; color: var(--mid); }

  /* TÉMOIGNAGES */
  #temoignages { background: var(--white); }

  .reviews-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
  .reviews-header .section-intro { margin-bottom: 0; }

  .reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 0; }

  .review-card {
    background: var(--light); border-radius: var(--radius);
    padding: 1.75rem; position: relative;
    border: 1px solid transparent; transition: border-color 0.2s;
  }
  .review-card:hover { border-color: var(--sage-light); }
  .review-stars { color: var(--clay); font-size: 14px; margin-bottom: 0.75rem; letter-spacing: 2px; }
  .review-text { font-size: 15px; font-style: italic; color: var(--dark); line-height: 1.7; margin-bottom: 1rem; }
  .review-author { font-size: 13px; font-weight: 500; color: var(--mid); }
  .review-date { font-size: 11px; color: var(--sand-dark); margin-top: 4px; }
  .review-reply {
    margin-top: 1rem; padding: 10px 14px;
    background: var(--sage-pale); border-radius: 10px; border-left: 3px solid var(--sage);
    font-size: 13px; color: var(--mid);
  }
  .review-reply strong { color: var(--sage); }
  .review-badge-pending {
    position: absolute; top: 12px; right: 12px;
    background: #fff8e1; border: 1px solid #f0c040; color: #a07830;
    font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 10px;
  }

  .reviews-empty {
    text-align: center; padding: 3.5rem 2rem;
    background: var(--light); border-radius: var(--radius);
    border: 2px dashed var(--sand);
    color: var(--mid);
  }
  .reviews-empty .re-icon { font-size: 36px; margin-bottom: 0.75rem; }
  .reviews-empty p { font-size: 14px; }

  .add-review-btn {
    background: var(--sage); color: white; border: none;
    padding: 10px 22px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background 0.2s; white-space: nowrap;
  }
  .add-review-btn:hover { background: #3f5d46; }

  /* TARIFS */
  #tarifs { background: var(--light); }

  .pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 3rem; }

  .pricing-card {
    background: var(--white); border-radius: var(--radius);
    padding: 2rem 1.75rem;
    border: 1.5px solid var(--sand);
    transition: all 0.25s;
  }
  .pricing-card.featured { background: var(--dark); border-color: var(--dark); color: white; }
  .pricing-card:not(.featured):hover { border-color: var(--sage); transform: translateY(-2px); }

  .pricing-label { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--mid); margin-bottom: 0.5rem; }
  .pricing-card.featured .pricing-label { color: var(--sage-light); }
  .pricing-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; margin-bottom: 1rem; }
  .pricing-card.featured .pricing-name { color: white; }
  .pricing-price { font-size: 2rem; font-weight: 500; color: var(--sage); margin-bottom: 0.25rem; }
  .pricing-card.featured .pricing-price { color: var(--sage-light); }
  .pricing-period { font-size: 13px; color: var(--mid); margin-bottom: 1.5rem; }
  .pricing-card.featured .pricing-period { color: #aaa; }
  .pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .pricing-features li { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; color: var(--mid); }
  .pricing-card.featured .pricing-features li { color: #ccc; }
  .pricing-features li::before { content: '✓'; color: var(--sage); font-weight: 500; flex-shrink: 0; }
  .pricing-card.featured .pricing-features li::before { color: var(--sage-light); }

  /* RÉSERVATION */
  #reservation { background: var(--sage-pale); border-top: 1px solid var(--sage-light); }

  .booking-system {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start;
  }
  @media (max-width: 800px) { .booking-system { grid-template-columns: 1fr; gap: 2rem; } }

  .booking-steps {
    display: flex; gap: 0; margin-bottom: 2rem; align-items: center;
  }
  .bstep { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mid); font-weight: 400; }
  .bstep-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--sand); color: var(--mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
    transition: all 0.3s;
  }
  .bstep.active .bstep-num { background: var(--sage); color: white; }
  .bstep.done .bstep-num { background: var(--dark); color: white; }
  .bstep.active { color: var(--dark); font-weight: 500; }
  .bstep-line { flex: 1; height: 2px; background: var(--sand); margin: 0 8px; transition: background 0.3s; }
  .bstep-line.done { background: var(--sage); }

  .booking-panel {
    background: var(--white); border-radius: 18px;
    padding: 2.25rem; border: 1px solid var(--sage-light);
    box-shadow: 0 4px 24px rgba(79,114,87,0.1);
  }
  .booking-panel-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; margin-bottom: 0.25rem; }
  .booking-panel-sub { font-size: 13px; color: var(--mid); margin-bottom: 1.75rem; }

  /* Step view — transitions fluides entre étapes */
  .step-view {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.35s cubic-bezier(0.2, 0.65, 0.3, 1),
                transform 0.4s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .step-view.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: stepIn 0.5s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }
  @keyframes stepIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* Step indicator — transitions douces */
  .bstep { transition: color 0.4s ease; }
  .bstep-num {
    transition: background 0.4s cubic-bezier(0.2, 0.65, 0.3, 1),
                color 0.4s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
  }
  .bstep.active .bstep-num {
    background: var(--sage); color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(79,114,87,0.35);
  }
  .bstep.done .bstep-num {
    background: var(--sage); color: white;
    animation: checkPulse 0.5s ease;
  }
  @keyframes checkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
  }

  /* Ligne de progression — fluide */
  .bstep-line {
    position: relative; overflow: hidden;
    background: var(--sand);
    transition: background 0.5s ease;
  }
  .bstep-line::after {
    content: '';
    pointer-events: none; position: absolute; inset: 0;
    background: var(--sage);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .bstep-line.done::after { transform: scaleX(1); }

  /* Service type cards — hover plus vivant */
  .service-type-btn {
    transition: all 0.3s cubic-bezier(0.2, 0.65, 0.3, 1);
    position: relative; overflow: hidden;
  }
  .service-type-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(79,114,87,0.08), transparent);
    opacity: 0; transition: opacity 0.3s ease;
  }
  .service-type-btn:hover::before { opacity: 1; }
  .service-type-btn.selected {
    border-color: var(--sage);
    box-shadow: 0 4px 16px rgba(79,114,87,0.2);
    transform: translateY(-1px);
  }
  .service-type-btn.selected::before { opacity: 1; }

  /* Slot buttons — plus dynamique */
  .slot-btn {
    position: relative; overflow: hidden;
    transition: all 0.25s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .slot-btn::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(79,114,87,0.4), transparent 70%);
    opacity: 0; transition: opacity 0.4s ease;
  }
  .slot-btn:hover:not(.booked)::after { opacity: 1; }
  .slot-btn.selected {
    background: var(--sage) !important; color: white !important;
    border-color: var(--sage) !important;
    box-shadow: 0 4px 14px rgba(79,114,87,0.35);
  }

  /* Calendar day hover */
  .cal-day.has-slots {
    transition: all 0.25s cubic-bezier(0.2, 0.65, 0.3, 1);
    position: relative;
  }
  .cal-day.selected {
    box-shadow: 0 4px 14px rgba(79,114,87,0.3);
  }

  /* Confirmation step — animation d'entrée célébrante */
  #sv5 {
    text-align: center;
  }
  #sv5.active .confirm-icon {
    animation: celebrate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  }
  @keyframes celebrate {
    0% { opacity: 0; transform: scale(0.3) rotate(-15deg); }
    60% { opacity: 1; transform: scale(1.15) rotate(5deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
  }
  #sv5.active .confirm-title, #sv5.active #confirmSub, #sv5.active #confirmSummary {
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.65, 0.3, 1) 0.4s both;
  }

  /* Mode options — sélection plus punchy */
  .mode-option {
    position: relative; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .mode-option::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--sage);
    transform: scaleY(0); transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .mode-option.selected::before { transform: scaleY(1); }
  .mode-option.selected { transform: translateX(2px); }

  /* Recurring/multi options — slide fluide */
  #recurringOptions, #multiOptions {
    animation: slideDownFade 0.4s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }
  @keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); max-height: 0; }
    to { opacity: 1; transform: translateY(0); max-height: 500px; }
  }

  /* Multi dates — apparition de la liste */
  .multi-date-item {
    animation: slideInRight 0.35s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }
  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* Buttons back/next plus vivants */
  .btn-next {
    position: relative; overflow: hidden;
  }
  .btn-next:not(:disabled)::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
  }
  .btn-next:not(:disabled):hover::before { left: 100%; }

  .step-view { display: none; }
  .step-view.active { display: block; }

  /* Calendar */
  .cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .cal-nav { background: none; border: 1.5px solid var(--sand); border-radius: 50%; width: 32px; height: 32px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--mid); transition: all 0.2s; }
  .cal-nav:hover { border-color: var(--sage); color: var(--sage); }
  .cal-month { font-weight: 500; font-size: 15px; color: var(--dark); }
  .cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 1rem; }
  .cal-dow { font-size: 11px; font-weight: 500; color: var(--mid); text-align: center; padding: 4px 0; letter-spacing: 0.5px; }
  .cal-day { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--mid); position: relative; flex-direction: column; gap: 2px; }
  .cal-day.past { opacity: 0.3; }
  .cal-day.has-slots { color: var(--dark); cursor: pointer; font-weight: 500; }
  .cal-day.has-slots:hover { background: var(--sage-pale); }
  .cal-day.no-slots { color: var(--sand-dark); }
  .cal-day.today { border: 1.5px solid var(--sage-light); }
  .cal-day.selected { background: var(--sage) !important; color: white !important; }
  .cal-day-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
  .slots-label { font-size: 13px; font-weight: 500; color: var(--dark); margin-bottom: 10px; }
  .slots-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
  .slot-btn { padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--sand); background: var(--white); font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; color: var(--dark); }
  .slot-btn:hover:not(.booked) { border-color: var(--sage); color: var(--sage); }
  .slot-btn.selected { background: var(--sage); color: white; border-color: var(--sage); }
  .slot-btn.booked { background: var(--sand); color: var(--mid); opacity: 0.5; cursor: not-allowed; font-size: 11px; }
  .no-slots-msg { font-size: 13px; color: var(--mid); padding: 1rem 0; }

  /* Service type buttons */
  .service-types { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
  .service-type-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--sand); background: var(--white);
    cursor: pointer; transition: all 0.2s; text-align: left;
    font-family: 'Instrument Sans', sans-serif; width: 100%;
  }
  .service-type-btn:hover { border-color: var(--sage); background: var(--sage-pale); }
  .service-type-btn.selected { border-color: var(--sage); background: var(--sage-pale); }
  .st-icon { font-size: 20px; flex-shrink: 0; color: var(--sage); display: flex; align-items: center; }
  .st-icon svg { display: block; }
  .st-info { flex: 1; }
  .st-name { font-size: 14px; font-weight: 500; color: var(--dark); }
  .st-desc { font-size: 12px; color: var(--mid); margin-top: 2px; }
  .st-duration { font-size: 13px; font-weight: 500; color: var(--sage); white-space: nowrap; flex-shrink: 0; }

  /* Form elements */
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
  label { font-size: 13px; font-weight: 500; color: var(--dark); }

  input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
  select, textarea {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px; color: var(--dark);
    background: var(--light);
    border: 1.5px solid var(--sand);
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.2s, background 0.2s;
    outline: none; width: 100%;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--sage); background: var(--white);
  }
  textarea { resize: vertical; min-height: 90px; }

  .btn-next {
    width: 100%; background: var(--dark); color: white; border: none;
    padding: 14px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: all 0.25s; margin-top: 1.25rem;
  }
  .btn-next:hover { background: var(--sage); }
  .btn-next:disabled { background: var(--sand); color: var(--mid); cursor: not-allowed; }
  .btn-back {
    background: none; border: none; color: var(--mid); font-size: 13px;
    cursor: pointer; padding: 0.5rem 0; font-family: 'Instrument Sans', sans-serif;
    text-decoration: underline; margin-top: 0.5rem;
  }
  .btn-back:hover { color: var(--dark); }

  .booking-info-panel {}
  .booking-info-panel h2 { margin-bottom: 1rem; }
  .booking-info-panel p { color: var(--mid); font-size: 15px; margin-bottom: 1.5rem; }
  .info-items { display: flex; flex-direction: column; gap: 1rem; }
  .info-item { display: flex; gap: 12px; align-items: flex-start; }
  .info-check { color: var(--sage); flex-shrink: 0; margin-top: 3px; }
  .info-item:has(.info-text:empty) { display: none; }
  .info-text { font-size: 14px; color: var(--mid); }
  .info-text strong { color: var(--dark); font-weight: 500; }

  /* Booking summary */
  .booking-summary {
    background: var(--light); border-radius: 12px; padding: 1rem 1.25rem;
    margin-bottom: 1.25rem; border: 1px solid var(--sand);
  }
  .summary-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--sand); }
  .summary-row:last-child { border: none; }
  .summary-key { font-size: 13px; color: var(--mid); }
  .summary-val { font-size: 13px; font-weight: 500; color: var(--dark); text-align: right; }
  .summary-total { font-size: 16px; font-weight: 600; color: var(--sage); }

  /* Payment */
  .payment-section { margin-top: 1rem; }
  .payment-title { font-size: 14px; font-weight: 500; color: var(--dark); margin-bottom: 1rem; }
  .payment-card-mock {
    background: linear-gradient(135deg, var(--dark), #4a4a40);
    color: white; border-radius: 12px; padding: 1.25rem;
    margin-bottom: 1rem; font-size: 14px;
  }
  .payment-card-mock * { background: rgba(255,255,255,0.06); }
  .payment-card-logo { font-size: 11px; letter-spacing: 1px; opacity: 0.7; margin-bottom: 0.75rem; }
  .payment-card-num { font-family: monospace; font-size: 16px; letter-spacing: 3px; margin-bottom: 0.75rem; }
  .payment-card-bottom { display: flex; justify-content: space-between; font-size: 12px; opacity: 0.8; }
  .payment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .payment-fields .full { grid-column: 1 / -1; }

  /* Confirm */
  .confirm-icon { width: 64px; height: 64px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: var(--sage); color: white; border-radius: 50%; font-size: 30px; font-weight: 600; line-height: 1; }
  .confirm-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; text-align: center; margin-bottom: 0.5rem; }
  .confirm-sub { font-size: 14px; color: var(--mid); text-align: center; margin-bottom: 1.5rem; }

  /* FOOTER */
  footer {
    background: var(--dark); color: #9aa097;
    padding: 2.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: 13px;
    position: relative;
  }
  footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='11' viewBox='0 0 20 11'%3E%3Cpath d='M0 1.5h20M4 1.5v8h11v-4H9' fill='none' stroke='%23b5cdb9' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: 20px 11px;
    opacity: .5;
  }
  .footer-logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; color: white; letter-spacing: -0.01em; }
  .footer-logo span { color: var(--sage-light); font-style: normal; font-weight: 500; }

  /* Frise grecque — clin d'œil au nom Athlos */
  #hero { position: relative; }

  /* ── Frise grecque pleine largeur entre les sections ── */
  .section-divider {
    height: 11px; width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='11' viewBox='0 0 20 11'%3E%3Cpath d='M0 9.5h20M4 9.5v-8h11v4H9' fill='none' stroke='%234f7257' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: 20px 11px;
    opacity: .3;
    pointer-events: none;
  }

  /* Confirmation : couronne de laurier autour de la coche */
  .confirm-icon { position: relative; }
  .confirm-icon::before, .confirm-icon::after {
    content: ''; position: absolute; top: 50%; width: 30px; height: 58px;
    margin-top: -29px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 56'%3E%3Cpath d='M23 53C12 44 7 28 12 4' fill='none' stroke='%234f7257' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M12 7Q5 6 2 0Q10 0 12 7Z' fill='%234f7257' opacity='.8'/%3E%3Cpath d='M10.5 17Q3 15 .5 9Q9 9 10.5 17Z' fill='%234f7257' opacity='.72'/%3E%3Cpath d='M10.5 27Q3 26 0 20Q8.5 19.5 10.5 27Z' fill='%234f7257' opacity='.64'/%3E%3Cpath d='M12.5 37Q5 37 1.5 31.5Q10 30 12.5 37Z' fill='%234f7257' opacity='.56'/%3E%3Cpath d='M16 46Q9 47 5 42Q13 39 16 46Z' fill='%234f7257' opacity='.48'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain;
    pointer-events: none;
  }
  .confirm-icon::before { left: -44px; }
  .confirm-icon::after { right: -44px; transform: scaleX(-1); }

  /* Sélection de texte aux couleurs du site */
  ::selection { background: var(--sage); color: #fff; }

  /* Barre de défilement discrète */
  html { scrollbar-color: var(--sage-light) transparent; scrollbar-width: thin; }
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 10px; border: 2px solid var(--light); }
  ::-webkit-scrollbar-thumb:hover { background: var(--sage); }

  /* Focus clavier cohérent */
  :focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

  /* Ancres : compenser la hauteur de la nav */
  section[id] { scroll-margin-top: 76px; }

  /* ANIMATIONS */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes softPop { 0% { opacity: 0; transform: scale(0.96); } 60% { opacity: 1; transform: scale(1.01); } 100% { transform: scale(1); } }
  @keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -8px); } }

  /* ────── TEXTURES DE FOND ────── */

  /* Grain subtil sur tout le body */
  body::before {
    content: '';
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* Services — fond crème avec dégradé + blobs flous */
  #services {
    position: relative; overflow: hidden;
    background:
      radial-gradient(ellipse 50% 60% at 90% 10%, rgba(200,221,201,0.3) 0%, transparent 55%),
      radial-gradient(ellipse 40% 50% at 5% 90%, rgba(232,223,208,0.4) 0%, transparent 60%),
      linear-gradient(180deg, #faf8f3 0%, #f5f0e7 100%);
  }
  #services::before {
    content: ''; position: absolute; top: -80px; left: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,114,87,0.1) 0%, transparent 70%);
    pointer-events: none; animation: drift 12s ease-in-out infinite;
  }

  /* Approche — fond sage profond + pattern géométrique */
  #approche {
    position: relative; overflow: hidden;
    background:
      linear-gradient(135deg, rgba(200,221,201,0.25) 0%, rgba(232,223,208,0.35) 100%),
      var(--light);
  }
  #approche::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    opacity: 0.35;
    background-image:
      linear-gradient(rgba(79,114,87,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(79,114,87,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
  }
  #approche .section-inner { position: relative; z-index: 2; }

  /* À propos — fond chaleureux avec split diagonal */
  #apropos {
    position: relative; overflow: hidden;
    background:
      linear-gradient(115deg, rgba(200,221,201,0.15) 0%, rgba(200,221,201,0.15) 45%, transparent 45%),
      linear-gradient(180deg, #faf6ec 0%, #f0ead9 100%);
  }
  #apropos::before {
    content: ''; position: absolute; top: 0; right: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(176,125,91,0.08) 0%, transparent 60%);
    pointer-events: none; animation: drift 15s ease-in-out infinite reverse;
  }

  /* Tarifs — contraste plus sombre, profondeur */
  #tarifs {
    position: relative; overflow: hidden;
    background:
      radial-gradient(ellipse at 80% 80%, rgba(79,114,87,0.12) 0%, transparent 50%),
      linear-gradient(180deg, #f0ead9 0%, #e8dfd0 100%);
  }

  /* Témoignages — fond doux chaud */
  #temoignages {
    position: relative; overflow: hidden;
    background:
      radial-gradient(ellipse 60% 40% at 50% 0%, rgba(181,205,185,0.18) 0%, transparent 70%),
      linear-gradient(180deg, #f2f4f0 0%, #f7f8f5 100%);
  }
  #temoignages::before {
    content: '"'; position: absolute; top: 60px; left: 40px;
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 220px;
    color: rgba(79,114,87,0.09); line-height: 0.8;
    pointer-events: none;
  }

  /* Réservation — fond sage doux */
  #reservation {
    position: relative; overflow: hidden;
    background:
      radial-gradient(ellipse 60% 70% at 20% 30%, rgba(200,221,201,0.4) 0%, transparent 65%),
      linear-gradient(180deg, var(--sage-pale) 0%, #dce8dd 100%) !important;
  }

  /* Contenu au-dessus des textures */
  section > .section-inner, section > div { position: relative; z-index: 2; }

  /* ────── ANIMATIONS AU SCROLL (plus posées, moins fade) ────── */

  .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1),
                transform 0.9s cubic-bezier(0.2, 0.65, 0.3, 1);
    will-change: opacity, transform;
  }
  .fade-in.visible { opacity: 1; transform: none; }

  /* Stagger cascade */
  .fade-in.visible:nth-child(1) { transition-delay: 0s; }
  .fade-in.visible:nth-child(2) { transition-delay: 0.1s; }
  .fade-in.visible:nth-child(3) { transition-delay: 0.2s; }
  .fade-in.visible:nth-child(4) { transition-delay: 0.3s; }
  .fade-in.visible:nth-child(5) { transition-delay: 0.4s; }
  .fade-in.visible:nth-child(6) { transition-delay: 0.5s; }

  /* Hero — entrée en cascade progressive */
  #hero .hero-tag { animation: fadeUp 0.8s cubic-bezier(0.2, 0.65, 0.3, 1) both; animation-delay: 0.1s; opacity: 0; }
  #hero h1 { animation: fadeUp 1s cubic-bezier(0.2, 0.65, 0.3, 1) both; animation-delay: 0.25s; opacity: 0; }
  #hero .hero-sub { animation: fadeUp 1s cubic-bezier(0.2, 0.65, 0.3, 1) both; animation-delay: 0.45s; opacity: 0; }
  #hero .hero-btns { animation: fadeUp 1s cubic-bezier(0.2, 0.65, 0.3, 1) both; animation-delay: 0.6s; opacity: 0; }
  #hero .hero-stats { animation: fadeUp 1s cubic-bezier(0.2, 0.65, 0.3, 1) both; animation-delay: 0.75s; opacity: 0; }

  /* Cards — hover avec vraie profondeur */
  .service-card, .pricing-card, .review-card, .step {
    transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.2, 0.65, 0.3, 1),
                border-color 0.3s ease;
  }
  .service-card {
    box-shadow: 0 2px 12px rgba(44,44,40,0.04);
  }
  .service-card:hover, .pricing-card:hover, .review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(44,44,40,0.12), 0 2px 8px rgba(44,44,40,0.06);
  }
  .pricing-card.featured {
    box-shadow: 0 8px 24px rgba(79,114,87,0.15);
  }
  .pricing-card.featured:hover { transform: translateY(-10px); box-shadow: 0 24px 56px rgba(79,114,87,0.25); }

  /* Boutons — micro-animations */
  .btn-primary, .btn-outline, .nav-cta, .btn-next, .admin-login-btn,
  .tarif-save-btn, .slot-add-btn, .add-review-btn {
    transition: transform 0.25s cubic-bezier(0.2, 0.65, 0.3, 1),
                box-shadow 0.35s ease, background 0.25s ease, color 0.25s ease;
  }
  .btn-primary {
    box-shadow: 0 4px 14px rgba(44,44,40,0.18);
  }
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(44,44,40,0.28);
  }
  .nav-cta:hover, .btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,114,87,0.35);
  }
  .btn-primary:active, .nav-cta:active, .btn-next:active {
    transform: translateY(0) scale(0.98);
  }

  /* Service icons */
  .service-icon { transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1); }
  .service-card:hover .service-icon { transform: scale(1.15) rotate(-5deg); }

  /* Step numbers */
  .step-num { transition: color 0.35s ease, transform 0.35s ease; }
  .step:hover .step-num { color: var(--sage); transform: scale(1.1); }

  /* Nav — ombre subtile */
  nav {
    animation: fadeIn 0.5s ease both;
    box-shadow: 0 1px 0 rgba(44,44,40,0.04);
  }

  /* Liens nav — soulignement en clé grecque */
  .nav-links a { position: relative; transition: color 0.3s ease; }
  .nav-links a::after {
    content: ''; position: absolute; left: 50%; margin-left: -21px;
    bottom: -9px; width: 42px; height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7' viewBox='0 0 14 7'%3E%3Cpath d='M0 5.8h14M2.8 5.8V1.2h7.8v2.6H6.4' fill='none' stroke='%234f7257' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: 14px 7px;
    opacity: 0; transition: opacity .25s ease;
    pointer-events: none;
  }
  .nav-links a:hover::after { opacity: .65; }

  /* Slots, service types, jours calendrier */
  .slot-btn, .service-type-btn, .cal-day.has-slots {
    transition: all 0.3s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .slot-btn:hover:not(.booked), .service-type-btn:hover, .cal-day.has-slots:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44,44,40,0.08);
  }

  /* Modals — apparition "posée" */
  .overlay { transition: background 0.3s ease, backdrop-filter 0.3s ease; }
  .modal-panel, #uphModal .uph-modal-panel, .img-insert-panel, #imgPickerPanel {
    animation: softPop 0.45s cubic-bezier(0.2, 0.65, 0.3, 1) both;
    box-shadow: 0 24px 64px rgba(44,44,40,0.25), 0 2px 8px rgba(44,44,40,0.1);
  }

  /* Notif banner */
  .notif-banner {
    transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1),
                opacity 0.3s ease;
    box-shadow: 0 12px 32px rgba(44,44,40,0.2);
  }

  /* Stats numbers */
  .stat-num, .stat-card-num {
    animation: fadeUp 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }

  /* ── MODE SÉANCE (single / multi / récurrent) ── */
  .mode-options {
    display: flex; flex-direction: column; gap: 8px;
  }
  .mode-option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 1.5px solid var(--sand);
    border-radius: 10px; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    background: var(--white);
  }
  .mode-option:hover { border-color: var(--sage-light); }
  .mode-option.selected { border-color: var(--sage); background: var(--sage-pale); }
  .mode-option input[type="radio"] { accent-color: var(--sage); cursor: pointer; flex-shrink: 0; }
  .mode-option-content { flex: 1; }
  .mode-option-title { font-size: 14px; font-weight: 600; color: var(--dark); }
  .mode-option-sub { font-size: 12px; color: var(--mid); margin-top: 2px; }

  /* Liste des dates sélectionnées en mode multi */
  .multi-dates-list {
    display: flex; flex-direction: column; gap: 6px;
    margin: 1rem 0;
  }
  .multi-date-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--sage-pale);
    border: 1px solid var(--sage-light); border-radius: 8px;
    font-size: 13px;
  }
  .multi-date-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--sage); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; flex-shrink: 0;
  }
  .multi-date-info { flex: 1; font-weight: 500; color: var(--dark); }
  .multi-date-remove {
    background: none; border: none; cursor: pointer; color: var(--mid);
    font-size: 14px; padding: 4px 8px; border-radius: 4px;
    transition: color 0.2s, background 0.2s;
  }
  .multi-date-remove:hover { color: #c0605a; background: rgba(192,96,90,0.1); }

  .multi-progress {
    text-align: center; padding: 10px; background: var(--sage-pale);
    border-radius: 8px; margin-bottom: 1rem; font-size: 13px;
    font-weight: 500; color: var(--sage);
  }

  /* ────── AMÉLIORATIONS DESIGN PREMIUM ────── */

  /* Hero — typo plus impactante */
  #hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  /* Cartes services — look premium */
  .service-card {
    background: var(--white);
    border: 1px solid rgba(79,114,87,0.15);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
  }
  .service-card::before {
    content: '';
    pointer-events: none; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--clay));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card:hover { border-color: var(--sage); }

  .service-icon {
    display: inline-flex;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sage-pale), rgba(200,221,201,0.5));
    align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 1.25rem;
  }

  /* Pricing cards — featured plus démarquée */
  .pricing-card {
    background: var(--white);
    border: 1px solid rgba(44,44,40,0.08);
    border-radius: 20px;
    position: relative; overflow: hidden;
  }
  .pricing-card.featured {
    background: linear-gradient(180deg, var(--white) 0%, var(--sage-pale) 120%);
    border: 2px solid var(--sage);
    transform: translateY(-8px);
  }
  .pricing-card.featured::before {
    content: '★ Recommandé';
    position: absolute; top: 1rem; right: 1rem;
    background: var(--sage); color: white;
    padding: 4px 12px; border-radius: 10px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  }
  .pricing-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 3rem; font-weight: 700;
    background: linear-gradient(135deg, var(--dark), var(--sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Steps — numéros ultra stylés */
  .step {
    position: relative; padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(79,114,87,0.1);
    transition: all 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .step:hover {
    border-color: var(--sage);
    background: linear-gradient(145deg, var(--white), var(--sage-pale));
  }
  .step-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 3rem; font-weight: 700;
    background: linear-gradient(135deg, var(--sage), var(--clay));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; margin-bottom: 0.75rem;
    display: inline-block;
  }

  /* Review cards — élégance italienne */
  .review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(79,114,87,0.1);
    position: relative;
  }
  .review-card::before {
    content: '"';
    position: absolute; top: -10px; left: 20px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 90px; color: var(--sage);
    opacity: 0.15; line-height: 1;
    pointer-events: none;
  }
  .review-stars { font-size: 16px; letter-spacing: 3px; }
  .review-text {
    font-style: italic; font-size: 15px;
    line-height: 1.65; color: var(--dark);
    position: relative; z-index: 1;
  }

  /* Booking panel — premium */
  .booking-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(79,114,87,0.12);
    box-shadow: 0 12px 40px rgba(44,44,40,0.06),
                0 2px 8px rgba(44,44,40,0.04);
  }
  @media (max-width: 480px) { .booking-panel { padding: 1.5rem 1.25rem; } }

  /* Booking info panel — plus aéré */
  .booking-info-panel h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .info-item {
    transition: transform 0.3s ease;
  }
  .info-item:hover { transform: translateX(4px); }
  /* Boutons primaires — gradient subtil */
  .btn-primary {
    background: linear-gradient(135deg, var(--dark) 0%, #3a3a36 100%);
    position: relative; overflow: hidden;
  }
  .btn-primary::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.7s ease;
  }
  .btn-primary:hover::after { left: 100%; }

  .nav-cta, .btn-next {
    background: linear-gradient(135deg, var(--sage) 0%, #6a8e6f 100%);
  }

  /* Navigation — fond légèrement plus sophistiqué */
  nav {
    background: rgba(245,245,240,0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }

  /* Section headers plus grandes et lisibles */
  h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  /* Section tags — étiquette éditoriale */
  .section-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 12px; font-weight: 600;
    color: var(--sage); letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .section-tag::before {
    content: ''; width: 22px; height: 2px;
    border-radius: 0; background: var(--sage);
  }

  /* Forms premium */
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], input[type="number"], input[type="date"],
  input[type="time"], select, textarea {
    font-size: 15px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--white);
    border: 1.5px solid var(--sand);
  }

  label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
  }

  /* Admin tabs premium */
  .account-tab {
    font-weight: 500;
    padding: 10px 18px;
    position: relative;
  }
  .account-tab.active { font-weight: 600; }
  .account-tab::after {
    content: ''; position: absolute; bottom: -2px; left: 20%;
    right: 20%; height: 2.5px; background: var(--sage);
    border-radius: 2px; transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .account-tab.active::after { transform: scaleX(1); }
  .account-tab.active { border-bottom-color: transparent !important; }

  /* Stat cards dans compte */
  .stat-card {
    background: linear-gradient(145deg, var(--white), var(--sage-pale));
    border: 1px solid rgba(79,114,87,0.15);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79,114,87,0.15);
  }
  .stat-card-num {
    background: linear-gradient(135deg, var(--dark), var(--sage));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Footer plus élégant */
  footer {
    background: linear-gradient(180deg, var(--dark) 0%, #1a1a18 100%);
  }


  /* Inputs focus */
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], input[type="number"], input[type="date"],
  input[type="time"], select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.25s ease;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(79,114,87,0.15);
    outline: none;
  }

  /* Account tabs */
  .account-tab { transition: color 0.3s ease, border-color 0.4s cubic-bezier(0.2, 0.65, 0.3, 1); }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    body::before { display: none; }
  }

  /* ADMIN FAB */
  .admin-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    background: var(--dark); color: white; border: none;
    width: 48px; height: 48px; border-radius: 50%;
    font-size: 18px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: all 0.2s; display: flex; align-items: center; justify-content: center;
  }
  .admin-fab:hover { background: var(--sage); transform: scale(1.08); }
  .admin-fab.editing { background: var(--sage) !important; }

  /* OVERLAYS */
  .overlay {
    display: none; position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 1rem;
  }
  .overlay.open { display: flex; }

  .modal-panel {
    background: var(--white); border-radius: 20px;
    width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
    padding: 2rem 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }
  .modal-panel.narrow { width: min(420px, 100%); }
  @media (max-width: 480px) {
    .modal-panel { padding: 1.5rem 1.25rem; border-radius: 16px; }
    .modal-title { font-size: 18px; }
  }
  .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
  .modal-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; }
  .modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--mid); line-height: 1; padding: 4px; }

  /* ADMIN PANEL */
  .admin-login-area { max-width: 320px; margin: 0 auto; text-align: center; padding: 2rem 0; }
  .admin-login-title { font-size: 16px; font-weight: 500; margin-bottom: 0.5rem; }
  .admin-login-sub { font-size: 13px; color: var(--mid); margin-bottom: 1.5rem; }
  .admin-login-btn {
    width: 100%; background: var(--dark); color: white; border: none;
    padding: 12px; border-radius: 10px; font-family: 'Instrument Sans', sans-serif;
    font-size: 14px; cursor: pointer; transition: background 0.2s; margin-top: 12px;
  }
  .admin-login-btn:hover { background: var(--sage); }

  .admin-tabs { display: flex; gap: 6px; margin-bottom: 1.5rem; flex-wrap: wrap; }
  .admin-tab {
    padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
    border: 1.5px solid var(--sand); background: none; cursor: pointer;
    font-family: 'Instrument Sans', sans-serif; color: var(--mid); transition: all 0.2s;
  }
  .admin-tab.active { background: var(--dark); color: white; border-color: var(--dark); }

  .admin-section { display: none; }
  .admin-section.active { display: block; }

  .resa-list { display: flex; flex-direction: column; gap: 10px; }
  .resa-item {
    background: var(--light); border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px; border: 1px solid var(--sand);
  }
  .resa-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
  .resa-info { flex: 1; }
  .resa-name { font-size: 14px; font-weight: 500; }
  .resa-details { font-size: 12px; color: var(--mid); margin-top: 2px; }
  .resa-badge { font-size: 11px; padding: 3px 10px; border-radius: 10px; background: var(--sage-pale); color: var(--sage); font-weight: 500; white-space: nowrap; }
  .resa-cancel { background: none; border: 1px solid #e0c0c0; color: #c0605a; padding: 5px 10px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: 'Instrument Sans', sans-serif; transition: all 0.2s; }
  .resa-cancel:hover { background: #fdf0f0; }

  .slot-editor-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
  .slot-editor-row .form-group { margin-bottom: 0; }

  /* ═══ Gestionnaire de disponibilités hebdomadaires ═══ */
  .avail-week-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 1.25rem;
    background: var(--sage-pale); border-radius: 14px; padding: 10px 14px;
  }
  .avail-nav-btn {
    background: var(--white); border: 1.5px solid var(--sage-light);
    color: var(--sage-dark, #586b48); width: 40px; height: 40px;
    border-radius: 50%; font-size: 16px; cursor: pointer;
    transition: all 0.15s; flex-shrink: 0;
  }
  .avail-nav-btn:hover:not(:disabled) { background: var(--sage); color: white; border-color: var(--sage); }
  .avail-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
  .avail-week-label { text-align: center; line-height: 1.3; }
  .avail-week-label strong { display: block; font-size: 14px; color: var(--dark); }
  .avail-week-label span { font-size: 11px; color: var(--mid); }

  .avail-days-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }
  .avail-day-card {
    background: var(--white); border: 1.5px solid var(--sand);
    border-radius: 14px; padding: 14px;
    transition: all 0.2s;
  }
  .avail-day-card.mode-full { border-left: 4px solid #5a9e6f; }
  .avail-day-card.mode-ikea { border-left: 4px solid var(--clay, #c0605a); }
  .avail-day-card.mode-off { border-left: 4px solid var(--sand); opacity: 0.85; }
  .avail-day-card.past { opacity: 0.5; background: var(--cream, #faf6ec); }
  .avail-day-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 8px;
  }
  .avail-day-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; color: var(--dark); }
  .avail-day-date { font-size: 12px; color: var(--mid); }
  .avail-mode-badge {
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 10px; font-weight: 600;
  }
  .avail-mode-badge.mode-full { background: #e6f2ea; color: #3a7a52; }
  .avail-mode-badge.mode-ikea { background: #fbe9e7; color: #a84b44; }
  .avail-mode-badge.mode-off { background: var(--sand); color: var(--mid); }
  .avail-day-preview { margin: 8px 0; min-height: 24px; }
  .avail-slot-preview { display: flex; flex-wrap: wrap; gap: 4px; }
  .avail-slot-chip {
    font-size: 11px; background: var(--sage-pale); color: var(--sage-dark, #586b48);
    padding: 2px 7px; border-radius: 6px; font-weight: 500;
  }
  .avail-slot-chip.booked { background: #fbe9e7; color: #a84b44; text-decoration: line-through; }
  .avail-day-actions { display: flex; gap: 5px; margin-top: 10px; }
  .avail-btn {
    flex: 1; background: var(--white); border: 1px solid var(--sand);
    color: var(--mid); padding: 7px 4px; border-radius: 9px;
    font-size: 11px; cursor: pointer; transition: all 0.15s;
    font-family: 'Instrument Sans', sans-serif; white-space: nowrap;
  }
  .avail-btn:hover { border-color: var(--sage); }
  .avail-btn.active { background: var(--sage); color: white; border-color: var(--sage); }
  @media (max-width: 600px) {
    .avail-days-grid { grid-template-columns: 1fr; }
  }

  .slot-add-btn {
    background: var(--sage); color: white; border: none;
    padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: 'Instrument Sans', sans-serif; white-space: nowrap;
    transition: background 0.2s; height: 42px;
  }
  .slot-add-btn:hover { background: #3f5d46; }
  .admin-save-btn {
    background: var(--dark); color: white; border: none;
    padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 500;
    cursor: pointer; font-family: 'Instrument Sans', sans-serif;
    transition: background 0.2s; margin-top: 1rem;
  }
  .admin-save-btn:hover { background: var(--sage); }

  .tarif-service-block {
    background: var(--light); border-radius: 14px;
    border: 1.5px solid var(--sand);
    padding: 1.25rem 1.5rem; margin-bottom: 1rem;
    transition: border-color 0.2s;
  }
  .tarif-service-block:hover { border-color: var(--sage-light); }
  .tarif-service-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
  .tarif-service-icon { font-size: 20px; }
  .tarif-service-label { font-weight: 500; font-size: 15px; color: var(--dark); }
  .tarif-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  @media (max-width: 540px) { .tarif-fields { grid-template-columns: 1fr 1fr; } }
  .tarif-field label { font-size: 12px; font-weight: 500; color: var(--mid); display: block; margin-bottom: 4px; }
  .tarif-field input, .tarif-field select {
    font-size: 14px; padding: 8px 12px; border-radius: 8px;
    border: 1.5px solid var(--sand); background: var(--white);
    font-family: 'Instrument Sans', sans-serif; width: 100%;
    color: var(--dark); transition: border-color 0.2s;
  }
  .tarif-field input:focus, .tarif-field select:focus { border-color: var(--sage); outline: none; }
  .tarif-price-badge { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; color: var(--sage); font-weight: 500; margin-left: auto; }
  .tarif-save-btn {
    background: var(--sage); color: white; border: none;
    padding: 11px 24px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background 0.2s; margin-top: 1rem;
    display: flex; align-items: center; gap: 8px;
  }
  .tarif-save-btn:hover { background: #3f5d46; }
  .tarif-reset-btn {
    background: none; color: var(--mid); border: 1.5px solid var(--sand);
    padding: 11px 20px; border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 14px;
    cursor: pointer; transition: all 0.2s; margin-top: 1rem; margin-left: 8px;
  }
  .tarif-reset-btn:hover { border-color: var(--clay); color: var(--clay); }

  /* NOTIF */
  .notif-banner {
    position: fixed; top: 80px; right: 20px; z-index: 600;
    background: var(--dark); color: white; padding: 12px 20px;
    border-radius: 12px; font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateX(calc(100% + 40px)); transition: transform 0.4s ease;
    max-width: 320px;
  }
  .notif-banner.show { transform: translateX(0); }
  .notif-banner .notif-close { margin-left: 12px; cursor: pointer; opacity: 0.7; }

  .empty-state { text-align: center; padding: 2rem; color: var(--mid); font-size: 14px; }

  /* EDIT MODE */
  .edit-mode [data-editable] {
    position: relative; cursor: text;
    outline: 2px dashed transparent; border-radius: 4px;
    transition: outline-color 0.2s, background 0.2s;
    min-width: 20px; min-height: 1em;
  }
  .edit-mode [data-editable]:hover { outline-color: var(--sage); background: rgba(79,114,87,0.09); }
  .edit-mode [data-editable]:focus { outline: 2px solid var(--sage); background: rgba(79,114,87,0.06); }

  #editToolbar {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 500; background: var(--dark); color: white;
    border-radius: 10px; padding: 10px 22px;
    display: none; align-items: center; gap: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4); font-size: 13px; white-space: nowrap;
  }
  #editToolbar.visible { display: flex; }
  #editToolbar .etb-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dbd82; flex-shrink:0; animation: etbpulse 1.5s infinite; }
  @keyframes etbpulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
  #editToolbar .etb-label { opacity: 0.65; font-size: 12px; }
  #editToolbar .etb-save { background: var(--sage); color: white; border: none; padding: 7px 18px; border-radius: 10px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
  #editToolbar .etb-save:hover { background: #3f5d46; }
  #editToolbar .etb-exit { background: none; color: #aaa; border: 1px solid #555; padding: 7px 14px; border-radius: 10px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; cursor: pointer; transition: all 0.2s; }
  #editToolbar .etb-exit:hover { color: white; border-color: #bbb; }

  /* CLIENT SPACE */
  .client-space {
    background: var(--sage-pale); border-radius: 16px;
    padding: 1.5rem; border: 1px solid var(--sage-light);
    margin-bottom: 1.5rem;
  }
  .client-space-title { font-weight: 500; font-size: 15px; color: var(--dark); margin-bottom: 0.5rem; }
  .client-space-sub { font-size: 13px; color: var(--mid); margin-bottom: 1.25rem; }

  .client-resa-list { display: flex; flex-direction: column; gap: 8px; }
  .client-resa-item {
    background: var(--white); border-radius: 12px; padding: 12px 14px;
    display: flex; align-items: center; gap: 10px; border: 1px solid var(--sand);
  }
  .client-resa-icon { font-size: 18px; flex-shrink: 0; color: var(--sage); width: 22px; } .client-resa-icon svg { width: 100%; height: auto; display: block; }
  .client-resa-info { flex: 1; }
  .client-resa-name { font-size: 13px; font-weight: 500; color: var(--dark); }
  .client-resa-date { font-size: 12px; color: var(--mid); margin-top: 2px; }
  .client-cancel-btn {
    background: none; border: 1px solid #e0c0c0; color: #c0605a;
    padding: 5px 10px; border-radius: 8px; font-size: 11px; cursor: pointer;
    font-family: 'Instrument Sans', sans-serif; transition: all 0.2s; white-space: nowrap;
  }
  .client-cancel-btn:hover { background: #fdf0f0; }
  .client-cancel-disabled {
    font-size: 11px; color: var(--mid); padding: 5px 0;
  }

  /* STAR RATING */
  .star-rating { display: flex; gap: 6px; margin-bottom: 1rem; }
  .star-btn {
    font-size: 24px; cursor: pointer; background: none; border: none;
    line-height: 1; transition: transform 0.15s; color: #ddd;
    filter: grayscale(1);
  }
  .star-btn.active { color: var(--clay); filter: none; transform: scale(1.15); }
  .star-btn:hover { transform: scale(1.2); }

  /* ADMIN REVIEWS */
  .admin-review-item {
    background: var(--light); border-radius: 12px; padding: 14px 16px;
    margin-bottom: 10px; border: 1px solid var(--sand);
  }
  .admin-review-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .admin-review-author { font-size: 14px; font-weight: 500; color: var(--dark); }
  .admin-review-meta { font-size: 12px; color: var(--mid); margin-top: 2px; }
  .admin-review-text { font-size: 14px; color: var(--mid); font-style: italic; margin: 10px 0; padding: 10px; background: var(--white); border-radius: 8px; border: 1px solid var(--sand); }
  .admin-review-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
  .admin-review-btn {
    padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 500;
    cursor: pointer; font-family: 'Instrument Sans', sans-serif; border: none; transition: all 0.2s;
  }
  .btn-approve { background: var(--sage-pale); color: var(--sage); border: 1px solid var(--sage-light); }
  .btn-approve:hover { background: var(--sage); color: white; }
  .btn-reject { background: #fdf0f0; color: #c0605a; border: 1px solid #e0c0c0; }
  .btn-reject:hover { background: #c0605a; color: white; }
  .btn-reply { background: var(--light); color: var(--dark); border: 1.5px solid var(--sand); }
  .btn-reply:hover { border-color: var(--sage); color: var(--sage); }
  .admin-reply-area { margin-top: 8px; }
  .admin-reply-area textarea { min-height: 70px; font-size: 13px; }
  .admin-reply-send { background: var(--sage); color: white; border: none; padding: 7px 16px; border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'Instrument Sans', sans-serif; margin-top: 6px; }
  .admin-reply-send:hover { background: #3f5d46; }

  /* PHOTOS ADMIN */
  .photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-top: 1rem; }
  .photo-admin-item { border-radius: 12px; overflow: hidden; border: 1.5px solid var(--sand); background: var(--white); }
  .photo-admin-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--mid); }
  .photo-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .photo-admin-info { padding: 8px 10px; }
  .photo-admin-label { font-size: 11px; color: var(--mid); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
  .photo-admin-input { width: 100%; font-size: 12px; padding: 5px 8px; border: 1.5px solid var(--sand); border-radius: 6px; font-family: 'Instrument Sans', sans-serif; margin-top: 4px; }
  .photo-admin-input:focus { border-color: var(--sage); outline: none; }
  .photo-admin-save { background: var(--sage); color: white; border: none; padding: 4px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: 'Instrument Sans', sans-serif; margin-top: 4px; }

  /* FLOATING IMAGE INSERT BUTTON */
  #imgInsertBtn {
    position: fixed; bottom: 28px; right: 28px;
    z-index: 499; background: var(--clay); color: white;
    border: none; border-radius: 10px; padding: 11px 20px;
    font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 500;
    cursor: pointer; display: none; align-items: center; gap: 8px;
    box-shadow: 0 4px 20px rgba(176,125,91,0.4); transition: all 0.2s;
  }
  #imgInsertBtn:hover { background: #9a6d4b; transform: translateY(-1px); }
  body.edit-mode #imgInsertBtn { display: flex; }
  body.img-place-mode #imgInsertBtn {
    background: var(--sage); animation: btnPulse 1s infinite alternate;
  }
  @keyframes btnPulse { from{box-shadow:0 4px 20px rgba(79,114,87,0.4)} to{box-shadow:0 4px 32px rgba(79,114,87,0.9)} }

  /* INLINE DROPPED IMAGES */
  .dropped-img-wrapper {
    position: relative; display: block;
    margin: 1rem 0; max-width: 100%;
  }
  .dropped-img-wrapper img { max-width: 100%; border-radius: 10px; display: block; }
  body.edit-mode .dropped-img-wrapper { outline: 2px dashed rgba(79,114,87,0.3); border-radius: 12px; }
  body.edit-mode .dropped-img-wrapper:hover { outline-color: var(--sage); }
  .dropped-img-wrapper .img-controls {
    position: absolute; top: 8px; right: 8px;
    display: none; gap: 6px; flex-wrap: wrap;
  }
  body.edit-mode .dropped-img-wrapper:hover .img-controls { display: flex; }
  .img-ctrl-btn {
    background: rgba(44,44,40,0.85); color: white; border: none;
    padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 500;
    cursor: pointer; font-family: 'Instrument Sans', sans-serif; white-space: nowrap;
    backdrop-filter: blur(4px);
  }
  .img-ctrl-btn:hover { background: rgba(79,114,87,0.9); }

  /* IMG RESIZE */
  .img-size-bar { display: none; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
  body.edit-mode .dropped-img-wrapper:hover .img-size-bar { display: flex; }
  .img-size-btn {
    background: var(--sage-pale); border: 1px solid var(--sage-light);
    color: var(--sage); padding: 3px 10px; border-radius: 10px;
    font-size: 11px; cursor: pointer; font-family: 'Instrument Sans', sans-serif; transition: all 0.15s;
  }
  .img-size-btn:hover, .img-size-btn.active { background: var(--sage); color: white; }

  /* Zones photo vides — invisibles pour les visiteurs */
  .uph-zone:not(.has-photo) {
    display: none;
  }
  /* Visibles uniquement en mode admin */
  body.admin-active .uph-zone:not(.has-photo) {
    display: flex;
  }
  .uph-zone {
    position: relative; border-radius: var(--radius);
    background: var(--sand); overflow: hidden;
    cursor: pointer; transition: all 0.2s;
    min-height: 200px; display: flex; align-items: center; justify-content: center;
  }
  .uph-zone:hover { background: var(--sage-pale); outline: 2px dashed var(--sage); }
  .uph-zone img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
  .uph-zone[data-snap] img { object-fit: contain; }
  #temoignages.avis-empty, .section-divider.avis-empty { display: none; }
  body.edit-mode [data-editable] { outline: 1.5px dashed rgba(79,114,87,0.45); outline-offset: 3px; border-radius: 4px; cursor: text; transition: outline-color 0.15s, background 0.15s; }
  /* Édition structurelle : supprimer / ajouter des cartes et des étapes */
  body.edit-mode #svcGrid > *, body.edit-mode #methSteps > * { position: relative; }
  .struct-del { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(192,96,90,0.92); color: #fff; border: none; width: 26px; height: 26px; border-radius: 8px; font-size: 14px; line-height: 1; cursor: pointer; }
  .struct-del:hover { background: rgba(192,96,90,1); }
  .struct-add { display: block; margin: 12px auto 0; background: var(--sage-pale); color: var(--sage); border: 1.5px dashed var(--sage); padding: 8px 18px; border-radius: 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
  .struct-add:hover { background: rgba(79,114,87,0.12); }
  /* Selecteur d'icone des cartes Services, visible en edition seulement */
  body.edit-mode #svcGrid .service-icon { cursor: pointer; position: relative; }
  body.edit-mode #svcGrid .service-icon::after {
    content: 'Changer'; position: absolute; inset: auto 0 -18px 0;
    font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--sage); text-align: center; opacity: 0; transition: opacity .2s;
  }
  body.edit-mode #svcGrid .service-icon:hover { outline: 2px solid var(--sage-light); outline-offset: 3px; }
  body.edit-mode #svcGrid .service-icon:hover::after { opacity: 1; }
  .icon-pop {
    position: absolute; z-index: 60; background: var(--white);
    border: 1px solid var(--sand); border-radius: 14px; padding: 10px;
    box-shadow: 0 12px 34px rgba(31,35,30,0.16);
    display: grid; grid-template-columns: repeat(6, 34px); gap: 6px;
  }
  .icon-pop button {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: var(--light); border: 1px solid var(--sand); border-radius: 9px;
    cursor: pointer; padding: 0; color: var(--sage); transition: all .15s;
  }
  .icon-pop button:hover { background: var(--sage-pale); border-color: var(--sage-light); transform: translateY(-1px); }
  /* Un texte vidé s'efface pour les visiteurs (pas de trou) mais reste
     visible et cliquable en mode édition pour pouvoir le remplir à nouveau. */
  .ed-blank { display: none; }
  body.edit-mode .ed-blank { display: revert; }
  body.edit-mode .ed-blank:not(#txt-contact-phone)::before { content: 'texte vide — clique pour écrire'; opacity: 0.4; font-size: 0.85em; }
  body.edit-mode [data-editable]:hover { outline-color: var(--sage); background: rgba(79,114,87,0.06); }
  body.edit-mode [data-editable]:focus { outline: 2px solid var(--sage); background: rgba(79,114,87,0.08); }
  body.edit-mode #contactPhoneLine { display: block !important; }
  body.edit-mode #txt-contact-phone:empty::before { content: 'Téléphone : 0470 12 34 56 — tape ton texte, libellé compris'; opacity: 0.4; }
  body.admin-active #temoignages.avis-empty, body.edit-mode #temoignages.avis-empty { display: block; }
  .uph-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--mid); font-size: 13px; text-align: center; padding: 2rem;
    pointer-events: none; position: relative; z-index: 1;
  }
  .uph-icon { font-size: 32px; opacity: 0.5; display: block; }
  .uph-zone.has-photo .uph-placeholder { display: none; }
  /* Boutons action sur zone avec photo */
  .uph-actions {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: none; gap: 6px;
  }
  .uph-zone.has-photo:hover .uph-actions { display: flex; }
  .uph-btn {
    background: rgba(44,44,40,0.8); color: white; border: none;
    padding: 5px 12px; border-radius: 10px; font-size: 11px; font-weight: 500;
    cursor: pointer; font-family: 'Instrument Sans', sans-serif; backdrop-filter: blur(4px);
    transition: background 0.15s; white-space: nowrap;
  }
  .uph-btn:hover { background: rgba(79,114,87,0.9); }
  .uph-btn.del:hover { background: rgba(192,96,90,0.9); }
  /* Variantes de taille */
  .uph-portrait { aspect-ratio: 3/4; min-height: unset; width: 100%; }
  .uph-square { aspect-ratio: 1; min-height: unset; width: 100%; }
  .uph-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; margin-top: 2rem;
  }

  /* ── SECTION À PROPOS ── */
  .apropos-layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; margin-top: 2rem;
  }
  @media (max-width: 700px) { .apropos-layout { grid-template-columns: 1fr; } }
  .apropos-text { font-size: 15px; color: var(--mid); line-height: 1.75; margin-bottom: 1rem; }
  .apropos-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
  .apropos-badge {
    background: var(--sage-pale); border: 1px solid var(--sage-light);
    color: var(--sage); padding: 5px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 500;
  }
  /* make badges editable-looking in edit mode */
  .edit-mode .apropos-badge[data-editable] { cursor: text; }

  /* ── MODAL PHOTO UNIVERSELLE ── */
  #uphModal {
    position: fixed; inset: 0; z-index: 700;
    background: rgba(44,44,40,0.7); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
  }
  #uphModal.open { display: flex; }
  .uph-modal-panel {
    background: var(--white); border-radius: 20px; padding: 2rem;
    width: min(420px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.img-place-mode { cursor: crosshair !important; }
  body.img-place-mode * { cursor: crosshair !important; }
  body.img-place-mode section:hover, body.img-place-mode .hero-content:hover {
    background: rgba(79,114,87,0.05) !important;
    outline: 2px dashed rgba(79,114,87,0.35);
  }
  #insertCaret {
    position: fixed; z-index: 9998; pointer-events: none;
    height: 3px; background: var(--sage); border-radius: 2px;
    box-shadow: 0 0 10px rgba(79,114,87,0.8); display: none;
  }
  body.img-place-mode #insertCaret { display: block; }
  #placeModeBar {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 498;
    background: var(--sage); color: white; text-align: center;
    padding: 10px 1rem; font-size: 13px; font-weight: 500;
    display: none; align-items: center; justify-content: center; gap: 16px;
    flex-wrap: wrap;
  }
  body.img-place-mode #placeModeBar { display: flex; }
  #placeModeBar button {
    background: rgba(255,255,255,0.25); color: white; border: 1px solid rgba(255,255,255,0.5);
    padding: 5px 14px; border-radius: 10px; font-size: 12px; cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
  }
  #placeModeBar button:hover { background: rgba(255,255,255,0.4); }

  /* IMG PICKER PANEL */
  #imgPickerPanel {
    position: fixed; bottom: 90px; right: 28px; z-index: 600;
    background: var(--white); border-radius: 20px; padding: 1.5rem;
    width: min(360px, 90vw); box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    display: none; border: 1px solid var(--sand);
    max-height: 70vh; overflow-y: auto;
  }
  #imgPickerPanel.open { display: block; }
  .img-insert-title { font-family: 'Bricolage Grotesque',sans-serif; font-size: 1.1rem; margin-bottom: 0.4rem; }
  .img-insert-sub { font-size: 12px; color: var(--mid); margin-bottom: 1rem; line-height: 1.5; }
  .img-dropzone {
    border: 2px dashed var(--sand-dark); border-radius: 14px;
    padding: 1.5rem 1rem; text-align: center; cursor: pointer;
    transition: all 0.2s; margin-bottom: 0.75rem; position: relative;
    background: var(--light);
  }
  .img-dropzone:hover, .img-dropzone.dragover { border-color: var(--sage); background: var(--sage-pale); }
  .img-dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .img-dropzone-icon { font-size: 28px; margin-bottom: 6px; }
  .img-dropzone-label { font-size: 13px; color: var(--mid); }
  .img-dropzone-label strong { color: var(--sage); }
  .img-insert-sep { text-align: center; font-size: 11px; color: var(--sand-dark); margin: 0.5rem 0; }


  /* ACCOUNT PAGE */
  .account-tab-bar {
    display: flex; gap: 0; border-bottom: 2px solid var(--sand);
    margin-bottom: 2rem; overflow-x: auto; flex-shrink: 0;
  }
  .account-tab {
    padding: 10px 20px; font-size: 14px; font-weight: 400; color: var(--mid);
    background: none; border: none; cursor: pointer; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    font-family: 'Instrument Sans', sans-serif; transition: all 0.2s;
  }
  .account-tab:hover { color: var(--dark); }
  .account-tab.active { color: var(--sage); border-bottom-color: var(--sage); font-weight: 500; }
  .account-section { display: none; }
  .account-section.active { display: block; }

  .stat-card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
  .stat-card { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; border: 1px solid var(--sand); }
  .stat-card-num { font-family: 'Bricolage Grotesque',sans-serif; font-size: 2rem; color: var(--dark); }
  .stat-card-label { font-size: 12px; color: var(--mid); margin-top: 4px; }

  .admin-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--dark); color: white; padding: 4px 12px;
    border-radius: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.5px;
  }
  .admin-badge::before { content:''; width:6px; height:6px; border-radius:50%; background:#7dbd82; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── AGENDA ADMIN ── */
  .agenda-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
    background: var(--sand); border: 1px solid var(--sand);
    border-radius: 8px; padding: 4px;
  }
  .agenda-dow {
    font-size: 11px; font-weight: 600; text-align: center; padding: 6px 0;
    color: var(--mid); text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--white); border-radius: 4px;
  }
  .agenda-cell {
    background: var(--white); border-radius: 4px; min-height: 90px;
    padding: 6px 4px; font-size: 12px; cursor: pointer;
    transition: background 0.15s; overflow: hidden; position: relative;
    border: 1px solid transparent;
  }
  .agenda-cell:hover { background: var(--sage-pale); }
  .agenda-cell.today { border-color: var(--sage); border-width: 2px; }
  .agenda-cell.empty { background: var(--light); cursor: default; opacity: 0.4; }
  .agenda-cell.past { opacity: 0.6; }
  .agenda-cell-num { font-size: 13px; font-weight: 500; color: var(--dark); margin-bottom: 4px; }
  .agenda-event {
    font-size: 10px; padding: 2px 5px; border-radius: 3px; margin-bottom: 2px;
    color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer;
  }
  .agenda-event.confirmed { background: var(--sage); }
  .agenda-event.pending { background: #c4a030; }
  .agenda-event.perso { background: #7a8ab5; }
  .agenda-more { font-size: 9px; color: var(--mid); font-style: italic; padding: 0 4px; }
  @media (max-width: 700px) {
    .agenda-cell { min-height: 70px; padding: 4px 2px; font-size: 11px; }
    .agenda-event { font-size: 9px; padding: 1px 3px; }
    .agenda-cell-num { font-size: 12px; }
    .agenda-dow { font-size: 10px; padding: 4px 0; }
  }

  /* NAV MOBILE */
  #navMenuBtn {
    display: none; background: none; border: none; cursor: pointer;
    font-size: 22px; color: var(--dark); padding: 4px;
  }
  #mobileMenu {
    display: none; position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 99;
    background: rgba(245,245,240,0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sand); padding: 1rem 1.5rem;
    flex-direction: column; gap: 0;
  }
  #mobileMenu.open { display: flex; }
  #mobileMenu a {
    font-size: 15px; color: var(--mid); text-decoration: none;
    padding: 12px 0; border-bottom: 1px solid var(--sand);
    display: block; font-family: 'Instrument Sans', sans-serif;
  }
  #mobileMenu a:last-child { border-bottom: none; }
  #mobileMenu a:hover { color: var(--sage); }
  @media (max-width: 700px) {
    #navMenuBtn { display: block; }
    .nav-links { display: none; }
  }

  /* ACCOUNT PAGE RESPONSIVE */
  .acc-back-label { display: inline; }
  @media (max-width: 400px) { .acc-back-label { display: none; } }

  /* Masque le logo centré sur mobile (chevauche les boutons), compact les boutons */
  @media (max-width: 760px) {
    .acc-center-logo { display: none !important; }
  }

  /* Déconnexion compact sur mobile */
  @media (max-width: 480px) {
    #accountPageLogoutArea button { padding: 5px 10px !important; font-size: 12px !important; }
    #clientInstallAppBtn { padding: 5px 10px !important; font-size: 12px !important; }
  }

  /* Admin tabs scrollable sur mobile */
  @media (max-width: 600px) {
    .account-tab-bar { -webkit-overflow-scrolling: touch; }
    .account-tab { padding: 8px 10px; font-size: 12px; }
    .stat-card-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-card-num { font-size: 1.5rem; }
  }
  @media (max-width: 900px) {
    .booking-system { grid-template-columns: 1fr; gap: 2rem; }
    .apropos-layout { grid-template-columns: 1fr; gap: 2rem; }
    .apropos-photo-col { max-width: 280px; }
    .uph-portrait { aspect-ratio: 4/3; }
  }

  /* ── RESPONSIVE MOBILE (≤700px) ── */
  @media (max-width: 700px) {
    /* Nav */
    nav { padding: 0 1rem; }
    .nav-links { display: none; }
    .logo { font-size: 17px; white-space: nowrap; }
    .nav-account-btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
    .nav-cta { padding: 7px 14px; font-size: 13px; }

    /* Hero */
    h1 br { display: none; }
    #hero { padding: 64px 1.25rem 3rem; }
    .hero-stats { gap: 0.6rem 1.25rem; flex-wrap: wrap; }
    .hero-stats > div { padding: 0; border-left: none; }
    .stat-num { font-size: 15px; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-outline { text-align: center; width: 100%; }

    /* Sections */
    section { padding: 3.5rem 1.25rem; }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* Services grid */
    .services-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
    .service-card { padding: 1.5rem 1.25rem; }

    /* Steps */
    .steps { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

    /* Photo grid */
    .uph-grid { grid-template-columns: repeat(2, 1fr); }

    /* À propos */
    .apropos-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .apropos-photo-col { max-width: 100%; }
    .uph-portrait { aspect-ratio: 4/3; }

    /* Pricing */
    .pricing { grid-template-columns: 1fr; gap: 1rem; }

    /* Booking */
    .booking-system { grid-template-columns: 1fr; gap: 1.5rem; }
    .booking-panel { padding: 1.5rem 1.25rem; }
    .booking-steps { gap: 0; }
    .bstep span { display: none; }
    body.edit-mode .bstep span { display: inline; }
    .bstep-line { margin: 0 4px; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    .payment-fields { grid-template-columns: 1fr; }
    .payment-fields .full { grid-column: 1; }
    .slot-editor-row { grid-template-columns: 1fr 1fr; }

    /* Reviews */
    .reviews { grid-template-columns: 1fr; }
    .reviews-header { flex-direction: column; align-items: flex-start; }

    /* Admin tabs */
    .admin-tabs { gap: 4px; }
    .admin-tab { padding: 7px 10px; font-size: 12px; }

    /* Account page */
    .stat-card-row { grid-template-columns: repeat(2, 1fr); }
    .account-tab { padding: 8px 12px; font-size: 13px; }

    /* Img picker */
    #imgPickerPanel { right: 0; left: 0; bottom: 0; border-radius: 20px 20px 0 0; width: 100%; max-height: 80vh; }
    #imgInsertBtn { bottom: 16px; right: 16px; padding: 10px 16px; font-size: 12px; }

    /* Footer */
    footer { padding: 2.5rem 1.25rem; }
  }

  /* ── RESPONSIVE SMALL MOBILE (≤400px) ── */
  @media (max-width: 400px) {
    .steps { grid-template-columns: 1fr; }
    .uph-grid { grid-template-columns: 1fr; }
    .stat-card-row { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 0.5rem 1rem; }
    .apropos-badges { gap: 6px; }
    .apropos-badge { font-size: 12px; padding: 4px 10px; }
  }

  /* ════════════════════════════════
     COACHING MODULES — Programmes, Check-ins, Progression, Exercices, Messages
  ════════════════════════════════ */

  /* — Programme card — */
  .program-hero {
    background: linear-gradient(135deg, #586b48 0%, #7a9e7e 100%);
    color: #faf6ec;
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  .program-hero::after {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px;
    border: 1px solid rgba(232,225,209,.15);
    border-radius: 50%;
  }
  .program-hero::before {
    content: ""; position: absolute; right: -30px; top: -30px;
    width: 160px; height: 160px;
    border: 1px solid rgba(232,225,209,.1);
    border-radius: 50%;
  }
  .program-hero .ph-label {
    font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    color: #b8975a; margin-bottom: 6px;
  }
  .program-hero .ph-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 400;
    line-height: 1.15; margin-bottom: 0.75rem;
    position: relative; z-index: 1;
  }
  .program-hero .ph-title em { color: #b8975a; font-weight: 400; }
  .program-hero .ph-meta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    padding-top: 1rem; margin-top: 1rem;
    border-top: 1px solid rgba(232,225,209,.2);
    position: relative; z-index: 1;
  }
  .program-hero .ph-meta-item { font-size: 12px; }
  .program-hero .ph-meta-item .lbl {
    font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
    color: #b8975a; display: block; margin-bottom: 2px;
  }
  .program-hero .ph-meta-item .val {
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px;
  }

  .program-quote {
    background: var(--white);
    border-left: 3px solid var(--clay);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    color: var(--mid);
    font-size: 15px;
    line-height: 1.6;
  }

  .session-card {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
  }
  .session-head {
    background: var(--dark);
    color: var(--light);
    padding: 0.875rem 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    user-select: none;
  }
  .session-head h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px; font-weight: 500;
  }
  .session-head .sh-meta {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: #b8975a;
    display: flex; align-items: center; gap: 8px;
  }
  .session-head .toggle-arrow {
    transition: transform 0.3s;
    display: inline-block;
  }
  .session-card.collapsed .toggle-arrow { transform: rotate(-90deg); }
  .session-body { transition: max-height 0.3s; overflow: hidden; }
  .session-card.collapsed .session-body { max-height: 0; padding: 0; }

  .session-block {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(79,114,87,.1);
  }
  .session-block:last-child { border-bottom: none; }
  .block-title {
    font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--sage); margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
  }
  .block-title::before {
    content: ""; width: 7px; height: 7px;
    background: var(--clay); transform: rotate(45deg);
    flex-shrink: 0;
  }
  .exercise-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 8px 0;
    border-bottom: 1px dotted rgba(79,114,87,.15);
    align-items: baseline;
  }
  .exercise-row:last-child { border-bottom: none; }
  .ex-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--dark);
  }
  .ex-notes {
    font-size: 12px;
    color: var(--mid);
    margin-top: 2px;
  }
  .ex-meta-pill {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    color: var(--sage);
    font-weight: 500;
    text-align: right;
  }
  .ex-tags {
    display: flex; gap: 4px; flex-wrap: wrap;
    margin-top: 4px; justify-content: flex-end;
  }
  .ex-tag {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--mid);
    background: var(--sage-pale);
    padding: 2px 7px;
    border-radius: 4px;
  }

  .coach-note-box {
    background: var(--dark);
    color: var(--light);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
  }
  .coach-note-box .cnb-label {
    font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
    color: #b8975a; margin-bottom: 8px;
  }
  .coach-note-box .cnb-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    line-height: 1.6;
    font-size: 15px;
  }

  /* — Check-in form — */
  .checkin-form {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 1.5rem;
  }
  .checkin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
  }
  @media (max-width: 500px) {
    .checkin-grid { grid-template-columns: 1fr; }
  }
  .scale-input {
    display: flex; gap: 6px; margin-top: 6px;
    flex-wrap: wrap;
  }
  .scale-btn {
    width: 36px; height: 36px;
    border: 1.5px solid var(--sand);
    background: var(--white);
    border-radius: 50%;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px; font-weight: 500;
    color: var(--mid);
    cursor: pointer;
    transition: all 0.2s;
  }
  .scale-btn:hover { border-color: var(--sage); color: var(--sage); }
  .scale-btn.active {
    background: var(--sage); color: white; border-color: var(--sage);
  }

  .checkin-history-item {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
  }
  .chi-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap; gap: 8px;
  }
  .chi-date {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    color: var(--dark);
  }
  .chi-weight {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    color: var(--sage);
    font-weight: 500;
  }
  .chi-metrics {
    display: flex; gap: 1.25rem; flex-wrap: wrap;
    font-size: 12px; color: var(--mid);
    margin-bottom: 0.5rem;
  }
  .chi-metrics b { color: var(--dark); font-weight: 500; }
  .chi-text {
    font-size: 13px; color: var(--mid); font-style: italic;
    line-height: 1.5;
  }

  /* — Progression / mensurations — */
  .progress-chart {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  .progress-chart-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .progress-chart-delta {
    font-size: 12px; color: var(--sage); font-family: 'Instrument Sans', sans-serif;
  }
  .progress-chart-delta.neg { color: var(--clay); }
  .chart-svg-wrap {
    position: relative; width: 100%; overflow: hidden;
  }
  .chart-svg-wrap svg { width: 100%; height: auto; display: block; }
  .chart-table {
    width: 100%; margin-top: 0.75rem;
    border-collapse: collapse;
    font-size: 12px;
  }
  .chart-table th, .chart-table td {
    padding: 6px 8px; text-align: right;
    border-bottom: 1px solid var(--sage-pale);
  }
  .chart-table th:first-child, .chart-table td:first-child { text-align: left; }
  .chart-table th {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--mid); font-weight: 500;
  }

  /* — Exercise library cards — */
  .exo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.875rem;
  }
  .exo-card {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 1rem 1.125rem;
    transition: all 0.2s;
    cursor: pointer;
  }
  .exo-card:hover {
    border-color: var(--sage);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79,114,87,.1);
  }
  .exo-card-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 0.4rem;
  }
  .exo-card-cat {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--sage); margin-bottom: 0.5rem;
  }
  .exo-card-muscles {
    font-size: 12px; color: var(--mid);
    margin-bottom: 0.4rem;
  }
  .exo-card-level {
    display: inline-block;
    font-size: 10px;
    background: var(--sage-pale);
    color: var(--sage);
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
  }

  /* — Messagerie — */
  .msg-thread {
    background: var(--sage-pale);
    border-radius: var(--radius);
    padding: 1rem;
    max-height: 480px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .msg-bubble {
    max-width: 80%;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
  }
  .msg-bubble.from-coach {
    background: var(--white);
    border: 1px solid var(--sand);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  .msg-bubble.from-client {
    background: var(--sage);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
  }
  .msg-bubble .msg-time {
    display: block; margin-top: 4px;
    font-size: 10px; opacity: 0.7;
  }
  .msg-composer {
    display: flex; gap: 8px;
  }
  .msg-composer input {
    flex: 1; padding: 10px 14px;
    border: 1.5px solid var(--sand);
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 14px;
    outline: none;
  }
  .msg-composer input:focus { border-color: var(--sage); }
  .msg-composer button {
    background: var(--sage); color: white; border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 500;
    cursor: pointer;
  }

  /* — Documents list — */
  .doc-item {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .doc-icon {
    width: 38px; height: 38px;
    background: var(--sage-pale);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .doc-info { flex: 1; min-width: 0; }
  .doc-title {
    font-weight: 500; font-size: 14px;
    color: var(--dark); margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .doc-meta { font-size: 11px; color: var(--mid); }

  /* — Admin client detail — */
  .client-detail-header {
    background: linear-gradient(135deg, var(--sand) 0%, var(--sage-pale) 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 1.25rem;
    flex-wrap: wrap;
  }
  .client-avatar {
    width: 60px; height: 60px;
    background: var(--sage);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 500;
    flex-shrink: 0;
  }
  .client-detail-info { flex: 1; min-width: 200px; }
  .client-detail-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    color: var(--dark);
  }
  .client-detail-email { font-size: 13px; color: var(--mid); }
  .client-detail-objective {
    margin-top: 6px;
    font-size: 12px; color: var(--sage);
    font-weight: 500;
  }
  .client-detail-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
  }
  .cda-btn {
    background: var(--white);
    border: 1.5px solid var(--sand);
    color: var(--dark);
    padding: 7px 14px;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif; font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .cda-btn:hover { border-color: var(--sage); color: var(--sage); }
  .cda-btn.primary {
    background: var(--sage); color: white; border-color: var(--sage);
  }

  /* — Client row in admin list (clickable) — */
  .client-row-admin {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 0.875rem 1.25rem;
    margin-bottom: 0.5rem;
    display: flex; align-items: center; gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .client-row-admin:hover {
    border-color: var(--sage);
    transform: translateX(2px);
  }
  .client-row-admin .car-mini-avatar {
    width: 40px; height: 40px;
    background: var(--sage-pale);
    color: var(--sage);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px; font-weight: 500;
    flex-shrink: 0;
  }
  .car-info { flex: 1; min-width: 0; }
  .car-name { font-weight: 500; font-size: 14px; color: var(--dark); }
  .car-meta { font-size: 11px; color: var(--mid); }
  .car-badge {
    background: var(--sage);
    color: white;
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }
  .car-badge.warn { background: #d4a04c; }
  .car-badge.muted { background: var(--mid); }
  .car-arrow { color: var(--mid); font-size: 18px; flex-shrink: 0; }

  /* — Program builder admin — */
  .builder-section {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  .builder-section h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px; color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex; justify-content: space-between; align-items: center;
  }
  .builder-block {
    background: var(--sage-pale);
    border-radius: 10px;
    padding: 0.875rem;
    margin-bottom: 0.5rem;
  }
  .builder-block-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem;
  }
  .builder-ex-row {
    display: grid;
    grid-template-columns: 1fr 60px 60px 80px auto;
    gap: 6px;
    margin-bottom: 4px;
    align-items: center;
  }
  .builder-ex-row input {
    padding: 6px 10px !important;
    font-size: 12px !important;
    margin: 0 !important;
  }
  .small-btn {
    background: var(--white);
    border: 1px solid var(--sand);
    color: var(--mid);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
  }
  .small-btn:hover { border-color: var(--clay); color: var(--clay); }
  .small-btn.primary {
    background: var(--sage); color: white; border-color: var(--sage);
  }
  .small-btn.primary:hover { background: #3f5d46; color: white; }

  @media (max-width: 600px) {
    .builder-ex-row { grid-template-columns: 1fr 50px 50px; gap: 4px; }
    .builder-ex-row .ex-extra { display: none; }
  }

  /* — Bigger notification badge for nav — */
  .nav-badge {
    background: var(--clay);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
    vertical-align: middle;
  }

  /* — Generic empty state — */
  .empty-coach {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mid);
    font-size: 13px;
  }
  .empty-coach .empty-icon {
    font-size: 40px;
    margin-bottom: 0.5rem;
    opacity: 0.4;
  }
  .empty-coach .empty-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    font-size: 16px;
    margin-bottom: 0.4rem;
  }

  /* ════════════════════════════════
     V12 — VISUAL EXERCISES, DRAG-DROP, PDF, BLOCK TYPES
  ════════════════════════════════ */

  /* — Enhanced exercise card with photo — */
  .exo-card-v2 {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  .exo-card-v2:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79,114,87,.15);
  }
  .exo-card-v2 .exo-photo {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--sage-pale), var(--sand));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
  }
  .exo-card-v2 .exo-photo-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 42px;
    background: linear-gradient(135deg, var(--sage-pale) 0%, var(--sand) 100%);
  }
  .exo-card-v2 .video-badge {
    position: absolute;
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .exo-card-v2 .level-badge {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
  }
  /* Couleurs par phase NASM (continuum) — finition propreté #2 */
  .exo-card-v2 .level-badge.lvl-stab     { background: rgba(79,114,87,0.92); }
  .exo-card-v2 .level-badge.lvl-force    { background: rgba(176,125,91,0.92); }
  .exo-card-v2 .level-badge.lvl-puissance{ background: rgba(178,80,70,0.92); }
  /* En-tête de groupe dans le picker — finition intuitivité #5 */
  .picker-group-head {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px; color: var(--dark);
    margin: 0.5rem 0 0.35rem; padding-left: 2px;
    display: flex; align-items: center; gap: 7px;
  }
  .picker-group-head:first-child { margin-top: 0; }
  .picker-group-head .pg-dot {
    display:inline-block; width:5px; height:14px; background:var(--sage); border-radius:3px;
  }
  .picker-group-head .pg-count { font-family:'Instrument Sans',sans-serif; font-size:11px; color:var(--mid); font-weight:400; }
  /* Filtre matériel repliable + chips compacts (#4) */
  .lib-equip-details summary::-webkit-details-marker { display:none; }
  .lib-equip-details[open] summary { margin-bottom:2px; }
  .lib-equip-chips { max-height:132px; overflow-y:auto; }
  .lib-equip-chips .picker-chip { font-size:11px; padding:4px 10px; }
  .exo-card-v2 .exo-body {
    padding: 0.875rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .exo-card-v2 .exo-name-v2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    color: var(--dark);
    line-height: 1.25;
  }
  .exo-card-v2 .exo-cat-v2 {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sage);
  }
  .exo-card-v2 .exo-muscles-v2 {
    font-size: 12px;
    color: var(--mid);
    margin-top: 2px;
  }
  .exo-card-v2.draggable-source { cursor: grab; }
  .exo-card-v2.draggable-source:active { cursor: grabbing; }

  /* — Block type variants — */
  .block-card {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.875rem;
    transition: all 0.2s;
  }
  .block-card.type-warmup { border-left: 4px solid #d4a04c; }
  .block-card.type-standard { border-left: 4px solid var(--sage); }
  .block-card.type-superset { border-left: 4px solid #c0605a; }
  .block-card.type-circuit { border-left: 4px solid #7a8ab5; }
  .block-card.type-stretch { border-left: 4px solid #a59abd; }

  .block-card-head {
    padding: 0.875rem 1.125rem;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(to right, rgba(79,114,87,0.06), transparent);
  }
  .block-type-pill {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
  }
  .block-type-pill.warmup { background: #d4a04c; }
  .block-type-pill.standard { background: var(--sage); }
  .block-type-pill.superset { background: #c0605a; }
  .block-type-pill.circuit { background: #7a8ab5; }
  .block-type-pill.stretch { background: #a59abd; }
  .block-card-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    color: var(--dark);
    flex: 1;
  }
  .block-rounds {
    font-size: 11px;
    color: var(--mid);
    background: var(--sage-pale);
    padding: 3px 9px;
    border-radius: 8px;
  }

  /* — Exercise item inside block (visual with photo) — */
  .exo-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 1.125rem;
    border-top: 1px solid rgba(79,114,87,0.08);
    cursor: pointer;
    transition: background 0.15s;
  }
  .exo-line:hover { background: var(--sage-pale); }
  .exo-line-photo {
    width: 50px; height: 50px;
    border-radius: 10px;
    background: var(--sage-pale);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
  }
  /* Avec photo : le bloc devient un simple emplacement transparent et la photo
     s'affiche à son format réel, centrée dedans. Le texte des lignes reste
     aligné (l'emplacement garde sa largeur), la photo n'est ni rognée ni
     entourée de bandes grises visibles. */
  .exo-line-photo.has-photo { background: none; }
  .exo-line-photo > img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
  }
  .exo-line-info { flex: 1; min-width: 0; }
  .exo-line-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.2;
  }
  .exo-line-notes {
    font-size: 11px;
    color: var(--mid);
    margin-top: 2px;
  }
  .exo-line-meta {
    text-align: right;
    flex-shrink: 0;
  }
  .exo-line-meta .reps-pill {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    color: var(--sage);
    font-weight: 500;
  }
  .exo-line-meta .tempo-text {
    font-size: 10px;
    color: var(--mid);
    margin-top: 2px;
  }
  .exo-line .video-mini {
    width: 26px; height: 26px;
    background: var(--sage);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
  }
  .exo-line .perf-log-btn {
    width: 30px; height: 30px;
    background: var(--white);
    border: 1.5px solid var(--sage-light);
    color: var(--sage);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
  }
  .exo-line .perf-log-btn:hover {
    background: var(--sage-pale);
    transform: scale(1.08);
  }

  /* — Exercise detail modal (popup) — */
  .exo-detail-hero {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--sage-pale), var(--sand));
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
  }
  .focus-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #fff; background: var(--sage); box-shadow: 0 1px 6px rgba(0,0,0,0.35); transform: translate(-50%, -50%); pointer-events: none; }
  .exo-detail-hero[data-photo] { margin-left: auto; margin-right: auto; }
  .exo-detail-hero iframe {
    width: 100%; height: 100%;
    border: none;
  }
  .exo-detail-hero-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
  }
  .exo-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1.25rem;
  }
  @media (max-width: 480px) {
    .exo-detail-meta-grid { grid-template-columns: 1fr 1fr; }
  }
  .exo-detail-meta-cell {
    background: var(--sage-pale);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
  }
  .exo-detail-meta-cell .lbl {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 3px;
  }
  .exo-detail-meta-cell .val {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    color: var(--dark);
  }
  .exo-detail-cues {
    background: var(--white);
    border-left: 3px solid var(--clay);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-style: italic;
    color: var(--mid);
    font-size: 14px;
    line-height: 1.55;
  }

  /* — Drag and drop — */
  [draggable="true"] { cursor: grab; }
  [draggable="true"]:active { cursor: grabbing; }
  .drag-handle {
    color: var(--mid);
    font-size: 14px;
    padding: 4px;
    cursor: grab;
    opacity: 0.4;
    transition: opacity 0.2s;
    flex-shrink: 0;
    user-select: none;
  }
  .drag-handle:hover { opacity: 1; }
  .dragging { opacity: 0.4; }
  .drop-target-active {
    background: var(--sage-pale) !important;
    outline: 2px dashed var(--sage);
    outline-offset: -3px;
  }
  .drop-zone {
    min-height: 60px;
    border: 2px dashed transparent;
    border-radius: 10px;
    transition: all 0.2s;
  }
  .drop-zone.drop-target-active {
    border-color: var(--sage);
    background: var(--sage-pale);
  }
  .drop-zone-hint {
    text-align: center;
    color: var(--mid);
    font-size: 12px;
    font-style: italic;
    padding: 1rem;
    display: none;
  }
  .drop-zone:empty + .drop-zone-hint,
  .drop-zone.is-empty .drop-zone-hint { display: block; }

  /* — V2 Builder layout (admin) — */
  .builder-v2 {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    max-height: 75vh;
  }
  @media (max-width: 900px) {
    .builder-v2 { grid-template-columns: 1fr; }
    .builder-library-side { max-height: 240px; }
  }
  .builder-main { overflow-y: auto; max-height: 75vh; padding-right: 6px; }

  /* — Nouveau layout builder simple colonne — */
  .builder-main-single {
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 4px;
  }
  @media (max-width: 600px) {
    .builder-main-single { max-height: none; padding-right: 0; }
  }

  /* — Picker d'exercices (pop-up) — */
  .picker-panel { display: flex; flex-direction: column; max-height: 90vh; }
  .picker-chips-row {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.875rem;
  }
  .picker-chip {
    background: var(--white);
    border: 1.5px solid var(--sand);
    color: var(--dark);
    padding: 7px 14px;
    border-radius: 10px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .picker-chip:hover { border-color: var(--sage); }
  .picker-chip.active {
    background: var(--sage);
    color: white;
    border-color: var(--sage);
  }
  .picker-chip.small { padding: 5px 11px; font-size: 12px; }

  .picker-precise {
    margin-bottom: 0.875rem;
    border: 1px solid var(--sand);
    border-radius: 10px;
    padding: 8px 12px;
    background: var(--cream, #faf6ec);
  }
  .picker-precise summary {
    font-size: 12px;
    color: var(--mid);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex; align-items: center; gap: 6px;
  }
  .picker-precise summary::before { content: '▸'; transition: transform 0.2s; }
  .picker-precise[open] summary::before { transform: rotate(90deg); }

  .picker-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
    max-height: 45vh;
    padding: 2px;
  }
  .picker-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid var(--sand);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .picker-card:hover { border-color: var(--sage); }
  .picker-card.selected {
    border-color: var(--sage);
    background: var(--sage-pale);
  }
  .picker-card-photo {
    width: 48px; height: 48px;
    border-radius: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--sage-pale);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .picker-card-photo.has-photo { background-color: transparent; }
  .picker-card-photo > img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
  }
  .picker-card-photo-fallback {
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
  }
  .picker-card-body { flex: 1; min-width: 0; }
  .picker-card-name {
    font-weight: 500; font-size: 14px; color: var(--dark);
    line-height: 1.2;
  }
  .picker-card-muscles {
    font-size: 12px; color: var(--mid); margin-top: 2px;
  }
  .picker-card-check {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--sand);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--mid);
    flex-shrink: 0;
    transition: all 0.15s;
  }
  .picker-card.selected .picker-card-check {
    background: var(--sage); color: white; border-color: var(--sage);
  }
  .picker-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding-top: 0.875rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--sand);
    position: sticky; bottom: 0;
    background: var(--white);
  }

  .builder-library-side {
    background: var(--sage-pale);
    border-radius: 14px;
    padding: 0.875rem;
    overflow-y: auto;
    max-height: 75vh;
  }
  .builder-library-side h5 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 0.5rem;
  }
  .lib-search {
    width: 100%; padding: 7px 12px;
    border: 1px solid var(--sand);
    border-radius: 10px;
    font-size: 12px;
    font-family: 'Instrument Sans', sans-serif;
    margin-bottom: 0.5rem;
    background: white;
  }
  .lib-side-list { display: flex; flex-direction: column; gap: 5px; }
  .lib-side-item {
    background: white;
    border: 1px solid var(--sand);
    border-radius: 10px;
    padding: 7px 10px;
    display: flex; align-items: center; gap: 8px;
    cursor: grab;
    transition: all 0.15s;
    font-size: 12px;
  }
  .lib-side-item:hover {
    border-color: var(--sage);
    transform: translateX(2px);
  }
  .lib-side-item .lib-side-photo {
    width: 30px; height: 30px;
    border-radius: 7px;
    background: var(--sage-pale);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }
  .lib-side-item .lib-side-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  /* — Mobile builder adjustments — */
  @media (max-width: 600px) {
    .modal-panel { padding: 1rem 0.875rem !important; max-height: 95vh; }
    .modal-title { font-size: 16px; }
    .block-card-head { padding: 10px 0.75rem; flex-wrap: wrap; }
    .block-type-pill { font-size: 8px; padding: 3px 7px; }
    .block-card-title { font-size: 14px; }
    .exo-line { padding: 8px 0.75rem; gap: 8px; }
    .exo-line-photo { width: 40px; height: 40px; font-size: 18px; }
    .exo-line-name { font-size: 13px; }
    .builder-ex-row { display: flex; flex-wrap: wrap; gap: 4px; }
    .builder-ex-row input { flex: 1; min-width: 70px; }
  }

  /* ════════════════════════════════
     COMPREHENSIVE MOBILE RESPONSIVE (V12.1)
  ════════════════════════════════ */
  @media (max-width: 600px) {
    /* General containment — prevent horizontal scroll */
    html, body { overflow-x: hidden; width: 100%; }
    body { -webkit-text-size-adjust: 100%; }

    /* Account page */
    #accountPage { padding: 0 !important; }
    #accountPageContent { padding: 1rem 0.75rem 4rem !important; max-width: 100% !important; }

    /* Modal panels */
    .modal-panel {
      width: 100% !important;
      max-width: 100% !important;
      max-height: 88vh !important;
      border-radius: 16px 16px 0 0 !important;
      margin: 0 !important;
      position: fixed !important;
      left: 0 !important; right: 0 !important; bottom: 0 !important;
      padding: 1rem !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      overscroll-behavior: contain;
      /* Marge basse pour la safe area iOS (barre du bas / swipe) + respiration */
      padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)) !important;
    }
    .overlay {
      align-items: flex-end !important;
    }
    /* Header du modal reste visible en scrollant (bouton ✕ toujours accessible) */
    .modal-panel .modal-header {
      position: sticky;
      top: 0;
      background: var(--white);
      z-index: 5;
      margin: -1rem -1rem 1rem -1rem;
      padding: 1rem 1rem 0.75rem 1rem;
      border-bottom: 1px solid rgba(79,114,87,0.12);
    }

    /* Tab bar scrollable */
    .account-tab-bar {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 4px;
      gap: 4px !important;
      flex-wrap: nowrap !important;
    }
    .account-tab {
      padding: 8px 14px !important;
      font-size: 12px !important;
      flex-shrink: 0;
    }

    /* Program hero compact */
    .program-hero { padding: 1.25rem 1rem !important; }
    .program-hero .ph-title { font-size: 26px !important; }
    .program-hero .ph-meta { gap: 0.75rem !important; }
    .program-hero .ph-meta-item .val { font-size: 14px !important; }

    /* Block cards full-width on mobile */
    .block-card { margin-bottom: 0.625rem; }
    .block-card-head { padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
    .block-type-pill { font-size: 9px; padding: 3px 8px; }
    .block-card-title { font-size: 14px; line-height: 1.2; }
    .block-rounds { font-size: 10px; padding: 2px 7px; }

    /* Exercise lines compact */
    .exo-line { padding: 9px 12px; gap: 10px; }
    .exo-line-photo { width: 42px; height: 42px; font-size: 18px; border-radius: 8px; }
    .exo-line-name { font-size: 13px; }
    .exo-line-notes { font-size: 10px; }
    .exo-line-meta .reps-pill { font-size: 14px; }
    .exo-line-meta .tempo-text { font-size: 9px; }
    .exo-line .video-mini { width: 22px; height: 22px; font-size: 9px; }

    /* Exercise grid (library) */
    .exo-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
      gap: 0.5rem;
    }
    .exo-card-v2 .exo-body { padding: 0.625rem 0.75rem; }
    .exo-card-v2 .exo-name-v2 { font-size: 13px; }
    .exo-card-v2 .exo-cat-v2 { font-size: 9px; }
    .exo-card-v2 .exo-muscles-v2 { font-size: 11px; }
    .exo-card-v2 .level-badge { font-size: 9px; padding: 2px 6px; }

    /* Builder layout - stack vertically */
    .builder-v2 {
      display: flex !important;
      flex-direction: column !important;
      gap: 0.75rem !important;
      max-height: 70vh !important;
    }
    .builder-main { max-height: none !important; padding-right: 0 !important; }
    .builder-library-side {
      max-height: 200px !important;
      padding: 0.625rem !important;
      order: 2;
    }
    .builder-main { order: 1; }

    /* Builder block compact */
    .builder-block { padding: 0.625rem !important; }
    /* Ecran etroit : le nom prend toute la ligne, les reglages passent
       dessous. Sans ca, le selecteur de jour ecrasait le champ nom. */
    .builder-block-head { flex-wrap: wrap; row-gap: 6px; }
    .builder-session-name { font-size: 15px !important; flex: 1 1 100% !important; order: -1; }
    .builder-session-day { flex: 0 0 auto !important; }
    .builder-ex-row { display: flex !important; flex-wrap: wrap; gap: 3px !important; }
    .builder-ex-row input { flex: 1 1 auto; min-width: 60px; font-size: 11px !important; padding: 5px 7px !important; }
    .builder-ex-row input[data-field="name"] { flex-basis: 100%; }

    /* Add block type buttons - 2 per row */
    .add-block-types { grid-template-columns: 1fr 1fr !important; gap: 4px; }
    .add-block-type-btn { font-size: 10px; padding: 6px 8px; }

    /* Block icon buttons smaller */
    .block-icon-btn { width: 26px; height: 26px; font-size: 12px; }
    .drag-handle { font-size: 12px; }

    /* Client detail header stacks */
    .client-detail-header { padding: 1rem; gap: 0.75rem; }
    .client-avatar { width: 48px; height: 48px; font-size: 19px; }
    .client-detail-name { font-size: 18px; }
    .client-detail-email { font-size: 12px; }
    .client-detail-actions { width: 100%; }
    .cda-btn { flex: 1; padding: 7px 10px; font-size: 11px; }

    /* Client row admin compact */
    .client-row-admin { padding: 0.75rem 1rem; gap: 0.75rem; }
    .car-mini-avatar { width: 36px; height: 36px; font-size: 14px; }
    .car-name { font-size: 13px; }
    .car-meta { font-size: 10px; }
    .car-badge { font-size: 9px; padding: 2px 7px; }

    /* Forms */
    .form-row { flex-direction: column !important; gap: 0.5rem !important; }
    .form-group { width: 100% !important; }
    input, textarea, select {
      font-size: 16px !important; /* prevents iOS zoom */
    }
    .checkin-grid { grid-template-columns: 1fr !important; }
    .scale-input { gap: 4px !important; }
    .scale-btn { width: 30px; height: 30px; font-size: 11px; }

    /* Exo detail modal */
    .exo-detail-hero { border-radius: 10px; }
    .exo-detail-meta-grid { grid-template-columns: 1fr 1fr !important; gap: 6px; }
    .exo-detail-meta-cell { padding: 8px; }
    .exo-detail-meta-cell .val { font-size: 14px; }
    .exo-detail-cues { font-size: 13px; padding: 0.875rem 1rem; }

    /* Messages thread */
    .msg-thread { max-height: 380px; padding: 0.75rem; }
    .msg-bubble { font-size: 13px; padding: 8px 12px; max-width: 85%; }

    /* Progress chart */
    .progress-chart { padding: 1rem; }
    .progress-chart-title { font-size: 14px; }
    .chart-table { font-size: 11px; }
    .chart-table th, .chart-table td { padding: 4px 6px; }

    /* Session card content */
    .session-card { margin-bottom: 0.625rem; }
    .session-head { padding: 11px 14px; }
    .session-head h3 { font-size: 15px; }
    .session-body { padding: 0.625rem !important; }

    /* Coach note box */
    .coach-note-box { padding: 1rem; }
    .coach-note-box .cnb-text { font-size: 13px; }

    /* Stat cards */
    .stat-card-row { grid-template-columns: 1fr !important; gap: 0.5rem !important; }

    /* Documents */
    .doc-item { padding: 0.75rem 1rem; gap: 0.75rem; }
    .doc-icon { width: 32px; height: 32px; font-size: 16px; }
    .doc-title { font-size: 13px; }
    .doc-meta { font-size: 10px; }

    /* Library search */
    #libSearchInput { font-size: 14px !important; padding: 9px 14px !important; }

    /* Builder library side */
    .lib-side-item { padding: 5px 8px; }
    .lib-side-photo { width: 26px; height: 26px; }
    .lib-side-name { font-size: 10px; }
  }

  /* Even smaller phones (iPhone SE etc.) */
  @media (max-width: 380px) {
    #accountPageContent { padding: 0.875rem 0.5rem 4rem !important; }
    .modal-panel { padding: 0.75rem !important; }
    .program-hero .ph-title { font-size: 22px !important; }
    .exo-line-name { font-size: 12px; }
    .exo-grid { grid-template-columns: 1fr 1fr !important; }
  }

  /* — Block actions toolbar — */
  .block-actions {
    display: flex; gap: 5px; align-items: center;
    margin-left: auto;
  }
  .block-icon-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--mid);
    width: 28px; height: 28px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
  }
  .block-icon-btn:hover { border-color: var(--sand); color: var(--sage); background: var(--white); }
  .block-icon-btn.danger:hover { color: var(--clay); border-color: var(--clay); }

  /* Flèches de réorganisation (exercices + blocs) — marchent mobile + ordi */
  .builder-arrow-btn {
    background: var(--white);
    border: 1px solid var(--sand);
    color: var(--mid);
    width: 26px; height: 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 9px;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    padding: 0;
  }
  .builder-arrow-btn:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-pale); }
  .builder-arrow-btn:active { transform: scale(0.9); }

  /* Ligne d'exercice dans le builder — layout propre */
  .builder-exo-line { align-items: flex-start; }
  .builder-exo-inputs {
    display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap;
  }
  .builder-exo-inputs input {
    width: 58px; font-size: 11px; padding: 4px 7px;
    border: 1px solid var(--sand); border-radius: 7px;
    font-family: 'Instrument Sans', sans-serif; background: var(--white);
  }
  .builder-exo-headers {
    display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap;
  }
  .builder-exo-headers span {
    width: 58px; font-size: 9px; letter-spacing: 0.3px; text-transform: uppercase;
    color: var(--mid); font-weight: 600; padding: 0 2px;
    display: flex; align-items: center; gap: 2px;
  }
  .exo-mode-toggle {
    background: none; border: none; cursor: pointer; padding: 0;
    font-size: 10px; line-height: 1; opacity: 0.7;
  }
  .exo-mode-toggle:hover { opacity: 1; }
  .builder-exo-actions {
    display: flex; flex-direction: column; gap: 3px;
    align-items: center; flex-shrink: 0; margin-left: 6px;
  }
  @media (max-width: 600px) {
    .builder-exo-inputs input { width: 60px; font-size: 12px; padding: 5px 8px; }
    .builder-exo-headers span { width: 60px; }
    .builder-exo-actions { gap: 4px; }
  }

  /* — PDF print styles — */
  @media print {
    body * { visibility: hidden; }
    #pdfPrintArea, #pdfPrintArea * { visibility: visible; }
    #pdfPrintArea {
      position: absolute; left: 0; top: 0; width: 100%;
      background: white;
    }
    @page { margin: 1.5cm; size: A4; }
  }
  #pdfPrintArea {
    display: none;
    background: white;
    padding: 0;
  }
  #pdfPrintArea.show-preview {
    display: block; max-width: 820px; margin: 1rem auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  }

  /* — Add block type selector — */
  .add-block-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
    margin-bottom: 0.5rem;
  }
  .add-block-type-btn {
    background: white;
    border: 1.5px solid var(--sand);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11px;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
  }
  .add-block-type-btn:hover {
    border-color: var(--sage);
    background: var(--sage-pale);
  }
  .add-block-type-btn .type-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
  }
  .add-block-type-btn[data-type="warmup"] .type-dot { background: #d4a04c; }
  .add-block-type-btn[data-type="standard"] .type-dot { background: var(--sage); }
  .add-block-type-btn[data-type="superset"] .type-dot { background: #c0605a; }
  .add-block-type-btn[data-type="circuit"] .type-dot { background: #7a8ab5; }
  .add-block-type-btn[data-type="stretch"] .type-dot { background: #a59abd; }

  /* ══════════════════════════════════════════
     V16 — Records, mode séance, builder+, vue programme visuelle
  ══════════════════════════════════════════ */

  /* — Pills de records (1RM estimé / max reps) — */
  .pr-pill { display: inline-flex; align-items: center; gap: 4px; background: var(--sage-pale); border: 1px solid var(--sage-light); color: var(--sage); border-radius: 99px; padding: 2px 10px; font-size: 11px; white-space: nowrap; }
  .pr-pill b { color: var(--dark); font-weight: 600; }
  .pr-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }

  /* — Builder : hint perf, chip durée, récap volume — */
  .builder-perf-hint { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--sage); margin: 1px 0 2px; }
  .session-est { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--mid); background: var(--white); border: 1px solid var(--sand); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
  .session-est.over { color: #a05c2c; border-color: #dcb98f; background: #fbf3e8; }
  .session-est.under { color: var(--sage); border-color: var(--sage-light); background: var(--sage-pale); }
  .builder-volume { margin-top: 1rem; background: var(--white); border: 1px solid var(--sand); border-radius: 12px; padding: 10px 14px; }
  .bv-title { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage); margin-bottom: 7px; }
  .bv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .bv-chip { font-size: 12px; color: var(--mid); background: var(--light); border-radius: 8px; padding: 4px 10px; }
  .bv-chip b { color: var(--dark); }
  .dot-draft { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d9a92c; margin-right: 7px; vertical-align: 1px; }

  /* — Menu « Déplacer vers » (tactile) — */
  .move-list { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; }
  .move-target { display: flex; align-items: center; gap: 8px; text-align: left; background: var(--light); border: 1px solid var(--sand); border-radius: 10px; padding: 11px 14px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; color: var(--dark); cursor: pointer; transition: border-color .15s, background .15s; }
  .move-target:hover { border-color: var(--sage); background: var(--sage-pale); }
  .move-target span { color: var(--sage); }

  /* — Picker : doublons — */
  .picker-card.in-session { opacity: .55; }
  .picker-card.in-session.selected { opacity: 1; }
  .picker-dup { display: inline-block; font-size: 10px; color: var(--clay); border: 1px solid var(--sand-dark); border-radius: 99px; padding: 1px 8px; margin-top: 3px; }

  /* — Vue programme client : plus visuelle — */
  .exo-line-photo.xl { width: 62px; height: 62px; position: relative; color: var(--sage-light); }
  .photo-play { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
  .exo-line-video-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--sage); margin-top: 3px; letter-spacing: .3px; }
  .charge-pill { display: inline-block; font-size: 12px; font-weight: 600; color: var(--dark); background: var(--white); border: 1.5px solid var(--sage-light); border-radius: 8px; padding: 3px 9px; margin-top: 3px; white-space: nowrap; }
  .wo-meta .wo-charge { background: var(--sage); border-color: var(--sage); color: #fff; font-weight: 600; }
  .session-head-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .session-thumbs { display: flex; align-items: center; }
  .st-img { width: 30px; height: 30px; border-radius: 50%; background: var(--sage-pale) center/cover; border: 2px solid var(--white); margin-left: -8px; flex-shrink: 0; }
  .st-img:first-child { margin-left: 0; }
  .st-more { font-size: 10px; color: var(--mid); background: var(--sand); border: 2px solid var(--white); border-radius: 99px; padding: 0 7px; height: 30px; display: inline-flex; align-items: center; margin-left: -8px; }
  .sh-meta { display: flex; align-items: center; gap: 10px; }
  .sh-duration { white-space: nowrap; }
  .session-play { display: inline-flex; align-items: center; gap: 5px; background: var(--sage); color: #fff; border: none; border-radius: 99px; padding: 6px 14px; font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s; }
  .session-play:hover { background: #3f5d46; }
  .records-card { background: var(--white); border: 1px solid var(--sand); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
  .records-title { display: flex; align-items: center; gap: 7px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; color: var(--dark); margin-bottom: 8px; }
  .records-title svg { color: var(--clay); }
  .record-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--sand); flex-wrap: wrap; }
  .record-row:last-of-type { border-bottom: none; }
  .rr-name { font-size: 13px; font-weight: 500; color: var(--dark); }
  .rr-vals { display: flex; gap: 6px; flex-wrap: wrap; }
  /* Accordeon de progression : une ligne par exercice, detail au clic. */
  .exo-prog { border-bottom: 1px dotted var(--sand); }
  .exo-prog > summary {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    padding: 12px 2px; cursor: pointer; list-style: none;
  }
  .exo-prog > summary::-webkit-details-marker { display: none; }
  .exo-prog > summary::after {
    content: '›'; margin-left: auto; color: var(--sage); font-size: 18px;
    transition: transform .2s; line-height: 1;
  }
  .exo-prog[open] > summary::after { transform: rotate(90deg); }
  .exo-prog > summary:hover .exo-prog-name { color: var(--sage); }
  .exo-prog-name { font-size: 14px; font-weight: 600; color: var(--dark); }
  .exo-prog-max {
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px;
    color: var(--sage); white-space: nowrap;
  }
  .exo-prog-body { padding: 0 2px 14px; }
  .exo-prog-group {
    font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--mid); margin: 14px 0 2px; font-weight: 600;
  }
  .records-note { font-size: 11px; color: var(--mid); margin-top: 8px; line-height: 1.5; }
  #pdfPrintArea .pdf-qr canvas { display: none; }
  #pdfPrintArea .pdf-qr img { display: block; margin: 0 auto; }

  /* — Panneau contexte client (builder) — */
  .ctx-panel { background: var(--sage-pale); border: 1px solid var(--sage-light); border-radius: 12px; margin-bottom: 1.1rem; overflow: hidden; }
  .ctx-panel summary { display: flex; align-items: center; gap: 7px; padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--dark); list-style: none; }
  .ctx-panel summary::-webkit-details-marker { display: none; }
  .ctx-panel summary svg { color: var(--sage); }
  .ctx-hint { font-size: 11px; font-weight: 400; color: var(--mid); margin-left: auto; }
  .ctx-panel[open] .ctx-hint { display: none; }
  .ctx-body { background: var(--white); border-top: 1px solid var(--sage-light); padding: 10px 14px; display: flex; flex-direction: column; gap: 9px; }
  .ctx-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 12.5px; color: var(--dark); line-height: 1.5; }
  .ctx-lbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--sage); font-weight: 600; padding-top: 2px; }
  .ctx-dim { color: var(--mid); font-size: 11px; }
  .ctx-sub { font-size: 11px; font-weight: 600; color: var(--mid); }
  .ctx-chip { display: inline-block; font-size: 11px; border-radius: 99px; padding: 1px 8px; margin: 1px 2px 1px 0; }
  .ctx-chip.warm { background: #fbf3e8; border: 1px solid #dcb98f; color: #a05c2c; }
  .ctx-chip.cool { background: var(--sage-pale); border: 1px solid var(--sage-light); color: var(--sage); }
  .ctx-quote { font-style: italic; color: var(--clay); font-size: 12px; margin-top: 3px; }
  @media (max-width: 500px) { .ctx-row { grid-template-columns: 1fr; gap: 2px; } }

  /* — Bilan de cycle & sparklines & historique — */
  .cycle-card { background: linear-gradient(135deg, #f6f1e4, var(--white)); border: 1.5px solid #d8c9a4; border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 1.25rem; }
  .cycle-head { display: flex; align-items: center; gap: 8px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; color: var(--dark); margin-bottom: 10px; }
  .cycle-head svg { color: #b8975a; }
  .cyc-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 8px; }
  .cyc-stat { display: flex; flex-direction: column; }
  .cyc-stat b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; color: var(--dark); }
  .cyc-stat span { font-size: 11px; color: var(--mid); }
  .cyc-gains { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
  .cyc-gain { font-size: 12.5px; color: var(--dark); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
  .cyc-gain b { color: var(--sage); }
  .spark { flex-shrink: 0; margin: 0 6px; }
  /* — Fil d'activité — */
  .act-wrap { background: var(--white); border: 1px solid var(--sand); border-radius: 14px; margin-bottom: 1.5rem; overflow: hidden; }
  .act-wrap summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--dark); list-style: none; }
  .act-wrap summary::-webkit-details-marker { display: none; }
  .act-wrap summary svg { color: var(--sage); }
  .act-mark { margin-left: auto; font-size: 11px; color: var(--mid); text-decoration: underline; cursor: pointer; }
  .act-mark:hover { color: var(--sage); }
  .act-body { border-top: 1px solid var(--sand); padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
  .act-row { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: transparent; border: none; border-radius: 9px; padding: 8px 10px; font-family: 'Instrument Sans', sans-serif; font-size: 12.5px; color: var(--dark); cursor: pointer; }
  .act-row:hover { background: var(--sage-pale); }
  .act-row svg { color: var(--mid); flex-shrink: 0; }
  .act-row.new svg { color: var(--sage); }
  .act-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; flex-shrink: 0; }
  .act-row.new .act-dot { background: var(--clay); }
  .act-txt { flex: 1; min-width: 0; line-height: 1.4; }
  .act-row.new .act-txt { font-weight: 500; }
  .act-time { font-size: 11px; color: var(--mid); white-space: nowrap; }
  .act-x { margin-left: 4px; color: var(--sand-dark); font-size: 12px; padding: 2px 7px; border-radius: 6px; flex-shrink: 0; cursor: pointer; }
  .act-x:hover { color: #c0605a; background: rgba(192,96,90,0.12); }
  .ts-info { cursor: default; }
  .ts-info:hover { border-color: transparent; background: var(--light); }
  .ts-info svg { color: #b8975a; }

  /* — Bandeau « Aujourd'hui » — */
  .today-strip { background: var(--white); border: 1px solid var(--sand); border-radius: 14px; padding: 12px 14px; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 6px; }
  .ts-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 2px; }
  .ts-row { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; background: var(--light); border: 1px solid transparent; border-radius: 10px; padding: 11px 12px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; color: var(--dark); cursor: pointer; transition: border-color .15s, background .15s; }
  .ts-row:hover { border-color: var(--sage-light); background: var(--sage-pale); }
  .ts-row svg { color: var(--sage); flex-shrink: 0; }
  .ts-row > span:nth-of-type(1) { flex: 1; min-width: 0; }
  .ts-row em { color: #a07830; font-style: normal; font-size: 12px; }
  .ts-go { color: var(--sage); font-weight: 600; font-size: 12px; white-space: nowrap; }
  .ts-empty { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mid); padding: 4px 2px; }
  .ts-empty svg { color: var(--sage); }

  /* — Barre d'onglets : sticky + indice de scroll + badges — */
  .account-tab-wrap { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 9; background: var(--light); }
  .account-tab-wrap::after { content: ''; position: absolute; top: 0; right: 0; bottom: 2px; width: 34px; background: linear-gradient(to right, transparent, var(--light)); pointer-events: none; opacity: 0; }
  @media (max-width: 720px) {
    .account-tab-wrap::after { opacity: 1; }
    .account-tab-wrap .account-tab-bar { padding-right: 30px; }
  }
  .tab-ind { display: inline-flex; margin-left: 6px; vertical-align: middle; }
  .tab-badge { background: var(--sage); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 600; padding: 1px 7px; line-height: 1.5; }
  .tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); display: inline-block; }
  .tab-new { background: #b8975a; color: #fff; border-radius: 99px; font-size: 9px; font-weight: 600; letter-spacing: .5px; padding: 2px 8px; text-transform: uppercase; }

  /* — Statut des séances + progression du programme — */
  .sh-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .session-done-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(250,246,236,.14); border: 1px solid rgba(184,151,90,.65); color: #e8dcc0; border-radius: 99px; font-size: 10px; letter-spacing: .5px; padding: 2px 9px; text-transform: uppercase; }
  .session-day-chip {
    display: inline-flex; align-items: center; font-size: 10px; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase; color: var(--mid);
    background: var(--light); border: 1px solid var(--sand);
    border-radius: 99px; padding: 3px 9px; white-space: nowrap;
  }
  /* Le jour J ressort : c'est l'information qui declenche l'action. */
  .session-day-chip.today {
    color: var(--sage); background: var(--sage-pale); border-color: var(--sage-light);
  }
  .session-next-chip { background: #b8975a; color: #fff; border-radius: 99px; font-size: 10px; letter-spacing: .5px; padding: 2px 9px; text-transform: uppercase; font-weight: 600; }
  .ph-progress { height: 6px; background: rgba(250,246,236,.25); border-radius: 99px; overflow: hidden; margin-top: 1.1rem; }
  .ph-progress-fill { height: 100%; background: #b8975a; border-radius: 99px; }
  .prog-intro { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 1.25rem; padding: 0 2px; }
  .ph-deload { margin-top: 12px; font-size: 12px; line-height: 1.5; color: #faf6ec; background: rgba(184,151,90,.28); border: 1px solid rgba(184,151,90,.7); border-radius: 10px; padding: 9px 13px; }
  .wo-deload { background: #b8975a !important; border-color: #b8975a !important; color: #fff !important; font-weight: 600; }

  /* — Check-in verrouillé — */
  .checkin-locked { text-align: center; padding: 1.75rem 1rem; background: var(--light); border: 2px dashed var(--sand); border-radius: 12px; }
  .cl-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 46px; font-weight: 700; color: var(--sage); line-height: 1; }
  .cl-lbl { font-size: 13px; color: var(--dark); margin-top: 5px; }
  .cl-last { font-size: 12px; color: var(--mid); margin-top: 12px; }
  .cl-note { font-size: 11px; color: var(--mid); margin-top: 8px; font-style: italic; }

  /* — Mode séance (lecteur) — */
  .workout-overlay { position: fixed; inset: 0; z-index: 400; background: var(--light); display: none; flex-direction: column; padding-top: env(safe-area-inset-top, 0); }
  .workout-overlay.open { display: flex; }
  .wo-top { display: flex; align-items: center; gap: 12px; padding: 12px 1.25rem 8px; }
  .wo-close { background: var(--white); border: 1px solid var(--sand); border-radius: 50%; width: 34px; height: 34px; font-size: 15px; color: var(--mid); cursor: pointer; flex-shrink: 0; }
  .wo-session { flex: 1; font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wo-clock { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--sage); font-weight: 600; }
  .wo-progress { height: 5px; background: var(--sand); margin: 0 1.25rem; border-radius: 99px; overflow: hidden; }
  .wo-progress-fill { height: 100%; background: var(--sage); border-radius: 99px; transition: width .3s; }
  .wo-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 7rem; -webkit-overflow-scrolling: touch; }
  .wo-count { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mid); margin-bottom: 10px; text-align: center; }
  .wo-btype { color: var(--sage); text-transform: none; letter-spacing: normal; }
  .wo-hero { cursor: pointer; }
  .wo-photo { position: relative; width: 100%; max-width: 340px; aspect-ratio: 4/3; border-radius: 16px; background-color: var(--sage-pale); background-size: contain; background-repeat: no-repeat; background-position: center; margin: 0 auto 12px; }
  .wo-photo-fallback { display: flex; align-items: center; justify-content: center; color: var(--sage-light); }
  .wo-video-badge { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(31,35,30,.82); color: #fff; border-radius: 99px; padding: 5px 12px; font-size: 11px; }
  .wo-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; color: var(--dark); text-align: center; margin-bottom: 8px; }
  .wo-meta { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
  .wo-meta span { font-size: 12px; color: var(--mid); background: var(--white); border: 1px solid var(--sand); border-radius: 99px; padding: 4px 11px; }
  .wo-pr { justify-content: center; }
  .wo-last { font-size: 12px; color: var(--mid); background: var(--white); border: 1px dashed var(--sand); border-radius: 10px; padding: 7px 13px; margin: 6px auto 0; max-width: 420px; text-align: center; }
  .wo-last b { color: var(--dark); font-weight: 600; }
  .wo-last span { opacity: .7; }
  .wo-mynote { max-width: 420px; margin: 6px auto 0; }
  .wo-mynote > summary {
    font-size: 13px; color: var(--sage); cursor: pointer; padding: 6px 2px;
    list-style: none; font-weight: 500;
  }
  .wo-mynote > summary::-webkit-details-marker { display: none; }
  .wo-mynote > summary::before { content: '▸ '; }
  .wo-mynote[open] > summary::before { content: '▾ '; }
  .wo-mynote-input {
    width: 100%; box-sizing: border-box; font-family: 'Instrument Sans', sans-serif;
    font-size: 14px; color: var(--dark); background: var(--white);
    border: 1px solid var(--sand); border-radius: 10px; padding: 9px 11px;
    resize: vertical; outline: none;
  }
  .wo-mynote-input:focus { border-color: var(--sage-light); }
  .wo-note { font-size: 13px; color: var(--dark); background: var(--sage-pale); border-radius: 10px; padding: 9px 13px; margin: 8px auto; max-width: 420px; }
  .wo-sets { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin: 14px auto; }
  .wo-set { display: grid; grid-template-columns: 1fr 74px 74px 44px; gap: 8px; align-items: center; background: var(--white); border: 1px solid var(--sand); border-radius: 12px; padding: 9px 12px; transition: border-color .2s, background .2s; }
  .wo-set.done { background: var(--sage-pale); border-color: var(--sage-light); }
  .wo-set-n { font-size: 13px; font-weight: 500; color: var(--dark); }
  .wo-set input { border: 1px solid var(--sand); border-radius: 8px; padding: 8px 6px; font-size: 14px; font-family: 'Instrument Sans', sans-serif; text-align: center; width: 100%; background: var(--light); }
  .wo-check { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--sand-dark); background: var(--white); color: var(--mid); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
  .wo-check.wo-go { border-color: var(--sage); color: var(--sage); animation: wogo 1.9s ease-in-out infinite; }
  .wo-rest.flash { animation: woflash .45s ease-out; }
  .wo-rest-time.final { animation: wofinal .5s ease; }
  @keyframes wofinal { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
  @keyframes woflash { 0% { filter: brightness(1); } 30% { filter: brightness(1.9); } 100% { filter: brightness(1); } }
  @keyframes wogo { 0%, 100% { box-shadow: 0 0 0 0 rgba(90,125,90,0.35); } 50% { box-shadow: 0 0 0 7px rgba(90,125,90,0); } }
  .wo-check.on { background: var(--sage); border-color: var(--sage); color: #fff; }
  .wo-cues { max-width: 420px; margin: 6px auto; font-size: 13px; color: var(--dark); }
  .wo-cues summary { cursor: pointer; color: var(--sage); font-size: 12px; letter-spacing: .5px; }
  .wo-cues div { margin-top: 6px; background: var(--white); border: 1px solid var(--sand); border-radius: 10px; padding: 9px 13px; white-space: pre-wrap; }
  .wo-nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 1.25rem calc(12px + env(safe-area-inset-bottom, 0)); background: linear-gradient(to top, var(--light) 72%, transparent); }
  .wo-nav-btn { flex: 1; padding: 14px; border-radius: 12px; border: 1.5px solid var(--sand-dark); background: var(--white); font-family: 'Instrument Sans', sans-serif; font-size: 14px; color: var(--dark); cursor: pointer; }
  .wo-nav-btn.primary { background: var(--sage); border-color: var(--sage); color: #fff; font-weight: 500; }
  .wo-nav-btn:disabled { opacity: .4; cursor: default; }
  .wo-rest { position: fixed; inset: 0; background: rgba(31,35,30,.94); backdrop-filter: blur(6px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 410; color: #fff; text-align: center; padding: 2rem; }
  .wo-rest.open { display: flex; }
  .wo-rest.work { background: rgba(63,93,70,.96); }
  .wo-rest.work .wo-rest-label { color: #d8e6d2; }
  .wo-rest-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--sage-light); }
  .wo-rest-time { font-family: 'Bricolage Grotesque', sans-serif; font-size: 74px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
  .wo-rest.paused .wo-rest-time { opacity: 0.4; }
  .wo-rest.paused .wo-rest-label::after { content: ' — en pause'; font-weight: 400; opacity: 0.7; }
  .wo-rest-next { font-size: 14px; color: rgba(255,255,255,.75); max-width: 300px; }
  .wo-rest-close {
    display: block; margin: 18px auto 0; background: none; border: none;
    color: rgba(255,255,255,.62); font-family: 'Instrument Sans', sans-serif;
    font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer; padding: 6px 10px;
  }
  .wo-rest-close:hover { color: rgba(255,255,255,.9); }
  .wo-rest-skip { margin-top: 14px; background: transparent; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 99px; padding: 10px 26px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; cursor: pointer; }
  .wo-finish { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 2rem; text-align: center; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  /* Centrage vertical tant que ca tient, defilement des que ca deborde. */
  .wo-finish::before, .wo-finish::after { content: ''; margin: auto; flex-shrink: 0; }
  .wo-finish > * { flex-shrink: 0; max-width: 100%; }
  .wo-finish-badge { width: 66px; height: 66px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; }
  .wo-finish-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; color: var(--dark); }
  .wo-finish-stats { display: flex; gap: 1.75rem; margin: 6px 0; }
  .wo-finish-stats div { display: flex; flex-direction: column; align-items: center; }
  .wo-finish-stats b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; color: var(--dark); }
  .wo-finish-stats span { font-size: 11px; color: var(--mid); letter-spacing: .5px; }
  .wo-finish p { font-size: 13px; color: var(--mid); max-width: 320px; line-height: 1.55; }
  @media (max-width: 420px) {
    .wo-set { grid-template-columns: 1fr 62px 62px 40px; }
    .wo-rest-time { font-size: 58px; }
    .sh-meta { gap: 7px; }
  }

/* Bouton « + Sortie » du bandeau d'accueil                        (v143) */
.ts-add {
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 99px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.ts-add:active { opacity: .8; }


/* Barre d'onglets de progression — le dégradé de droite dit qu'il reste
   quelque chose à voir. Avec cinq onglets, « Course » tombait hors écran
   et la pilule coupée passait pour un défaut d'affichage.        (v146) */
.prog-pills-wrap {
  position: relative;
  margin-bottom: 14px;
}
.prog-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 26px 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.prog-pills::-webkit-scrollbar { display: none; }
.prog-pills .prog-pill { scroll-snap-align: center; }
.prog-pills-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 34px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(244, 241, 232, 0), var(--cream, #faf6ec) 78%);
}


/* Ligne du bandeau « Aujourd'hui » et sa croix de masquage       (v149) */
.ts-wrap {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.ts-wrap > .ts-row {
  flex: 1;
  min-width: 0;
}
.ts-hide {
  flex: 0 0 auto;
  width: 30px;
  border: none;
  background: transparent;
  color: var(--mid);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  opacity: .45;
}
.ts-hide:hover, .ts-hide:active { opacity: 1; background: var(--sand); }


/* Série au-delà du compte de la semaine de décharge : en retrait, mais
   pleinement utilisable — pas de `disabled`, pas de `pointer-events`. */
.wo-set.wo-set-bonus { opacity: .55; }
.wo-set.wo-set-bonus:focus-within { opacity: 1; }
.wo-set.wo-set-bonus .wo-set-n em {
  font-style: normal;
  font-size: 11px;
  color: var(--mid);
}


/* Le badge vidéo est un bouton : il doit s'annoncer comme tel et réagir
   au toucher. `-webkit-tap-highlight-color` sinon iOS n'affiche rien. */
.wo-video-badge {
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .25);
}
.wo-video-badge:active { opacity: .75; transform: scale(.97); }

/* Le conteneur reste cliquable, mais il faut que ça se voie. */
.wo-hero[role="button"] { cursor: pointer; }


/* Le lecteur de seance est en z-index 400, les fenetres modales en 300 :
   une fiche ouverte PENDANT une seance s'affichait donc DERRIERE, et le
   clic semblait sans effet. Rien n'etait casse — c'etait invisible.
   Cette couche passe au-dessus du lecteur, mais reste sous les
   notifications (500) et les alertes (600).                     (v181) */
#exoDetailOverlay,
#sortieOverlay,
#renommerOverlay,
#vitrineOverlay { z-index: 450; }


/* ════════════════════════════════
   SCROLL DES POP-UPS (v185)
   Un seul conteneur défile : le panneau. Avant, le créateur de programme
   empilait trois zones de défilement (page, panneau, colonne des séances)
   et le geste passait de l'une à l'autre en bout de course.
════════════════════════════════ */
/* 1. La page derrière ne bouge plus tant qu'une pop-up est ouverte */
html:has(.overlay.open), body:has(.overlay.open),
html.overlay-lock, body.overlay-lock { overflow: hidden !important; }
/* 2. Le défilement ne « fuit » plus du panneau vers la page en fin de course */
.overlay { overscroll-behavior: contain; }
.modal-panel { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* 3. Créateur de programme : la colonne des séances ne défile plus seule,
      c'est le panneau entier qui défile */
#programBuilderContent .builder-main-single,
#programBuilderContent .builder-main { max-height: none !important; overflow: visible !important; padding-right: 0; }
/* 4. Les cartes restent défilables au doigt, même avec un attribut draggable */
@media (pointer: coarse) {
  #programBuilderContent .builder-exo-line,
  #programBuilderContent .block-card { -webkit-user-drag: none; touch-action: pan-y; }
}


/* ════════════════════════════════
   PICKER D'EXERCICES (v186)
   Filtres repliés par défaut : la liste occupe la hauteur du panneau.
   Seule la liste défile ; en-tête, recherche, barre de filtres et
   pied restent fixes.
════════════════════════════════ */
.modal-panel.picker-panel {
  display: flex !important; flex-direction: column !important;
  height: 90vh; max-height: 90vh !important;
  overflow: hidden !important;
}
.picker-panel > .modal-header { flex-shrink: 0; margin-bottom: 0.875rem; }
.picker-filterbar {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 0.625rem;
}
.picker-filter-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1.5px solid var(--sand); color: var(--dark);
  padding: 7px 12px; border-radius: 10px; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 500;
}
.picker-filter-toggle.open { border-color: var(--sage); color: var(--sage); }
.picker-filter-toggle .pft-caret { font-size: 11px; color: var(--mid); }
.picker-active-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.picker-count { font-size: 12px; color: var(--mid); margin-left: auto; white-space: nowrap; }
.picker-filters {
  flex-shrink: 0; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sand); border-radius: 12px; padding: 12px 12px 10px;
  margin-bottom: 0.625rem; background: var(--cream, #faf6ec);
}
.picker-filters .picker-chips-row { margin-bottom: 0.625rem; }
.picker-filters .picker-chip { padding: 6px 12px; font-size: 12.5px; }
.picker-filters-done { width: 100%; padding: 10px; font-size: 13px; margin-top: 4px; }
.picker-panel .picker-list {
  flex: 1 1 auto; min-height: 0; max-height: none !important;
  overflow-y: auto; overscroll-behavior: contain;
}
.picker-panel .picker-footer { flex-shrink: 0; }
@media (max-width: 600px) {
  .modal-panel.picker-panel { height: 92vh; max-height: 92vh !important; }
  .picker-filters { max-height: 50vh; }
}


/* ════════════════════════════════
   SÉLECTEUR D'EXERCICES — voir la fiche (v191)
   Œil à côté du « + », vignette cliquable. Même gabarit que le « + »
   pour que les deux boutons se lisent comme une paire.
════════════════════════════════ */
.picker-card-voir {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid var(--sand);
  background: transparent; color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; transition: all 0.15s;
}
.picker-card-voir:hover { border-color: var(--sage); color: var(--sage); }
.picker-card-photo { cursor: zoom-in; }
@media (hover: none) {
  /* Doigt : cible de 40 px, écart suffisant pour ne pas toucher le voisin */
  .picker-card-voir, .picker-card-check { width: 40px; height: 40px; }
}
