@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

{
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}

body {
font-family: 'Poppins', sans-serif;
background: #fff;
color: #171717;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 25px 8%;
background: #fff;
}

.logo {
font-size: 27px;
font-weight: 800;
text-decoration: none;
color: #171717;
}

.logo span {
color: #ed2929;
}

nav {
display: flex;
gap: 30px;
}

nav a {
text-decoration: none;
color: #333;
font-size: 14px;
font-weight: 500;
transition: 0.3s;
}

nav a {
color: #ed2929;
}

.btn {
display: inline-block;
background: #ed2929;
color: #fff;
padding: 13px 22px;
border-radius: 7px;
text-decoration: none;
font-weight: 600;
font-size: 14px;
border: none;
transition: 0.3s;
}

.btn {
background: #c91c1c;
transform: translateY(-2px);
}

.hero {
min-height: 580px;
padding: 70px 8%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 50px;
background: #f8f8f8;
}

.hero-text {
flex: 1;
}

.subtitle {
color: #ed2929;
font-size: 13px;
font-weight: 700;
letter-spacing: 2px;
margin-bottom: 18px;
}

.hero h1 {
font-size: clamp(32px, 4vw, 55px);
line-height: 1.2;
font-weight: 800;
margin-bottom: 22px;
}

.hero h1 span {
color: #ed2929;
}

.description {
max-width: 480px;
line-height: 1.8;
color: #666;
margin-bottom: 30px;
font-size: 15px;
}

.hero-image {
flex: 1;
}

.hero-image img {
display: block;
width: 100%;
max-width: 520px;
height: 390px;
object-fit: cover;
border-radius: 20px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.menu {
padding: 90px 8%;
text-align: center;
}

.menu h2,
.contact h2 {
font-size: 32px;
margin-bottom: 40px;
}

.menu-container {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 28px;
text-align: left;
}

.card {
padding: 15px 15px 25px;
border: 1px solid #eee;
border-radius: 15px;
transition: 0.3s;
}

.card {
transform: translateY(-7px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card img {
width: 100%;
height: 210px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 18px;
}

.card h3 {
font-size: 19px;
margin-bottom: 10px;
}

.card p {
color: #777;
font-size: 13px;
line-height: 1.7;
margin-bottom: 15px;
}

.price {
font-size: 20px;
color: #ed2929;
font-weight: 800;
margin-bottom: 18px;
}

.contact {
background: #171717;
color: #fff;
text-align: center;
padding: 75px 20px;
}

.contact h2 {
margin-bottom: 15px;
}

.contact > p(.note) {
color: #ccc;
margin-bottom: 25px;
}

.note {
margin-top: 20px;
color: #aaa;
font-size: 12px;
}

footer {
background: #101010;
color: #aaa;
text-align: center;
padding: 22px;
font-size: 13px;
}

/* Adaptation aux téléphones et tablettes */

@media (max-width: 900px) {
header {
padding: 20px 5%;
flex-wrap: wrap;
gap: 18px;
}

.hero {
    padding: 55px 5%;
    gap: 30px;
}

.menu {
    padding: 70px 5%;
}

.menu-container {
    gap: 15px;
}

}

@media (max-width: 650px) {
header {
justify-content: center;
}

nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
}

nav a {
    font-size: 12px;
}

.hero {
    flex-direction: column;
    text-align: center;
}

.description {
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    height: 280px;
}

.menu-container {
    grid-template-columns: 1fr;
}

.menu h2,
.contact h2 {
    font-size: 26px;
}

}

.panier {
    max-width: 700px;
    margin: 35px auto 0;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 15px;
    background: #fff;
    text-align: left;
}

.panier h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

#listePanier {
    padding-left: 22px;
    margin-bottom: 20px;
}

#listePanier li {
    margin-bottom: 10px;
    color: #555;
}

#totalPanier {
    font-size: 20px;
    font-weight: 800;
    color: #ed2929;
    margin-bottom: 20px;
}

#viderPanier {
    cursor: pointer;
}

@media (max-width: 650px) {
    .panier {
        padding: 18px;
    }
}

.ligne-panier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
}

.bouton-retirer {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .ligne-panier {
        align-items: flex-start;
        flex-direction: column;
    }
}

.ligne-panier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 14px;
    background: #f8f8f8;
    border-radius: 8px;
}

.controles-quantite {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bouton-quantite {
    width: 35px;
    height: 35px;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
}

.quantite {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

.bouton-retirer {
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
}

@media (max-width: 500px) {
    .ligne-panier {
        flex-direction: column;
        align-items: flex-start;
    }
}