* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-image: url("../IMG/wallpaper.jpg");
    backdrop-filter: blur(1px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;  /* Changement ici */
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* Hauteur du footer */
    font-size: 0.9em;
}



/*barre de navigation*/

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: rgba(51, 51, 51, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 16px;
    flex-shrink: 0; /* Pour s'assurer que la navbar ne rétrécisse pas */
    height: 100px;
}

/*.navbar-logo {
    position: absolute;
    left: 100px;
    top: 70px;
    transform: translateY(-50%);  Ceci est pour le centrer verticalement 
}*/

.navbar-logo {
    position: absolute;
    left: 10px;
    top: 70px;
    transform: translateY(-50%); /* Ceci est pour le centrer verticalement */
    width: auto; /* Cela garantit que la largeur du logo est automatique par défaut */
    height: auto; /* De même pour la hauteur */
}


.navbar .login-btn  {
    background-color: #522d57;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    margin-left: 16px;
    border-radius: 4px;
    order: 3;
}

.navbar .signup-btn {
    background-color: #522d57; /* Choisir une couleur appropriée */
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    margin-left: 16px;
    border-radius: 4px;
    order: 3;
}

.navbar .logout-btn {
    background-color: #522d57; /* Choisir une couleur appropriée */
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    margin-left: 16px;
    border-radius: 4px;
    order: 3;
}

.navbar .hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    order: 1;
}

.navbar .hamburger-menu span {
    display: block;
    height: 2px;
    background-color: white;
}

.navbar .nav-links {
    display: flex;
    justify-content: space-between;
    order: 2;
    margin-left: 200px;
}

.navbar .nav-links.right {
    align-items: center;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
}

.navbar a:hover {
    background-color: #d9bde6;
    color: black;
}




/* fin navbar */

/*login popup*/

.login-popup {
    display: none; /* caché par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 400px; /* Ajustez selon vos besoins */
    height: 100%;
    max-height: 300px; /* Ajustez selon vos besoins */
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    border-radius: 10px; /* Ajustez selon vos besoins */
    transform: translate(-50%, -50%);
}


.login-popup-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px; /* Ajustez selon vos besoins */
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-popup:hover,
.close-popup:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*modal login */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* main content */

.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
    flex-grow: 1;
    padding-top: 2em;
    border-color: #270241;
    border-radius: 2px;
    
}

.container{
    height:max-content;
    width: 75vw;
    background-color: rgba(255, 255, 255, 0.80);
    text-align: justify;
    display: flexbox;
    padding: 2em;
}

.slideshow {
    width: 70%;
    margin: auto;
}

.slideshow img {
    width: 100%;
    border: none;
}

.slick-prev:before, .slick-next:before {
    color: rgb(89, 16, 131) !important;
}

.img-responsive {
    width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
}



.container h1, .container h2, .container h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #270241;
}

.container p {
    margin-bottom: 1.2em;
    line-height: 1.6;
    color: #270241;
}

.container strong {
    color: #891ec7;
}

.container p.alert {
    /* Ici, vous placez vos propriétés et valeurs CSS */
    color: rgb(255, 255, 255);         /* par exemple, pour rendre le texte de couleur rouge */
    background-color: #1d9842;  /* pour donner une couleur d'arrière-plan */
    border: 1px solid #e0e0e0; /* pour ajouter une bordure */
    padding: 10px;      /* pour ajouter un espace interne */
    border-radius: 5px; /* pour arrondir les coins */
    font-weight: bold;  /* pour rendre le texte en gras */
    /* ... autres styles que vous souhaitez ajouter ... */
}

.container a {
    color: #891ec7;  /* Changez la couleur pour correspondre à votre thème */
    text-decoration: none;
}

.container a:hover {
    text-decoration: underline;
}

.container h1 {
    font-size: 1.4rem;
    word-break: break-word;
    text-align: center;
    padding: 0.1em;
}

.container h2{
    font-size: 1.2rem;
    word-break: break-word;
    text-align: center;
}

.container h3{
    font-size: 1rem;
    word-break: break-word;
    text-align: center;
}

/*Formulaire*/

#contact-form {
    margin-top: 2em;
}

.form-group {
    margin-bottom: 2em;
}

label {
    display: inline-block;
    margin-bottom: 0.5em;
    margin-top: 1.5em;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="chargement"],
input[type="destination"],
textarea,
select {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
}


button[type="submit"] {
    background-color: #891ec7;
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #270241;
}

.submit-button-container {
    display: flex;
    justify-content: flex-end;
}

.contact {
    display: flex;
    justify-content: space-between;
  }
  
  .form-container,
  .message-container {
    width: 48%; /* Réduit un peu pour laisser un espace entre les deux divs */
  }

 /* fin de formulaire */ 

 /* pied de page */
.footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: rgba(51, 51, 51, 0.7);
    position:fixed;
    bottom: 0;
    z-index: 100;
    width: 100%;
    height: 60px;
    padding: 16px;
    margin-bottom: 0;
    margin-top: 20px;
    flex-shrink: 0; /* Pour s'assurer que le footer ne rétrécisse pas */
}

.footer {
    color: #ddd;
}

.footer p{
    padding: 1.5em;
}

/* fin de pied de page */


/*Modal messages*/
.modal-custom {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content-custom {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 70%;
    max-width: 500px;
}

.close-modal-custom {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/*fin modal*/

@media screen and (max-width: 768px) {
    .navbar .hamburger-menu {
        display: flex;
    }

    .navbar-logo {
        left: 10px; /* Positionnement à 10px du bord gauche pour un peu d'espacement */
        top: 10px; /* Positionnement à 10px du haut pour un peu d'espacement */
        transform: none; /* On supprime le transform pour le mobile */
        width: 80px; /* Vous pouvez ajuster cette valeur selon la taille souhaitée pour le mobile */
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        /*background-color: #333;*/
        background-color: rgba(2, 2, 2, 0.9);
        width: 100%;
        padding-top: 16px;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .container{
        width: 90vw;
    }    
    .container h1, h2, h3 {
        word-break: break-word;
        text-align: center;
    }

    .container p {
        word-break: break-word;
        text-align: start;
    }

    .contact {
        flex-direction: column-reverse;
    }

    .form-container,
    .message-container {
        width: 100%;
    }

    .form-container{
        padding-bottom: 2em;
    }
}