* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", serif;
  background-color: #f9f9f9;
}
.barre-superieure {
  background: #d64515;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: min(20px, 3vw) min(40px, 5vw);
  position: relative;
  flex-wrap: wrap;
}

.barre-superieure a {
  text-decoration: none;
  color: #fff;
  margin-right: clamp(10px, 2vw, 20px);
  font-size: clamp(11px, 2vw, 14px);
}

.gauche {
  padding-left: clamp(10px, 10vw, 150px);
  display: flex;
  gap: clamp(8px, 2vw, 15px);
  flex-wrap: wrap;
}

.droite {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 20px);
  padding-right: clamp(10px, 12vw, 250px);
}

.logo {
  position: relative;
  align-items: center;
}

.logo img {
  height: clamp(50px, 10vw, 80px);
  width: clamp(50px, 10vw, 80px);
}

.icones {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
}

.icones img {
  width: clamp(18px, 3vw, 22px);
  height: clamp(18px, 3vw, 22px);
}
.home {
  margin: clamp(15px, 4vw, 30px);
  font-size: clamp(12px, 2vw, 14px);
  color: #ec651d;
  padding-right: clamp(20px, 10vw, 1000px);
  padding-left: clamp(10px, 3vw, 0px);
}

.home a {
  color: #818080;
  text-decoration: none;
}

.separateur {
  width: 90%;
  max-width: 1000px;
  height: 1px;
  border: none;
  background: rgb(228, 228, 228);
  margin: 20px auto;
}
.conteneur {
  max-width: 1200px;
  margin: clamp(20px, 5vw, 40px) auto;
  padding: clamp(20px, 5vw, 40px);
}

h1 {
  font-size: clamp(24px, calc(4vw + 1rem), 32px);
  margin-bottom: clamp(20px, 4vw, 30px);
  font-weight: 400;
}

.tableau-panier {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  /* Sur mobile, on masque le tableau pour utiliser des cartes */
  display: table;
}

.tableau-panier th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
  font-size: clamp(12px, 2vw, 14px);
}

.tableau-panier td {
  padding: clamp(10px, 3vw, 20px) clamp(8px, 2vw, 15px);
  border: 1px solid #ddd;
  vertical-align: middle;
}

.cellule-image {
  width: clamp(80px, 15vw, 120px);
}

.cellule-image img {
  width: 100%;
  max-width: 100px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #eee;
  padding: 10px;
}

.nom-produit {
  font-size: clamp(14px, 2vw, 16px);
}

.poids-produit {
  color: #666;
  font-size: clamp(12px, 1.5vw, 14px);
  margin-top: 5px;
}

.cellule-quantite {
  width: clamp(150px, 25vw, 200px);
}

.controles-quantite {
  display: flex;
  align-items: center;
  gap: 10px;
}

.boutons-quantite {
  display: flex;
  gap: 5px;
}

.bouton-modifier,
.bouton-supprimer {
  width: clamp(30px, 6vw, 35px);
  height: clamp(30px, 6vw, 35px);
  border: none;
  cursor: pointer;
  font-size: clamp(14px, 2vw, 16px);
  border-radius: 3px;
}

.bouton-modifier img {
  width: clamp(20px, 4vw, 25px);
  height: clamp(20px, 4vw, 25px);
}

.bouton-supprimer img {
  width: clamp(20px, 4vw, 25px);
  height: clamp(20px, 4vw, 25px);
}

.bouton-modifier {
  background-color: #5b9bd5;
  color: white;
}

.bouton-supprimer {
  background-color: #d9534f;
  color: white;
}

.bouton-modifier:hover {
  background-color: #4a8bc2;
}

.bouton-supprimer:hover {
  background-color: #c9302c;
}

.prix {
  font-weight: 600;
  text-align: center;
  font-size: clamp(13px, 2vw, 16px);
}

.instructions-speciales {
  margin: 20px 0;
}

.bouton-deroulant {
  width: 100%;
  padding: clamp(10px, 2vw, 12px);
  border: 1px solid #ddd;
  background-color: white;
  text-align: left;
  cursor: pointer;
  font-size: clamp(12px, 2vw, 14px);
  font-family: inherit;
}

/* ========== PIED PANIER ========== */
.pied-panier {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: clamp(20px, 4vw, 30px);
  gap: 20px;
  /* flex-wrap ça permet aux produit de passer à la ligne si nécessaire */
  flex-wrap: wrap;
}

.bouton-continuer {
  padding: clamp(10px, 2vw, 12px) clamp(18px, 3vw, 24px);
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: clamp(12px, 2vw, 14px);
  border-radius: 50px;
  font-family: inherit;
}

.section-paiement {
  text-align: right;
  border: 1px solid #ddd;
  padding: clamp(15px, 3vw, 20px);
  /* Sur mobile, prend 100% de largeur */
  min-width: min(100%, 400px);
  background-color: white;
}

.notice {
  font-size: clamp(11px, 1.5vw, 12px);
  margin-bottom: 15px;
  padding: 0;
  border: none;
  background-color: transparent;
}

.sous-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 600;
  gap: clamp(20px, 5vw, 40px);
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
  font-size: clamp(14px, 2vw, 16px);
}

.bouton-valider {
  width: 100%;
  padding: clamp(12px, 2vw, 15px) clamp(20px, 4vw, 30px);
  background-color: #e0e0e0;
  border: none;
  cursor: pointer;
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 3px;
  font-family: inherit;
}

.bouton-valider:hover {
  background-color: #d0d0d0;
}

.newsletter-section {
  background-color: #dddddd;
  padding: clamp(40px, 8vw, 60px) min(20px, 5vw) 20px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.pizza-image {
  position: absolute;
  left: -130px;
  top: -20px;
  width: 280px;
  height: auto;
  object-fit: cover;
}

.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-content h2 {
  font-size: clamp(20px, calc(4vw + 1rem), 32px);
  margin-bottom: 15px;
  color: #333;
}

.newsletter-content p {
  font-size: clamp(12px, 2vw, 14px);
  color: #666;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 600px;
  border: 1px solid rgb(214, 213, 213);
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  background-color: rgb(255, 247, 247);
  position: relative;
  z-index: 10;
  /* transform  vers le haut */
  transform: translateY(clamp(60px, 12vw, 90px));
}

.email-input {
  flex: 1;
  padding: clamp(12px, 3vw, 18px) clamp(15px, 4vw, 30px);
  border: none;
  background-color: #ffffff;
  font-size: clamp(12px, 2vw, 14px);
  color: #333;
  outline: none;
  border-radius: 50px 0 0 50px;
  min-width: 0;
}

.email-input::placeholder {
  color: #999;
}

.subscribe-btn {
  padding: clamp(12px, 3vw, 18px) clamp(20px, 5vw, 50px);
  background-color: #d94b30;
  color: white;
  border: none;
  cursor: pointer;
  font-size: clamp(13px, 2vw, 16px);
  font-weight: bold;
  transition: background-color 0.3s;
  border-radius: 0 50px 50px 0;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background-color: #c43d24;
}

/* footer */
.footer {
  background-color: #f9f9f9;
  padding: clamp(80px, 15vw, 140px) min(20px, 5vw) clamp(20px, 5vw, 40px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* Grid adaptatif ça passe de 1 à 4 colonnes selon l'écran */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 5vw, 40px);
}

.footer-column h3 {
  font-size: clamp(16px, 2.5vw, 18px);
  margin-bottom: 20px;
  color: #333;
}

.about-text {
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  font-size: clamp(11px, 2vw, 13px);
  color: #666;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.contact-info li::before {
  position: absolute;
  left: 0;
  color: #d94b30;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.product-img {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  background-color: #e8e8e8;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h4 {
  font-size: clamp(12px, 2vw, 14px);
  color: #333;
  margin-bottom: 5px;
}

.product-price {
  color: #d94b30;
  font-weight: bold;
  font-size: clamp(12px, 2vw, 14px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #666;
  font-size: clamp(12px, 2vw, 14px);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #d94b30;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.instagram-item {
  width: 100%;
  padding-bottom: 100%;
  background-color: #e8e8e8;
  border-radius: 5px;
}

.footer-bottom {
  text-align: center;
  padding: clamp(20px, 4vw, 30px) min(20px, 5vw);
  border-top: 1px solid #e0e0e0;
  margin-top: clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-bottom p {
  font-size: clamp(11px, 1.5vw, 12px);
  color: #999;
}

.footer-bottom a {
  color: #d94b30;
  text-decoration: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icon {
  width: clamp(30px, 5vw, 35px);
  height: clamp(30px, 5vw, 35px);
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  text-decoration: none;
  transition: all 0.3s;
  font-size: clamp(12px, 2vw, 14px);
}

.social-icon:hover {
  border-color: #d94b30;
  color: #d94b30;
}

/* responsive */

@media (max-width: 480px) {
  .barre-superieure {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
  }

  .gauche {
    order: 2;
    padding-left: 0;
    justify-content: center;
    width: 100%;
  }

  .logo {
    order: 1;
  }

  .droite {
    order: 3;
    padding-right: 0;
    justify-content: center;
    width: 100%;
  }
  .tableau-panier thead {
    display: none;
  }

  .tableau-panier,
  .tableau-panier tbody,
  .tableau-panier tr,
  .tableau-panier td {
    display: block;
    width: 100%;
  }

  .tableau-panier tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: white;
  }

  .tableau-panier td {
    border: none;
    padding: 10px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tableau-panier td::before {
    content: attr(data-label);
    font-weight: 600;
    flex: 1;
  }

  .cellule-image {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .cellule-image::before {
    display: none;
  }

  .cellule-image img {
    max-width: 150px;
    margin: 0 auto;
  }

  .pied-panier {
    flex-direction: column;
    align-items: stretch;
  }

  .bouton-continuer {
    width: 100%;
    order: 2;
  }

  .section-paiement {
    width: 100%;
    order: 1;
    margin-bottom: 20px;
  }
  .pizza-image {
    display: none;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 25px;
    transform: translateY(60px);
  }

  .email-input {
    border-radius: 25px 25px 0 0;
    width: 100%;
  }

  .subscribe-btn {
    border-radius: 0 0 25px 25px;
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-top: 100px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .barre-superieure {
    flex-direction: column;
    gap: 15px;
  }

  .gauche {
    order: 2;
    padding-left: 0;
    justify-content: center;
    width: 100%;
  }

  .logo {
    order: 1;
  }

  .droite {
    order: 3;
    padding-right: 0;
    justify-content: center;
    width: 100%;
  }
  .tableau-panier th,
  .tableau-panier td {
    padding: 10px 8px;
    font-size: 13px;
  }
  .pied-panier {
    flex-direction: column;
    align-items: stretch;
  }

  .section-paiement {
    width: 100%;
  }
  .newsletter-form {
    transform: translateY(70px);
  }

  .pizza-image {
    width: 200px;
    left: -80px;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding-top: 110px;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .gauche {
    padding-left: 50px;
  }

  .droite {
    padding-right: 100px;
  }

  .pizza-image {
    width: 220px;
    left: -100px;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1025px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}
