* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.25), transparent 25%),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.18), transparent 20%),
        linear-gradient(135deg, #050816 0%, #081126 45%, #0b1020 100%);
    min-height: 100vh;
}

a {
    color: #c084fc;
    text-decoration: none;
}

a:hover {
    color: #e9d5ff;
}

.page-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 16px 22px;
    border: 1px solid rgba(168, 85, 247, 0.18);
    background: rgba(12, 16, 34, 0.78);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.brand span {
    color: #c084fc;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 12px;
    color: #dbe4ff;
    transition: 0.2s ease;
}

.nav-links a:hover {
    background: rgba(168, 85, 247, 0.12);
    color: #ffffff;
}

.hero {
    padding: 56px 36px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 70% 20%, rgba(192, 132, 252, 0.22), transparent 20%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.18), transparent 18%),
        rgba(8, 12, 28, 0.82);
    border: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    margin-bottom: 28px;
}

.hero-eyebrow {
    color: #c084fc;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -1.8px;
}

.hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    max-width: 760px;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
    border: 1px solid rgba(168, 85, 247, 0.28);
    background: rgba(168, 85, 247, 0.12);
    color: #ffffff;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(168, 85, 247, 0.22);
    color: #ffffff;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-color: rgba(216, 180, 254, 0.25);
    box-shadow: 0 10px 26px rgba(168, 85, 247, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.card {
    grid-column: span 12;
    background: rgba(10, 14, 30, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

@media (min-width: 900px) {
    .card.span-4 {
        grid-column: span 4;
    }

    .card.span-6 {
        grid-column: span 6;
    }

    .card.span-8 {
        grid-column: span 8;
    }
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 24px;
}

.muted {
    color: #94a3b8;
}

.kpi {
    font-size: 34px;
    font-weight: 800;
    margin: 8px 0 4px;
}

.progress-track {
    width: 100%;
    height: 14px;
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5cf6 0%, #60a5fa 100%);
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin: 6px 8px 0 0;
    background: rgba(148, 163, 184, 0.12);
    color: #dbe4ff;
}

.badge-ok {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.badge-wait {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.inline-actions a {
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.09);
    color: #e2e8f0;
}

.inline-actions a:hover {
    background: rgba(168, 85, 247, 0.16);
}

.form-shell {
    max-width: 520px;
    margin: 80px auto;
    padding: 32px;
    border-radius: 28px;
    background: rgba(10, 14, 30, 0.86);
    border: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.form-shell h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 42px;
}

.form-shell p {
    color: #94a3b8;
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #e2e8f0;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    outline: none;
    margin-bottom: 18px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(192, 132, 252, 0.8);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
}

button {
    cursor: pointer;
    border: none;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.alert-error {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}
.form-shell-wide {
    max-width: 760px;
    margin: 40px auto 80px;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.actions-row {
    align-items: center;
}

.actions-row .btn,
.actions-row button.btn {
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
}
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title-row h2 {
    margin: 0;
}

.section-subtitle {
    color: #94a3b8;
    font-size: 15px;
}

.kpi-card {
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 65%);
    pointer-events: none;
}

.kpi-label {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.kpi-foot {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.card-soft {
    background: linear-gradient(180deg, rgba(13, 18, 38, 0.9) 0%, rgba(10, 14, 30, 0.78) 100%);
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
}

.goal-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.goal-card + .goal-card {
    margin-top: 14px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    margin-bottom: 8px;
}

.goal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.goal-desc {
    margin: 0;
    color: #94a3b8;
    line-height: 1.5;
}

.goal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.goal-actions a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
}

.goal-actions a:hover {
    background: rgba(168, 85, 247, 0.16);
}

.task-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.task-card + .task-card {
    margin-top: 14px;
}

.task-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    margin-bottom: 8px;
}

.task-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.task-meta {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 4px;
}

.task-desc {
    color: #cbd5e1;
    margin: 8px 0 0;
    line-height: 1.5;
}

.task-footer {
    margin-top: 14px;
}

.mini-progress-label {
    color: #cbd5e1;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.journal-block p {
    margin: 0 0 10px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    font-weight: 700;
}

@media (max-width: 700px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .goal-header,
    .task-top,
    .section-title-row {
        flex-direction: column;
        align-items: start;
    }

    .hero {
        padding: 34px 22px;
    }
}
.layout-app {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    background: rgba(7, 10, 22, 0.88);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(18px);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-brand {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

.sidebar-brand span {
    color: #c084fc;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #dbe4ff;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.22);
    color: #ffffff;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.main-content {
    min-width: 0;
}

.content-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 48px;
}

.topbar-minimal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.topbar-title {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.topbar-user {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: #dbe4ff;
}

.hero-compact {
    padding: 42px 30px;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .layout-app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }

    .sidebar-inner {
        height: auto;
    }

    .sidebar-bottom {
        margin-top: 18px;
    }
}

@media (max-width: 800px) {
    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .content-shell {
        width: min(100% - 24px, 1320px);
    }

    .hero-compact {
        padding: 30px 22px;
    }
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 24px;
}

.checkbox-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
    cursor: pointer;
    transition: 0.2s ease;
    line-height: 1.5;
}

.checkbox-row:hover {
    border-color: rgba(192, 132, 252, 0.32);
    background: rgba(168, 85, 247, 0.05);
}

.checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 8px;
    border: 1px solid rgba(192, 132, 252, 0.45);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    position: relative;
    margin-top: 1px;
    transition: 0.2s ease;
}

.checkbox-row input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-color: rgba(216, 180, 254, 0.45);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.25);
}

.checkbox-row input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-row a {
    color: #c084fc;
    font-weight: 700;
}

.checkbox-row a:hover {
    color: #e9d5ff;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    margin-bottom: 0;
    padding-right: 64px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent; /* ✅ enlève le carré blanc */
    padding: 0;
    margin: 0;

    cursor: pointer;
    border-radius: 10px;

    transition: 0.2s ease;
}
}

button {
    -webkit-appearance: none;
    appearance: none;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    margin-bottom: 0;
    padding-right: 64px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 12px;
    padding: 0;
    margin: 0;

    background: rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: 0.25s ease;
}

.toggle-password:hover {
    background: rgba(168, 85, 247, 0.18);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
    transform: translateY(-50%) scale(1.04);
}

.toggle-password.active {
    background: rgba(168, 85, 247, 0.22);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    stroke: #d8b4fe;
    stroke-width: 1.9;
    fill: none;
    transition: 0.2s ease;
}

.toggle-password:hover svg {
    stroke: #f5d0fe;
}

.icon-eye-off {
    display: none;
}

.toggle-password.active .icon-eye {
    display: none;
}

.toggle-password.active .icon-eye-off {
    display: block;
}