/* ============================================================
   PAGE SUIVI - E-KOPIA
============================================================ */


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

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

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

    background: #f8fafc;

    color: #172033;

    /*
       Espace réservé au footer fixe.
       Cela évite que le contenu soit caché derrière le footer.
    */
    padding-bottom: 85px;
}


a {
    text-decoration: none;

    color: inherit;
}


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

.suivi-header {
    width: 100%;

    height: 80px;

    background: #ffffff;

    border-bottom: 1px solid #e5eaf0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 5%;

    /*
       Le header reste visible en haut pendant le défilement.
    */
    position: sticky;

    top: 0;

    z-index: 1000;
}


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

.back-link {
    color: #1d5fd1;

    font-size: 15px;

    font-weight: 600;

    transition:
        color 0.2s ease;
}


.back-link:hover {
    color: #174fae;

    text-decoration: underline;
}


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

.suivi-logo {
    width: 125px;

    height: auto;

    display: block;

    object-fit: contain;
}


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

.suivi-page {
    width: 100%;

    min-height: calc(100vh - 80px);

    padding: 80px 20px 100px;
}


.suivi-container {
    width: min(650px, 100%);

    margin: 0 auto;
}


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

.suivi-title {
    text-align: center;

    margin-bottom: 40px;
}


.suivi-title span {
    display: inline-block;

    color: #1d5fd1;

    font-size: 14px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 12px;
}


.suivi-title h1 {
    color: #111827;

    font-size: 42px;

    line-height: 1.2;

    margin-bottom: 14px;
}


.suivi-title p {
    color: #667085;

    font-size: 16px;

    line-height: 1.7;
}


/* ============================================================
   CARTE
============================================================ */

.suivi-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 35px;

    box-shadow:
        0 12px 30px rgba(30, 50, 80, 0.06);
}


/* ============================================================
   LABEL
============================================================ */

.suivi-card label {
    display: block;

    color: #172033;

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 10px;
}


/* ============================================================
   CHAMP DE RECHERCHE
============================================================ */

.suivi-card input {
    width: 100%;

    height: 52px;

    border: 1px solid #d5dce6;

    border-radius: 8px;

    padding: 0 15px;

    color: #172033;

    background: #ffffff;

    font-size: 15px;

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

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.suivi-card input::placeholder {
    color: #98a2b3;
}


.suivi-card input:focus {
    border-color: #1d5fd1;

    box-shadow:
        0 0 0 3px rgba(29, 95, 209, 0.10);
}


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

.suivi-button {
    width: 100%;

    height: 52px;

    margin-top: 18px;

    border: none;

    border-radius: 8px;

    background: #1d5fd1;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.suivi-button:hover {
    background: #174fae;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(29, 95, 209, 0.20);
}


.suivi-button:active {
    transform: translateY(0);
}


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

.result-message {
    margin-top: 30px;

    padding: 22px;

    background: #f1f6ff;

    border: 1px solid #d9e6ff;

    border-radius: 10px;
}


.result-message h2 {
    color: #172033;

    font-size: 19px;

    margin-bottom: 10px;
}


.result-message p {
    color: #667085;

    font-size: 14px;

    line-height: 1.7;
}


.result-message strong {
    color: #1d5fd1;
}


.result-message .waiting {
    margin-top: 12px;

    color: #667085;
}


/* ============================================================
   MESSAGE D'ERREUR
============================================================ */

.error-message {
    margin-top: 20px;

    padding: 15px 18px;

    background: #fff5f5;

    border: 1px solid #ffd5d5;

    border-radius: 8px;

    color: #b42318;

    font-size: 14px;

    line-height: 1.6;
}


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

.suivi-footer {
    position: fixed;

    left: 0;

    bottom: 0;

    width: 100%;

    height: 65px;

    padding: 10px 5%;

    background: #111827;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    /*
       Très grande valeur pour que le footer
       reste au-dessus de tous les éléments.
    */
    z-index: 99999;

    box-shadow:
        0 -3px 15px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   NOM
============================================================ */

.suivi-footer strong {
    display: block;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;
}


/* ============================================================
   CONTACTS
============================================================ */

.suivi-footer div {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 20px;
}


/* ============================================================
   LIENS CONTACT
============================================================ */

.suivi-footer a {
    display: inline-flex;

    align-items: center;

    color: #c7d0df;

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    transition:
        color 0.2s ease;
}


.suivi-footer a:hover {
    color: #ffffff;

    text-decoration: underline;
}


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

@media (max-width: 900px) {

    body {
        padding-bottom: 100px;
    }


    .suivi-footer {
        height: 78px;

        padding: 10px 4%;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 7px;
    }


    .suivi-footer div {
        justify-content: center;

        gap: 5px 18px;
    }

}


/* ============================================================
   TÉLÉPHONE
============================================================ */

@media (max-width: 700px) {

    body {
        /*
           Espace suffisant pour le footer de 90px.
        */
        padding-bottom: 105px;
    }


    /* --------------------------------------------------------
       HEADER
    -------------------------------------------------------- */

    .suivi-header {
        width: 100%;

        height: 70px;

        padding: 0 4%;
    }


    .suivi-logo {
        width: 100px;
    }


    .back-link {
        font-size: 13px;
    }


    /* --------------------------------------------------------
       PAGE
    -------------------------------------------------------- */

    .suivi-page {
        min-height: calc(100vh - 70px);

        padding: 55px 16px 100px;
    }


    .suivi-container {
        width: 100%;
    }


    /* --------------------------------------------------------
       TITRE
    -------------------------------------------------------- */

    .suivi-title {
        margin-bottom: 30px;
    }


    .suivi-title span {
        font-size: 12px;
    }


    .suivi-title h1 {
        font-size: 34px;

        line-height: 1.2;
    }


    .suivi-title p {
        font-size: 15px;

        line-height: 1.7;
    }


    /* --------------------------------------------------------
       CARTE
    -------------------------------------------------------- */

    .suivi-card {
        width: 100%;

        padding: 25px;

        border-radius: 12px;
    }


    /* --------------------------------------------------------
       CHAMP
    -------------------------------------------------------- */

    .suivi-card input {
        height: 50px;

        font-size: 14px;
    }


    /* --------------------------------------------------------
       BOUTON
    -------------------------------------------------------- */

    .suivi-button {
        height: 50px;

        font-size: 14px;
    }


    /* --------------------------------------------------------
       RESULTAT
    -------------------------------------------------------- */

    .result-message {
        margin-top: 25px;

        padding: 18px;
    }


    .result-message h2 {
        font-size: 18px;
    }


    .result-message p {
        font-size: 13px;
    }


    /* --------------------------------------------------------
       FOOTER FIXE SUR TÉLÉPHONE
    -------------------------------------------------------- */

    .suivi-footer {
        /*
           IMPORTANT :
           Ne pas mettre position: relative ici.
        */
        position: fixed;

        left: 0;

        bottom: 0;

        width: 100%;

        height: 90px;

        min-height: 90px;

        padding: 10px 15px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 7px;

        z-index: 99999;

        margin: 0;

        box-shadow:
            0 -3px 15px rgba(0, 0, 0, 0.08);
    }


    .suivi-footer strong {
        width: 100%;

        text-align: center;

        font-size: 11px;

        line-height: 1.3;
    }


    .suivi-footer div {
        width: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        flex-wrap: wrap;

        gap: 5px 12px;
    }


    .suivi-footer a {
        font-size: 10px;

        line-height: 1.3;

        white-space: nowrap;
    }

}


/* ============================================================
   TRÈS PETIT TÉLÉPHONE
============================================================ */

@media (max-width: 380px) {

    body {
        padding-bottom: 105px;
    }


    /* --------------------------------------------------------
       HEADER
    -------------------------------------------------------- */

    .suivi-header {
        height: 65px;

        padding: 0 4%;
    }


    .suivi-logo {
        width: 90px;
    }


    .back-link {
        font-size: 12px;
    }


    /* --------------------------------------------------------
       PAGE
    -------------------------------------------------------- */

    .suivi-page {
        padding: 45px 12px 100px;
    }


    /* --------------------------------------------------------
       TITRE
    -------------------------------------------------------- */

    .suivi-title h1 {
        font-size: 29px;
    }


    .suivi-title p {
        font-size: 13px;
    }


    /* --------------------------------------------------------
       CARTE
    -------------------------------------------------------- */

    .suivi-card {
        padding: 20px 17px;
    }


    .suivi-card label {
        font-size: 14px;
    }


    .suivi-card input {
        height: 48px;

        font-size: 13px;
    }


    .suivi-button {
        height: 48px;

        font-size: 13px;
    }


    /* --------------------------------------------------------
       FOOTER TOUJOURS FIXE
    -------------------------------------------------------- */

    .suivi-footer {
        position: fixed;

        left: 0;

        bottom: 0;

        width: 100%;

        height: 90px;

        min-height: 90px;

        padding: 10px 12px;

        z-index: 99999;
    }


    .suivi-footer strong {
        font-size: 10px;
    }


    .suivi-footer a {
        font-size: 9px;
    }

}