/* ===========================
   K'Mila Pizza - Styles
   =========================== */

:root {
  --primary: #cf2e2e;
  --secondary: #ff6900;
  --dark: #1a1a1a;
  --dark-alt: #2d2d2d;
  --light: #f9f5f0;
  --white: #ffffff;
  --gray: #6b6b6b;
  --gray-light: #e8e3dc;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
}

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

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

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

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

a { text-decoration: none; color: inherit; transition: color var(--transition); }

ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: #e55c00;
  border-color: #e55c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 105, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-red:hover {
  background: #b02020;
  border-color: #b02020;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 46, 46, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===========================
   CONTAINER
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   HEADER / NAVBAR
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
  padding: 1rem 0;
}

.header.scrolled {
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 52px;
  width: auto;
  transition: height var(--transition);
}

.header.scrolled .nav-logo img { height: 42px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
  background: rgba(255,255,255,0.08);
}

.nav-cta { margin-left: 0.5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(207,46,46,0.85) 0%, rgba(26,26,26,0.75) 60%, rgba(26,26,26,0.9) 100%),
    url('../images/pizzeria-st-pierre.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,26,26,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-badge span { color: var(--secondary); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
  color: var(--secondary);
  position: relative;
}

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   PIZZERIAS SECTION
   =========================== */
.pizzerias {
  padding: 6rem 0;
  background: var(--light);
}

.pizzerias .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pizzerias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pizzeria-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pizzeria-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pizzeria-card:hover .card-image img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.card-address {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-address svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

.card-hours {
  background: var(--light);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
}

.card-hours p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
}

.card-hours strong {
  color: var(--dark);
  font-weight: 600;
}

.card-phones {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(207,46,46,0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.phone-link:hover {
  background: var(--primary);
  color: var(--white);
}

.phone-link svg { width: 13px; height: 13px; }

.card-cta { margin-top: auto; }

.card-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ===========================
   À PROPOS SECTION
   =========================== */
.about {
  padding: 6rem 0;
  background: var(--white);
  overflow: hidden;
}

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

.about-image-wrap {
  position: relative;
}

.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-image-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-badge-float {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(255,105,0,0.4);
}

.about-badge-float .big-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.about-badge-float .big-label {
  font-size: 0.78rem;
  opacity: 0.9;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content { padding-right: 1rem; }

.about-content p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--light);
  border-radius: 10px;
  transition: all var(--transition);
}

.feature-item:hover {
  background: rgba(207,46,46,0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials {
  padding: 6rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(207,46,46,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: rgba(255,255,255,0.6); }
.testimonials .section-header { text-align: center; margin-bottom: 3.5rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,105,0,0.3);
  transform: translateY(-4px);
}

.testimonial-card.featured {
  border-color: var(--secondary);
  background: rgba(255,105,0,0.08);
}

.quote-icon {
  color: var(--secondary);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.testimonial-text {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info .author-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}

.author-info .author-location {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.rating {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.star {
  color: #fbbf24;
  font-size: 1rem;
}

.testimonials-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===========================
   CTA BAND
   =========================== */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #a01818 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-band::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--secondary);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

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

/* ===========================
   LIVRAISON BADGE (floating)
   =========================== */
.delivery-badge {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 50px;
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(207,46,46,0.45);
  animation: pulse-badge 2s ease-in-out infinite;
  cursor: pointer;
  transition: all var(--transition);
}

.delivery-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(207,46,46,0.55);
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 4px 20px rgba(207,46,46,0.45); }
  50% { box-shadow: 0 4px 30px rgba(207,46,46,0.7), 0 0 0 8px rgba(207,46,46,0.08); }
}

/* ===========================
   SCROLL TO TOP
   =========================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-alt);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .pizzerias-grid,
  .testimonials-grid { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 520px; margin: 0 auto; }
  .about-content { padding-right: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,0.4);
  }

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

  .nav-link { font-size: 1rem; padding: 0.75rem 1rem; width: 100%; }
  .nav-cta { width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .hamburger { display: flex; }

  .pizzerias-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

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

  .about-features { grid-template-columns: 1fr; }

  .about-badge-float { right: 0; bottom: -1rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

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

  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-content { padding: 6rem 0 4rem; }
  .delivery-badge span { display: none; }
  .delivery-badge { padding: 0.85rem; border-radius: 50%; }
}
