* {
    margin: 0px;
    padding: 0px;
    --couleur-principale: #149414;
    --fond-globale: rgb(255, 255, 255);
    --fond-menue: #b3b3b3;
}

body {
    background-color: var(--fond-globale);
}

header {
    z-index: 10;
    position: fixed;
    top: 0px;
    background-color: var(--fond-menue);
    height: 40px;
    width: 100%;
    box-shadow: 0px 1px 10px black;
    margin-bottom: 10px;
    text-align: center;
}

.fondmenu {
    visibility: hidden;
    display: none;
}

header .menut {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

header a {
    position: relative;
    background-color: transparent;
    text-decoration: none;
    color: black;
    font-size: 35px;
    margin-right: 5px;
    margin-left: 5px;
    white-space: normal;
}

header a:hover {
    text-decoration: underline;
}

header .ptlogo {
    position: relative;
    height: 35px;
}

header .btnrcherche {
    display: none;
    visibility: hidden;
}

header .btntelmenu {
    display: none;
    visibility: none;
    background-color: transparent;
    border: none;
    background-image: url("images/menut_a_ouvrir.png");
    background-repeat: no-repeat;
    background-size: 40px;
    height: 40px;
    width: 40px;
}

header .barreche {
    height: 80%;
    width: 250px;
    background-color: var(--fond-globale);
    border-radius: 5px;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header .barreche.click {
    background-color: var(--couleur-principale);
    color: black;
}

header .barreche form {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

header .barreche input[type=searche] {
    background-color: transparent;
    border: none;
    width: 210px;
    font-size: 35px;
}

header .barreche input[type=submit] {
    background-color: transparent;
    background-image: url(images/logo_recherche.png);
    background-repeat: no-repeat;
    background-size: 60%;
    border: none;
    width: 40px;
    height: 100%;
    margin-top: 5px;
    margin-left: 3px;
}

header .conect {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 20px;
    height: 40px;
    border: solid black 1px;
    display: flex;
    background-color: var(--fond-globale);
}

header .conect.click {
    background-color: var(--couleur-principale);
}

header .conect p {
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 5px;
    margin-left: 5px;
    display: inline-block;
    color: black;
}

header .conect img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: solid black 1px;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 3px;
}

header a.click {
    color: var(--couleur-principale);
}

main {
    margin-top: 45px;
}

.sconnecte {
    z-index: 9;
    display: none;
    visibility: hidden;
    background-color: var(--fond-globale);
    position: fixed;
    right: 10px;
    box-shadow: 0px 1px 10px black;
}

.sconnecte a {
    text-decoration: none;
    color: #333;
    font-size: 25px;
}

.sconnecte a:hover {
    color: var(--couleur-principale);
}

.sconnecte.click {
    display: block;
    visibility: visible;
    height: 250px;
    width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sconnecte input {
    font-size: 30px;
    width: 400px;
    border: solid 1px black;
}

.sconnecte label {
    font-size: 30px;
    font-weight: bolder;
}

.sconnecte input[type=submit] {
    margin-top: 10px;
    background-color: var(--couleur-principale);
}

main a {
    color: #333;
    text-decoration: none;
    margin-top: 5px;
    font-size: 25px;
    font-weight: bolder;
}

main a:hover {
    color: var(--couleur-principale);
}

.connectee {
    z-index: 9;
    display: none;
    visibility: hidden;
    background-color: var(--fond-globale);
    position: fixed;
    right: 10px;
    box-shadow: 0px 1px 10px black;
}

.connectee a {
    text-decoration: none;
    color: #333;
    font-size: 25px;
}

.connectee a:hover {
    color: var(--couleur-principale);
}

.connectee.click {
    display: block;
    visibility: visible;
}

.recherche {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.recherche input[type=searche] {
    width: 50%;
}

.recherche input[type=submit] {
    width: 20%;
}

.r_annonnce {
    margin-top: 10px;
    width: calc(100% - 40px - 6px);
    height: 150px;
    margin-left: 20px;
    border: solid 3px black;
    border-radius: 10px;
    background-color: var(--fond-menue);
}

.r_annonnce a {
    color: black;
    text-decoration: none;
    height: 100%;
    width: 100%;
    margin: 0px;
    display: flex;
    flex-direction: row;
}

.r_annonnce a:hover {
    color: var(--couleur-principale);
}

.r_annonnce a img {
    height: 150px;
    width: 260px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    object-fit: cover;
}

.r_annonnce a .r_presentation_annonnce {
    margin-left: 5px;
    margin-top: 3px;
    margin-right: auto;
    font-size: 45px;
}

.r_annonnce a .r_date_annonnce {
    display: flex;
    align-items: end;
    margin-right: 15px;
    font-size: 25px;
}

.r_annonnce a .r_prix_annonnce {
    display: flex;
    align-items: center;
    margin-right: 5px;
    font-size: 30px;
}

.presente_annone {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.c_annonnce {
    margin-top: 10px;
    max-width: calc(50% - 10px - 6px);
    min-width: 500px;
    min-height: 150px;
    margin-left: 5px;
    border: solid 3px black;
    border-radius: 10px;
    background-color: var(--fond-menue);
    display: flex;
    flex-direction: row;
}

.c_annonnce .donnet {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.c_annonnce .donnet_plus {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    border-left: solid 1px black;
    padding-left: 5px;
    padding-right: 5px;
}

.c_annonnce .s_donnet {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: solid 1px black;
    padding-left: 5px;
    padding-right: 10px;
}

.c_annonnce img {
    height: 150px;
    width: 260px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    object-fit: cover;
}

.a_pas_resultat {
    font-size: 40px;
    margin-top: 10px;
    margin-left: 10px;
}

.mag img {
    width: 250px;
}

.md_annonce img {
    width: 250px;
}

.vendeur {
    display: none;
    visibility: hidden;
}

.vendeur.af {
    display: block;
    visibility: visible;
}

footer {
    z-index: 7;
    position: absolute;
    width: 100%;
    background-color: var(--couleur-principale);
    text-align: center;
    margin-top: 5px;
}

footer.scrolebarre {
    position: absolute;
    width: 100%;
    background-color: var(--couleur-principale);
    text-align: center;
    bottom: 0px;
}

footer a {
    text-decoration: none;
    color: black;
    font-size: 30px;
}

footer a.click {
    color: #333;
}

footer a:hover {
    text-decoration: underline;
}

.bienconecter {
    visibility: visible;
    display: block;
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.bienconecter.click {
    visibility: hidden;
    display: none;
}

main input {
    font-size: 30px;
    width: 400px;
    margin-left: 2px;
}

main input[type=submit] {
    background-color: var(--couleur-principale);
    margin-bottom: 10px;
    margin-top: 10px;
}

main label {
    font-size: 30px;
    font-weight: bolder;
}

main textarea {
    font-size: 30px;
    width: 400px;
}

.errorconecter {
    visibility: hidden;
    display: none;
}

.errorconecter.click {
    visibility: visible;
    display: block;
}

@media (max-width: 1300px) {
    header .menut {
        justify-content: start;
    }
}

@media (max-width: 1100px) {
    header .menut {
        justify-content: start;
    }

    header .barreche {
        margin-left: 0px;
        margin-right: 0px;
    }
}

@media (max-width: 1000px) {
    header {
        z-index: 10;
        position: none;
        display: flex;
        align-items: baseline;
    }

    header .btntelmenu {
        display: block;
        visibility: visible;
    }

    header .btntelmenu.active {
        position: absolute;
        background-size: 40px;
        background-image: url("images/menut_a_fermer.png");
    }

    header .menut.active {
        position: absolute;
        display: block;
        background-color: var(--fond-menue);
        top: 0px;
        left: 0px;
        bottom: 0px;
        height: 100%;
        width: auto;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .btnaccueil {
        margin-top: 8px;
    }

    .fondmenu.active {
        z-index: 9;
        visibility: visible;
        display: block;
        position: fixed;
        top: 0px;
        bottom: 0px;
        width: 100%;
        background-color: var(--fond-globale);
    }

    header .barreche {
        display: none;
        visibility: hidden;
    }

    header .menut {
        display: flex;
    }

    header a {
        display: none;
        visibility: hidden;
    }

    header a .ptlogo {
        height: 35px;
    }

    header .menut.active a {
        display: block;
        visibility: visible;

    }

    header .conect {
        position: absolute;
        top: 0px;
        right: 0px;
        font-size: 20px;
        border: solid black 1px;
        display: flex;
        background-color: var(--fond-globale);
    }

    .sconnecte.click {
        z-index: 9;
        position: fixed;
        height: 100%;
        width: 100%;
        margin: 0px;
        border: none;
        padding: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        left: 0px;
        box-shadow: none;
    }

    .sconnecte input {
        width: calc(100% - 20px);
        margin-left: 10px;
    }

    .connectee.click {
        z-index: 9;
        position: fixed;
        height: 100%;
        width: 100%;
        margin: 0px;
        border: none;
        padding: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        left: 0px;
        box-shadow: none;
    }

    .recherche input[type=searche] {
        width: 60%;
    }

    .recherche input[type=submit] {
        width: 40%;
        font-size: 30px;
    }

    .r_annonnce {
        margin-top: 10px;
        width: calc(100% - 6px - 6px);
        height: auto;
        margin-left: 3px;
        border-radius: 10px;
        background-color: var(--fond-menue);
    }

    .r_annonnce a {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .r_annonnce a img {
        border-bottom-left-radius: 0px;
    }

    .r_annonnce a .r_presentation_annonnce {
        margin-left: 1px;
        margin-top: 1px;
        margin-right: none;
        justify-content: center;
    }

    .r_annonnce a .r_date_annonnce {
        display: flex;
        align-items: none;
        justify-content: center;
        margin: 0px;
    }

    .r_annonnce a .r_prix_annonnce {
        display: flex;
        align-items: none;
        justify-content: center;
        margin: 0px;
    }

    .c_annonnce {
        width: calc(100% - 20px);
        min-width: calc(100% - 20px);
        display: flex;
        flex-direction: column;
    }

    .c_annonnce img {
        border-bottom-left-radius: 0px;
    }

    main input {
        width: calc(100% - 10px);
        margin-left: 5px;
    }

    main textarea {
        width: calc(100% - 10px);
    }

    footer.scrolebarre {
        position: relative;
        bottom: none;
    }
}


#preview {
    width: 200px;
    display: inline-block;
}

#preview img {
    width: 100%;
}