/* =========================
   STYLE.CSS - FRENCH TACOS
   ======================== */

/* 1. Réinitialisation générale + police */
html, body {
  margin: 0;
  padding: 0;
  background: #b00016;
  min-height: 100%;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
}

/* 2. Barre supérieure beige */
.top-bar {
  background: #f3e8c9;
  border-bottom: 5px solid #b00016;
}

.top-bar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-item {
  color: #b00016;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-sep {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
}

/* 3. Barre de navigation rouge */
.main-header {
  background: #b00016;
}

.main-nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 26px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

/* Liens de navigation */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links a {
  color: #f3e8c9;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 19px;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

/* Bouton de menu actif */
.nav-links a.active,
.nav-links a.is-active {
  border: 2px solid #f3e8c9;
  border-radius: 999px;
  padding: 10px 20px;
}

/* Sélecteur de langue */
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  border-radius: 8px;
  text-decoration: none;
}

.lang-flag img {
  width: 40px;
  height: 28px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.lang-flag.is-selected {
  outline: 3px solid rgba(243,232,201,0.95);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Navbar responsive */
@media (max-width: 1100px) {
  .main-nav { flex-wrap: wrap; }
  .nav-links {
    flex: 0 0 100%;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
  }
  .nav-links a {
    font-size: 15px;
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .top-item {
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }
  .top-bar-inner { gap: 10px; }
  .brand-logo { height: 40px; }
}

/* 4. En-tête page “À la carte” */
.carta-page {
  background: #b00016;
  color: #f3e8c9;
  padding: 46px 0 70px;
}

.carta-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 26px;
}

/* Titre principal de page */
.carta-h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Titre de section et sous-titre */
.carta-head {
  margin: 0;
}

.carta-h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
  color: #f3e8c9;
}

.carta-sub {
  margin: 4px 0 4px;
  font-size: 14px;
  color: #032743;
  font-weight: 600;
}

/* 5. Grille des produits */
.carta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

/* Carte produit */
.item-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Bloc image produit */
.item-poster {
  border-radius: 20px;
  border: 4px solid #f3e8c9;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  background: #032743;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.item-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bloc texte produit */
.item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Nom du produit */
.item-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  color: #f3e8c9;
  line-height: 1.1;
  min-height: auto;
}

/* Description */
.item-desc {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.3;
  color: #032743;
  font-weight: 600;
}

/* Prix */
.item-badge {
  margin-top: auto;
  align-self: flex-end;
  border: 2px solid #f3e8c9;
  color: #f3e8c9;
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 900;
  font-size: 15px;
  background: transparent;
  margin-bottom: 0;
}

/* Grille uniforme largeur max */
.carta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Bloc image carré uniforme */
.item-poster {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  border: 3px solid #fcebb6;
  background-color: #0d2238;
  position: relative;
}

/* Image qui remplit le carré */
.item-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grille responsive */
@media (max-width: 1024px) {
  .carta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
  .carta-grid { grid-template-columns: 1fr; }
}

/* 6. Pied de page – bloc principal */
.site-footer {
  background: #f3e8c9;
  padding: 70px 0 0;
  margin-top: 50px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  column-gap: 60px;
  align-items: start;
}

.footer-col {
  text-align: left;
}

/* Logo footer */
.footer-brand {
  display:flex;
  align-items:flex-start;
}

.footer-logo {
  width: 160px;
  height: auto;
  display:block;
}

/* Titres colonnes footer */
.site-footer h4 {
  margin: 0 0 18px;
  font-family: "Bebas Neue","Montserrat",sans-serif;
  color: #b00016;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 24px;
}

.footer-subtitle {
  margin-top: 30px;
}

/* Listes de liens / infos */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Montserrat",sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #b00016;
  font-weight: 600;
}

.footer-list li { margin: 8px 0; }

.site-footer a {
  color: #b00016;
  text-decoration: none;
  font-weight: 700;
}

/* Lignes d’information */
.footer-infos-list .info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-infos-list .info-ico {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
  margin-top: 2px;
}

/* Puce rouge adresse */
.footer-infos-list .info-pin {
  padding-left: 0;
}

.footer-infos-list .info-pin::before {
  content: "●";
  color: #b00016;
  font-size: 20px;
  line-height: 1;
  margin-right: 10px;
  margin-top: -2px;
}

/* Moto plus jaune (livraison) */
.footer-infos-list .info-ico.moto {
  filter: hue-rotate(50deg) saturate(3) brightness(1.2);
}

/* Bouton contact dans le footer (si utilisé) */
.btn-contacto {
  padding: 12px 40px;
  font-size: 14px;
}

/* Icônes réseaux sociaux footer */
.footer-social {
  display:flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social-icon {
  width: 44px;
  height: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.footer-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

/* Bande copyright */
.footer-bottom {
  text-align:center;
  padding: 22px 16px 26px;
  color: #b00016;
  font-family: "Montserrat",sans-serif;
  font-weight: 800;
  font-size: 18px;
}


/* ===== Navbar mobile ===== */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    row-gap: 40px;
    text-align: center;
    padding: 0 20px 40px;
  }
  .footer-brand { justify-content: center; }
  .footer-col { text-align: center; }
  .footer-infos-list .info-item { justify-content: center; }
  .footer-social { justify-content: center; }
}


@media (max-width: 1100px) {
  .main-nav {
    display: flex;
    flex-wrap: wrap;              
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px;
    gap: 8px;
  }

  
  .brand {
    order: 1;
    flex: 0 0 auto;
  }

  .brand-logo {
    height: 32px;
  }

  .lang {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
  }

  .lang-flag {
    width: 22px;
    height: 16px;
  }

  .lang-flag img {
    width: 100%;
    height: 100%;
  }

 
  .nav-links {
    order: 3;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;     
    gap: 4px;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 6px;
  }

  .nav-links a {
    font-size: 9px;       
    padding: 2px 4px;     
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .brand-logo { height: 28px; }

  .nav-links {
    gap: 3px;
  }

  .nav-links a {
    font-size: 8px;       
    padding: 2px 3px;
  }

  .lang-flag {
    width: 20px;
    height: 14px;
  }
}

@media (max-width: 900px) {
  .top-bar {
    font-size: 10px;      
    padding: 6px 4px;
    gap: 6px;
  }

  .top-item,
  .top-bar span {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 600px) {
  .top-bar {
    font-size: 8px;       
    padding: 4px 3px;
    gap: 3px;
  }

  .top-item,
  .top-bar span {
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .top-icon,
  .top-sep {
    width: 10px;
    height: 10px;
  }
}

