:root {
    /* Default (light) theme */
    --col-fond: #f3e8d8;
    --col-fond-inter: #ffe4bb;
    ;
    --col-fond-accent: #ead2cd;
    --col-txt: #212121;
    --col-txt-light: #585858;
    --col-txt-ombre: #5858588b;
    --col-bord: #898EA4;
    --col-btn: #0d47a1;
    --col-btn-vol: #0b069f;
    --col-code: #d81b60;
    --col-surligne: #ffdd33;
    --col-desactive: #efefef;
    --col-blanc: #fff;
    --col-noir: #000;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
}


.header_menu {
    display: none;
}

.grille_res_soc {
    display: none;
}

.container {
    display: grid;
    grid-template:
        "header"
        "contenu"
        "footer";
}

.contenu {
    padding: 0 10%;
}

.contenu ul {
    padding: 0 20px;
}

.contenu strong {
    font-weight: bold;

}

.encadre {
    background-color: var(--col-code);
    padding: 10px;
    margin-top: 0;
    margin-left: 5px;
    border-radius: 10px;
}


.logo {
    display: none;
}

.grille_entete {
    display: grid;
    background-color: var(--col-fond-accent);
    gap: 15px;
    grid-template-columns: 150px 1fr 100px;
    grid-template-areas:
        "logo canard mail"
        "menu_li menu_li menu_li";
}

.item1 {
    grid-area: canard;
    display: grid;
    place-items: center;
    padding-top: 10px;
}

.item1 img {
    max-width: 350px;
    height: auto;
    object-fit: cover;
}

.item2 {
    grid-area: logo;
}

.item2 img {
    max-width: 100px;
    height: auto;
    padding: 20px;
    /* position: fixed; */
}

.item3 {
    grid-area: mail;
    display: grid;
    justify-items: end;
}

.item3 img {
    max-height: 90px;
    width: auto;
    padding: 20px;
}

.item4 {
    grid-area: menu_li;
    z-index: 1;
}

.grille_entete_pg {
    display: grid;
    width: 100%;
    position: fixed;
    gap: 5px;
    grid-template-columns: 100px 1fr 100px;
    grid-template-areas:
        "logo mm_logo mail"
        "menu_li menu_li menu_li";
    background-color: var(--col-fond-accent);
}

.item1pg {
    grid-area: mm_logo;
    display: grid;
    place-items: center;
    padding-top: 10px;
}

.item1pg img {
    max-width: 150px;
    height: auto;
    object-fit: cover;
}

.item2pg {
    grid-area: logo;
}

.item2pg img {
    max-width: 60px;
    height: auto;
    padding: 20px 0 0 20px;
}

.item3pg {
    grid-area: mail;
    display: grid;
    justify-items: end;
}

.item3pg img {
    max-height: 25px;
    width: auto;
    padding: 20px 20px 0 0;
}

.item4pg {
    grid-area: menu_li;
    z-index: 1;
}

.grille_resp {
    display: none;
}

.menu_haut_page {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    gap: 5px 0 5px 0;
    background-color: var(--col-fond-accent);
}


.menu_haut_page a {
    text-decoration: none;
    font-size: large;
    color: var(--col-txt);
    width: 100px;
    padding: 10px;
    text-align: center;
    list-style: none;
}

.menu_haut_page a:hover {
    background-color: var(--col-fond-inter);
    font-weight: bold;
    color: var(--col-noir);
}

/* ****************************************************************** */
/*              TOUT CE QUI CONCERNE LE CONTENU DE LA PAGE            */
/* ****************************************************************** */


.contenu {
    background-color: var(--col-fond);
    color: var(--col-txt);
}

.logo_txt_mm {
    display: grid;
    justify-content: center;
    margin: 10px;
    background-color: var(--col-fond);
}

.slogant {
    text-align: center;
    font-size: x-large;
    font-style: italic;
    font-weight: 800;
    background-color: var(--col-fond);
}

.body-un-article {
    background-color: var(--col-fond);
    margin: 4rem;
}

.un_article {
    height: 100%;
    background: var(--col-fond);
    display: grid;
    gap: 30px;
    grid-template-columns: 350px 120px 200px;
    grid-template-areas:
        "nomarticle fic_nom fic_nom"
        "imgarticle desc descriptif"
        "imgarticle dimen dimension"
        "imgarticle commandable commander"
        "imgarticle stock enstock"
        "imgarticle pri prixachat";
    justify-content: center;

    padding-top: 10px;

}

.un_article p {
    color: var(--col-txt-light);
}

.un_article div {
    color: var(--col-txt);
}

#nom_fichier {
    grid-area: fic_nom;
}

#lib1 {
    grid-area: desc;
}

#commentaire {
    grid-area: descriptif;
}

#lib2 {
    grid-area: dimen;
}

#mesure {
    grid-area: dimension;
}

#lib3 {
    grid-area: commandable;
}

#commandable {
    grid-area: commander;
}

#lib4 {
    grid-area: stock;
}

#enstock {
    grid-area: enstock;
}

#lib5 {
    grid-area: pri;
}

#prix {
    grid-area: prixachat;
}

#img_article {
    grid-area: imgarticle;
    display: grid;
    place-items: center;
    padding-right: 10px;
}

#img_article img {
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

#nom_article {
    grid-area: nomarticle;
    font-size: x-large;
    font-weight: bold;
}


/* *************************************************************** */
/*              TOUT CE QUI CONCERNE LE PIED DE PAGE               */
/* *************************************************************** */

.footer {
    display: grid;
    grid-template-columns: 100px 50px 1fr 100px;
    background-color: var(--col-fond-accent);
}

.menu_pg_legales {
    display: flex;
    align-items: center;
    margin: 15% 1fr 15%;
    justify-content: space-around;
    text-decoration: none;
}

.menu_pg_legales a {
    text-decoration: none;
}

.logofb {
    display: grid;
    height: 50px;
    place-content: center end;
}

.logofb img {
    width: 30px;
    height: auto;

}

.logoig {
    display: grid;
    height: 50px;
    place-content: center;
}

.logoig img {
    width: 30px;
    height: auto;
}

.pictomail {
    display: grid;
    height: 50px;
    place-content: left;
}

.pictomail img {
    width: 30px;
    height: auto;
}

.copydroits {
    display: grid;
    text-align: center;
    font-size: xx-small;
    font-style: italic;
}

/* *************************************************************** */
/*           TOUT CE QUI CONCERNE LE FORMULAIRE CONTACT            */
/* *************************************************************** */

.contact-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 380px;
    max-width: 380px;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}


.contact-form button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

.choix-radio {
    display: flex;
    width: 650px;

}


/* *************************************************************** */
/*           TOUT CE QUI CONCERNE LES GALERIES D'IMAGES            */
/* *************************************************************** */
.galerie {
    width: 1300px;
    max-width: 100%;
    margin: 0 auto;
    column-count: 3;
    column-gap: 10px;
    margin-top: 150px;
}

.galerie img {
    display: block;
    width: 90%;
    height: auto;
    margin: 0 0 15px 0;
    border-radius: 10px;
    transition: 0.2s ease-in-out;
}

.galerie img:hover {
    transform: scale(0.9);
}

/* ************************************************************* */
/*                      textes sous images debut                 */
/* ************************************************************* */
.txt_sous_image {
    width: 250px;
    float: left;
    margin: 5px;
    /* border: #ccc 1px solid; */
    /* padding: 10px; */
    background-color: var(--col-fond);
    /* box-shadow: 5px 5px #ccc; */
}

.txt_sous_image img {
    width: inherit;
    padding: 1px;
}

.txt_com {
    display: none;
    animation: opac 2s;
}

.txt_sous_image:hover .txt_com {
    display: inline-block;
    background-color: var(--col-blanc);
    transform: translateY(-20px);
    padding: 3px;
    border-radius: 10px;
}

@keyframes opac {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* textes sous images fin */


.pg_index {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    background-color: var(--col-fond);
}

.pg_index img {
    width: 200px;
    height: auto;
    border-radius: 50%;
}

.pg_index img:hover {
    transition: width 0.5s;
    width: 210px;
    height: auto;
}

/* *************************************************************** */
/*           TOUT CE QUI CONCERNE L'AFFICHAGE SUR TABLETTE         */
/* *************************************************************** */


@media screen and (max-width: 768px) {
    * {
        margin: 0;
        padding: 0;
        font-family: "Arial", sans-serif;
    }

    .header_menu {
        display: flex;
        padding: 15px 10px;

    }

    .logo_txt_mm {
        display: none;
    }

    .logo {
        position: absolute;
        display: grid;
        height: auto;
        place-items: center;
        padding: 10px 0 5px 0;
    }

    .logo img {
        max-width: 50%;
        height: auto;
    }

    .grille_entete {
        display: none;
    }

    .grille_res_soc {
        position: relative;
        display: grid;
        grid-template-columns: 50px 50px 1fr;
        background-color: var(--col-fond-inter);
    }

    .item_r3 {
        display: grid;
        place-items: center;
        padding: 3px;
    }

    .item_r3 img {
        width: 70%;
        height: auto;
    }

    .item_r4 {
        display: grid;
        place-items: center;
        justify-content: end;
        padding: 3px;
    }

    .item_r4 img {
        width: 70%;
        height: auto;
    }

    .item_r5 {
        display: grid;
        place-items: center;
        justify-content: end;
        padding: 3px;
    }

    .item_r5 img {
        width: 65%;
        height: auto;
    }

    .slogant {
        text-align: center;
        font-size: x-large;
        font-style: italic;
        text-shadow: var(--col-txt-ombre) 3px 3px;
        font-weight: 800;

    }


    ul {
        flex-direction: column;
        position: absolute;
        background-color: rgba(255, 255, 255, 0.9);
        top: 0;
        left: -1500px;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        /* backdrop-filter: blur(3px); */
        transition: 0.5s;
    }

    ul li {
        margin: 20px;
        list-style: none;
    }

    ul li a {
        text-transform: uppercase;
        text-decoration: none;
        font-weight: bold;
        color: var(--col-txt-light);
    }

    .button {
        width: 20px;
        height: 50px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 100;
    }

    .button::after {
        content: "";
        position: absolute;
        width: 15px;
        height: 2px;
        background-color: #000;
        box-shadow: 0 5px 0 #000;
        transform: translateY(-5px);
        transition: 0.5s;

    }

    .button.active::after {
        box-shadow: 0 0 0 #000;
        transform: rotate(45deg);
    }

    .button::before {
        content: "";
        position: absolute;
        width: 15px;
        height: 2px;
        background-color: #000;
        transform: translateY(5px);
        transition: 0.5s;
    }

    .button.active::before {
        transform: rotate(-45deg);
    }

    ul.active {
        left: 0;
    }

    .adrien_index {
        display: grid;
        place-items: center;
        padding-top: 10px;
        padding-left: 10px;
    }

    .adrien_index img {
        width: 80%;
        height: auto;
    }

    .footer {
        display: grid;
        grid-template-columns: 50px 50px 1fr 50px;
        background-color: var(--col-fond-inter);
    }

    .menu_pg_legales {
        display: flex;
        align-items: center;
        margin: 15% 1fr 15%;
        font-size: small;
        justify-content: space-around;
    }

    .logofb {
        display: grid;
        height: 40px;
        place-content: center;
    }

    .logofb img {
        width: 25px;
        height: auto;
    }

    .logoig {
        display: grid;
        height: 40px;
        place-content: center;
    }

    .logoig img {
        width: 25px;
        height: auto;
    }

    .pictomail {
        display: grid;
        height: 40px;
        place-content: center;
    }

    .pictomail img {
        width: 25px;
        height: auto;
    }

    .copydroits {
        display: grid;
        text-align: center;
        font-size: xx-small;
        font-style: italic;
    }

    .galerie {
        width: 750px;
        max-width: 100%;
        margin: 0 auto;
        column-count: 2;
        column-gap: 10px;
    }

    .galerie img {
        /* width: 180px;
        height: auto;
        object-fit: cover; */
        display: block;
        width: 80%;
        height: auto;
        margin: 0 0 10px 0;
        border-radius: 6px;
        transition: 0.2s ease-in-out;
    }

    .galerie img:hover {
        transform: scale(0.9);
    }

    .pg_index {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }

    .pg_index img {
        width: 200px;
        height: auto;
        border-radius: 50%;
    }

    .pg_index img:hover {
        transition: width 0.5s;
        width: 210px;
        height: auto;
    }


    .un_article {
        height: 100%;
        background: var(--col-fond);
        display: grid;
        grid-template-areas:
            "nomarticle nomarticle"
            "imgarticle imgarticle"
            "desc desc"
            "descriptif descriptif"
            "dimen dimension"
            "commandable commander"
            "stock enstock"
            "pri prixachat";
        justify-items: stretch;
        grid-template-columns: auto;

        padding-top: 10px;

    }

    .body-un-article {
        margin: 1rem;
    }
}

@media screen and (max-width: 480px) {

    .un_article {
        height: 100%;
        background: var(--col-fond);
        display: grid;
        grid-template-areas:
            "nomarticle nomarticle"
            "imgarticle imgarticle"
            "desc desc"
            "descriptif descriptif"
            "dimen dimension"
            "commandable commander"
            "stock enstock"
            "pri prixachat";
        justify-items: stretch;
        grid-template-columns: auto;
        padding-top: 10px;

    }

    .body-un-article {
        margin: 1rem;
    }


}