/* ============================================
   AURA™ - Warm Fitness Design
   Palette: Cream, Purple, Dark, Warm tones
   ============================================ */
:root {
    --navy: #2d2d3f;
    --navy-light: #3a3a52;
    --navy-dark: #1e1e2e;
    --purple: #6c47ff;
    --purple-hover: #5835e0;
    --purple-light: #f0ecff;
    --purple-glow: rgba(108,71,255,.12);
    --orange: #ff6b2b;
    --orange-light: #fff3ed;
    --cream: #faf5ef;
    --cream-dark: #f0e8dd;
    --white: #ffffff;
    --bg: #faf5ef;
    --bg-card: #ffffff;
    --text-dark: #2d2d3f;
    --text-body: #4a4a5a;
    --text-muted: #8a8a9a;
    --text-light: #b5b5c5;
    --border: #e8e2da;
    --border-light: #f2ede6;
    --success: #16a34a;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --info: #6c47ff;
    --info-bg: #f0ecff;
    /* Aliases for backwards compat */
    --blue: var(--purple);
    --blue-hover: var(--purple-hover);
    --blue-light: var(--purple-light);
    --blue-glow: var(--purple-glow);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 4px rgba(45,45,63,.05);
    --shadow: 0 2px 12px rgba(45,45,63,.07);
    --shadow-lg: 0 6px 24px rgba(45,45,63,.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.6;
}

/* Fond photo du shooting (logo CORE au mur, 2026-08-26) : image fixe sous un
   voile crème CORE, même traitement que le Triangle et les espaces. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(255, 253, 244, .9), rgba(255, 253, 244, .93)), url('img/fond-espace-medecin.jpg') center/cover no-repeat;
    -webkit-font-smoothing: antialiased;
}

/* ---- TOPBAR ---- */
.topbar {
    background: var(--white);
    color: var(--text-dark);
    height: 60px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--purple);
}

.topbar-logo .tm {
    font-size: 10px;
    vertical-align: super;
    color: var(--orange);
}

.topbar-nav {
    display: flex;
    gap: 4px;
}

.topbar-nav button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all .2s;
    font-family: inherit;
}

.topbar-nav button:hover {
    background: var(--purple-light);
    color: var(--purple);
}

.topbar-nav button.active {
    background: var(--purple);
    color: var(--white);
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

/* ---- SIDEBAR ---- */
#sidebar {
    width: 60px;
    min-width: 60px;
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 56px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
    gap: 2px;
}

.sidebar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 500;
    gap: 2px;
    text-decoration: none;
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.sidebar-icon:hover {
    background: var(--purple-light);
    color: var(--purple);
}

.sidebar-icon.active {
    background: var(--purple-light);
    color: var(--purple);
    font-weight: 600;
}

/* ---- MAIN LAYOUT ---- */
#app {
    display: flex;
    min-height: 100vh;
    padding-top: 56px;
}

#main-content {
    flex: 1;
    margin-left: 60px;
    padding: 0;
    min-height: calc(100vh - 60px);
}

/* ---- PAGE: HOME ---- */
.page { display: none; }
.page.active { display: block; }

.home-header {
    background: var(--cream);
    padding: 40px 40px 32px;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.home-header::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--purple-light);
    opacity: .4;
}

.home-greeting {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.home-greeting strong {
    font-weight: 800;
}

.home-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ---- SEARCH BAR ---- */
.search-container {
    max-width: 560px;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
    transition: box-shadow .2s;
}

.search-bar:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.15), 0 0 0 3px var(--blue-glow);
}

.search-bar::placeholder {
    color: var(--text-light);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ---- QUICK ACTIONS ---- */
.quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 10px 20px;
    border-radius: 24px;
    border: 2px solid var(--purple);
    background: var(--white);
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.quick-btn:hover {
    background: var(--purple);
    color: var(--white);
}

/* ---- HOME BODY ---- */
.home-body {
    padding: 32px 40px;
    max-width: 1200px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* ---- CLIENT LIST ---- */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.client-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-card:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), #9b7aff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.client-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.client-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.client-badge {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-active { background: var(--success-bg); color: var(--success); }
.badge-pause { background: var(--warning-bg); color: var(--warning); }
.badge-new { background: var(--info-bg); color: var(--info); }

/* ---- ADD CLIENT BTN ---- */
.add-client-card {
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    min-height: 84px;
}

.add-client-card:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-light);
}

.add-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
}

/* ---- STATS CARDS ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-card .stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   PAGE: PROGRAMME (Formulaire AURA)
   ============================================ */
.programme-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 56px;
    z-index: 50;
}

.programme-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.programme-client-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.programme-client-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- STEP PROGRESS BAR ---- */
.step-progress {
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    gap: 0;
}

.step-tab {
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-tab:hover {
    color: var(--text-body);
}

.step-tab.active {
    color: var(--purple);
    border-bottom-color: var(--purple);
    font-weight: 600;
}

.step-tab.completed {
    color: var(--success);
}

.step-tab .tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border-light);
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-tab.active .tab-num {
    background: var(--purple);
    color: var(--white);
}

.step-tab.completed .tab-num {
    background: var(--success);
    color: var(--white);
}

/* ---- FORM AREA ---- */
.form-area {
    padding: 32px 40px;
    max-width: 800px;
}

.step-panel { display: none; animation: fadeIn .25s ease; }
.step-panel.active { display: block; }

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

.step-header {
    margin-bottom: 28px;
}

.step-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--purple-light);
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    border-radius: 16px;
    margin-bottom: 10px;
    letter-spacing: .5px;
}

.step-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-size: 14px;
    transition: all .2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-glow);
}

.form-group input::placeholder { color: var(--text-light); }

.hint {
    font-size: 11px;
    color: var(--text-light);
}

.step-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.btn-next, .btn-prev, .btn-generate {
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: none;
    font-family: inherit;
}

.btn-next {
    background: var(--purple);
    color: var(--white);
    border-radius: 24px;
}

.btn-next:hover {
    background: var(--purple-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-prev {
    background: var(--white);
    color: var(--text-body);
    border: 1px solid var(--border);
}

.btn-prev:hover {
    border-color: var(--text-muted);
    color: var(--text-dark);
}

.btn-generate {
    background: var(--purple);
    color: var(--white);
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 28px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.btn-generate:hover {
    background: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,71,255,.25);
}

.btn-secondary {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--white);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-family: inherit;
    transition: all .2s;
}

.btn-secondary:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* ---- LOADING ---- */
#loading { text-align: center; padding: 60px 20px; }

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

#loading p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.loading-sub {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
    margin-top: 4px;
}

/* ---- PROGRAMME OUTPUT ---- */
.programme-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.programme-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.programme-section h3 .section-icon {
    color: var(--blue);
    font-size: 16px;
}

.programme-section p, .programme-section li {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.7;
}

.programme-section ul {
    list-style: none;
    padding: 0;
}

.programme-section ul li {
    padding: 4px 0 4px 16px;
    position: relative;
}

.programme-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    background: var(--purple);
    border-radius: 50%;
}

/* Phase badges */
.phase-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.phase-1 { background: var(--purple-light); color: var(--purple); }
.phase-2 { background: var(--orange-light); color: var(--orange); }
.phase-3 { background: var(--danger-bg); color: var(--danger); }

/* Tables */
.programme-table, .filiere-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 8px;
}

.programme-table th, .filiere-table th {
    background: var(--bg);
    color: var(--text-body);
    padding: 9px 10px;
    text-align: left;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--border);
}

.programme-table td, .filiere-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
    vertical-align: top;
}

.programme-table tr:hover td { background: var(--purple-light); }

.programme-table .exercise-name, .filiere-table .exercise-name {
    color: var(--text-dark);
    font-weight: 600;
}

.filiere-table .pattern-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* Alerts */
.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 6px;
    font-size: 12px;
}

.alert-warning { background: var(--warning-bg); border: 1px solid #fde68a; color: #92400e; }
.alert-danger { background: var(--danger-bg); border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: var(--info-bg); border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: var(--success-bg); border: 1px solid #bbf7d0; color: #166534; }
.alert-source { font-weight: 700; white-space: nowrap; }

/* KPI */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kpi-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px;
}

.kpi-card .kpi-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin-bottom: 3px;
}

.kpi-card .kpi-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
}

.kpi-card .kpi-target {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Phase navigation */
.phase-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.phase-nav button {
    padding: 7px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.phase-nav button.active {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

.phase-nav button:hover:not(.active) {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-back-edit {
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-body);
    font-family: inherit;
    margin-bottom: 20px;
    transition: all .2s;
}

.btn-back-edit:hover { border-color: var(--purple); color: var(--purple); }

.btn-export {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--purple);
    color: var(--white);
    font-family: inherit;
    margin-bottom: 20px;
    margin-left: 10px;
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.btn-export:hover { background: var(--purple-hover); box-shadow: 0 4px 16px rgba(108,71,255,.2); }

/* ---- SEARCH RESULTS DROPDOWN ---- */
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 300;
}

.search-results.visible { display: block; }

.search-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid var(--border-light);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--purple-light); }

.search-result-item .sr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), #9b7aff);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.search-result-item .sr-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.search-result-item .sr-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* ---- CYCLE VISUEL CIRCULAIRE ---- */
/* ================================
   PROTOCOLE AURA™ - CYCLE PREMIUM
   ================================ */
.cycle-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 12px 16px;
    background: linear-gradient(135deg, #faf5ef 0%, #f2ede6 100%);
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.cycle-wheel {
    position: relative;
    width: min(720px, 100%);
    aspect-ratio: 1 / 1;
    max-width: 720px;
    margin: 0 auto;
}

/* Connecteurs SVG (dotted lines du centre vers les chips) */
.cycle-connectors {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.cycle-connectors line {
    stroke: #c9b880;
    stroke-width: 1.2;
    stroke-dasharray: 3 4;
    opacity: 0.65;
}

/* Centre : PROTOCOLE AURA™ */
.cycle-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 28%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a38 0%, #0f0f1a 70%, #050508 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,.35), inset 0 0 0 2px #c9b880, inset 0 0 0 4px rgba(201,184,128,.2);
    text-align: center;
    padding: 16px;
}

.cycle-center .cycle-logo-sub {
    font-size: clamp(8px, 1.2vw, 11px);
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cycle-center .cycle-logo {
    font-size: clamp(18px, 3.2vw, 32px);
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #e8e0c5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.cycle-center .cycle-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c9b880, transparent);
    margin: 8px 0;
}

.cycle-center .cycle-sub {
    font-size: clamp(7px, 1vw, 10px);
    color: #c9b880;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Chips (rectangles numérotés autour du centre) */
.cycle-step {
    position: absolute;
    width: 26%;
    min-width: 150px;
    max-width: 220px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 10px 14px;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    z-index: 5;
    gap: 10px;
    overflow: visible;
}

.cycle-step:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    z-index: 6;
}

.cycle-step.active {
    outline: 2px solid #c9b880;
    outline-offset: 3px;
}

.cycle-step.completed .cs-num-badge {
    background: #16a34a;
    color: var(--white);
}

.cycle-step.completed::after {
    content: '';
    position: absolute;
    top: -8px; left: -8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    z-index: 7;
}

.cycle-step .cs-content {
    flex: 1;
    min-width: 0;
}

.cycle-step .cs-eid {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1px;
}

.cycle-step .cs-num {
    /* Titre principal */
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 700;
    line-height: 1.15;
    display: block;
    color: var(--white);
}

.cycle-step .cs-label {
    font-size: clamp(9px, 1vw, 10px);
    font-weight: 400;
    color: rgba(255,255,255,.7);
    letter-spacing: .2px;
    line-height: 1.25;
    margin-top: 3px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cycle-step .cs-num-badge {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,.25);
}

.cycle-step .cs-new-tag {
    display: inline-block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    background: #c9b880;
    color: #1a1a2e;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Couleurs par pilier (palette image de référence) */
.cycle-step.cs-c1 { background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1f 100%); }   /* É01 Blood Tests - noir */
.cycle-step.cs-c2 { background: linear-gradient(135deg, #0e7a7c 0%, #0a5e60 100%); }   /* É02 AOWQ - teal */
.cycle-step.cs-c3 { background: linear-gradient(135deg, #5b3d8e 0%, #432b6d 100%); }   /* É03 Aerobie - purple */
.cycle-step.cs-c4 { background: linear-gradient(135deg, #9b3448 0%, #77263a 100%); }   /* É04 Strength - red */
.cycle-step.cs-c5 { background: linear-gradient(135deg, #0f5132 0%, #083a22 100%); }   /* É05 Rachis - green */
.cycle-step.cs-c6 { background: linear-gradient(135deg, #8a7a3b 0%, #6a5c28 100%); }   /* É06 Body - gold */
.cycle-step.cs-c7 { background: linear-gradient(135deg, #1e3a5f 0%, #142944 100%); }   /* É07 PT Session - navy */
.cycle-step.cs-c8 { background: linear-gradient(135deg, #0a0a14 0%, #050508 100%); border: 1px solid #c9b880; }   /* É08 Recovery - black+gold */

/* Positions (8 chips autour du centre - ancien protocole) */
.cs-pos-1 { top: 12%;  left: 3%; }
.cs-pos-2 { top: 0%;   left: 50%; transform: translateX(-50%); }
.cs-pos-3 { top: 12%;  right: 3%; }
.cs-pos-4 { top: 42%;  right: 0%; }
.cs-pos-5 { bottom: 18%; right: 8%; }
.cs-pos-6 { bottom: 6%; left: 50%; transform: translateX(-50%); }
.cs-pos-7 { bottom: 18%; left: 8%; }
.cs-pos-8 { top: 42%; left: 0%; }

/* Positions (4 modules AURA 360° - diamant N/E/S/O) */
.cs-pos-m1 { top: 2%;  left: 50%; transform: translateX(-50%); width: 30%; }
.cs-pos-m2 { top: 50%; right: 2%; transform: translateY(-50%); width: 28%; }
.cs-pos-m3 { bottom: 2%; left: 50%; transform: translateX(-50%); width: 30%; }
.cs-pos-m4 { top: 50%; left: 2%; transform: translateY(-50%); width: 28%; }

.cycle-step.cs-pos-2:hover,
.cycle-step.cs-pos-6:hover,
.cycle-step.cs-pos-m1:hover,
.cycle-step.cs-pos-m3:hover { transform: translate(-50%, -2px) scale(1.03); }
.cycle-step.cs-pos-m2:hover,
.cycle-step.cs-pos-m4:hover { transform: translate(0, -50%) scale(1.03); }

/* ============================================
   CYCLE SOMBRE - MACROCYCLE THOR (7 étapes)
   ============================================ */
.cycle-container-dark {
    background: linear-gradient(135deg, #1a1a28 0%, #0f0f1a 100%);
    border: 1px solid rgba(201, 184, 128, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cycle-container-dark .section-title,
.cycle-container-dark h3 {
    color: var(--white);
}

/* Centre doré contour */
.cycle-center-gold {
    background: transparent !important;
    border: 2px solid #c9b880 !important;
    box-shadow: none !important;
    width: 32% !important;
}

.cycle-center-gold .cycle-logo-sub {
    color: rgba(201, 184, 128, 0.7) !important;
    font-weight: 600;
    letter-spacing: 4px;
}

.cycle-center-gold .cycle-logo {
    background: linear-gradient(135deg, #e8d8a0 0%, #c9b880 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.cycle-center-gold .cycle-divider {
    background: linear-gradient(90deg, transparent, #c9b880, transparent) !important;
}

.cycle-center-gold .cycle-sub {
    color: rgba(201, 184, 128, 0.65) !important;
}

/* Chips ronds (7 étapes) */
.cycle-step.cs-round {
    width: 80px;
    height: 80px;
    min-width: 0;
    max-width: none;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a14 100%);
    position: absolute;
}

.cycle-step.cs-round .cs-big-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
}

.cycle-step.cs-round .cs-small-eid {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 3px;
}

/* Couleurs de bordure par chip (ordre image) */
.cs-c-blue   { border: 3px solid #3b7dd8; } /* É01 Body Analyser */
.cs-c-grey   { border: 3px solid #5a5a6e; } /* É02 Blood Tests */
.cs-c-teal   { border: 3px solid #0a9396; } /* É03 AOWQ */
.cs-c-purple { border: 3px solid #7b4397; } /* É04 Aerobic */
.cs-c-red    { border: 3px solid #b03849; } /* É05 Strength */
.cs-c-navy   { border: 3px solid #1e4a8e; } /* É06 PT Session */
.cs-c-orange { border: 3px solid #c96d2e; } /* É07 Recovery */

.cycle-step.cs-round:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

/* Labels externes (Strong + sub) */
.cs-outside-label {
    position: absolute;
    color: var(--white);
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.35;
}

.cs-outside-label strong {
    display: block;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.cs-outside-label span {
    font-size: 11px;
    font-weight: 400;
}

/* Couleurs des sous-labels par chip */
.cs-pos-7a .cs-outside-label span { color: #6ea8e8; }
.cs-pos-7b .cs-outside-label span { color: rgba(255, 255, 255, 0.5); }
.cs-pos-7c .cs-outside-label span { color: #4ec5c7; }
.cs-pos-7d .cs-outside-label span { color: #a77bc7; }
.cs-pos-7e .cs-outside-label span { color: #e06579; }
.cs-pos-7f .cs-outside-label span { color: #5687d5; }
.cs-pos-7g .cs-outside-label span { color: #ec9356; }

/* Positions des labels par rapport au chip rond */
.cs-label-top {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.cs-label-right {
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.cs-label-left {
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}

.cs-label-bottom {
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* 7 positions évenly distribuées autour du cercle */
/* Centre du container à 50%, rayon ≈ 40% pour centres des chips */
.cs-pos-7a { top: 6%;   left: 50%; transform: translateX(-50%); }  /* 12h - É01 */
.cs-pos-7b { top: 22%;  right: 10%; }                              /* 1h30 - É02 */
.cs-pos-7c { top: 52%;  right: 2%; transform: translateY(-50%); }  /* 3h30 - É03 */
.cs-pos-7d { bottom: 10%; right: 24%; }                            /* 5h - É04 */
.cs-pos-7e { bottom: 10%; left: 24%; }                             /* 7h - É05 */
.cs-pos-7f { top: 52%;  left: 2%; transform: translateY(-50%); }   /* 8h30 - É06 */
.cs-pos-7g { top: 22%;  left: 10%; }                               /* 10h30 - É07 */

/* Hover: conserver le centrage pour positions avec translate */
.cycle-step.cs-pos-7a:hover { transform: translateX(-50%) scale(1.08) !important; }
.cycle-step.cs-pos-7c:hover,
.cycle-step.cs-pos-7f:hover { transform: translateY(-50%) scale(1.08) !important; }

/* 6 positions évenly distribuées (hexagone) — diagnostic sans É07 Recovery */
/* Pentagone équilibré (5 étapes depuis la fusion É05) : sommet en haut, deux
   épaules, deux pieds. */
.cs-pos-6a { top: 5%;     left: 50%; transform: translateX(-50%); }  /* sommet - É01 */
.cs-pos-6b { top: 32%;    right: 10%; }                              /* épaule droite - É02 */
.cs-pos-6c { bottom: 14%; right: 19%; }                              /* pied droit - É03 */
.cs-pos-6d { bottom: 14%; left: 19%; }                               /* pied gauche - É04 */
.cs-pos-6e { top: 32%;    left: 10%; }                               /* épaule gauche - É05 Test 1RM & mouvement */
.cs-pos-6f { top: 26%;    left: 8%; }                                /* (libre depuis la fusion) */
.cycle-step.cs-pos-6a:hover,
.cycle-step.cs-pos-6d:hover { transform: translateX(-50%) scale(1.08) !important; }
.cs-pos-6a .cs-outside-label span { color: #6ea8e8; }
.cs-pos-6b .cs-outside-label span { color: rgba(255, 255, 255, 0.5); }
.cs-pos-6c .cs-outside-label span { color: #4ec5c7; }
.cs-pos-6d .cs-outside-label span { color: #a77bc7; }
.cs-pos-6e .cs-outside-label span { color: #e06579; }
.cs-pos-6f .cs-outside-label span { color: #5687d5; }

/* Bannière dorée */
.cycle-banner-gold {
    background: linear-gradient(135deg, #1a1a28 0%, #0f0f1a 100%) !important;
    border: 1.5px solid #c9b880 !important;
}

.cycle-banner-gold .cb-title {
    color: #e8d8a0 !important;
    letter-spacing: 5px !important;
}

.cycle-banner-gold .cb-sub {
    color: rgba(201, 184, 128, 0.75) !important;
    letter-spacing: 3px !important;
}

/* Lignes connecteurs plus visibles sur fond sombre */
.cycle-container-dark .cycle-connectors line {
    stroke: rgba(201, 184, 128, 0.35);
}

/* Responsive: mobile passe en grille 2 colonnes (hérite de .cycle-wheel mobile) */
@media (max-width: 720px) {
    .cycle-step.cs-round {
        position: relative !important;
        width: 100% !important;
        height: 72px !important;
        border-radius: 12px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 0 14px !important;
        gap: 10px;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        transform: none !important;
    }
    .cycle-step.cs-round .cs-big-num { font-size: 22px; }
    .cycle-step.cs-round .cs-small-eid { font-size: 10px; margin-top: 0; }
    .cs-outside-label {
        position: relative !important;
        top: auto; left: auto; right: auto; bottom: auto;
        transform: none !important;
        text-align: left !important;
        margin-left: 6px;
        white-space: normal;
    }
}

/* Bannière MACROCYCLE THOR */
.cycle-banner {
    margin-top: 4px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1f 100%);
    border: 1px solid #c9b880;
    border-radius: 8px;
    padding: 12px 28px;
    text-align: center;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.cycle-banner .cb-title {
    font-size: 11px;
    letter-spacing: 4px;
    color: #c9b880;
    font-weight: 700;
    margin-bottom: 2px;
}

.cycle-banner .cb-sub {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(201,184,128,.8);
    font-weight: 500;
}

/* Responsive mobile : passage en grid 2 colonnes */
@media (max-width: 720px) {
    .cycle-wheel {
        aspect-ratio: auto;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding-top: 0;
    }
    .cycle-connectors { display: none; }
    .cycle-center {
        position: relative;
        top: auto; left: auto;
        transform: none;
        width: 100%;
        grid-column: 1 / -1;
        aspect-ratio: 3 / 1;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 6px;
    }
    .cycle-center .cycle-divider { margin: 4px 0; }
    .cycle-step {
        position: relative !important;
        top: auto !important; left: auto !important;
        right: auto !important; bottom: auto !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .cycle-step:hover { transform: translateY(-2px) !important; }
}

/* Légende */
.cycle-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
    padding: 14px 20px 0;
    max-width: 640px;
    margin: 0 auto;
}

.cycle-legend-item {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cycle-legend-item .cl-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.cycle-legend-item .cl-dot.done {
    background: var(--success);
}

.cycle-legend-item .cl-dot.current {
    background: #c9b880;
    box-shadow: 0 0 0 2px rgba(201,184,128,.3);
}

/* ============================================
   PAGE CONFIG / PARAMÈTRES
   ============================================ */
#page-config {
    padding: 32px 40px 60px;
    max-width: 1280px;
    margin: 0 auto;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.config-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px;
    letter-spacing: -.5px;
}

.config-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.config-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: flex-start;
}

/* Sidebar tabs */
.config-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 20px;
}

.config-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all .15s;
}

.config-tab:hover {
    background: var(--border-light);
}

.config-tab.active {
    background: var(--purple-light);
    color: var(--purple);
    font-weight: 600;
}

.config-tab-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Content area */
.config-content {
    min-width: 0;
}

.config-panel {
    display: none;
    animation: cfg-fade-in .2s ease-out;
}

.config-panel.active {
    display: block;
}

@keyframes cfg-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.config-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.config-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.config-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.config-card-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Form grid */
.config-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-field-full {
    grid-column: 1 / -1;
}

.config-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.config-field input[type="text"],
.config-field input[type="email"],
.config-field input[type="tel"],
.config-field input[type="number"],
.config-field input[type="time"],
.config-field input[type="color"],
.config-field select,
.config-field textarea {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color .15s;
}

.config-field input:focus,
.config-field select:focus,
.config-field textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-glow);
}

.config-field input[type="color"] {
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

.config-field textarea {
    resize: vertical;
    min-height: 70px;
}

.config-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Radio group */
.config-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.config-radio {
    cursor: pointer;
}

.config-radio input {
    display: none;
}

.config-radio-box {
    display: inline-block;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    background: var(--white);
    transition: all .15s;
}

.config-radio input:checked + .config-radio-box {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

/* Toggle switch */
.config-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-body);
}

.config-toggle input {
    display: none;
}

.config-toggle-slider {
    width: 38px;
    height: 22px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
    transition: background .2s;
}

.config-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.config-toggle input:checked + .config-toggle-slider {
    background: var(--purple);
}

.config-toggle input:checked + .config-toggle-slider::after {
    transform: translateX(16px);
}

/* Logo upload */
.config-logo-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--cream);
}

#cfg_logo_preview {
    max-width: 80px;
    max-height: 80px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--white);
    padding: 4px;
    border: 1px solid var(--border);
}

#cfg_logo_placeholder {
    color: var(--text-muted);
    font-size: 12px;
    flex: 1;
    min-width: 150px;
}

/* Buttons */
.config-btn-primary {
    padding: 9px 20px;
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    text-decoration: none;
    display: inline-block;
}

.config-btn-primary:hover {
    background: var(--purple-hover);
}

.config-btn-secondary {
    padding: 9px 18px;
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
}

.config-btn-secondary:hover {
    background: var(--border-light);
    border-color: var(--text-muted);
}

.config-btn-danger {
    padding: 9px 20px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.config-btn-danger:hover {
    background: #b91c1c;
}

.config-btn-danger-text {
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* Card footer (buttons row) */
.config-card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.config-save-status {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s;
}

.config-save-status.show {
    opacity: 1;
}

/* Integrations */
.config-integrations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.config-integration {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
}

.config-integration-disabled {
    opacity: .55;
    background: var(--cream);
}

.config-integration-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

.config-integration-main {
    flex: 1;
    min-width: 0;
}

.config-integration-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.config-integration-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    background: var(--success);
    color: var(--white);
    border-radius: 4px;
    letter-spacing: .5px;
}

.config-integration-badge-soon {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    background: var(--text-muted);
    color: var(--white);
    border-radius: 4px;
    letter-spacing: .5px;
}

.config-integration-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.config-integration-status {
    font-size: 11px;
    margin-top: 6px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.config-status-ok { background: var(--success); box-shadow: 0 0 0 2px rgba(22,163,74,.2); }
.config-status-warning { background: var(--warning); }
.config-status-error { background: var(--danger); }
.config-status-loading { background: var(--text-muted); animation: cfg-pulse 1s infinite; }

@keyframes cfg-pulse {
    0%, 100% { opacity: .4; }
    50% { opacity: 1; }
}

.config-note {
    background: var(--info-bg);
    border: 1px solid var(--purple-light);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-body);
}

.config-note code {
    background: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 11px;
    border: 1px solid var(--border);
}

/* Plan / Billing */
.config-plan-current {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-hover) 100%);
    border-radius: 14px;
    padding: 20px 24px;
    color: var(--white);
    margin-bottom: 24px;
}

.config-plan-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: .8;
    margin-bottom: 6px;
}

.config-plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.config-plan-desc {
    font-size: 13px;
    opacity: .9;
}

.config-billing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.config-billing-stat {
    padding: 16px;
    background: var(--cream);
    border-radius: 10px;
    text-align: center;
}

.config-billing-stat .cbs-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.config-billing-stat .cbs-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 2px;
}

.config-billing-stat .cbs-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.config-quota-bar {
    width: 100%;
    height: 10px;
    background: var(--border-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 6px;
}

.config-quota-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--warning) 70%, var(--danger) 95%);
    border-radius: 5px;
    transition: width .4s ease-out;
}

.config-quota-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.config-usage-history {
    background: var(--cream);
    border-radius: 10px;
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
}

/* Data management */
.config-data-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.config-data-stat {
    padding: 14px;
    background: var(--cream);
    border-radius: 10px;
    text-align: center;
}

.config-data-stat .cds-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 4px;
}

.config-data-stat .cds-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.config-data-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-data-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--cream);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.config-data-action h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2px;
}

.config-data-action p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.config-data-action-danger {
    border-color: rgba(220,38,38,.2);
    background: rgba(220,38,38,.04);
}

/* About */
.config-about {
    text-align: center;
    padding: 20px 0;
}

.config-about-logo {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--purple);
    margin-bottom: 6px;
}

.config-about-logo sup {
    font-size: 14px;
    color: var(--orange);
}

.config-about-version {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.config-about-desc {
    font-size: 13px;
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.config-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 24px;
}

.config-about-item {
    padding: 12px 16px;
    background: var(--cream);
    border-radius: 8px;
    text-align: left;
}

.config-about-item .cai-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.config-about-item a,
.config-about-item span {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
}

.config-about-item a:hover {
    color: var(--purple);
    text-decoration: underline;
}

.config-about-legal {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 900px) {
    .config-layout {
        grid-template-columns: 1fr;
    }
    .config-sidebar {
        flex-direction: row;
        overflow-x: auto;
        position: static;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }
    .config-tab {
        flex-shrink: 0;
    }
    .config-form {
        grid-template-columns: 1fr;
    }
    #page-config {
        padding: 20px 16px 40px;
    }
    .config-card {
        padding: 20px;
    }
}

/* ================================
   É01 BODY ANALYSER · VISBODY (6 modules)
   ================================ */
.e01-mode-switcher {
    background: linear-gradient(135deg, var(--purple-light) 0%, #fff3ed 100%);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.e01-mode-title { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; letter-spacing: .3px; }
.e01-mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .e01-mode-cards { grid-template-columns: 1fr; } }
.e01-mode-card { background: var(--white); border-radius: 14px; padding: 18px; border: 2px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.e01-mode-card:hover { border-color: var(--purple); box-shadow: 0 4px 16px rgba(108,71,255,.12); }
.e01-mode-icon { font-size: 32px; margin-bottom: 8px; }
.e01-mode-head h3 { font-size: 14px; font-weight: 700; color: var(--purple); margin: 0 0 4px; }
.e01-mode-head p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0 0 14px; }
.e01-upload-zone { background: var(--cream); border: 2px dashed var(--purple); border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; transition: all .15s; }
.e01-upload-zone:hover { background: #f7f0e6; border-color: var(--purple-hover); }
.e01-scroll-btn { width: 100%; padding: 12px 24px; background: var(--purple); color: var(--white); border: none; border-radius: 22px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.e01-module-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 18px; }
.e01-module-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 10px; margin: -8px -8px 18px -8px; background: var(--cream); flex-wrap: wrap; gap: 8px; }
.e01-hdr-metabolic { background: linear-gradient(90deg, #f0ecff, #fff); border-left: 4px solid #6c47ff; }
.e01-hdr-posture { background: linear-gradient(90deg, #ecfdf5, #fff); border-left: 4px solid #0e7a7c; }
.e01-hdr-muscular { background: linear-gradient(90deg, #fff3ed, #fff); border-left: 4px solid #ff6b2b; }
.e01-module-title { font-size: 14px; font-weight: 800; color: var(--text-dark); }
.e01-module-score { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: var(--white); color: var(--text-muted); }
.e01-module-score.has-alerts { background: var(--warning-bg); color: var(--warning); }
.e01-module-score.critical { background: var(--danger-bg); color: var(--danger); }
.e01-sub { padding: 10px 0 4px; }
.e01-sub h4 { font-size: 13px; font-weight: 700; color: var(--text-dark); margin: 4px 0 10px; padding-left: 8px; border-left: 3px solid var(--purple); }
.form-group-full { grid-column: 1 / -1; }
.e01-alerts { margin-top: 8px; }
.e01-alert-item { padding: 10px 14px; background: var(--warning-bg); border-left: 3px solid var(--warning); border-radius: 6px; font-size: 12px; color: var(--text-dark); margin-bottom: 6px; line-height: 1.5; }
.e01-alert-item.critical { background: var(--danger-bg); border-left-color: var(--danger); color: #991b1b; }
.e01-synthese { background: linear-gradient(135deg, #1a1a28 0%, #0f0f1f 100%); border-radius: var(--radius-xl); padding: 24px 28px; margin: 20px 0; color: var(--white); }
.e01-synthese-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(201,184,128,.3); margin-bottom: 16px; }
.e01-synthese-header h3 { margin: 0; font-size: 18px; font-weight: 800; color: #e8d8a0; }
.e01-global-score { background: #c9b880; color: #1a1a2e; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
.e01-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
.e01-status-item { background: rgba(255,255,255,.05); padding: 12px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.e01-status-label { font-size: 10px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }
.e01-status-value { font-size: 13px; font-weight: 700; color: var(--white); }
.e01-status-value.complete { color: #5fd66f; }
.e01-status-value.partial { color: #f0c04a; }
.e01-rules-active { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.8); }
.e01-rule-active { padding: 8px 12px; background: rgba(201,184,128,.15); border-left: 3px solid #c9b880; border-radius: 6px; margin-bottom: 6px; }

/* ================================
   É02 BLOOD TESTS — Spécifique
   ================================ */
.e02-profil-box { background: var(--cream); border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; border: 1px solid var(--border); }
.e02-profil-title { font-size: 12px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; letter-spacing: .3px; }
.e02-profil-options { display: flex; flex-wrap: wrap; gap: 10px; }
.e02-profil-option { cursor: pointer; }
.e02-profil-option input { display: none; }
.e02-profil-option span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--white); transition: all .15s; }
.e02-profil-option input:checked + span { background: var(--purple); color: var(--white); border-color: var(--purple); }
.e02-decision { margin-top: 10px; padding: 10px 14px; background: var(--info-bg); border-left: 3px solid var(--purple); border-radius: 8px; font-size: 12px; color: var(--text-dark); line-height: 1.5; display: none; }
.e02-decision.active { display: block; }
.e02-decision.warning { background: var(--warning-bg); border-left-color: var(--warning); }
.e02-decision.danger { background: var(--danger-bg); border-left-color: var(--danger); color: #991b1b; }
.e02-risk-level { display: inline-block; padding: 10px 24px; border-radius: 10px; font-size: 18px; font-weight: 800; letter-spacing: 1px; margin: 12px 0; }
.e02-risk-level.faible { background: #5fd66f; color: #084c24; }
.e02-risk-level.moyen { background: #c9b880; color: #3f3412; }
.e02-risk-level.eleve { background: #e08f3f; color: #3f1d06; }
.e02-risk-level.tres_eleve { background: #e55555; color: #4a0e0e; }
.e02-risk-orientation { font-size: 13px; color: rgba(255,255,255,.9); line-height: 1.6; padding: 12px 14px; background: rgba(201,184,128,.12); border-left: 3px solid #c9b880; border-radius: 8px; margin-top: 8px; }

/* ================================
   É03 AOWQ — Lien partageable
   ================================ */
.e03-tabs { display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; background: var(--cream); border-radius: 12px; overflow-x: auto; }
.e03-tab { flex: 1; min-width: 130px; padding: 10px 14px; background: transparent; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; font-family: inherit; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; }
.e03-tab.active { background: var(--white); color: var(--purple); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.e03-tab:hover { color: var(--purple); }
.e03-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; background: var(--danger); color: var(--white); border-radius: 10px; font-size: 11px; font-weight: 800; }
.e03-tab-content { display: none; }
.e03-tab-content.active { display: block; animation: e03-fade .2s ease-out; }
@keyframes e03-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.e03-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.e03-card h3 { font-size: 15px; font-weight: 800; color: var(--text-dark); margin: 0 0 6px; }
.e03-hint { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin: 0; }
.e03-primary-btn { margin-top: 14px; padding: 12px 24px; background: var(--purple); color: var(--white); border: none; border-radius: 22px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s; }
.e03-primary-btn:hover { background: var(--purple-hover); }
.e03-primary-btn:disabled { opacity: .5; cursor: not-allowed; }
.e03-refresh-btn { padding: 6px 12px; background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
.e03-refresh-btn:hover { background: var(--cream); }
.e03-link-result { margin-top: 20px; padding: 16px; background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%); border: 1.5px solid var(--success); border-radius: 12px; }
.e03-link-box { display: flex; gap: 8px; margin-top: 4px; }
.e03-link-box input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; font-family: 'SF Mono', Monaco, monospace; background: var(--white); color: var(--text-dark); }
.e03-copy-btn { padding: 10px 18px; background: var(--purple); color: var(--white); border: none; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.e03-copy-btn.copied { background: var(--success); }
.e03-share-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.e03-share-btn { flex: 1; min-width: 100px; padding: 10px 14px; background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--text-dark); transition: all .15s; }
.e03-share-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.e03-link-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--cream); border-radius: 8px; margin-bottom: 6px; gap: 10px; flex-wrap: wrap; }
.e03-link-row-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.e03-link-row-meta { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.e03-link-status { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px; }
.e03-link-status.pending { background: var(--warning-bg); color: var(--warning); }
.e03-link-status.completed { background: var(--success-bg); color: var(--success); }
.e03-response-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.e03-response-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.e03-response-name { font-size: 15px; font-weight: 800; color: var(--text-dark); }
.e03-response-date { font-size: 11px; color: var(--text-muted); }
.e03-response-score { background: #c9b880; color: #1a1a2e; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.e03-response-risk { padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.e03-response-risk.faible { background: #5fd66f; color: #084c24; }
.e03-response-risk.moyen { background: #c9b880; color: #3f3412; }
.e03-response-risk.eleve { background: #e08f3f; color: #3f1d06; }
.e03-response-risk.tres_eleve { background: #e55555; color: var(--white); }
.e03-modules-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.e03-module-mini { padding: 8px 10px; background: var(--cream); border-radius: 8px; font-size: 11px; }
.e03-module-mini .label { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.e03-module-mini .value { color: var(--text-dark); font-weight: 700; font-size: 13px; margin-top: 2px; }
.e03-alerts-list { margin-top: 8px; padding-left: 0; }
.e03-alerts-list li { list-style: none; padding: 6px 10px; background: var(--warning-bg); border-left: 3px solid var(--warning); border-radius: 6px; font-size: 11px; color: var(--text-dark); margin-bottom: 4px; }
.e03-rules-list { margin-top: 8px; padding-left: 0; }
.e03-rules-list li { list-style: none; padding: 8px 12px; background: #fef2f2; border-left: 3px solid var(--danger); border-radius: 6px; font-size: 11px; color: #991b1b; margin-bottom: 4px; font-weight: 600; }

/* É03 Saisie manuelle inline */
.e03m-question { padding: 12px 8px; border-bottom: 1px dashed var(--border); }
.e03m-question:last-child { border-bottom: none; }
.e03m-question > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.5; }
.e03m-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.e03m-radio-row label { cursor: pointer; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--white); color: var(--text-body); transition: all .15s; display: flex; align-items: center; gap: 6px; }
.e03m-radio-row label:hover { border-color: var(--purple); }
.e03m-radio-row label:has(input:checked) { background: var(--purple); color: var(--white); border-color: var(--purple); }
.e03m-radio-row input[type="radio"] { width: 16px; height: 16px; cursor: pointer; }
.e03m-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.e03m-scale label { cursor: pointer; padding: 8px 0; border: 1.5px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 700; text-align: center; background: var(--white); color: var(--text-body); }
.e03m-scale label:hover { border-color: var(--purple); }
.e03m-scale label:has(input:checked) { background: var(--purple); color: var(--white); border-color: var(--purple); }
.e03m-scale input { display: none; }
@media (max-width: 640px) {
    .e03m-scale { grid-template-columns: repeat(5, 1fr); }
}

/* ================================
   É05 STRENGTH — Tableau des levers
   ================================ */
.e05-lifts-table { background: var(--cream); border-radius: 10px; padding: 10px; }
.e05-lift-row { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr 0.6fr; gap: 8px; align-items: center; padding: 8px 6px; border-bottom: 1px dashed var(--border); }
.e05-lift-row:last-child { border-bottom: none; }
.e05-lift-row.e05-lift-header { font-weight: 700; color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; padding: 4px 6px 8px; border-bottom: 2px solid var(--border); }
.e05-lift-row input[type="number"] { width: 100%; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--white); }
.e05-lift-row input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.e05-rel { font-size: 13px; font-weight: 700; color: var(--purple); text-align: center; }
.e05-level { text-align: center; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 10px; }
.e05-level.faible { background: #fef2f2; color: var(--danger); }
.e05-level.moyen { background: #fffbeb; color: var(--warning); }
.e05-level.eleve { background: #ecfdf5; color: var(--success); }
.e05-asym-group { padding: 12px 14px; background: var(--cream); border-radius: 10px; }
.e05-asym-group.warning { background: var(--warning-bg); }
@media (max-width: 640px) {
    .e05-lift-row { grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 6px; }
    .e05-lift-row.e05-lift-header { display: none; }
}

/* ================================
   RÉSULTAT AURA™ 360° (Synthèse & Programme)
   ================================ */
.aura360-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px;
}

.aura360-header {
    display: flex;
    gap: 24px;
    padding: 24px 28px;
    border-radius: 16px;
    background: var(--white);
    border: 2px solid var(--border);
    flex-wrap: wrap;
}

.aura360-header.good { border-color: #16a34a; background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%); }
.aura360-header.medium { border-color: #d97706; background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%); }
.aura360-header.low { border-color: #dc2626; background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%); }

.aura360-header-left {
    flex-shrink: 0;
    min-width: 200px;
}

.aura360-header-right {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aura360-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.aura360-score-big {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.aura360-profile-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    align-self: flex-start;
}

.aura360-profile-text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.aura360-orientation {
    font-size: 12px;
    color: var(--text-dark);
    padding: 10px 12px;
    background: var(--cream);
    border-radius: 8px;
    margin-top: 4px;
}

.aura360-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.aura360-module-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.aura360-module-card.good { border-top: 4px solid #16a34a; }
.aura360-module-card.medium { border-top: 4px solid #d97706; }
.aura360-module-card.low { border-top: 4px solid #dc2626; }

.aura360-module-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.aura360-module-score {
    font-size: 36px;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 12px;
    line-height: 1;
}

.aura360-module-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.aura360-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-body);
}

.aura360-detail-row strong {
    color: var(--text-dark);
}

.aura360-red-flags {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 14px;
    padding: 20px 24px;
}

.aura360-red-flags h3 {
    color: #991b1b;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.aura360-red-flags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aura360-red-flags-list li {
    padding: 10px 12px;
    background: var(--white);
    border-left: 3px solid #dc2626;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-body);
}

.aura360-program {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.aura360-program h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 14px 0;
}

.aura360-program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: var(--text-body);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 14px;
}

.aura360-program-note {
    background: var(--info-bg);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Programme 24 sem : bloc par phase + 2 MC côte à côte */
.aura360-phase-block {
    background: var(--cream);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.aura360-phase-header-big {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--purple);
}

.aphb-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: -.3px;
}

.aphb-weeks {
    background: var(--purple);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.aura360-phase-objectif {
    font-size: 12px;
    color: var(--text-body);
    margin-bottom: 14px;
    font-style: italic;
    line-height: 1.5;
}

.aura360-mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.aura360-mc {
    background: var(--white);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.aura360-mc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.aura360-mc-code {
    font-size: 12px;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 1px;
}

.aura360-mc-sem {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 4px;
}

.aura360-mc-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
    font-size: 11.5px;
    color: var(--text-body);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-light);
}

.aura360-mc-details .aura360-mc-repos {
    grid-column: 1 / -1;
}

.aura360-mc-focus, .aura360-mc-kpi {
    font-size: 11px;
    color: var(--text-body);
    margin-top: 6px;
    line-height: 1.5;
}

.aura360-mc-focus {
    color: var(--text-dark);
}

.aura360-phase-passage {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--success-bg);
    border-left: 3px solid var(--success);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-dark);
    line-height: 1.5;
}

.aura360-program-reeval {
    margin-top: 18px;
    padding: 10px 14px;
    background: var(--purple-light);
    border-radius: 8px;
    font-size: 12px;
    color: var(--purple);
}

.aura360-program-upsell {
    margin-top: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fff3ed 0%, #ffffff 100%);
    border: 1px solid var(--orange);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-dark);
}

.aura360-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 14px;
    border-top: 1px solid var(--border-light);
    line-height: 1.6;
}

.aura360-footer strong {
    color: var(--text-dark);
}

/* THOR progress bar */
.thor-progress {
    margin: 20px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}

.thor-progress h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.thor-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--border-light);
}

.thor-bar .tb-phase {
    transition: width .5s;
}

.thor-bar .tb-p1 { background: var(--purple); }
.thor-bar .tb-p2 { background: var(--orange); }
.thor-bar .tb-p3 { background: var(--danger); }

.thor-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar { display: none; }
    #main-content { margin-left: 0; }
    .home-header { padding: 32px 20px; }
    .home-body { padding: 20px; }
    .form-area { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: 1fr; }
    .client-grid { grid-template-columns: 1fr; }
    .step-progress { padding: 0 16px; }
    .programme-topbar { padding: 12px 20px; }
}

/* ---- AURA 360° : exercices IA + narratif ---- */
.aura360-mc-exos { margin: 10px 0 6px; }
.aura360-mc-exos-title { font-size: 12px; font-weight: 700; color: var(--purple, #6d28d9); margin-bottom: 6px; }
.aura360-exo-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.aura360-exo-table th { background: #f5f3ff; color: #4c1d95; text-align: left; padding: 5px 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .4px; border: 1px solid #ede9fe; }
.aura360-exo-table td { padding: 6px 8px; border: 1px solid #eee; vertical-align: top; }
.aura360-exo-table .exo-name { font-weight: 600; }
.aura360-exo-table .exo-transfer { color: #2563eb; font-weight: 600; }
.aura360-exo-table .exo-just { color: #777; font-weight: 400; font-style: italic; }
.aura360-mc-exos-note { font-size: 11.5px; color: #555; margin-top: 5px; }
.aura360-ai-synthese { background: #f5f3ff; border-left: 4px solid #7c3aed; padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 13px; color: #3b3b58; }
.aura360-ai-block { margin: 16px 0; }
.aura360-ai-block h4 { font-size: 14px; color: #1a1a2e; border-bottom: 2px solid #7c3aed; padding-bottom: 4px; margin-bottom: 8px; }
.aura360-ai-block ul { padding-left: 18px; }
.aura360-ai-block li { font-size: 12.5px; margin: 4px 0; line-height: 1.5; }

/* ============================================================
   AURA — UX REFRESH  (ergonomie · formulaires · responsive · polish)
   Couche additive : surcharge les regles ci-dessus par la cascade.
   100% reversible — supprimer ce bloc restaure l'etat precedent.
   ============================================================ */

/* ---- 1 · NAVIGATION : stepper collant, lisible et scrollable ---- */
.step-progress {
    position: sticky;
    top: 60px;                 /* sous la topbar fixe (60px) */
    z-index: 90;
    padding: 4px 24px 0;
    gap: 3px;
    box-shadow: var(--shadow-sm);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* fondu sur les bords pour suggerer le scroll horizontal */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.step-progress::-webkit-scrollbar { height: 6px; }
.step-progress::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.step-tab {
    scroll-snap-align: start;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px 10px 0 0;
}
.step-tab:hover { background: var(--cream); color: var(--text-dark); }
.step-tab.active { background: var(--purple-light); }
.step-tab .tab-num { width: 24px; height: 24px; font-size: 11px; }

/* ---- 2 · FORMULAIRES : plus d'air, champs plus confortables ---- */
.form-area { max-width: 880px; padding: 28px 40px 56px; }
.form-grid { gap: 16px 20px; }
.step-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}
.form-group label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .4px;
}
.form-group input,
.form-group select,
.form-group textarea {
    min-height: 44px;
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 10px;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: var(--text-light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-glow);
}

/* ---- 3 · POLISH : focus visible, transitions, profondeur ---- */
html { scroll-behavior: smooth; }
::selection { background: var(--purple-glow); }
:where(a, button, input, select, textarea, .step-tab, [onclick]):focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
    border-radius: 6px;
}
.btn-next, .btn-generate { box-shadow: var(--shadow-sm); }
.btn-next:active, .btn-prev:active, .btn-generate:active { transform: translateY(0); }
.stat-card, .client-card { transition: transform .2s, box-shadow .2s; }
.stat-card:hover, .client-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---- 4 · RESPONSIVE : tablette + mobile ---- */
@media (max-width: 1024px) {
    .form-area { padding: 24px 24px 48px; }
}
@media (max-width: 820px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-area { padding: 20px 16px 48px; }
    .step-progress { padding: 2px 12px 0; gap: 2px; }
    .step-tab { padding: 11px 12px; }
    .step-header h2 { font-size: 19px; }
    /* 16px = empeche le zoom auto iOS au focus */
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; }
}
@media (max-width: 560px) {
    .step-actions { flex-direction: column; gap: 8px; }
    .step-actions button { width: 100%; }
    .btn-generate { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   AURA — DA "SPORT ÉNERGIE"  (noir · orange électrique · blanc)
   Athletic / bold. Couche d'override : re-declare les tokens et
   re-thematise les composants. 100% reversible (supprimer ce bloc).
   Polices chargees dans index.html : Archivo (display) · Manrope (texte).
   ============================================================ */

/* ---- TOKENS : la primaire passe du violet a l'orange, fonds noir/blanc ---- */
:root {
    --purple:#FF5A1F; --purple-hover:#E8430C; --purple-light:#FFEBE2; --purple-glow:rgba(255,90,31,.18);
    --blue:#FF5A1F; --blue-hover:#E8430C; --blue-light:#FFEBE2; --blue-glow:rgba(255,90,31,.18);
    --info:#FF5A1F; --info-bg:#FFEBE2;
    --orange:#FF5A1F; --orange-light:#FFEBE2;
    --navy:#0A0A0A; --navy-light:#1b1b1b; --navy-dark:#000000;
    --text-dark:#0A0A0A; --text-body:#2a2a2a; --text-muted:#7b7b7b; --text-light:#b0b0b0;
    --cream:#F5F4F1; --cream-dark:#ECEAE4;
    --bg:#FFFFFF; --bg-card:#FFFFFF;
    --border:#E7E5E0; --border-light:#F1EFEA;
    --radius:10px; --radius-lg:12px; --radius-xl:18px;
}

/* ---- TYPOGRAPHIE : Manrope en texte, Archivo (lourd) en display ---- */
body { font-family:'Manrope',-apple-system,BlinkMacSystemFont,sans-serif; letter-spacing:-.005em; }
h1, h2, h3, h4, h5,
.topbar-logo, .home-greeting, .section-title, .step-header h2,
.stat-value, .step-badge, .btn-generate, .btn-next, .cb-title,
.cycle-logo, .home-subtitle ~ * .stat-value {
    font-family:'Archivo','Manrope',sans-serif;
}
.section-title, .step-header h2 {
    text-transform:uppercase; font-weight:800; letter-spacing:.005em;
}
.home-greeting { font-weight:900; letter-spacing:-.02em; }

/* ---- TOPBAR noire, accent orange ---- */
.topbar {
    background:#0A0A0A;
    border-bottom:none;
    box-shadow:0 2px 0 var(--purple), 0 4px 14px rgba(0,0,0,.18);
}
.topbar-logo { color:#fff; letter-spacing:5px; font-weight:900; }
.topbar-logo .tm { color:var(--purple); }
.topbar button { color:#cfcfcf; font-weight:700; letter-spacing:.02em; }
.topbar button:hover { color:#fff; }
.topbar button.active { color:var(--purple); }

/* ---- TITRES de section : capitales lourdes, sans accent decoratif ---- */
.section-title { font-size:15px; }

/* ---- BADGES d'etape : noir plein ---- */
.step-badge {
    background:#0A0A0A; color:#fff; border-radius:6px;
    letter-spacing:1.5px; font-weight:800;
}

/* ---- BOUTONS : punchy, ombre dure "arcade" ---- */
.btn-generate {
    border-radius:8px; letter-spacing:1.5px; font-weight:800;
    box-shadow:0 4px 0 var(--purple-hover);
}
.btn-generate:hover { transform:translateY(-2px); box-shadow:0 6px 0 var(--purple-hover), 0 10px 24px rgba(255,90,31,.3); }
.btn-generate:active { transform:translateY(2px); box-shadow:0 1px 0 var(--purple-hover); }
.btn-next {
    border-radius:8px; text-transform:uppercase; letter-spacing:.6px; font-weight:800;
    box-shadow:0 3px 0 var(--purple-hover);
}
.btn-next:hover { transform:translateY(-1px); box-shadow:0 5px 0 var(--purple-hover); }
.btn-prev { border-radius:8px; font-weight:700; border-width:1.5px; }
.btn-prev:hover { border-color:#0A0A0A; }

/* ---- GROS CHIFFRES (stats) en Archivo black ---- */
.stat-value { font-weight:900; letter-spacing:-.02em; color:#0A0A0A; }
.stat-card { border-radius:14px; }

/* ---- SEARCH BAR : nette ---- */
.search-bar { border:1.5px solid var(--border); border-radius:12px; }

/* ---- TABS d'etape : actif orange franc ---- */
.step-tab.active { background:var(--purple-light); }
.step-tab.active .tab-num { background:var(--purple); }
.step-tab.active, .step-tab.active .tab-num { font-weight:800; }

/* ---- liens / accents textuels ---- */
.home-header::after { background:var(--purple-light); opacity:.55; }

/* ============================================================
   ROUE AURA 360 — fond clair + ronds animes
   Override : passe la roue du fond sombre a un fond clair premium
   (ronds sombres + centre dore qui ressortent sur blanc) et ajoute
   une animation "halo" sur chaque rond d'etape. Reversible.
   ============================================================ */

/* ---- Fond clair a la place du noir ---- */
.cycle-container-dark {
    background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f5f4f1 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.cycle-container-dark .section-title,
.cycle-container-dark h3 { color: var(--text-dark); }

/* Labels exterieurs : passent en sombre pour rester lisibles sur clair */
.cs-outside-label,
.cs-outside-label strong { color: #0A0A0A; }
.cs-pos-7b .cs-outside-label span { color: #8a8a8a; }   /* etait blanc/50 -> invisible sur clair */
.cs-pos-6b .cs-outside-label span { color: #8a8a8a; }   /* idem hexagone (É02 gris) */

/* Centre dore : on fonce l'or pour le contraste sur blanc */
.cycle-container-dark .cycle-center-gold .cycle-logo {
    background: linear-gradient(135deg, #b89a4e 0%, #8a6f2e 100%) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
}
.cycle-container-dark .cycle-center-gold .cycle-logo-sub,
.cycle-container-dark .cycle-center-gold .cycle-sub { color: #9a8748 !important; }
.cycle-container-dark .cycle-connectors line { stroke: #c9b880; opacity: .8; }

/* ---- Ronds animes : halo qui pulse (pseudo-element, n'affecte PAS le transform de position) ---- */
.cycle-step.cs-round { position: absolute; }
.cycle-step.cs-round::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--ring, var(--purple));
    pointer-events: none;
    opacity: 0;
    animation: csPing 2.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes csPing {
    0%   { transform: scale(1);   opacity: .7; }
    70%  { transform: scale(1.65); opacity: 0; }
    100% { transform: scale(1.65); opacity: 0; }
}
/* couleur du halo = couleur du rond */
.cs-c-blue   { --ring:#3b7dd8; }
.cs-c-grey   { --ring:#5a5a6e; }
.cs-c-teal   { --ring:#0a9396; }
.cs-c-purple { --ring:#7b4397; }
.cs-c-red    { --ring:#b03849; }
.cs-c-navy   { --ring:#1e4a8e; }
.cs-c-orange { --ring:#c96d2e; }
/* decalage du pulse pour un effet tournant autour de la roue */
#cs-0::before { animation-delay: 0s; }
#cs-1::before { animation-delay: .37s; }
#cs-2::before { animation-delay: .74s; }
#cs-3::before { animation-delay: 1.11s; }
#cs-4::before { animation-delay: 1.48s; }
#cs-5::before { animation-delay: 1.85s; }
#cs-6::before { animation-delay: 2.22s; }
/* au survol, le halo se fige discretement et le rond grossit (hover existant) */
.cycle-step.cs-round:hover::before { animation-play-state: paused; opacity: .4; }
@media (prefers-reduced-motion: reduce) {
    .cycle-step.cs-round::before { animation: none; }
}

/* ---- Credit clinique du Protocole (Dr. Oumary Smith) ---- */
.protocol-credit {
    margin: -8px 0 18px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: .2px;
}
.protocol-credit strong {
    color: #8a6f2e;            /* or fonce, rappel du centre dore */
    font-weight: 700;
}

/* ---- Ronds eclaircis : cercles blancs, chiffre sombre, eid colore ---- */
.cycle-step.cs-round {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
.cycle-step.cs-round .cs-big-num { color: #0A0A0A; }
.cycle-step.cs-round .cs-small-eid { color: var(--ring, #7b7b7b); opacity: .9; }
.cycle-step.cs-round:hover { box-shadow: 0 8px 22px rgba(0,0,0,.18); }

/* ---- Bouton supprimer un profil (carte client) ---- */
.client-del {
    flex: none;
    width: 26px; height: 26px;
    border: none; border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    font-size: 19px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.client-del:hover { background: var(--danger-bg); color: var(--danger); }
