/* ===== FONT DISPLAY — évite texte invisible (FOIT) ===== */
@font-face { font-family: 'Josefin Sans'; font-display: swap; }

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

:root {
  --red:      #E8231A;
  --red-dark: #C01A12;
  --black:    #111111;
  --white:    #FFFFFF;
  --gray:     #F7F7F7;
  --border:   #EBEBEB;
  --text:     #1A1A1A;
  --muted:    #888888;
  --gold:     #F5A623;

  /* Hero theme (updated by JS per pizza) */
  --hero-bg:      #C8261E;
  --hero-text:    #FFFFFF;
  --hero-muted:   rgba(255,255,255,0.70);
  --hero-accent:  #FFFFFF;
  --hero-tag-bg:  rgba(255,255,255,0.18);
  --hero-circle:  rgba(255,255,255,0.12);
  --hero-dot:     rgba(255,255,255,0.35);
  --hero-dot-act: #FFFFFF;
  --hero-btn-bg:  #111111;
  --hero-btn-c:   #FFFFFF;
}

html { scroll-behavior: smooth; }
body { font-family: 'Josefin Sans', sans-serif; font-weight: 500; color: var(--text); background: var(--white); overflow-x: hidden; }


/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s;
}
nav.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
nav.dark-theme {
  background: rgba(15,10,3,0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}
nav.dark-theme .nav-logo span { color: #fff; }
nav.dark-theme .nav-links a   { color: rgba(255,255,255,0.85); }
nav.dark-theme .nav-cta       { background: var(--gold); color: #111; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 38px; width: 38px; object-fit: cover; border-radius: 50%; border: 2px solid var(--border); }
.nav-logo span { font-family: 'Josefin Sans', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--black); letter-spacing: 0px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 9px 22px; border-radius: 0;
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--red-dark); transform: scale(1.03); }
.nav-cta i { font-size: 0.82rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 3px; transition: all 0.3s; }
nav.dark-theme .hamburger span { background: #fff; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background-color: var(--hero-bg);
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  padding: 68px 0 0;
  position: relative;
  overflow: hidden;
  transition: background-color 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle deco dots */
.deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.deco-1 { width:300px; height:300px; background: var(--hero-circle); top:-80px; right:20%; animation: float 8s ease-in-out infinite; }
.deco-2 { width:120px; height:120px; background: var(--hero-circle); bottom:120px; left:8%; animation: float 6s ease-in-out infinite 1s; }
.deco-3 { width: 40px; height: 40px; background: var(--hero-accent); opacity:0.15; top:30%; left:40%; animation: float 5s ease-in-out infinite 0.5s; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* Left text */
.hero-left {
  padding: 60px 0 80px 8%;
  z-index: 2;
  display: flex; flex-direction: column; gap: 20px;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--hero-tag-bg);
  color: var(--hero-accent);
  padding: 6px 16px; border-radius: 0;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  width: fit-content;
  transition: all 0.5s;
}

.hero-discover {
  color: var(--hero-muted);
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.5s;
}

.hero-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 700;
  color: var(--hero-text);
  line-height: 1.1;
  letter-spacing: 0px;
  transition: color 0.5s;
}

.hero-desc {
  color: var(--hero-muted);
  font-size: 1rem; font-weight: 400; line-height: 1.75;
  max-width: 400px;
  transition: color 0.5s;
}

.hero-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--hero-text);
  transition: color 0.5s;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  padding: 13px 30px; border-radius: 0;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.btn-hero-primary:hover {
  background: rgba(255,255,255,0.30);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--hero-btn-bg);
  color: var(--hero-btn-c);
  border: 2px solid transparent;
  padding: 13px 30px; border-radius: 0;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.20);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero-outline:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.28); }

/* Right: pizza image */
.hero-right {
  height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; z-index: 2;
  gap: 28px;
  padding-top: 68px;
}

.pizza-stage {
  position: relative;
  width: min(560px, 95%);
  display: flex; align-items: center; justify-content: center;
}

.pizza-glow {
  position: absolute;
  width: 85%; height: 85%;
  background: radial-gradient(circle, var(--hero-circle) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  transition: background 0.7s;
  transform: scale(1.2);
  filter: blur(30px);
}

.hero-pizza-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  position: relative; z-index: 1;
  animation: pizzaSpin 30s linear infinite;
  opacity: 1;
  transition: opacity 0.45s ease;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
}
.hero-pizza-img.fade-out { opacity: 0; }

@keyframes pizzaSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Navigation */
.hero-nav { display: flex; align-items: center; gap: 18px; }

.nav-arrow {
  width: 44px; height: 44px; border-radius: 0;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-arrow:hover { background: var(--hero-accent); color: #fff; border-color: var(--hero-accent); transform: scale(1.08); }

nav.dark-theme ~ #hero .nav-arrow,
#hero.dark .nav-arrow {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-dots { display: flex; gap: 8px; }
.nav-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hero-dot);
  cursor: pointer; border: none;
  transition: all 0.35s;
}
.nav-dot.active { background: var(--hero-dot-act); width: 26px; border-radius: 4px; }

/* ===== TICKER ===== */
.ticker-wrap { background: var(--black); padding: 12px 0; overflow: hidden; }
.ticker-inner { display: flex; white-space: nowrap; animation: ticker 10s linear infinite; }
.ticker-inner span { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.75); padding: 0 32px; }
.ticker-inner span.sep { color: var(--gold); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== SHARED SECTION STYLES ===== */
section { padding: 96px 8%; }

.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--red);
  padding: 5px 14px; border-radius: 0;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 14px; border: 1px solid rgba(232,35,26,0.15);
}

.section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700; line-height: 1.2;
  color: var(--black); margin-bottom: 12px;
}
.section-title span { color: var(--red); }

.section-sub { color: var(--muted); font-size: 0.96rem; font-weight: 400; max-width: 500px; line-height: 1.8; }

/* ===== ABOUT ===== */
#about { background: var(--white); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center; margin-top: 56px;
}

.about-images { position: relative; height: 460px; }
.about-img-main {
  position: absolute; width: 72%; height: 370px;
  object-fit: cover; border-radius: 24px;
  top: 0; left: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.about-img-secondary {
  position: absolute; width: 52%; height: 240px;
  object-fit: cover; border-radius: 20px;
  bottom: 0; right: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  border: 5px solid var(--white);
}

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }

.feature-card {
  background: var(--white);
  border-radius: 0; padding: 22px;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }

.feature-icon {
  width: 42px; height: 42px; border-radius: 0;
  background: transparent; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 12px;
}
.feature-card h4 { font-weight: 900; font-size: 0.93rem; margin-bottom: 5px; color: var(--black); }
.feature-card p  { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ===== MENU ===== */
#menu { background: var(--white); }

.menu-header .section-title { color: var(--black); }
.menu-header .section-sub   { color: var(--muted); }

.menu-tabs { display: flex; gap: 10px; margin: 36px 0 52px; flex-wrap: wrap; }

.tab-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 0;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tab-btn i { font-size: 0.82rem; }
.tab-btn.active, .tab-btn:hover {
  background: var(--red); border-color: var(--red); color: var(--white);
  box-shadow: 0 4px 16px rgba(232,35,26,0.25);
}

.menu-panel { display: none; }
.menu-panel.active { display: block; }

/* ---- Pizza grid — style floating pizza ---- */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

.pizza-card {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: transform 0.3s;
}
.pizza-card:hover { transform: translateY(-8px); }

.pizza-card-img-wrap {
  background: transparent;
  padding: 0;
  margin-bottom: 18px;
}

.pizza-card-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.18));
  transition: transform 0.5s, filter 0.4s;
}
.pizza-card:hover .pizza-card-img {
  transform: rotate(12deg) scale(1.06);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.22));
}

.pizza-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.pizza-card-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.pizza-card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 200px;
}

.pizza-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

.pizza-price {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: var(--red);
}

.pizza-order-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  border: none; padding: 10px 28px; border-radius: 0;
  font-weight: 700; font-size: 0.85rem;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(232,35,26,0.30);
}
.pizza-order-btn:hover {
  background: var(--red-dark);
  transform: scale(1.04);
  box-shadow: 0 6px 22px rgba(232,35,26,0.40);
}
.pizza-order-btn i { font-size: 0.78rem; }

/* Extras */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.extra-card {
  background: var(--white);
  border-radius: 0; padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.extra-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.extra-icon {
  width: 48px; height: 48px; border-radius: 0;
  background: transparent; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.extra-info h4 { color: var(--black); font-weight: 800; font-size: 1rem; }
.extra-info p  { color: var(--muted); font-size: 0.8rem; margin-top: 3px; line-height: 1.4; }
.extra-price   { font-weight: 900; font-size: 1.2rem; color: var(--red); white-space: nowrap; }

/* ===== MENU PREVIEW (home page sample) ===== */
#menu-preview { background: var(--white); }

.preview-grid { grid-template-columns: repeat(3, 1fr); }

.pizza-card-body-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
}
.pizza-card-body-preview .pizza-card-name { font-family: 'Josefin Sans', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--black); }
.pizza-card-body-preview .pizza-card-desc { font-size: 0.8rem; color: var(--muted); max-width: 210px; text-align: center; line-height: 1.5; }
.pizza-card-body-preview .pizza-price     { font-weight: 900; font-size: 1.35rem; color: var(--red); }

.preview-category-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--black);
  margin: 52px 0 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.preview-category-label i { color: var(--red); font-size: 1.1rem; }
.preview-empty { pointer-events: none; visibility: hidden; }

.btn-voir-menu {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--white);
  padding: 15px 42px; border-radius: 0;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(232,35,26,0.28);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-voir-menu:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232,35,26,0.38);
}

/* ===== VOIR PLUS (catégorie) ===== */
.preview-voir-plus {
  text-align: right;
  margin-top: 22px;
}

.btn-voir-plus-cat {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--red);
  padding: 9px 22px; border-radius: 0;
  font-weight: 700; font-size: 0.88rem;
  text-decoration: none;
  border: 1.5px solid var(--red);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-voir-plus-cat:hover {
  background: var(--red); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232,35,26,0.22);
}

/* ===== GALLERY CAROUSEL ===== */
#galerie { background: var(--white); }

.gallery-carousel {
  position: relative;
  margin-top: 48px;
  width: calc(100% + 16%);
  margin-left: -8%;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.gallery-track { position: relative; width: 100%; height: 100%; }

.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.gallery-slide.active { opacity: 1; pointer-events: auto; }

.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Dots */
.gallery-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.50);
  border: none; cursor: pointer;
  transition: all 0.35s;
}
.gallery-dot.active { background: #fff; width: 26px; border-radius: 4px; }

/* ===== CONTACT ===== */
#contact { background: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 52px; align-items: start; }

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border-radius: 0; padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.07); }

.contact-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 0; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.contact-card h4 { font-weight: 900; font-size: 0.93rem; margin-bottom: 5px; color: var(--black); }
.contact-card p, .contact-card a { color: var(--muted); font-size: 0.88rem; line-height: 1.6; text-decoration: none; }
.contact-card a:hover { color: var(--red); }

.hours-table { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.hour-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: 0.86rem; color: var(--muted);
}
.hour-row strong { color: var(--black); font-weight: 700; }

.map-wrap {
  border-radius: 22px; overflow: hidden; height: 390px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.08);
}
.map-wrap iframe { width:100%; height:100%; border:none; }

/* ===== FAQ ===== */
#faq { background: var(--white); }

.faq-list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex; flex-direction: column; gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0; overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.faq-q {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: none;
  cursor: pointer; text-align: left; font-family: inherit;
  font-weight: 700; font-size: 0.97rem; color: var(--black);
  transition: background 0.2s;
}
.faq-q:hover { background: transparent; }
.faq-q i { color: var(--red); font-size: 0.85rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q { background: transparent; }
.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 22px; }
.faq-a p {
  color: var(--muted); font-size: 0.92rem; line-height: 1.8;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.faq-a strong { color: var(--black); }

@media (max-width: 640px) {
  .faq-q { padding: 16px 18px; font-size: 0.9rem; }
  .faq-item.open .faq-a { padding: 0 18px 18px; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--black); color: var(--white);
  text-align: center; padding: 48px 8%;
}
.footer-brand { font-family: 'Josefin Sans', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 6px; }
.footer-brand span { color: var(--red); }
.footer-tagline { color: rgba(255,255,255,0.35); font-size: 0.82rem; margin-bottom: 22px; }
.footer-links { display: flex; justify-content: center; gap: 28px; list-style: none; margin-bottom: 22px; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0 8%; }
.footer-bottom { color: rgba(255,255,255,0.28); font-size: 0.78rem; margin-top: 20px; line-height: 1.8; }

/* ===== BANNIÈRE COOKIES ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(14,14,14,0.97);
  backdrop-filter: blur(12px);
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.cookie-visible { transform: translateY(0); }

.cookie-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 16px 8%;
}
.cookie-inner p {
  flex: 1; margin: 0; min-width: 240px;
  font-size: 0.86rem; color: rgba(255,255,255,0.78); line-height: 1.6;
}
.cookie-inner p i { color: var(--gold); margin-right: 6px; }

.cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-link { color: rgba(255,255,255,0.50); font-size: 0.8rem; text-decoration: underline; white-space: nowrap; }
.cookie-link:hover { color: rgba(255,255,255,0.8); }

.cookie-btn {
  border: none; padding: 9px 22px; border-radius: 0;
  font-weight: 700; font-size: 0.82rem; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s; font-family: inherit;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.88; transform: scale(1.03); }
.cookie-refuse { background: rgba(255,255,255,0.10); color: #fff; }
.cookie-accept { background: var(--red); color: #fff; }

@media (max-width: 640px) {
  .cookie-inner { padding: 14px 5%; gap: 14px; }
  .cookie-inner p { font-size: 0.8rem; min-width: 0; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* Mobile phone link — visible only inside open mobile menu */
.nav-mobile-phone { display: none; }

/* ===== RESPONSIVE — TABLETTE (≤ 960px) ===== */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; padding-top: 0; min-height: auto; }
  .hero-left { padding: 32px 6% 56px; }
  .hero-right { height: auto; min-height: 0; max-height: none; padding: 88px 6% 16px; gap: 18px; }
  .pizza-stage { width: min(380px, 82%); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-images { height: 280px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  nav.open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    padding: 28px 6% 28px; gap: 22px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    z-index: 999;
  }
  nav.open .nav-links a { font-size: 1.08rem; }
  nav.dark-theme.open .nav-links { background: rgba(15,10,3,0.98); }

  nav.open .nav-mobile-phone { display: list-item; }
  .nav-mobile-phone a {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--red); color: #fff;
    padding: 12px 26px; border-radius: 0;
    font-weight: 700; font-size: 0.97rem; text-decoration: none;
    transition: background 0.2s;
  }
  .nav-mobile-phone a:hover { background: var(--red-dark); }
  nav.dark-theme.open .nav-mobile-phone a { background: var(--gold); color: #111; }

  .preview-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .preview-empty { display: none !important; }

  .menu-tabs { gap: 8px; }
  .map-wrap { height: 280px; }
  .extras-grid { grid-template-columns: 1fr; }

  .preview-voir-plus { margin-top: 18px; }
  .btn-voir-plus-cat { font-size: 0.85rem; padding: 9px 20px; }
}

/* ===== RESPONSIVE — MOBILE (≤ 640px) ===== */
@media (max-width: 640px) {
  section { padding: 52px 5%; }
  .page-hero { padding: 100px 5% 44px !important; }

  /* Hero — pizza en haut, texte en bas */
  .hero-right {
    order: -1;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 80px 5% 8px;
    gap: 12px;
  }
  .pizza-stage { width: min(230px, 64%); }
  .hero-left { padding: 12px 5% 40px; gap: 13px; }
  .hero-discover { display: none; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .hero-desc { font-size: 0.87rem; max-width: 100%; }
  .hero-price { font-size: 1.75rem; }
  .btn-hero-primary, .btn-hero-outline {
    padding: 12px 0; font-size: 0.88rem; gap: 8px;
    flex: 1; justify-content: center;
  }
  .hero-actions { flex-direction: row; }
  .deco-1 { display: none; }

  /* Sections */
  .section-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .section-sub { font-size: 0.9rem; }

  /* Grids — 2 colonnes sur mobile */
  .pizza-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .preview-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px 14px !important; }
  .preview-empty { display: none !important; }

  .pizza-card-img { width: 140px; height: 140px; }
  .pizza-card-name, .pizza-card-name-info { font-size: 1.35rem !important; }
  .pizza-card-body-preview .pizza-card-name { font-size: 1.35rem; }
  .pizza-card-body-preview .pizza-card-desc { font-size: 0.72rem; max-width: 130px; }
  .pizza-card-desc-info { font-size: 0.72rem !important; max-width: 130px !important; }

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

  /* Gallery */
  .gallery-carousel { aspect-ratio: 16/9; width: calc(100% + 10%); margin-left: -5%; }

  /* About images */
  .about-images { height: 230px; }
  .about-img-main  { width: 76%; height: 200px; }
  .about-img-secondary { width: 52%; height: 150px; }

  /* Menu tabs */
  .menu-tabs { gap: 7px; }
  .tab-btn { padding: 9px 14px; font-size: 0.8rem; gap: 6px; }
  .tab-btn i { display: none; }

  /* Contact */
  .contact-grid { gap: 20px; }
  .map-wrap { height: 220px; }

  /* Footer */
  .footer-links { flex-wrap: wrap; gap: 12px; }

  /* Preview labels & buttons */
  .preview-category-label { margin: 36px 0 20px; font-size: 0.85rem; }
  .btn-voir-menu { padding: 13px 28px; font-size: 0.9rem; }
  .preview-voir-plus { text-align: center; margin-top: 18px; }
  .btn-voir-plus-cat { font-size: 0.84rem; padding: 9px 18px; }
}

/* ===== RESPONSIVE — PETIT MOBILE (≤ 420px) ===== */
@media (max-width: 420px) {
  section { padding: 44px 4%; }
  nav { padding: 0 4%; height: 62px; }
  .nav-logo span { font-size: 1.35rem; }

  .hero-right { padding: 74px 4% 6px; gap: 10px; }
  .pizza-stage { width: min(200px, 68%); }
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; padding: 13px 0; }

  /* Très petit écran : 2 cols mais images plus petites */
  .pizza-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .preview-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px 10px !important; }
  .pizza-card-img { width: 120px; height: 120px; }
  .pizza-card-name, .pizza-card-name-info { font-size: 1.15rem !important; }

  .gallery-carousel { aspect-ratio: 4/3; width: calc(100% + 8%); margin-left: -4%; }

  .tab-btn { padding: 8px 11px; font-size: 0.76rem; }

  .contact-card { padding: 16px; gap: 12px; }
  .contact-icon { width: 38px; height: 38px; font-size: 0.95rem; }

  .footer-brand { font-size: 1.8rem; }
  .footer-bottom { font-size: 0.72rem; }

  .preview-voir-plus { text-align: center; }
  .btn-voir-plus-cat { width: 100%; justify-content: center; }
}

/* ===== BADGE OFFRE FLOTTANT — « 2 achetées, 1 offerte » ===== */
.promo-badge {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 150px;
  height: 150px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #ff3d33 0%, var(--red) 45%, var(--red-dark) 100%);
  box-shadow: 0 10px 28px rgba(232,35,26,0.45), 0 2px 6px rgba(0,0,0,0.25);
  border: 3px solid var(--gold);
  /* État caché avant apparition */
  opacity: 0;
  transform: scale(0.4) rotate(-18deg);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
}
.promo-badge.promo-visible {
  opacity: 1;
  transform: scale(1) rotate(-8deg);
  animation: promo-pulse 2.6s ease-in-out infinite;
}
.promo-badge:hover {
  transform: scale(1.07) rotate(0deg);
  animation-play-state: paused;
}

/* Anneau pointillé décoratif */
.promo-badge-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,0.55);
  pointer-events: none;
}

.promo-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
.promo-top {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.promo-top i { font-size: 0.65rem; }
.promo-big {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.promo-big .promo-plus {
  font-size: 1.6rem;
  vertical-align: middle;
  margin: 0 1px;
  color: var(--gold);
}
.promo-sub {
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.25;
  text-transform: uppercase;
}

@keyframes promo-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(232,35,26,0.45), 0 2px 6px rgba(0,0,0,0.25); }
  50%      { box-shadow: 0 10px 34px rgba(232,35,26,0.70), 0 2px 6px rgba(0,0,0,0.25); }
}

@media (max-width: 640px) {
  .promo-badge { width: 122px; height: 122px; bottom: 16px; left: 14px; border-width: 2.5px; }
  .promo-top   { font-size: 0.6rem; letter-spacing: 1.3px; }
  .promo-big   { font-size: 2.1rem; }
  .promo-big .promo-plus { font-size: 1.3rem; }
  .promo-sub   { font-size: 0.56rem; }
  .promo-badge-ring { inset: 5px; }
}
