/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght=300;400;600;700&display=swap');

:root {
    --academy-blue: #111E62;   
    --academy-orange: #F76B00; 
    --academy-dark: #0a123a;   
    --academy-danger: #ef4444; 
    
    --card-bg: #ffffff;
    --text-color: #334155;
    --light-gray: #f1f5f9;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 20px 10px;
    min-height: 100vh;
}

/* ==========================================================================
   NAVBAR SENPLIFYE - LOGO GWÒCH, MARQUEE MITAN, QUITTER DWAT
   ========================================================================== */
.navbar {
    background: var(--academy-blue);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    height: 85px; /* Bay yon wotè fiks pou kòmsadwa */
}

/* Zòn tèks k ap defile a */
.nav-marquee {
    flex-grow: 1;
    margin: 0 60px;
    overflow: hidden;
}

.nav-marquee marquee {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 1200;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Bouton Quitter nan kwen dwat */
.btn-logout {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-logout:hover {
    background: var(--academy-orange);
}

/* Espas anba navbar a */
.nav-spacer {
    height: 115px;
}

/* ==========================================================================
   KONTNI PAJ LA
   ========================================================================== */
.main-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-header h1 {
    font-size: 2rem;
    color: var(--academy-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.main-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.module-group {
    display: flex;
    flex-direction: column;
}

.category-badge {
    align-self: flex-start;
    background-color: var(--academy-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.course-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column; 
    border: 1px solid rgba(0,0,0,0.04);
}

.video-wrapper {
    position: relative;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.animated-circle {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 4px solid var(--academy-orange);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
    animation: pulseCircle 4s infinite linear;
}

@keyframes pulseCircle {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0; }
}

.badge-status {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--academy-orange);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 4;
}

.badge-status.pou-peye {
    background: var(--academy-danger);
}

.overlay-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 18, 58, 0.96);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#access-code-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

#access-code-input:focus {
    border-color: var(--academy-orange);
    box-shadow: 0 0 10px rgba(247, 107, 0, 0.4);
}

.password-box button {
    width: 100%;
    padding: 12px;
    background: var(--academy-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.password-box button:hover {
    background: #e06200;
}

.course-info {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
}

.course-info h2 {
    font-size: 1.4rem;
    color: var(--academy-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.course-description {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.resources-section h3 {
    font-size: 1.1rem;
    color: var(--academy-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
}

.document-item:hover {
    background: #fff;
    border-color: var(--academy-orange);
    transform: translateY(-2px);
}

.doc-icon {
    font-size: 1.4rem;
    color: var(--academy-blue);
    margin-right: 12px;
}

.doc-details { flex-grow: 1; }
.doc-name { display: block; font-weight: 600; color: var(--academy-dark); font-size: 0.9rem; }
.doc-size { font-size: 0.75rem; color: #94a3b8; }
.download-icon { color: #94a3b8; }
.course-footer { text-align: center; margin-top: 20px; margin-bottom: 40px; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #64748b; font-weight: 600; transition: var(--transition); }
.back-btn:hover { color: var(--academy-orange); }


/* ==========================================================================
   RESPONSIVE (ADAPTASYON MOBIL AK GWO EKRAN)
   ========================================================================== */
   

@media (max-width: 767px) {
    .navbar {
        padding: 10px 15px;
        height: 75px;
    }
    .logo img {
        height: 45px; /* Yon ti kras pi piti sou mobil pou espas */
    }
    .nav-marquee {
        margin: 0 15px;
    }
    .nav-marquee marquee {
        font-size: 0.9rem;
    }
    .btn-logout {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .nav-spacer {
        height: 100px;
    }
}

@media (min-width: 768px) {
    body { padding: 40px; }
    .main-header h1 { font-size: 2.3rem; }
}

@media (min-width: 992px) {
    .course-card { flex-direction: row; height: 420px; }
    .video-wrapper { width: 55%; height: 100%; }
    .course-info { width: 45%; padding: 35px; overflow-y: auto; }
}


/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght=300;400;600;700&display=swap');

:root {
    --academy-blue: #111E62;   
    --academy-orange: #F76B00; 
    --academy-dark: #0a123a;   
    --academy-danger: #ef4444; 
    --card-bg: #ffffff;
    --text-color: #334155;
    --light-gray: #f1f5f9;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--light-gray); color: var(--text-color); padding: 20px 10px; min-height: 100vh; }

/* NAVBAR */
.navbar {
    background: var(--academy-blue);
    position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); height: 85px;
}
.logo img { height: 180px; width: auto; display: block; }
.nav-marquee { flex-grow: 1; margin: 0 40px; overflow: hidden; }
.nav-marquee marquee { color: #ffffff; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.btn-logout {
    color: white; background: rgba(255, 255, 255, 0.15); padding: 10px 20px; border-radius: 8px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: var(--transition);
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn-logout:hover { background: var(--academy-orange); }
.nav-spacer { height: 115px; }

/* ==========================================================================
   STYLE POU SISTÈM FILTÈ (TABS)
   ========================================================================== */

.filter-container {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap; /* Pou l ka desann liy si ekran an piti */
    padding: 0 10px;
}

.filter-btn {
    background: #ffffff;
    color: var(--academy-dark);
    border: 2px solid rgba(17, 30, 98, 0.1);
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.filter-btn i {
    font-size: 1rem;
    color: var(--academy-blue);
    transition: var(--transition);
}

.filter-btn:hover, 
.filter-btn.active {
    background: var(--academy-orange);
    color: white;
    border-color: var(--academy-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 107, 0, 0.25);
}

.filter-btn:hover i,
.filter-btn.active i {
    color: white;
}

/* ==========================================================================
   KAT YO AK LOCK SCREEN YO
   ========================================================================== */
.main-header { text-align: center; margin-bottom: 30px; }
.main-header h1 { font-size: 2rem; color: var(--academy-dark); font-weight: 700; margin-bottom: 5px;}
.main-header p { color: #64748b; font-size: 0.95rem; }

.courses-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 35px; }
.course-card-wrapper { display: flex; flex-direction: column; animation: fadeIn 0.4s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-badge {
    align-self: flex-start; background-color: var(--academy-blue); color: white;
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    margin-bottom: 15px; text-transform: uppercase;
}

.course-card { background: var(--card-bg); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.04); }
.video-wrapper { position: relative; padding: 15px; display: flex; justify-content: center; align-items: center; background: #000; width: 100%; }
.video-container { position: relative; width: 100%; z-index: 2; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.video-container video { width: 100%; height: 100%; object-fit: cover; display: block; }

.animated-circle { position: absolute; width: 260px; height: 260px; border: 4px solid var(--academy-orange); border-radius: 50%; opacity: 0.3; z-index: 1; animation: pulseCircle 4s infinite linear; }
@keyframes pulseCircle { 0% { transform: scale(0.8); opacity: 0; } 50% { opacity: 0.3; } 100% { transform: scale(1.4); opacity: 0; } }

.badge-status { position: absolute; top: 25px; right: 25px; background: var(--academy-orange); color: white; padding: 4px 14px; border-radius: 50px; font-weight: 600; font-size: 0.8rem; z-index: 4; }
.badge-status.pou-peye { background: var(--academy-danger); }

/* Lock Screen */
.overlay-lock { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 18, 58, 0.96); z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.lock-form-container { text-align: center; max-width: 280px; width: 100%; padding: 10px; color: white; }
.lock-form-container i { font-size: 2.5rem; color: #ef4444; margin-bottom: 10px; display: block; }
.lock-form-container p { font-size: 0.95rem; font-weight: 600; margin-bottom: 15px; }

.password-box { display: flex; flex-direction: column; gap: 10px; }
.password-box input { width: 100%; padding: 12px; border: 2px solid #334155; border-radius: 8px; background: #1e293b; color: white; text-align: center; font-size: 0.9rem; outline: none; transition: 0.3s; }
.password-box input:focus { border-color: var(--academy-orange); box-shadow: 0 0 10px rgba(247, 107, 0, 0.4); }
.password-box button { width: 100%; padding: 12px; background: var(--academy-orange); color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.password-box button:hover { background: #e06200; }
.error-msg { color: #ef4444; font-size: 0.8rem; margin-top: 10px; display: none; font-weight: 600; }

/* Info */
.course-info { padding: 25px 20px; display: flex; flex-direction: column; }
.course-info h2 { font-size: 1.4rem; color: var(--academy-dark); margin-bottom: 10px; font-weight: 700; }
.course-description { color: #64748b; line-height: 1.5; font-size: 0.9rem; margin-bottom: 25px; }
.resources-section h3 { font-size: 1.1rem; color: var(--academy-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.document-list { display: flex; flex-direction: column; gap: 10px; }
.document-item { display: flex; align-items: center; background: var(--light-gray); padding: 12px 15px; border-radius: 10px; text-decoration: none; color: inherit; transition: var(--transition); border: 1px solid transparent; }
.document-item:hover { background: #fff; border-color: var(--academy-orange); transform: translateY(-2px); }
.doc-icon { font-size: 1.4rem; color: var(--academy-blue); margin-right: 12px; }
.doc-details { flex-grow: 1; }
.doc-name { display: block; font-weight: 600; color: var(--academy-dark); font-size: 0.9rem; }
.doc-size { font-size: 0.75rem; color: #94a3b8; }
.download-icon { color: #94a3b8; }
.course-footer { text-align: center; margin-top: 20px; margin-bottom: 40px; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #64748b; font-weight: 600; transition: var(--transition); }
.back-btn:hover { color: var(--academy-orange); }

/* RESPONSIVE */
@media (max-width: 767px) {
    .navbar { padding: 10px 15px; height: 75px; }
    .logo img { height: 100px; }
    .nav-marquee { margin: 0 15px; }
    .nav-marquee marquee { font-size: 0.9rem; }
    .btn-logout { padding: 8px 12px; font-size: 0.8rem; }
    .nav-spacer { height: 100px; }
    .filter-container { gap: 8px; margin-bottom: 25px; }
    .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}
@media (min-width: 768px) { body { padding: 40px; } .main-header h1 { font-size: 2.3rem; } }
@media (min-width: 992px) { .course-card { flex-direction: row; height: 420px; } .video-wrapper { width: 55%; height: 100%; } .course-info { width: 45%; padding: 35px; overflow-y: auto; } }



/* ==========================================================================
   WIDGET KONTÈ LIVE
   ========================================================================== */

.live-counter-container {
    background: rgba(34, 197, 94, 0.1); /* Yon vèt trè dous */
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 30px auto;
    max-width: fit-content;
}

/* Ti pwen vèt k ap flache a */
.live-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e; /* Vèt Live */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseDot {
    to {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

.live-text {
    color: var(--academy-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.live-text strong {
    color: #22c55e;
    font-size: 1.05rem;
}

/* Pou n asire l santre byen sou mobil ak gwo ekran */
.courses-container {
    clear: both;
}




/* ==========================================================================
   STYLE : ESPACE RÉSULTATS & DASHBOARD
   ========================================================================== */



/* ==========================================================================
   STIL POU EN-TÊTE OFFICIEL BILTÈN LAN (COMPETENCE ACADEMY)
   ========================================================================== */

.institution-letterhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    gap: 10px;
    border-bottom: 6px double #111E62; /* Liy double nòb pou dokiman ofisyèl */
}

/* 1. Pati Logo a */
.letterhead-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

/* 2. Pati Santral (Enfòmasyon lekòl la) */
.letterhead-center {
    text-align: center;
    flex: 1;
}

.letterhead-center h1 {
    color: #111E62;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}


.institution-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
}

.institution-meta-info i {
    color: #111E62;
    margin-right: 3px;
}

.meta-separator {
    color: #cbd5e1;
    font-weight: 300;
}


/* Liy dekoratif anba a */
.letterhead-divider {
    height: 2px;
    background: #F76B00;
    margin-top: 4px;
    margin-bottom: 30px; /* Bay espas anvan enfòmasyon elèv la kòmanse */
}

/* ==========================================================================
   RESPONSIVE POU EN-TÊTE LA (POU MOBIL)
   ========================================================================== */
@media (max-width: 767px) {
    .institution-letterhead {
        flex-direction: column;
        text-align: center;
        padding-bottom: 15px;
        gap: 15px;
    }
    
    .letterhead-center h1 {
        font-size: 1.5rem;
    }
    
    .institution-meta-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .meta-separator {
        display: none; /* Kache ti liy dwat yo sou mobil pou yo pa anbete nou */
    }
}



   
.results-section {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 2.2rem;
    color: #111E62;
    font-weight: 800;
    margin-bottom: 10px;
}

.results-header p {
    color: #64748b;
    font-size: 0.98rem;
}

/* Écran de connexion */
.results-auth-container {
    background: #ffffff;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(17, 30, 98, 0.06);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    text-align: center;
}

.auth-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(17, 30, 98, 0.05);
    color: #111E62;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
}

.results-auth-container h3 {
    font-size: 1.4rem;
    color: #111E62;
    margin-bottom: 10px;
    font-weight: 700;
}

.results-auth-container p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.results-input-group {
    display: flex;
    gap: 10px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.results-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: 0.95rem;
    outline: none;
    color: #111E62;
    font-weight: 600;
}

.results-input-group button {
    background: #F76B00;
    color: white;
    border: none;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-input-group button:hover {
    background: #d65c00;
}

.results-error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* STRUCTURE DASHBOARD (APRE DEBLOKAJ) */
.dashboard-container {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(17, 30, 98, 0.06);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    padding: 35px;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.student-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-avatar {
    width: 55px;
    height: 55px;
    background: #111E62;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.student-profile h3 {
    font-size: 1.3rem;
    color: #111E62;
    font-weight: 700;
}

.student-profile p {
    color: #64748b;
    font-size: 0.9rem;
}

.status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.dashboard-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 25px 0;
}

/* Grille des cartes */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.dash-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(17, 30, 98, 0.03);
}

.dash-card h4 {
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Barre de progression */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #111E62, #F76B00);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.progress-percentage {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111E62;
}

/* Affichage Note */
.score-display {
    display: flex;
    align-items: baseline;
}

.big-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111E62;
}

.max-score {
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 600;
}

.score-mention {
    font-size: 0.9rem;
    font-weight: 600;
    color: #F76B00;
    margin-top: 5px;
}

/* Tableau des modules */
.modules-table-container h4 {
    font-size: 1.1rem;
    color: #111E62;
    margin-bottom: 15px;
    font-weight: 700;
}

.modules-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.modules-table th {
    background: #f1f5f9;
    padding: 12px 16px;
    color: #111E62;
    font-weight: 700;
    font-size: 0.9rem;
}

.modules-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.92rem;
    color: #334155;
}

.modules-table tr:last-child td {
    border-bottom: none;
}

.note-badge {
    font-weight: 700;
    color: #111E62;
}

.status-text {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    .dashboard-container { padding: 20px; }
    .dashboard-top { flex-direction: column; align-items: flex-start; }
    .modules-table th, .modules-table td { padding: 10px; font-size: 0.85rem; }
}
/* ==========================================================================
   STIL AJOUTE POU FOOTER REZILTA (ADDON)
   ========================================================================== */
.dashboard-footer-addon {
    margin-top: 40px;
    text-align: left;
}

/* Stil pou ti tèks legal la */
.addon-legal-text {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    font-style: italic;
    border-left: 3px solid #F76B00;
    padding-left: 12px;
    margin-bottom: 50px;
}

/* Kontènè pou siyati yo */
.addon-signatures-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Blòk chak siyati */
.signature-box {
    text-align: center;
    min-width: 180px;
    flex: 1;
}

/* Tit siyati a (Direksyon / Sceau) */
.signature-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111E62;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Liy pou yo siyen an */
.signature-line {
    width: 140px;
    border-bottom: 2px dashed #cbd5e1;
    margin: 0 auto;
}

/* Ti wonn pou Cachet lekòl la (Sceau) */
.institution-stamp {
    width: 85px;
    height: 85px;
    border: 2px dashed #cbd5e1;
    border-radius: 50%;
    margin: -35px auto 0 auto; /* Monte li pou l chita bèl anba tit la */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background-color: #fafafa;
}

/* Responsive pou ti ekran telefòn */
@media (max-width: 600px) {
    .addon-signatures-container {
        flex-direction: column;
        gap: 60px; /* Bay plis espas ant siyati yo sou mobile */
    }
    .institution-stamp {
        margin: 0 auto; /* Reyajiste marj la sou mobile */
    }
}





/* ==========================================================================
   ESPACE RÉSULTATS & DASHBOARD (Competence Academy Style)
   ========================================================================== */

/* 1. Layout Jeneral Seksyon an */
.results-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.results-header h2 {
    font-size: 2rem;
    color: #111E62;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.results-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 40px;
}

/* 2. Ekran Verifikasyon Kòd la (Auth Screen) */

.results-auth-container {
    background: #ffffff;
    max-width: 460px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(17, 30, 98, 0.05);
    border: 1px solid #e2e8f0;
}

.auth-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(17, 30, 98, 0.06);
    color: #111E62;
    border-radius: 50%;
    font-size: 2rem;
}

.results-auth-container h3 {
    font-size: 1.3rem;
    color: #0a123a;
    margin-bottom: 8px;
    font-weight: 700;
}

.results-auth-container p {
    color: #dfe4eb;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 3. Fòm Antre Kòd la (Repare pou Mobil nèt - Pase Inline style anba lòt si ti ekran) */
.results-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.results-input-group input {
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
    outline: none;
    color: #111E62;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.results-input-group input:focus {
    border-color: #111E62;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(17, 30, 98, 0.1);
}

.results-input-group button {
    width: 100%;
    background: #F76B00;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.results-input-group button:hover {
    background: #d65c00;
}

.results-input-group button:active {
    transform: scale(0.98);
}

/* Mesaj Erè */
.results-error-msg {
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 15px;
    align-items: center;
    gap: 8px;
}

/* 4. STUDENT DASHBOARD (Biltèn Ofisyèl) */
.dashboard-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    max-width: 850px;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.student-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.student-avatar {
    width: 55px;
    height: 55px;
    background: #111E62;
    color: white;
    font-size: 1.4rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.student-profile h3 {
    font-size: 1.25rem;
    color: #0a123a;
    font-weight: 700;
}

.student-profile p {
    font-size: 0.9rem;
    color: #64748b;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.dashboard-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

/* 5. Grid Kat Pwogresyon ak Mwayèn */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dash-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.dash-card h4 {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: #111E62;
    border-radius: 50px;
    transition: width 1s ease-in-out;
}

.progress-percentage {
    font-weight: 700;
    color: #111E62;
    font-size: 0.85rem;
}

/* Afichaj Nòt Mwayèn */
.score-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.big-score {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0a123a;
}

.max-score {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 600;
}

.score-mention {
    font-weight: 700;
    color: #F76B00;
    font-size: 0.85rem;
}

/* 6. Tablo Rezilta yo (Avèk woulo sekirite pou ti ekran) */
.modules-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 25px;
    background: #ffffff;
}

.modules-table-container h4 {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #111E62;
    font-size: 0.95rem;
    font-weight: 700;
}

.modules-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Anpeche tablo a kraze fòma li sou ti mobil */
}

.modules-table th {
    background: #f8fafc;
    padding: 12px 20px;
    color: #64748b;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.modules-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.9rem;
}

.modules-table tr:last-child td {
    border-bottom: none;
}

.note-badge {
    font-weight: 700;
    color: #111E62;
}

.status-text {
    font-weight: 600;
    color: #22c55e;
}

/* 7. Footer Addon (Siyati / Sceau) */
.dashboard-footer-addon {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.addon-legal-text {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 25px;
}

.addon-signatures-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.signature-box {
    flex: 1;
    min-width: 200px;
}

.signature-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a123a;
    margin-bottom: 40px;
}

.signature-line {
    width: 100%;
    height: 1px;
    background: #cbd5e1;
}

.institution-stamp {
    width: 100px;
    height: 100px;
    border: 2px dashed #111E62;
    color: #111E62;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.5;
    margin-top: 5px;
}

/* 8. Footer ak Bouton Retou */
.course-footer {
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111E62;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #F76B00;
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVE (Optimizasyon pou Ekran Laptop ak Mobil)
   ========================================================================== */

/* Pou Ekran Laptop / Desktop */
@media (min-width: 768px) {
    /* Sou gwo ekran, bouton ak input la ap vin kòt a kòt byen bèl */
    .results-input-group {
        flex-direction: row;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        padding: 5px;
        border-radius: 14px;
    }
    .results-input-group input {
        border: none;
        background: transparent;
        text-align: left;
        padding: 10px;
    }
    .results-input-group input:focus {
        box-shadow: none;
    }
    .results-input-group button {
        width: auto;
        padding: 0 25px;
        height: 46px;
    }
}

/* Pou Ti Mobil Yo (Mwens pase 480px) */
@media (max-width: 480px) {
    .dashboard-container {
        padding: 20px 15px;
    }
    .results-auth-container {
        padding: 30px 20px;
    }
    .dashboard-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .addon-signatures-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
    }
    .signature-box {
        width: 100%;
    }
}
