/* =========================================================
   RESET
========================================================= */

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


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #F5A627;
    --primary-dark: #02AD05;

    --text: #172033;
    --text-light: #6f7a8c;

    --border: #e3e8ef;

    --background: #f3f7fc;

    --success: #159447;
    --success-bg: #e8f8ef;

    --danger: #d63838;
    --danger-bg: #fff0f0;

    --white: #ffffff;
}


/* =========================================================
   BODY
========================================================= */

body {

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #eef4ff 0%,
            #f8fbff 50%,
            #edf8f4 100%
        );
}


/* =========================================================
   PAGE ACCUEIL
========================================================= */

.background {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 25px;
}


.container {

    width: 100%;

    max-width: 520px;
}


/* =========================================================
   CARD
========================================================= */

.card {

    background: var(--white);

    border-radius: 25px;

    padding: 45px 40px;

    box-shadow:
        0 25px 70px rgba(31, 56, 100, .12);
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display: flex;

    justify-content: center;

    margin-bottom: 25px;
}


.logo-circle {

    width: 78px;

    height: 78px;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 31px;

    font-weight: 800;

    box-shadow:
        0 12px 30px rgba(23, 105, 224, .25);
}


/* =========================================================
   TITRE
========================================================= */

.card h1 {

    text-align: center;

    font-size: 28px;

    line-height: 1.3;

    margin-bottom: 12px;
}


.description {

    text-align: center;

    color: var(--text-light);

    line-height: 1.6;

    margin-bottom: 35px;
}


/* =========================================================
   FORMULAIRE
========================================================= */

.form-group {

    margin-bottom: 22px;
}


.form-group label {

    display: block;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 9px;
}


.input-wrapper {

    position: relative;
}


.input-icon {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 18px;
}


.input-wrapper input {

    width: 100%;

    height: 58px;

    border: 2px solid var(--border);

    border-radius: 13px;

    outline: none;

    padding:
        0
        15px
        0
        48px;

    font-size: 16px;

    color: var(--text);

    transition: .2s;
}


.input-wrapper input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(23, 105, 224, .10);
}


.input-help {

    color: #929baa;

    font-size: 12px;

    margin-top: 8px;
}


/* =========================================================
   BOUTON
========================================================= */

.btn-consulter {

    width: 100%;

    height: 58px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition: .2s;

    box-shadow:
        0 10px 25px rgba(23, 105, 224, .22);
}


.btn-consulter:hover {

    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(23, 105, 224, .28);
}


.btn-consulter:disabled {

    opacity: .7;

    cursor: wait;

    transform: none;
}


/* =========================================================
   MESSAGE
========================================================= */

.message {

    display: none;

    margin-top: 18px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}


.message.error {

    display: block;

    color: var(--danger);

    background: var(--danger-bg);
}


.message.success {

    display: block;

    color: var(--success);

    background: var(--success-bg);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    margin-top: 35px;

    padding-top: 22px;

    border-top: 1px solid #edf0f5;

    text-align: center;

    color: #929baa;

    font-size: 12px;

    line-height: 1.8;
}


.copyright {

    margin-top: 5px;
}


/* =========================================================
   PAGE RESULTAT
========================================================= */

.result-page {

    min-height: 100vh;

    padding: 35px 20px;
}


.result-container {

    max-width: 950px;

    margin: auto;
}


/* =========================================================
   HEADER RESULTAT
========================================================= */

.result-header {

    background: white;

    border-radius: 20px;

    padding: 20px 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 10px;

    box-shadow:
        0 15px 45px rgba(31, 56, 100, .08);
}


.small-title {

    font-size: 11px;

    font-weight: 800;

    color: var(--primary);

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}


.result-header h1 {

    font-size: 27px;
}


.result-logo {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    font-weight: 800;
}


/* =========================================================
   CARDS RESULTAT
========================================================= */

.result-card-box {

    background: white;

    border-radius: 20px;

    padding: 20px;

    margin-bottom: 10px;

    box-shadow:
        0 15px 45px rgba(31, 56, 100, .07);
}


/* =========================================================
   TITRES SECTIONS
========================================================= */

.section-title {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 25px;
}


.section-icon {

    width: 45px;

    height: 45px;

    border-radius: 12px;

    background: #edf4ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;
}


.section-title h2 {

    font-size: 18px;

    margin-bottom: 3px;
}


.section-title p {

    color: #8993a3;

    font-size: 12px;
}


/* =========================================================
   INFORMATIONS
========================================================= */

.info-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}


.info-item {

    background: #f8fafd;

    border: 1px solid #edf0f5;

    border-radius: 12px;

    padding: 17px;

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.info-item.full {

    grid-column: 1 / -1;
}


.info-item.highlight {

    background: #edf5ff;

    border-color: #d7e7ff;
}


.info-label {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .8px;

    color: #8791a0;
}


.info-value {

    font-size: 15px;

    font-weight: 600;

    color: #263348;

    word-break: break-word;
}


/* =========================================================
   RESULTAT
========================================================= */

.result-zone {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    flex-wrap: wrap;
}


.decision {

    display: flex;

    align-items: center;

    gap: 15px;
}


.status-icon {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    font-weight: 800;
}


.status-admis {

    background: var(--success-bg);

    color: var(--success);
}


.status-autre {

    background: var(--danger-bg);

    color: var(--danger);
}


.decision-label {

    display: block;

    color: #8993a3;

    font-size: 10px;

    font-weight: 800;

    margin-bottom: 5px;
}


.decision-value {

    font-size: 23px;

    font-weight: 800;
}


.status-text-admis {

    color: var(--success);
}


.status-text-autre {

    color: var(--danger);
}


/* =========================================================
   MOYENNE
========================================================= */

.average {

    text-align: center;

    border-left: 1px solid #e8ecf2;

    padding-left: 30px;
}


.average-label {

    display: block;

    color: #8993a3;

    font-size: 12px;

    margin-bottom: 4px;
}


.average-value {

    font-size: 30px;

    font-weight: 800;

    color: var(--primary);
}


/* =========================================================
   MENTION
========================================================= */

.mention {

    padding: 12px 18px;

    background: #f5f8fc;

    border-radius: 10px;

    color: #697588;

    font-size: 13px;
}


.mention strong {

    color: #1c2a40;
}


/* =========================================================
   ACTIONS
========================================================= */
.actions {
    width: 100%;
}

.action-button {

    height: 55px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
	
	width : 100%;

    cursor: pointer;

    border: none;
}


.btn-back {

    background: white;

    color: #344158;

    border: 1px solid #dfe5ed;
}


.btn-print {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;
}


/* =========================================================
   FOOTER RESULTAT
========================================================= */

.result-footer {

    text-align: center;

    color: #929baa;

    font-size: 11px;

    margin-top: 25px;

    line-height: 1.8;
}


/* =========================================================
   ERREUR
========================================================= */

.error-card {

    background: white;

    border-radius: 22px;

    padding: 60px 30px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(31, 56, 100, .10);
}


.error-icon {

    width: 70px;

    height: 70px;

    border-radius: 50%;

    background: var(--danger-bg);

    color: var(--danger);

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

    font-size: 30px;

    font-weight: 800;
}


.error-card h1 {

    font-size: 25px;

    margin-bottom: 12px;
}


.error-card p {

    color: #7b8595;

    margin-bottom: 8px;
}


.error-numtable {

    display: block;

    font-weight: 800;

    margin-bottom: 30px;
}


/* =========================================================
   IMPRESSION
========================================================= */

@media print {

    body {

        background: white;
    }


    .actions {

        display: none;
    }


    .result-page {

        padding: 0;
    }


    .result-card-box,
    .result-header {

        box-shadow: none;

        border: 1px solid #ddd;
    }

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .background {

        padding: 15px;
    }


    .card {

        padding: 35px 23px;

        border-radius: 20px;
    }


    .card h1 {

        font-size: 24px;
    }


    .result-page {

        padding: 15px 10px;
    }


    .result-header {

        padding: 22px;

        border-radius: 16px;
    }


    .result-header h1 {

        font-size: 21px;
    }


    .result-logo {

        width: 50px;

        height: 50px;

        font-size: 20px;
    }


    .result-card-box {

        padding: 20px;

        border-radius: 16px;
    }


    .info-grid {

        grid-template-columns: 1fr;
    }


    .info-item.full {

        grid-column: auto;
    }


    .result-zone {

        flex-direction: column;

        align-items: stretch;
    }


    .average {

        border-left: none;

        border-top: 1px solid #e8ecf2;

        padding-left: 0;

        padding-top: 20px;
    }


    .actions {

        grid-template-columns: 1fr;
    }

}

/* =========================================================
   ALERTE CANDIDAT ADMIS
   ========================================================= */

.admission-alert {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2px;
    padding: 5px 5px;
    background: #eaf8ef;
    border: 2px solid #28a745;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(40, 167, 69, 0.12);
    margin-top: -20px;
}


/* Icône */

.admission-icon {
    flex-shrink: 0;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #28a745;
    color: white;

    border-radius: 50%;

    font-size: 30px;
    font-weight: bold;
}


/* Contenu */

.admission-content {
    flex: 1;
}


/* Titre */

.admission-title {
    color: #198754;

    font-size: 24px;
    font-weight: 800;

    margin-bottom: 5px;
}


/* Message */

.admission-text {
    color: #216e39;

    font-size: 15px;
    font-weight: 500;
}


/* Mobile */

@media (max-width: 700px) {

    .admission-alert {
        padding: 16px;
        gap: 13px;
    }

    .admission-icon {
        width: 44px;
        height: 44px;

        font-size: 24px;
    }

    .admission-title {
        font-size: 19px;
    }

    .admission-text {
        font-size: 14px;
    }

}


```css
/* =========================================================
   IMPRESSION - UNE SEULE PAGE A4
   ========================================================= */

@media print {

    /* Format de la page */
    @page {
        size: A4 portrait;
        margin: 8mm;
    }


    /* Réinitialisation */
    html,
    body {
        width: 100%;
        height: auto;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;

        font-family: Arial, Helvetica, sans-serif;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


    /* Masquer les éléments inutiles */
    .actions,
    button,
    .btn-back,
    .btn-print {
        display: none !important;
    }


    /* Page de résultat */
    .result-page {
        width: 100% !important;
        min-height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;
    }


    /* Conteneur */
    .result-container {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        box-shadow: none !important;
        border: none !important;
    }


    /* =====================================================
       EN-TÊTE
       ===================================================== */

    .result-header {
        padding: 5px 0 8px 0 !important;
        margin: 0 0 8px 0 !important;

        text-align: center;

        page-break-after: avoid !important;
        break-after: avoid !important;
    }


    .result-logo {
        width: 38px !important;
        height: 38px !important;

        margin: 0 auto 5px auto !important;

        font-size: 21px !important;

        display: flex;
        align-items: center;
        justify-content: center;
    }


    .result-header h1 {
        margin: 0 !important;

        font-size: 18px !important;
        line-height: 1.2 !important;
    }


    .result-header p {
        margin: 2px 0 0 0 !important;

        font-size: 10px !important;
    }


    /* =====================================================
       ALERTE ADMIS
       ===================================================== */

    .admission-alert {

        width: 100% !important;
        box-sizing: border-box !important;

        margin: 0 0 9px 0 !important;
        padding: 9px 12px !important;

        border-radius: 7px !important;

        display: flex !important;
        align-items: center !important;

        gap: 10px !important;

        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }


    .admission-icon {

        width: 32px !important;
        height: 32px !important;

        min-width: 32px !important;

        font-size: 19px !important;
    }


    .admission-title {

        margin: 0 0 2px 0 !important;

        font-size: 14px !important;
        line-height: 1.2 !important;
    }


    .admission-text {

        font-size: 9px !important;
        line-height: 1.3 !important;
    }


    /* =====================================================
       BLOCS D'INFORMATIONS
       ===================================================== */

    .result-card-box {

        width: 100% !important;
        box-sizing: border-box !important;

        margin: 0 0 8px 0 !important;
        padding: 9px 11px !important;

        border-radius: 7px !important;

        box-shadow: none !important;

        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }


    /* Titres des sections */

    .section-title {

        margin: 0 0 6px 0 !important;

        font-size: 12px !important;
        line-height: 1.2 !important;
    }


    .section-icon {

        font-size: 13px !important;
    }


    /* =====================================================
       GRILLE
       ===================================================== */

    .info-grid {

        display: grid !important;

        grid-template-columns: repeat(2, 1fr) !important;

        gap: 5px 15px !important;

        width: 100% !important;
    }


    .info-item {

        min-height: auto !important;

        padding: 4px 0 !important;

        border-bottom: 1px solid #eeeeee !important;

        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }


    .info-label {

        font-size: 8px !important;

        line-height: 1.2 !important;

        margin-bottom: 2px !important;
    }


    .info-value {

        font-size: 10px !important;

        line-height: 1.2 !important;

        font-weight: 600 !important;

        word-break: break-word !important;
    }


    .info-icon {

        font-size: 9px !important;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .result-footer {

        margin: 5px 0 0 0 !important;
        padding: 5px 0 0 0 !important;

        border-top: 1px solid #dddddd !important;

        font-size: 7px !important;

        line-height: 1.3 !important;

        text-align: center !important;

        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }


    /* =====================================================
       EMPÊCHER LES COUPURES
       ===================================================== */

    .result-header,
    .admission-alert,
    .result-card-box,
    .result-footer {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }


    /* Pas de deuxième page volontaire */
    .result-page {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

}


```css
/* ==========================================================
   ENTÊTE INSTITUTIONNELLE DECO
   ========================================================== */

.deco-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dfe3e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.deco-header-inner {
    width: 100%;
    max-width: 1250px;
    min-height: 82px;
    margin: 0 auto;
    padding: 12px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   PARTIE GAUCHE
   ---------------------------------------------------------- */

.deco-direction {
    flex: 1;
}

.deco-title {
    color: #1769e0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}


/* ----------------------------------------------------------
   PARTIE DROITE
   ---------------------------------------------------------- */

.deco-ministere {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 15px;
}

.ministere-text {
    max-width: 570px;

    color: #333333;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;

    text-align: right;
    text-transform: uppercase;
}

.deco-armoirie {
    display: block;

    width: 62px;
    height: 62px;

    object-fit: contain;
    flex-shrink: 0;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 900px) {

    .deco-header-inner {
        min-height: auto;
        padding: 12px 18px;

        flex-direction: column;

        justify-content: center;
        text-align: center;

        gap: 10px;
    }

    .deco-direction {
        width: 100%;
    }

    .deco-title {
        font-size: 16px;
    }

    .deco-ministere {
        width: 100%;
        justify-content: center;
    }

    .ministere-text {
        max-width: 500px;
        font-size: 9px;
        text-align: center;
    }

    .deco-armoirie {
        width: 50px;
        height: 50px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .deco-header-inner {
        padding: 10px 12px;
    }

    .deco-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .deco-ministere {
        flex-direction: column;
        gap: 7px;
    }

    .ministere-text {
        max-width: 100%;
        font-size: 8px;
        line-height: 1.4;
    }

    .deco-armoirie {
        width: 45px;
        height: 45px;
    }
}


/* ==========================================================
   IMPRESSION
   ========================================================== */

@media print {

    .deco-header {
        background: #ffffff !important;
        border-bottom: 1px solid #cccccc !important;
        box-shadow: none !important;
    }

    .deco-header-inner {
        min-height: auto !important;
        padding: 4px 5px !important;

        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;

        gap: 10px !important;
    }

    .deco-direction {
        flex: 1 !important;
        width: auto !important;
    }

    .deco-title {
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .deco-ministere {
        width: auto !important;

        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;

        gap: 7px !important;
    }

    .ministere-text {
        max-width: 370px !important;

        font-size: 7px !important;
        line-height: 1.2 !important;

        text-align: right !important;
    }

    .deco-armoirie {
        width: 38px !important;
        height: 38px !important;
    }

}

.waiting-alert {
    background: #C2410C;
    border: 1px solid #9A2F08;
    color: #FFFFFF;
}

.waiting-alert .admission-icon {
    color: #FFFFFF;
}

.waiting-alert .admission-title {
    color: #FFFFFF;
}

.waiting-alert .admission-text {
    color: #FFF7ED;
}



