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

:root {
  --primary: #d4380d;
  --primary-dark: #a8260a;
  --primary-light: #ff6b3d;
  --gold: #f5a623;
  --cream: #fdf6ec;
  --dark: #1a1a1a;
  --dark-lighter: #2d2d2d;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }

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

/* ===== HEADER ===== */
header {
  background: var(--dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 1.8rem; }

nav ul {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.85);
}

nav a:hover, nav a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(212,56,13,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(245,166,35,0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(20px, -20px) rotate(5deg); }
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.badge {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,56,13,0.3); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== PIZZA DU JOUR BANNER ===== */
.pizza-du-jour-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 16px 20px;
  font-weight: 600;
  display: none;
}

.pizza-du-jour-banner.visible { display: block; }
.pizza-du-jour-banner span { font-weight: 400; opacity: 0.9; }

/* ===== SECTION ===== */
.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-light);
}

.category-tab:hover { border-color: var(--primary); color: var(--primary); }
.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===== PIZZA GRID ===== */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pizza-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.pizza-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pizza-card-body {
  padding: 20px;
}

.pizza-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pizza-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.pizza-prices {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pizza-price {
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  white-space: nowrap;
}

.pizza-price small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.pizza-ingredients {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pizza-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-special {
  background: var(--gold);
  color: var(--dark);
}

.badge-du-jour {
  background: var(--primary);
  color: var(--white);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,56,13,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(212,56,13,0); }
}

/* ===== DRINKS SECTION ===== */
.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.drink-category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.drink-category-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream);
}

.drink-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.drink-item:last-child { border-bottom: none; }

.drink-name { font-weight: 500; font-size: 0.9rem; }
.drink-volume { color: var(--text-muted); font-size: 0.8rem; }
.drink-price { font-weight: 700; color: var(--primary); font-size: 0.9rem; }

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.commitments {
  display: grid;
  gap: 16px;
}

.commitment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.commitment-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.commitment-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.commitment-text strong {
  display: block;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
}

.hours-grid {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.hour-day { font-weight: 500; }
.hour-time { color: var(--text-light); }
.hour-closed { color: var(--primary); font-weight: 600; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 350px;
}

.footer-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul a {
  font-size: 0.85rem;
  transition: var(--transition);
}

footer ul a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-link:hover { background: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CHATBOT ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(212,56,13,0.4);
  z-index: 999;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle:hover { transform: scale(1.1); }

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.open { display: flex; }

.chatbot-header {
  background: var(--dark);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chatbot-header-text h4 { font-size: 0.95rem; }
.chatbot-header-text p { font-size: 0.75rem; opacity: 0.7; }

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  padding: 4px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 350px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: messageIn 0.3s ease;
}

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

.chat-message.bot {
  background: #f0f0f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: none;
  align-self: flex-start;
  padding: 10px 14px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat-typing.visible { display: block; }

.chatbot-input {
  display: flex;
  padding: 12px;
  border-top: 1px solid #eee;
  gap: 8px;
}

.chatbot-input input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 25px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.chatbot-input input:focus { border-color: var(--primary); }

.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1rem;
  transition: var(--transition);
}

.chatbot-input button:hover { background: var(--primary-dark); }

/* ===== SUPPLEMENTS SECTION ===== */
.supplements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.supplement-tag {
  background: var(--white);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  border: 1px solid #e0e0e0;
  display: flex;
  gap: 6px;
  align-items: center;
}

.supplement-price {
  color: var(--primary);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px;
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 998;
  }

  nav.open { transform: translateY(0); }

  nav ul {
    flex-direction: column;
    gap: 4px;
  }

  nav a {
    display: block;
    padding: 12px 16px;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  .pizza-grid { grid-template-columns: 1fr; }
  .drinks-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }

  .chatbot-window {
    right: 8px;
    left: 8px;
    bottom: 90px;
    width: auto;
  }

  .section { padding: 50px 20px; }
  .section-header h2 { font-size: 2rem; }
}

/* ===== LOADING ===== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Smooth section bg alternation */
.section:nth-child(even) { background: var(--white); }
