html, body {
    height: 100%;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Images/IMG--background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/*--------------------------------------------------------------- Menu ---------------------------------------------------------------*/
#menuNav {
    background-color: rgb(44, 92, 28);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    top: 0;
    position: sticky;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.menu li {
    gap: 10%;
}

.menu li a {
    padding: 35px 30px;
    font-size: 30px;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: bold;
    display: block;
}
.menu li a:hover {
    background-color: rgb(110, 210, 84);
    text-decoration: underline;
    transition: 0.5s;
}

.logo {
    height: auto;
    max-height: 100px;
    border-radius: 10px;
    margin-left: auto;
}

/*--------------------------------------------------------------- Image horizontal ---------------------------------------------------------------*/
.image-horizontal {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20%;
    margin-bottom: 2%;
}

.image-horizontal img {
    border-radius: 10px;
    height: auto;
    width: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    border: 1px solid #030303;
}

.image-horizontal-2 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 2%;
    gap: 0%;
}

.image-horizontal-2 img {
    border-radius: 10px;
    height: auto;
    width: 35%;
    background-position: center center;
    background-repeat: no-repeat;
    border: 1px solid #030303;
}

/*--------------------------------------------------------------- Images vertical ---------------------------------------------------------------*/
.image-vertical {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2%;
    gap: 10%;
}

.image-vertical img {
    border: 1px solid #030303;
    border-radius: 10px;
    max-width: 100%;
    width: 20%;
    height: auto;
    background-position: center center;
    background-repeat: no-repeat;
}

/*------------------------------------------------------------ Container ---------------------------------------------------------------*/
.content h2 {
    text-align: center;
    font-size: 50px;
}

.content h3 {
    text-align: center;
    font-size: 50px;
}

p.text {
    margin: 2%;
    text-align: center;
    font-size: 25px;
}

p.ateliers {
    text-align: center;
    font-size: 35px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.atelier-div {
    margin-bottom: 5%;
    border-top:1px solid #030303;
}


.grimpe_arbre {
    margin: 6%;
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
    background-color: #ffffffa8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    border: 1px solid #030303;
}

/* Pour les grands éléments */
.container > .grimpe_arbre:nth-child(3) {
    flex: 1 1 100%;
}

/*--------------------------------------------------------------- message container ---------------------------------------------------------------*/
#messages-container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 90%;
    height: auto;
    margin: 3% auto;
    background-color: rgba(255, 255, 255, 0.66);
    padding: 10px;
    border: 1px solid #030303;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.message {
    background-color: rgba(255, 255, 255, 0.66);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    width: 98%;
}

.message h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.message p {
    margin: 5px 0;
    color: #555;
}

.message small {
    display: block;
    margin-top: 10px;
    color: #888;
}

.Vide {
    display: flex;
    justify-self: center;
    align-items: center;
}

.delete-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #c0392b;
}

#additional-buttons {
    display: none;
}

.new__message {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 5%;
    border-radius: 10px;
    border:  1px solid #030303;
    background-color: rgb(0, 0, 132);
    color: white;
    font-size: 16px;
}

.new__message:hover {
    background-color: rgb(0, 42, 255);
}

.b_deconnexion {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 5%;
    border-radius: 10px;
    border:  1px solid #030303;
    background-color: rgb(132, 0, 0);
    color: white;
    font-size: 16px;
}

.b_deconnexion:hover {
    background-color: rgb(255, 0, 0);
}

.area {
    display: flex;
    width: 20%;
}

.envoie-message{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 5%;
    border-radius: 10px;
    border:  1px solid #030303;
    background-color: rgb(132, 0, 0);
    color: white;
    font-size: 16px;
}

.envoie-message:hover {
    background-color: rgb(255, 0, 0);
}

/*--------------------------------------------------------------- Contact ---------------------------------------------------------------*/

.fond-page-contact {
    display: flex;
    width: auto;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-contact {
    display: flex;
    width: 70%;
    height: 70%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #ffffffa8;
    border-radius: 50px;
    border: 1px solid #030303;
    transition: transform 1s ease-in-out;
}

.h2p {
    font-size: 250%;
    margin-bottom: 0%;
}

.h1p {
    margin-top: 0%;
    margin-bottom: 0%;
    font-size: 400%;
}

.gmail{
    margin-top: 0%;
    margin-bottom: 3%;
    font-size: 30px;
    color: black;
}

.gmail:hover {
    font-size: 40px;
    transition: 0.3s;
    color: blue;
}

.p1p {
    margin-top: 3%;
    margin-bottom: 0%;
    font-size: 30px;
    color: black;
}

.tel {
    margin-top: 0%;
    font-size: 30px;
    color: black;
}
.tel:hover {
    font-size: 40px;
    transition: 0.3s;
}

/* formulaire et devis */

.devis {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 5%;
    width: 70%;
    height: auto;
    background-color: #ffffffa8;
    border-radius: 50px;
    border: 1px solid #030303;
    margin-bottom: 3%;
}

.devis h2{
    font-size: 40px;
}

.formul {
    background-color: white;
    width: 100%;
    height: 200%;
    font-size: 30px;
    border-radius: 10px;
    border: 1px solid #030303;
}

.formul::placeholder {
    color: #030303;
}

.formul:hover {
    background-color: rgb(177, 177, 177);
}

/* aff devis */
.aff_devis {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 5%;
    width: 70%;
    height: auto;
    background-color: #ffffffa8;
    border-radius: 50px;
    border: 1px solid #030303;
    margin-bottom: 3%;
}

.af_devis {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 5%;
    width: 70%;
    height: auto;
    background-color: #ff5f5fa8;
    border-radius: 50px;
    border: 1px solid #030303;
    margin-bottom: 3%;
}

/* --------------------------------------------------------------- Login --------------------------------------------------------------- */

.form-container {
    display: flex;
    background-color: #ffffffb4;
    width: 100%;
    height: 86%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.h2l {
    font-size: 40px;
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
}

.labell {
    font-size: 20px;
}

.inputl {
    font-size: 20px;
    border-radius: 10px;
    height: 40px;
}

.btl {
    font-size: 20px;
    border-radius: 10px;
    height: 40px;
    background-color: rgb(44, 92, 28);
    color: white;
}

.btl:hover {
    background-color: rgb(110, 210, 84);
}


/*--------------------------------------------------------------- Copyright ---------------------------------------------------------------*/
p.copyright {
    display: flex;
    justify-content: center;
    align-items:flex-end;
    padding: 10px;
    color: rgb(216, 224, 231);
    background-color: rgb(88, 86, 99);
    margin: 0;
    margin: 20;
}

/* Style pour les téléphones */
@media only screen and (max-width: 768px) {

    #menuNav {
        align-items: flex-start;
    }

    .menu {
        align-items: flex-start;
    }

    .menu li a {
        padding: 25px 5px;
        font-size: 20px;
    }

    .logo {
        max-height: 50px;
        margin-left: 0;
        align-self: center;
    }

    .logo_a {
        align-self: center;
    }

    .image-horizontal img,
    .image-horizontal-2 img {
        width: 90%;
        margin-bottom: 10px;
    }

    .image-vertical img {
        width: 80%;
        margin-bottom: 10px;
    }

    .content h2, .content h3 {
        font-size: 30px;
    }

    p.text {
        font-size: 18px;
    }

    p.ateliers {
        font-size: 25px;
    }

    .container {
        flex-direction: column;
    }

    .grimpe_arbre {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    #messages-container {
        width: 100%;
        padding: 5px;
    }

    .message {
        width: 100%;
        padding: 10px;
    }

    .new__message, .b_deconnexion, .envoie-message {
        width: 40%;
        height: 40px;
        font-size: 14px;
    }

    .page-contact, .devis, .aff_devis, .af_devis {
        width: 90%;
        padding: 20px;
    }

    .h2p {
        font-size: 200%;
    }

    .h1p {
        font-size: 300%;
    }

    .gmail, .p1p, .tel {
        font-size: 24px;
    }

    form {
        width: 100%;
    }

    .formul {
        width: 90%;
        font-size: 24px;
    }

    .btl {
        font-size: 18px;
    }

    p.copyright {
        font-size: 14px;
    }
}