@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");

.swiper {
    width: 100%;
    height: auto;
    padding-bottom: 50px; /* Espace pour la pagination */
}

/* VARIABLES  */
:root {
    /* Main colors */
    --text-violet: #1c0a76;
    --text-primary: var(--text-violet);
    --bs-primary: #1c0a76;
    --bs-primary-rgb: 28, 10, 118;
    --text-golden: #ce9f41;
    --bs-golden: #ce9f41;
    --bs-white: #fdfbf7;

    --text-light: #f8fafc;
    --text-dark: #1e293b;

    --bg-light: #f5f5ec;

    /* Fonts */
    --font-body: "Nunito", sans-serif;
    --font-title: "Baloo 2", normal;
}

:root,
body {
    color-scheme: light only;
}

h1 {
    color: var(--bs-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
}

p,
li {
    font-weight: 400;
    font-size: 1.1rem;
}

.text-golden {
    color: var(--text-golden);
}

/*document show */
iframe {
    border: 2px solid #ddd;
    border-radius: 8px;
}

/* RESET AND BASE */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    font-family: var(--font-body);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-violet);
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
    padding-bottom: 1rem;
    z-index: 1;
}

.title-decoration::after {
    content: none !important;
}

p {
    color: var(--text-violet);
}

/*TOP-HEADER BANNER*/
.top-header.banner {
    width: 100%;
    height: 218px;
    overflow: hidden;
    padding: 0;
}

.top-header.banner,
.center-color {
    background-color: #ce9f41 !important;
}

.top-header.banner,
.center-color,
.impact-hero,
.cta-section,
.btn-join,
.btn-cta-large,
.alert-banner,
.main-navbar {
    color-scheme: light;
}

.banner-container {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
}

/* PHOTO SECTIONS (LEFT AND RIGHT) */
.photo-left,
.photo-right {
    flex: 1;
    min-width: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-left::before,
.photo-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.content-overlay {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

/* CENTER WITH GOLDEN COLOR */
.center-color {
    flex: 1.2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 150px;
    height: 150px;
    background: whitesmoke;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

h1 {
    font-size: 1.5rem;
    color: var(--stellar-violet);
    margin: 0;
    font-weight: 700;
}

.site-info p {
    font-size: 0.9rem;
    margin: 0;
}

/* User account buttons */
.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login-cta {
    background: white;
    color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login-cta:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-join {
    color: white;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-join,
.btn-join-text {
    color: #1c0a76;
}

.btn-join:hover {
    transform: translateY(-2px);
    color: white;
}

/* Navbar */
.navbar-header {
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.main-navbar {
    box-shadow: 0 2px 10px rgba(251, 250, 250, 0.1);
    padding: 0;
}

.main-navbar .navbar-nav {
    width: 100%;
    justify-content: center;
}

.main-navbar .nav-link {
    color: #1c0a76 !important;
    font-weight: 600;
    padding: 1.2rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background: #1c0a76;
    color: white !important;
}

.main-navbar .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white !important;
    transition: width 0.3s ease;
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 60%;
}

/* Boutons mobile navbar (base = mobile) */
.main-navbar .btn-sm {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 10px;
}

.main-navbar .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-navbar .navbar-toggler-icon {
    width: 1.6em;
    height: 1.6em;
}

footer h2 {
    font-family: "Nunito", sans-serif;
}

@media (max-width: 768px) {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: "Nunito", sans-serif;
        font-style: normal !important;
    }
}

/* Desktop : reset des styles mobile navbar */
@media (min-width: 992px) {
    .main-navbar .btn-sm {
        width: auto;
        height: auto;
        padding: revert;
        font-size: revert;
        border-radius: revert;
    }

    .main-navbar .navbar-toggler {
        width: auto;
        height: auto;
        padding: revert;
    }

    .main-navbar .navbar-toggler-icon {
        width: revert;
        height: revert;
    }

    .gap-extra {
        gap: 0;
    }
}

/* Important alert */
.alert-banner {
    color: #0a3622 !important;
    background-color: #d1e7dd !important;
    border-left: 4px solid var(--text-golden);
    padding: 1rem;
    margin: 1.5rem 0;
}

/* Hero with impactful numbers */
.impact-hero {
    background-color: #1c0a76;
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.impact-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.impact-hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Impactful figures */
.impact-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.stat-box {
    background: rgba(96, 100, 120, 0.918);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    min-width: 200px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
}

.cta-section {
    background: rgba(173, 170, 190, 0.413);
    border-radius: 20px;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-cta-large,
.btn-join {
    background: #ce9f41 !important;
}

.btn-cta-large {
    color: var(--text-violet);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: var(--text-violet);
}

/*2FA*/
.fa {
    border-top: 5px solid #1c0a76;
    border-radius: 12px;
}

.fa-style {
    color: #1c0a76;
}

.fa-btn {
    background-color: #ce9f41;
    color: white;
    border-radius: 25px;
}

/*COOKIES*/
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

.card {
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-input:disabled:checked {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn.position-fixed {
    transition: transform 0.3s ease;
}

.btn.position-fixed:hover {
    transform: scale(1.1);
}

.gap-extra {
    gap: 5rem;
}

/*school*/
.insigne {
    top: 5px;
    right: 15px;
    z-index: 1;
}

.insigne_img {
    width: 20px;
    height: 25px;
}
/* ── Anti dark mode Samsung/Android ── */
html[data-bs-theme="light"] {
    --bs-border-color: #1c0a76 !important;
    --bs-body-bg: #f5f5ec !important;
    --bs-body-color: #1c0a76 !important;
}

/* Force- white navbar */
.main-navbar {
    background-color: #ffffff !important;
}

/* border in blue */
.border-primary,
.border.border-primary {
    border-color: #1c0a76 !important;
}

/* Force burger toggler */
.navbar-toggler {
    border-color: #1c0a76 !important;
}

.navbar-toggler-icon {
    filter: none !important;
}

/* Force  outline buttons */
.btn-outline-primary {
    color: #1c0a76 !important;
    border-color: #1c0a76 !important;
}

/* Force background body */
body {
    background-color: #f5f5ec !important;
}
