/* ============================================
   LA FATTORIA ANTIBES — Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  /*
   * PALETTE ITALIENNE — La Fattoria
   * Inspirée du drapeau italien + Naples + Côte d'Azur
   * Vert profond (basilic, olive) + Rouge napolitain + Or (huile, soleil) + Blanc
   */

  /* Backgrounds */
  --bg-primary: #FAFAF5;
  --bg-secondary: #3B7D5F;       /* Vert clair italien — sections alternées */
  --bg-dark: #1E5040;            /* Vert foncé — footer, contact */
  --bg-card: #FFFFFF;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-light: #7A7A7A;
  --text-on-dark: #F0EDE8;

  /* Vert — couleur dominante, identité italienne */
  --verde: #3B7D5F;              /* Vert basilic clair */
  --verde-light: #52A87A;        /* Vert tendre */
  --verde-accent: #69C494;       /* Vert vif pour hovers */

  /* Rouge — Naples, tomate, passion */
  --rosso: #C22B2B;              /* Rouge napolitain profond */
  --rosso-light: #E04444;        /* Rouge hover */
  --rosso-dark: #8B1A1A;         /* Rouge foncé */

  /* Or — huile d'olive, soleil, Côte d'Azur */
  --oro: #D4A017;                /* Or chaud */
  --oro-light: #E8C44A;          /* Or clair */

  /* Blanc — mozzarella, pureté */
  --bianco: #FFFFFF;
  --bianco-warm: #FAF8F3;

  /* Shadows — teintées vert */
  --shadow-sm: 0 1px 3px rgba(59, 125, 95, 0.08);
  --shadow-md: 0 4px 12px rgba(59, 125, 95, 0.12);
  --shadow-lg: 0 12px 32px rgba(59, 125, 95, 0.16);

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;
  --container-narrow: 900px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

.font-serif { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'DM Sans', sans-serif; }

.text-italic-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background-color: rgba(59, 125, 95, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  background-color: rgba(59, 125, 95, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  transition: color 0.4s;
}

.nav.scrolled .nav-logo {
  color: #FFFFFF;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--oro);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active-page::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.85) !important;
}

.nav.scrolled .nav-links a:hover {
  color: var(--oro-light);
}

.nav-cta {
  background-color: var(--rosso);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  border: 2px solid var(--rosso);
}

.nav-cta:hover {
  background-color: var(--rosso-dark);
  border-color: var(--rosso-dark);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.lang-selector a {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.lang-selector a.active,
.lang-selector a:hover {
  opacity: 1;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s;
}

.nav.scrolled .nav-toggle span {
  background-color: #FFFFFF;
}

.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 Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-primary);
  padding: 9rem 1.5rem 6rem;
  overflow: hidden;
}

/* Decorative background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(59, 125, 95, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(194, 43, 43, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* === Image hero plein écran === */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(20, 30, 22, 0.60) 0%,
    rgba(20, 30, 22, 0.45) 45%,
    rgba(20, 30, 22, 0.70) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-divider {
  width: 60px;
  height: 2px;
  background-color: var(--oro);
  margin: 0 auto;
}

/* === Vintage Photo Frame === */
.hero-frame-wrap {
  position: relative;
  display: inline-block;
}

.hero-photo-frame {
  position: relative;
  display: inline-block;
  padding: 14px;
  background: #e6d4a8;
  /* Double border — classic photo mat */
  box-shadow:
    inset 0 0 0 1px #b89a62,
    0 0 0 1px #b89a62,
    0 0 0 4px #e6d4a8,
    0 0 0 6px #c9aa74,
    0 16px 48px rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.14);
  transform: rotate(-1.2deg);
  transition: transform 0.5s ease;
  max-width: 680px;
  width: 100%;
}

.hero-photo-frame:hover {
  transform: rotate(0deg) scale(1.01);
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  /* Subtle vintage filter */
  filter: sepia(12%) contrast(1.04) saturate(0.92) brightness(0.97);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.15);
}

/* Small label under frame — like an old photo caption */
.hero-frame-caption {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: #8a7055;
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* CTA button */
.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--rosso);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--rosso);
  transition: all 0.3s;
  cursor: pointer;
}

.hero-cta:hover {
  background-color: transparent;
  color: var(--rosso);
  border-color: var(--rosso);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
  opacity: 0.8;
}

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

/* --- Sections --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

#histoire .section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .overline {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--verde-accent);
  margin-bottom: 0.75rem;
}

.section-divider {
  width: 50px;
  height: 2px;
  background-color: var(--oro);
  margin: 1rem auto 0;
}

/* --- Welcome Section --- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.welcome-image {
  position: relative;
  overflow: hidden;
}

.welcome-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.welcome-image::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: -1rem;
  bottom: -1rem;
  border: 2px solid var(--verde-light);
  z-index: -1;
}

.welcome-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* --- About Section --- */
.about-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 0 2rem 2rem;
}

.about-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  padding: 0 1.5rem;
}

.about-quote blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--verde-accent);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-family: 'Playfair Display', serif;
}

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

.about-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid .tall {
  grid-row: span 2;
}

/* --- Menu Preview Section --- */
/* Sections sur fond vert foncé italien */
.bg-warm {
  background-color: var(--bg-secondary);
  color: var(--text-on-dark);
}

.bg-warm h2,
.bg-warm h3,
.bg-warm h4 {
  color: #FFFFFF;
}

.bg-warm p {
  color: rgba(240, 237, 232, 0.85);
}

.bg-warm .overline,
.bg-warm .section-header .overline {
  color: var(--oro);
}

.bg-warm .section-divider {
  background-color: var(--oro);
}

.bg-warm .about-quote blockquote {
  color: rgba(255, 255, 255, 0.92);
}

.bg-warm .about-quote blockquote::before {
  color: var(--oro);
}

.bg-warm .about-quote p,
.bg-warm .about-text p {
  color: rgba(255, 255, 255, 0.82);
}

.bg-warm .carte-category-sub {
  color: rgba(240, 237, 232, 0.7);
}

.bg-warm .pizza-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.bg-warm .pizza-name {
  color: #FFFFFF;
}

.bg-warm .pizza-desc {
  color: rgba(240, 237, 232, 0.75);
}

.bg-warm .pizza-price {
  color: var(--oro);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.menu-card {
  background: white;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

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

.menu-card-image {
  height: 220px;
  overflow: hidden;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.08);
}

.menu-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.menu-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.menu-card-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rosso);
}

.btn-full-menu {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
  padding: 1.2rem 4rem;
  border: 2px solid var(--verde);
  color: var(--verde);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-full-menu:hover {
  background-color: var(--verde);
  color: #FFFFFF;
}

/* --- Epicerie Section --- */
.epicerie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.epicerie-image {
  overflow: hidden;
}

.epicerie-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 0.6s;
}

.epicerie-image:hover img {
  transform: scale(1.03);
}

/* --- Contact Section --- */
.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  color: var(--bg-primary);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--oro);
  margin-top: 3px;
}

.contact-detail p {
  color: var(--text-on-dark);
  line-height: 1.7;
}

.contact-detail a {
  color: var(--rosso-light);
  transition: color 0.3s;
}

.contact-detail a:hover {
  color: var(--oro);
}

.contact-map {
  height: 100%;
  min-height: 350px;
  border-radius: 4px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: sepia(20%) saturate(80%);
}

/* --- Footer --- */
.footer {
  background-color: #091410;
  color: var(--text-on-dark);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Carte Page (Menu) --- */
.carte-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  text-align: center;
  background-color: var(--verde);
  color: #FFFFFF;
}

.carte-hero h1 {
  color: #FFFFFF;
}

.carte-nav {
  position: sticky;
  top: 64px;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid rgba(44, 35, 25, 0.08);
  padding: 1rem 0;
  transition: box-shadow 0.3s;
}

.carte-nav-inner {
  display: flex;
  justify-content: center;
  gap: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.carte-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.carte-nav a.active,
.carte-nav a:hover {
  color: var(--rosso);
  border-bottom-color: var(--rosso);
}

.carte-category {
  padding: 3rem 0;
}

.carte-category h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.carte-category-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.pizza-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(44, 35, 25, 0.06);
}

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

.pizza-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.pizza-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 600px;
}

.pizza-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rosso);
  white-space: nowrap;
  margin-left: 2rem;
}

.pizza-labels {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* === Pizza Card Grid — style fiche recette === */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Carte avec passe-partout parchemin + double bordure or */
.pizza-card {
  padding: 8px;
  background: #EFE4C8;           /* parchment / parchemin */
  border: 1px solid #B8956A;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pizza-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Cadre intérieur = deuxième liseré doré */
.pizza-card-inner {
  border: 1px solid #B8956A;
  background: #FFFFFF;
  overflow: hidden;
}

.pizza-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.pizza-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

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

/* Vidéo hover — lazy-loaded via JS */
.pizza-card-img video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pizza-card-img video.pv-playing {
  opacity: 1;
}

.pizza-card-body {
  padding: 1rem 1.1rem 1rem;
  text-align: center;
}

/* Nom en italique Playfair — style menu de restaurant */
.pizza-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

/* Ornement décoratif */
.pizza-card-ornament {
  color: var(--oro);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.pizza-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.pizza-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(184, 149, 106, 0.2);
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pizza-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rosso);
  white-space: nowrap;
}

/* Sur fond vert foncé : cards restent "jour" — contraste parfait */
.bg-warm .pizza-card {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Réinitialiser les couleurs dans le body blanc des cards (annule le cascade .bg-warm) */
.bg-warm .pizza-card-name {
  color: var(--text-primary) !important;
}

.bg-warm .pizza-card-desc {
  color: var(--text-secondary) !important;
}

.bg-warm .pizza-card-ornament {
  color: var(--oro) !important;
  opacity: 0.8;
}

.bg-warm .pizza-card-price {
  color: var(--rosso) !important;
}

/* Pizzas sans photo — liste classique */
.pizza-classics {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(44, 35, 25, 0.08);
}

.pizza-classics-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 1rem;
}

.bg-warm .pizza-classics {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bg-warm .pizza-classics-title {
  color: var(--oro);
}

.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.label-veg {
  background-color: rgba(45, 90, 61, 0.15);
  color: var(--verde);
  border: 1px solid rgba(45, 90, 61, 0.3);
}

.label-spicy {
  background-color: rgba(194, 43, 43, 0.12);
  color: var(--rosso);
  border: 1px solid rgba(194, 43, 43, 0.35);
}

.label-seafood {
  background-color: rgba(160, 110, 10, 0.12);
  color: #8B6000;
  border: 1px solid rgba(160, 110, 10, 0.35);
}

/* Labels on dark backgrounds (sections vertes) */
.bg-warm .label-veg {
  background-color: rgba(143, 212, 168, 0.2);
  color: #A8E6BE;
  border: 1px solid rgba(143, 212, 168, 0.4);
}

.bg-warm .label-spicy {
  background-color: rgba(224, 68, 68, 0.2);
  color: #F08080;
  border: 1px solid rgba(224, 68, 68, 0.4);
}

.bg-warm .label-seafood {
  background-color: rgba(232, 196, 74, 0.2);
  color: var(--oro-light);
  border: 1px solid rgba(232, 196, 74, 0.4);
}

/* Labels dans les cards blanches (fond toujours blanc, quelle que soit la section) */
.pizza-card .label-veg {
  background-color: rgba(45, 90, 61, 0.15);
  color: var(--verde);
  border: 1px solid rgba(45, 90, 61, 0.3);
}

.pizza-card .label-spicy {
  background-color: rgba(194, 43, 43, 0.12);
  color: var(--rosso);
  border: 1px solid rgba(194, 43, 43, 0.35);
}

.pizza-card .label-seafood {
  background-color: rgba(160, 110, 10, 0.12);
  color: #8B6000;
  border: 1px solid rgba(160, 110, 10, 0.35);
}

/* --- Layout Histoire (texte + photo côte à côte) --- */
.histoire-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2.5rem;
}

/* --- Bloc objectif (Notre Histoire) --- */
.histoire-objectif {
  flex: 0 0 38%;
  background: #FAF6EF;
  padding: 2rem 2.2rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  position: relative;
}

.histoire-objectif::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(59, 125, 95, 0.18);
  pointer-events: none;
}

.histoire-objectif blockquote {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  color: var(--verde);
  margin: 0;
  padding: 0 0.5rem;
  position: relative;
}

mark.highlight-gold {
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--oro);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.histoire-objectif blockquote::before {
  content: '\201C';
  font-size: 3.5rem;
  line-height: 0;
  vertical-align: -0.9rem;
  color: var(--verde-accent);
  font-family: 'Playfair Display', serif;
  margin-right: 0.2rem;
}

/* --- Photo Composition (Notre Histoire) --- */
.histoire-composition {
  flex: 1;
  display: flex;
  justify-content: center;
}

.histoire-card-main {
  display: flex;
  gap: 3px;
  border-radius: 3px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.42), 0 4px 14px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: rotate(-2.5deg);
  max-width: 560px;
  width: 100%;
  position: relative;
}

.histoire-card-main::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 160, 23, 0.45);
  pointer-events: none;
  z-index: 10;
}

.histoire-card-main img {
  width: 50%;
  height: 440px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 768px) {
  .histoire-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .histoire-objectif {
    flex: none;
    width: 100%;
    font-size: 1.1rem;
  }
  .histoire-composition {
    width: 100%;
  }
  .histoire-card-main {
    transform: rotate(-1deg);
    max-width: 100%;
  }
  .histoire-card-main img {
    height: 260px;
  }
}

/* --- Sous-sections menu homepage --- */
.menu-subsection-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde);
  text-align: center;
  margin: 2.5rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-subsection-label::before,
.menu-subsection-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--verde);
  opacity: 0.25;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--text-primary) !important;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .welcome-grid,
  .epicerie-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .welcome-image::after {
    display: none;
  }

  .welcome-image img,
  .epicerie-image img {
    height: 300px;
  }

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

  .about-grid .tall {
    grid-row: auto;
    grid-column: span 2;
  }

  .carte-nav-inner {
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .pizza-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pizza-price {
    margin-left: 0;
  }

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

@media (max-width: 480px) {
  .pizza-grid {
    grid-template-columns: 1fr;
  }
}
  .hero-title {
    letter-spacing: 0.06em;
  }

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

  .about-grid .tall {
    grid-column: auto;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ===== Produit épuisé / en rupture ===== */
.soldout-badge {
  display: inline-block;
  background: #C0392B;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  line-height: 1.4;
}
.pizza-card.is-soldout { opacity: 0.55; }
.pizza-card.is-soldout .pizza-card-img { position: relative; }
.pizza-card .soldout-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pizza-item.is-soldout { opacity: 0.6; }

/* ====================================================
   MODAL — Commander par téléphone
   ==================================================== */
.nav-cta-btn {
  background-color: var(--rosso);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  border: 2px solid var(--rosso);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.nav-cta-btn:hover {
  background-color: var(--rosso-dark);
  border-color: var(--rosso-dark);
  transform: translateY(-1px);
}

.phone-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 25, 18, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.phone-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.phone-modal {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 4px;
  padding: 2.5rem 2rem 2rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  transform: translateY(22px) scale(0.98);
  transition: transform 0.3s ease;
  border: 1px solid rgba(212, 160, 23, 0.22);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.phone-modal-overlay.is-open .phone-modal {
  transform: translateY(0) scale(1);
}
.phone-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-on-dark);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
  padding: 0;
}
.phone-modal-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
}
.phone-modal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 0 0 1.4rem;
  padding-right: 2rem;
}
.phone-modal-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: none;
  color: var(--oro-light);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
  margin-bottom: 0.35rem;
  cursor: default;
}
.phone-modal-cta-label {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1.4rem;
}
.phone-modal-section {
  border-top: 1px solid rgba(212, 160, 23, 0.18);
  padding-top: 1.15rem;
  margin-top: 1.15rem;
}
.phone-modal-section h3 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--oro);
  margin: 0 0 0.65rem;
}
.phone-modal-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.phone-modal-hours tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.phone-modal-hours td {
  padding: 0.38rem 0;
  color: var(--text-on-dark);
}
.phone-modal-hours td:last-child {
  text-align: right;
  color: rgba(240, 237, 232, 0.68);
}
.phone-modal-hours .is-closed {
  color: var(--rosso-light) !important;
  font-style: italic;
}
.phone-modal-address {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(240, 237, 232, 0.82);
  margin: 0 0 0.75rem;
}
.phone-modal-maps-btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oro);
  text-decoration: none;
  border: 1px solid rgba(212, 160, 23, 0.35);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.phone-modal-maps-btn:hover {
  background: rgba(212, 160, 23, 0.1);
  color: var(--oro-light);
}
@media (max-width: 480px) {
  .phone-modal { padding: 2rem 1.25rem 1.5rem; }
  .phone-modal-number { font-size: 1.4rem; }
}
.soldout-inline { vertical-align: middle; margin-left: 0.4rem; }
