@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

body {
    margin: 0;
    padding:0;
    font-family: arial;
}

/************** HEADER ******************/
header {
    background-color: #000;
    padding: 20px;
    font-family: 'Bebas Neue', cursive;
    display: flex;
    /* tous les espaces sont égaux */
    justify-content: space-evenly;
}
header img {
    width: 200px;
}
header div:nth-child(2) {
    text-align: center;
    background-color: #1f1c28;
    padding-left: 70px;
    padding-right: 70px;
    border-radius: 50px;
}
header h1 {
    color: #fff;
    font-size: 6rem;            /* 1 rem = 16 pixels */
    letter-spacing: 2px;        /* écartement entre chaque lettre */
    margin: 0;                  /* neutraliser les marges par défaut de h1 */
}
header h2 {
    color: #29a9df;
    font-size: 2.3rem;
    letter-spacing: 1px;
}
/************** HEADER ******************/



/************** ARTICLE ******************/
article {
    background-color: #fff;
    display: flex;
    padding: 20px;
}
section {
    /* sections ont même largeur et qu'elles occupent tout l'espace alloué */
    flex-grow: 1;                   /* par défaut à 0 */
    /* occupent tout l'espace alloué */

    flex-shrink: 1;                 /* par défaut à 1 */

    flex-basis: 0;                  /* par défaut à auto */
    /* sections ont même largeur */
}
section:nth-child(1) {
    margin-right: 10px;
}
section:nth-child(2) {
    margin-left: 10px;
}
section div {
    background-color: #ccc;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}
section h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-align: center;
}
section h3 {
    color: #0170ba;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-top: 0;
}
.code {
    background-color: #000;
    color: orange;
    border-radius: 15px;
    padding: 12px;
}
.code span {        /* balise générique type inline */
    display: block;
    margin-left: 1rem;  /* 16px */
}
/************** ARTICLE ******************/



/************** FOOTER ******************/
footer {
    background-color: #000;
    padding: 35px;
}
footer p {
    color: #ccc;
    text-align: center;
    font-size: 1rem;
    font-style: italic;
}
/************** FOOTER ******************/





@media screen and (max-width: 800px) {

    /************** HEADER ******************/
    header {
        flex-direction: column;     /* axe principal (vertical)*/
        align-items: center;        /* centrer sur l'axe secondaire (horizontal)*/
    }
    header div:nth-child(2) {
        padding-left: 0;
        padding-right: 0;
        border-radius: 25px;
        width: 90%;
    }
    header h1 { 
        font-size: 4rem;
    }
    header h2 {
        font-size: 1.5rem;
    }
    /************** HEADER ******************/

    /************** ARTICLE ******************/
    article {
       
        flex-direction: column;
        padding: 0;         /* suppression du padding */
    }
    section:nth-child(1) {
        margin-right: 0;
    }
    section:nth-child(2) {
        margin-left: 0;
    }
    /************** ARTICLE ******************/

}