:root {
    /* =========================
       PALETTE BLEU ULTRA MODERNE
       ========================= */
    --primary: #00a3ff;       /* Bleu vif électrique */
    --primary-dark: #0056b3;  /* Bleu profond pour le contraste */
    --primary-light: #e0f2ff; /* Bleu très doux pour les fonds */

    --secondary: #00d4ff;     /* Cyan éclatant */
    --accent: #007bff;        /* Bleu pur pour les accents */

    --white: #ffffff;
    --light: #f0f9ff;         /* Fond de page rafraîchissant */
    --light-2: #e6f4fe;

    --text: #0f172a;          /* Slate foncé (très moderne) */
    --text-light: #475569;    /* Gris bleuté pour le secondaire */

    --border: #e2e8f0;

    --shadow: 
        0 10px 25px rgba(0, 163, 255, 0.08);

    --shadow-hover: 
        0 20px 40px rgba(0, 163, 255, 0.18);

    --radius: 18px;
}

/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: 
        linear-gradient(135deg, #f8fcfd, #f0f7ff);
    color: var(--text);
    overflow-x: hidden;
}

/* =========================
   SPLASH SCREEN
========================= */

.splash-body {
    margin: 0;
    height: 100vh;
    background: 
        linear-gradient(
            135deg, 
            #00a3ff, 
            #00d4ff, 
            #007bff
        );
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientMove {
    0%{ background-position:0% 50%; }
    50%{ background-position:100% 50%; }
    100%{ background-position:0% 50%; }
}

.splash-wrapper {
    text-align: center;
    color: #ffffff;
    animation: fadeIn 1.2s ease-in-out;
}

/* =========================
   LOGO CIRCULAIRE
========================= */

.logo-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    padding: 10px;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2.5s infinite;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background:#fff;
}

/* =========================
   TEXTES
========================= */

.splash-title {
    font-size: 24px;
    margin: 5px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.splash-subtitle {
    font-size: 18px;
    margin-bottom: 28px;
    font-weight: 400;
    opacity:0.95;
}

/* =========================
   LOADER
========================= */

.splash-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   NAVBAR TOP FIXE
========================= */

.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 163, 255, 0.1);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* =========================
   LOGO
========================= */

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-container .logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    background:#fff;
    box-shadow: 0 8px 20px rgba(0, 163, 255, 0.15);
}

.school-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.school-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.school-details {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

/* =========================
   NAV LINKS
========================= */

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-grow: 1;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li.active a {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.2);
}

/* =========================
   BOUTON LOGIN
========================= */

.btn-login a {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.15);
}

.btn-login a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.25);
}

/* =========================
   BODY SPACE
========================= */

body {
    padding-top: 95px;
    padding-bottom: 90px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1500px;
    margin: 0 auto;
}

/* =========================
   MOBILE HEADER
========================= */

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.mobile-header .logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

/* =========================
   NAVBAR BOTTOM
========================= */

.navbar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar-bottom a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.navbar-bottom a i {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.navbar-bottom a span {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.navbar-bottom a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    margin: 6px;
    box-shadow: 0 10px 25px rgba(0, 163, 255, 0.25);
    transform: translateY(-4px);
}

/* ===============================
   HERO SECTION
================================ */

.hero {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 40px;
    background: linear-gradient(135deg, #e0f2ff, #ffffff, #f0f9ff);
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-top:20px;
}

.hero-content {
    max-width: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 500;
}

.hero-content h2 {
    font-size: 44px;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* IMAGE */

.hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.12);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.01);
}

/* DESCRIPTION */

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===============================
   HERO BUTTONS
================================ */

.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-buttons a {
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 25px rgba(0, 163, 255, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-tertiary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(0, 163, 255, 0.28);
}

/* ===============================
   CARDS
================================ */

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 60px 20px;
}

.card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 35px 25px;
    width: 280px;
    text-align: center;
    transition: all 0.35s ease;
    border:1px solid rgba(255,255,255,0.6);
}

.card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: var(--shadow-hover);
}

.card i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 14px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===============================
   SOCIAL BUTTONS
================================ */

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 45px 0;
    flex-wrap: wrap;
}

.social-btn {
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 163, 255, 0.22);
}

/* ===============================
   ABOUT
================================ */

.section {
    max-width: 1250px;
    margin: 0 auto;
    padding: 70px 20px;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 50px;
    font-weight: 800;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 520px;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
}

/* ===============================
   INFO CARDS
================================ */

.info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.info-card {
    background: #fff;
    border-radius: 22px;
    padding: 25px;
    max-width: 360px;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border-top: 5px solid var(--primary);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.info-card span.number {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-dark);
}

.info-card h3 {
    margin: 12px 0;
    color: var(--primary-dark);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===============================
   HISTORY
================================ */

.history {
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
    border-left: 5px solid var(--primary);
    padding: 28px;
    margin: 55px 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.history h3 {
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.history p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===============================
   OPTION CARDS
================================ */

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.option-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    width: 270px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border: 1px solid #f1f5f9;
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.option-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 14px;
}

.option-card h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.option-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    margin-top: 80px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    overflow:hidden;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 35px;
    padding: 50px 30px;
}

.footer-block {
    flex: 1;
    min-width: 230px;
}

.footer-block h4 {
    color: var(--secondary);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
}

.footer-block p,
.footer-block li {
    font-size: 14px;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.footer-block i {
    color: var(--primary);
    margin-right: 8px;
}

.footer-block ul {
    list-style: none;
}

.footer-block ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-block ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* SOCIALS */

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-socials a i {
    color: #fff;
    font-size: 18px;
    margin-right: 0;
}

.footer-socials a:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* BOTTOM */

.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 18px 10px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===========================
   CONTACT PAGE
=========================== */

.contact-page {
    padding: 90px 15px 50px;
    max-width: 1250px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 55px;
}

.contact-header h1 {
    font-size: 38px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.contact-header p {
    color: var(--text-light);
    font-size: 16px;
}

.contact-container {
    display: flex;
    gap: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    flex: 1 1 100%;
    max-width: 520px;
    background: #fff;
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.contact-info {
    border-left: 5px solid var(--primary);
}

.contact-info h3,
.contact-form h3 {
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 14px;
}

.contact-info i {
    color: var(--primary);
    margin-right: 8px;
}

/* FORM */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display:block;
    margin-bottom:8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    font-size: 14px;
    background:#f8fafc;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 130px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background:#fff;
    box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.1);
}

/* BUTTON */

.btn-send {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight:700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:8px;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 163, 255, 0.25);
}

/* ===========================
   ANIMATION
=========================== */

.animate,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate.show,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px){
    .navbar-top{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }
    .nav-links{
        justify-content:flex-start;
    }
}

@media (max-width: 768px) {
    .hero{ padding:50px 15px 30px; }
    .hero-content h1 { font-size: 25px; }
    .hero-content h2 { font-size: 32px; }
    .hero-subtitle, .hero-description { font-size: 14px; }
    .hero-buttons { flex-direction: column; }
    .cards, .info-cards, .options-container, .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    .card, .option-card, .info-card {
        width: 95%;
        max-width: 420px;
    }
    .about-container { flex-direction: column; text-align: center; }
    .about-image { max-width: 100%; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-socials { justify-content: center; }
    .contact-container { flex-direction: column; }
    .contact-info, .contact-form { max-width: 100%; }
    .navbar-bottom { height: 78px; }
}

@media (max-width: 480px){
    .school-name{ font-size:15px; }
    .school-details{ font-size:11px; }
    .hero-content h2{ font-size:28px; }
    .section h2, .contact-header h1{ font-size:28px; }
    .card, .option-card, .info-card{ padding:22px 18px; }
}