:root {
    --school-primary: #0d4d9f;
    --school-secondary: #f2b705;
    --school-dark: #0e1d36;
    --school-soft: #f4f8ff;
    --about-blue: var(--school-primary);
    --about-blue-dark: var(--school-dark);
    --about-blue-light: var(--school-soft);
    --about-blue-muted: #eef5ff;
    --footer-accent: #e65c4f;
    --footer-cream: #ffffff;
    --btn-ease: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.bt-body {
    font-family: 'DM Sans', sans-serif;
    color: var(--school-dark);
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.school-navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(13, 77, 159, 0.12);
}

.brand-main {
    font-weight: 700;
    color: var(--school-primary);
    line-height: 1;
}

.brand-sub {
    color: #5f6d83;
    font-size: 0.72rem;
    margin-top: 0.15rem;
}

.navbar .nav-link {
    color: #243653;
    font-weight: 500;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--school-primary);
}

.navbar-nav .nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background-color: var(--school-soft);
    color: #243653;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.2;
    transition:
        background-color var(--btn-ease),
        color var(--btn-ease),
        border-color var(--btn-ease),
        box-shadow var(--btn-ease);
}

.navbar-nav button.nav-pill {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

.navbar-nav .nav-pill i {
    font-size: 0.95rem;
    color: var(--school-primary);
    transition: color var(--btn-ease);
}

.navbar-nav .nav-pill:hover {
    background-color: #fff;
    border-color: rgba(13, 77, 159, 0.18);
    color: #111;
    box-shadow: 0 6px 16px rgba(13, 77, 159, 0.08);
}

.navbar-nav .nav-pill:hover i {
    color: #111;
}

.navbar-nav .nav-pill--solid {
    background-color: var(--school-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 77, 159, 0.22);
}

.navbar-nav .nav-pill--solid i {
    color: #fff;
}

.navbar-nav .nav-pill--solid:hover {
    background-color: #fff;
    color: #111;
    border-color: rgba(13, 77, 159, 0.2);
    box-shadow: 0 6px 16px rgba(13, 77, 159, 0.1);
}

.navbar-nav .nav-pill--solid:hover i {
    color: #111;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 0.75rem 0 1rem;
    }

    .navbar-nav .navbar-action {
        margin-top: 0.5rem;
    }

    .navbar-nav .navbar-action .nav-pill,
    .navbar-nav .navbar-action form {
        display: flex;
        width: 100%;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    font-weight: 600;
    transition:
        background-color var(--btn-ease),
        color var(--btn-ease),
        border-color var(--btn-ease),
        box-shadow var(--btn-ease);
}

.btn i {
    transition: color var(--btn-ease);
}

.btn-brand {
    background-color: var(--school-primary);
    background-image: none;
    color: #fff;
    border: 1px solid transparent;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: #fff;
    background-image: none;
    color: #111;
    border-color: rgba(13, 77, 159, 0.2);
    box-shadow: 0 6px 16px rgba(13, 77, 159, 0.1);
    transform: none;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: #fff;
    color: #111;
    border-color: rgba(13, 77, 159, 0.25);
}

.btn-warning:hover,
.btn-warning:focus {
    background: #fff;
    color: #111;
    border-color: #ffc107;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #fff;
    color: #111;
    border-color: #dc3545;
}

.btn-brand:hover i,
.btn-outline-dark:hover i,
.btn-warning:hover i,
.btn-danger:hover i {
    color: #111;
}

.table-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.table-actions form {
    margin: 0;
}

.hero-section {
    position: relative;
    isolation: isolate;
    min-height: 72vh;
    display: flex;
    align-items: center;
    background: #fff;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 50%;
        z-index: 0;
        background: linear-gradient(135deg, var(--school-primary), #1f67c4);
    }
}

.hero-section__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .hero-section__right {
        padding: 1.75rem 1rem;
        background: linear-gradient(135deg, var(--school-primary), #1f67c4);
        border-radius: 1rem;
    }
}

.hero-badge {
    border: 1px solid rgba(13, 77, 159, 0.2);
    color: var(--school-primary);
}

.hero-card,
.feature-card,
.content-card,
.stat-item,
.page-hero {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(13, 77, 159, 0.08);
    box-shadow: 0 14px 32px rgba(17, 49, 95, 0.07);
}

.section-header {
    padding: 0;
    margin: 0;
    background: transparent;
}

.section-banner-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    padding: 48px;
    border-radius: 16px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .section-banner-container {
        height: 450px;
        min-height: 450px;
        padding: 0 48px;
    }
}

.section-title-holder {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-banner-text {
    margin: 0;
    font-family: 'Outfit', 'Arial Black', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #f7f7f7;
    text-transform: uppercase;
    letter-spacing: 6px;
    line-height: 1;
    text-align: center;
    user-select: none;
    text-shadow:
        -1px -2px 3px rgba(255, 255, 255, 0.95),
        1px 2px 4px rgba(0, 0, 0, 0.30),
        0 1px 2px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .section-banner-container {
        min-height: 160px;
        padding: 40px 20px;
    }
    .section-banner-text {
        font-size: clamp(2rem, 9vw, 3.5rem);
        letter-spacing: 3px;
    }
}

.hero-card {
    padding: 1.5rem;
}

.feature-card {
    padding: 1.4rem;
    height: 100%;
}

.feature-card p,
.content-card p {
    color: #55617a;
    margin-bottom: 0;
}

.icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 0.9rem;
    font-size: 1.2rem;
    color: var(--school-primary);
    background-color: var(--school-soft);
}

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

.stat-item {
    padding: 1.2rem;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--school-primary);
    display: block;
}

.content-card,
.page-hero {
    padding: 1.5rem;
}

/* Footer principal (bloc creme au-dessus de la barre bleue) */
.site-footer {
    background: var(--footer-cream);
    color: #555;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #111;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
}

.site-footer__brand-icon {
    color: var(--school-primary);
    font-size: 1.35rem;
    line-height: 1;
}

.site-footer__brand-text {
    letter-spacing: -0.02em;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

.site-footer__nav a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.site-footer__nav a:hover {
    color: var(--school-primary);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 2.5rem;
}

.site-footer__heading {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--school-primary);
}

.site-footer__col p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555;
}

.site-footer__col a {
    color: #555;
    text-decoration: none;
}

.site-footer__col a:hover {
    color: var(--school-primary);
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-footer__social-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    background: #f3f3f3;
    color: #8a8a8a;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer__social-link:hover {
    color: var(--school-primary);
    border-color: rgba(13, 77, 159, 0.35);
    background: #fff;
}

.school-footer {
    background: #0f223f;
    color: #dce8ff;
}

.school-footer__copy {
    line-height: 1.6;
}

.school-footer__sep {
    margin: 0 0.35rem;
    opacity: 0.75;
}

.footer-link {
    color: #dce8ff;
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
    }
}

/* Page A propos — sections maquettes (couleurs via variables --about-*) */
/* Section 1 : texte a gauche / images a droite */
.about-edu {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    width: 100%;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
}

.about-edu__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 4vw, 4rem);
    background: var(--about-blue);
    color: #fff;
}

.about-edu__title {
    margin: 0 0 1.35rem;
    max-width: 14ch;
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.about-edu__lead {
    margin: 0 0 2.25rem;
    max-width: 38ch;
    font-size: clamp(0.88rem, 1.6vw, 0.98rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.about-edu__stat {
    margin-top: auto;
}

.about-edu__stat-value {
    display: block;
    margin-bottom: 0.65rem;
    font-size: clamp(3.5rem, 8vw, 5.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.about-edu__stat-label {
    margin: 0;
    max-width: 34ch;
    font-size: clamp(0.82rem, 1.5vw, 0.92rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.about-edu__media {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--about-blue-muted);
    padding: 2rem 2.25rem 2.25rem;
    overflow: hidden;
}

.about-edu__gallery {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 580px;
    height: 100%;
    max-height: 480px;
    margin: 0 auto;
}

.about-edu__img {
    display: block;
    width: 100%;
    flex: 1 1 0;
    min-height: 140px;
    object-fit: cover;
    border-radius: 32px;
}

.about-edu__img--top {
    object-position: center 35%;
}

.about-edu__img--bottom {
    object-position: center 40%;
}

.about-edu__accent {
    position: absolute;
    z-index: 2;
    background: var(--about-blue-dark);
}

.about-edu__accent--top {
    top: 0;
    right: 0;
    width: clamp(72px, 10vw, 108px);
    height: clamp(36px, 5vw, 52px);
}

.about-edu__accent--bottom {
    right: 0;
    bottom: 0;
    width: clamp(52px, 7vw, 72px);
    height: clamp(88px, 12vw, 128px);
}

.about-edu__page-num {
    position: absolute;
    right: clamp(1rem, 2.5vw, 1.75rem);
    bottom: clamp(0.65rem, 1.5vw, 1rem);
    z-index: 3;
    font-size: 0.78rem;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1;
}

.about-mission {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Bloc enseignants (accueil) — section blanche dediee */
.home-teachers-block {
    background: #fff;
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.home-teachers-block .about-teachers {
    background: transparent;
    padding: 0;
}

/* Section enseignants : panneau bleu ecole (~500px) */
.about-teachers {
    position: relative;
    overflow: visible;
    background: #fff;
    padding: 2rem 0;
}

.about-teachers__container {
    display: grid;
    grid-template-columns: clamp(72px, 13vw, 128px) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.about-teachers__lavender {
    /* Colonne bleu clair a gauche ; le trait = bord droit de cette colonne */
    min-height: 1px;
}

.about-teachers__panel {
    --about-teachers-photo-w: clamp(240px, 22vw, 300px);
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 500px;
    max-height: 500px;
    padding: 1.75rem clamp(2rem, 4vw, 3rem);
    padding-left: calc(var(--about-teachers-photo-w) / 2 + 1.75rem);
    background: linear-gradient(135deg, var(--about-blue), #1f67c4);
    border-radius: 1.75rem;
    overflow: visible;
}

.about-teachers__figure {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    margin: 0;
    line-height: 0;
    transform: translate(-50%, -50%);
}

.about-teachers__photo {
    display: block;
    width: var(--about-teachers-photo-w);
    height: clamp(400px, 38vw, 460px);
    max-height: none;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.about-teachers__copy {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-right: 1rem;
}

.about-teachers__title {
    margin: 0 0 1rem;
    max-width: 16ch;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.about-teachers__copy p {
    margin: 0 0 0.75rem;
    max-width: 50ch;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.about-teachers__copy p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .about-edu {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .about-edu__gallery {
        max-height: none;
    }

    .about-edu__img {
        flex: none;
        height: 200px;
    }

    .about-edu__text {
        order: 1;
    }

    .about-edu__media {
        order: 2;
    }

    .about-edu__stat {
        margin-top: 0.5rem;
    }

    .about-teachers__container {
        grid-template-columns: 1fr;
    }

    .about-teachers__lavender {
        display: none;
    }

    .about-teachers__panel {
        height: auto;
        max-height: none;
        padding: 1.75rem 1.5rem;
        padding-top: calc(280px / 2 + 2rem);
        border-radius: 1.5rem;
    }

    .about-teachers__figure {
        top: calc(280px / 2 + 1.75rem);
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .about-teachers__photo {
        width: min(100%, 320px);
        height: 280px;
        max-height: 280px;
    }
}

.admin-toolbar {
    background: #fff;
    border-bottom: 1px solid rgba(13, 77, 159, 0.12);
    box-shadow: 0 10px 24px rgba(17, 49, 95, 0.06);
}

.admin-toolbar__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
}

.admin-toolbar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 160px;
}

.admin-toolbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--school-primary), #1f67c4);
    color: #fff;
    font-size: 1.1rem;
}

.admin-toolbar__kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a8aa3;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.admin-toolbar__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--school-dark);
    line-height: 1;
}

.admin-toolbar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1 1 auto;
}

.admin-toolbar a.admin-toolbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background-color: var(--school-soft);
    color: #243653;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition:
        background-color var(--btn-ease),
        color var(--btn-ease),
        border-color var(--btn-ease),
        box-shadow var(--btn-ease);
}

.admin-toolbar a.admin-toolbar__item i {
    font-size: 0.95rem;
    color: var(--school-primary);
    transition: color var(--btn-ease);
}

.admin-toolbar a.admin-toolbar__item:hover {
    background-color: #fff;
    border-color: rgba(13, 77, 159, 0.18);
    color: #111;
    box-shadow: 0 6px 16px rgba(13, 77, 159, 0.08);
}

.admin-toolbar a.admin-toolbar__item:hover i {
    color: #111;
}

.admin-toolbar a.admin-toolbar__item.is-active {
    background-color: var(--school-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(13, 77, 159, 0.22);
}

.admin-toolbar a.admin-toolbar__item.is-active i {
    color: #fff;
}

.admin-toolbar a.admin-toolbar__item.is-active:hover {
    background-color: #fff;
    color: #111;
    border-color: rgba(13, 77, 159, 0.2);
}

.admin-toolbar a.admin-toolbar__item.is-active:hover i {
    color: #111;
}

.admin-toolbar a.admin-toolbar__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(14, 29, 54, 0.14);
    color: var(--school-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
    transition:
        background-color var(--btn-ease),
        color var(--btn-ease),
        border-color var(--btn-ease),
        box-shadow var(--btn-ease);
}

.admin-toolbar a.admin-toolbar__back:hover {
    background: #fff;
    border-color: rgba(13, 77, 159, 0.25);
    color: #111;
}

@media (max-width: 767.98px) {
    .admin-toolbar__back span {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .about-edu__img {
        border-radius: 24px;
        height: 180px;
    }

    .about-teachers__photo {
        border-radius: 24px;
    }
}
