/* app.css */
:root {
    --bg: #f3f6ff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --border: rgba(132, 145, 186, 0.18);
    --text: #17203a;
    --muted: #6e7895;
    --navy: #0d1b52;
    --blue: #4568ff;
    --blue-soft: #e7edff;
    --green: #1fb47a;
    --green-soft: #dcf7ec;
    --orange: #ff8a3d;
    --orange-soft: #ffe9da;
    --indigo: #7856ff;
    --indigo-soft: #eee8ff;
    --shadow: 0 24px 60px rgba(34, 53, 107, 0.12);
    --shadow-soft: 0 18px 40px rgba(27, 43, 93, 0.08);
    --card-radius: 20px;
    --panel-radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(69, 104, 255, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(31, 180, 122, 0.09), transparent 22%),
        linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(238, 244, 255, 0.98)),
        var(--bg);
}

.edusphere-body {
    min-height: 100vh;
    margin: 0;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    padding: 24px;
}

.sidebar-panel {
    background: linear-gradient(180deg, #132765 0%, #0f1c4d 100%);
    color: #fff;
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.brand-block,
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #8d76ff, #4972ff);
    font-size: 1.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-name.dark,
.brand-subtitle.dark {
    color: var(--text);
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.sidebar-nav {
    margin-top: 32px;
    gap: 8px;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.76);
    border-radius: 16px;
    padding: 13px 16px;
    font-weight: 600;
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    background: rgba(76, 113, 255, 0.95);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
}

.profile-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
}

.profile-name {
    font-weight: 700;
}

.profile-role {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

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

.topbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 4px 24px;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--muted);
    margin: 0;
}

.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.soft-badge.success {
    color: var(--green);
    background: var(--green-soft);
}

.soft-badge.warning {
    color: #c9651d;
    background: rgba(255, 138, 61, 0.14);
}

.soft-badge.danger {
    color: #d9304a;
    background: rgba(255, 93, 115, 0.12);
}

.soft-badge.info {
    color: var(--blue);
    background: rgba(69, 104, 255, 0.12);
}

.content-card,
.metric-card,
.login-card,
.preview-card {
    border-radius: var(--panel-radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.9));
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.content-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #4568ff, #6a7cff 48%, #1fb47a);
    opacity: 0.92;
}

.tall-card {
    min-height: 100%;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.12;
    background: currentColor;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0) 58%),
        radial-gradient(circle at top right, rgba(255,255,255,0.52), transparent 34%);
    pointer-events: none;
}

.metric-card.accent-primary { color: var(--blue); }
.metric-card.accent-success { color: var(--green); }
.metric-card.accent-warning { color: var(--orange); }
.metric-card.accent-indigo { color: var(--indigo); }

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.metric-label {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.metric-value {
    color: var(--text);
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.12;
    position: relative;
    z-index: 1;
    word-break: break-word;
}

.card-header-line {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.card-header-line h3 {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #182446;
}

.card-header-line p {
    color: #6d7898;
    margin: 0;
    max-width: 760px;
}

.workspace-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    padding: 16px 18px;
    margin: -24px -28px 20px;
    background: rgba(243, 246, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(132, 145, 186, 0.12);
}

.workspace-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #5d6b91;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.workspace-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(93, 107, 145, 0.45);
}

.workspace-body {
    display: grid;
    gap: 18px;
}

.workspace-banner {
    background:
        linear-gradient(135deg, rgba(69, 104, 255, 0.08), rgba(31, 180, 122, 0.05)),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,255,0.95));
}

.family-overview-card,
.attendance-card,
.alert-tile,
.teacher-load-card,
.cycle-card,
.form-panel,
.library-card,
.summary-pill,
.public-simple-card,
.public-content-tile {
    border-radius: var(--card-radius);
}

.public-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.public-hero-card {
    border-radius: 28px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.public-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.public-copy {
    color: var(--muted);
    max-width: 760px;
    margin: 0;
}

.public-form-layout {
    display: grid;
    gap: 24px;
}

.public-section-card {
    padding: 28px;
}

.child-registration-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(245, 248, 255, 0.78);
    padding: 20px;
}

.card-header-line h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.card-header-line p,
.empty-copy {
    color: var(--muted);
    margin: 0;
}

.list-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-stack.compact {
    gap: 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 16px;
    border: 1px solid rgba(132, 145, 186, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.list-row:hover {
    transform: translateY(-1px);
    border-color: rgba(69, 104, 255, 0.18);
    box-shadow: 0 12px 22px rgba(38, 54, 107, 0.06);
}

.list-title {
    font-weight: 700;
    color: #182446;
}

.list-subtitle,
.meta-inline {
    color: var(--muted);
    font-size: 0.92rem;
}

.meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.distribution-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.distribution-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 12px;
    align-items: center;
}

.distribution-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #ebefff;
}

.distribution-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #49a4ff, #7964ff);
}

.chart-wrap {
    position: relative;
    min-height: 280px;
}

.presence-ring-wrap {
    display: flex;
    align-items: center;
    gap: 26px;
}

.presence-ring {
    --rate: 0%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 16px;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--green) var(--rate), #e8ecf8 0);
}

.presence-ring.center {
    margin: 0 auto;
}

.presence-ring > div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--surface-strong);
    display: grid;
    place-items: center;
    text-align: center;
}

.presence-ring strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.presence-ring span {
    color: var(--muted);
}

.presence-legend {
    display: grid;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.success { background: var(--green); }
.dot.warning { background: var(--orange); }
.dot.danger { background: #ff5d73; }
.dot.neutral { background: #8f96ae; }

.attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.attendance-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    padding: 18px;
}

.status-options {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.status-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text);
}

.student-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.student-chip {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(73, 114, 255, 0.08);
    border: 1px solid rgba(73, 114, 255, 0.12);
}

.student-chip span {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.family-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.family-overview-card {
    padding: 18px;
    background: linear-gradient(180deg, rgba(247, 249, 255, 0.98), rgba(241, 245, 255, 0.92));
    border: 1px solid rgba(120, 136, 180, 0.12);
    box-shadow: 0 10px 24px rgba(33, 49, 96, 0.05);
}

.family-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

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

.family-overview-metrics div {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(120, 136, 180, 0.1);
    display: grid;
    gap: 4px;
}

.family-overview-metrics span {
    color: var(--muted);
    font-size: 0.82rem;
}

.family-overview-metrics strong {
    color: var(--text);
    font-size: 1rem;
}

.justify-form {
    width: min(250px, 100%);
}

.edusphere-table th {
    color: var(--muted);
    font-weight: 700;
    border-bottom-color: var(--border);
}

.edusphere-table td {
    border-bottom-color: rgba(132, 145, 186, 0.1);
}

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

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

.cycle-card,
.form-panel {
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.76);
}

.cycle-card {
    padding: 20px;
}

.cycle-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.cycle-director {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(132, 145, 186, 0.16);
}

.cycle-director span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-panel {
    padding: 20px;
    margin-top: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.panel-title,
.subsection-divider {
    font-weight: 800;
}

.panel-title {
    margin-bottom: 16px;
}

.subsection-divider {
    margin: 22px 0 14px;
    color: var(--muted);
}

.readonly-field {
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(73, 114, 255, 0.08);
    border: 1px solid rgba(73, 114, 255, 0.12);
    color: var(--text);
    font-weight: 600;
}

.tag-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(31, 180, 122, 0.1);
    border: 1px solid rgba(31, 180, 122, 0.15);
    color: #107d56;
    font-weight: 700;
}

.catalog-tag.warning {
    background: rgba(255, 138, 61, 0.12);
    border-color: rgba(255, 138, 61, 0.18);
    color: #c9651d;
}

.director-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.director-column {
    min-width: 0;
}

.director-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activation-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-action-form {
    margin: 0;
}

.alert-grid,
.teacher-load-grid {
    display: grid;
    gap: 16px;
}

.alert-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.teacher-load-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.alert-tile,
.teacher-load-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.74);
}

.alert-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}

.alert-tile i {
    color: var(--orange);
    font-size: 1.1rem;
}

.teacher-load-card {
    padding: 18px;
    box-shadow: 0 10px 24px rgba(33, 49, 96, 0.05);
}

.teacher-load-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.mini-assignment-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mini-assignment-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(73, 114, 255, 0.06);
}

.mini-assignment-row small {
    color: var(--muted);
}

.quiz-question-card {
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.76);
    padding: 20px;
}

.quiz-choice-stack {
    display: grid;
    gap: 10px;
}

.quiz-choice-option {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(73, 114, 255, 0.06);
    border: 1px solid rgba(73, 114, 255, 0.1);
}

.library-card {
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.78);
    padding: 22px;
    box-shadow: var(--shadow);
}

.library-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.library-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.library-card p {
    color: var(--muted);
    min-height: 78px;
}

.library-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 12px;
}

.quiz-preview {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(73, 114, 255, 0.06);
    border: 1px solid rgba(73, 114, 255, 0.12);
}

.quiz-question {
    margin-top: 8px;
    color: var(--text);
}

.metric-link-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(120, 136, 180, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.9));
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(39, 55, 109, 0.08);
}

.metric-link-card.is-active {
    border-color: rgba(69, 104, 255, 0.26);
    box-shadow: 0 18px 36px rgba(69, 104, 255, 0.12);
}

.metric-link-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(120, 86, 255, 0.12);
    color: #7856ff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.metric-link-body {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
}

.metric-link-title {
    font-weight: 700;
    color: #17203f;
}

.metric-link-copy {
    color: #6f7897;
    font-size: 0.92rem;
}

.metric-link-meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.quiz-monitor-summary h4 {
    margin: 0 0 0.65rem;
    color: #17203f;
}

.quiz-monitor-summary p {
    color: #6f7897;
    margin-bottom: 1rem;
}

.admissions-register-table strong {
    font-size: 0.96rem;
}

.register-print-card {
    overflow: hidden;
}

.summary-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.summary-pill {
    padding: 1rem;
    background: rgba(245, 247, 255, 0.92);
    border: 1px solid rgba(120, 136, 180, 0.12);
    display: grid;
    gap: 0.35rem;
}

.summary-pill span {
    font-size: 0.86rem;
    color: #7480a2;
}

.summary-pill strong {
    font-size: 1.3rem;
    color: #17203f;
}

.report-card-shell {
    max-width: 1040px;
    margin: 0 auto;
}

.report-card-panel {
    padding: 28px;
}

.report-card-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.report-school {
    color: var(--blue);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.report-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.report-header p {
    color: var(--muted);
    margin: 0;
}

.report-badge {
    min-width: 150px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #edf2ff, #f6f0ff);
    border: 1px solid rgba(79, 111, 255, 0.14);
    text-align: center;
}

.report-badge span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.report-badge strong {
    font-size: 2rem;
    color: var(--text);
}

.report-meta-grid,
.report-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.report-footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.report-meta-card,
.report-inner-card {
    border-radius: 20px;
}

.report-meta-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.report-meta-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.report-meta-card strong {
    font-size: 1.05rem;
}

.report-inner-card {
    padding: 20px;
    margin-top: 24px;
}

.report-note {
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

.signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: end;
}

.signature-box span {
    color: var(--muted);
    display: block;
    margin-bottom: 48px;
}

.signature-line {
    border-bottom: 2px solid #cad2ea;
}

@media (max-width: 900px) {
    .report-meta-grid,
    .report-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    body {
        background: white;
    }

    .sidebar-panel,
    .topbar,
    .message-stack,
    .no-print {
        display: none !important;
    }

    .app-shell {
        display: block;
        padding: 0;
    }

    .content-panel,
    .report-card-shell {
        width: 100%;
        max-width: none;
    }

    .content-card,
    .report-card-panel,
    .report-inner-card {
        box-shadow: none;
        border: none;
        background: white;
        padding-left: 0;
        padding-right: 0;
    }

    .register-print-card {
        display: block !important;
        margin-top: 0;
    }

    .admissions-register-table th,
    .admissions-register-table td {
        font-size: 0.9rem;
        color: #111;
    }
}

.btn-gradient {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #4f6fff 0%, #7c58ff 100%);
    box-shadow: 0 14px 24px rgba(79, 111, 255, 0.28);
}

.btn-gradient:hover {
    color: #fff;
    opacity: 0.96;
}

.btn-soft {
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid rgba(79, 111, 255, 0.12);
}

.public-page-body {
    background:
        radial-gradient(circle at top left, rgba(79, 111, 255, 0.1), transparent 24%),
        radial-gradient(circle at top right, rgba(33, 181, 128, 0.08), transparent 22%),
        linear-gradient(180deg, #f7f9ff 0%, #ffffff 44%, #f2f7ff 100%);
    color: #17203a;
}

.public-page-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 16px 56px;
}

.public-navbar {
    position: sticky;
    top: 12px;
    z-index: 40;
    margin-bottom: 20px;
    padding: 12px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(132, 145, 186, 0.12);
    box-shadow: 0 18px 40px rgba(24, 37, 70, 0.08);
    backdrop-filter: blur(18px);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.public-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3564f4 0%, #3c84ff 55%, #1daf7b 100%);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 14px 28px rgba(53, 100, 244, 0.24);
}

.public-brand small {
    display: block;
    color: #7b86a5;
    font-weight: 600;
    font-size: 0.8rem;
}

.public-nav-links {
    align-items: center;
    gap: 4px;
}

.public-nav-link,
.public-nav-links .nav-link {
    position: relative;
    color: #24304e !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 12px !important;
}

.public-nav-link:hover,
.public-nav-links .nav-link:hover,
.public-nav-links .show > .nav-link,
.public-nav-link.is-active {
    color: #2f61f4 !important;
    background: rgba(53, 100, 244, 0.06);
}

.public-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3564f4, #4b86ff);
}

.public-dropdown {
    border: 1px solid rgba(132, 145, 186, 0.14);
    border-radius: 20px;
    padding: 10px;
    min-width: 260px;
    box-shadow: 0 22px 46px rgba(24, 37, 70, 0.1);
}

.public-dropdown .dropdown-item {
    border-radius: 14px;
    padding: 10px 12px;
    color: #45557e;
    font-weight: 600;
}

.public-dropdown .dropdown-item:hover {
    background: #eef3ff;
    color: #2f61f4;
}

.public-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(132, 145, 186, 0.16);
    color: #213255;
    text-decoration: none;
}

.public-ghost-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(132, 145, 186, 0.16);
    color: #213255;
    font-weight: 700;
}

.public-outline-btn {
    border-radius: 12px;
    border: 1px solid rgba(53, 100, 244, 0.22);
    background: white;
    color: #2f61f4;
    font-weight: 700;
    padding: 10px 18px;
    text-decoration: none;
}

.public-primary-btn {
    border-radius: 12px;
    border: 1px solid rgba(53, 100, 244, 0.18);
    background: linear-gradient(135deg, #3564f4 0%, #4b86ff 100%);
    box-shadow: 0 16px 28px rgba(53, 100, 244, 0.22);
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    text-decoration: none;
}

.public-primary-btn:hover,
.public-outline-btn:hover {
    color: inherit;
}

.public-section-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(132, 145, 186, 0.12);
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(24, 37, 70, 0.06);
}

.public-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.public-section-head h2 {
    margin-bottom: 4px;
    font-size: 1.5rem;
    font-weight: 800;
}

.public-section-head p {
    margin: 0;
    color: #6e7895;
}

.public-hero {
    position: relative;
    overflow: hidden;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 28px;
    background: linear-gradient(115deg, #eff6ff 0%, #f7fbff 32%, #ffffff 100%);
    border: 1px solid rgba(132, 145, 186, 0.14);
    min-height: 430px;
}

.public-hero-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.94fr) minmax(0, 1.3fr);
    gap: 18px;
    align-items: stretch;
    min-height: 390px;
}

.public-hero-copy {
    padding: 28px 20px 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.public-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 186, 66, 0.16);
    color: #e39b12;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.public-hero-title {
    max-width: 520px;
    font-size: clamp(2.35rem, 3vw, 4.1rem);
    line-height: 1.04;
    font-weight: 800;
    margin-bottom: 16px;
}

.public-hero-title .accent {
    color: #3564f4;
}

.public-hero-copy p {
    max-width: 420px;
    color: #5c6a8f;
    font-size: 1.03rem;
    margin-bottom: 22px;
}

.public-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.public-hero-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02)),
        linear-gradient(125deg, #cfa97d 0%, #ebd0aa 24%, #b88c59 54%, #6e4c2f 100%);
    min-height: 390px;
}

.public-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(42, 110, 255, 0.18), transparent 18%),
        linear-gradient(90deg, rgba(235, 244, 255, 0.96) 0%, rgba(235, 244, 255, 0.72) 22%, rgba(235, 244, 255, 0.18) 42%, transparent 58%);
}

.hero-building {
    position: absolute;
    inset: auto 6% 0 28%;
    height: 92%;
    border-radius: 14px 14px 0 0;
    background:
        linear-gradient(180deg, #f1e5d4 0%, #ceb08a 28%, #b28152 30%, #d6b48a 30%, #c39767 100%);
    box-shadow: 0 16px 36px rgba(73, 51, 30, 0.18);
}

.hero-building::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 16%;
    bottom: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0 12%,
            rgba(95, 63, 36, 0.38) 12% 15%,
            transparent 15% 28%
        ),
        linear-gradient(90deg, transparent 0 10%, rgba(55, 39, 24, 0.12) 10% 12%, transparent 12% 46%, rgba(55, 39, 24, 0.12) 46% 48%, transparent 48% 100%);
}

.hero-building-sign {
    position: absolute;
    left: 38%;
    top: 14%;
    width: 26%;
    min-height: 46%;
    padding: 22px 16px;
    text-align: center;
    background: linear-gradient(180deg, #f8f0e4, #f1dfc4);
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(77, 58, 37, 0.14);
    color: #251d17;
    font-weight: 800;
    line-height: 1.2;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.hero-flag {
    position: absolute;
    right: 2%;
    top: 0;
    width: 16%;
    height: 36%;
    transform: perspective(180px) rotateY(-8deg);
    background:
        linear-gradient(159deg, transparent 0 40%, #f3c62f 40% 46%, #d64747 46% 54%, #f3c62f 54% 60%, transparent 60% 100%),
        linear-gradient(180deg, #2c7cf8, #005dc9);
    border-radius: 4px 18px 14px 6px;
    box-shadow: 0 12px 28px rgba(23, 55, 122, 0.18);
}

.hero-flag::before {
    content: "★";
    position: absolute;
    top: 9%;
    left: 10%;
    color: #f3c62f;
    font-size: 1.6rem;
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    border: 1px solid rgba(132, 145, 186, 0.14);
    background: rgba(255, 255, 255, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4961a8;
    box-shadow: 0 14px 28px rgba(24, 37, 70, 0.08);
}

.hero-slider-arrow.left { left: 14px; }
.hero-slider-arrow.right { right: 14px; }

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-slider-dots span {
    width: 24px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-slider-dots span.active {
    background: #4b86ff;
}

.public-category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.public-category-tile {
    padding: 18px 12px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(132, 145, 186, 0.12);
    box-shadow: 0 10px 24px rgba(24, 37, 70, 0.05);
}

.public-category-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #f4f8ff;
}

.public-category-tile strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.32;
}

.public-split-grid {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.public-highlight-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #6456f1 0%, #4b7dff 100%);
    color: #fff;
}

.public-highlight-card::after {
    content: "";
    position: absolute;
    inset: auto 10% 0 auto;
    width: 44%;
    height: 86%;
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    opacity: 0.98;
}

.highlight-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
}

.public-highlight-card h3 {
    font-size: 2rem;
    line-height: 1.1;
    max-width: 320px;
}

.public-highlight-card p {
    max-width: 320px;
    color: rgba(255, 255, 255, 0.84);
}

.highlight-children {
    position: absolute;
    right: 7%;
    bottom: 0;
    width: 38%;
    height: 80%;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.child-figure {
    width: 44%;
    height: 88%;
    border-radius: 90px 90px 30px 30px;
    position: relative;
    background: linear-gradient(180deg, #e2a774 0%, #7f4b2a 100%);
}

.child-figure::before {
    content: "";
    position: absolute;
    top: 7%;
    left: 50%;
    width: 48%;
    height: 22%;
    margin-left: -24%;
    border-radius: 50%;
    background: #eab689;
}

.child-figure::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 29%;
    bottom: 0;
    border-radius: 24px 24px 18px 18px;
    background: linear-gradient(180deg, #fefefe 0%, #e9f1ff 18%, #2f61f4 18%, #3f6ef8 100%);
}

.public-news-card {
    padding: 24px;
}

.public-news-list {
    display: grid;
    gap: 14px;
}

.public-news-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(132, 145, 186, 0.12);
}

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

.public-news-thumb {
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2f61f4, #6a89ff);
    position: relative;
    overflow: hidden;
}

.public-news-thumb::before {
    content: "";
    position: absolute;
    inset: 18% 10%;
    border-radius: 12px;
    background:
        repeating-linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.2) 6px, transparent 6px, transparent 18px),
        linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
}

.public-news-item h4 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 700;
}

.public-news-item p {
    margin: 0;
    color: #647194;
    font-size: 0.92rem;
}

.public-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.chip-event { background: rgba(121, 86, 255, 0.1); color: #7352f2; }
.chip-annonce { background: rgba(79, 111, 255, 0.1); color: #3564f4; }
.chip-nouveaute { background: rgba(31, 180, 122, 0.12); color: #138a5d; }

.public-learning-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.78fr;
    gap: 18px;
    margin-bottom: 18px;
}

.public-course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.public-course-card {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(132, 145, 186, 0.12);
    background: #fff;
    box-shadow: 0 12px 26px rgba(24, 37, 70, 0.05);
}

.public-course-media {
    height: 146px;
    background: linear-gradient(135deg, #dde6ff, #f7fbff);
    position: relative;
}

.public-course-media::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(53, 100, 244, 0.22), rgba(31, 180, 122, 0.14));
}

.public-course-body {
    padding: 16px 16px 18px;
}

.public-course-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.public-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #7984a3;
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.public-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #73809f;
    font-size: 0.84rem;
}

.public-quiz-panel {
    padding: 24px;
}

.quiz-trophy {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff7da, #ffefaf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4b400;
    font-size: 2.6rem;
    margin-bottom: 18px;
}

.public-rdc-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.public-rdc-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.public-rdc-media {
    height: 118px;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbe7ff, #f7fbff);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.public-rdc-media.flag::before,
.public-rdc-media.map::before,
.public-rdc-media.book::before,
.public-rdc-media.culture::before,
.public-rdc-media.history::before,
.public-rdc-media.geo::before {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
}

.public-rdc-media.flag::before { content: "★"; color: #f4c531; background: linear-gradient(135deg, #2f61f4, #0059c7); }
.public-rdc-media.map::before { content: "◫"; color: #3f6ef8; background: linear-gradient(135deg, #d9ebff, #f7fbff); }
.public-rdc-media.book::before { content: "Aa"; color: #1c9f6c; background: linear-gradient(135deg, #f2fff7, #dff8ea); font-weight: 800; }
.public-rdc-media.culture::before { content: "◉"; color: #ff8b40; background: linear-gradient(135deg, #fff2e7, #fff9f3); }
.public-rdc-media.history::before { content: "⌘"; color: #6c4cf3; background: linear-gradient(135deg, #f4efff, #faf8ff); }
.public-rdc-media.geo::before { content: "⛰"; color: #17a673; background: linear-gradient(135deg, #e5fff5, #f7fffb); }

.public-stats-band {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.public-stat-box {
    padding: 14px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(132, 145, 186, 0.12);
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.public-stat-box i {
    font-size: 1.8rem;
}

.public-stat-box strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.public-stat-box span {
    color: #6e7895;
    font-size: 0.9rem;
}

.public-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.public-feature-card {
    padding: 24px;
    border-radius: 24px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.public-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.public-feature-card p {
    max-width: 260px;
    color: #5b6888;
}

.feature-visual {
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 92px;
    height: 92px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
}

.feature-purple { background: linear-gradient(135deg, #f3efff, #eef4ff); }
.feature-green { background: linear-gradient(135deg, #edfff5, #f4fffb); }
.feature-gold { background: linear-gradient(135deg, #fff8ea, #fffdf6); }
.feature-blue { background: linear-gradient(135deg, #edf3ff, #f7faff); }

.public-bottom-cta {
    overflow: hidden;
    margin-top: 18px;
    background: linear-gradient(135deg, #0f2d75 0%, #132e74 48%, #0a1a4c 100%);
    color: #fff;
}

.public-bottom-cta .cta-grid {
    display: grid;
    grid-template-columns: 280px 1.2fr 0.95fr;
    gap: 24px;
    padding: 28px 30px;
}

.cta-phone-stack {
    min-height: 180px;
    position: relative;
}

.cta-phone {
    position: absolute;
    width: 110px;
    height: 200px;
    border-radius: 24px;
    background: linear-gradient(180deg, #1d47c9, #183177);
    border: 6px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 32px rgba(0,0,0,0.22);
}

.cta-phone.second {
    left: 96px;
    top: 18px;
    transform: rotate(8deg);
}

.cta-store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.cta-store-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.public-footer {
    margin-top: 0;
    padding: 24px 28px 18px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(180deg, rgba(7, 17, 46, 0.92), rgba(6, 13, 35, 0.98));
    color: #eef3ff;
}

.public-footer-grid {
    display: grid;
    grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.public-footer h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.public-footer a {
    display: block;
    color: rgba(238, 243, 255, 0.74);
    text-decoration: none;
    margin-bottom: 8px;
}

.public-footer small,
.public-footer p {
    color: rgba(238, 243, 255, 0.7);
}

.public-social-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.public-social-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.public-footer-bottom {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(238, 243, 255, 0.62);
    font-size: 0.88rem;
}

.public-detail-layout,
.public-hub-layout,
.public-showcase-layout {
    display: grid;
    gap: 18px;
}

.public-hub-layout,
.public-detail-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.78fr);
}

.public-showcase-layout {
    grid-template-columns: 1fr;
}

.public-aside-card,
.public-simple-card {
    padding: 22px;
}

.public-simple-card {
    border-radius: 22px;
    border: 1px solid rgba(132, 145, 186, 0.12);
    background: #fff;
}

.public-content-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.public-content-tile {
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(132, 145, 186, 0.12);
}

.public-content-tile h3 {
    font-size: 1.06rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.public-content-tile p {
    color: #5c6a8f;
    margin-bottom: 0;
}

.public-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: #6e7895;
}

.public-breadcrumbs a {
    color: #3564f4;
    text-decoration: none;
    font-weight: 700;
}

.public-rich-body {
    color: #324260;
    line-height: 1.82;
    font-size: 1rem;
    white-space: pre-line;
}

@media (min-width: 992px) {
    .public-navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 1200px) {
    .public-category-grid,
    .public-course-grid,
    .public-rdc-grid,
    .public-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-stats-band {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .public-hero-grid,
    .public-split-grid,
    .public-learning-layout,
    .public-hub-layout,
    .public-detail-layout,
    .public-bottom-cta .cta-grid,
    .public-footer-grid,
    .public-content-tile-grid {
        grid-template-columns: 1fr;
    }

    .public-hero {
        min-height: auto;
    }

    .public-hero-copy {
        padding: 18px 8px 8px;
    }

    .public-hero-visual {
        min-height: 300px;
    }
}

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

    .public-navbar {
        padding: 10px 12px;
        border-radius: 20px;
    }

    .public-hero-title {
        font-size: 2rem;
    }

    .public-category-grid,
    .public-course-grid,
    .public-rdc-grid,
    .public-feature-grid,
    .public-stats-band {
        grid-template-columns: 1fr;
    }

    .public-news-item {
        grid-template-columns: 1fr;
    }

    .public-stat-box {
        justify-content: flex-start;
    }

    .public-bottom-cta .cta-grid,
    .public-footer {
        padding: 20px 18px;
    }

    .public-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

.login-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.login-hero {
    background: linear-gradient(145deg, #132765, #203f9a);
    color: #fff;
    border-radius: 30px;
    padding: 44px;
    box-shadow: var(--shadow);
}

.hero-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.login-hero h1 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 800;
    line-height: 1.04;
}

.login-hero p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin-top: 16px;
    font-size: 1.05rem;
}

.hero-preview {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 18px;
    margin-top: 34px;
}

.preview-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mini-title {
    font-weight: 700;
    margin-bottom: 18px;
}

.mini-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#44d7a8 92%, rgba(255, 255, 255, 0.18) 0);
    font-size: 1.6rem;
    font-weight: 800;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.login-card {
    padding: 38px;
}

.login-help {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

.message-stack {
    margin-bottom: 16px;
}

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

    .sidebar-panel {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .app-shell {
        padding: 16px;
        gap: 16px;
    }

    .sidebar-panel,
    .content-card,
    .metric-card,
    .login-card,
    .login-hero {
        border-radius: 22px;
    }

    .topbar {
        flex-direction: column;
    }

    .presence-ring-wrap {
        flex-direction: column;
    }

    .hero-preview {
        grid-template-columns: 1fr;
    }

    .director-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== DASHBOARD HERO ========== */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,248,255,0.95));
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(132,145,186,0.08);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    border-top: 4px solid rgba(69, 104, 255, 0.92);
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-stat-item.accent-primary .hero-stat-icon { background: rgba(67,97,238,0.1); color: #4361ee; }
.hero-stat-item.accent-indigo .hero-stat-icon { background: rgba(120,86,255,0.1); color: #7856ff; }
.hero-stat-item.accent-success .hero-stat-icon { background: rgba(16,185,129,0.1); color: #10b981; }

.hero-stat-info { display: flex; flex-direction: column; }
.hero-stat-label { font-size: 0.7rem; font-weight: 600; color: #8b91a8; text-transform: uppercase; letter-spacing: 0.04em; }
.hero-stat-value { font-size: 1.5rem; font-weight: 800; color: #17203a; line-height: 1.1; }

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(132,145,186,0.15);
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.coverage-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.coverage-ring-circle {
    width: 48px;
    height: 48px;
    position: relative;
}

.coverage-ring-circle svg {
    width: 100%;
    height: 100%;
}

.coverage-ring-circle span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #17203a;
}

.coverage-badge small {
    font-size: 0.6rem;
    color: #8b91a8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ========== SECTIONS DÉPLIABLES ========== */
.collapsible-section {
    padding: 0 !important;
    overflow: hidden;
}

.collapsible-header {
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    user-select: none;
    transition: background 0.2s ease;
}

.collapsible-header::-webkit-details-marker { display: none; }

.collapsible-header::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.75rem;
    margin-left: auto;
    color: #8b91a8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.collapsible-section[open] > .collapsible-header::after {
    transform: rotate(90deg);
}

.collapsible-header:hover {
    background: rgba(245,247,255,0.6);
}

.collapsible-body {
    padding: 0 24px 20px;
}

/* ========== MODALES BOOTSTRAP CORRIGÉES ========== */
.modal {
    display: none;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    margin: 0 auto;
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 100%;
}

.modal-header {
    border-bottom: 1px solid rgba(132,145,186,0.1);
    padding: 18px 24px;
}

.modal-body {
    padding: 20px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-close {
    cursor: pointer;
}

[data-bs-toggle="modal"] {
    cursor: pointer;
}

/* ========== BOUTON RETOUR HAUT ========== */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4361ee, #7c58ff);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(79,111,255,0.3);
    font-size: 1rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(79,111,255,0.4);
}
/* Scroll containers */
.scrollable-y {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(132,145,186,0.3) transparent;
}

.scrollable-y::-webkit-scrollbar { width: 4px; }
.scrollable-y::-webkit-scrollbar-track { background: transparent; }
.scrollable-y::-webkit-scrollbar-thumb { background: rgba(132,145,186,0.3); border-radius: 10px; }

.scrollable-grid {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(132,145,186,0.3) transparent;
}

.scrollable-grid::-webkit-scrollbar { width: 4px; }
.scrollable-grid::-webkit-scrollbar-track { background: transparent; }
.scrollable-grid::-webkit-scrollbar-thumb { background: rgba(132,145,186,0.3); border-radius: 10px; }

.min-w-0 { min-width: 0; }

.dashboard-card-fixed {
    display: flex;
    flex-direction: column;
}

.dashboard-card-fixed > *:last-child {
    flex: 1;
    min-height: 0;
}

@media (max-width: 768px) {
    .workspace-topbar {
        margin: 0 -12px 14px;
        padding: 12px;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-stats-row {
        gap: 12px;
    }
    .hero-stat-divider {
        display: none;
    }
    .collapsible-header {
        padding: 14px 16px;
    }
    .collapsible-body {
        padding: 0 16px 16px;
    }
    .scroll-to-top {
        bottom: 16px;
        right: 14px;
    }

    .metric-card {
        min-height: 156px;
    }
}
