﻿/* ========== RESET GLOBAL ========== */
        *, *::before, *::after {
            box-sizing: border-box;
        }

        html {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }

        body {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }

        body.public-page-body {
            font-family: Inter, "Segoe UI", Arial, sans-serif;
            background: linear-gradient(180deg, #f7fbff 0%, #ffffff 58%, #f5f8ff 100%);
            color: #18243f;
            display: flex;
            flex-direction: column;
            margin: 0;
            padding: 0;
        }

        /* ========== SHELL PRINCIPAL ========== */
        .public-page-shell {
            width: 100%;
            max-width: 100vw;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
        }

        /* ========== NAVBAR ========== */
        .public-navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100vw;
            max-width: 100vw;
            z-index: 1000;
            padding: 0;
            margin: 0;
            border-radius: 0;
            background: transparent;
            border: 0;
            box-shadow: none;
            backdrop-filter: none;
            transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
        }

        .public-navbar.is-scrolled {
            background: rgba(255, 255, 255, 0.92);
            border-bottom: 1px solid rgba(127, 144, 182, 0.12);
            box-shadow: 0 4px 20px rgba(17, 30, 67, 0.06);
            backdrop-filter: blur(14px);
        }

        .public-navbar .container-fluid {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: 0 24px !important;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 64px;
            gap: 16px;
        }

        @media (max-width: 768px) {
            .public-navbar .container-fluid {
                padding: 0 16px !important;
                min-height: 56px;
            }
        }

        /* ========== BRAND ========== */
        .public-brand {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: #18243f;
            font-weight: 800;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .public-brand-logo {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #2f60ef 0%, #5384ff 100%);
            color: #fff;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .public-brand small {
            display: block;
            color: #7482a5;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1.2;
        }

        @media (max-width: 520px) {
            .public-brand {
                font-size: 0.85rem;
                gap: 8px;
            }
            .public-brand-logo {
                width: 36px;
                height: 36px;
                font-size: 0.9rem;
            }
            .public-brand small {
                font-size: 0.68rem;
            }
        }

        /* ========== NAV CENTER - MENUS ========== */
        .navbar-nav-center {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .public-nav-links {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .navbar-nav-center .nav-link,
        .public-nav-link {
            color: #263350 !important;
            font-weight: 700;
            border-radius: 8px;
            padding: 8px 12px !important;
            white-space: nowrap;
            position: relative;
            font-size: 0.9rem;
            transition: background 0.2s ease, color 0.2s ease;
        }

        .navbar-nav-center .nav-link:hover,
        .navbar-nav-center .show > .nav-link,
        .navbar-nav-center .nav-link.active,
        .public-nav-link:hover,
        .show > .public-nav-link,
        .public-nav-link.is-active {
            background: rgba(255, 255, 255, 0.14);
            color: #2f60ef !important;
        }

        .navbar-nav-center .nav-link.active::after,
        .public-nav-link.is-active::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 12px;
            right: 12px;
            height: 3px;
            background: #2f60ef;
            border-radius: 10px;
        }

        .public-icon-button,
        .public-ghost-select {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #263350;
            background: rgba(255, 255, 255, 0.16);
            border: 1px solid rgba(127, 144, 182, 0.18);
            text-decoration: none;
            font-weight: 800;
        }

        .public-ghost-select {
            width: auto;
            gap: 5px;
            padding: 0 10px;
            font-size: 0.82rem;
        }

        /* ========== NAV RIGHT - BOUTONS ========== */
        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .btn-nav-connexion {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.88rem;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.2s ease;
            background: transparent;
            color: #263350;
            border: 1px solid rgba(127, 144, 182, 0.2);
        }

        .btn-nav-connexion:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(47, 96, 239, 0.3);
            color: #2f60ef;
        }

        .btn-nav-inscription {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.88rem;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.2s ease;
            background: linear-gradient(135deg, #2f60ef 0%, #4f80ff 100%);
            color: #fff;
            border: 1px solid rgba(47, 96, 239, 0.12);
            box-shadow: 0 6px 16px rgba(47, 96, 239, 0.2);
        }

        .btn-nav-inscription:hover {
            box-shadow: 0 10px 24px rgba(47, 96, 239, 0.3);
            transform: translateY(-1px);
            color: #fff;
        }

        .btn-nav-langue {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 8px 10px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.2s ease;
            background: transparent;
            color: #263350;
            border: 1px solid rgba(127, 144, 182, 0.15);
            cursor: pointer;
        }

        .btn-nav-langue:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(47, 96, 239, 0.25);
            color: #2f60ef;
        }

        /* ========== DROPDOWN ========== */
        .public-dropdown {
            border-radius: 12px;
            border: 1px solid rgba(127, 144, 182, 0.16);
            box-shadow: 0 20px 40px rgba(15, 28, 62, 0.1);
            padding: 8px;
            min-width: 200px;
            margin-top: 8px !important;
        }

        .public-dropdown .dropdown-item {
            border-radius: 8px;
            font-weight: 600;
            padding: 10px 14px;
            font-size: 0.9rem;
        }

        .public-dropdown .dropdown-item:hover {
            background: rgba(47, 96, 239, 0.06);
            color: #2f60ef;
        }

        /* ========== TOGGLER MOBILE ========== */
        .navbar-toggler {
            border: 1px solid rgba(127, 144, 182, 0.2);
            border-radius: 8px;
            padding: 6px 10px;
            color: #263350;
            background: #fff;
        }

        .navbar-toggler:focus {
            box-shadow: 0 0 0 3px rgba(47, 96, 239, 0.15);
            outline: none;
        }

        /* ========== BOUTONS PRINCIPAUX ========== */
        .public-primary-btn,
        .public-outline-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 11px 20px;
            border-radius: 10px;
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
            white-space: nowrap;
            font-size: 0.95rem;
        }

        .public-primary-btn:hover,
        .public-outline-btn:hover {
            transform: translateY(-2px);
        }

        .public-primary-btn {
            background: linear-gradient(135deg, #2f60ef 0%, #4f80ff 100%);
            color: #fff;
            border: 1px solid rgba(47, 96, 239, 0.12);
            box-shadow: 0 14px 24px rgba(47, 96, 239, 0.18);
        }

        .public-primary-btn:hover {
            box-shadow: 0 18px 32px rgba(47, 96, 239, 0.28);
            color: #fff;
        }

        .public-outline-btn {
            background: rgba(255, 255, 255, 0.14);
            color: #2f60ef;
            border: 1px solid rgba(47, 96, 239, 0.24);
            backdrop-filter: blur(10px);
        }

        .public-outline-btn:hover {
            background: rgba(255, 255, 255, 0.22);
            border-color: #2f60ef;
            color: #2f60ef;
        }

        @media (max-width: 520px) {
            .public-primary-btn,
            .public-outline-btn {
                padding: 10px 16px;
                font-size: 0.88rem;
            }
        }

        /* ========== CONTENEUR DE CONTENU PRINCIPAL ========== */
        .public-content-wrapper {
            width: 100%;
            max-width: none;
            margin: 0;
            padding-left: 24px;
            padding-right: 24px;
        }

        @media (max-width: 768px) {
            .public-content-wrapper {
                padding-left: 16px;
                padding-right: 16px;
            }
        }

        /* ========== HERO BANNER ========== */
        .hero-banner {
            position: relative;
            width: 100vw;
            min-height: 420px;
            overflow: hidden;
            margin: 0;
            padding: 0;
            border-radius: 0;
            border: 0;
            background: linear-gradient(180deg, #f4f8ff 0%, #eef3ff 100%);
            box-shadow: none;
        }

        .hero-banner::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 88px;
            background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 100%);
            z-index: 1;
            pointer-events: none;
        }

        .hero-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.7s ease, transform 0.8s ease;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            transform: scale(1.03);
        }

        .hero-slide::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(
                90deg,
                rgba(244, 249, 255, 1) 0%,
                rgba(244, 249, 255, 0.95) 30%,
                rgba(244, 249, 255, 0.7) 50%,
                rgba(244, 249, 255, 0.2) 70%,
                transparent 85%
            );
        }

        .hero-slide.is-active {
            opacity: 1;
        }

        .hero-banner.is-revealed .hero-slide.is-active {
            opacity: 1;
            transform: scale(1);
        }

        .hero-inner {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 100%;
            min-height: 420px;
            margin: 0 auto;
            padding: 64px 24px 58px;
        }

        .hero-content-wrap {
            max-width: 460px;
            padding: 0;
        }

        .hero-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border-radius: 999px;
            background: rgba(255, 193, 59, 0.16);
            color: #d69314;
            font-size: 0.74rem;
            font-weight: 800;
            margin-bottom: 14px;
            letter-spacing: 0.02em;
        }

        .hero-title {
            font-size: clamp(1.95rem, 3.1vw, 3.1rem);
            line-height: 1.08;
            font-weight: 800;
            margin-bottom: 12px;
            color: #18243f;
        }

        .hero-title .accent {
            color: #2f60ef;
        }

        .hero-copy {
            max-width: 380px;
            color: #5f6d8f;
            line-height: 1.6;
            margin-bottom: 20px;
            font-size: 0.94rem;
        }

        .hero-arrow {
            position: absolute;
            top: 50%;
            z-index: 4;
            width: 40px;
            height: 40px;
            margin-top: -20px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid rgba(127, 144, 182, 0.16);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #5b6b93;
            box-shadow: 0 10px 24px rgba(17, 30, 67, 0.08);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .hero-arrow:hover {
            background: #fff;
            box-shadow: 0 14px 30px rgba(17, 30, 67, 0.14);
        }

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

        .hero-dots {
            position: absolute;
            left: 50%;
            bottom: 14px;
            display: flex;
            gap: 8px;
            transform: translateX(-50%);
            z-index: 4;
        }

        .hero-dots span {
            width: 18px;
            height: 5px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.42);
            transition: width 0.25s ease, background 0.25s ease;
            cursor: pointer;
        }

        .hero-dots .active {
            background: #4f80ff;
            width: 34px;
        }

        @media (max-width: 768px) {
            .hero-banner {
                min-height: 360px;
            }
            .hero-inner {
                min-height: 360px;
                padding: 64px 16px 50px;
            }
            .hero-arrow {
                width: 34px;
                height: 34px;
                margin-top: -17px;
            }
            .hero-arrow.left { left: 8px; }
            .hero-arrow.right { right: 8px; }
        }

        @media (max-width: 520px) {
            .hero-banner {
                min-height: 320px;
            }
            .hero-inner {
                min-height: 320px;
                padding: 64px 12px 44px;
            }
            .hero-title {
                font-size: 1.5rem;
            }
            .hero-copy {
                font-size: 0.85rem;
            }
            .hero-arrow {
                width: 30px;
                height: 30px;
                margin-top: -15px;
            }
        }

        /* ========== GRILLES ========== */
        .menu-grid,
        .course-grid,
        .rdc-grid,
        .benefit-grid,
        .stats-strip {
            display: grid;
            gap: 14px;
            width: 100%;
            min-width: 0;
        }

        .menu-grid {
            grid-template-columns: repeat(8, 1fr);
        }

        .course-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        .rdc-grid {
            grid-template-columns: repeat(6, 1fr);
        }

        .benefit-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        .stats-strip {
            grid-template-columns: repeat(5, 1fr);
        }

        /* ========== TUILES MENU ========== */
        .menu-tile {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 18px 10px 16px;
            text-align: center;
            text-decoration: none;
            color: #18243f;
            background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
            border: 1px solid rgba(127, 144, 182, 0.08);
            border-radius: 10px;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            min-width: 0;
        }

        .menu-tile:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(17, 30, 67, 0.06);
            border-color: rgba(47, 96, 239, 0.2);
            color: #18243f;
        }

        .menu-icon {
            width: 46px;
            height: 46px;
            margin: 0 auto 10px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f4f8ff;
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .menu-tile strong {
            display: block;
            font-size: 0.84rem;
            line-height: 1.35;
            font-weight: 700;
            word-break: break-word;
        }

        @media (max-width: 768px) {
            .menu-tile {
                padding: 14px 8px 12px;
            }
            .menu-icon {
                width: 38px;
                height: 38px;
                font-size: 1.1rem;
            }
            .menu-tile strong {
                font-size: 0.78rem;
            }
        }

        @media (max-width: 520px) {
            .menu-tile {
                padding: 12px 6px 10px;
            }
            .menu-icon {
                width: 34px;
                height: 34px;
                font-size: 1rem;
            }
            .menu-tile strong {
                font-size: 0.7rem;
            }
        }

        /* ========== SPLIT LAYOUT ========== */
        :root {
            --feature-card-height: 290px;
        }
        .split-layout {
            display: grid;
            grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.9fr) minmax(0, 0.96fr);
            gap: 22px;
            width: 100%;
            min-width: 0;
            align-items: stretch;
        }

        .school-spotlight {
            position: relative;
            overflow: hidden;
            min-height: var(--feature-card-height);
            height: var(--feature-card-height);
            max-height: var(--feature-card-height);
            padding: 22px 28px 18px;
            color: #fff;
            border-radius: 10px;
            background: linear-gradient(135deg, #6654ef 0%, #4a79ff 100%);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .school-badge {
            display: inline-flex;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16);
            font-size: 0.7rem;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .school-spotlight h2 {
            max-width: 56%;
            font-size: 1.46rem;
            line-height: 1.06;
            font-weight: 800;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-wrap: balance;
            min-height: calc(1.06em * 2);
        }

        .school-spotlight p {
            max-width: 52%;
            color: rgba(255, 255, 255, 0.86);
            margin-bottom: 12px;
            font-size: 0.84rem;
            line-height: 1.32;
            min-height: calc(1.32em * 3);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-wrap: pretty;
        }

        .spotlight-location {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 10px;
            color: rgba(255, 255, 255, 0.88);
            font-size: 0.76rem;
            font-weight: 700;
            min-height: 1.2rem;
        }

        .spotlight-location:empty {
            display: none;
        }

        .spotlight-children {
            position: absolute;
            right: -89px;
            bottom: 0;
            width: 100%;
            height: 112%;
            background: url("/static/img/enfant.png") center bottom/contain no-repeat;
            filter: drop-shadow(0 18px 32px rgba(14, 22, 60, 0.24));
            z-index: 1;
            pointer-events: none;
        }

        .school-spotlight > *:not(.spotlight-visual):not(.spotlight-children) {
            position: relative;
            z-index: 2;
        }

        .school-spotlight .public-outline-btn {
            margin-top: 2px;
            margin-bottom: 0;
            padding: 12px 22px;
            font-size: 0.95rem;
        }

        .spotlight-visual {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 68%;
            height: 100%;
            background:
                linear-gradient(90deg, rgba(18, 26, 73, 0.48) 0%, rgba(18, 26, 73, 0.18) 48%, rgba(18, 26, 73, 0) 100%),
                url("/static/img/Tribu%20et%20culture.jpg") left center/cover no-repeat;
            opacity: 0.7;
            z-index: 0;
        }

        @media (max-width: 768px) {
            .school-spotlight {
                padding: 24px 20px 220px;
                min-height: auto;
                max-height: none;
                height: auto;
            }
            .school-spotlight h2,
            .school-spotlight p {
                max-width: 100%;
            }
            .spotlight-visual {
                width: 100%;
                height: 42%;
                top: 0;
                bottom: auto;
                background:
                    linear-gradient(180deg, rgba(18, 26, 73, 0.52) 0%, rgba(18, 26, 73, 0.18) 58%, rgba(18, 26, 73, 0) 100%),
                    url("/static/img/Tribu%20et%20culture.jpg") center/cover no-repeat;
            }
            .spotlight-children {
                right: 50%;
                transform: translateX(50%);
                width: 100%;
                height: 90%;
                bottom: 0;
            }
        }

        /* ========== PANNEAUX ========== */
        .finder-panel,
        .news-panel,
        .course-panel,
        .quiz-panel,
        .rdc-panel,
        .stats-panel,
        .benefit-panel {
            padding: 0;
            background: transparent;
            border: none;
            box-shadow: none;
            width: 100%;
            min-width: 0;
        }

        .finder-panel,
        .news-panel {
            height: 100%;
        }

        .finder-panel-inner,
        .news-panel-inner,
        .course-panel-inner,
        .quiz-panel-inner,
        .rdc-panel-inner {
            border-top: 1px solid rgba(127, 144, 182, 0.12);
            padding: 18px 18px 16px;
            width: 100%;
            min-height: var(--feature-card-height);
            max-height: var(--feature-card-height);
            height: var(--feature-card-height);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border-radius: 10px;
            background: #fff;
            border: 1px solid rgba(127, 144, 182, 0.14);
            box-shadow: 0 18px 40px rgba(12, 25, 56, 0.07);
        }

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

        .section-head h2 {
            font-size: 1.32rem;
            font-weight: 800;
            margin-bottom: 0;
        }

        .section-head a {
            color: #2f60ef;
            font-weight: 700;
            text-decoration: none;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .section-head a:hover {
            text-decoration: underline;
        }

        /* ========== NEWS ========== */
        .news-item {
            display: grid;
            grid-template-columns: 108px 1fr;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid rgba(127, 144, 182, 0.12);
            text-decoration: none;
            color: inherit;
            transition: transform 0.2s ease;
        }

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

        .news-item:hover {
            transform: translateY(-2px);
        }

        .news-thumb {
            height: 70px;
            border-radius: 8px;
            background: #eef4ff center/cover no-repeat;
            flex-shrink: 0;
        }

        .news-meta {
            display: inline-flex;
            padding: 5px 9px;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .news-meta.event { color: #7653f3; background: rgba(118, 83, 243, 0.1); }
        .news-meta.annonce { color: #2f60ef; background: rgba(47, 96, 239, 0.1); }
        .news-meta.new { color: #15956a; background: rgba(21, 149, 106, 0.1); }

        .news-item h3 {
            font-size: 0.96rem;
            font-weight: 700;
            margin-bottom: 6px;
            word-break: break-word;
        }

        .news-item p {
            color: #647194;
            font-size: 0.88rem;
            margin: 0;
            word-break: break-word;
        }

        .school-finder {
            margin: 0;
            padding: 16px;
            border: 1px solid rgba(127, 144, 182, 0.16);
            border-radius: 12px;
            background: linear-gradient(180deg, rgba(243, 247, 255, 0.98), rgba(255, 255, 255, 1));
            display: flex;
            flex-direction: column;
            flex: 1;
            min-height: 0;
        }

        .finder-panel .section-head {
            margin-bottom: 14px;
        }

        .finder-panel .section-head p {
            margin: 4px 0 0;
            color: #647194;
            font-size: 0.88rem;
            max-width: 26rem;
        }

        .school-finder-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .school-finder-top h3 {
            margin: 0;
            font-size: 0.98rem;
            font-weight: 800;
            color: #10204d;
        }

        .school-finder-top p {
            margin: 4px 0 0;
            color: #647194;
            font-size: 0.84rem;
        }

        .school-finder-count {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 10px;
            border-radius: 999px;
            background: rgba(47, 96, 239, 0.1);
            color: #2f60ef;
            font-size: 0.76rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .school-finder-form {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
            gap: 10px;
            align-items: end;
        }

        .school-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }

        .school-field label {
            font-size: 0.77rem;
            font-weight: 800;
            color: #3d4b70;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .school-input,
        .school-select {
            width: 100%;
            min-width: 0;
            height: 44px;
            padding: 0 14px;
            border: 1px solid rgba(127, 144, 182, 0.2);
            border-radius: 10px;
            background: #fff;
            color: #14234f;
            font-size: 0.92rem;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .school-input:focus,
        .school-select:focus {
            border-color: rgba(47, 96, 239, 0.48);
            box-shadow: 0 0 0 4px rgba(47, 96, 239, 0.1);
        }

        .school-finder-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            grid-column: 1 / -1;
        }

        .school-search-btn,
        .school-reset-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 44px;
            padding: 0 16px;
            border-radius: 10px;
            font-size: 0.88rem;
            font-weight: 800;
            text-decoration: none;
            white-space: nowrap;
        }

        .school-search-btn {
            border: none;
            background: linear-gradient(135deg, #2f60ef, #4f80ff);
            color: #fff;
            box-shadow: 0 12px 24px rgba(47, 96, 239, 0.18);
            width: 100%;
        }

        .school-reset-link {
            background: rgba(16, 32, 77, 0.06);
            color: #22335f;
        }

        .school-results {
            margin-top: 14px;
            display: grid;
            gap: 10px;
        }

        .school-finder-scroll,
        .news-list-scroll {
            min-height: 0;
            overflow-y: auto;
            padding-right: 6px;
            scrollbar-width: thin;
            scrollbar-color: rgba(47, 96, 239, 0.32) transparent;
        }

        .school-finder-scroll {
            margin-top: 14px;
            flex: 1;
        }

        .news-list-scroll {
            flex: 1;
        }

        .school-finder-scroll::-webkit-scrollbar,
        .news-list-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .school-finder-scroll::-webkit-scrollbar-thumb,
        .news-list-scroll::-webkit-scrollbar-thumb {
            background: rgba(47, 96, 239, 0.28);
            border-radius: 999px;
        }

        .school-result-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(127, 144, 182, 0.14);
            background: #fff;
        }

        .school-result-main {
            min-width: 0;
        }

        .school-result-main h4 {
            margin: 0 0 5px;
            font-size: 0.95rem;
            font-weight: 800;
            color: #11214d;
        }

        .school-result-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            color: #677594;
            font-size: 0.82rem;
        }

        .school-status {
            display: inline-flex;
            align-items: center;
            padding: 4px 8px;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 800;
        }

        .school-status.active {
            background: rgba(21, 149, 106, 0.1);
            color: #15956a;
        }

        .school-status.pending {
            background: rgba(243, 156, 18, 0.12);
            color: #b87409;
        }

        .school-status.suspended {
            background: rgba(220, 53, 69, 0.1);
            color: #b42333;
        }

        .school-result-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #2f60ef;
            font-size: 0.84rem;
            font-weight: 800;
            text-decoration: none;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .school-result-empty {
            margin-top: 14px;
            padding: 14px;
            border-radius: 12px;
            background: rgba(16, 32, 77, 0.04);
            color: #647194;
            font-size: 0.86rem;
            text-align: center;
        }

        @media (max-width: 768px) {
            .school-finder-form {
                grid-template-columns: 1fr;
            }

            .school-finder-actions {
                width: 100%;
            }

            .school-search-btn,
            .school-reset-link {
                width: 100%;
            }

            .school-result-card {
                flex-direction: column;
                align-items: flex-start;
            }

            .news-item {
                grid-template-columns: 1fr;
            }
            .news-thumb {
                height: 120px;
            }

            .finder-panel-inner,
            .news-panel-inner {
                min-height: auto;
                max-height: none;
                height: auto;
            }

            .school-finder-scroll,
            .news-list-scroll {
                overflow: visible;
                padding-right: 0;
            }
        }

        @media (max-width: 1180px) {
            .split-layout {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        /* ========== LEARNING LAYOUT ========== */
        .learning-layout {
            display: grid;
            grid-template-columns: 1.34fr 0.78fr;
            gap: 22px;
            width: 100%;
            min-width: 0;
        }

        /* ========== COURSE CARD ========== */
        .course-card {
            background: #fff;
            border: 1px solid rgba(127, 144, 182, 0.08);
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            min-width: 0;
        }

        .course-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(17, 30, 67, 0.06);
        }

        .course-media {
            height: 128px;
            background: center/cover no-repeat;
        }

        .course-body {
            padding: 12px;
        }

        .course-tag {
            display: inline-flex;
            padding: 4px 8px;
            border-radius: 999px;
            font-size: 0.7rem;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .tag-free { color: #169a68; background: rgba(22, 154, 104, 0.1); }
        .tag-video { color: #7055f3; background: rgba(112, 85, 243, 0.1); }
        .tag-premium { color: #e49417; background: rgba(228, 148, 23, 0.12); }

        .course-card h3 {
            font-size: 0.92rem;
            font-weight: 700;
            margin-bottom: 8px;
            word-break: break-word;
        }

        .course-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            color: #7581a2;
            font-size: 0.82rem;
            flex-wrap: wrap;
        }

        @media (max-width: 520px) {
            .course-media {
                height: 100px;
            }
        }

        /* ========== QUIZ PANEL ========== */
        .quiz-panel {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .quiz-icon {
            width: 74px;
            height: 74px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fff5d5, #ffefae);
            color: #f0b000;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            margin-bottom: 14px;
            flex-shrink: 0;
        }

        .quiz-panel h2 {
            font-size: 1.36rem;
            font-weight: 800;
            margin-bottom: 10px;
            word-break: break-word;
        }

        .quiz-panel p {
            color: #5f6d8f;
            margin-bottom: 22px;
        }

        /* ========== RDC CARD ========== */
        .rdc-card {
            text-decoration: none;
            color: inherit;
            text-align: center;
            transition: transform 0.2s ease;
            min-width: 0;
        }

        .rdc-card:hover {
            transform: translateY(-2px);
        }

        .rdc-image {
            height: 104px;
            border-radius: 8px;
            background: #eef4ff center/cover no-repeat;
            margin-bottom: 10px;
        }

        .rdc-card strong {
            font-size: 0.95rem;
            word-break: break-word;
        }

        @media (max-width: 520px) {
            .rdc-image {
                height: 80px;
            }
        }

        /* ========== STAT BOX ========== */
        .stat-box {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 16px;
            border: 1px solid rgba(127, 144, 182, 0.08);
            border-radius: 8px;
            background: #fff;
            min-width: 0;
        }

        .stat-box i {
            font-size: 1.7rem;
            flex-shrink: 0;
        }

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

        .stat-box span {
            color: #6c7998;
            font-size: 0.9rem;
            display: block;
        }

        @media (max-width: 520px) {
            .stat-box {
                padding: 12px;
            }
            .stat-box i {
                font-size: 1.4rem;
            }
            .stat-box strong {
                font-size: 1.4rem;
            }
        }

        /* ========== BENEFIT CARD ========== */
        .benefit-card {
            position: relative;
            overflow: hidden;
            min-height: 202px;
            padding: 18px;
            border-radius: 8px;
            min-width: 0;
        }

        .benefit-card h3 {
            font-size: 1.08rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .benefit-card p {
            max-width: 100%;
            color: #5f6d8f;
            margin-bottom: 14px;
            font-size: 0.9rem;
        }

        .benefit-card .visual {
            position: absolute;
            right: 16px;
            bottom: 14px;
            width: 78px;
            height: 78px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.58);
            font-size: 1.9rem;
        }

        .benefit-purple { background: linear-gradient(135deg, #f3efff, #eef4ff); }
        .benefit-green { background: linear-gradient(135deg, #ecfff5, #f4fffb); }
        .benefit-gold { background: linear-gradient(135deg, #fff8e8, #fffdf5); }
        .benefit-blue { background: linear-gradient(135deg, #edf4ff, #f7fbff); }

        @media (max-width: 520px) {
            .benefit-card {
                min-height: 180px;
                padding: 16px;
            }
            .benefit-card .visual {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
                right: 10px;
                bottom: 10px;
            }
        }

        /* ========== CTA ========== */
        .public-footer-shell {
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
        }

        .public-bottom-cta {
            display: block;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            padding: 0 !important;
            border: 0 !important;
            box-shadow: none !important;
            background: linear-gradient(135deg, #0f2d75 0%, #112d73 45%, #09173f 100%);
            color: #fff;
            border-radius: 0;
            margin: 0;
        }

        .cta-grid {
            display: grid;
            grid-template-columns: 280px 1.15fr 0.9fr;
            gap: 24px;
            padding: 26px 24px;
            max-width: 1320px;
            margin: 0 auto;
            width: 100%;
            min-width: 0;
        }

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

        .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.2);
        }

        .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: 12px;
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: background 0.2s ease;
        }

        .cta-store-pill:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        @media (max-width: 992px) {
            .cta-grid {
                grid-template-columns: 1fr;
                padding: 26px 16px;
            }
            .cta-phone-stack {
                display: none;
            }
        }

        @media (max-width: 520px) {
            .cta-grid {
                padding: 20px 12px;
            }
        }

        /* ========== FOOTER ========== */
        .public-footer {
            display: block;
            width: 100%;
            max-width: 100%;
            margin: 0;
            padding: 22px 24px 18px;
            border-radius: 0;
            background: linear-gradient(180deg, rgba(7, 17, 46, 0.92), rgba(6, 13, 35, 0.98));
            color: #eef3ff;
        }

        .public-footer > * {
            width: 100%;
            max-width: 1320px;
            margin-left: auto;
            margin-right: auto;
        }

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

        .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;
            transition: color 0.2s ease;
            font-size: 0.9rem;
        }

        .public-footer a:hover {
            color: #fff;
        }

        .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;
            transition: background 0.2s ease;
        }

        .public-social-row a:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .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;
        }

        @media (max-width: 768px) {
            .public-footer {
                padding: 22px 16px 18px;
            }
        }

        @media (max-width: 520px) {
            .public-footer {
                padding: 20px 12px 16px;
            }
            .public-footer a {
                font-size: 0.85rem;
            }
        }

        /* ========== RESPONSIVE BREAKPOINTS ========== */
        @media (min-width: 1200px) {
            .public-navbar .dropdown:hover .dropdown-menu {
                display: block;
                margin-top: 0;
            }
        }

        @media (max-width: 1200px) {
            .menu-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            .course-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .rdc-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .benefit-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .stats-strip {
                grid-template-columns: repeat(3, 1fr);
            }
            .public-footer-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 992px) {
            .split-layout,
            .learning-layout {
                grid-template-columns: 1fr;
            }
            .public-footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .menu-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            .rdc-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .navbar-actions {
                gap: 6px;
            }
            .btn-nav-connexion,
            .btn-nav-inscription,
            .btn-nav-langue {
                padding: 6px 12px;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 768px) {
            .menu-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
            }
            .course-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .rdc-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            .stats-strip {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            .benefit-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .public-footer-grid {
                grid-template-columns: 1fr 1fr;
            }
            .section-head {
                flex-direction: column;
                align-items: flex-start;
            }
            .navbar-actions {
                gap: 4px;
            }
            
            .navbar-collapse {
                background: rgba(255, 255, 255, 0.98);
                border-radius: 12px;
                padding: 16px;
                margin-top: 8px;
                box-shadow: 0 10px 30px rgba(17, 30, 67, 0.1);
                border: 1px solid rgba(127, 144, 182, 0.12);
                max-height: 80vh;
                overflow-y: auto;
            }
            
            .navbar-nav-center {
                flex-direction: column;
                align-items: flex-start;
                gap: 2px;
            }
            
            .navbar-nav-center .nav-link {
                width: 100%;
                padding: 10px 14px !important;
            }
            
            .navbar-actions {
                flex-direction: column;
                width: 100%;
                gap: 6px;
                margin-top: 8px;
                padding-top: 8px;
                border-top: 1px solid rgba(127, 144, 182, 0.12);
            }
            
            .navbar-actions .btn-nav-langue,
            .navbar-actions .btn-nav-connexion,
            .navbar-actions .btn-nav-inscription {
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 520px) {
            .menu-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 6px;
            }
            .course-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            .rdc-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            .stats-strip {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            .benefit-grid {
                grid-template-columns: 1fr;
            }
            .public-footer-grid {
                grid-template-columns: 1fr;
            }
            .btn-nav-connexion span,
            .btn-nav-inscription span {
                display: none;
            }
            .btn-nav-connexion,
            .btn-nav-inscription {
                padding: 8px 10px;
            }
        }

/* ========== PUBLIC PAGES UNIFIED LAYOUT ========== */
.public-inner-page,
.public-page-shell > .public-breadcrumbs,
.public-page-shell > .public-detail-layout,
.public-page-shell > .public-hub-layout,
.public-page-shell > .school-profile-grid,
.public-page-shell > .public-showcase-layout,
.public-page-shell > .public-section-card,
.public-page-shell > .public-stats-band {
    width: calc(100% - 48px);
    max-width: none;
    margin-left: 24px;
    margin-right: 24px;
}

.public-inner-page,
.public-page-shell > .public-breadcrumbs:first-of-type,
.public-page-shell > .public-section-card:first-of-type {
    margin-top: 86px;
}

.public-page-shell > .public-hub-layout,
.public-page-shell > .public-detail-layout,
.public-page-shell > .school-profile-grid,
.public-page-shell > .public-showcase-layout {
    margin-top: 18px;
}

.public-inner-page {
    display: grid;
    gap: 18px;
    padding-left: 0;
    padding-right: 0;
}

.public-page-shell .public-section-card {
    border-radius: 12px;
    border: 1px solid rgba(127, 144, 182, 0.11);
    box-shadow: 0 18px 42px rgba(17, 30, 67, 0.06);
}

.public-page-shell > .public-bottom-cta,
.public-footer-shell {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
}

.public-page-shell > .public-bottom-cta {
    border-radius: 0;
    box-shadow: none;
}

.public-service-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 14px;
    background: #132765;
    color: #fff;
    display: grid;
    align-items: center;
    isolation: isolate;
}

.public-service-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.public-service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 27, 82, 0.84), rgba(13, 27, 82, 0.52) 46%, rgba(47, 96, 239, 0.16)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%);
    z-index: -1;
}

.public-service-content {
    max-width: 720px;
    padding: 46px;
}

.public-service-content h1 {
    font-size: clamp(2rem, 4vw, 4.1rem);
    line-height: 1.02;
    font-weight: 900;
    margin: 0 0 16px;
}

.public-service-content p {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.72;
    margin-bottom: 22px;
}

.public-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-service-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(127, 144, 182, 0.1);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 16px 36px rgba(17, 30, 67, 0.06);
}

.public-service-card h2 {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 14px 0 10px;
}

.public-service-card p {
    color: #617093;
    line-height: 1.7;
    margin: 0;
}

.public-service-panel {
    padding: 24px;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .public-service-grid {
        grid-template-columns: 1fr;
    }

    .public-service-content {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .public-inner-page,
    .public-page-shell > .public-breadcrumbs,
    .public-page-shell > .public-detail-layout,
    .public-page-shell > .public-hub-layout,
    .public-page-shell > .school-profile-grid,
    .public-page-shell > .public-showcase-layout,
    .public-page-shell > .public-section-card,
    .public-page-shell > .public-stats-band {
        width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
    }

    .public-inner-page,
    .public-page-shell > .public-breadcrumbs:first-of-type,
    .public-page-shell > .public-section-card:first-of-type {
        margin-top: 72px;
    }

    .public-service-hero {
        min-height: 320px;
    }
}

/* ========== PUBLIC EDITORIAL PAGES ========== */
.public-topic-hero,
.public-learning-start-hero,
.public-community-hero,
.public-quiz-hero {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #0d1b52, #2f60ef);
    display: grid;
    align-items: center;
    isolation: isolate;
}

.public-page-heading {
    border: 1px solid rgba(127, 144, 182, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94)),
        radial-gradient(circle at 86% 12%, rgba(47, 96, 239, 0.12), transparent 30%);
    border-radius: 0;
    padding: clamp(22px, 3.4vw, 38px);
    box-shadow: 0 18px 50px rgba(17, 30, 67, 0.07);
}

.public-page-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.public-page-heading h1 {
    max-width: 850px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.85rem, 3vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.public-page-heading h1 span {
    color: #2f60ef;
}

.public-page-heading p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #607092;
    font-size: 1rem;
    line-height: 1.7;
}

.public-page-heading .hero-pill {
    margin-bottom: 14px;
    color: #2f60ef;
    background: rgba(47, 96, 239, 0.1);
}

@media (max-width: 768px) {
    .public-page-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-page-heading {
        padding: 22px;
    }
}

.public-topic-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.public-topic-hero::after,
.public-learning-start-hero::after,
.public-community-hero::after,
.public-quiz-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 23, 64, 0.86), rgba(10, 23, 64, 0.54) 48%, rgba(47, 96, 239, 0.22)),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 30%);
    z-index: -1;
}

.public-topic-content,
.public-learning-start-hero > div,
.public-community-hero > div,
.public-quiz-hero > div:first-child {
    max-width: 760px;
    padding: 46px;
}

.public-topic-content h1,
.public-learning-start-hero h1,
.public-community-hero h1,
.public-quiz-hero h1 {
    font-size: clamp(2rem, 4.2vw, 4.4rem);
    line-height: 1.02;
    font-weight: 900;
    margin: 0 0 16px;
}

.public-topic-content h1 span,
.public-learning-start-hero h1 span,
.public-community-hero h1 span,
.public-quiz-hero h1 span {
    color: #91b6ff;
}

.public-topic-content p,
.public-learning-start-hero p,
.public-community-hero p,
.public-quiz-hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.72;
    margin-bottom: 22px;
}

.public-learning-start-hero {
    background:
        linear-gradient(90deg, rgba(10, 23, 64, 0.84), rgba(47, 96, 239, 0.4)),
        url("/static/img/image%20Banniere.png") center/cover;
}

.public-community-hero {
    background:
        linear-gradient(90deg, rgba(10, 23, 64, 0.84), rgba(47, 96, 239, 0.4)),
        url("/static/img/Tribu%20et%20culture.jpg") center/cover;
}

.public-formation-hero {
    min-height: 410px;
}

.public-topic-card-grid,
.public-quiz-grid,
.public-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-topic-card,
.public-quiz-card,
.public-news-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(127, 144, 182, 0.1);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(17, 30, 67, 0.06);
}

.public-topic-card h2,
.public-quiz-card h2,
.public-news-card h2 {
    font-size: 1.14rem;
    font-weight: 900;
    color: #142247;
    margin: 14px 0 10px;
}

.public-topic-card p,
.public-quiz-card p,
.public-news-card p {
    color: #617093;
    line-height: 1.7;
    margin: 0;
}

.public-topic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
}

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

.public-topic-timeline {
    display: grid;
    gap: 16px;
}

.public-topic-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(127, 144, 182, 0.1);
}

.public-topic-row > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(47, 96, 239, 0.1);
    color: #2f60ef;
    font-weight: 900;
}

.public-topic-row h3 {
    font-size: 1.02rem;
    font-weight: 900;
    margin: 0 0 6px;
}

.public-topic-row p {
    color: #617093;
    line-height: 1.7;
    margin: 0;
}

.public-topic-link {
    display: block;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(127, 144, 182, 0.1);
    text-decoration: none;
    color: #142247;
}

.public-topic-link span,
.public-quiz-card span,
.public-news-card span {
    display: block;
    color: #2f60ef;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.public-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(127, 144, 182, 0.1);
    box-shadow: 0 14px 28px rgba(17, 30, 67, 0.05);
}

.public-filter-strip span {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #f2f6ff;
    color: #263350;
    font-weight: 800;
    font-size: 0.88rem;
}

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

.public-quiz-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 46px;
}

.public-quiz-hero .quiz-icon {
    margin: 0;
    width: 150px;
    height: 150px;
    font-size: 4.5rem;
}

.public-news-card small {
    display: block;
    margin-top: 18px;
    color: #8b96b1;
    font-weight: 800;
}

@media (max-width: 992px) {
    .public-topic-card-grid,
    .public-quiz-grid,
    .public-news-grid,
    .public-wide-grid,
    .public-topic-layout {
        grid-template-columns: 1fr;
    }

    .public-quiz-hero {
        grid-template-columns: 1fr;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .public-topic-content,
    .public-learning-start-hero > div,
    .public-community-hero > div,
    .public-quiz-hero > div:first-child {
        padding: 30px 22px;
    }

    .public-topic-hero,
    .public-learning-start-hero,
    .public-community-hero,
    .public-quiz-hero {
        min-height: 330px;
    }
}

/* ========== PUBLIC SCHOOL PROFILE ========== */
body.public-page-body { font-family: Inter, "Segoe UI", Arial, sans-serif; }
        .school-profile-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
            gap: 24px;
            width: 100%;
        }
        .school-profile-summary {
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)),
                radial-gradient(circle at 85% 18%, rgba(47, 96, 239, 0.12), transparent 30%);
            color: #18243f;
            border: 1px solid rgba(127, 144, 182, 0.14);
            border-radius: 0;
            padding: 28px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 18px 50px rgba(17, 30, 67, 0.07);
        }
        .school-profile-summary::after {
            content: "";
            position: absolute;
            inset: auto -10% -25% auto;
            width: 260px;
            height: 260px;
            background: radial-gradient(circle, rgba(47, 96, 239, 0.12), transparent 70%);
        }
        .school-profile-summary > * {
            position: relative;
            z-index: 1;
        }
        .school-hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
        }
        .school-hero-meta span,
        .school-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(47, 96, 239, 0.1);
            color: #2f60ef;
            font-size: 0.84rem;
            font-weight: 700;
        }
        .school-profile-list {
            display: grid;
            gap: 14px;
        }
        .school-profile-item {
            padding: 16px 18px;
            border-radius: 14px;
            border: 1px solid rgba(127, 144, 182, 0.16);
            background: #fff;
        }
        .school-profile-item strong {
            display: block;
            margin-bottom: 6px;
            color: #13224e;
        }
        .school-profile-item span {
            color: #667594;
        }
        @media (max-width: 900px) {
            .school-profile-grid {
                grid-template-columns: 1fr;
            }
        }

/* ========== FULL PUBLIC SCHOOL PROFILE ========== */
.school-profile-page {
    background: #f5f8ff;
}

.school-profile-shell {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #f5f8ff 0%, #fff 52%, #f5f8ff 100%);
}

.school-cover {
    min-height: clamp(420px, 56vw, 620px);
    width: 100%;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(18px, 3vw, 40px);
    position: relative;
    isolation: isolate;
}

.school-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(47, 96, 239, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(4, 12, 32, 0.15), rgba(4, 12, 32, 0.58));
    z-index: -1;
}

.school-cover-top,
.school-cover-content {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.school-cover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.school-back-link,
.school-cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.school-cover-content {
    padding: 80px 0 28px;
}

.school-cover-content h1 {
    max-width: 860px;
    margin: 18px 0 18px;
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: 0;
}

.school-cover-content p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.7;
}

.school-cover-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.school-profile-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.school-profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -70px;
    position: relative;
    z-index: 3;
}

.school-profile-stat-grid article,
.school-profile-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(127, 144, 182, 0.14);
    box-shadow: 0 22px 60px rgba(17, 30, 67, 0.09);
}

.school-profile-stat-grid article {
    padding: 22px;
    min-height: 118px;
}

.school-profile-stat-grid span {
    display: block;
    color: #64708c;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.school-profile-stat-grid strong {
    display: block;
    margin-top: 10px;
    color: #10204b;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1;
    font-weight: 950;
}

.school-profile-layout,
.school-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    margin-top: 18px;
}

.school-profile-panel {
    padding: clamp(22px, 2.5vw, 34px);
}

.school-profile-section-head {
    margin-bottom: 20px;
}

.school-profile-section-head > span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(47, 96, 239, 0.1);
    color: #2f60ef;
    font-size: 0.78rem;
    font-weight: 900;
}

.school-profile-section-head h2 {
    margin: 12px 0 0;
    color: #0f172a;
    font-weight: 950;
    font-size: clamp(1.45rem, 2.3vw, 2.4rem);
    line-height: 1.05;
}

.school-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.school-info-list > div,
.school-mini-list > div,
.school-review-card,
.school-review-empty {
    border: 1px solid rgba(127, 144, 182, 0.14);
    background: #f8fbff;
    padding: 16px;
}

.school-info-list i {
    color: #2f60ef;
    font-size: 1.1rem;
}

.school-info-list strong,
.school-mini-list strong {
    display: block;
    color: #10204b;
    margin: 8px 0 4px;
    font-weight: 900;
}

.school-info-list span,
.school-mini-list span {
    color: #64708c;
    line-height: 1.5;
}

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

.school-chip-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.school-chip-layout h3 {
    color: #10204b;
    font-weight: 950;
    margin-bottom: 12px;
}

.school-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.school-chip-list span,
.school-chip-list em {
    display: inline-flex;
    padding: 10px 13px;
    background: #eef4ff;
    color: #244173;
    border: 1px solid rgba(47, 96, 239, 0.12);
    font-style: normal;
    font-weight: 800;
}

.school-gallery {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-rows: 220px;
    gap: 12px;
}

.school-gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: #e9eef9;
}

.school-gallery figure:first-child {
    grid-row: span 2;
}

.school-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.school-gallery figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    color: #fff;
    font-weight: 800;
    background: rgba(10, 23, 64, 0.5);
    backdrop-filter: blur(12px);
}

.school-review-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid rgba(127, 144, 182, 0.14);
    margin-bottom: 16px;
}

.school-review-summary > strong {
    font-size: 3.6rem;
    line-height: 1;
    font-weight: 950;
    color: #10204b;
}

.school-review-summary p {
    margin: 4px 0 0;
    color: #64708c;
}

.school-stars {
    position: relative;
    display: inline-block;
    color: #d5dbea;
    letter-spacing: 2px;
    font-size: 1.2rem;
    line-height: 1;
}

.school-stars span {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--rating) / 5 * 100%);
    color: #ffb703;
    overflow: hidden;
    white-space: nowrap;
}

.school-stars.small {
    font-size: 0.92rem;
}

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

.school-review-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.school-review-card p,
.school-review-empty p,
.school-review-note {
    margin: 0;
    color: #64708c;
    line-height: 1.6;
}

.school-review-empty {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.school-review-empty i {
    color: #ffb703;
    font-size: 1.25rem;
}

.school-rating-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.school-rating-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.school-rating-picker label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    color: #6c7893;
    background: #f8fbff;
    border: 1px solid rgba(127, 144, 182, 0.18);
    cursor: pointer;
    font-weight: 900;
}

.school-rating-picker input:checked + label {
    color: #fff;
    border-color: #2f60ef;
    background: linear-gradient(135deg, #2f60ef, #4f80ff);
}

.school-review-form .errorlist {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #d62828;
    font-size: 0.86rem;
}

.school-review-note {
    margin-top: 12px;
    font-size: 0.86rem;
}

@media (max-width: 960px) {
    .school-profile-stat-grid,
    .school-profile-layout,
    .school-review-layout,
    .school-chip-layout {
        grid-template-columns: 1fr;
    }

    .school-profile-stat-grid {
        margin-top: -42px;
    }

    .school-info-list,
    .school-gallery {
        grid-template-columns: 1fr;
    }

    .school-gallery {
        grid-auto-rows: 220px;
    }

    .school-gallery figure:first-child {
        grid-row: span 1;
    }
}

@media (max-width: 560px) {
    .school-cover {
        min-height: 520px;
    }

    .school-cover-top,
    .school-cover-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .school-profile-main {
        width: min(100% - 20px, 1180px);
    }
}

/* ========== FLOATING TOAST NOTIFICATIONS ========== */
.app-toast-stack {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 2500;
    display: grid;
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.app-toast {
    --toast-accent: #2f60ef;
    --toast-bg: rgba(255, 255, 255, 0.96);
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 14px;
    color: #18243f;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--toast-bg)),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--toast-accent) 18%, transparent), transparent 36%);
    border: 1px solid rgba(127, 144, 182, 0.16);
    border-left: 5px solid var(--toast-accent);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(17, 30, 67, 0.18);
    backdrop-filter: blur(18px);
    transform: translateX(18px);
    opacity: 0;
    animation: toast-in 0.32s ease forwards;
    pointer-events: auto;
}

.app-toast.is-hiding {
    animation: toast-out 0.28s ease forwards;
}

.app-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--toast-accent), color-mix(in srgb, var(--toast-accent) 68%, #ffffff));
    font-size: 1.05rem;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--toast-accent) 28%, transparent);
}

.app-toast-message {
    margin: 0;
    color: #263350;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.45;
}

.app-toast-success {
    --toast-accent: #10b981;
    --toast-bg: rgba(236, 253, 245, 0.94);
}

.app-toast-error,
.app-toast-danger {
    --toast-accent: #ef4444;
    --toast-bg: rgba(254, 242, 242, 0.95);
}

.app-toast-warning {
    --toast-accent: #f59e0b;
    --toast-bg: rgba(255, 251, 235, 0.95);
}

.app-toast-info {
    --toast-accent: #2f60ef;
    --toast-bg: rgba(239, 246, 255, 0.95);
}

.app-toast:nth-child(4n + 2):not(.app-toast-success):not(.app-toast-error):not(.app-toast-danger):not(.app-toast-warning) {
    --toast-accent: #7c3aed;
}

.app-toast:nth-child(4n + 3):not(.app-toast-success):not(.app-toast-error):not(.app-toast-danger):not(.app-toast-warning) {
    --toast-accent: #0891b2;
}

@keyframes toast-in {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateX(24px);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .app-toast-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* ========== PUBLIC REGISTRATION ========== */
.account-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-choice-card,
.subscriber-registration-card,
.school-registration-panel,
.school-registration-submit {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(127, 144, 182, 0.14);
    box-shadow: 0 18px 50px rgba(17, 30, 67, 0.07);
}

.account-choice-card {
    min-height: 320px;
    padding: 28px;
    color: #18243f;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.account-choice-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 96, 239, 0.34);
    box-shadow: 0 26px 70px rgba(17, 30, 67, 0.12);
}

.account-choice-card.is-primary {
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #17337f 0%, #2f60ef 100%);
}

.account-choice-status {
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(47, 96, 239, 0.1);
    color: #2f60ef;
    font-size: 0.76rem;
    font-weight: 900;
}

.account-choice-card.is-primary .account-choice-status {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.account-choice-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 34px 0 20px;
    color: #fff;
    background: linear-gradient(135deg, #2f60ef, #4f80ff);
    font-size: 1.45rem;
}

.account-choice-card.is-primary .account-choice-icon {
    color: #2f60ef;
    background: #fff;
}

.account-choice-card h2 {
    margin: 0 0 12px;
    font-size: 1.65rem;
    font-weight: 950;
}

.account-choice-card p {
    color: #64708c;
    line-height: 1.65;
}

.account-choice-card.is-primary p {
    color: rgba(255, 255, 255, 0.82);
}

.account-choice-card strong {
    margin-top: auto;
    color: inherit;
}

.school-registration-form {
    display: grid;
    gap: 18px;
}

.subscriber-registration-card {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 2.8vw, 34px);
}

.school-registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
}

.school-registration-panel,
.school-registration-submit {
    padding: clamp(22px, 2.8vw, 34px);
}

.school-registration-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.school-registration-head > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, #2f60ef, #4f80ff);
    font-weight: 950;
}

.school-registration-head h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-weight: 950;
    font-size: 1.45rem;
}

.school-registration-head p,
.school-registration-submit p {
    margin: 0;
    color: #64708c;
    line-height: 1.55;
}

.school-registration-form label {
    color: #263350;
    font-weight: 850;
    margin-bottom: 7px;
}

.school-registration-form .form-control,
.school-registration-form .form-select {
    min-height: 48px;
    border-color: rgba(127, 144, 182, 0.22);
    border-radius: 14px;
    color: #18243f;
    box-shadow: none;
}

.school-registration-form textarea.form-control {
    min-height: auto;
}

.school-registration-form .form-control:focus,
.school-registration-form .form-select:focus {
    border-color: #2f60ef;
    box-shadow: 0 0 0 4px rgba(47, 96, 239, 0.1);
}

.school-registration-form .errorlist,
.public-form-alert .errorlist {
    list-style: none;
    margin: 7px 0 0;
    padding: 0;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 800;
}

.public-form-alert {
    padding: 16px 18px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.school-switch-row {
    padding: 16px;
    background: #f8fbff;
    border: 1px solid rgba(127, 144, 182, 0.14);
    margin-bottom: 16px;
}

.school-switch-row label {
    margin-bottom: 0;
}

.multi-address-fields {
    display: none;
}

.multi-address-fields.is-visible {
    display: block;
}

.school-registration-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.school-registration-submit strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 950;
}

.school-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.school-directory-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(127, 144, 182, 0.14);
    box-shadow: 0 18px 50px rgba(17, 30, 67, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.school-directory-cover {
    min-height: 178px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.school-directory-cover span {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(10, 23, 64, 0.52);
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.school-directory-body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.school-directory-body h2 {
    color: #0f172a;
    font-weight: 950;
    font-size: 1.34rem;
    line-height: 1.12;
    margin-bottom: 10px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.school-directory-body p {
    color: #64708c;
    margin-bottom: 14px;
    line-height: 1.5;
}

.school-directory-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid rgba(127, 144, 182, 0.12);
    border-bottom: 1px solid rgba(127, 144, 182, 0.12);
}

.school-directory-rating strong {
    color: #10204b;
    font-weight: 950;
}

.school-directory-rating small {
    color: #64708c;
}

.school-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.school-directory-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #2f60ef;
    background: rgba(47, 96, 239, 0.09);
    font-size: 0.8rem;
    font-weight: 850;
}

.school-directory-body .public-primary-btn {
    margin-top: auto;
    justify-content: center;
}

@media (max-width: 980px) {
    .account-choice-grid,
    .school-registration-grid,
    .school-directory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .school-registration-submit {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ========== PUBLIC INSTITUTIONS ========== */
.institutions-heading {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.96)),
        radial-gradient(circle at 90% 10%, rgba(47, 96, 239, 0.12), transparent 28%);
}

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

.institution-entry-card,
.institution-panel,
.institution-timeline-panel,
.institution-source-strip,
.institution-stat-grid article,
.institution-profile-head,
.country-history-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(127, 144, 182, 0.14);
    box-shadow: 0 18px 50px rgba(17, 30, 67, 0.07);
}

.institution-entry-card {
    min-height: 280px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: #18243f;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.institution-entry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 96, 239, 0.32);
    box-shadow: 0 24px 64px rgba(17, 30, 67, 0.12);
}

.institution-entry-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #17337f, #2f60ef);
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.institution-entry-card span,
.country-history-body span {
    color: #2f60ef;
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.institution-entry-card h2 {
    margin: 8px 0 10px;
    color: #0f172a;
    font-size: 1.22rem;
    font-weight: 950;
    line-height: 1.14;
}

.institution-entry-card p {
    color: #64708c;
    line-height: 1.55;
}

.institution-entry-card strong {
    margin-top: auto;
    color: #2f60ef;
}

.institution-feature-layout,
.institution-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}

.institution-panel,
.institution-timeline-panel,
.institution-source-strip {
    padding: clamp(22px, 2.6vw, 32px);
}

.institution-panel h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-weight: 950;
}

.institution-mini-timeline,
.country-name-stack,
.institution-clean-list {
    display: grid;
    gap: 12px;
}

.institution-mini-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    color: #18243f;
    text-decoration: none;
    background: #f8fbff;
    border: 1px solid rgba(127, 144, 182, 0.13);
}

.institution-mini-row > span {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: #17337f;
    font-weight: 950;
}

.institution-mini-row strong,
.country-name-stack strong {
    display: block;
    color: #0f172a;
    font-weight: 950;
}

.institution-mini-row small,
.country-name-stack small {
    color: #64708c;
}

.country-name-stack > div {
    padding: 14px 16px;
    background: #f8fbff;
    border-left: 4px solid #2f60ef;
}

.country-name-stack span {
    color: #2f60ef;
    font-size: 0.82rem;
    font-weight: 950;
}

.institution-source-strip {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.institution-source-strip h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-weight: 950;
}

.institution-source-strip p {
    margin: 0;
    color: #64708c;
    line-height: 1.55;
}

.institution-source-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.institution-source-list a {
    padding: 9px 12px;
    color: #2f60ef;
    background: rgba(47, 96, 239, 0.08);
    text-decoration: none;
    font-weight: 850;
}

.institution-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.institution-stat-grid article {
    padding: 22px;
}

.institution-stat-grid strong {
    display: block;
    color: #2f60ef;
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
}

.institution-stat-grid span {
    display: block;
    margin-top: 8px;
    color: #64708c;
    font-weight: 800;
}

.institution-era-line {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 28px;
}

.institution-era-line::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, #2f60ef, #10b981, #f59e0b);
}

.institution-era-card {
    position: relative;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid rgba(127, 144, 182, 0.13);
}

.institution-era-marker {
    position: relative;
}

.institution-era-marker::before {
    content: "";
    position: absolute;
    left: -42px;
    top: 12px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 5px solid #2f60ef;
    border-radius: 50%;
}

.institution-era-marker span {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #17337f;
    font-weight: 950;
}

.institution-era-content small {
    color: #2f60ef;
    font-weight: 950;
}

.institution-era-content h2 {
    margin: 4px 0 14px;
    color: #0f172a;
    font-weight: 950;
}

.institution-era-leader {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.institution-portrait {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 23, 64, 0.32), rgba(47, 96, 239, 0.15)),
        url("../img/institution.png") center / cover;
    border: 3px solid #fff;
    box-shadow: 0 12px 26px rgba(17, 30, 67, 0.16);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 950;
}

.institution-era-leader strong {
    display: block;
    color: #0f172a;
    font-weight: 950;
}

.institution-era-leader p {
    margin: 4px 0 0;
    color: #64708c;
    line-height: 1.55;
}

.institution-profile-head {
    display: flex;
    gap: 22px;
    align-items: center;
    padding: clamp(24px, 3vw, 38px);
    margin-bottom: 18px;
}

.institution-profile-avatar {
    width: 120px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(10, 23, 64, 0.28), rgba(47, 96, 239, 0.2)),
        url("../img/institution.png") center / cover;
    border: 5px solid #fff;
    box-shadow: 0 18px 40px rgba(17, 30, 67, 0.18);
    font-size: 2.6rem;
    font-weight: 950;
}

.institution-profile-head h1 {
    margin: 12px 0 6px;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 950;
    line-height: 1;
}

.institution-profile-head p {
    margin: 0;
    color: #64708c;
    font-size: 1.05rem;
}

.institution-profile-wide {
    grid-column: 1 / -1;
}

.institution-profile-facts {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.institution-profile-facts div {
    padding: 13px 14px;
    background: #f8fbff;
}

.institution-profile-facts dt {
    color: #2f60ef;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.institution-profile-facts dd {
    margin: 4px 0 0;
    color: #18243f;
    font-weight: 850;
}

.institution-profile-summary {
    color: #64708c;
    line-height: 1.65;
}

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

.institution-clean-list li {
    padding: 13px 14px;
    color: #263350;
    background: #f8fbff;
    border-left: 4px solid #2f60ef;
    font-weight: 760;
}

.institution-achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.institution-achievement-grid div {
    min-height: 120px;
    padding: 18px;
    background: #f8fbff;
    color: #263350;
    font-weight: 800;
    line-height: 1.45;
}

.institution-achievement-grid i {
    display: block;
    margin-bottom: 10px;
    color: #10b981;
    font-size: 1.4rem;
}

.country-history-line {
    display: grid;
    gap: 18px;
}

.country-history-card {
    display: grid;
    grid-template-columns: 140px 74px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 18px;
}

.country-history-year {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #17337f;
    font-size: 1.05rem;
    font-weight: 950;
    text-align: center;
}

.country-history-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    background: #f8fbff;
    font-size: 2rem;
}

.country-history-body h2 {
    margin: 6px 0 10px;
    color: #0f172a;
    font-weight: 950;
}

.country-history-body p {
    color: #64708c;
    line-height: 1.6;
}

.country-history-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.country-history-meta strong,
.country-history-meta small {
    padding: 8px 11px;
    color: #2f60ef;
    background: rgba(47, 96, 239, 0.08);
    font-weight: 850;
}

@media (max-width: 1100px) {
    .institution-grid,
    .institution-achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .institution-feature-layout,
    .institution-profile-grid,
    .institution-source-strip,
    .institution-stat-grid {
        grid-template-columns: 1fr;
    }

    .country-history-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .institution-grid,
    .institution-achievement-grid {
        grid-template-columns: 1fr;
    }

    .institution-era-card {
        grid-template-columns: 1fr;
    }

    .institution-era-leader,
    .institution-profile-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.geography-page {
    display: grid;
    gap: 24px;
}

.geography-heading {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.96)),
        radial-gradient(circle at right top, rgba(45, 169, 145, 0.12), transparent 34%);
}

.geography-heading-row h1 {
    max-width: 760px;
}

.geography-hero-band,
.geography-layout,
.geography-stat-grid,
.geography-section-grid,
.geography-city-grid,
.geography-province-groups {
    display: grid;
    gap: 18px;
}

.geography-hero-band {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: stretch;
}

.geography-hero-copy,
.geography-hero-media,
.geography-stat-grid article,
.geography-panel,
.geography-section-card,
.geography-city-grid article,
.geography-province-groups article {
    border: 1px solid rgba(127, 144, 182, 0.14);
    box-shadow: 0 18px 50px rgba(17, 30, 67, 0.07);
}

.geography-hero-copy {
    padding: 30px;
    background: linear-gradient(145deg, #0f2a68, #1d4ed8);
    color: #fff;
}

.geography-hero-copy span {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.geography-hero-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    line-height: 1.02;
}

.geography-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.geography-hero-media {
    min-height: 280px;
    background:
        linear-gradient(135deg, rgba(10, 23, 64, 0.08), rgba(10, 23, 64, 0.28)),
        center / cover no-repeat;
}

.geography-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.geography-stat-grid article {
    padding: 22px;
    background: rgba(255, 255, 255, 0.97);
}

.geography-stat-grid strong {
    display: block;
    color: #0f172a;
    font-size: 1.9rem;
    font-weight: 950;
}

.geography-stat-grid span {
    display: block;
    margin-top: 8px;
    color: #64708c;
    line-height: 1.45;
}

.geography-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.geography-pillar-card {
    min-height: 100%;
}

.geography-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.geography-panel {
    padding: 24px;
    background: rgba(255, 255, 255, 0.97);
}

.geography-panel-wide {
    min-width: 0;
}

.geography-study-path,
.geography-region-stack,
.geography-park-stack {
    display: grid;
    gap: 14px;
}

.geography-study-step,
.geography-region-stack article,
.geography-city-grid article,
.geography-province-groups article {
    background: #f8fbff;
}

.geography-study-step {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(127, 144, 182, 0.12);
}

.geography-study-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    color: #fff;
    background: linear-gradient(135deg, #17337f, #2f60ef);
    font-weight: 950;
}

.geography-study-step h3,
.geography-section-card h3,
.geography-province-groups h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 900;
}

.geography-study-step p,
.geography-region-stack p,
.geography-section-card p,
.geography-city-grid p,
.geography-province-groups p {
    margin: 0;
    color: #64708c;
    line-height: 1.6;
}

.geography-region-stack article,
.geography-city-grid article,
.geography-province-groups article {
    padding: 16px;
    border: 1px solid rgba(127, 144, 182, 0.12);
}

.geography-region-stack small,
.geography-city-grid span {
    display: block;
    color: #2f60ef;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.geography-region-stack strong,
.geography-city-grid strong {
    display: block;
    margin: 6px 0 8px;
    color: #0f172a;
    font-weight: 900;
}

.geography-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.geography-section-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
}

.geography-section-card > span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #2f60ef;
    background: rgba(47, 96, 239, 0.08);
    font-weight: 900;
}

.geography-section-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #31405e;
    display: grid;
    gap: 8px;
}

.geography-province-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.geography-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.geography-chip-wrap span {
    padding: 8px 12px;
    color: #1e3a8a;
    background: rgba(47, 96, 239, 0.08);
    font-weight: 800;
}

.geography-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geography-pillar-link,
.geography-category-card,
.geography-mini-card {
    color: inherit;
    text-decoration: none;
}

.geography-pillar-link:hover,
.geography-category-card:hover,
.geography-mini-card:hover {
    color: inherit;
}

.geography-category-grid,
.geography-mini-grid,
.geography-admin-grid {
    display: grid;
    gap: 18px;
}

.geography-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geography-category-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(127, 144, 182, 0.14);
    box-shadow: 0 18px 50px rgba(17, 30, 67, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.geography-category-card:hover,
.geography-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 96, 239, 0.24);
    box-shadow: 0 22px 58px rgba(17, 30, 67, 0.11);
}

.geography-category-card-media {
    min-height: 180px;
    background:
        linear-gradient(135deg, rgba(10, 23, 64, 0.16), rgba(10, 23, 64, 0.38)),
        center / cover no-repeat;
}

.geography-category-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.geography-category-card-body span,
.geography-mini-card span,
.geography-admin-grid small {
    color: #2f60ef;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.geography-category-card-body h2,
.geography-mini-card strong,
.geography-admin-grid strong {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
}

.geography-category-card-body p,
.geography-mini-card p {
    margin: 0;
    color: #64708c;
    line-height: 1.6;
}

.geography-detail-copy {
    display: grid;
    gap: 14px;
}

.geography-detail-copy p {
    margin: 0;
    color: #64708c;
    line-height: 1.72;
}

.geography-fact-stack {
    align-items: flex-start;
}

.geography-fact-stack span {
    display: inline-flex;
}

.geography-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geography-admin-grid article,
.geography-mini-card {
    padding: 18px;
    background: #f8fbff;
    border: 1px solid rgba(127, 144, 182, 0.12);
}

.geography-admin-grid p {
    margin: 8px 0 0;
    color: #64708c;
    line-height: 1.55;
}

.geography-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .geography-pillars,
    .geography-stat-grid,
    .geography-city-grid,
    .geography-category-grid,
    .geography-mini-grid,
    .geography-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .geography-hero-band,
    .geography-layout,
    .geography-province-groups,
    .geography-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .geography-pillars,
    .geography-stat-grid,
    .geography-city-grid,
    .geography-category-grid,
    .geography-mini-grid,
    .geography-admin-grid {
        grid-template-columns: 1fr;
    }

    .geography-study-step {
        grid-template-columns: 1fr;
    }
}
