
/*--------GENERAL----------*/

:root{
    font-size: 16px;
}

@font-face {
    font-family: 'Titre';
    src: url(fonts/InriaSerif-Regular.ttf);
}

@font-face {
    font-family: 'Texte';
    src: url(fonts/Inter_18pt-Regular.ttf);
}


.menu{
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.menu a{
    text-decoration: none;
}

.menu a:hover, .menu li.active a{
    text-decoration: underline;
}


html,body{
    height: 98vh;
}

body{
    display: flex;
    flex-direction: column;
    font-family: 'Texte', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.5;
    background-color: #000000;
    color: #333;
}

h1, h2, h3, h4{
    font-family:'Titre', 'Times New Roman', Times, serif
}


#main{
    flex-grow: 1;
}

.wrapper{
    width: 1200px;
    margin: auto;
}


a{
    color: black;
}

a:hover{
    color: purple;
    transform: scale(1.4);
}

/*---------HEADER---------*/

#header{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.item.sucre a {
    color: red;
    font-weight: bold;
}

.item.sale a {
    color: green;
    font-weight: bold;
}
/*--------Logo au dessus-------*/

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  width: 60px;
  height: auto;
}

nav{
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

/*---------Search bar---------*/

body {
  margin: 0;
  font-family: sans-serif;
}

header {
  background-color: #f8f8f8;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5%;
  padding: 5px 10px;
  background-color: white;
}

.search-bar input {
  border: none;
  outline: none;
  padding: 5px;
  width: 150px;
  background: transparent;
}

/*----------Cartes----------*/

.cartes{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}


.carte-sale{
    width: 20rem;
    box-sizing: border-box;
    background-color: #f0f4ec;
    padding: 1rem;
    border-radius: .8rem;
    cursor: pointer;
    box-shadow: 0 0 .2rem black;
}
.carte-sucre{
    width: 20rem;
    box-sizing: border-box;
    background-color: #ffe4ec;
    padding: 1rem;
    border-radius: .8rem;
    cursor: pointer;
    box-shadow: 0 0 .2rem black;
}


.carte:hover{
     box-shadow: 0 0 .4rem black;
}

.carte-titre{
    margin-top: 0;
    text-align: center;
}



@media screen and (max-width: 1200px){
    :root{
        font-size: 14px;
    }

    .wrapper{
        width: auto;
        margin: none;
        padding: 0 2rem;
    }
}


@media screen and (max-width: 476px){

    #header{
        flex-direction: column;
        align-items: center;
        
    }
    nav{
        align-self: stretch;
        display: flex;
        justify-content: space-between;
    }
    

}

.Tarte {
    width: 15rem;
    padding: 1rem;
    cursor: pointer;

    img {
        object-fit: cover;

    }
}

.Quarts {
        width: 15rem;
    padding: 1rem;
    cursor: pointer;

    img {
        object-fit: cover;

    }
}

@media print{
    #header{
        display: none;
    }
}

/*------Formulaire------*/

body{
    background: #F0F0F0;
}

.field{
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.field-message{
    width: 50%;
}

input{
    padding: .4rem 1rem;
    border: none;
    background: none;

    background-color: #FFF;
    box-shadow: 0 0 .1rem #666666EE;
    border-radius: 12px;
}

[type="submit"]{
    width: 100%;
    background: none;
    border: none;
    background-color: #333;
    color: #FFF;
    cursor: pointer;
    box-shadow: 0 0 .1rem #000;
}

[type="submit"]:hover{
    color: #333;
    background-color: #FFF;
    border: 1px solid #333;
    box-shadow: 0 0 .3rem #000;
    transform: translate(2px, 2px);
}

/*--Mention légal--*/

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f0f0f0;
  flex-wrap: wrap;
}

/* Menu à gauche */

.footer-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.footer-left a {
  text-decoration: none;
  color: #333;
}

/* Partie droite */

.footer-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Images */

.footer-images {
  display: flex;
  gap: 10px;
}

.footer-images img {
  width: 24px;
  height: 24px;
}