/* ============================================================
   L'Instant Convivial — Stylesheet
   Mobile-first, CSS custom properties, no framework
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--warm);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
p { max-width: 65ch; }
address { font-style: normal; }

/* === VARIABLES === */
:root {
  --red:        #E33F3E;
  --red-dark:   #C53130;
  --dark:       #13110F;
  --dark-2:     #1D1A17;
  --dark-3:     #2A2520;
  --warm:       #F8F3EC;
  --warm-2:     #EDE5D8;
  --white:      #FFFFFF;
  --text-on-dark:  #F0EAE0;
  --text-on-light: #1A1714;
  --text-muted:    #7A736C;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Epilogue', system-ui, sans-serif;

  --container:   min(1200px, 100% - 2.5rem);
  --radius:      6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --nav-height:  4.5rem;
  --transition:  0.2s ease-out;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }

/* === LAYOUT === */
.container { width: var(--container); margin-inline: auto; }
.section    { padding: 5rem 0; }
.section--light  { background-color: var(--warm);  color: var(--text-on-light); }
.section--dark   { background-color: var(--dark);  color: var(--text-on-dark);  }
.section--red    { background-color: var(--red);   color: var(--white); }

/* === SECTION HEADER === */
.section-header { margin-bottom: 3rem; }
.section-header__label {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.6rem;
}
.section-header__title { line-height: 1.15; }
.section-header__subtitle {
  margin-top: 1rem;
  font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 60ch;
}
.section-header--center { text-align: center; }
.section-header--center .section-header__subtitle { margin-inline: auto; }

/* === NAVIGATION === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background-color: var(--dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
/* FIX : fond sombre quand le menu mobile est ouvert pour que le bouton × reste visible */
.site-header.menu-is-open {
  background-color: var(--dark);
}
.nav__container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
  width: var(--container); margin-inline: auto;
  /* Pas de z-index ici : évite un sous-contexte de superposition
     qui bloquerait le menu mobile (fixed) de couvrir toute la page */
}
.nav__logo {
  display: flex; align-items: center; gap: 0.75rem;
  /* Au-dessus du menu mobile overlay (z-index: 90) */
  position: relative; z-index: 101;
}
.nav__logo-img { height: 42px; width: auto; display: block; }

.nav__toggle {
  color: var(--white); display: flex; align-items: center;
  justify-content: center; width: 44px; height: 44px; flex-shrink: 0;
  /* Au-dessus du menu overlay (z-index: 90) — même niveau que le logo */
  position: relative; z-index: 101;
}
.nav__toggle svg { width: 24px; height: 24px; pointer-events: none; }

/* Animation d'ouverture du menu mobile */
@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes linkFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.nav__menu {
  /* Caché par défaut — display:none est la méthode la plus fiable */
  display: none;
  flex-direction: column;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 90; /* en dessous du header (z-index:100) pour que le bouton × reste cliquable */
  background-color: var(--dark);
  padding: calc(var(--nav-height) + 2rem) 1.5rem 2.5rem;
  gap: 0; overflow-y: auto;
}
.nav__menu.is-open {
  display: flex;
  animation: menuSlideIn 0.22s ease forwards;
}

/* Liens : animation en cascade via @keyframes */
.nav__menu.is-open li {
  opacity: 0;
  animation: linkFadeIn 0.2s ease forwards;
}
.nav__menu.is-open li:nth-child(1) { animation-delay: 0.07s; }
.nav__menu.is-open li:nth-child(2) { animation-delay: 0.12s; }
.nav__menu.is-open li:nth-child(3) { animation-delay: 0.17s; }
.nav__menu.is-open li:nth-child(4) { animation-delay: 0.22s; }
.nav__menu.is-open li:nth-child(5) { animation-delay: 0.27s; }

.nav__link {
  display: block; /* pleine largeur — essentiel pour les fonds et bordures */
  font-size: 1.15rem; font-weight: 500;
  color: var(--text-on-dark);
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--red); }

/* Bouton Contact — mobile : pleine largeur, intégré au menu */
.nav__link--cta {
  display: block;
  margin-top: 1.5rem; padding: 1rem 1.5rem;
  background-color: var(--red); color: var(--white) !important;
  text-align: center; border-radius: var(--radius); border-bottom: none;
}
.nav__link--cta:hover { background-color: var(--red-dark); color: var(--white) !important; }
.nav__link--cta.is-active { color: var(--white) !important; }

@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex !important;
    flex-direction: row; align-items: center;
    position: static; background: none; padding: 0; gap: 0;
    overflow: visible; z-index: auto; animation: none;
  }
  .nav__menu.is-open li,
  .nav__menu li {
    opacity: 1 !important; animation: none !important;
  }
  .nav__link { font-size: 0.875rem; padding: 0.5rem 0.9rem; border-bottom: none; }
  .nav__link--cta { margin-top: 0; padding: 0.55rem 1.2rem; margin-left: 0.5rem; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background-color: var(--red); color: var(--white); }
.btn--primary:hover { background-color: var(--red-dark); transform: translateY(-1px); }
.btn--ghost {
  background-color: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover { background-color: rgba(255,255,255,0.18); }
.btn--outline {
  background: transparent; color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: var(--white); color: var(--white); }
.btn--white { background-color: var(--white); color: var(--red); }
.btn--white:hover { background-color: var(--warm); }
/* === HERO === */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay {
  position: absolute; inset: 0;
}
.hero__content { position: relative; z-index: 1; padding-top: var(--nav-height); text-align: center; }
.hero__logo {
  height: 180px;
  width: auto;
  display: block;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}
@media (min-width: 768px) { .hero__logo { height: 240px; } }
.hero__surtitle {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem; max-width: none;
}
.hero__title { margin-bottom: 1.5rem; text-shadow: 0 2px 24px rgba(0,0,0,0.2); }
.hero__title em { color: var(--red); font-style: italic; }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.78);
  margin-bottom: 2.5rem; line-height: 1.75; justify-content: center; max-width: 60ch; margin-left: auto; margin-right: auto;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 1;
  color: rgba(255,255,255,0.35);
  animation: bounce 2.4s ease-in-out infinite;
}
.hero__scroll svg { width: 24px; height: 24px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* === ESPACE GALLERY === */
.espace-gallery { display: flex; flex-direction: column; gap: 0.5rem; }
.espace-gallery__main {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden; border-radius: 12px;
}
.espace-gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.2s ease;
}
.espace-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 0.4rem;
}
.espace-gallery__thumb {
  aspect-ratio: 1; overflow: hidden; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent;
  background: none; padding: 0;
  transition: border-color 0.18s, opacity 0.18s;
}
.espace-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.espace-gallery__thumb:hover { opacity: 0.8; }
.espace-gallery__thumb.is-active { border-color: var(--red); }
.espace-gallery__thumb:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px;
}

/* === PAGE HERO === */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  color: var(--text-on-dark); overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    155deg,
    rgba(19,17,15,0.92) 0%,
    rgba(19,17,15,0.72) 55%,
    rgba(227,63,62,0.08) 100%
  );
  pointer-events: none;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.75rem;
}
.page-hero__title { font-family: var(--font-display); margin-bottom: 1rem; }
.page-hero__subtitle {
  font-size: 1.05rem; color: rgba(240,234,224,0.62); max-width: 55ch; line-height: 1.7;
}

/* === SERVICE CARDS === */
.services__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex; flex-direction: column; padding: 2rem;
  background-color: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--warm-2); color: var(--text-on-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.09); }
.service-card--dark { background-color: var(--dark-2); color: var(--text-on-dark); border-color: rgba(255,255,255,0.05); }
.service-card__icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background-color: rgba(227,63,62,0.1); border-radius: 10px;
  margin-bottom: 1.5rem; color: var(--red);
}
.service-card--dark .service-card__icon { background-color: rgba(227,63,62,0.15); }
.service-card__icon svg { width: 22px; height: 22px; }
.service-card__title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card__text {
  font-size: 0.875rem; line-height: 1.75; color: var(--text-muted); flex: 1; margin-bottom: 1.5rem;
}
.service-card--dark .service-card__text { color: rgba(240,234,224,0.52); }
.service-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.83rem; font-weight: 700; color: var(--red);
  transition: gap var(--transition);
}
.service-card__link:hover { gap: 0.7rem; }
.service-card__link svg { width: 14px; height: 14px; }

/* === ABOUT === */
.about__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px)  { .about__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about__grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.about__media img {
  border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover;
  width: 100%; background-color: var(--dark-3);
}
.about__title { margin-bottom: 1.25rem; }
.about__content p { color: rgba(240,234,224,0.70); margin-bottom: 1rem; line-height: 1.8; }
.about__stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap;
}
.about__stat-number {
  display: block; font-family: var(--font-display); font-size: 2rem;
  font-weight: 900; color: var(--red); line-height: 1;
}
.about__stat-label {
  display: block; font-size: 0.72rem; color: rgba(240,234,224,0.42);
  margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em;
}

/* === GALLERY === */
.gallery__grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px;
}
@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
}
@media (min-width: 1024px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
  .gallery__item--large { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide  { grid-column: span 2; }
}
.gallery__item {
  border-radius: var(--radius-md); overflow: hidden;
  background-color: var(--warm-2); cursor: pointer;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:focus { outline: 2px solid var(--red); outline-offset: 2px; }

/* === CTA === */
.cta__content { text-align: center; }
.cta__content h2 { margin-bottom: 1rem; margin-inline: auto; }
.cta__content > p { color: rgba(240,234,224,0.62); margin-bottom: 2rem; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* === FOOTER === */
.footer { background-color: var(--dark-2); color: var(--text-on-dark); padding: 4rem 0 0; }
.footer__grid {
  display: grid; gap: 3rem; grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 640px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 2fr; } }

.footer__logo {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 700; margin-bottom: 0.4rem;
}
.footer__tagline {
  font-size: 0.85rem; color: rgba(240,234,224,0.42); line-height: 1.65;
  margin-bottom: 1.5rem; max-width: none;
}
.footer__social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background-color: rgba(255,255,255,0.06);
  border-radius: 50%; color: var(--text-on-dark); transition: background-color var(--transition);
}
.footer__social:hover { background-color: var(--red); }
.footer__social svg { width: 18px; height: 18px; }
.footer__socials { display: flex; gap: 0.5rem; }

.footer__nav-title {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240,234,224,0.32); margin-bottom: 1rem; max-width: none;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__nav a {
  font-size: 0.875rem; color: rgba(240,234,224,0.62); transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }

.footer__contact ul { display: flex; flex-direction: column; gap: 0.875rem; }
.footer__contact li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.85rem; color: rgba(240,234,224,0.62);
}
.footer__contact li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--red); }
.footer__contact a { color: rgba(240,234,224,0.62); transition: color var(--transition); }
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem; color: rgba(240,234,224,0.28);
}
.footer__bottom p { max-width: none; }
.footer__bottom a { color: rgba(240,234,224,0.28); transition: color var(--transition); }
.footer__bottom a:hover { color: rgba(240,234,224,0.65); }

/* Slogan nutritionnel PNNS */
.footer__pnns {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(240,234,224,0.28);
  padding: 0.6rem 0 1.5rem;
  max-width: none;
}

/* ============================================================
   PIZZA PAGE
   ============================================================ */
.schedule-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }

.schedule-card {
  background-color: var(--dark-2); border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid rgba(255,255,255,0.06);
}
.schedule-card__name { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4rem; }
.schedule-card__note { font-size: 0.8rem; color: rgba(240,234,224,0.42); margin-bottom: 1rem; }
.schedule-card__phone {
  color: var(--red); font-weight: 700; font-size: 0.9rem;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.4rem;
}
.schedule-card__phone svg { width: 14px; height: 14px; }
.schedule-card__phone a { color: inherit; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.schedule-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.schedule-table tr:last-child { border-bottom: none; }
.schedule-table td { padding: 0.55rem 0; color: rgba(240,234,224,0.70); }
.schedule-table td:first-child { font-weight: 600; color: rgba(240,234,224,0.9); width: 45%; }
.schedule-table .is-closed td { color: rgba(240,234,224,0.26); }

/* --- Filtre ingrédients --- */
.pizza-filter { margin-bottom: 1.75rem; }
.pizza-filter__input-wrap {
  position: relative; display: flex; align-items: center;
}
.pizza-filter__input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  background-color: var(--white);
  border: 1.5px solid var(--warm-2);
  border-radius: 100px;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-on-light);
  transition: border-color var(--transition);
}
.pizza-filter__input::placeholder { color: var(--text-muted); }
.pizza-filter__input:focus { outline: none; border-color: var(--red); }
.pizza-filter__icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  display: flex; align-items: center;
}
.pizza-filter__icon svg { width: 16px; height: 16px; }
.pizza-filter__clear {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  color: var(--text-muted); transition: color var(--transition);
}
.pizza-filter__clear:hover { color: var(--text-on-light); }
.pizza-filter__clear.is-visible { display: flex; }
.pizza-filter__clear svg { width: 14px; height: 14px; }

/* Message aucun résultat */
.pizza-no-results {
  display: none; padding: 3rem 1rem;
  text-align: center; color: var(--text-muted); font-size: 0.9rem;
}
.pizza-no-results.is-visible { display: block; }

/* Mention supplément + paiement */
.pizza-notice {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--warm-2);
}
.pizza-notice__item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.pizza-notice__item svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }

.menu-tabs { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.menu-tab {
  padding: 0.6rem 1.25rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  background-color: var(--warm-2); color: var(--text-muted);
  border: 1px solid transparent; transition: all var(--transition); cursor: pointer;
}
.menu-tab.is-active, .menu-tab:hover {
  background-color: var(--red); color: var(--white); border-color: var(--red);
}

.menu-section { display: none; }
.menu-section.is-active { display: block; }

.menu-section__header { margin-bottom: 1.75rem; }
.menu-section__title {
  font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.menu-section__title::after {
  content: ''; flex: 1; height: 1px; background-color: var(--warm-2);
}
.menu-section__desc { font-size: 0.875rem; color: var(--text-muted); }

.pizza-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .pizza-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pizza-grid { grid-template-columns: repeat(3, 1fr); } }

.pizza-item {
  padding: 1.4rem 1.5rem; background-color: var(--white);
  border-radius: var(--radius-md); border: 1px solid var(--warm-2);
  transition: border-color var(--transition);
}
.pizza-item:hover { border-color: rgba(227,63,62,0.45); }
.pizza-item__header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; margin-bottom: 0.4rem;
}
.pizza-item__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.pizza-item__price { font-weight: 800; font-size: 1rem; color: var(--red); white-space: nowrap; }
.pizza-item__ingredients { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   TRAITEUR PAGE
   ============================================================ */
.prestations-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .prestations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prestations-grid { grid-template-columns: repeat(3, 1fr); } }

.prestation-card {
  padding: 2rem; background-color: var(--dark-2); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05); transition: border-color var(--transition);
}
.prestation-card:hover { border-color: rgba(227,63,62,0.3); }
.prestation-card__icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background-color: rgba(227,63,62,0.12); border-radius: 10px;
  color: var(--red); margin-bottom: 1.25rem;
}
.prestation-card__icon svg { width: 22px; height: 22px; }
.prestation-card__title { font-size: 1.1rem; margin-bottom: 0.6rem; }
.prestation-card__text { font-size: 0.875rem; color: rgba(240,234,224,0.56); line-height: 1.75; }

.espace-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .espace-grid { grid-template-columns: 1fr 1fr; } }
.espace-grid img {
  width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/3;
  object-fit: cover; background-color: var(--dark-3);
}
.espace-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.espace-feature { display: flex; align-items: flex-start; gap: 1rem; }
.espace-feature__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(227,63,62,0.12); border-radius: 9px; color: var(--red);
}
.espace-feature__icon svg { width: 18px; height: 18px; }
.espace-feature__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; color: var(--text-on-light); }
.espace-feature__text  { font-size: 0.83rem; color: var(--text-muted); max-width: none; }

/* ============================================================
   EVENEMENTS PAGE
   ============================================================ */
.recurring-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .recurring-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .recurring-grid { grid-template-columns: repeat(3, 1fr); } }

.recurring-card {
  display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem;
  background-color: var(--dark-2); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}
.recurring-card__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(227,63,62,0.12); border-radius: 10px; color: var(--red);
}
.recurring-card__icon svg { width: 22px; height: 22px; }
.recurring-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.recurring-card__text { font-size: 0.85rem; color: rgba(240,234,224,0.54); line-height: 1.65; }
.recurring-card__freq {
  margin-top: 0.6rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); max-width: none;
}

.events-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }

.event-card {
  background-color: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--warm-2); color: var(--text-on-light);
}
.event-card__img {
  aspect-ratio: 16/9; width: 100%; background-color: var(--warm-2);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  overflow: hidden;
}
.event-card__img img { width: 100%; height: 100%; object-fit: cover; }
.event-card__img svg { width: 36px; height: 36px; }
.event-card__body { padding: 1.4rem; }
.event-card__tag {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 4px;
  background-color: rgba(227,63,62,0.1); color: var(--red); margin-bottom: 0.75rem;
}
.event-card__tag--past { background-color: var(--warm-2); color: var(--text-muted); }
.event-card__title { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.3; }
.event-card__meta {
  display: flex; gap: 0.6rem 1rem; font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.event-card__meta span { display: flex; align-items: center; gap: 0.3rem; }
.event-card__meta svg { width: 13px; height: 13px; }
.event-card__text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 2fr 3fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-item__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: rgba(227,63,62,0.12); border-radius: 10px; color: var(--red);
}
.contact-info-item__icon svg { width: 20px; height: 20px; }
.contact-info-item__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(240,234,224,0.36); margin-bottom: 0.25rem; display: block;
}
.contact-info-item__value { font-size: 0.95rem; color: var(--text-on-dark); line-height: 1.6; max-width: none; }
.contact-info-item__value a { transition: color var(--transition); }
.contact-info-item__value a:hover { color: var(--red); }

.contact-form-wrap {
  background-color: var(--dark-2); border-radius: var(--radius-lg); padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(240,234,224,0.42);
}
.form-label .req { color: var(--red); }
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 0.875rem 1rem;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  color: var(--text-on-dark); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition); -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(240,234,224,0.2); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 2px solid var(--red); outline-offset: 2px; border-color: transparent;
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a09890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form-select option { background-color: var(--dark-2); color: var(--text-on-dark); }
.form-textarea { resize: vertical; min-height: 150px; }
.form-note {
  font-size: 0.78rem; color: rgba(240,234,224,0.28); max-width: none;
}
.form-success {
  display: none; padding: 1.25rem; background-color: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25); border-radius: var(--radius);
  color: #4ade80; font-size: 0.9rem; max-width: none;
}
.form-error {
  display: none; padding: 1.25rem; background-color: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25); border-radius: var(--radius);
  color: #f87171; font-size: 0.9rem; max-width: none;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background-color: rgba(0,0,0,0.93); align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(90vw, 1200px); max-height: 85vh;
  object-fit: contain; border-radius: var(--radius);
}
.lightbox__close {
  position: fixed; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: white; background-color: rgba(255,255,255,0.1); border-radius: 50%;
  transition: background-color var(--transition);
}
.lightbox__close:hover { background-color: rgba(255,255,255,0.2); }
.lightbox__close svg { width: 20px; height: 20px; }

/* ============================================================
   MENTIONS LÉGALES
   ============================================================ */
.legal-content { max-width: 75ch; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.07); }
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p { color: rgba(240,234,224,0.62); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-content a { color: var(--red); text-decoration: underline; }

/* Tableau cookies dans les mentions légales */
.legal-cookies-table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0 1.25rem; font-size: 0.875rem;
}
.legal-cookies-table th {
  text-align: left; padding: 0.6rem 0.9rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(240,234,224,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.legal-cookies-table td {
  padding: 0.65rem 0.9rem;
  color: rgba(240,234,224,0.62);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
.legal-cookies-table tr:last-child td { border-bottom: none; }
.legal-cookies-table code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.82rem; background: rgba(255,255,255,0.07);
  padding: 0.15rem 0.45rem; border-radius: 4px;
  color: var(--text-on-dark);
}
@media (max-width: 479px) {
  .legal-cookies-table { font-size: 0.78rem; }
  .legal-cookies-table th,
  .legal-cookies-table td { padding: 0.5rem 0.5rem; }
}

/* === EVENT FEATURED (vidéo + photos Yann Muller, etc.) === */
.event-featured__video {
  border-radius: var(--radius-lg); overflow: hidden;
  background-color: var(--dark-3); margin-bottom: 1rem;
}
.event-featured__video video { width: 100%; display: block; }

.event-photos {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .event-photos { grid-template-columns: repeat(3, 1fr); } }
.event-photos__item {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3;
  background-color: var(--warm-2); cursor: pointer;
}
.event-photos__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease-out; }
.event-photos__item:hover img { transform: scale(1.06); }
.event-photos__item:focus { outline: 2px solid var(--red); outline-offset: 2px; }

/* === PARTNERS === */
.partners__grid {
  display: flex; flex-wrap: wrap; gap: 1.25rem 3rem;
  align-items: center; justify-content: center;
  margin-top: 2.5rem;
}
.partner-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
}
.partner-item__link {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  opacity: 0.5; transition: opacity var(--transition);
}
.partner-item__link:hover { opacity: 1; }
.partner-item__logo { max-height: 52px; max-width: 160px; object-fit: contain; }
.partner-item__name {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(240,234,224,0.6); text-align: center; max-width: none;
}
/* Partenaire affiché en nom seul (sans logo) */
.partner-item__name-only {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: rgba(240,234,224,0.55); transition: color var(--transition); max-width: none;
}
.partner-item__link:hover .partner-item__name-only { color: var(--text-on-dark); }

/* ============================================================
   RESPONSIVE MOBILE — améliorations globales (< 768 px)
   ============================================================ */

/* ── Espacement des sections réduit sur mobile ── */
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }

  /* Section headers */
  .section-header { margin-bottom: 2rem; }

  /* Hero principal */
  .hero__logo { height: 110px; }
  .hero__title { margin-bottom: 1rem; }
  .hero__subtitle { margin-bottom: 1.75rem; font-size: 0.95rem; }
  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Page hero */
  .page-hero {
    padding: calc(var(--nav-height) + 2.5rem) 0 2.5rem;
  }
  .page-hero__title { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .page-hero__subtitle { font-size: 0.92rem; }

  /* CTA sections — boutons pleine largeur */
  .cta__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .cta__actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* About stats — espacement réduit */
  .about__stats { gap: 1.5rem; }

  /* Footer */
  .footer { padding-top: 2.75rem; }
  .footer__grid { gap: 2rem; }
  .footer__contact ul { gap: 0.75rem; }

  /* Boutons généraux — taille tactile correcte */
  .btn { padding: 0.8rem 1.4rem; font-size: 0.875rem; }
}

/* ── Très petits écrans (< 480 px) ── */
@media (max-width: 479px) {
  :root { --container: min(1200px, 100% - 2rem); }

  .hero__logo { height: 90px; }
  .hero__surtitle { font-size: 0.65rem; }

  .page-hero { padding: calc(var(--nav-height) + 2rem) 0 2rem; }
  .page-hero__label { font-size: 0.65rem; }

  .section { padding: 2.75rem 0; }
  .section-header { margin-bottom: 1.5rem; }

  /* Service cards — padding réduit */
  .service-card { padding: 1.5rem; }

  /* Galerie — 1 colonne sur très petit écran */
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  /* Grille planning pizza */
  .schedule-grid { gap: 1rem; }

  /* Footer bottom — stack */
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-block: 1.25rem;
  }
}


/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PAGE ERREUR
   ============================================================ */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.error-page__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: 4rem;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  opacity: 0.18;
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.error-page__icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(227, 63, 62, 0.12);
  border: 1px solid rgba(227, 63, 62, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  position: relative;
}

.error-page__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.error-page__title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--text-on-dark);
  position: relative;
}

.error-page__message {
  font-size: 1.05rem;
  color: rgba(240, 234, 224, 0.6);
  max-width: 44ch;
  line-height: 1.7;
  position: relative;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

.error-page__links {
  margin-top: 1rem;
  position: relative;
}

.error-page__links p {
  font-size: 0.82rem;
  color: rgba(240, 234, 224, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  max-width: none;
}

.error-page__links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}

.error-page__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(240, 234, 224, 0.55);
  transition: color var(--transition);
}

.error-page__links a:hover {
  color: var(--text-on-dark);
}

.error-page__links svg {
  width: 0.9rem;
  height: 0.9rem;
}
