@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --primary-color: #0338aa;
    /* Couleur principale ou couleur d'accentuation */
    --secondary-color: #00bae9;
    /* Couleur secondaire */
    --terser-color: #00fccb;
    /* Couleur secondaire */
    --background-color-1: #f2f5f8;
    /* Couleur de fond */
    --background-color-1-2: #eaeef2;
    /* Couleur de fond 2 */
    --text-color: #0b122b;
    /* Couleur du texte principal */
    --link-color: #007bff;
    /* Couleur des liens */
    --success-color: #28a745;
    /* Couleur pour les actions réussies */
    --error-color: #dc3545;
    /* Couleur pour les erreurs ou les avertissements */
    --border-color: #ccc;
    /* Couleur des bordures */
    --shadow-color: rgba(0, 0, 0, 0.1);
    /* Couleur de l'ombre */
}



* {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

@media screen and (min-width: 768px) {

    body,
    html {
        max-width: 400px;
        /* Limiter la largeur maximale à 300px */
        width: 100%;
        /* Forcer la largeur à 100% pour s'adapter à l'écran */
        margin: 0 auto;
        position: relative;
    }
}


body {
    padding-bottom: 6rem;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin: 1rem 0;
}

h2 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 5px;
    position: relative;
    font-size: 2rem;
    font-family: "Ubuntu", sans-serif;
}

h2::after {
    content: "";
    height: 3px;
    width: 15vw;
    background-color: rgb(55, 55, 55);
    display: block;
    position: absolute;
    bottom: 0;
    left: -.5rem;
}

.btn_1 {
    position: relative;
    background-color: #e6eaf4;
    border-radius: 5px;
    text-align: center;
    padding: 5px 20px;
    border: none;
    cursor: pointer;
    margin: 0 auto;
    color: black;
    text-decoration: none;
}

.btn_1:hover {
    background-color: rgb(243, 243, 243);
    transition: .3s ease;
}

select {
    position: relative;
    background-color: rgb(235, 235, 235);
    border-radius: 5px;
    text-align: center;
    padding: 5px 20px;
    border: none;
    cursor: pointer;
    margin: 0 auto;
}


section {
    position: relative;
    display: flex;
    flex-direction: column;
}


/* info popup */
#popupMessage {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    border-radius: 10px;
    background-color: #ff0000;
    color: #ffffff;
    padding: 5px 10px;
    text-align: center;
    z-index: 9999;
}



/* OVERLAYS ============================ */

.overlay {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.overlay-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

.overlay-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

.closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}

form  {
    position: relative;
}
form label {
    display: block;
    margin-top: 10px;
}

form input,
form textarea,
form select {
    width: auto;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}
form textarea{
    resize: vertical;
    width: 100%;
}

form button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}
form .sub_btn {
    cursor: pointer;
    background-color: #525252;
    border-radius: 5px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    margin-top: 5px;
    padding: 2px 5px;
    color: white;
}





/* OVERLAY CSS ========================= */
/* Styles généraux pour l'overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent */
    z-index: 1000;
    /* Position au-dessus de tout le reste */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles pour le contenu du modal */
.modal {
    max-width: 350px;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.modal p {
    margin-bottom: 1rem;
}

.modal button {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.modal button:hover {
    background-color: #0056b3;
}



/* CLASSES ============================= */
.hide {
    display: none !important;
}
.no-select {
    user-select: none;
}

.truncate {
    white-space: nowrap;
    /* Empêche le texte de passer à la ligne */
    overflow: hidden;
    /* Cache le contenu qui dépasse */
    text-overflow: ellipsis;
    /* Affiche des points de suspension (...) lorsque le texte est tronqué */
}

.btn_container {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.btn_container.row {
    flex-direction: row;
}

.btn_container.col {
    flex-direction: column;
    gap: .5rem;
}

.btn_container.row button {
    margin: 0 !important;
}


.title_bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-right: 5px;
}

.title_bar img {
    height: 1.8rem;
    opacity: .6;
}

.title_bar img:hover {
    opacity: 1;
    transition: opacity .5s;
}

.title_bar h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0;
}


.form_1{
    padding: 1rem;
}

.form_1 input, .form_1 select, .form_1 textarea{
    box-sizing: border-box;
    position: relative;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin: 0 auto;
    margin-left: 10px;
    text-align: left;
    background-color: #f9f9f9;
    width: calc(100% - 10px);
}