/* Importation de la police */
@font-face {
    font-family: "ma font";
    src: url(../Fonts/MagilioRegular-8Mxvg.otf);
}

body, html{
    padding: 0;
    margin: 0;
    height: 100%;
}

/* Navigation dans le header */

header, .box, .text-bienvenue {
    padding: 2em;
}

.navigation{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lien_nav_gauche{
    display: flex;
    justify-content: center;
    align-items: center;
}

.lien_nav_droite{
    display: flex;
    justify-content: end;
}
nav {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

header, section{
    background-color: #B7C3BA;
}

#suggestions{
    padding:25px;
    font-family: "ma font", sans-serif;
}

.logo {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

a {
    padding: 6px;
    border-radius: 7px;
    background-color: #B7C3BA;
    color:#354f52;
    font-family: "ma font", sans-serif;
    color: #1B0E0E;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover{
    color: #354f52;
}

.lien{
    padding: 6px;
    border-radius: 7px;
    background-color: #B7C3BA;
}

.lien:hover{
    background-color:#354f52 ;
    color: #B7C3BA;
}


/* Hero banner avec image qui reste dans le fond de l'écran */

.hero-banner {
    margin: 0;
    padding: 150px;
    height: 50%;
    background: linear-gradient(#292d2a7e, rgba(84, 84, 84, 0.327)), url(../images/photo_accueil/photo_nav.jpg);
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.text-bienvenue {
    text-align: center;
    color: #1B0E0E;
    font-family: "ma font", sans-serif;
}

/* Grille de catégories */

.boite-grille{
    margin-bottom: 0em;
    padding: 20px;
    background-color: #B7C3BA;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
    justify-content: space-evenly;
    align-content: space-evenly;
}

.element-gille {
    border: 3px solid black;
    border-radius: 30px;
    max-width: 100%;
    object-fit: cover;
}

.boite-image{
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.boite-image img{
    max-width: 100%;
}

.boite-image figcaption{
    margin-top: 10px;
    color: #1B0E0E;
    text-align: center;
}
/* Partie Suggestions */
.container{
    margin: 3em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: space-evenly;
}

.suggestions{
    display: flex;
    text-align: center;
    flex-wrap: wrap;    
}

.img-suggestion{
    border:black solid 3px;
    border-radius: 30px;
    max-width:15em;
    min-width: 12em;
    height: auto;
}


/* Section du footer*/

footer{
    border-top: rgb(91, 91, 91) solid 1px;
    margin: 0em;
    padding: 0.5em;
    background-color: white;
}

.conditions{
    text-align: center;
    font-family: "ma font", sans-serif;
}
/* Effet de zoom et de dézoom */

.aggrandir { 
    transition: all 0.2s ease-in-out; 
}

.aggrandir:hover { 
    transform: scale(1.1); 
}

.dezoom{ 
    transition: all 0.2s ease-in-out; 
}

.dezoom:hover { 
    transform: scale(0.95); 
}

/* Partie responsive */

@media screen and (max-width: 800px) {
    header, .box, .text-bienvenue {
        padding: 10px;
    }

    .text-bienvenue {
        font-size: 1.2em;
    }

    /* deactive les liens  sur telephone pour montré que le necessaire*/
    .cache{
        display: none;
    }
}

@media screen and (max-width: 600px) {
    header, .box, .text-bienvenue {
        padding: 5px;
    }

    .hero-banner {
        padding: 100px;
    }

    .text-bienvenue {
        font-size: 1em;
    }

    .element-gille {
        width: 90%;
    }

    /* deactive les liens  sur telephone pour montré que le necessaire*/
    .cache{
        display: none;
    }
}