/* =============================================================
   Gauthier Coaching — feuille de style
   Variables en tête : modifiez-les pour coller à la charte exacte.
   ============================================================= */

:root {
    /* Charte reprise du site gauthiercoaching.ch */
    --brand:        #225f5a;   /* teal / vert sapin principal */
    --brand-dark:   #1b4d48;
    --brand-600:    #49d9aa;   /* menthe — accent lumineux */
    --accent-warm:  #fd6251;   /* corail — accent chaud (badges, CTA) */
    --ink:          #3e3e3e;   /* anthracite (texte) */
    --ink-soft:     #4a4a4c;
    --muted:        #7c8784;   /* gris-vert doux */
    --line:         #eaeaea;
    --bg:           #ffffff;
    --bg-alt:       #f6f7f7;
    --bg-dark:      #225f5a;   /* pied de page teal */
    --white:        #ffffff;
    --radius:       14px;
    --radius-sm:    10px;
    --shadow:       0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg:    0 24px 60px rgba(15, 23, 42, .14);
    --container:    1140px;
    --font:         'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.accent { color: var(--brand); }

.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .12em;
    font-size: .78rem; font-weight: 700; color: var(--brand);
    margin-bottom: .8rem;
}

/* --- Boutons ------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
    border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

.link-arrow { font-weight: 700; color: var(--brand-dark); }

/* --- En-tête / navigation ----------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
    background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: -.02em;
}
.brand-text { font-size: 1.15rem; letter-spacing: -.01em; }
.brand-text strong { color: var(--brand); }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-footer .brand-logo { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--ink-soft); font-weight: 600; }
.nav-links a:hover { color: var(--brand-dark); text-decoration: none; }
.nav-links .btn { color: #fff; }
.nav-links .btn-outline { color: var(--ink); }

.nav-toggle, .nav-burger { display: none; }

/* --- Sections ----------------------------------------------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: .3rem; }

/* --- Grilles ------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-narrow { max-width: 760px; margin: 0 auto; }

/* --- Cartes -------------------------------------------------- */
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.7rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.card h3 { margin-bottom: .3rem; }

/* --- Hero ---------------------------------------------------- */
.hero {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(73,217,170,.20), transparent 60%),
        linear-gradient(180deg, #ffffff, var(--bg-alt));
    padding: 4.5rem 0 5rem;
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero-content .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: .9rem; }
.hero-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 1.8rem;
}
.hero-card h3 { color: var(--brand-dark); }
.hero-hours { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; color: var(--muted); }
.hero-hours strong { color: var(--ink); }

/* --- Page hero (sous-pages) --------------------------------- */
.page-hero { background: var(--bg-dark); color: #fff; padding: 4rem 0 3.5rem; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.8); }
.page-hero .eyebrow { color: var(--brand-600); }

/* --- Étapes -------------------------------------------------- */
.steps .step { text-align: center; }
.step-num {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800; margin-bottom: .8rem;
}

/* --- Cartes tarifs ------------------------------------------ */
.price-card {
    position: relative; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.price-card-featured { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent-warm); color: #fff; font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; padding: .3rem .8rem; border-radius: 999px;
}
.price-tagline { min-height: 2.6rem; }
.price { display: flex; align-items: baseline; gap: .4rem; margin: .6rem 0 1rem; }
.price-amount { font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price-unit { color: var(--muted); font-weight: 600; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.price-features li { padding-left: 1.5rem; position: relative; color: var(--ink-soft); }
.price-features li::before { content: "✔"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price-card .btn { margin-top: auto; }

.cancel-policy .card { text-align: center; }

/* --- CTA ----------------------------------------------------- */
.cta { background: var(--bg-dark); color: #fff; padding: 3.5rem 0; }
.cta h2 { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta .muted { color: rgba(255,255,255,.7); }

/* --- Formulaires -------------------------------------------- */
.form label { display: block; font-weight: 600; margin-bottom: 1rem; color: var(--ink-soft); }
.form input, .form textarea, .form select {
    width: 100%; margin-top: .35rem; padding: .7rem .85rem; font: inherit;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,95,90,.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Contact ------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: .6rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }

/* --- Pied de page ------------------------------------------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: .8rem; font-size: .95rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-list a { color: rgba(255,255,255,.75); }
.footer-list a:hover { color: #fff; }
.brand-footer .brand-text { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.55); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); text-align: center; }

.error-page { text-align: center; padding: 6rem 0; }

/* --- Responsive --------------------------------------------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
    .nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
    .nav-links {
        position: absolute; top: 72px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1rem;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; transition: max-height .25s ease; padding-top: 0; padding-bottom: 0;
    }
    .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .nav-links .btn { margin-top: .6rem; }
    .nav-toggle:checked ~ .nav-links { max-height: 420px; padding-top: .5rem; padding-bottom: 1rem; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .price-card-featured { transform: none; }
    .section { padding: 3.5rem 0; }
    .cta-inner { flex-direction: column; text-align: center; align-items: flex-start; }
}

/* =============================================================
   PHASE 2 — Authentification, alertes, tableaux de bord
   ============================================================= */

/* --- Alertes ------------------------------------------------- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 0 0 1.2rem; font-weight: 600; border: 1px solid transparent; }
.alert a { text-decoration: underline; }
.alert-success { background: #e8f6ef; color: #14684f; border-color: #b7e3d0; }
.alert-error   { background: #fdecea; color: #b3261e; border-color: #f6c7c2; }
.alert-info    { background: #eef4f4; color: #225f5a; border-color: #c9dcda; }

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* --- Pages connexion / inscription -------------------------- */
.auth-section { background: var(--bg-alt); min-height: 70vh; display: flex; align-items: center; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 2.5rem; width: 100%; max-width: 440px;
}
.auth-wrap-wide .auth-card { max-width: 620px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; margin: 1.4rem 0 0; color: var(--muted); }
.form-fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem .3rem; margin: 0 0 1rem; }
.form-fieldset legend { padding: 0 .5rem; font-weight: 700; color: var(--ink-soft); font-size: .9rem; }

/* --- Structure du tableau de bord --------------------------- */
.dash-body { background: var(--bg-alt); }
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash-toggle { position: absolute; }

.dash-sidebar {
    background: #fff; border-right: 1px solid var(--line); padding: 1.5rem 1rem;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.dash-brand { padding: .3rem .6rem 1.5rem; }
.dash-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.dash-nav a {
    display: block; padding: .7rem .9rem; border-radius: var(--radius-sm);
    color: var(--ink-soft); font-weight: 600; transition: background .15s, color .15s;
}
.dash-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.dash-nav a.is-active { background: var(--brand); color: #fff; }
.dash-nav a .nav-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--coral, #fd6251); color: #fff; font-size: .72rem; font-weight: 700;
    border-radius: 999px; line-height: 1;
}
.dash-nav a.is-active .nav-badge { background: #fff; color: var(--brand); }

.dash-user { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.dash-user-info { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.dash-avatar {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-600); color: #06403a; font-weight: 800; flex-shrink: 0;
}
.dash-user-info strong { display: block; font-size: .92rem; }

.dash-main { display: flex; flex-direction: column; min-width: 0; }
.dash-topbar { display: none; align-items: center; gap: 1rem; background: #fff; border-bottom: 1px solid var(--line); padding: .8rem 1.2rem; position: sticky; top: 0; z-index: 20; }
.dash-topbar-title { font-weight: 700; }
.dash-content { padding: 2rem 2.2rem 3rem; max-width: none; width: 100%; }

.dash-h1 { font-size: 1.9rem; margin-bottom: .2rem; }
.dash-section-title { font-size: 1.15rem; margin: 2.2rem 0 1rem; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin: 2.2rem 0 1rem; }
.dash-section-head .dash-section-title { margin: 0; }
.dash-back { margin-bottom: .5rem; }
.dash-back a { color: var(--muted); font-weight: 600; }

.dash-search { display: flex; gap: .6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dash-search input { flex: 1; min-width: 220px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }

/* --- Panneaux, tableaux, badges ----------------------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.panel-form { max-width: 620px; }
.panel h3 { margin-bottom: 1rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); font-size: .93rem; }
.table th { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; }
.table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge-green { background: #e8f6ef; color: #14684f; }
.badge-grey  { background: #e7ebeb; color: #495563; }

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty-state p { margin-bottom: 1rem; }

.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.detail-list li:last-child { border-bottom: none; }
.detail-list li span:first-child { color: var(--muted); font-weight: 600; }

/* --- Statistiques admin ------------------------------------- */
.stat-grid { margin-bottom: .5rem; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 700; color: var(--brand); line-height: 1; }
.stat-label { display: block; margin-top: .4rem; color: var(--muted); font-weight: 600; font-size: .9rem; }

/* --- Cartes forfait (client) -------------------------------- */
.plan-card .plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.plan-card h3 { margin: 0; font-size: 1.05rem; }
.plan-progress { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin: 1rem 0 .6rem; border: 1px solid var(--line); }
.plan-progress-bar { height: 100%; background: var(--brand-600); }
.plan-stat { margin: .3rem 0; }
.plan-stat strong { font-size: 1.3rem; color: var(--ink); }

/* --- Responsive tableau de bord ----------------------------- */
@media (max-width: 860px) {
    .dash { grid-template-columns: 1fr; }
    .dash-topbar { display: flex; }
    .dash-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .dash-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
    .dash-sidebar {
        position: fixed; top: 0; left: 0; z-index: 40; width: 260px; height: 100vh;
        transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg);
    }
    .dash-toggle:checked ~ .dash-sidebar { transform: translateX(0); }
    .dash-content { padding: 1.5rem 1.2rem 2.5rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   Page d'entrée de la plateforme (landing connexion)
   ============================================================= */
.landing {
    background:
        radial-gradient(1000px 480px at 85% -10%, rgba(73,217,170,.20), transparent 60%),
        linear-gradient(180deg, #ffffff, var(--bg-alt));
    padding: 4.5rem 0 5rem; min-height: calc(100vh - 72px); display: flex; align-items: center;
}
.landing-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; width: 100%; }
.landing-content .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30rem; }
.landing-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1.2rem; }
.landing-back a { color: var(--brand-dark); font-weight: 600; }

.landing-card { background: var(--bg-dark); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.landing-card h3 { color: #fff; margin-bottom: 1.2rem; }
.landing-features { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.landing-features li { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.9); }
.landing-features li span { font-size: 1.15rem; }

.btn-ghost-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.2); color: #fff; }

@media (max-width: 900px) {
    .landing-inner { grid-template-columns: 1fr; }
}

/* =============================================================
   PHASE 3 — Réservation (sélecteur de jours, créneaux)
   ============================================================= */
.day-picker { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem 0 1rem; margin-bottom: 1.2rem; }
.day-chip {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .1rem;
    min-width: 68px; padding: .7rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink-soft); text-decoration: none; transition: all .15s;
}
.day-chip:hover { border-color: var(--brand); text-decoration: none; }
.day-chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.day-chip .day-name { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.day-chip .day-num { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.day-chip .day-mon { font-size: .72rem; }

.booking-panel h3 { margin-bottom: 1rem; }
.booking-plan { display: block; font-weight: 600; color: var(--ink-soft); margin-bottom: 1.2rem; }
.booking-plan select { display: block; width: 100%; max-width: 420px; margin-top: .35rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.slot-btn {
    padding: .7rem .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem; cursor: pointer; transition: all .15s;
}
.slot-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }

.row-actions form { display: inline-flex; gap: .4rem; }

/* Créneaux occupés + légende (réservation) */
.slot-btn.is-busy {
    background: repeating-linear-gradient(45deg, #f1f3f3, #f1f3f3 6px, #e9ecec 6px, #e9ecec 12px);
    color: var(--muted); border-style: dashed; cursor: not-allowed; display: flex;
    align-items: center; justify-content: center; text-decoration: line-through;
}
.slot-btn.is-busy:hover { transform: none; background: repeating-linear-gradient(45deg, #f1f3f3, #f1f3f3 6px, #e9ecec 6px, #e9ecec 12px); color: var(--muted); border-color: var(--line); }
.slot-legend { display: flex; gap: 1.4rem; margin: .2rem 0 .6rem; font-size: .85rem; color: var(--muted); }
.slot-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot-free { background: var(--brand); }
.dot-busy { background: repeating-linear-gradient(45deg, #f1f3f3, #f1f3f3 3px, #d7dcdc 3px, #d7dcdc 6px); border: 1px dashed var(--line); }

/* Case à cocher en ligne (formulaires admin) */
.check-line { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1rem; cursor: pointer; }
.check-line input { width: auto; margin-top: .2rem; }
.check-line span { flex: 1; }

/* =============================================================
   PHASE 6 — Questionnaire de santé
   ============================================================= */
.header-actions { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
.questionnaire .q-section { margin-bottom: 1.2rem; }
.questionnaire .q-section h3 { margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.q-row:last-of-type { border-bottom: none; }
.yesno { display: inline-flex; gap: 1rem; flex-shrink: 0; }
.yesno label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 600; color: var(--ink-soft); }
.yesno input { width: auto; margin: 0; }
.q-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.q-check { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; color: var(--ink-soft); }
.q-check input { width: auto; margin: 0; }
@media (max-width: 560px) {
    .q-row { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* =============================================================
   Vue agenda — calendrier hebdomadaire (admin)
   ============================================================= */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cal-title { font-weight: 700; }
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.calendar { border-collapse: collapse; width: 100%; min-width: 780px; table-layout: fixed; }
.calendar th, .calendar td { border: 1px solid var(--line); }
.calendar thead th { padding: .5rem; background: var(--bg-alt); font-size: .8rem; text-align: center; vertical-align: middle; }
.cal-dname { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cal-ddate { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.calendar thead th.cal-today { background: var(--brand); color: #fff; }
.calendar thead th.cal-today .cal-ddate { color: rgba(255,255,255,.85); }
.cal-hcol { width: 56px; }
.cal-hour { width: 56px; text-align: right; padding: .2rem .4rem; font-size: .72rem; color: var(--muted); vertical-align: top; background: var(--bg-alt); white-space: nowrap; }
.cal-cell { height: 44px; padding: 2px; vertical-align: top; }
.cal-closed { background: repeating-linear-gradient(45deg, #fafbfb, #fafbfb 5px, #f3f5f5 5px, #f3f5f5 10px); }
.cal-blocked { background: repeating-linear-gradient(45deg, #fdecea, #fdecea 5px, #f9dcd8 5px, #f9dcd8 10px); }
.cal-chip { display: block; padding: .2rem .4rem; border-radius: 6px; font-size: .72rem; line-height: 1.3; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip-book { background: var(--brand); color: #fff; }
.cal-chip-done { background: #e8f6ef; color: #14684f; border: 1px solid #b7e3d0; }
.cal-chip-block { background: var(--accent-warm); color: #fff; text-align: center; font-weight: 700; }
.cal-legend { display: flex; gap: 1.4rem; margin: .8rem 0 0; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-key.cal-chip-book { background: var(--brand); }
.cal-key.cal-chip-done { background: #b7e3d0; }
.cal-key.cal-chip-block { background: var(--accent-warm); }
.cal-key-closed { background: repeating-linear-gradient(45deg, #fafbfb, #fafbfb 3px, #e6e9e9 3px, #e6e9e9 6px); border: 1px solid var(--line); }

/* Actions sur les factures (admin) */
.inv-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inv-actions form { display: inline; }

/* =============================================================
   Icônes SVG (remplacent les emojis) + polish pro
   ============================================================= */
.ico { display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }

/* Menu latéral : icône + libellé alignés */
.dash-nav a { display: flex; align-items: center; gap: .7rem; }
.dash-nav a .ico { width: 19px; height: 19px; opacity: .75; }
.dash-nav a:hover .ico { opacity: 1; }
.dash-nav a.is-active .ico { opacity: 1; }

/* Boutons avec icône */
.btn .ico { width: 16px; height: 16px; }

/* Liste de fonctionnalités (page d'entrée, sur fond foncé) */
.landing-features li { display: flex; align-items: center; gap: .75rem; }
.landing-features .ico { width: 20px; height: 20px; color: var(--brand-600); }

/* Icônes de carte (politique d'annulation, etc.) */
.card-icon { line-height: 0; margin-bottom: .7rem; }
.card-icon .ico { width: 30px; height: 30px; }
.card-icon-green .ico { color: var(--brand); }
.card-icon-warm  .ico { color: var(--accent-warm); }

/* Polish typographique Poppins */
body { font-weight: 400; letter-spacing: -0.005em; }
.eyebrow { letter-spacing: .1em; font-weight: 600; }
.btn { font-weight: 600; }
.price-amount { letter-spacing: -.02em; }
.dash-nav a { font-weight: 500; }
.table th { font-weight: 600; }

/* Séances cliquables dans le calendrier */
a.cal-chip { text-decoration: none; cursor: pointer; transition: filter .15s; }
a.cal-chip:hover { text-decoration: none; filter: brightness(1.12); }

/* =============================================================
   Espacement des blocs + responsive + page de connexion
   ============================================================= */

/* --- Rythme vertical dans les espaces (évite les blocs collés) --- */
.dash-content > .panel,
.dash-content > .grid,
.dash-content > .alert,
.dash-content > form,
.dash-content > .day-picker { margin-bottom: 1.6rem; }
.dash-content > .panel:last-child,
.dash-content > .grid:last-child { margin-bottom: 0; }
.dash-content .dash-section-title:first-child { margin-top: 0; }
/* Espacement uniquement pour des panneaux EMPILÉS (pas dans une grille) */
.dash-content > .panel + .panel { margin-top: 1.2rem; }

/* --- Page de connexion : logo + certification --- */
.auth-logo { height: 38px; width: auto; display: block; margin: 0 auto 1.3rem; }
.auth-card h1 { text-align: center; font-size: 1.6rem; }
.auth-card > .muted { text-align: center; }
.auth-trust { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; }
.qualicert { height: 52px; width: auto; flex: 0 0 auto; }

/* --- Liste des forfaits (fiche client admin) --- */
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); }
.plan-row .badge { margin-left: .5rem; }
.plan-row form { flex: 0 0 auto; }

/* =============================================================
   Responsive — surtout côté client
   ============================================================= */
@media (max-width: 720px) {
    /* Tableaux : défilement horizontal dans leur panneau */
    .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { min-width: 460px; }
    .inv-actions { min-width: 320px; }
    .detail-list li { flex-wrap: wrap; }
}

@media (max-width: 560px) {
    .dash-content { padding: 1.2rem 1rem 2.2rem; }
    .dash-h1 { font-size: 1.5rem; }
    .dash-section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .plan-row { flex-direction: column; align-items: flex-start; }
    .plan-row form { width: 100%; }
    .plan-row .btn { width: 100%; }
    .row-actions form { flex-wrap: wrap; }
    .auth-card { padding: 1.8rem 1.3rem; }
    .auth-trust { flex-direction: column; text-align: center; }
    .price-card-featured { transform: none; }
    .cal-nav { gap: .5rem; }
    .cal-nav .btn-sm { padding: .45rem .7rem; font-size: .8rem; }
    /* Titre de la semaine sur sa propre ligne, centré ; les flèches en dessous. */
    .cal-nav strong { flex-basis: 100%; order: -1; text-align: center; font-size: .98rem; }
    .cal-nav .btn { flex: 1; text-align: center; }
    /* En-tête de section : les actions passent en pleine largeur, alignées. */
    .dash-section-head .header-actions { width: 100%; }
    .view-toggle { flex: 1; }
    .view-toggle .btn { flex: 1; text-align: center; }
}

/* Formulaires : jamais de débordement horizontal */
.form input, .form textarea, .form select { max-width: 100%; }
body { overflow-x: hidden; }

/* Actions de séance côté client (agenda + annuler) */
.session-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.session-actions form { display: inline; }

/* =============================================================
   Cours collectifs
   ============================================================= */
.class-card { display: flex; flex-direction: column; }
.class-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.class-head h3 { margin: 0; }
.class-price { font-size: 1.5rem; font-weight: 700; color: var(--brand); line-height: 1; white-space: nowrap; }
.class-price small { font-size: .7rem; color: var(--muted); margin-left: 2px; font-weight: 600; }
.class-meta { list-style: none; padding: 0; margin: .9rem 0 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.class-meta li { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); font-size: .9rem; }
.class-meta .ico { color: var(--brand); flex: 0 0 auto; }
.class-booked { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; }
.class-card form { margin-top: auto; }
/* Cours dans le calendrier admin */
.cal-chip-class { background: #6d4aff; color: #fff; }
.cal-key.cal-chip-class { background: #6d4aff; }
/* Événement de l'agenda perso synchronisé (iCloud) — lecture seule */
.cal-chip-ext { background: #eef0f4; color: #52607a; border: 1px dashed #b9c2d4; }
.cal-chip-ext .ico { vertical-align: -0.1em; opacity: .7; }
.cal-key.cal-chip-ext { background: #eef0f4; border: 1px dashed #b9c2d4; }

/* =============================================================
   Refonte pro : tableaux, badges, actions, calendrier plein,
   sélecteur de date, modale
   ============================================================= */

/* --- Tableaux plus pro --- */
.table { font-size: .92rem; }
.table thead th { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: .8rem .9rem; font-size: .72rem; letter-spacing: .05em; }
.table td { padding: .95rem .9rem; vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fbfcfc; }
.table tbody tr:not(:last-child) td { border-bottom: 1px solid #f0f2f2; }

/* --- Badges (statuts) --- */
.badge { white-space: nowrap; padding: .28rem .7rem; font-size: .72rem; }
.badge-amber { background: #fdf1e3; color: #9a6212; }
.badge-red   { background: #fdecea; color: #b3261e; }

/* --- Boutons compacts pour actions de tableau --- */
.btn-sm { padding: .42rem .85rem; font-size: .82rem; border-width: 1px; }
.btn-xs { padding: .32rem .7rem; font-size: .78rem; border-radius: 999px; border-width: 1px; }
.inv-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-width: 0; }
.inv-actions .btn { border-width: 1px; }
.inv-actions form { display: inline-flex; }

/* --- Calendrier : la séance remplit la case --- */
.calendar td.cal-cell { height: 46px; padding: 3px; }
.cal-chip { min-height: 100%; display: flex; align-items: center; margin: 0; border-radius: 6px; font-size: .74rem; }
.cal-cell .cal-chip + .cal-chip { margin-top: 3px; }

/* --- Sélecteur de date/heure custom (FR) --- */
/* (ancien sélecteur .dtp supprimé — remplacé par le composant React DatePicker) */

/* --- Modale (déplacement RDV) --- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(15,23,42,.5); }
.modal.is-open { display: flex; }
.modal-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; padding: 1.8rem; max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.modal-head h3 { margin: 0; }
.modal-close { border: none; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.modal-sep { border: none; border-top: 1px solid var(--line); margin: 1.4rem 0; }

/* Glisser-déposer des RDV dans le calendrier */
a.cal-chip.js-rdv { cursor: grab; }
a.cal-chip.js-rdv:active { cursor: grabbing; }
.cal-chip.is-dragging { opacity: .45; }
.cal-cell.drop-over { outline: 2px dashed var(--brand); outline-offset: -2px; background: rgba(34,95,90,.06); }

/* =============================================================
   Forfaits (espace client) — cartes modernes
   ============================================================= */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-bottom: 1.2rem; }
.offer-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.offer-card {
    position: relative; display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.offer-featured { border: 2px solid var(--brand); }
.offer-ribbon {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: .28rem .9rem; border-radius: 999px; white-space: nowrap;
}
.offer-body { flex: 1; }
.offer-name { font-size: 1.25rem; margin: 0 0 .2rem; }
.offer-tag { min-height: 2.4rem; font-size: .88rem; }
.offer-price { display: flex; align-items: flex-end; gap: .5rem; margin: .4rem 0 .3rem; }
.offer-amount { font-size: 2.6rem; font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -.02em; }
.offer-per { font-size: .72rem; color: var(--muted); font-weight: 600; line-height: 1.1; padding-bottom: .25rem; }
.offer-total { font-size: .9rem; color: var(--ink-soft); padding: .5rem 0 .9rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.offer-feats { list-style: none; padding: 0; margin: 0 0 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.offer-feats li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: .9rem; }
.offer-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.offer-card form { margin-top: auto; }
.offer-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }

@media (max-width: 820px) {
    .offer-grid, .offer-grid-2 { grid-template-columns: 1fr; max-width: 480px; }
}

/* =============================================================
   Prise de séance — onglets + info forfait
   ============================================================= */
.book-tabs { display: inline-flex; gap: .3rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.book-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.book-tab:hover { text-decoration: none; color: var(--brand-dark); }
.book-tab.is-active { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.book-tab .ico { width: 17px; height: 17px; }

.book-plans { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.book-plan-pill { display: inline-flex; align-items: baseline; gap: .45rem; background: #e8f6ef; color: #14684f; border: 1px solid #b7e3d0; border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; }
.book-plan-pill strong { color: #0f5940; }

/* Créneaux un peu plus grands */
.slot-btn { padding: .8rem .4rem; font-size: 1rem; }

/* Facture manuelle — lignes */
.inv-line { display: flex; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.inv-line .inv-desc { flex: 1; }
.inv-line .inv-qty { width: 70px; text-align: center; }
.inv-line .inv-price { width: 110px; text-align: right; }
.inv-line input { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.inv-line .js-del-line { padding: .35rem .7rem; font-size: 1.1rem; line-height: 1; }
@media (max-width: 560px){ .inv-line { flex-wrap: wrap; } .inv-line .inv-desc { flex-basis: 100%; } }

/* =============================================================
   Page Réglages
   ============================================================= */
.hours-table td { padding: .5rem .6rem; vertical-align: middle; }
.hours-table input[type="time"] { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.check-inline { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.check-inline input { width: auto; }

/* Interrupteur */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5d3; border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(18px); }

/* Édition d'une offre */
.offer-edit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .8rem; }
.offer-edit-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; flex-wrap: wrap; }
.offer-edit-head strong { font-size: 1.02rem; }
.offer-edit-head .check-inline { margin-left: auto; }
.offer-edit-fields { display: flex; flex-wrap: wrap; gap: .8rem; }
.offer-edit-fields label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--muted); gap: .2rem; margin: 0; }
.offer-edit-fields input { width: 110px; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* =============================================================
   Finances
   ============================================================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat-warn { border-left: 4px solid #d9a300; }
.stat-danger { border-left: 4px solid var(--accent-warm, #fd6251); }
.fin-chart { display: flex; align-items: flex-end; gap: .5rem; height: 160px; padding: .5rem 0; overflow-x: auto; }
.fin-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 1; min-width: 34px; }
.fin-bar { width: 60%; max-width: 34px; background: var(--line); border-radius: 5px 5px 0 0; position: relative; display: flex; align-items: flex-end; }
.fin-bar-paid { width: 100%; background: var(--brand); border-radius: 5px 5px 0 0; }
.fin-bar-label { font-size: .72rem; color: var(--muted); font-weight: 600; }
.fin-legend { display: flex; gap: 1.2rem; margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); }
.fin-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .35rem; vertical-align: middle; }

/* Bouton & zone danger */
.btn-danger { background: #fff; color: #c0392b; border-color: #f0c4bf; }
.btn-danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid #f0d0cc; margin-top: 1.4rem; }
.header-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Sélecteur de client cherchable */
.client-picker { position: relative; margin-top: .35rem; }
.client-picker .cp-search { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.client-picker .cp-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,95,90,.15); }
.cp-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 3px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 220px; overflow-y: auto; list-style: none; margin: 0; padding: .3rem; display: none; }
.cp-list.is-open { display: block; }
.cp-item { padding: .55rem .7rem; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.cp-item:hover { background: var(--bg-alt); }

/* --- Suivi de progression ----------------------------------- */
.measure-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .8rem 1rem; margin: .2rem 0 1rem;
}
.metric-delta { display: block; margin-top: .35rem; }
.progress-chart { margin-top: .6rem; }
.progress-chart-unit { text-align: right; margin-top: .2rem; }
.progress-add-summary {
    cursor: pointer; font-weight: 700; color: var(--brand-dark);
    list-style: none; user-select: none;
}
.progress-add-summary::-webkit-details-marker { display: none; }
.table-scroll { width: 100%; overflow-x: auto; }
.cell-notes { max-width: 240px; color: var(--muted); font-size: .9rem; }
.cell-actions { white-space: nowrap; display: flex; gap: .8rem; align-items: center; }
.btn-link-danger {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--accent-warm); font: inherit; font-size: .875rem; font-weight: 600;
}
.btn-link-danger:hover { text-decoration: underline; }

/* --- Réglages : grille multi-colonnes ----------------------- */
.settings-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem; align-items: stretch; margin-top: 1.5rem;
}
.settings-grid .panel-form { max-width: none; margin: 0; }
.settings-grid .settings-wide { grid-column: 1 / -1; }
.settings-actions { margin-top: 1.5rem; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } }

/* Sur très grand écran, garder les formulaires « pleine page » lisibles */
.dash-content > .form > .panel-form:only-child,
.dash-content > .panel-form { max-width: 720px; }

/* =============================================================
   Polish visuel homogène (v4) — cartes KPI, tableaux, panneaux
   ============================================================= */

/* KPI / statistiques : tuiles de taille identique, look carte accentuée */
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.stat {
    display: flex; flex-direction: column; justify-content: center; gap: .3rem;
    min-height: 116px; padding: 1.25rem 1.4rem; text-align: left;
    border-top: 3px solid var(--brand-600);
}
.stat-num { font-size: 1.85rem; letter-spacing: -.01em; }
.stat-label { margin-top: 0; font-size: .82rem; line-height: 1.35; }
.stat .metric-delta { margin-top: .15rem; }
.stat-warn { border-top-color: #e0a500; }
.stat-danger { border-top-color: var(--accent-warm); }

/* Panneaux homogènes */
.panel { padding: 1.5rem 1.6rem; }
.panel h3 { font-size: 1.05rem; margin-bottom: .9rem; }

/* Tableaux : rythme régulier + survol + en-tête net */
.table { table-layout: auto; }
.table th, .table td { padding: .8rem .9rem; vertical-align: middle; }
.table thead th { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.table thead th:first-child { border-top-left-radius: 8px; }
.table thead th:last-child { border-top-right-radius: 8px; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: #fbfcfc; }
.table td .link-arrow, .table td a { white-space: nowrap; }
.row-actions, .inv-actions, .cell-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Titres de section homogènes */
.dash-h1 { font-size: 1.8rem; letter-spacing: -.02em; }
.dash-section-title { font-size: 1.1rem; letter-spacing: -.01em; }

/* Grille de contenu large : cartes de même hauteur */
.grid { align-items: stretch; }
.grid > .panel { height: 100%; }

/* Détails repliables (formulaires d'ajout, intégrations) */
details.panel > summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--brand-dark); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "▸ "; color: var(--muted); }
details.panel[open] > summary::before { content: "▾ "; }

/* Inscription manuelle à un cours */
.enroll-bar { padding: 1rem 1.2rem; }
.enroll-form { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; margin: 0; }
.enroll-label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; min-width: 260px; }
.enroll-label select { padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }

/* Rapprochement bancaire (camt.053) */
.reconcile-batch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-left: 4px solid var(--brand-600); }
.match-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; }
.match-form select { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; max-width: 320px; }

/* =============================================================
   REFONTE UX v6 — direction premium & épurée (nav conservée)
   ============================================================= */

/* Rythme de page plus généreux */
.dash-content { padding: 2.2rem 2.4rem 3.5rem; }

/* Titres resserrés = plus premium */
.dash-h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.022em; color: var(--ink); margin-bottom: .15rem; }
.dash-h1 + .muted, .dash-content > p.muted { font-size: .96rem; }
.dash-section-title { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

/* Panneaux : ombre douce superposée + radius généreux */
.panel {
    border-radius: 16px;
    border: 1px solid #eef1f1;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.05);
}
.panel:hover { box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px rgba(16,24,40,.05); }

/* Cartes KPI : accent menthe vertical à gauche, hauteur uniforme, chiffre teal */
.stat {
    border-top: none !important;
    position: relative;
    padding: 1.35rem 1.4rem 1.35rem 1.65rem;
    border-radius: 16px;
    min-height: 118px;
}
.stat::before {
    content: ""; position: absolute; left: 0; top: 16px; bottom: 16px;
    width: 4px; border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-600), var(--brand));
}
.stat-warn::before { background: #e0a500; }
.stat-danger::before { background: var(--accent-warm); }
.stat-num { color: var(--brand); font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; }
.stat-label { color: var(--muted); font-weight: 600; }

/* Boutons : pilules premium (on garde le style de marque) */
.btn { border-radius: 999px; font-weight: 600; }
.btn-primary { background: var(--brand); box-shadow: 0 1px 2px rgba(27,77,72,.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: #e3e7e7; }
.btn-sm { padding: .5rem 1rem; font-size: .86rem; }

/* Champs de formulaire : plus doux + focus teal */
.form input, .form textarea, .form select,
.dash-search input, .enroll-label select, .match-form select {
    border-radius: 10px; border-color: #e3e7e7;
}
.form input:focus, .form textarea:focus, .form select:focus,
.dash-search input:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,95,90,.12); outline: none;
}

/* Badges : pastels nets */
.badge { border-radius: 999px; font-weight: 700; letter-spacing: .01em; padding: .22rem .62rem; }

/* Tableaux : en-tête doux, survol subtil */
.table thead th { background: var(--bg-alt); color: var(--muted); border-bottom: 1px solid #eef1f1; }
.table tbody tr:hover { background: #fbfcfc; }

/* Listes de détails plus lisibles */
.detail-list li { padding: .7rem 0; }

/* Pages d'authentification : carte premium */
.auth-card {
    border-radius: 20px;
    border: 1px solid #eef1f1;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 24px 60px rgba(16,24,40,.10);
    padding: 2.5rem 2.3rem;
}
.auth-logo { height: 42px; margin-bottom: 1.5rem; }
.auth-card h1 { letter-spacing: -.02em; }

/* Liens fléchés + états vides */
.link-arrow { color: var(--brand-dark); font-weight: 700; }
.empty-state { padding: 2.4rem 1rem; }

/* Retour / fil d'ariane */
.dash-back a { font-weight: 600; }
.dash-back a:hover { color: var(--brand-dark); }

/* Alignement des champs sur une même ligne, même si un libellé fait 2-3 lignes */
.form-row > label { display: flex; flex-direction: column; height: 100%; }
.form-row > label > input,
.form-row > label > select,
.form-row > label > textarea,
.form-row > label > .dp { margin-top: auto; }

/* Réglages : un champ par ligne dans chaque panneau → alignement net, aucun trou */
.settings-grid .form-row { grid-template-columns: 1fr; gap: 0; }
.settings-grid .form-row > label { height: auto; }
.settings-grid .form-row > label > input,
.settings-grid .form-row > label > select { margin-top: 0; }

/* Encaissement d'acompte inline dans les actions de facture */
.pay-inline { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }
.pay-inline input[type="number"] { width: 84px; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .8rem; }

/* Alignement des champs de mesure (progression) même si un libellé fait 2 lignes */
.measure-grid > label { display: flex; flex-direction: column; height: 100%; }
.measure-grid > label > input { margin-top: auto; }

/* Type de forfait sur les pastilles d'agenda */
.cal-plan { display: inline-block; margin-left: 4px; font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 0 3px; border-radius: 4px; border: 1px solid currentColor; opacity: .7; }

/* Espacement : boutons de formulaire jamais collés au champ du dessus */
.form > button[type="submit"], .form > .btn, .form > .btn-block { margin-top: 1.3rem; }
.form-fieldset { margin-bottom: 1.4rem; }
.auth-card .form { margin-bottom: .4rem; }
.auth-alt { margin-top: 1.4rem; }

/* « Mot de passe oublié ? » — espace sous le bouton de connexion */
.auth-forgot { margin: 1.2rem 0 .3rem; text-align: center; }
.auth-forgot a { font-weight: 600; }

/* Vue mois de l'agenda */
.view-toggle { display: inline-flex; gap: .3rem; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.month-dow { background: var(--bg-alt); text-align: center; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .5rem 0; }
.month-cell { background: #fff; min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.month-cell:hover { background: #fbfcfc; text-decoration: none; }
.month-cell.is-out { background: #fafbfb; }
.month-cell.is-out .month-day { color: var(--muted); }
.month-cell.is-today .month-day { background: var(--brand); color: #fff; }
.month-day { align-self: flex-start; font-size: .82rem; font-weight: 700; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.month-chip { display: block; font-size: .68rem; line-height: 1.4; padding: 1px 4px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-chip.cal-chip-book { background: var(--brand); color: #fff; }
.month-chip.cal-chip-class { background: #efe9fb; color: #5a3aa8; }
.month-more { font-size: .66rem; color: var(--muted); font-weight: 600; padding-left: 4px; }
@media (max-width: 640px) { .month-cell { min-height: 68px; } .month-chip { display: none; } }

/* Réglages repensés : sections pleine largeur + barre d'ancres collante */
.settings-grid { grid-template-columns: 1fr; gap: 1.4rem; }
.settings-tabs {
    position: sticky; top: 0; z-index: 10;
    display: flex; gap: .35rem; flex-wrap: wrap;
    background: var(--bg-alt); padding: .7rem 0 .8rem; margin: 1.4rem 0 .2rem;
    border-bottom: 1px solid var(--line);
}
.settings-tabs a {
    padding: .4rem .85rem; border-radius: 999px; font-weight: 600; font-size: .86rem;
    color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
}
.settings-tabs a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.settings-card { scroll-margin-top: 4.6rem; }
.settings-card > h3, .settings-card > summary { font-size: 1.15rem; letter-spacing: -.01em; }

/* Sélecteur de date maison (calendrier à la charte) */
.dp { position: relative; display: block; }
.dp > .dp-input { width: 100%; cursor: pointer; background: #fff; }
.dp-pop { position: absolute; z-index: 60; top: calc(100% + 5px); left: 0; width: 300px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .9rem; }
.dp-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: .6rem; gap: .4rem; }
.dp-head button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.dp-head button:hover { border-color: var(--brand); color: var(--brand-dark); }
.dp-selects { display: flex; gap: .35rem; flex: 1; justify-content: center; }
.dp-selects select { border: 1px solid var(--line); border-radius: 8px; padding: .28rem .3rem; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink); background: #fff; cursor: pointer; }
.dp-selects select:hover { border-color: var(--brand); }
.dp-selects select:focus { outline: none; border-color: var(--brand); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: .68rem; color: var(--muted); font-weight: 700; padding: .2rem 0; }
.dp-day { border: none; background: #fff; border-radius: 8px; padding: .45rem 0; cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink); }
.dp-day:hover { background: var(--bg-alt); }
.dp-day.is-sel { background: var(--brand); color: #fff; }
.dp-time { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }
.dp-time select { padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* ---------- Séance : chip effectuée cliquable (bouton) ---------- */
button.cal-chip { font-family: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
button.cal-chip-done:hover { filter: brightness(.97); }

/* ---------- Popover d'une séance (façon Calendrier Apple) ---------- */
.rdv-pop { position: fixed; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 44px rgba(16,24,40,.22); padding: 1.3rem 1.3rem 1.5rem; overflow-x: hidden; overflow-y: auto; box-sizing: border-box; animation: rdv-pop-in .16s cubic-bezier(.22,.61,.36,1); }
/* Rien ne doit déborder en largeur → jamais de scroll horizontal. */
.rdv-pop * { max-width: 100%; box-sizing: border-box; }
.rdv-pop .detail-list li { flex-wrap: wrap; }
.rdv-pop .detail-list li a { word-break: break-all; }
.rdv-pop .dp { position: static; }
.rdv-pop .dp-pop { position: static; width: 100%; box-shadow: none; border-color: var(--line); padding: .6rem; margin-top: .4rem; }
.rdv-pop .dp-grid { gap: 1px; }
.drawer-close { position: absolute; top: .7rem; right: .8rem; background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .1rem .4rem; border-radius: 8px; }
.drawer-close:hover { background: var(--bg-alt); color: var(--ink); }
.drawer-loading { color: var(--muted); padding: 2rem 0; text-align: center; }
.drawer-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 1.6rem .8rem 0; }
.drawer-head h3 { margin: 0; font-size: 1.08rem; color: var(--brand); }
.drawer-section { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.drawer-section:first-of-type { border-top: none; padding-top: 0; }
.drawer-section h4 { margin: 0 0 .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.drawer-notes { margin: 0; white-space: pre-wrap; background: var(--bg-alt); border-radius: 10px; padding: .7rem .85rem; font-size: .9rem; color: var(--ink); line-height: 1.5; }
.drawer-form { display: flex; flex-direction: column; gap: .6rem; }
.drawer-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.drawer-form input[type="text"], .drawer-form select, .drawer-form textarea { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.drawer-form textarea { resize: vertical; line-height: 1.5; }
.drawer-row { display: flex; gap: .5rem; align-items: center; }
.drawer-row select { flex: 1; min-width: 0; }
.drawer-row .btn { flex: none; white-space: nowrap; }
.rdv-pop .btn-block { margin-top: .2rem; }

@keyframes rdv-pop-in { from { transform: translateY(-6px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* ---------- Historique des séances : tableau défilable ---------- */
.table-scroll { max-height: 480px; overflow-y: auto; border-radius: 10px; }
.table-scroll .table thead th { position: sticky; top: 0; z-index: 2; }

/* ---------- Barre de filtres (factures) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.filter-bar input, .filter-bar select { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.filter-bar .filter-search { flex: 1; min-width: 220px; }
.filter-bar select:hover, .filter-bar input:focus, .filter-bar select:focus { border-color: var(--brand); outline: none; }

/* ---------- Accessibilité : anneaux de focus clavier ---------- */
.dp-input:focus, .dp-input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 95, 90, .16); }
.dp-day:focus-visible, .dp-selects select:focus-visible, .dp-head button:focus-visible,
.slot-btn:focus-visible, .cal-chip:focus-visible, .book-tab:focus-visible,
.book-plan-pill:focus-visible, .month-cell:focus-visible, .day-picker a:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px;
}
/* Popover séance : jamais plus large que l'écran (sécurité mobile). */
.rdv-pop { max-width: calc(100vw - 20px); }

/* ---------- Popover séance : mise en page plus large / aérée (desktop) ---------- */
.rdv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rdv-cols .drawer-section { margin-top: 0; padding-top: 0; border-top: none; }
.rdv-move > summary { cursor: pointer; list-style: none; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.rdv-move > summary::-webkit-details-marker { display: none; }
.rdv-move > summary::before { content: "▸ "; color: var(--muted); }
.rdv-move[open] > summary::before { content: "▾ "; }
@media (max-width: 520px) { .rdv-cols { grid-template-columns: 1fr; gap: 0; } .rdv-cols .drawer-section:last-child { margin-top: .8rem; } }

/* ============================================================
   Côté client — pensé « app mobile » : tableaux → cartes, pas de scroll latéral
   ============================================================ */
@media (max-width: 720px) {
  /* Tableau .table-cards : chaque ligne devient une carte empilée. */
  .table-cards { min-width: 0; display: block; width: 100%; }
  .table-cards thead { display: none; }
  .table-cards tbody { display: block; }
  .table-cards tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .25rem .2rem; margin-bottom: .7rem; box-shadow: var(--shadow); }
  .table-cards tr:hover { background: #fff; }
  .table-cards td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem; border: none; text-align: right; font-size: .96rem; }
  .table-cards td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: 0 0 auto; }
  .table-cards td:not(:last-child) { border-bottom: 1px solid #f0f2f2; }
  .table-cards td:empty { display: none; }
  /* Dernière cellule sans libellé (lien PDF, etc.) alignée à droite. */
  .table-cards td:last-child:not(.row-actions):not([data-label])::before { display: none; }
  .table-cards td:last-child:not(.row-actions):not([data-label]) { justify-content: flex-end; }
  /* Cellule d'actions → boutons pleine largeur, empilés (tap facile). */
  .table-cards td.row-actions { display: block; padding: .7rem .7rem .2rem; }
  .table-cards td.row-actions::before { display: none; }
  .table-cards td.row-actions > *, .table-cards td.row-actions form { display: block; width: 100%; margin: 0 0 .5rem; }
  .table-cards td.row-actions .btn { width: 100%; }

  /* Onglets Réserver : pleine largeur, plus faciles à toucher. */
  .book-tabs { display: flex; width: 100%; }
  .book-tabs .book-tab { flex: 1; justify-content: center; }
}

/* Carrousel de jours (Réserver) : défilement horizontal fluide, sans barre. */
.day-picker { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.day-picker::-webkit-scrollbar { display: none; }
.day-chip { flex: 0 0 auto; scroll-snap-align: start; }

/* ---------- Intégrations : état « configuré » compact (badge + Modifier) ---------- */
.integration-block { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.integration-block:first-of-type { border-top: none; padding-top: .3rem; margin-top: .3rem; }
.integration-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.integration-head h4 { margin: 0; font-size: 1rem; }
.integration-summary { margin: 0; color: var(--ink-soft); font-size: .88rem; word-break: break-all; background: var(--bg-alt); border-radius: 8px; padding: .55rem .75rem; }

/* ---------- Mobile : marges resserrées (feeling app) ---------- */
@media (max-width: 720px) {
  .dash-content { padding: .9rem .85rem 2.2rem; }
  .dash-h1 { font-size: 1.45rem; margin-bottom: .1rem; }
  .dash-section-title { margin: 1.25rem 0 .7rem; font-size: 1.05rem; }
  .panel { padding: 1rem 1.05rem; border-radius: 14px; }
  .dash-content > .panel + .panel { margin-top: .9rem; }
  .book-tabs, .book-plans { margin-bottom: .9rem; }
  .day-picker { margin-bottom: 1rem; }
}

/* ---------- Menu client verrouillé (questionnaire santé non rempli) ---------- */
.dash-nav .nav-locked {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 500; opacity: .5; cursor: not-allowed; user-select: none;
}
.dash-nav .nav-locked .ico { width: 19px; height: 19px; opacity: .6; }

/* ============================================================
   Dashboard client « app » : prochaine séance en avant + raccourcis
   ============================================================ */
.next-card { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark, #1a4b47) 100%); color: #fff; border: none; box-shadow: 0 10px 26px rgba(34,95,90,.28); }
.next-card-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-bottom: .35rem; }
.next-card-when { font-size: 1.45rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.next-card-where { margin-top: .35rem; opacity: .92; font-size: .95rem; }
.next-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.next-card.is-empty { align-items: flex-start; display: flex; flex-direction: column; gap: .8rem; }
.btn-card { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-card:hover { background: rgba(255,255,255,.28); color: #fff; }

.quick-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin: 1.1rem 0 0; }
.quick-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.1rem .6rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); text-align: center; transition: transform .12s, box-shadow .12s; }
.quick-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.1); border-color: var(--brand); }
.quick-tile .ico { color: var(--brand); }
@media (max-width: 560px) { .quick-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Agenda : jour actuel mis en évidence ---------- */
.calendar thead th.is-today { color: #fff; background: var(--brand); border-radius: 8px 8px 0 0; }
.calendar td.cal-cell.is-today { background: rgba(73, 217, 170, .08); }
.calendar td.cal-cell.is-today.cal-cell-closed { background: rgba(73, 217, 170, .05); }

/* ---------- Réservation guidée (étapes) ---------- */
.book-step { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1rem; color: var(--ink); margin: 1.3rem 0 .6rem; }
.book-step:first-of-type { margin-top: .4rem; }
.book-step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 800; flex: none; }
.booking-options { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.booking-options > summary { cursor: pointer; font-weight: 600; color: var(--brand-dark, #1a4b47); font-size: .9rem; list-style: none; }
.booking-options > summary::-webkit-details-marker { display: none; }
.booking-options > summary::before { content: "▸ "; color: var(--muted); }
.booking-options[open] > summary::before { content: "▾ "; }
.booking-options .booking-plan { margin-top: .8rem; }

/* ---------- Mes factures (client) : résumé + cartes ---------- */
.invoice-summary { text-align: center; padding: 1.4rem 1.2rem; }
.invoice-summary.is-due { background: linear-gradient(135deg, var(--accent-warm, #fd6251) 0%, #e14b3c 100%); color: #fff; border: none; box-shadow: 0 10px 26px rgba(253,98,81,.28); }
.invoice-summary.is-ok { background: #e8f6ef; border-color: #b7e3d0; color: #14684f; }
.invoice-summary-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.invoice-summary-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: .25rem 0; }
.invoice-summary-hint { display: block; font-size: .85rem; opacity: .92; max-width: 34ch; margin: 0 auto; }
.invoice-summary.is-ok .invoice-summary-amount { font-size: 1.3rem; }

.invoice-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }
.invoice-card { padding: 1.1rem 1.2rem; }
.invoice-card.is-due { border-left: 4px solid var(--accent-warm, #fd6251); }
.invoice-card-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.invoice-num { font-size: .82rem; color: var(--muted); font-weight: 600; }
.invoice-amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; margin: .3rem 0 .1rem; color: var(--ink); }
.invoice-amount-sub { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.invoice-card .btn-block { margin-top: .8rem; }

/* Choix de facturation (radio-cards) — création de RDV */
.billing-choice { border: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.billing-choice legend { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; padding: 0; }
.radio-card {
    display: flex; align-items: flex-start; gap: .6rem; cursor: pointer;
    border: 1.5px solid var(--line, #e6e6e6); border-radius: var(--radius-sm); padding: .7rem .8rem;
    transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: var(--brand); }
.radio-card input { margin-top: .2rem; accent-color: var(--brand); }
.radio-card:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.radio-card > span { display: flex; flex-direction: column; gap: .15rem; }

/* Pile « À facturer » */
.facturer-summary {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    background: color-mix(in srgb, var(--brand) 8%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    border-radius: var(--radius); padding: .8rem 1.1rem; margin-bottom: 1.1rem; font-weight: 600; color: var(--ink);
}
.facturer-summary-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px;
    background: var(--brand); color: #fff; border-radius: 999px; font-weight: 800; margin-right: .3rem;
}
.facturer-summary-total { color: var(--muted); font-weight: 500; }
.facturer-summary-total strong { color: var(--brand); font-weight: 800; }

.facturer-groups { display: grid; gap: 1rem; }
.facturer-group { padding: 0; overflow: hidden; }
.fc-head {
    display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line, #ececec); background: var(--bg-alt, #f7f7f5);
}
.fc-avatar {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--mint, #49d9aa); color: var(--brand, #225f5a); font-weight: 800; font-size: .95rem;
}
.fc-head-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fc-name { font-size: 1.08rem; font-weight: 700; color: var(--brand); }
.fc-name:hover { text-decoration: underline; }
.fc-meta { font-size: .82rem; color: var(--muted); font-weight: 500; }

.fc-sessions { display: flex; flex-direction: column; }
.fc-session { border-top: 1px solid var(--line, #ececec); }
.fc-session:first-child { border-top: none; }
.fc-session-sum {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .85rem 1.2rem; cursor: pointer; list-style: none; user-select: none;
    transition: background .12s;
}
.fc-session-sum::-webkit-details-marker { display: none; }
.fc-session-sum:hover { background: var(--bg-alt, #f7f7f5); }
.fc-session-when { font-weight: 600; color: var(--ink); font-size: .92rem; }
.fc-session-loc { color: var(--muted); font-weight: 500; }
.fc-session-amount {
    flex: 0 0 auto; background: color-mix(in srgb, var(--accent-warm, #fd6251) 12%, #fff);
    color: var(--accent-warm, #fd6251); font-weight: 800; font-size: .9rem;
    padding: .2rem .6rem; border-radius: 999px;
}
.fc-session[open] > .fc-session-sum { background: var(--bg-alt, #f7f7f5); }
.fc-form { margin: 0; padding: .2rem 1.2rem 1.1rem; }
.fc-plan {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    margin: 0 1.2rem 1.1rem; padding-top: .85rem; border-top: 1px dashed var(--line, #e6e6e6);
}
.fc-plan > .small { flex: 0 0 auto; }
.fc-plan select {
    flex: 1; min-width: 140px; padding: .55rem .7rem; font: inherit;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.fc-plan select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,95,90,.15); }
.fc-plan .btn { flex: 0 0 auto; }

/* Sous-onglets de la fiche client (CSS pur, sans JS) */
.ctab-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ctab-bar { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 2px solid var(--line); margin: 1.6rem 0 1.3rem; }
.ctab-bar label {
    padding: .6rem 1rem; cursor: pointer; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0;
    transition: color .12s, background .12s;
}
.ctab-bar label:hover { color: var(--ink); background: var(--bg-alt); }
.ctab-panel { display: none; }
#ctab-apercu:checked ~ .ctab-bar label[for="ctab-apercu"],
#ctab-seances:checked ~ .ctab-bar label[for="ctab-seances"],
#ctab-facturation:checked ~ .ctab-bar label[for="ctab-facturation"] { color: var(--brand); border-bottom-color: var(--brand); }
#ctab-apercu:checked ~ .ctab-panel[data-tab="apercu"],
#ctab-seances:checked ~ .ctab-panel[data-tab="seances"],
#ctab-facturation:checked ~ .ctab-panel[data-tab="facturation"] { display: block; }
.ctab-radio:focus-visible ~ .ctab-bar label[for="ctab-apercu"] { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Bouton rendu comme un lien (actions inline) */
.as-link {
    background: none; border: none; padding: 0; font: inherit; cursor: pointer;
    color: var(--brand); font-weight: 600;
}
.as-link:hover { text-decoration: underline; }
.att-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Actions sur une carte forfait (fiche client) */
.plan-actions { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .2rem; align-items: center; }
.plan-att { color: var(--brand); font-weight: 600; }

/* Onglet Assurance */
.assur-body { padding: 1rem 1.2rem; }
.assur-insurance { margin: 0 0 .9rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line, #e6e6e6); }
.assur-save { display: flex; align-items: flex-end; }
.assur-save .btn { width: 100%; }
.assur-gen { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.assur-tweak { text-decoration: none; }
.assur-tweak:hover { text-decoration: underline; }

/* ===== Agenda — allègement visuel « façon Apple » (instinctif) ===== */
.cal-wrap { border-color: #ececec; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); }
.calendar th, .calendar td { border-color: #f1f2f2; }
.calendar thead th { background: #fff; padding: .75rem .4rem .65rem; border-bottom: 1px solid #e9eaea; vertical-align: top; }
.calendar tbody th.cal-hour { background: #fafbfb; color: var(--muted); font-weight: 600; font-size: .72rem; }
.cal-dname { display: block; font-size: .66rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cal-ddate { display: block; color: var(--ink); font-weight: 700; font-size: 1.02rem; margin-top: .2rem; }
/* Aujourd'hui : en-tête épuré + numéro dans une pastille ronde (signature Apple) */
.calendar thead th.is-today { background: #fff; color: inherit; border-radius: 0; }
.calendar thead th.is-today .cal-dname { color: var(--brand); }
.calendar thead th.is-today .cal-ddate {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 30px; margin-top: .1rem; padding: 0 .35rem;
    background: var(--brand); color: #fff; border-radius: 999px; font-size: .95rem;
}
.calendar td.cal-cell.is-today { background: rgba(34,95,90,.035); }
/* Cellules plus aérées, chips arrondies et douces */
.calendar td.cal-cell { height: 54px; padding: 4px; }
.cal-chip { border-radius: 10px; padding: .32rem .5rem; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.07); }
.cal-chip-done { background: #eaf7f1; color: #14684f; border: none; }
.cal-chip-block { background: #fbe9e6; color: var(--accent-warm); box-shadow: none; }

/* Pages légales (politique de confidentialité) */
.legal-page { max-width: 760px; margin: 0 auto; padding: 2.5rem 0 4rem; }
.legal-page h1 { margin-bottom: .3rem; }
.legal-page h2 { margin: 1.8rem 0 .5rem; font-size: 1.12rem; }
.legal-page ul { margin: .4rem 0 .6rem 1.2rem; }
.legal-page li { margin: .3rem 0; line-height: 1.55; }
.legal-page p { line-height: 1.65; }
.legal-back { display: inline-block; margin-bottom: 1rem; color: var(--brand); font-weight: 600; }
