/* ============================================
   TOPO GIGIO — Restaurant Website Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #0f0f0f;
  --color-bg-alt: #1a1a1a;
  --color-bg-card: #222222;
  --color-bg-card-hover: #2a2a2a;
  --color-primary: #e63946;
  --color-primary-light: #ff6b6b;
  --color-accent: #f4a261;
  --color-accent-dark: #e76f51;
  --color-text: #f1f1f1;
  --color-text-muted: #a0a0a0;
  --color-text-dim: #6b6b6b;
  --color-border: #333333;
  --color-success: #2a9d8f;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section-title em {
  color: var(--color-primary);
  font-style: italic;
}

.section-title-center {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
}

.nav-cta:hover {
  background: var(--color-primary-light) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 15, 15, 0.5) 0%, rgba(230, 57, 70, 0.15) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231a1a2e" width="1200" height="800"/><circle cx="300" cy="400" r="250" fill="%23e63946" opacity="0.08"/><circle cx="900" cy="300" r="300" fill="%23f4a261" opacity="0.06"/><circle cx="600" cy="700" r="200" fill="%23e63946" opacity="0.05"/></svg>');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(244, 162, 97, 0.1) 0%, transparent 60%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 162, 97, 0.15);
  border: 1px solid rgba(244, 162, 97, 0.3);
  color: var(--color-accent);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-badge-icon {
  font-size: 1.2rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.4);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 1rem;
  border: 1px dashed var(--color-border);
}

.about-text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-icon {
  font-size: 1.3rem;
}

/* ============================================
   MENU SECTION
   ============================================ */
.menu-section {
  background: var(--color-bg-alt);
}

/* Tabs */
.menu-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.menu-tab {
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-tab:hover {
  color: var(--color-text);
  border-color: var(--color-text-dim);
}

.menu-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Panels */
.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Menu note */
.menu-note {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0.8rem 1.5rem;
  background: rgba(244, 162, 97, 0.1);
  border: 1px solid rgba(244, 162, 97, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.95rem;
}

/* Pizza Grid */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* Menu Items */
.menu-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  transition: all var(--transition);
}

.menu-item:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-text-dim);
  transform: translateY(-2px);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
}

.menu-item-prices {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.price {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1rem;
  white-space: nowrap;
}

.price-small::before {
  content: 'P ';
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-dim);
}

.price-large::before {
  content: 'G ';
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-dim);
}

.menu-item-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.menu-item-note {
  color: var(--color-text-dim);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Pizza specials */
.pizza-star {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(230, 57, 70, 0.08) 100%);
  position: relative;
}

.star-badge {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
}

.pizza-custom {
  border-style: dashed;
  border-color: var(--color-accent);
}

/* Menu list (non-pizza items) */
.menu-list {
  display: grid;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Formules */
.menu-formule {
  max-width: 700px;
  margin: 2rem auto 0;
  background: rgba(42, 157, 143, 0.08);
  border: 1px solid rgba(42, 157, 143, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.menu-formule h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-success);
  margin-bottom: 1rem;
}

.formule-options {
  display: grid;
  gap: 0.5rem;
}

.formule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

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

/* Subsection titles */
.menu-subsection-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  margin: 2.5rem auto 1.5rem;
  max-width: 700px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

/* Barquettes */
.barquettes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.barquette-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
}

.barquette-card h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.barquette-prices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.barquette-prices div {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.barquette-size {
  color: var(--color-text-muted);
}

/* Sauces */
.sauces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.sauce-tag {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.sauce-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   HORAIRES
   ============================================ */
.horaires-section {
  background: var(--color-bg);
}

.horaires-card {
  max-width: 550px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.horaires-grid {
  display: grid;
  gap: 0;
}

.horaire-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.horaire-row:last-child {
  border-bottom: none;
}

.horaire-day {
  font-weight: 600;
  font-size: 1rem;
}

.horaire-time {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.horaire-sep {
  color: var(--color-text-dim);
  margin: 0 0.25rem;
}

.horaire-row.closed .horaire-day {
  color: var(--color-text-dim);
}

.horaire-row.closed .horaire-time {
  color: var(--color-primary);
  font-weight: 600;
}

.horaire-row.weekend .horaire-day {
  color: var(--color-accent);
}

/* ============================================
   LOCALISATION
   ============================================ */
.localisation-section {
  background: var(--color-bg-alt);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 450px;
}

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

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

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  display: block;
}

.contact-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15);
}

.contact-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Payment section */
.payment-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.payment-section h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--color-text-muted);
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.payment-tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer-contact a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  color: var(--color-text-dim);
  font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
  }

  /* Hero */
  .hero-tagline {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Menu */
  .pizza-grid {
    grid-template-columns: 1fr;
  }

  .menu-tabs {
    gap: 0.4rem;
  }

  .menu-tab {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-item-header {
    flex-direction: column;
    gap: 0.3rem;
  }

  .menu-item-prices {
    align-self: flex-start;
  }

  .horaire-row {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }
}
