Résultat

Index.html

				
					<!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>La maison du chocolat</title>
    <link rel="stylesheet" href="style.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Crete+Round&display=swap" rel="stylesheet"> 
</head>

<body data-rsssl=1>
    <header>
        <h1>La Maison du <span>Chocolat.</span></h1>
        <nav>
            <a href="">ACCUEIL</a>
            <a href="">LA CHOCOLATERIE</a>
            <a href="">RECETTE</a>
            <a href="">ACTUS</a>
            <a href="">CONTACT</a>
        </nav>
    </header>

    <!-- Bannière -->

    <section id="banniere">
        <h2 class="h2blanc">NOUVELLE SAISON <br> <b>NOUVEAUX CHOCOLAT</b> </h2>
        <br>
        <a href="#" class="bouton">Par ici</a> 
    </section>

    <!-- Fin de Bannière -->

    <!-- section qualité -->

    <section id="qualite">
        <article>
            <img decoding="async" src="images/steps-icon-1.jpg" alt="">
            <h2>qualité</h2>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim accusantium, vitae nesciunt est eum atque
                iure provident fuga porro similique.</p>
        </article>
        <article>
            <img decoding="async" src="images/steps-icon-2.jpg" alt="">
            <h2>ecologie</h2>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim accusantium, vitae nesciunt est eum atque
                iure provident fuga porro similique.</p>
        </article>
        <article>
            <img decoding="async" src="images/steps-icon-3.png" alt="">
            <h2>equitable</h2>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim accusantium, vitae nesciunt est eum atque
                iure provident fuga porro similique.</p>
        </article>
    </section>

    <!-- Fin de section qualité -->

    <!-- Section info  -->

    <section id="info">
        <article class="club">
            <div class="clubactu">
                <h2>LE CLUB</h2>
                <hr>
                <p>Inscrivez-vous dès maintenant et profitez de nos offres spéciales!</p>
                <a href="#" class="bouton">Plus d'infos</a>
            </div>
        </article>
        <article class="actu">
            <div class="clubactu">
                <h2>NOS ACTUS</h2>
                <hr>
                <p>Inscrivez-vous <br> dès maintenant et profitez de nos offres spéciales!</p>
                <a href="#" class="bouton">Plus d'infos</a>
            </div>
        </article>
    </section>

    <!-- Fin de Section info  -->

    <!-- section contact -->

    <section id="contact">
        <h2>CONTACTEZ-NOUS</h2>
        <hr>
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim accusantium, vitae nesciunt est eum atque iure
            provident fuga porro similique.</p>
        <form action="">
        <div class="form">
            <label for="nom"> Nom : </label>
            <input type="text" placeholder="Votre nom" name="nom">
        </div>
        <div class="formulaire">
            <label for="email"> Email : </label>
            <input type="email" placeholder="Votre email" name="email">
        </div>
            <div><input type="submit" value="OK" ></div>
        </form>
    </section>

    <!-- Fin de section contact -->

    <footer>
        <h2 id="maisonchoco">La Maison du <span>Chocolat.</span></h2>
        <p>Copyright © Tous droits réservés.</p>
    </footer>

</body>

</html>
				
			

Style.css

				
					/* generale */
*{
    margin: 0;
    padding: 0;
}
body{
    font-family: Arial, Helvetica, sans-serif;
    color: #444545;
}


/* Header */

header{
    display: flex;
    justify-content: space-evenly;
    height: 50px;
    line-height: 50px;
}
h1{
    font-size: 30px;
    font-family: 'Crete Round', serif;
}
span{
    color: #e83b89;
}
nav a{
    text-decoration: none;
    margin-left: 10px;
    color: #444545;
}
#banniere{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-image: url("images/main.jpg");
    background-size: cover;
    height: 697px;
}
.h2blanc{
    margin-bottom: 30px;
    color: white;
    font-size: 70px;
}
.bouton
{
    color: white;
    background-color: #e83b89;
    display: inline-block;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    text-decoration: none;
    width: 150px;
    height: 50px;
    border-radius: 5px;
}

/* Qualité */

#qualite,p{
    margin: 50px;
    display: flex;
    text-align: center;
}
img{
    margin: 50px;
}

/* info */

#info{
    background-color: #EFEFEF ;
    display: flex;
    justify-content: center;
    padding: 100px 0;
}
.club{
    background-image: url("images/article-image-1.jpg");
    background-repeat: no-repeat;
    width: 500px;
    height: 270px;
}
.actu{
    background-image: url("images/article-image-2.jpg");
    background-repeat: no-repeat;
    width: 500px;
    height: 270px;
}
.clubactu{
    background-color: rgba(255, 255, 255, 0.9);
    width: 200px;
    height: 100%;
    font-size: 15px;
}
#info a{
    height: 30px;
    text-align: center;
    line-height: 30px;
    margin-left: 25px;
}
#info h2{
    text-align: center;
    padding-top: 20px;
}
hr{
    width: 100px;
    margin: 20px auto;
}
#info p{
    margin: 20px;
}

/* contact */

#contact h2{
    text-align: center;
    margin-top: 20px;
}
#contact hr{
    width: 300px;
    background-color: aqua;
}
form{
    text-align: center;

}
input[type=text],input[type=email],input[type=submit]{
    font-size: 20px;
    border-radius: 3px;
}
input[type=submit]{
    color: white;
    background-color: #e83b89;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    width: 70px;
    height: 30px;
    border-radius: 5px;
    border: none;
}

/* Footer */

footer{
    background-color:#444545;
    height: 200px;
    margin-top: 50px;
    padding: 50px;
    color: white;
    display: flex;
    justify-content:center;
    align-items: center;
    flex-direction: column;
}

#maisonchoco{
    color: white;
    font-size: 30px;
    font-family: 'Crete Round', serif;
}

@media screen and (max-width:600px) {
    header {
        display: flex;
        flex-direction: column;
        height: 100px;
        line-height: 50px;
        text-align: center;
      }
      .h2blanc {
        margin-bottom: 30px;
        color: white;
        font-size: 40px;
      }
      #qualite, p {
        margin: 50px;
        display: flex;
        flex-direction: column;
        text-align: center;
      }
      #info {
        background-color: #EFEFEF;
        display: flex;
        padding: 100px 0;
        flex-direction: column;
        align-items: center;
      }
      .club {
        background-image: url("images/article-image-1.jpg");
        background-repeat: no-repeat;
        width: 500px;
        height: 270px;
        margin: 10px;
        border-radius: 5px;
      }
      .actu {
        background-image: url("images/article-image-2.jpg");
        background-repeat: no-repeat;
        width: 500px;
        height: 270px;
        margin: 20px;
        border-radius: 5px;
      }
      form{
          display: flex;
          flex-direction: column;
      }
      form div{
          margin: 10px;
      }
}