/* ===================================================== */
/* RESET GLOBAL                                           */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;

    overflow: hidden;

    font-family: Arial, sans-serif;
}

/* ===================================================== */
/* CONTENEUR PRINCIPAL                                    */
/* ===================================================== */

#wrapper {
    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;

    background-color: #f0f0f0;

    overflow: hidden;
}

/* ===================================================== */
/* PLAN DE L'ATELIER                                      */
/* ===================================================== */

#atelier {
    position: relative;

    width: 1400px;
    height: 100dvh;

    background-color: rgba(105, 105, 105, 0.45);

    border: 1px solid black;
}

/* ===================================================== */
/* COLONNES POSTES / RADARS                               */
/* ===================================================== */

.colonneRadar,
.colonnePoste {
    position: absolute;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

/* ===================================================== */
/* POSITIONNEMENT DES COLONNES                            */
/* ===================================================== */

#colonneGM {
    left: 20px;
    top: 20px;
}

#colonneA {
    left: 300px;
    top: 20px;
}

#colonneB {
    left: 525px;
    top: 20px;
}

#colonneC {
    right: 525px;
    top: 20px;
}

#colonneD {
    right: 300px;
    top: 20px;
}

#colonneNS {
    right: 20px;
    top: 20px;
}

/* ===================================================== */
/* ZONE PB (POSTES BAIES)                                 */
/* ===================================================== */

.zonePB {
    position: absolute;

    left: 50%;
    top: 550px;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.lignePB {
    display: flex;

    gap: 20px;
}

/* ===================================================== */
/* POSTES STANDARD                                        */
/* ===================================================== */

.poste {
    width: 150px;
    height: 50px;

    border: 1px solid black;

    background-color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    cursor: pointer;

    font-size: 16px;

    user-select: none;
}

/* ===================================================== */
/* POSTES BAIES                                           */
/* ===================================================== */

.posteBaie {
    width: 80px;
    height: 80px;

    border: 1px solid black;

    background-color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    font-size: 16px;
}

/* ===================================================== */
/* SHELTERS                                               */
/* ===================================================== */

.shelter {

    width: 200px;
    height: 90px;

    border: 1px solid black;

    background-color: white;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    font-size: 16px;

    cursor: pointer;

    user-select: none;
}

/* ===================================================== */
/* POPUP                                                  */
/* ===================================================== */

#popup {
    position: fixed;
    inset: 0;

    display: none;

    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.5);

    z-index: 999;
}

.popup-box {
    width: min(700px, 90vw);

    background: white;

    border-radius: 10px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

/* ===================================================== */
/* ENTÊTE DE LA POPUP                                     */
/* ===================================================== */

.popup-header {

    display: block;
}

#Titre {

    font-size: 28px;
    font-weight: bold;

    line-height: 1.4;
}

.header-actions {

    display: flex;
    justify-content: center;

    gap: 10px;

    margin-top: 15px;
}

.popup-header h2 {
    flex: 1;

    margin: 0;

    font-size: 28px;
}

.header-actions button {
    width: 100px;
    height: 40px;

    font-size: 14px;
}

.popup-infos {

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.ligneInfo {

    display: flex;

    justify-content: space-between;
    align-items: center;
}

.ligneInfo div {

    font-size: 28px;
    font-weight: bold;
}

.ligneInfo button {

    width: 140px;
    height: 40px;
}

.sectionActions,
.sectionFermer {

    border-top: 1px solid #d8d8d8;

    padding-top: 15px;
}
.sectionFermer {
    display: flex;
    justify-content: flex-end;
}

#fermer{
    width: 120px;
}

/* ===================================================== */
/* ACTIONS POPUP                                          */
/* ===================================================== */

/*
 * Première définition conservée.
 * Elle est ensuite volontairement surchargée plus bas.
 */

.actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.actions button {
    height: 60px;

    font-size: 16px;

    cursor: pointer;
}

/*
 * Version réellement appliquée
 * (écrase les valeurs précédentes).
 */

.actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.actions button {
    height: 120px;

    font-size: 24px;

    font-weight: bold;
}

#fermer {
    height: 40px;
}

/* ===================================================== */
/* BANDEAU DE NAVIGATION                                  */
/* ===================================================== */

#bandeauNavigation {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 100px;

    background-color: #2f2f2f;

    border-top: 1px solid black;

    display: flex;
    align-items: center;

    gap: 20px;

    padding-left: 20px;
}

.btnNav {
    width: 180px;
    height: 80px;

    font-size: 18px;

    cursor: pointer;

    border-radius: 15px;
}

.pageActive {
    background-color: #d0d0d0;

    cursor: default;
}

/* ===================================================== */
/* LOGO AEGIS */
/* ===================================================== */

.logoEntreprise {

    margin-left: auto;

    margin-right: 20px;

    height: 80px;

    width: auto;

    object-fit: contain;
}


/* ===================================================== */
/* RECHERCHE OF */
/* ===================================================== */

#btnRechercheOF {

    position: absolute;

    right: 20px;
    bottom: 140px;

    width: 180px;
    height: 60px;

    border-radius: 12px;

    font-size: 18px;

    cursor: pointer;

    z-index: 100;

}

.posteOFTrouve {

    background-color: orange !important;

    border: 3px solid red;
}

button {

    color: black;

    background-color: white;

    border: 1px solid black;

    -webkit-appearance: none;
    appearance: none;
}


.btnNav {

    color: black;

    background-color: white;

    border: 1px solid black;
}

.header-actions button,
.actions button,
#fermer {

    color: black;
}