/* ===================== VARIABLES & BASE ===================== */

:root {
    --bg-main: radial-gradient(circle at top, #2855d8 0%, #0b32a3 45%, #07196b 100%);
    --card-bg: rgba(15, 23, 42, 0.94);
    --card-soft: rgba(15, 23, 42, 0.82);
    --card-border: rgba(148, 163, 184, 0.35);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.12);
    --accent-strong: #22c55e;
    --warning: #fb923c;
    --danger: #f97373;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.7);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: #0e2069;
}

body.site {
    display: flex;
    align-items: stretch;
    justify-content: center;
}


* ===================== APP SHELL ===================== */

.app-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 1440px;
    padding: 20px;
    overflow: hidden;
}

.app-shell::before,
.app-shell::after {
    content: "";
    position: fixed;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 60%);
    opacity: 0.7;
    z-index: -2;
}

.app-shell::after {
    background: radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 60%);
    opacity: 0.9;
}

.glass-frame {
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.88));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.26);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}


/* ===================== LAYOUT PAGES INTERNES ===================== */ .app-main--inner { padding: 24px 32px 32px; display: flex; justify-content: center; } .inner-content { width: 100%; max-width: 960px; } .inner-card { border-radius: 24px; background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), rgba(15, 23, 42, 0.96)); border: 1px solid rgba(148, 163, 184, 0.35); box-shadow: 0 18px 60px rgba(15, 23, 42, 0.7); padding: 22px 24px 24px; } .inner-card-header { border-bottom: 1px solid rgba(148, 163, 184, 0.35); padding-bottom: 10px; margin-bottom: 16px; } .inner-card-title { margin: 0; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; } .inner-card-body { font-size: 14px; line-height: 1.6; } /* un peu de respiration sur mobile */ @media (max-width: 768px) { .app-main--inner { padding: 16px 14px 20px; } .inner-card { padding: 18px 16px 20px; border-radius: 20px; } .inner-card-title { font-size: 18px; } }
/* ===================== HEADER ===================== */

.app-header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

.brand-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #22c55e, #16a34a);
    color: #022c22;
    font-weight: 650;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.logo-pill span.icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.game-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-title {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.session-side {
    display: flex;
    align-items: center;
    gap: 16px;
}

.scenario-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-pill span.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-strong);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.session-metrics {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.metric-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.metric-label {
    color: var(--text-muted);
}

.metric-value {
    font-weight: 600;
}

/* ===== Studio badge (AlgoVista discret) ===== */

.studio-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.studio-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-strong);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.studio-text {
    white-space: nowrap;
    opacity: 0.9;
}

/* ===== Logo Paycheck Planet “hero” ===== */

.game-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.game-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.9), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(34, 197, 94, 0.9), transparent 55%),
        linear-gradient(135deg, #0f172a, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #ecfdf5;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.45);
    text-transform: uppercase;
}

.game-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game-logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.game-logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Ajustement mobile */

@media (max-width: 768px) {
    .brand-side {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .game-logo {
        margin-left: 0;
    }

    .game-logo-title {
        font-size: 17px;
        letter-spacing: 0.14em;
    }

    .game-logo-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-radius: 12px;
    }
}

/* NAV PRINCIPALE */

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Les modules de menu Joomla génèrent généralement une <ul> */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav li a {
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.85);
    transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.main-nav li a:hover,
.main-nav li.current a,
.main-nav li.active a {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.9));
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.7);
}

@media (max-width: 768px) {
    .app-header {
        flex-wrap: wrap;
    }

    .main-nav {
        width: 100%;
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}


/* BREADCRUMBS */

.breadcrumbs-wrapper {
    padding: 6px 22px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.breadcrumbs-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs-wrapper li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumbs-wrapper a {
    color: #93c5fd;
    text-decoration: none;
}

.breadcrumbs-wrapper a:hover {
    text-decoration: underline;
}

/* ===================== CARDS GÉNÉRIQUES ===================== */

.card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--card-border);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 55%);
    opacity: 0.5;
    pointer-events: none;
}

.card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.card-badge {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
}

.card-content {
    position: relative;
    z-index: 1;
    font-size: 13px;
}

/* ===================== LAYOUT PRINCIPAL ===================== */

.app-main {
    flex: 1;
    padding: 16px 20px 12px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1.4fr) 320px;
    grid-template-areas: "left board right";
    gap: 16px;
}

.sidebar-left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.board-wrapper {
    grid-area: board;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===================== SIDEBAR LEFT ===================== */

.profile-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(145deg, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #022c22;
}

.profile-text-main {
    font-size: 14px;
    font-weight: 600;
}

.profile-text-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.objectives-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.objectives-list li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot-green {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-strong);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

/* ===================== BOARD CENTRAL ===================== */

.board-area {
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.98));
    padding: 18px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.board-area::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 55%),
        radial-gradient(circle at bottom, rgba(34, 197, 94, 0.2), transparent 55%);
    opacity: 0.9;
}

.board-grid {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
    place-items: center;
}

.board-center {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    width: min(210px, 90%);
    height: min(210px, 90%);
    aspect-ratio: 1;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.2);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 min(14px, 1vw) rgba(15, 23, 42, 0.5);
    text-align: center;
    padding: 1rem;
}

.board-center-title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #93c5fd;
}

.board-center-value {
    font-size: 26px;
    font-weight: 700;
    margin-top: 4px;
}

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

.event-card {
    width: 100%;
    max-width: 170px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 10px 11px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-title {
    font-weight: 600;
}

.event-tag {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===================== JAUGES ===================== */

.jauges-row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gauge {
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 10px 11px;
    font-size: 12px;
}

.gauge-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gauge-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
}

.gauge-value {
    font-weight: 600;
}

.gauge-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #a3e635);
}

.gauge-fill.warning {
    background: linear-gradient(90deg, #fb923c, #facc15);
}

.gauge-fill.danger {
    background: linear-gradient(90deg, #f97373, #fb7185);
}

/* ===================== SIDEBAR RIGHT ===================== */

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

.journal-item {
    font-size: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.journal-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.choices-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.choice-button {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.7);
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.choice-button strong {
    font-weight: 600;
}

.choice-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.choice-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
    border-color: var(--accent-strong);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(15, 23, 42, 0.95));
}

.coach-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.coach-highlight {
    color: #bbf7d0;
}

/* ===================== FOOTER ===================== */

.app-footer {
    padding: 10px 22px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.32);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: #93c5fd;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1400px) {
    .app-main {
        grid-template-columns: 250px minmax(0, 1fr) 290px;
        gap: 14px;
    }
}

@media (max-width: 1200px) {
    .app-main {
        padding: 14px 16px 10px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "left  right"
            "board board";
        gap: 14px;
    }

    .glass-frame {
        border-radius: 24px;
    }

    .board-area {
        min-height: 380px;
        padding: 20px 16px;
    }

    .board-center {
        width: min(180px, 85%);
        height: min(180px, 85%);
    }

    .event-card {
        max-width: 150px;
        padding: 9px 10px;
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    .app-main {
        padding: 12px 14px 10px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sidebar-left,
    .board-wrapper,
    .sidebar-right {
        width: 100%;
    }

    .board-area {
        min-height: 340px;
        padding: 16px;
    }

    .board-grid {
        gap: 8px;
    }

    .board-center {
        width: min(160px, 80%);
        height: min(160px, 80%);
        box-shadow: 0 0 0 min(10px, 2vw) rgba(15, 23, 42, 0.5);
    }

    .board-center-title {
        font-size: 11px;
    }

    .board-center-value {
        font-size: 22px;
    }

    .event-card {
        max-width: 140px;
        padding: 8px 9px;
        font-size: 11px;
    }

    .event-title {
        font-size: 11px;
    }

    .event-tag {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    body.site {
        align-items: flex-start;
    }

    .app-shell {
        padding: 10px;
        max-width: 100%;
    }

    .glass-frame {
        border-radius: 18px;
        min-height: 100vh;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 14px 10px;
    }

    .brand-side {
        flex-wrap: wrap;
    }

    .session-side {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .session-metrics {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .app-main {
        padding: 12px 12px 14px;
    }

    .board-area {
        min-height: 320px;
        padding: 14px;
    }

    .board-grid {
        gap: 6px;
    }

    .board-center {
        width: min(140px, 75%);
        height: min(140px, 75%);
        box-shadow: 0 0 0 8px rgba(15, 23, 42, 0.5);
        padding: 0.75rem;
    }

    .board-center-title {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .board-center-value {
        font-size: 20px;
        margin-top: 2px;
    }

    .board-center-sub {
        font-size: 11px;
    }

    .event-card {
        max-width: 120px;
        padding: 7px 8px;
        font-size: 10px;
        gap: 3px;
    }

    .event-title {
        font-size: 10px;
    }

    .event-tag {
        font-size: 9px;
    }

    .jauges-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .card {
        padding: 14px 14px 12px;
    }

    .card-title {
        font-size: 13px;
    }

    .metric-chip,
    .scenario-pill {
        font-size: 12px;
        padding: 5px 9px;
    }

    .game-title {
        font-size: 16px;
    }

    .choice-button {
        padding: 8px 11px;
        font-size: 12px;
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 14px 12px;
        font-size: 11px;
    }

    .footer-links {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .app-shell {
        padding: 8px;
    }

    .glass-frame {
        border-radius: 16px;
    }

    .app-header {
        padding: 12px 12px 8px;
    }

    .app-main {
        padding: 10px 10px 12px;
        gap: 10px;
    }

    .board-area {
        min-height: 280px;
        padding: 12px;
        border-radius: 20px;
    }

    .board-grid {
        gap: 5px;
    }

    .board-center {
        width: min(120px, 70%);
        height: min(120px, 70%);
        box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.5);
        padding: 0.5rem;
    }

    .board-center-title {
        font-size: 9px;
    }

    .board-center-value {
        font-size: 18px;
    }

    .board-center-sub {
        font-size: 10px;
    }

    .event-card {
        max-width: 100px;
        padding: 6px 7px;
        font-size: 9px;
        border-radius: 12px;
    }

    .event-title {
        font-size: 9px;
    }

    .event-tag {
        font-size: 8px;
    }

    .card {
        padding: 12px;
        border-radius: 18px;
    }

    .logo-pill {
        font-size: 13px;
        padding: 5px 10px;
    }

    .game-title {
        font-size: 15px;
    }

    .game-subtitle {
        font-size: 12px;
    }
}

/* ============ LAYOUT BASE POUR LES AUTRES PAGES ============ */

.page-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}

.page-frame {
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.26);
    padding: 18px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Header "slim" mais dans le même esprit */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    padding-bottom: 10px;
}

.page-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-small {
    padding: 4px 9px;
    font-size: 13px;
}

.page-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-title {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* Layout 2 colonnes classique */

.page-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
}

.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-content {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 18px 20px;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
}

/* Le style "card" pour les modules sidebar */

.page-sidebar .moduletable,
.page-sidebar .card,
.page-sidebar .custom {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--card-border);
    padding: 14px 14px 12px;
    font-size: 13px;
}

/* Footer */

.page-footer {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.32);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.page-footer-right {
    display: flex;
    gap: 10px;
}

/* Responsive */

@media (max-width: 960px) {
    .page-main {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        order: 2;
    }

    .page-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding: 10px;
    }

    .page-frame {
        border-radius: 18px;
        padding: 14px 14px 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 6px;
    }
}

/* ===================== PAGES INTERNES (article, règles du jeu, etc.) ===================== */

/* On réutilise le même main mais en mode "page" au lieu de plateau */
.app-main--page {
    padding: 18px 22px 18px;
    display: block;              /* écrase le display:grid de .app-main (plateau) */
}

/* Layout 1 à 3 colonnes selon sidebars */
.page-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: flex-start;
}

/* Si tu n’utilises qu’une seule sidebar, ça reste propre.
   Si aucune sidebar, tu verras juste le centre et tu pourras
   retirer la colonne dans l’index plus tard si tu veux. */

.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Carte centrale qui contient l’article Joomla (component) */
.content-card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 18px 20px;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
}

/* Style des modules dans les sidebars (mêmes codes que les cards) */
.page-sidebar .moduletable,
.page-sidebar .custom,
.page-sidebar .card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--card-border);
    padding: 14px 14px 12px;
    font-size: 13px;
}

/* Footer enrichi pour les pages */
.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.footer-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive : en dessous de 960px, tout passe en une seule colonne */
@media (max-width: 960px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-sidebar-left,
    .page-sidebar-right {
        order: 2;       /* sidebars sous le contenu */
    }

    .content-card {
        order: 1;       /* contenu en premier */
    }
}

@media (max-width: 768px) {
    .app-main--page {
        padding: 12px 12px 16px;
    }
}
/* Variante pour les pages Paycheck Planet (rapports, board interne, etc.) */
.content-card--immersive {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

/* Sur mobile, on laisse toute la largeur à ton layout Paycheck */
@media (max-width: 768px) {
    .content-card--immersive {
        padding: 0;
        margin: 0;
    }
}

/* ===================== NAVIGATION BAS DE PAGE PAYCHECK PLANET ===================== */

.pp-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pp-bottom-nav .pp-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.65);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.7);
    transition:
        background 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease,
        border-color 140ms ease;
}

.pp-bottom-nav .pp-nav-link:hover,
.pp-bottom-nav .pp-nav-link:focus {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #020617;
    border-color: transparent;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Version mobile : boutons en colonne et pleine largeur */

@media (max-width: 768px) {
    .pp-bottom-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .pp-bottom-nav .pp-nav-link {
        width: 100%;
        justify-content: center;
    }
}
/* ===================== LOGO ORBITAL PAYCHECK ===================== */

.pp-logo-orbit {
    position: relative;
    width: 96px;     /* un peu plus grand que ton logo actuel */
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 600px;
}

/* Noyau au centre */

.pp-logo-core {
    position: relative;
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 25% 0%, rgba(56, 189, 248, 1), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(34, 197, 94, 0.95), transparent 55%),
        linear-gradient(135deg, #020617, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
}

.pp-logo-main {
    display: block;
    font-weight: 800;
    letter-spacing: 0.16em;
    font-size: 16px;
    text-transform: uppercase;
    color: #ecfdf5;
}

.pp-logo-sub {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(226, 232, 240, 0.9);
}

/* Orbites */

.pp-orbit {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.6);
    transform-style: preserve-3d;
    animation: pp-orbit-rotate 16s linear infinite;
}

.pp-orbit--two {
    inset: 2px;
    opacity: 0.7;
    animation-duration: 22s;
    animation-direction: reverse;
}

.pp-orbit--three {
    inset: 14px;
    opacity: 0.5;
    animation-duration: 28s;
}

/* Petits satellites */

.pp-orbit-dot {
    position: absolute;
    top: 50%;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 1);
    transform: translateY(-50%);
}

/* Effet 3D léger via rotation */

.pp-orbit--one {
    transform: rotateX(24deg) rotateY(-18deg);
}

.pp-orbit--two {
    transform: rotateX(-18deg) rotateY(24deg);
}

.pp-orbit--three {
    transform: rotateX(32deg) rotateY(12deg);
}

/* Animation de rotation globale */

@keyframes pp-orbit-rotate {
    from {
        transform: rotateX(24deg) rotateY(-18deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(24deg) rotateY(-18deg) rotateZ(360deg);
    }
}

/* Légère adaptation sur mobile */

@media (max-width: 768px) {
    .pp-logo-orbit {
        width: 80px;
        height: 80px;
    }

    .pp-logo-core {
        width: 60px;
        height: 60px;
    }

    .pp-logo-main {
        font-size: 14px;
    }

    .pp-logo-sub {
        font-size: 8px;
        letter-spacing: 0.14em;
    }
}
