/* ==================== 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('../assets/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 {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 20, 46, 0.7);
    z-index: 1;
}

.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: #ffd700;
    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: #ffd700;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.tagline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #f0f4f8;
    margin-bottom: 35px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.tagline strong { color: #ffd700; }

.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(255, 255, 255, 0.08);
    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: #ffd700; color: #00204a; border: 2px solid #ffd700; }
.btn-primary:hover { background-color: #e5c100; border-color: #e5c100; transform: translateY(-2px); }

.btn-secondary { background-color: transparent; color: #ffffff; 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(255, 215, 0, 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;
}

.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;
    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; }

/* ==================== 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; }

@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; }
}

@media (max-width: 380px) {
    h1 { font-size: 1.8rem; }
    .tagline { font-size: 1rem; }
    .subtitle { letter-spacing: 2px; }
}