/* ==================== RÉINITIALISATION & CONFIGURATION DE BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}




a { color: inherit; }



/* ==================== BARRE DE NAVIGATION (HEADER) ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 32, 74, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo span { color: #ffffff; }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 22px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: #ffd700; }

.nav-btn {
    background-color: #ffd700;
    color: #00204a !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-btn:hover { background-color: #e5c100; }

.menu-toggle { display: none; cursor: pointer; }

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* ==================== BANNIÈRE (HERO SECTION - Accueil) ==================== */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/banniere.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
}

        .overlay-2 {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(252, 255, 255, 0.055) !important;
           
        }

.content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 20px;
    max-width: 850px;
}

.badge-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 215, 0, 0.15);
    border: 1px solid #ffd700;
    color: #ff8420;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #2866d1;
}



h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #2866d1;
    text-shadow: 0 4px 15px rgba(49, 97, 253, 0.4);
}


.tagline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #000000;
    font-weight: 300;
    margin-bottom: 35px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.tagline strong { color: #000000;  font-weight: bold; }

.highlights {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    background: rgba(109, 173, 226, 0.856);
    padding: 10px 22px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-item i { color: #ffd700; }

.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
   
}

.btn-primary { background-color: #2d5dfa; color: #5898eb; border: 2px solid #2959f7; }
.btn-primary:hover { background-color: #e5c100; border-color: #e5c100; transform: translateY(-2px); }

.btn-secondary { background-color: transparent; color: #ec5643; border: 2px solid #ffffff; }
.btn-secondary:hover { background-color: #ffffff; color: #00204a; transform: translateY(-2px); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 119, 255, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}
.pulse { animation: pulse 2s infinite; }

/* ==================== EN-TÊTE DE PAGE (pages internes) ==================== */
.page-header {
    background: linear-gradient(rgba(0, 20, 46, 0.88), rgba(0, 20, 46, 0.88)), url('../images/banniere.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 150px 20px 70px;
}

.page-header h1 { font-size: 2.6rem; margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; color: #d9e4f0; max-width: 650px; margin: 0 auto; }

.breadcrumb {
    margin-top: 18px;
    font-size: 0.9rem;
    color: #ffd700;
}
.breadcrumb a { color: #ffd700; text-decoration: none; }
.breadcrumb span { color: #d9e4f0; margin: 0 6px; }

/* ==================== CONTENU GÉNÉRIQUE DES PAGES ==================== */
main.page-content {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    z-index: -1;
}

.section-title {
    font-size: 2rem;
    color: #00204a;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #5a6b82;
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border-top: 4px solid #ffd700;
    transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-5px); }

.card i.card-icon {
    font-size: 1.8rem;
    color: #00204a;
    background: #fff6d9;
    padding: 14px;
    border-radius: 50%;
    margin-bottom: 15px;
    display: inline-block;
}

.card h3 { color: #00204a; margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: #5a6b82; line-height: 1.6; font-size: 0.95rem; }

.info-block {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    margin-bottom: 30px;
}

.info-block h2 {
    color: #00204a;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-left: 4px solid #ffd700;
    padding-left: 14px;
}

.info-block p, .info-block li { color: #4a5568; line-height: 1.75; }
.info-block ul { padding-left: 22px; margin-top: 10px; }
.info-block ul li { margin-bottom: 8px; }

.timeline { list-style: none; counter-reset: step; }
.timeline li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    counter-increment: step;
}
.timeline li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 34px; height: 34px;
    background: #00204a #0e4791;
    color: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.timeline li h4 { color: #00204a; margin-bottom: 4px; }
.timeline li p { color: #5a6b82; }



/* Équipe pédagogique */
.team {
  padding: 60px 20px;
  text-align: center;
}
.team h2 {
  font-size: 30px;
  margin-bottom: 30px;
}
.team-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
}
.team-cards .card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.team-cards img {
  width: 100%;
  border-radius: 50%;
  margin-bottom: 15px;
}
.team-cards h3 {
  margin-bottom: 5px;
}

/* ==================== FORMULAIRES (Inscription / Contact) ==================== */
.form-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 30px;
}

.form-section-title {
    color: #00204a;
    font-size: 1.25rem;
    margin: 30px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-title:first-child { margin-top: 0; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00204a;
    margin-bottom: 7px;
}
.form-group label .required { color: #d62828; margin-left: 3px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid #d9e2ec;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1a202c;
    background: #fbfcfe;
    transition: border-color 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00204a;
    background: #ffffff;
}

.form-group small { color: #8492a6; font-size: 0.78rem; margin-top: 5px; }

.radio-group { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 5px; }
.radio-group label { display: flex; align-items: center; gap: 7px; font-weight: 500; color: #4a5568; font-size: 0.92rem; }
.radio-group input { accent-color: #00204a; width: 16px; height: 16px; }

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f4f7fb;
    padding: 16px;
    border-radius: 6px;
    margin: 20px 0;
}
.checkbox-row input { margin-top: 4px; accent-color: #00204a; width: 17px; height: 17px; flex-shrink: 0; }
.checkbox-row label { font-size: 0.9rem; color: #4a5568; line-height: 1.5; }

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.form-message {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.92rem;
    margin-bottom: 20px;
    display: none;
}
.form-message.show { display: block; }
.form-message.success { background: #e6f7ee; color: #146c43; border: 1px solid #a3e4c1; }
.form-message.error { background: #fdecec; color: #b02a2a; border: 1px solid #f3b4b4; }

.spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(0,32,74,0.25);
    border-top-color: #00204a;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
.btn-primary .spinner { border: 3px solid rgba(0,32,74,0.25); border-top-color: #00204a; }
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled] { opacity: 0.7; cursor: not-allowed; }

/* honeypot anti-spam (champ caché) */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ==================== PORTAIL (SPA avec fetch) ==================== */
.portal-shell {
    display: flex;
    flex: 1;
    padding-top: 65px;
    min-height: 100vh;
}

.portal-sidebar {
    width: 250px;
    background: #00204a;
    color: #fff;
    padding: 30px 0;
    flex-shrink: 0;
}

.portal-sidebar h3 {
    color: #ffd700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 25px;
    margin-bottom: 15px;
}

.portal-nav { list-style: none; }
.portal-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    color: #cfd9e6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.portal-nav li a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.portal-nav li a.active {
    background: rgba(255,215,0,0.1);
    color: #ffd700;
    border-left-color: #ffd700;
}

.portal-main {
    flex: 1;
    background: #f0f2f5;
    overflow-x: hidden;
    position: relative;
}

.portal-topbar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.portal-topbar .mobile-portal-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #00204a;
    cursor: pointer;
}

#portal-content {
    padding: 35px;
    max-width: 1000px;
}

#portal-content .page-header,
#portal-content .navbar,
#portal-content .footer { display: none !important; }

#portal-content main.page-content { padding: 0; max-width: 100%; }

.portal-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5a6b82;
    padding: 60px 0;
    justify-content: center;
    font-size: 1rem;
}
.portal-loader .spinner { display: block; width: 26px; height: 26px; }


/* =========================
LIENS UTILES
========================= */

.liens-utiles{
    padding:90px 0;
}

.link-card{
    background:white;
    border-radius:18px;
    padding:30px;
    height:100%;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
    transition:.3s;
}

.link-card:hover{
    transform:translateY(-5px);
}

.link-card i{
    font-size:35px;
    color:#0a7c5a;
    margin-bottom:20px;
}

.link-card h4{
    font-weight:700;
    margin-bottom:15px;
}

.link-card p{
    color:#666;
    line-height:1.7;
}

.btn-link-card{
    display:inline-block;
    margin-top:20px;
    text-decoration:none;
    background:#0a7c5a;
    color:white;
    padding:12px 24px;
    border-radius:30px;
}


.colo-d{
   background-color: #001530d8; 
   color: rgb(253, 253, 255) !important ;
}

.colo-e{
   color: rgb(0, 85, 0) !important ; 
}

/* surveillant */
 /* =========================
        LEFT
        ========================= */

        .left-side {

            padding: 60px;
        }

        .badge-ltp {

            display: inline-flex;

            align-items: center;

            gap: 10px;

            background: rgba(255, 255, 255, .12);

            padding: 10px 18px;

            border-radius: 50px;

            font-size: 14px;

            margin-bottom: 25px;
        }

        .left-side h1 {

            font-size: 60px;

            font-weight: 800;

            line-height: 1.1;

            margin-bottom: 25px;
        }

        .left-side p {

            color: #f1f1f1;

            line-height: 1.9;

            font-size: 17px;

            margin-bottom: 35px;
        }

        /* =========================
        STATUS
        ========================= */

        .status-box {

            display: flex;

            align-items: center;

            gap: 15px;

            background: rgba(255, 255, 255, .08);

            padding: 18px 22px;

            border-radius: 18px;

            margin-bottom: 25px;
        }

        .status-circle {

            width: 18px;
            height: 18px;

            border-radius: 50%;

            background: #003cff;

            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {

            0% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.4);
                opacity: .5;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }

        }

        /* =========================
        BUTTONS
        ========================= */

        .hero-buttons {

            display: flex;

            gap: 15px;

            flex-wrap: wrap;
        }

        .btn-hero {

            padding: 14px 28px;

            border-radius: 50px;

            text-decoration: none;

            font-weight: 600;

            transition: .3s;
        }

        .btn-primary-hero {

            background: #0e4791;

            color: white;
        }

        .btn-primary-hero:hover {

            background: #092b5e;
        }

        .btn-secondary-hero {

            background: white;

            color: #092b5e;
        }

        .btn-secondary-hero:hover {

            background: #092b5e;
            color: white;
        }

        /* =========================
        RIGHT
        ========================= */

        .right-side {

            background:
                linear-gradient(rgba(10, 59, 124, 0.92),
                    rgba(10, 50, 124, 0.92));

            padding: 60px;

            display: flex;

            flex-direction: column;

            justify-content: center;
        }

        .card-info {

            background: rgba(255, 255, 255, .08);

            border-radius: 20px;

            padding: 25px;

            margin-bottom: 20px;

            transition: .3s;
        }

        .card-info:hover {

            transform: translateY(-5px);

            background: rgba(255, 255, 255, .12);
        }

        .card-info i {

            font-size: 35px;

            margin-bottom: 18px;
        }

        .card-info h3 {

            font-size: 20px;

            font-weight: 700;

            margin-bottom: 10px;
        }

        .card-info p {

            color: #e9f5ef;

            line-height: 1.8;

            margin: 0;
        }

        /* =========================
        FOOTER
        ========================= */

        .footer-mini {

            text-align: center;

            margin-top: 25px;

            color: #d8f1e7;

            font-size: 14px;
        }

        /* =========================
        RESPONSIVE
        ========================= */

        @media(max-width:992px) {

            .left-side {

                padding: 40px;
            }

            .right-side {

                padding: 40px;
            }

            .left-side h1 {

                font-size: 45px;
            }

        }

        @media(max-width:768px) {

            .hero {

                padding: 100px 15px;
            }

            .left-side,
            .right-side {

                padding: 30px;
            }

            .left-side h1 {

                font-size: 34px;
            }

            .left-side p {

                font-size: 15px;
            }

            .hero-buttons {

                flex-direction: column;
            }

            .btn-hero {

                width: 100%;

                text-align: center;
            }

        }

@media (max-width: 900px) {
    .portal-sidebar {
        position: fixed;
        left: -260px;
        top: 65px;
        height: calc(100vh - 65px);
        z-index: 900;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .portal-sidebar.open { left: 0; box-shadow: 4px 0 20px rgba(0,0,0,0.2); }
    .portal-topbar .mobile-portal-toggle { display: block; }
    #portal-content { padding: 20px; }
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #001530;
    color: #b0c4de;
    padding: 50px 20px 20px 20px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-container > div { flex: 1; min-width: 250px; }
.footer h3, .footer h4 { color: #ffffff; margin-bottom: 20px; }
.footer h3 { font-size: 1.4rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #b0c4de; text-decoration: none; transition: color 0.3s; }
.footer-links ul li a:hover { color: #ffd700; }
.footer-contact p { margin-bottom: 11px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: #ffd700; }
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
}




/* ==================== RESPONSIVITÉ ==================== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 65px;
        left: -100%;
        flex-direction: column;
        background-color: #001d42;
        width: 100%;
        height: calc(100vh - 65px);
        text-align: center;
        transition: 0.3s ease-in-out;
        gap: 35px;
        padding-top: 40px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .nav-links.active { left: 0; }

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-banner { padding: 90px 20px 40px; }
    .badge-promo { margin-bottom: 18px; }
    h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .page-header h1 { font-size: 1.9rem; }
    .page-header { padding: 130px 20px 50px; }
    .tagline { font-size: 1.1rem; margin-bottom: 25px; }

    .highlights { gap: 10px; margin-bottom: 25px; }
    .highlight-item { font-size: 0.95rem; padding: 8px 15px; width: 100%; max-width: 280px; justify-content: center; }

    .cta-buttons { flex-direction: column; gap: 15px; width: 100%; max-width: 280px; margin: 0 auto; }
    .btn { width: 100%; justify-content: center; padding: 13px 20px; }

    .form-wrapper { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; }

    .team-cards{
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    h1 { font-size: 1.8rem; }
    .tagline { font-size: 1rem; }
    .subtitle { letter-spacing: 2px; }
}
