body {

    background-image: url('../images/fond.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #d4af37;

}

header {

    padding: 20px;
    text-align: center;

}

#menu-mobile{

    display:none;

}

nav a {

    margin: 10px;
    text-decoration: none;
    color: #d4af37;

}

main {

    padding: 20px;
    text-align: center;

}

footer {

    padding: 20px;
    text-align: center;

}

/*page accueil*/

.accueil {

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px

}

.collection {

    display:flex;
    min-height: 70vh;
    flex: 1;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.nouveautes {

    display:flex;
    min-height: 70vh;
    flex: 1;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.img-acc img{

    width:100%;
    max-width:450px;
    border-radius:15px;

}

.img-acc{

    transition:transform .25s;

}

.img-acc:hover{

    transform:scale(1.03);

}


/*pages collection et nouveautes*/

.grille-produits {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;

}

.produit {

    background: #2e2e2e;
    border-radius: 30px;
    padding: 20px;
    color: #d4af37;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);

}

.produit img {

    width: 100%;
    border-radius: 15px;

}

.produit{

    transition:transform .25s;

}

.produit:hover{

    transform:scale(1.03);

}

.grille-produits a {

    text-decoration: none;
    color: inherit;

}


/*page produit*/

.conteneur{

    max-width:1200px;
    margin:0 auto;

}

.ligne1{

    display:flex;
    gap:40px;

}

.couverture{

    flex: 1;

}

.couverture img{

    width:100%;
    max-width:600px;
    border-radius:15px;

}

.resume{

    flex: 1;
    display:flex;
    flex-direction:column;
    justify-content:center;

}

.ajouter-panier{

    padding:15px;
    border:none;
    border-radius:10px;
    cursor:pointer;

}

.ligne2{

    display:flex;
    gap:40px;

}

.texte-dos{

    flex: 1;
    display:flex;
    flex-direction:column;
    justify-content:center;

}

.texte-dos a{

    text-decoration: none;
    color: inherit; 

}

.image-dos{

    flex: 1;

}

.image-dos img{

    width:100%;
    max-width:600px;
    border-radius:15px;

}


/*page extrait*/

.img-extrait{

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.img-extrait img{

    width:100%;
    max-width:700px;
    margin-bottom: 20px;

}


/*page contact*/

.main{

    max-width: 800px;
    margin: 0 auto;
    padding: 40px;

}

.main h1{

    text-align: center;
    margin-bottom: 50px;

}

.contact{

    background: #2e2e2e;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);

}

.contact h2{

    color: #d4af37;
    margin-bottom: 10px;

}

.contact p{

    margin: 0;
    color: white;

}

.contact a{

    color: white;
    text-decoration: none;

}

.contact a:hover{

    color: #d4af37;

}


/*page panier*/

#panier{

    display:flex;
    flex-direction:column;
    gap:20px;

}

.article-panier{

    display:flex;
    align-items:center;
    gap:25px;
    background:#2e2e2e;
    border-radius:20px;
    max-width:600px;
    margin:20px auto;
    padding:20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);

}

.article-panier img{

    width:140px;
    border-radius:10px;

}

.infos-produit{

    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    gap:10px;

}

.total{

    width:300px;
    margin-left:auto;
    margin-right:80px;
    margin-top:40px;
    padding:20px;
    border-radius:20px;
    text-align:center;

}

.supprimer{

    background: #2e2e2e;
    border: none;
    color: #d4af37;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 12px;

}

/*commande*/

.commande{

    max-width:800px;
    margin:0 auto;
    padding:30px;

}

.livraison,
.recapitulatif,
.paiement{

    background:#2e2e2e;
    border-radius:20px;
    padding:25px;
    margin-bottom:30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);

}

.livraison form {

    display:flex;
    flex-direction:column;
    gap:10px;
    text-align:left;

}

.livraison input {

    padding:10px;
    border-radius:10px;
    border:none;

}

/*message erreur*/

#message-erreur{

    display: none;

    background:#8b0000;
    color:white;

    padding:15px;

    border-radius:10px;

    margin-bottom:20px;

}

/*merci achat*/

.article-commande{

    margin-bottom:25px;
    line-height:1.8;

}

.separation{

    width:70%;
    height:2px;
    background:white;
    margin:25px auto;

}

.retour-accueil {

    text-decoration: none;
    color: #d4af37;

}

.merci1 {
    margin-bottom: 30px;
}

.mreci2 {
    margin-bottom: 30px;
}

.retour-accueil {
    display: inline-block;
    margin-top: 10px;
}




/*version telephone*/

@media (max-width: 768px){

    header{

        padding:15px;
        padding-top:30px;

    }

    #menu-mobile{

        display:block;
        margin:20px auto;
        padding:12px 25px;
        background-color: inherit;
        color:#d4af37;
        border:none;
        font-size:2rem;
        cursor:pointer;

    }

    body{

        min-height:100vh;
        display:flex;
        flex-direction:column;

    }

    nav{

        display:none;

    }

    nav.ouvert{

        display:flex;
        flex-direction:column;
        gap:15px;
        align-items:center;
        margin-top:20px;

    }

    nav a{

        margin:0;

    }

    .main{

        flex:1;
        padding:20px;
        display:flex;
        flex-direction:column;
        align-items:center;

    }

    .main h1{

        font-size:2rem;
        margin-bottom:30px;

    }

    /*page accueil*/

    .accueil{

        flex-direction:column;
        gap:50px;

    }

    .collection,
    .nouveautes{

        min-height:auto;
        width:100%;
        padding:10px;

    }

    .img-acc img{

        max-width:300px;

    }

    h1{

        font-size:2rem;

    }

    h2{

        font-size:1.3rem;

    }

    /*nouveautes et collection*/

    .grille-produits{

        grid-template-columns:1fr;
        gap:25px;
        max-width:350px;

    }

    .produit{

        padding:15px;
        border-radius:20px;

    }

    .produit img{

        max-width:250px;
        margin:auto;
        display:block;

    }

    .titre-produit{

        font-size:1.2rem;

    }

    .description-produit{

        font-size:0.95rem;

    }

    .contact{

        padding:15px;

    }

    .contact a{

        word-break:break-word;

    }

    .conteneur{

        flex-direction:column;
        align-items:center;
        gap:30px;

    }

    .couverture,
    .resume,
    .texte-dos,
    .image-dos{

        width:100%;
        max-width:400px;
        padding: 5px;
        display:flex;
        justify-content:center;
        align-items:center;
        
    }

    .couverture img,
    .image-dos img{

        max-width:300px;
        width:100%;
        margin:auto;
        display:block;

    }

    .ajouter-panier{

        width:100%;

    }

    .img-extrait{

        flex-direction:column;
        align-items:center;

    }

    .img-extrait img{

        width:100%;
        max-width:350px;

    }

    #resume-commande{

        width:100%;
        max-width:450px;
        margin:30px auto;

    }

    .resume-commande{

        text-align:center;

    }

    .retour-accueil{

        display:inline-block;
        width:100%;

    }

    .total{

        margin:0 auto;

    }
    
}