
/* --- Styles pour le plein écran et le fond --- */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Empêche le scroll horizontal et vertical */
    font-family: sans-serif;
}

body {
    /* 1. Image de fond (Remplacez 'image_background.jpg' par le chemin réel) */
    background-image: url('../img/city.jpg');
    background-size: cover; /* L'image couvre tout l'écran, responsive */
    background-position: center center;
    background-repeat: no-repeat;
}

/* --- Styles pour l'animation particles.js --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* Z-index 1 pour être au-dessus du fond mais en dessous du contenu */
    z-index: 1; 
}

/* --- Styles pour le Contenu (Logo) --- */
#content {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Centre le contenu sur l'écran */
    transform: translate(-50%, -50%); 
    z-index: 2; /* Z-index 2 pour être au-dessus de l'animation */
    text-align: center;
    color: white; /* Pour le texte au-dessus du logo */
}

#main-logo {
    max-width: 250px; /* Taille maximale du logo */
    height: auto;
    display: block; /* Important pour que max-width fonctionne bien */
    margin: 0 auto 20px auto;
}

/* Règle pour un meilleur responsive du logo sur très petits écrans */
@media only screen and (max-width: 600px) {
    #main-logo {
        max-width: 150px;
    }
    h1 {
        font-size: 1.5em;
    }
}


#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: transparent !important;
    border: none !important;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.bg-change {
    background-color: transparent !important;
}

#popup-container {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.close-button {
    position: absolute;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    top: 10px !important;
    right: 25px !important;
    z-index: 10000;
}

.h1pop {
    color: #88b04b;
    font-family: "Nunito Sans", "Helvetica Neue", sans-serif;
    font-weight: 900;
    font-size: 40px;
    margin-bottom: 10px;
}
.ppop {
    color: #404f5e;
    font-family: "Nunito Sans", "Helvetica Neue", sans-serif;
    font-size: 20px;
    margin: 0;
}
.ipop {
    color: #9abc66;
    font-size: 100px;
    line-height: 200px;
    margin-left: -15px;
}
.cardpop {
    background: white;
    padding: 60px;
    border-radius: 4px;
    box-shadow: 0 2px 3px #c8d0d8;
    display: inline-block;
    margin: 0 auto;
}

.succes {
    background-color: #4bb543;
}

.succes-animation {
    animation: succes-pulse 2s infinite;
}

.danger {
    background-color: #ca0b00;
}

.danger-animation {
    animation: danger-pulse 2s infinite;
}

.custom-modal {
    position: relative;
    width: 350px;
    min-height: 250px;
    background-color: #fff;
    border-radius: 30px;
    margin: 40px 10px;
}

.custom-modal .content1 {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 0;
}

.custom-modal .content1 .type {
    font-size: 18px;
    color: #999;
}

.custom-modal .content1 .message-type {
    font-size: 24px;
    color: #000;
}

.custom-modal .border-bottom {
    position: absolute;
    width: 300px;
    height: 20px;
    border-radius: 0 0 30px 30px;
    bottom: -20px;
    margin: 0 25px;
}

.custom-modal .icon-top {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    margin: 0 125px;
    font-size: 30px;
    color: #fff;
    line-height: 100px;
    text-align: center;
}

@keyframes succes-pulse {
    0% {
        box-shadow: 0px 0px 30px 20px rgba(75, 181, 67, 0.2);
    }

    50% {
        box-shadow: 0px 0px 30px 20px rgba(75, 181, 67, 0.4);
    }

    100% {
        box-shadow: 0px 0px 30px 20px rgba(75, 181, 67, 0.2);
    }
}

@keyframes danger-pulse {
    0% {
        box-shadow: 0px 0px 30px 20px rgba(202, 11, 0, 0.2);
    }

    50% {
        box-shadow: 0px 0px 30px 20px rgba(202, 11, 0, 0.4);
    }

    100% {
        box-shadow: 0px 0px 30px 20px rgba(202, 11, 0, 0.2);
    }
}

.page-wrapper {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-modal div i {
    font-size: 40px;
    color: #fff;
}

.page-wrapper .content1 {
    display: block;
}

#PopSuccess,
#PopError {
    display: none;
}

@media only screen and (max-width: 800px) {
    .page-wrapper {
        flex-direction: column;
    }
}

.anotherpp {
    display: none; /* Hide pop-ups by default */
    position: fixed; /* Position pop-ups over the content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
        0,
        0,
        0,
        0.5
    ); /* Semi-transparent black background */
    z-index: 9999;
}

.list-type-data {
    font-size: 22px;
}

.margin_eight {
    margin-bottom: 20px;
}

.container_model {
    width: 500px;
    padding: 10px;
}

.mobile_view {
    display: none;
}

@media only screen and (min-width: 100px) and (max-width: 500px) {
    .container_model {
        width: 325px !important;
    }
    .dektop_view {
        display: none;
    }

    .mobile_view {
        display: block;
    }

    .mobile_view .container div div {
        width: 100px;
    }

    .width-for-form {
        width: 280px;
    }
}
