/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rust:    #C0392B;
  --rust-dk: #96281B;
  --amber:   #E67E22;
  --cream:   #FDF6EC;
  --brown:   #5D4037;
  --brown-lt:#8D6E63;
  --dark:    #2C1810;
  --text:    #3E2723;
  --text-lt: #6D4C41;
  --white:   #FFFFFF;
  --shadow:  rgba(44,24,16,.18);
  --radius:  12px;
  --trans:   .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

h1,h2,h3 { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ============================
   NAVBAR
   ============================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(44,24,16,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px var(--shadow);
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--amber);
  letter-spacing: .5px;
}

.nav-links {
  list-style: none; display: flex; gap: 2rem;
}

.nav-links a {
  color: #F5DEB3;
  font-size: .95rem; font-weight: 400;
  letter-spacing: .4px;
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--amber); }

.hamburger {
  display: none;
  background: none; border: none;
  color: var(--amber); font-size: 1.6rem; cursor: pointer;
}

.nav-mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  padding: .5rem 2rem 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: #F5DEB3; padding: .55rem 0;
  font-size: 1rem;
  transition: color var(--trans);
}
.nav-mobile a:hover { color: var(--amber); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: url('https://images.unsplash.com/photo-1604382355076-af4b0eb60143?w=1200&q=70&fm=webp') center/cover no-repeat;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,24,16,.82) 0%, rgba(192,57,43,.45) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; color: var(--white);
  padding: 2rem;
  max-width: 700px;
}

.hero-tag {
  font-size: .9rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.2rem;
  font-weight: 700;
}

.hero-content h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.1;
  text-shadow: 2px 4px 16px rgba(0,0,0,.5);
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300; line-height: 1.7;
  margin-bottom: 2.2rem;
  opacity: .92;
}

.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  padding: .9rem 2.4rem;
  border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 4px 18px rgba(192,57,43,.45);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.btn-primary:hover {
  background: var(--rust-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,.5);
}
.btn-ubereats {
  display: inline-block;
  background: #06C167;
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(6,193,103,.4);
  transition: background var(--trans), transform var(--trans);
}
.btn-ubereats:hover {
  background: #05a857;
  transform: translateY(-2px);
}

/* ============================
   INFO BAND
   ============================ */
.info-band {
  background: var(--brown);
  display: flex; justify-content: center; gap: 0;
  flex-wrap: wrap;
}

.info-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 3rem;
  border-right: 1px solid rgba(255,255,255,.12);
  color: var(--white);
}
.info-item:last-child { border-right: none; }

.info-icon { font-size: 1.6rem; }

.info-item div { display: flex; flex-direction: column; }
.info-item strong { font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); margin-bottom: .2rem; }
.info-item span { font-size: .95rem; }

/* ============================
   SECTIONS
   ============================ */
.section { padding: 5rem 1.5rem; }
.section-alt { background: #F5ECD8; }

.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  text-align: center; margin-bottom: .8rem;
}
.section-title.left { text-align: left; }

.section-sub {
  text-align: center; color: var(--text-lt);
  font-size: 1.05rem; margin-bottom: 2.8rem;
}

/* ============================
   MENU TABS
   ============================ */
.menu-tabs {
  display: flex; justify-content: center; gap: .75rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}

.tab {
  background: none;
  border: 2px solid var(--brown-lt);
  color: var(--brown);
  padding: .55rem 1.6rem;
  border-radius: 50px;
  font-size: .95rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
  font-family: 'Lato', sans-serif;
}
.tab:hover, .tab.active {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}

/* ============================
   PIZZA CARDS
   ============================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.8rem;
}

.pizza-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 16px var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.pizza-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.pizza-img {
  height: 190px;
  background-size: cover; background-position: center;
}

.pizza-info { padding: 1.2rem 1.3rem; }

.pizza-header {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .5rem; flex-wrap: wrap;
}
.pizza-header h3 { font-size: 1.15rem; color: var(--dark); flex: 1; }

.price {
  font-size: 1.05rem; font-weight: 700;
  color: var(--rust);
}

.badge {
  background: var(--amber);
  color: var(--white);
  font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  letter-spacing: .5px;
}
.badge.veg { background: #4CAF50; }

.pizza-info p { color: var(--text-lt); font-size: .9rem; line-height: 1.5; }

/* ============================
   MENU LISTE
   ============================ */
.menu-list { animation: fadeIn .3s ease; }

@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.menu-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: .75rem;
}

.menu-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  background: var(--white);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--trans);
}
.menu-item:hover { transform: translateY(-2px); }
.menu-item.highlight { border-left: 4px solid var(--rust); }

.mi-left { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.mi-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--dark); }
.mi-desc { font-size: .83rem; color: var(--text-lt); line-height: 1.4; }
.mi-price { font-size: .95rem; font-weight: 700; color: var(--rust); white-space: nowrap; padding-top: .1rem; }

.menu-extras {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  margin-top: 1.8rem;
  padding: 1rem 1.4rem;
  background: #F5ECD8;
  border-radius: 10px;
  font-size: .88rem; color: var(--text-lt);
}
.menu-extras strong { color: var(--rust); }

/* Boissons */
.boissons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.boisson-group { display: flex; flex-direction: column; gap: .5rem; }
.boisson-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--brown);
  margin-bottom: .3rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--amber);
}

/* ============================
   ABOUT
   ============================ */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.about-text p {
  color: var(--text-lt); font-size: 1rem;
  line-height: 1.8; margin-bottom: 1.1rem;
}

.about-badges {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.8rem;
}

.badge-item {
  background: var(--white);
  border: 2px solid var(--amber);
  padding: .5rem 1.1rem;
  border-radius: 50px;
  font-size: .9rem; font-weight: 700;
  color: var(--brown);
  display: flex; align-items: center; gap: .4rem;
}

.about-para {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 8px 12px 40px var(--shadow);
  object-fit: cover; height: 420px;
}

.galerie {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .6rem;
  max-height: 520px;
  overflow: hidden;
}
.galerie-item { overflow: hidden; }
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.galerie-item:hover img { transform: scale(1.04); }
.galerie-large { grid-row: 1 / 3; }
@media (max-width: 700px) {
  .galerie { grid-template-columns: 1fr; grid-template-rows: auto; max-height: none; }
  .galerie-large { grid-row: auto; }
  .galerie-item img { height: 220px; }
}

/* ============================
   CONTACT
   ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 3px 16px var(--shadow);
  text-align: center;
}
.contact-card-map {
  padding: 0;
  overflow: hidden;
  min-height: 280px;
}

.contact-icon { font-size: 2.2rem; display: block; margin-bottom: .8rem; }
.contact-card h3 { font-size: 1rem; color: var(--rust); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-card p { color: var(--text-lt); font-size: .95rem; line-height: 1.7; }
.contact-card a { color: var(--rust); font-weight: 700; transition: color var(--trans); }
.contact-card a:hover { color: var(--rust-dk); }

.map-placeholder {
  background: #E8D5B0;
  border-radius: var(--radius);
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--brown-lt);
}
.map-inner { text-align: center; color: var(--brown); }
.map-inner span { font-size: 3rem; display: block; margin-bottom: .5rem; }
.map-inner p { font-weight: 700; font-size: 1rem; }
.map-inner small { font-size: .8rem; color: var(--text-lt); }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--dark);
  padding: 2.2rem 1.5rem;
  color: #D7CCC8;
}

.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: .7rem;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--amber); font-weight: 700;
}

.footer p { font-size: .88rem; opacity: .8; }

.social-links { display: flex; gap: 1rem; margin-top: .4rem; }
.social-links a {
  background: rgba(255,255,255,.1);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700;
  transition: background var(--trans);
}
.social-links a:hover { background: var(--rust); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .about-container { grid-template-columns: 1fr; }
  .about-img { height: 300px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: block; }

  .info-band { flex-direction: column; }
  .info-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 1.1rem 1.5rem; }
  .info-item:last-child { border-bottom: none; }

  .section { padding: 3.5rem 1.2rem; }
}

/* ============================
   HERO — DEUX BOUTONS
   ============================ */
.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: .9rem 2.4rem;
  border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .5px;
  border: 2px solid rgba(255,255,255,.6);
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================
   NAVBAR PANIER
   ============================ */
.nav-commander {
  background: var(--rust);
  color: var(--white) !important;
  padding: .35rem 1rem !important;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: background var(--trans) !important;
  position: relative;
}
.nav-commander:hover { background: var(--rust-dk) !important; color: var(--white) !important; }

.nav-cart-badge {
  background: var(--amber);
  color: var(--white);
  font-size: .7rem; font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 20px;
  margin-left: .3rem;
  vertical-align: middle;
}

/* ============================
   BOUTON "+" SUR LES PIZZAS
   ============================ */
.mi-right {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.btn-ajouter {
  background: var(--rust);
  color: var(--white);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-ajouter:hover { background: var(--rust-dk); transform: scale(1.12); }
.btn-ajouter:active { transform: scale(.95); }

.menu-item.indisponible { opacity: .55; }
.menu-item.indisponible .mi-name::after {
  content: '';
}

.badge-indispo {
  background: #e8e0db;
  color: #9e6b58;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* ============================
   PANIER — BOUTON FLOTTANT
   ============================ */
.cart-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--rust);
  color: var(--white);
  border: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(192,57,43,.5);
  z-index: 200;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.cart-float.visible { display: flex; }
.cart-float:hover { background: var(--rust-dk); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(192,57,43,.5); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--amber);
  color: var(--white);
  font-size: .7rem; font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ============================
   PANIER — OVERLAY + PANNEAU
   ============================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(44,24,16,.5);
  z-index: 300;
  display: none;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream);
  z-index: 400;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: -4px 0 30px var(--shadow);
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.6rem;
  background: var(--dark);
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.cart-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: var(--amber);
  margin: 0;
}

.cart-close {
  background: none; border: none;
  font-size: 1.9rem; line-height: 1;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  transition: color var(--trans);
  padding: 0;
}
.cart-close:hover { color: var(--amber); }

.order-close { color: var(--text-lt); }
.order-close:hover { color: var(--rust); }

.cart-items {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.2rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-lt);
}
.cart-empty span { font-size: 3rem; display: block; margin-bottom: .8rem; }

.cart-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--white);
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: .6rem;
  box-shadow: 0 2px 8px var(--shadow);
}
.cart-item-name { flex: 1; font-weight: 700; font-size: .92rem; color: var(--dark); }
.cart-item-price { color: var(--rust); font-weight: 700; font-size: .92rem; white-space: nowrap; }

.cart-qty {
  display: flex; align-items: center; gap: .4rem;
}
.cart-qty button {
  background: #E8D5B0; color: var(--brown);
  border: none; width: 26px; height: 26px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), color var(--trans);
  font-weight: 700;
}
.cart-qty button:hover { background: var(--rust); color: var(--white); }
.cart-qty span { font-weight: 700; min-width: 1.4rem; text-align: center; font-size: .95rem; }

.cart-footer {
  padding: 1.2rem 1.6rem;
  border-top: 2px solid #E8D5B0;
  background: var(--white);
}
.cart-total-line {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
  font-size: 1.05rem; color: var(--text);
}
.cart-total-line strong { color: var(--rust); font-size: 1.3rem; }

.btn-block { display: block; width: 100%; text-align: center; }

/* ============================
   MODAL COMMANDE
   ============================ */
.order-modal {
  position: fixed; inset: 0;
  background: rgba(44,24,16,.6);
  z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}
.order-modal.open { display: flex; }

.order-box {
  background: var(--cream);
  border-radius: var(--radius);
  width: 100%; max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(44,24,16,.35);
}

.order-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; color: var(--dark);
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: .9rem; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--brown); margin-bottom: .3rem;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-group input {
  width: 100%;
  border: 2px solid #D7CCC8;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: .95rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--trans);
}
.form-group input:focus { outline: none; border-color: var(--rust); }

.type-btns { display: flex; gap: .6rem; }
.type-btn {
  flex: 1;
  padding: .6rem .5rem;
  border: 2px solid var(--brown-lt);
  border-radius: 8px;
  background: none;
  color: var(--brown);
  font-weight: 700; font-size: .88rem;
  cursor: pointer;
  transition: all var(--trans);
  font-family: 'Lato', sans-serif;
}
.type-btn.active, .pay-btn.active { background: var(--rust); border-color: var(--rust); color: var(--white); }
.pay-btn {
  flex: 1;
  padding: .6rem .5rem;
  border: 2px solid var(--brown-lt);
  border-radius: 8px;
  background: none;
  color: var(--brown);
  font-weight: 700; font-size: .88rem;
  cursor: pointer;
  transition: all var(--trans);
  font-family: 'Lato', sans-serif;
}

.order-recap {
  background: var(--white);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin: 1rem 0;
  font-size: .9rem;
  border: 1px solid #E8D5B0;
}
.order-recap > strong { color: var(--brown); display: block; margin-bottom: .6rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.order-recap ul { list-style: none; color: var(--text-lt); }
.order-recap li { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px dashed #F0E5D0; }
.order-recap li:last-child { border-bottom: none; }
.recap-total { margin-top: .6rem; padding-top: .6rem; border-top: 2px solid #E8D5B0; display: flex; justify-content: space-between; align-items: center; color: var(--dark); font-size: 1rem; }
.recap-total strong { color: var(--rust); font-size: 1.1rem; }

.form-error { color: var(--rust); font-size: .85rem; margin-top: .7rem; text-align: center; min-height: 1.2em; }

#step-success { text-align: center; padding: 1rem 0; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
#step-success h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--dark); margin-bottom: .8rem; }
#step-success p { color: var(--text-lt); line-height: 1.7; }
