* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* LA NAV */

.navbar {
    background: linear-gradient(to right, #375E44, #60914b, #70A54E);
    height: 120px;
}

.nav-item {
    text-align: center;
}

.collapse {
    display: flex;
    justify-content: space-around;
    justify-content: end;
}

.navbar-nav,
.nav-link {
    color: white;
    font-weight: 400;
    margin: 0 20px;
    align-items: center;
    font-size: 20px;
}

.logo {
    margin-left: 20px;
    width: 7%;
}

/* LE FOOTER */

footer {
    background-color: #5d5d5d;
    margin-top: 150px;
}

.footer {
    display: flex;
    justify-content: space-around;
    margin-left: 150px;
}

h3,
footer {
    color: #60914b;
}

.bloc1,
.bloc2,
.bloc3 {
    padding-top: 2%;
}

.bloc1,
.bloc2,
.bloc3 {
    width: 33%;
}

.bloc1,
.bloc2,
.bloc3,
footer a,
footer p {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin-top: 20px;
}

footer a {
    color: white;
    font-size: 18px;
    transition: .7s;
}

footer a:hover {
    color: #20ad20;
    text-decoration: underline;
}

.rights {
    text-align: center;
    font-size: 20px;
    margin-bottom: 0px;
}

/* PAGE ACCUEIL */

.myhead {
    background: url('/public/img/image_accueil.png');
    background-repeat: no-repeat;
    height: 430px;
    background-size: cover;
    background-position: center;
}

.myhead p {
    color: white;
    text-align: center;
    padding-top: 4%;
    font-size: 18px;
    font-weight: bold;
}

.headerlien a {
    text-decoration: none;
    padding: 15px 170px;
    margin-right: 4%;
}

.headerlien {
    margin-top: 5%;
    text-align: center;
}

.headerlien a:first-of-type {
    background-color: white;
    color: black;
}

.headerlien a:last-of-type {
    background-color: #9ac48f;
    color: white;
}

/* Valeur */

h5 {
    margin-top: 70px;
    color: #375E44;
    background-color: #F5F9F4;
    text-align: center;
    font-weight: bold;
    word-spacing: 5px;
    letter-spacing: 5px;
    padding: 5px;
}

h6{
    font-weight: bold;
    font-size: 15px;
}

p{
    font-size: 18px;
    font-family: sans-serif;
}

.valeur {
    margin-top: 70px;
    display: flex;
    text-align: center;
    justify-content: space-around;
}

.valeur div {
    width: 25%;
}

/* PAGE INSCRIPTION CONNEXION*/

.logo_noir {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.formulaire {
    background-color: #dfebdb;
    margin: 0 auto;
    margin-top: 60px;
    width: 25%;
    border-radius: 95px;
    border: 5px solid #60914b;
}

.centerdiv {
    text-align: center;
}

h4 {
    font-weight: bold;
}

.centerdiv i {
    color: #36771a;
}

.formulaire input {
    border: none;
    background-color: transparent;
    border-bottom: 1px solid black;
    width: 70%;
    margin: 40px;
}

.formulaire .bi {
    color: #9ac48f;
}

form div {
    position: relative;
    margin-left: 5%;
}

form div i {
    position: absolute;
    margin-top: 8.4%;
    margin-left: 9%;
}

input {
    padding-left: 25px;
}

.finformulaire {
    text-align: center;
}

form button {
    background-color: #36771a;
    color: white;
    border: none;
    border-radius: 15px;
    width: 50%;
    margin-bottom: 15px;
}

form button:hover {
    background-color: #60914b;
}

a {
    text-decoration: none;
}

span {
    color: black;
    text-decoration: none;
    font-weight: bold;
}


/* PAGE PROFIL */

.profil div {
    margin-top: 120px;
}

.menu {
    background-color: #dfebdb;
    width: 50%;
    height: 45px;
    margin-left: 10%;
    border-radius: 25px;
}

.menu a {
    margin-left: 30px;
    font-size: 22px;
    display: block;
    color: black;
}

.menu i {
    color: #36771a;
    margin-right: 12px;
    font-size: 25px;
}

.menu {
    margin-top: 60px;
}

    /*MON PROFIL*/
    
.form-container {
    margin-top: 80px;
    margin-left: 150px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* AJOUTER UNE ANNONCE */

.titredepage {
    color: white;
    background-color: #9ac48f;
    padding: 10px 170px;
    width: 30%;
    text-align: center;
    margin: 0 auto;
}

div .titredepage {
    margin-top: 40px;
}

.firstdiv {
    margin-left: 3%;
    margin-top: 50px;
}

.description {
    width: 45%;
    padding-right: 30px;
    min-height: 220px;
    border-radius: 15px;
    border: 1px solid black;
    margin-top: 15px;
}

.description p {
    margin: 7px;
}

.forma {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #dfebdb;
    margin-top: 70px;
    margin-left: 0;
}

.forma select {
    width: 50%;
    text-align: center;
    color: #36771a;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.newannonce form {
    margin-left: 0px;
}


.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.upload-label {
    background-color: #eaf1e8;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
}

.upload-label::before {
    content: "+";
    font-size: 20px;
    font-weight: bold;
}

.upload-input {
    display: none;
}

.max-text {
    font-size: 14px;
    color: #1d672e;
    text-align: center;
}

.submit-btn {
    background-color: #1d672e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    width: 18%;
}

/* PAGE TOUT LES ARTICLES */

.allarticles {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
    column-gap: 120px;
    margin-top: 50px;
}

.bgvert {
    background-color: #F5F9F4;
}

.flexarticles {
    width: 19%;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 6px;
}

.flexarticles img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

.flexarticles h2 {
    color: black;
    font-size: 17px;
    font-weight: bold;
    margin-top: 5px;
    margin-left: 15px;
}

.flexarticles p {
    color: #36771a;
    margin: 0;
}

.flexP {
    display: flex;
    margin-left: 15px;
}

.flexarticles p:last-child{
    margin-left: 15px;
}

.flexP :nth-child(2)::before {
    content: "-";
}

.test {
    position: relative;
    width: 30%;
    margin-top: 70px;
    margin-left: 50%;
}

.test input {
    width: 100%;
    height: 30px;
    border-radius: 15px;
    border: 1px solid black;
}

.searchBtn {
    position: absolute;
    width: fit-content;
    right: 0;
    width: 130px;
    border-top: 1px solid black;
    border-right: 1px solid black;

}

.searchBtn i {
    color: #1d672e;
    margin: 0;
    position: static;
    padding: 4px;
    border-radius: 0;
    color: white;
    height: 30px;
}


.search-bar {
    display: flex;
    gap: 10px;   
    margin-left: 150px;
    margin-top: 35px;
}

select,
button {
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: green;
    color: white;
    border: none;
}

.btn-filtre {
    width: 6%;
    border-radius: 15px;
}

.voirtoutlesarticle{
    background-color: #36771a;
    color: white;
    width: 10%;
    text-align: center;
    padding: 5px;
    border-radius: 15px;
    margin-left: 150px;
    margin-top: 30px;
}

.annoncefiltrre{
    margin-left: 150px;
    margin-top: 10px;
}


/* PAGE DU PRODUIT */

.margin {
    margin-left: 5%;
}

.flex_nomETnote{
    display: flex;
}

.div1 {
    background-color: #9ac48f;
    color: white;
    width: 14%;
    text-align: center;
    font-size: 25px;
    margin-top: 4%;
}

hr {
    width: 70%;
}

.name {
    color: #36771a;
    font-size: 24px;
    margin-left: 1%;
    margin-bottom: 0;
}

.name p {
    font-size: 28px;
}

.name i {
    font-size: 24px;
    margin-right: 12px;
}

.descriptionproduct p:first-of-type {
    margin-left: 1%;
    font-weight: bold;
    font-size: 23px;
}

.descriptionproduct p:nth-child(2) {
    width: 60%;
    min-height: 150px;
    border-radius: 15px;
    border: 1px solid black;
    padding: 15px;
}

.div2 {
    background-color: #F5F9F4;
    height: 130px;
    margin-top: 70px;
}

.flexdiv {
    display: flex;
    justify-content: space-around;
    width: 90%;
    margin: auto;
}

.margintop {
    margin-top: 20px;
}

.div3 {
    width: 500px;
}

.div4 {
    display: flex;
    border-bottom: 1px solid black;
    width: 100%;
    column-gap: 270px;
    margin-bottom: 7px;
}

.div4 h2 {
    font-size: 18px;
    font-weight: bold;
    width: 10%;
}

.btnMessage {
    width: fit-content;
    margin-top: 3%;

}

.btnMessage a {
    color: white;
    background-color: #1d672e;
    border-radius: 25px;
    text-align: center;
    padding: 8px;
}

.btnNoteandMessage {
    display: flex;
    justify-content: center;
    column-gap: 100px;
    margin-top: 40px;
}

.btnMessage :hover {
    background-color: #70A54E;
}

/*BOUTTONS MODIFIER ET SUPPRIMER*/

.btn-modifyANDdelete {
    display: flex;
    gap: 13px;
    margin-bottom: 5px;
    margin-left: 10px;
}

.btn-modifyANDdelete a button,
.btn-modifyANDdelete form button {
    width: 130px;
    border: none;
}

.btn-modifyANDdelete a button {
    background-color: #36771a;
    color: white;
    border-radius: 6px;
}

.btn-modifyANDdelete form button {
    background-color: red;
    color: white;
}

.btn-modifyANDdelete a button:hover {
    background-color: #1d672e;
}

.btn-modifyANDdelete form button:hover {
    background-color: darkred;
}


/*PAGE NOTER UTILISATEUR*/

a[href^="/shownote"] {
    display: inline-block;
    background-color: #70A54E;
    color: white;
    padding: 5px 18px;
    border-radius: 25px;
    margin-left: 5%;
}

.comment-page form {
    width: 100%;
}

.comment-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F9F4;
    margin-top: 70px;
    height: 500px;

}

.comment-page .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin-top: 10px;
}

.comment-page h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.comment-page textarea {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 25px;
}

.comment-page button {
    display: block;
    width: 60%;
    margin: auto;
    background-color: #36771a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.comment-page button:hover {
    background-color: #70A54E;
}


/*PAGE COMMENTAIRE RECUS*/

.prenom_commenataire_recu {
    margin-left: 180px;
    margin-top: 70px;
}

.commentaire_recu {
    border-radius: 16px;
    border: 1px solid black;
    max-width: 30%;
    margin-bottom: 50px;
    margin-left: 190px;
}

.commentaire_recu p:first-of-type {
    margin-left: 2%;
    margin-top: 1%;
}



@media screen and (max-width: 768px) {
    /* PAGE ACCUEIL */
    .myhead {
        height: auto;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .myhead p {
        font-size: 16px;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .headerlien {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 30px;
    }

    .headerlien a {
        padding: 15px 40px;
        margin: 0;
        width: 80%;
        max-width: 300px;
    }

    /* Valeur section */
    .valeur {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
    }

    .valeur div {
        width: 100%;
        max-width: 400px;
    }

    h5 {
        font-size: 16px;
        letter-spacing: 2px;
        word-spacing: 2px;
        padding: 10px;
    }

    /* LA NAV */

    .navbar {
        height: auto;
        padding: 1rem 0;
    }

    .logo {
        width: 40%;
        margin-left: 0;
    }

    .collapse {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 16px;
        width: 100%;
    }

    .nav-item {
        text-align: left;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* FOOTER */

    .footer {
        flex-direction: column;
        align-items: center;
        margin-right: 25px;

    }

    .bloc1,
    .bloc2,
    .bloc3 {
        width: 300px;
        margin-bottom: 30px;
    }

    footer a,
    footer p {
        font-size: 14px;
        margin: 8px 0;
    }

    .bloc3 img {
        max-width: 140px;
        margin: 20px auto 0 auto;
    }


    /* INSCRIPTION CONNEXION */

    .formulaire{
        width: 400px;
    }

    .finformulaire{
        width: 90%;
    }

    form div{
        position: static;
    }

    /*PAGE TOUT LES PRODUITS*/

    .flexarticles{
        width: 90%;
        margin: 0 auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .test{
        position: static;
        width: 70%;
        margin-left: 20px;
    }

    .searchBtn{
        right: 45px;
    }

    .search-bar{
        margin-left: 20px;
        width: 100%;
    }

    .btn-filtre{
        width: 20%;
    }

    .annoncefiltrre{
        margin-left: 22px;
    }

    .voirtoutlesarticle{
        margin-left: 18px;
    }

    /*PAGE PRODUIT*/

    .margin {
        margin-left: 5%;
        margin-right: 5%;
    }

    .div1 {
        width: 70%;
        font-size: 20px;
        margin-top: 20px;
    }

    .name {
        font-size: 18px;
        display: flex;
    }

    .name i {
        font-size: 20px;
        margin-right: 8px;
    }

    .descriptionproduct p:first-of-type {
        font-size: 18px;
        margin-top: 20px;
        text-align: center;
    }

    .descriptionproduct p:nth-child(2) {
        width: 100%;
        font-size: 14px;
        min-height: auto;
    }

    .div2 {
        height: auto;
        margin-top: 40px;
        padding: 15px;
    }

    .flexdiv {
        align-items: center;
        width: 100%;
    }


    .div3 {
        width: 90%;
    }

    .div4 {
        flex-direction: column;
        border-bottom: 1px solid #ccc;
        padding-bottom: 8px;
    }

    .div4 h2 {
        font-size: 16px;
        width: 100%;
    }

    .div4 p {
        font-size: 14px;
        margin: 0;
    }

    .btnNoteandMessage {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }

    .btnMessage {
        width: 60%;
        height: 45px;
        text-align: center;
    }

    .btnMessage a {
        display: block;
        padding: 10px;
        font-size: 15px;
        width: 100%;
    }

    a[href^="/shownote"] {
        display: block;
        text-align: center;
        font-size: 14px;
        margin-left: 10%;
    }

    hr{
        width: 100%;
    }

    /*PAGE PROFIL*/

    .menu{
        margin-left: 20px;
        width: 90%;
    }

    /*PAGE MON PROFIL*/

    .form-container{
        margin-left: 20px;
        width: 90%;
    }

    /*COMMENATIRE*/

    .commentaire_recu{
        max-width: 400px;
        margin-left: 10px;
    }

    .prenom_commenataire_recu{
        margin-left: 10px;
    }

    /*BOUTON MODIFIER/SUPPRIMER*/

    .btn-modifyANDdelete{
        gap: 5px;
    }
    
    /*PAGE DEPOSER/MODIFIER UNE ANNONCE*/

    .titredepage {
        width: 90%;
        padding: 10px;
        font-size: 15px;
    }

    div .titredepage {
        margin-top: 20px;
    }

    .firstdiv {
        margin-left: 5%;
        margin-top: 30px;
    }

    .description {
        width: 90%;
        min-height: 150px;
    }

    .forma {
        margin-top: 30px;
        padding: 10px;
        width: 100%;
    }

    .forma select {
        width: 90%;
        font-size: 16px;
    }

    .container {
        padding: 15px;
    }

    .upload-label {
        padding: 10px 16px;
        font-size: 14px;
    }

    .submit-btn {
        width: 50%;
        font-size: 16px;
        margin-top: 15px;
    }
}