/* ============================================
   LE SAFRAN - Vias Plage
   Custom Styles (complément Tailwind)
   Paper34 — 2026
   ============================================ */

:root {
  --bg-dark: #0A0A0A;
  --bg-section: #111111;
  --bg-card: #1A1A1A;
  --white: #FFFFFF;
  --cream: #F5F0EB;
  --red: #D62725;
  --red-light: #E84240;
  --gold: #C9A84C;
  --gold-light: #D4B65E;
  --gray: #888888;
  --gray-dark: #333333;
  --gray-border: #222222;
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis gère le smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Typographie ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(40px, 8vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(20px, 3vw, 32px); }

p {
  font-weight: 400;
  line-height: 1.6;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 32px;
  transition: all 0.4s ease;
  transform: translateY(-100%);
  opacity: 0;
}

.nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-blur {
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 10, 10, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
  position: relative;
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-logo {
  width: clamp(120px, 20vw, 200px);
  height: auto;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.85;
}

.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-hours .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---- Bouton CTA ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--red-light);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(214, 39, 37, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.02);
}

/* ---- Flèche scroll ---- */
.scroll-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--cream);
  opacity: 0.5;
}

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

/* ---- Sections ---- */
.section {
  padding: clamp(64px, 10vw, 150px) clamp(24px, 5vw, 80px);
}

.section-dark {
  background: var(--bg-dark);
}

.section-darker {
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
  color: var(--gray);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

/* ---- Section À propos ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
}

.about-text h3 {
  color: var(--gold);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--cream);
  margin-bottom: 24px;
  font-size: 17px;
  opacity: 0.85;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--cream);
  font-size: 15px;
}

.info-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  flex-shrink: 0;
}

/* ---- Menu / La Carte ---- */
.menu-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.menu-tab {
  padding: 10px 24px;
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--gray-dark);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.menu-tab:hover {
  color: var(--white);
  border-color: var(--gray);
}

.menu-tab.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-section {
  display: none;
}

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

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.menu-card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}

.menu-card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  margin-left: 16px;
}

.menu-card-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}

.menu-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(214, 39, 37, 0.15);
  color: var(--red);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.menu-formule {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-border);
}

.menu-formule-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 4px;
}

.menu-formule-item span:last-child {
  color: var(--gold);
  font-weight: 500;
}

/* ---- Avis ---- */
.reviews-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.review-badge {
  text-align: center;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  min-width: 160px;
}

.review-badge-score {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.review-badge-stars {
  color: var(--gold);
  font-size: 14px;
  margin: 8px 0;
}

.review-badge-source {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-block {
  margin-bottom: 32px;
}

.contact-block h4 {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-block p, .contact-block a {
  color: var(--cream);
  font-size: 17px;
  text-decoration: none;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.contact-block a:hover {
  color: var(--red);
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--gray-border);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.8) invert(0.92) contrast(0.9);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-dark);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--red);
  background: rgba(214, 39, 37, 0.1);
}

.social-link svg, .social-link img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-link:hover svg, .social-link:hover img {
  opacity: 1;
}

/* ---- Footer ---- */
.footer {
  padding: 32px;
  text-align: center;
  border-top: 1px solid var(--gray-border);
  background: var(--bg-dark);
}

.footer p {
  font-size: 13px;
  color: var(--gray);
}

.footer a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ---- Grain/noise overlay ---- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---- Mobile menu ---- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- GSAP reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    height: 350px;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
  }

  .nav-links.open .nav-link {
    font-size: 24px;
    font-weight: 600;
  }

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

  .menu-categories {
    gap: 6px;
  }

  .menu-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .reviews-badges {
    gap: 16px;
  }

  .review-badge {
    min-width: 140px;
    padding: 20px 24px;
  }

  .contact-map {
    height: 300px;
  }

  .section {
    padding: clamp(48px, 8vw, 80px) 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .nav {
    padding: 12px 20px;
  }
}

/* ---- 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;
  }

  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }

  .scroll-arrow {
    animation: none;
  }
}
