/* ==========================================================================
   ACADÉMIE NOVA — PORTAIL EXAMENS & CONCOURS (STYLE.CSS)
   ========================================================================== */

:root {
    --primary: #2a9d8f;
    --primary-hover: #218377;
    --primary-glow: rgba(42, 157, 143, 0.25);
    --accent: #eab308;
    --accent-hover: #ca8a04;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --discord-color: #5865F2;
    --discord-glow: rgba(88, 101, 242, 0.25);
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-med: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-pill: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .main-title {
    font-family: 'Quicksand', 'Inter', sans-serif;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   EN-TÊTE NAVBAR (BOUTONS ARRONDIS PILULES)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    margin-right: auto;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-text .main-title {
    font-weight: 900;
    font-size: 1.1rem;
    color: #0f172a;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-text .sub-title {
    font-weight: 700;
    font-size: 0.68rem;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.25rem;
}

.nav-item {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-item.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}
.nav-toggle span {
    width: 24px;
    height: 3px;
    background: #0f172a;
    border-radius: 3px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1rem 4rem 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 250, 252, 0.6) 100%), url('assets/campus.jpg') center/cover no-repeat;
    border-bottom: 1px solid rgba(42, 157, 143, 0.2);
}

.page-hero {
    position: relative;
    padding: 4.5rem 1rem 3.5rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 250, 252, 0.6) 100%), url('assets/campus.jpg') center/cover no-repeat;
    border-bottom: 1px solid rgba(42, 157, 143, 0.2);
}

.badge-promo {
    background: rgba(42, 157, 143, 0.12);
    border: 1px solid rgba(42, 157, 143, 0.3);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight {
    color: var(--primary);
}

/* ==========================================================================
   CARTES DE SERVICES & RÉSULTATS (PARTNER CARDS)
   ========================================================================== */
.partners-section {
    padding: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: all var(--transition-fast);
}

.partner-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(42, 157, 143, 0.12);
}

.partner-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partner-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.partner-badge {
    background: rgba(42, 157, 143, 0.12);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    display: inline-block;
}

.badge-admis {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.badge-refuse {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* ==========================================================================
   BOUTONS & FORMULAIRES
   ========================================================================== */
.btn {
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-secondary {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.full-width { width: 100%; }

input[type="text"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ==========================================================================
   FOOTER COMPACT
   ========================================================================== */
.footer {
    background: #06080e;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem 1.25rem 1.5rem;
}
.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 2rem;
}
.footer-block h4 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-block a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}
.footer-block a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1250px;
    margin: 1.25rem auto 0 auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
}

/* ==========================================================================
   LOADER PRELOADER RAPIDE
   ========================================================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s ease-out;
}

.loader-wrapper.fade-out {
    opacity: 0;
    transform: scale(1.02);
    visibility: hidden;
    pointer-events: none;
}

.loader-orbit-ring {
    width: 95px;
    height: 95px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 50px;
    animation: loaderFill 0.15s ease-out forwards;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }
    .nav-links.is-open { max-height: 500px; padding: 1rem 1.25rem; }
    .nav-item { width: 100%; justify-content: flex-start; }
    .footer-container { grid-template-columns: repeat(2, 1fr) !important; gap: 2rem !important; }
}

@media (max-width: 768px) {
    .partners-grid, .stats-section .container, [style*="grid-template-columns: repeat(3, 1fr)"], [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    .footer-container { grid-template-columns: 1fr !important; }
}
