/* =========================================
   PANUOZZO – Pizzeria Bougival
   Mobile-first | Dell G15 + Note 20 5G
   Palette : vert #2d6a4f | rouge #c1121f | blanc
   ========================================= */

:root {
  --green:  #2d6a4f;
  --green2: #40916c;
  --red:    #c1121f;
  --red2:   #e63946;
  --white:  #ffffff;
  --cream:  #fdf8f0;
  --gray:   #6b7280;
  --dark:   #1a1a1a;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
  --radius: 12px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   HEADER
   ========================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow .2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
}
.logo-sub { font-size: .65rem; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }

nav { display: none; gap: 28px; }
@media (min-width: 768px) { nav { display: flex; } }

nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color .2s;
}
nav a:hover { color: var(--green); }

.btn-order-header {
  display: none;
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  transition: background .2s, transform .1s;
}
.btn-order-header:hover { background: var(--red2); transform: translateY(-1px); }
@media (min-width: 768px) { .btn-order-header { display: block; } }

.burger {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
  padding: 4px 8px;
}
@media (min-width: 768px) { .burger { display: none; } }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.mobile-nav a:last-child { border-bottom: none; }
.btn-order-mobile {
  margin-top: 8px;
  background: var(--red) !important;
  color: var(--white) !important;
  text-align: center;
  padding: 14px !important;
  border-radius: 8px;
  font-weight: 600;
  border: none !important;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a2e22 0%, #2d6a4f 50%, #1a1a1a 100%);
  padding: 80px 20px 40px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: .18;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.2);
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-highlight { color: #f4c542; }

.hero-desc {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); }

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.35);
  transition: background .2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,.25); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero-badges span {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .82rem;
  border: 1px solid rgba(255,255,255,.2);
}

/* =========================================
   BANDEAU HORAIRES
   ========================================= */
.bandeau-horaires {
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  text-align: center;
  font-size: .85rem;
}
.bandeau-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.sep { opacity: .5; }

/* =========================================
   SECTIONS COMMUNES
   ========================================= */
.section-menu, .section-avis, .section-contact { padding: 80px 0; }
.section-livraison { padding: 80px 0; background: var(--cream); }
.section-commander { padding: 80px 0; background: var(--green); }
.section-promo { padding: 40px 0; background: var(--red); color: var(--white); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 10px;
}
.section-title.white { color: var(--white); }
.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 48px;
  font-size: 1rem;
}
.section-sub.white { color: rgba(255,255,255,.8); }

/* =========================================
   MENU
   ========================================= */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.tab {
  background: var(--cream);
  border: 2px solid var(--border);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
}
.tab.active, .tab:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.menu-grid.hidden { display: none; }

.pizza-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.pizza-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.13); }

/* Pizza image placeholders (gradients) */
.pizza-img {
  height: 180px;
  background: linear-gradient(135deg, #e9c46a, #f4a261);
}
.pizza-img-margherita  { background: linear-gradient(135deg, #e63946, #f4c542); }
.pizza-img-reine       { background: linear-gradient(135deg, #f4a261, #e9c46a); }
.pizza-img-4fromages   { background: linear-gradient(135deg, #f1faee, #a8dadc); }
.pizza-img-napolitaine { background: linear-gradient(135deg, #457b9d, #1d3557); }
.pizza-img-pepperoni   { background: linear-gradient(135deg, #e63946, #c1121f); }
.pizza-img-calzone     { background: linear-gradient(135deg, #f4c542, #e9c46a); }
.pizza-img-truffe      { background: linear-gradient(135deg, #2d3436, #636e72); }
.pizza-img-burrata     { background: linear-gradient(135deg, #dfe6e9, #b2bec3); }
.pizza-img-diavola     { background: linear-gradient(135deg, #d63031, #ff7675); }
.pizza-img-blanche     { background: linear-gradient(135deg, #f5f6fa, #dfe6e9); }
.pizza-img-saumon      { background: linear-gradient(135deg, #fd79a8, #e17055); }

.pizza-info { padding: 16px; }
.pizza-info h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.pizza-info p { font-size: .88rem; color: var(--gray); margin-bottom: 14px; }

.pizza-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.pizza-sizes { display: flex; gap: 12px; font-size: .82rem; color: var(--gray); }
.pizza-sizes strong { color: var(--dark); font-size: .9rem; }

.btn-add {
  background: var(--green);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
  display: inline-block;
}
.btn-add:hover { background: var(--green2); }

/* Formule cards */
.formule-card { background: var(--cream); }
.formule-card .pizza-info { padding: 24px; }
.formule-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.formule-badge.popular { background: var(--red); }
.formule-price { font-size: 1.6rem; color: var(--green); font-family: var(--font-head); }

.menu-note {
  text-align: center;
  color: var(--gray);
  font-size: .88rem;
  padding: 16px;
  background: var(--cream);
  border-radius: 8px;
}

/* =========================================
   COMMANDER
   ========================================= */
.order-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}
.order-option {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  color: var(--white);
  min-width: 200px;
}
.order-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.order-option strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.order-option p { font-size: .88rem; opacity: .8; }

.gloria-placeholder {
  background: rgba(255,255,255,.1);
  border: 2px dashed rgba(255,255,255,.4);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
}
.gloria-note { font-size: .85rem; opacity: .8; margin: 10px 0 24px; }

/* =========================================
   LIVRAISON
   ========================================= */
.livraison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.livraison-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.livraison-card:hover { border-color: var(--green); transform: translateY(-2px); }
.livraison-card.active { border-color: var(--green); background: #f0faf5; }
.livraison-icon { font-size: 1.4rem; }
.livraison-card strong { font-size: .95rem; }
.livraison-card span { font-size: .8rem; color: var(--gray); }
.livraison-free { color: var(--green) !important; font-weight: 600 !important; }

.livraison-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .9rem;
  color: var(--gray);
}
.livraison-conditions strong { color: var(--dark); }

/* =========================================
   PROMO
   ========================================= */
.promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.promo-inner h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
}
.promo-inner p { color: rgba(255,255,255,.85); font-size: .95rem; }

.promo-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,.2);
  border-radius: 10px;
  padding: 12px 20px;
}
#promo-code {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  font-family: monospace;
}
#btn-copy {
  background: var(--white);
  color: var(--red);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: .88rem;
  transition: opacity .2s;
}
#btn-copy:hover { opacity: .85; }

/* =========================================
   AVIS
   ========================================= */
.avis-score {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}
.score-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  color: var(--green);
  line-height: 1;
}
.stars { font-size: 1.5rem; color: #f4c542; margin-bottom: 4px; }
.avis-score p { color: var(--gray); font-size: .9rem; }

.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.avis-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.avis-stars { color: #f4c542; font-size: 1rem; margin-bottom: 12px; }
.avis-card p { font-size: .92rem; color: var(--dark); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.avis-author { display: flex; align-items: center; gap: 12px; }
.avis-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.avis-author strong { display: block; font-size: .9rem; }
.avis-author span { font-size: .78rem; color: var(--gray); }

.btn-avis {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s;
}
.btn-avis:hover { background: var(--green2); }

/* =========================================
   CONTACT
   ========================================= */
.section-contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: .9rem; margin-bottom: 4px; }
.contact-item p { font-size: .9rem; color: var(--gray); }
.contact-item a { color: var(--green); font-weight: 600; }

.btn-maps {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-maps:hover { background: #333; }

.contact-map iframe {
  border-radius: var(--radius);
  width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 2fr; }
}

.footer-brand .logo-text { color: var(--white); font-size: 1.4rem; }
.footer-brand p { font-size: .88rem; margin-top: 8px; line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.footer-legal { font-size: .8rem; }
.footer-legal p { margin-bottom: 4px; }

/* =========================================
   FLOATING CTA (mobile)
   ========================================= */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: none;
}
@media (max-width: 767px) { .floating-cta { display: block; } }

.btn-floating {
  display: block;
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 24px rgba(193,18,31,.45);
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn-floating:hover { background: var(--red2); transform: translateY(-2px); }

/* =========================================
   COMMANDER – GloriaFood + Stripe
   ========================================= */
.commander-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cmd-tab {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.35);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 99px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
}
.cmd-tab.active, .cmd-tab:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}

.cmd-panel { max-width: 600px; margin: 0 auto; text-align: center; }
.cmd-panel.hidden { display: none; }

/* Bouton GloriaFood custom */
.glf-btn-custom {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
  margin-bottom: 16px;
}
.glf-btn-custom:hover { background: var(--red2); transform: translateY(-2px); }

.cmd-note {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  margin-top: 12px;
}

.cmd-config-notice {
  margin-top: 20px;
  background: rgba(255,255,255,.1);
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}
.cmd-config-notice a { color: #f4c542; text-decoration: underline; }
.cmd-config-notice code {
  background: rgba(0,0,0,.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .8rem;
}

/* Stripe cart */
.stripe-cart {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 20px;
  min-height: 80px;
  margin-bottom: 16px;
}
.cart-empty { color: rgba(255,255,255,.6); font-size: .9rem; padding: 12px 0; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  font-size: .9rem;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-qty button {
  background: rgba(255,255,255,.2);
  border: none;
  color: var(--white);
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.cart-summary { text-align: center; }
.cart-total {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.cart-total strong { font-size: 1.5rem; }
.btn-pay { font-size: 1.1rem; padding: 16px 40px; }

/* =========================================
   RESPONSIVE – Dell G15 (1920x1080)
   ========================================= */
@media (min-width: 1200px) {
  .hero-content h1 { font-size: 4rem; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .avis-grid { grid-template-columns: repeat(3, 1fr); }
  .livraison-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================
   RESPONSIVE – Note 20 5G (393px logical)
   ========================================= */
@media (max-width: 430px) {
  .hero { min-height: 100svh; padding: 80px 16px 100px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .hero-badges { flex-direction: column; align-items: center; }
  .promo-inner { flex-direction: column; text-align: center; }
  .promo-code-box { justify-content: center; }
  .avis-score { flex-direction: column; text-align: center; }
  .bandeau-inner { flex-direction: column; gap: 4px; }
  .sep { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
