
/* ===========================================
   JET PIZZA MONTREUX - STYLES GLOBAUX
   Version: 2.0 - Optimisé Android/iOS
   =========================================== */

/* --- PALETTE & GLOBAL STYLES --- */
:root {
  /* Unified Palette */
  --brand: #7c0f12;
  --beige: #F3E2C7;
  --beige-100: #F9EFDF;
  --bg: var(--beige-100);
  --text: #2b1a14;
  --muted: #7a6d66;

  /* Core Palette */
  --brand-light: #FBEAEA;
  --paper: #fff;
  --ink: var(--text);
  --gold: #D4AF37;

  /* Legacy aliases */
  --bordeaux-primary: var(--brand);
  --bordeaux-hover: #600909;
  --beige-secondary: var(--beige);
  --beige-secondary-hover: #E6CDA5;
  --white: var(--paper);

  /* Layout */
  --nav-height: 86px;
  --container-width: min(1280px, 94vw);
  --radius: 14px;
  --radius-sm: 12px;
  --shadow: 0 4px 14px rgba(0,0,0,.08);
  
  /* Typography */
  --font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-title: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* --- BASE --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}

body.nav-open, body.cart-drawer-is-open { overflow: hidden; }

/* --- REUSABLE --- */
.section { padding: 80px 0; }
.container { width: var(--container-width); margin-left: auto; margin-right: auto; }

h1, .h1, h2, .h2, h3, .h3, h4, .h4 { 
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--bordeaux-primary);
  line-height: 1.3;
}
.h1, h1 { font-size: 44px; margin: 0 0 1rem; }
.h2, h2 { font-size: 32px; margin: 0 0 1.5rem; }
h3, .h3 { font-size: 1.5rem; margin: 0 0 1rem; }
h4, .h4 { font-size: 1.2rem; margin: 0 0 1rem; }

p { color: var(--ink); font-size: 17px; margin: 0 0 1rem; }
a { color: var(--bordeaux-primary); text-decoration: none; transition: color 0.2s ease-in-out; -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--bordeaux-hover); }

button, input, select, textarea { font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- NAVBAR --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--beige-secondary); box-shadow: 0 4px 12px rgba(0,0,0,.08); height: var(--nav-height); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: var(--container-width); margin: 0 auto; padding: 0 1rem; height: 100%; }
.brand { flex-shrink: 0; }
.brand img { height: 70px; width: auto; object-fit: contain; }
.nav-actions-group { display: flex; align-items: center; justify-content: flex-end; gap: 2.5rem; flex-grow: 1; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { color: var(--bordeaux-primary); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.cta-block { display: flex; align-items: center; gap: 1.5rem; }
.btn-order { background: var(--brand); color: #fff; text-decoration: none; border-radius: 12px; padding: 12px 22px; font-weight: 700; font-size: 1.1rem; transition: background-color .2s ease-in-out, transform .2s ease, filter .2s ease; border:none; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;}
.btn-order:hover { filter: brightness(.95); transform: translateY(-2px); }
.btn-order.active { background: var(--bordeaux-hover); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.burger { display: none; }

/* --- HERO SECTION (OPTIMISÉ ANDROID/IOS) --- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 500px;
  max-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #0f0f0f;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.hero__actions { 
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
  margin-bottom: 8vh;
  transform: translateY(-20px);
}

.btn-hero-outline, .btn-hero-solid { 
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 20px 40px;
  transition: background-color .3s ease, transform .3s ease;
  cursor: pointer;
  border: none;
}

.btn-hero-outline { 
  background: var(--beige-secondary);
  color: var(--bordeaux-primary);
}
.btn-hero-outline:hover { 
  background: var(--beige-secondary-hover);
}

.btn-hero-solid { 
  background: linear-gradient(to bottom, #8c2323, #7A1C1C);
  color: white;
}
.btn-hero-solid:hover { 
  background: var(--bordeaux-hover);
}

/* Scroll Indicator */
#scrollCue {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vh, 36px);
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 20px;
  opacity: 0.85;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(0,0,0,.05) inset;
}

#scrollCue .wheel {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-top: 8px;
  animation: wheelMove 1.9s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

@keyframes wheelMove {
  0%   { transform: translateY(0); opacity: .9; }
  50%  { transform: translateY(12px); opacity: .4; }
  100% { transform: translateY(0); opacity: .9; }
}

@media(prefers-reduced-motion: reduce) {
  #scrollCue, #scrollCue .wheel { animation: none; }
}

/* --- STORY --- */
#histoire { background-color: var(--bg); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-image-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.story-image-wrapper img { width: 100%; height: 100%; display: block; object-fit: cover; }

.histoire-wrapper { display: flex; align-items: center; gap: 40px; }
.histoire-image img { width: 100%; max-width: 550px; border-radius: 12px; }
.histoire-text { max-width: 500px; }

/* --- MENU --- */
.menu-clean { background: var(--bg); padding: 72px 0; }
.menu-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.menu-hero h2 { font-size: 40px; text-align: center; color: #3a0a0d; margin: 0; }
.menu-sub { text-align: center; color: var(--muted); margin: 8px 0 28px; }
#menuSearch { display: block; margin: 0 auto 22px; width: min(680px, 100%); padding: 12px 16px; border: 1px solid #e6d8c9; border-radius: 10px; background: var(--paper); font-size: 1rem; }
.menu-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.pill { background: var(--paper); border: 1px solid #e6d8c9; border-radius: 999px; padding: 9px 14px; color: var(--brand); font-weight: 600; cursor: pointer; font-size: 14px; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.pill.is-active, .pill:hover { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.menu-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 20px; font-style: italic; }
.menu-section-title { text-align: center; font-size: 28px; color: var(--brand); margin: 0 0 1rem; }
.menu-divider { height: 2px; width: 60px; background: var(--brand); margin: 0 auto 2rem; opacity: 0.5; }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.menu-item { border-bottom: 1px solid #e6d8c9; padding-bottom: 1.25rem; }
.menu-item:last-child { border-bottom: none; }
.menu-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-name { font-weight: 600; font-size: 1.1rem; color: #3a0a0d; }
.menu-price { font-weight: 600; color: var(--brand); white-space: nowrap; }
.menu-desc { color: var(--muted); font-size: 0.95rem; margin: 4px 0 0; line-height: 1.5; }

/* --- GALLERY --- */
.section-galerie { padding: 56px 0; background: #F9F3E9; }
.galerie-header { text-align: center; margin-bottom: 2rem; }
.galerie-header .h2 { margin-bottom: 0.5rem; }
.galerie-subtitle { color: var(--muted); font-size: 1.1rem; margin: 0; }
.galerie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.galerie-item { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; box-shadow: var(--shadow); margin: 0; }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galerie-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .galerie-item:hover img { transform: scale(1.06); } }
@media (hover: none) { .galerie-item img { transform: none !important; } }

/* --- REVIEWS --- */
.review-section { background-color: var(--bg); }
.review-summary { 
  text-align: center; 
  max-width: 400px; 
  margin: 0 auto 3rem; 
  padding: 1.5rem; 
  border-radius: var(--radius); 
  background-color: var(--brand);
  box-shadow: var(--shadow); 
  border: 1px solid #EADED0; 
}
.review-summary__score { 
  font-size: 2.5rem; 
  font-weight: 700; 
  font-family: var(--font-title); 
  color: var(--text);
}
.review-summary__stars { color: #FFC107; font-size: 1.5rem; margin: 0.5rem 0; }
.review-summary__count { color: var(--text); margin: 0; font-size: 0.9rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.review-card-new { background: var(--paper); padding: 1.5rem; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.06); border: 1px solid #ECE7E2; display: flex; flex-direction: column; }
.review-card-new__header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.review-card-new__author { margin: 0; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.review-card-new__stars { color: #FFC107; font-size: 1.0rem; }
.review-card-new__text p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* --- CONTACT --- */
.section-contact { background-color: #F6F4EF; }
.contact-header { text-align: center; margin-bottom: 3rem; }
.title-divider { height: 3px; width: 80px; background: var(--gold); margin: -1rem auto 0; opacity: 0.8; }
.contact-layout-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: start; }
.contact-info-panel { background: var(--paper); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #ECE7E2; }
.contact-info-group { margin-bottom: 2rem; }
.contact-info-group:last-child { margin-bottom: 0; }
.contact-info-heading { font-size: 1.5rem; }
.contact-info-panel p { margin: 0 0 0.5rem; line-height: 1.6; }
.contact-info-subtext { font-size: 0.9rem; color: var(--muted); }
.contact-icon-row { display: flex; gap: 1rem; margin-top: 1rem; }
.contact-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-light); color: var(--brand); border: 1px solid #EADED0; font-size: 1.25rem; transition: background-color 0.2s, color 0.2s; }
.contact-icon-btn:hover { background: var(--brand); color: #fff; }
.contact-map-wrapper { display: flex; flex-direction: column; gap: 1rem; }
.contact-map-embed { border-radius: var(--radius); width: 100%; height: 420px; border: 1px solid #ECE7E2; }
.contact-map-button { display: block; width: 100%; text-align: center; padding: 1rem; background-color: var(--beige); color: var(--ink); font-weight: 600; border-radius: var(--radius); transition: background-color 0.2s; }
.contact-map-button:hover { background-color: #e0cbad; }
.contact-map-button i { margin-left: 0.5rem; }

/* --- FOOTER --- */
.site-footer { background-color: #1D0E0E; color: #EEE; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-col p { color: #ccc; font-size: 0.9rem; }
.footer-heading { font-family: var(--font-title); color: var(--white); font-size: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-col a { color: #ccc; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; padding: 1.5rem 0; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; }
.copyright { font-size: 0.9rem; color: #aaa; margin: 0; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: #aaa; font-size: 1.2rem; transition: color 0.2s; }
.social-links a:hover { color: var(--white); }

/* --- TOASTS --- */
#toast-container { position: fixed; top: calc(var(--nav-height) + 1rem); right: 1rem; z-index: 2000; }
.toast {
  background: var(--text);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.toast-error { background: var(--brand); }

/* --- UTILITIES --- */
.hidden { display: none !important; }

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* TABLET & SMALL DESKTOP */
@media(max-width:1023px){ 
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-image-wrapper { margin-bottom: 1rem; }
  .contact-layout-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto;}
  .footer-bottom-content { flex-direction: column; gap: 1rem; }
  .nav-wrap { padding: 0 1.5rem; }
  .nav-actions-group, .main-nav { gap: 1.5rem; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  /* MOBILE NAV */
  .nav-actions-group { display: none; }
  .burger {
    display: flex;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
  }
  .burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--bordeaux-primary);
    transition: transform 0.3s, opacity 0.3s;
  }

  #drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  
  body.nav-open #drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  #drawer {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    height: 100dvh;
    width: min(86vw, 420px);
    background-color: var(--beige);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
    display: flex;
    flex-direction: column;
  }
  
  body.nav-open #drawer { transform: translateX(0); }

  .drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    height: var(--nav-height);
    align-items: center;
  }
  .close-drawer {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--bordeaux-primary);
    cursor: pointer;
    padding: 0.5rem;
  }
  .drawer-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }
  .mobile-menu-item {
    color: var(--bordeaux-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
  }
  .mobile-menu-item:hover, .mobile-menu-item:focus {
    background-color: rgba(0, 0, 0, 0.05);
  }
  .drawer-divider {
    height: 1px;
    background-color: rgba(122, 15, 20, 0.15);
    margin: 1rem 0;
  }
  .drawer .btn-order, .drawer .tel.btn-order {
    height: 54px;
    font-size: 1.2rem;
    min-height: 44px;
  }
}

@media(max-width: 900px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

/* MOBILE */
@media(max-width:767px){
  .section, .menu-clean, .review-section, .section-contact, .shop-page { padding: 40px 0; }
  .h1, h1 { font-size: 36px; }
  .h2, h2 { font-size: 28px; }
  .menu-hero h2 { font-size: 32px; }
  p { font-size: 16px; }
  .nav-wrap { padding: 0 1rem; }

  /* HERO MOBILE (ANDROID/IOS FIX) */
  .hero {
    min-height: 450px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 6vh;
    width: calc(100% - 2rem);
    max-width: 400px;
  }

  .btn-hero-solid, .btn-hero-outline { 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    height: 52px;
    padding: 0 24px;
    width: 100%;
  }

  #scrollCue { 
    width: 24px;
    height: 38px;
    bottom: 16px;
  }

  #scrollCue .wheel { 
    width: 5px;
    height: 5px;
  }

  /* OTHER SECTIONS */
  .review-grid { grid-template-columns: 1fr; }
  .contact-layout-grid { gap: 1.5rem; }
  .contact-info-panel { padding: 1.5rem; }
  .contact-map-embed { height: 300px; }
  .menu-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  
  /* GALLERY MOBILE SCROLL */
  .section-galerie .container { width: 100%; padding: 0; }
  .galerie-header { padding: 0 20px; }
  .galerie-hint { display: block; margin: 0 16px 10px; font-size: .95rem; color: var(--muted); text-align: center; }
  .galerie-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .galerie-grid::-webkit-scrollbar { display: none; }
  .galerie-item { flex: 0 0 85%; min-height: 320px; scroll-snap-align: center; }
  
  /* MENU TABS SCROLL */
  .menu-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .menu-tabs::-webkit-scrollbar { height: 4px; }
  .menu-tabs::-webkit-scrollbar-thumb { background: #e6d8c9; border-radius: 10px; }
}

.alcohol-legal-section {
  background-color: #f5f5f5;
  padding: 60px 20px;
  border-top: 3px solid #b30000;
}

.alcohol-legal-section h2 {
  color: #b30000;
  margin-bottom: 20px;
  font-size: 24px;
}

.alcohol-legal-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.alcohol-legal-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}
