@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Share+Tech+Mono&display=swap');

:root {
    --bg: #080b0e;
    --panel: #10151a;
    --panel-dark: #0c1014;
    --line: #25303a;
    --text: #edf2f5;
    --muted: #9aa6ae;
    --accent: #d8e0e5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 80% 0%,
            #172029 0%,
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}


/* =========================
   HEADER
========================= */

.topbar {
    height: 72px;

    border-bottom: 1px solid var(--line);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(8, 11, 14, 0.92);

    backdrop-filter: blur(10px);

    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.2px;
}

.brand-mark {
    border: 1px solid #7f8a92;

    padding: 7px 8px;

    font-weight: bold;
}

.topbar nav {
    display: flex;
    gap: 28px;

    color: var(--muted);

    font-size: 13px;
}

.topbar nav a {
    transition: 0.2s;
}

.topbar nav a:hover {
    color: white;
}


/* =========================
   HERO
========================= */

.hero {
    max-width: 1180px;

    margin: auto;

    padding: 110px 6% 120px;

    border-bottom: 1px solid var(--line);
}

.eyebrow {
    font-family: "Share Tech Mono", monospace;

    font-size: 12px;

    letter-spacing: 2px;

    color: #aeb8be;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 82px);

    line-height: 0.98;

    letter-spacing: -3px;

    margin: 22px 0;
}

.hero h1 span {
    color: #9faab1;
}

.hero p {
    max-width: 650px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 32px;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--line);

    background: #12181d;

    color: #e9eef1;

    padding: 12px 17px;

    border-radius: 5px;

    font-weight: 600;

    font-size: 13px;

    cursor: pointer;

    transition: 0.2s;
}

.button:hover {
    border-color: #77838b;

    transform: translateY(-1px);
}

.button.primary {
    background: #e9eef1;

    color: #080b0e;

    border-color: #e9eef1;
}

.button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


/* =========================
   SECTIONS
========================= */

.section {
    max-width: 1180px;

    margin: auto;

    padding: 90px 6%;
}

.section.alt {
    max-width: none;

    background: #0b0f13;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);

    padding-left: calc((100% - 1180px) / 2 + 6%);
    padding-right: calc((100% - 1180px) / 2 + 6%);
}

.section-head {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 40px;

    margin-bottom: 38px;
}

.section-head h2 {
    font-size: 32px;

    margin: 10px 0 0;
}

.section-head p {
    max-width: 470px;

    color: var(--muted);

    line-height: 1.7;
}


/* =========================
   DIVISION CARDS
========================= */

.grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}

.card {
    background:
        linear-gradient(
            145deg,
            #11171c,
            #0c1014
        );

    border: 1px solid var(--line);

    padding: 28px;

    min-height: 280px;

    display: flex;

    flex-direction: column;

    transition: 0.2s;
}

.card:hover {
    border-color: #4c5861;

    transform: translateY(-2px);
}

.card .code {
    font-family: "Share Tech Mono", monospace;

    font-size: 12px;

    color: #88949c;
}

.card h3 {
    font-size: 27px;

    margin: 28px 0 4px;
}

.unit {
    font-family: "Share Tech Mono", monospace;

    font-size: 12px;

    color: #a8b2b8;

    letter-spacing: 1.2px;
}

.card p {
    color: var(--muted);

    line-height: 1.7;

    flex: 1;
}

.card .button {
    align-self: flex-start;
}

.card.muted {
    opacity: 0.7;
}


/* =========================
   DOCUMENTS
========================= */

.doc-list {
    display: grid;

    gap: 10px;
}

.doc {
    display: flex;

    align-items: center;

    gap: 20px;

    border: 1px solid var(--line);

    padding: 18px 20px;

    background: #0d1216;
}

.doc > span {
    font-family: "Share Tech Mono", monospace;

    font-size: 12px;

    color: #89959d;
}

.doc strong {
    display: block;
}

.doc small {
    display: block;

    color: #65717a;

    margin-top: 4px;
}


/* =========================
   ADMIN
========================= */

.admin-cta {
    max-width: 1180px;

    margin: auto;

    padding: 80px 6%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}

.admin-cta h2 {
    font-size: 32px;

    margin: 10px 0 0;
}

.admin-cta p {
    color: var(--muted);
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    border-top: 1px solid var(--line);

    padding: 25px;

    color: #56616a;

    font-family: "Share Tech Mono", monospace;

    font-size: 11px;

    letter-spacing: 1px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

    .topbar nav {
        display: none;
    }

    .hero {
        padding-top: 70px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .admin-cta {
        display: block;
    }

    .section-head p {
        margin-top: 18px;
    }

    .admin-cta .button {
        margin-top: 20px;
    }

    .section.alt {
        padding-left: 6%;
        padding-right: 6%;
    }
}
/* ========================= */
/* FORMULAIRES — ZONES DE RÉPONSE */
/* ========================= */

.form-field textarea,
.unit-question textarea,
.situation-card textarea {
    width: 100%;
    min-height: 130px;
    box-sizing: border-box;

    background: #11161c;
    color: #e8edf2;

    border: 1px solid #2b3540;
    border-radius: 10px;

    padding: 16px 18px;

    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 1.6;

    resize: none;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field textarea::placeholder,
.unit-question textarea::placeholder,
.situation-card textarea::placeholder {
    color: #6f7b87;
}

.form-field textarea:focus,
.unit-question textarea:focus,
.situation-card textarea:focus {
    background: #131a21;
    border-color: #657585;
    box-shadow: 0 0 0 3px rgba(120, 140, 160, 0.08);
}


/* Questions spécifiques aux unités */

.unit-question {
    margin-bottom: 28px;
}

.unit-question label,
.situation-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #dfe6ed;
}


/* Mise en situation */

.situation-card {
    margin-top: 28px;
    margin-bottom: 32px;

    padding: 24px;

    background: #0e1319;
    border: 1px solid #27313b;
    border-radius: 12px;
}

.situation-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #f0f3f6;
}

.situation-card p {
    color: #929eaa;
    line-height: 1.7;
    margin-bottom: 22px;
}


/* Titres des questions */

#questionsContainer > h3 {
    margin-top: 35px;
    margin-bottom: 25px;

    color: #eef2f5;
}

/* =========================================================
   ADMINISTRATION — ÉCRAN DE CONNEXION
   ========================================================= */

.admin-login-box {
    max-width: 460px;
    margin: 45px auto 0;

    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 29, 37, 0.98),
            rgba(12, 17, 23, 0.98)
        );

    border: 1px solid #303c48;
    border-radius: 16px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


/* Champs */

.admin-login-box .form-field {
    margin-bottom: 22px;
}

.admin-login-box label {
    display: block;

    margin-bottom: 9px;

    color: #dfe6ed;

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.admin-login-box input {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    background: #0d1218;
    color: #edf2f6;

    border: 1px solid #2b3743;
    border-radius: 9px;

    font-family: Inter, sans-serif;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-login-box input::placeholder {
    color: #65717d;
}


.admin-login-box input:focus {
    background: #111820;

    border-color: #8c98a5;

    box-shadow:
        0 0 0 3px rgba(140, 152, 165, 0.10);
}


/* Bouton */

.admin-login-box .btn {
    width: 100%;

    margin-top: 5px;

    padding: 14px 20px;

    border: 1px solid #657381;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #3f4d5a,
            #293540
        );

    color: #ffffff;

    font-weight: 700;

    letter-spacing: 0.04em;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.admin-login-box .btn:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            #526170,
            #34414d
        );

    border-color: #8a98a6;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);
}


.admin-login-box .btn:active {
    transform: translateY(0);
}


/* Petit message sous le bouton */

.login-message {
    min-height: 20px;

    margin: 18px 0 0;

    text-align: center;

    color: #8996a3;

    font-size: 13px;
}


/* =========================================================
   ADMIN — STATUTS EN COULEUR
   ========================================================= */

.application-status {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.04em;
}


.status-pending {
    color: #e6b85c;

    background: rgba(230, 184, 92, 0.10);

    border: 1px solid rgba(230, 184, 92, 0.25);
}


.status-accepted {
    color: #63d39a;

    background: rgba(99, 211, 154, 0.10);

    border: 1px solid rgba(99, 211, 154, 0.25);
}


.status-rejected {
    color: #e87575;

    background: rgba(232, 117, 117, 0.10);

    border: 1px solid rgba(232, 117, 117, 0.25);
}


/* =========================================================
   ADMIN — BOUTONS D'ACTION
   ========================================================= */

.application-actions {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}


.application-actions .btn {
    flex: 1;
}


/* =========================================================
   ADMIN — CARTES
   ========================================================= */

.application-card {
    padding: 22px;

    margin-bottom: 15px;

    background: #10161d;

    border: 1px solid #27323d;
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.application-card:hover {
    transform: translateY(-2px);

    background: #121a22;

    border-color: #3d4b59;
}


.application-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.application-card-header h3 {
    margin: 5px 0 0;

    color: #edf2f6;
}


.application-card-info {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 20px;
}


.application-card-info span {
    display: flex;
    flex-direction: column;

    gap: 4px;

    color: #929eaa;

    font-size: 13px;
}


.application-card-info strong {
    color: #dfe6ed;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


/* =========================================================
   ADMIN — RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .admin-login-box {
        margin-top: 30px;

        padding: 22px;
    }


    .application-card-header {
        flex-direction: column;
    }


    .application-card-info {
        grid-template-columns: 1fr;
    }


    .application-actions {
        flex-direction: column;
    }

}

/* =========================================================
   ADMIN — FILTRES
   ========================================================= */

.admin-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 30px;
}

.admin-filters .form-field {
    margin: 0;
}

.admin-filters label {
    display: block;

    margin-bottom: 9px;

    color: #aeb9c4;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-filters select {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 15px;

    background: #0d1218;
    color: #dfe6ed;

    border: 1px solid #2b3743;
    border-radius: 9px;

    font-family: Inter, sans-serif;
    font-size: 14px;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-filters select:hover {
    background: #111820;
    border-color: #465462;
}

.admin-filters select:focus {
    border-color: #7c8996;

    box-shadow:
        0 0 0 3px rgba(140, 152, 165, 0.09);
}


/* =========================================================
   ADMIN — BOUTON CONSULTER
   ========================================================= */

.view-application {
    width: 100%;

    margin-top: 5px;

    padding: 12px 18px;

    background:
        linear-gradient(
            135deg,
            #202a34,
            #151d25
        );

    border: 1px solid #394754;
    border-radius: 9px;

    color: #dfe6ed;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.03em;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.view-application:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            #303d4a,
            #202a34
        );

    border-color: #687786;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   ADMIN — MODALE DOSSIER
   ========================================================= */

.application-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at center,
            rgba(70, 84, 98, 0.12),
            rgba(4, 7, 10, 0.92) 55%
        );

    backdrop-filter: blur(8px);

    animation:
        modalFadeIn 0.2s ease;
}


.application-modal-content {
    width: min(950px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 34px;

    background:
        linear-gradient(
            145deg,
            #151d25,
            #0c1117
        );

    border: 1px solid #34414e;
    border-radius: 18px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    animation:
        modalSlideUp 0.25s ease;
}


/* =========================================================
   ADMIN — EN-TÊTE DU DOSSIER
   ========================================================= */

.application-modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    padding-bottom: 25px;

    margin-bottom: 28px;

    border-bottom: 1px solid #27323d;
}


.application-modal-header h2 {
    margin: 6px 0 0;

    color: #f1f4f7;

    font-size: 27px;
}


.modal-close {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #111820;

    border: 1px solid #303c48;
    border-radius: 9px;

    color: #aab5c0;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.modal-close:hover {
    background: #1a232c;

    border-color: #667583;

    color: #ffffff;
}


/* =========================================================
   ADMIN — INFORMATIONS DU CANDIDAT
   ========================================================= */

.application-details {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 35px;
}


.application-details > div {
    padding: 17px 18px;

    background: #0f151b;

    border: 1px solid #26313b;
    border-radius: 10px;
}


.application-details span {
    display: block;

    margin-bottom: 7px;

    color: #74818d;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.application-details strong {
    display: block;

    color: #e3e9ee;

    font-size: 14px;

    word-break: break-word;
}


/* =========================================================
   ADMIN — RÉPONSES
   ========================================================= */

.application-answers {
    padding-top: 5px;
}


.application-answers > .eyebrow {
    margin-bottom: 20px;
}


.answer-block {
    margin-bottom: 18px;

    padding: 20px 22px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 35, 0.95),
            rgba(13, 18, 24, 0.95)
        );

    border: 1px solid #28343f;
    border-radius: 11px;
}


.answer-block h4 {
    margin: 0 0 10px;

    color: #dfe6ed;

    font-size: 14px;
}


.answer-block p {
    margin: 0;

    color: #9aa6b1;

    font-size: 14px;

    line-height: 1.7;

    white-space: pre-wrap;
}


/* =========================================================
   ADMIN — ACTIONS DU DOSSIER
   ========================================================= */

.application-modal .application-actions {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid #27323d;
}


.application-modal .application-actions .btn {
    min-height: 48px;

    border-radius: 9px;

    font-weight: 700;
}


/* Bouton accepter */

.application-modal #acceptApplication {
    background:
        linear-gradient(
            135deg,
            #294b3c,
            #1c3329
        );

    border: 1px solid #3d6d56;

    color: #b9e8cf;
}

.application-modal #acceptApplication:hover {
    background:
        linear-gradient(
            135deg,
            #35634e,
            #244535
        );

    border-color: #5d9879;
}


/* Bouton refuser */

.application-modal #rejectApplication {
    background:
        linear-gradient(
            135deg,
            #492d31,
            #321f23
        );

    border: 1px solid #694348;

    color: #e7b5b8;
}

.application-modal #rejectApplication:hover {
    background:
        linear-gradient(
            135deg,
            #5d383d,
            #42262b
        );

    border-color: #8a5a60;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes modalFadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes modalSlideUp {

    from {
        opacity: 0;

        transform:
            translateY(15px)
            scale(0.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   ADMIN — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .admin-filters {
        grid-template-columns: 1fr;
    }


    .application-modal {
        padding: 15px;
    }


    .application-modal-content {
        padding: 22px;

        max-height: 94vh;
    }


    .application-details {
        grid-template-columns: 1fr;
    }


    .application-modal .application-actions {
        grid-template-columns: 1fr;
    }


    .application-modal-header h2 {
        font-size: 22px;
    }

}