:root {
  --navy: #0B1D2E;
  --deep-sea: #0F2B3C;
  --ocean: #1A4A5E;
  --teal: #2A7C8E;
  --seafoam: #5FB8A2;
  --sand: #E8DCC8;
  --warm-sand: #F5EDE0;
  --cream: #FAF6F0;
  --white: #FEFDFB;
  --coral: #D4705A;
  --gold: #C49B5C;
  --text: #1A1A1A;
  --text-light: #5A5A5A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* ===== GRAIN OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

nav.scrolled {
  background: rgba(11, 29, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.8rem 3rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

nav.scrolled .nav-logo-img {
  height: 38px;
}

.nav-logo span {
  font-weight: 700;
  color: var(--seafoam);
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--seafoam);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.6rem !important;
  border-radius: 0;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: #c25e45 !important;
  transform: translateY(-1px);
}

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

.nav-phone {
  color: var(--seafoam) !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,29,46,0.25) 0%, rgba(11,29,46,0.45) 40%, rgba(11,29,46,0.9) 100%),
    url('https://bistrot-du-marin.fr/wp-content/uploads/2025/08/BDM-TERRASSE-26-2048x1368.jpg') center/cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 8vh;
  max-width: 900px;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--white);
  font-weight: 400;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 550px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: #c25e45;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 112, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
  animation: heroFadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  background: var(--navy);
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
}

/* ===== SECTIONS SHARED ===== */
section {
  padding: 8rem 6vw;
  position: relative;
}

.section-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--navy);
}

.section-title em {
  font-style: italic;
  color: var(--ocean);
}

/* ===== RESTAURANT SECTION ===== */
.restaurant {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.restaurant-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.restaurant-highlight {
  background: var(--warm-sand);
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
}

.restaurant-highlight h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.restaurant-highlight p {
  font-size: 0.95rem !important;
  margin-bottom: 0 !important;
}

.restaurant-visual {
  position: relative;
}

.restaurant-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.restaurant-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-img-wrapper:hover img {
  transform: scale(1.05);
}

.restaurant-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 160px;
  height: 160px;
  border: 1px solid var(--teal);
  opacity: 0.3;
  z-index: -1;
}

/* ===== CUISINE SECTION ===== */
.cuisine {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.cuisine .section-number { color: var(--seafoam); }
.cuisine .section-number::after { background: var(--seafoam); }
.cuisine .section-title { color: var(--white); }
.cuisine .section-title em { color: var(--seafoam); }

.cuisine-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3rem;
}

.cuisine-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.cuisine-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cuisine-list li::before {
  content: '\25C6';
  color: var(--seafoam);
  font-size: 0.5rem;
}

.cuisine-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cuisine-img {
  overflow: hidden;
  aspect-ratio: 3/4;
}

.cuisine-img:first-child {
  margin-top: 3rem;
}

.cuisine-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  filter: brightness(0.9);
}

.cuisine-img:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* ===== CARTE SECTION ===== */
.carte {
  background: var(--warm-sand);
  text-align: center;
}

.carte-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.carte-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}

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

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

.carte-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,29,46,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: background 0.4s;
}

.carte-card:hover .carte-card-overlay {
  background: linear-gradient(0deg, rgba(11,29,46,0.9) 0%, rgba(11,29,46,0.2) 60%);
}

.carte-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.carte-card p {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--seafoam);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s;
}

.carte-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PHILOSOPHIE SECTION ===== */
.philosophie {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

.philosophie-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.philosophie-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophie-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.service-item {
  padding: 1.5rem;
  background: var(--warm-sand);
  border-bottom: 2px solid var(--teal);
  transition: all 0.3s;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.service-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.service-item p {
  font-size: 0.85rem !important;
  margin-bottom: 0 !important;
  color: var(--text-light);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--navy);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
}

.contact .section-number { color: var(--seafoam); }
.contact .section-number::after { background: var(--seafoam); }
.contact .section-title { color: var(--white); }
.contact .section-title em { color: var(--seafoam); }

.contact-intro {
  grid-column: 1 / -1;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours-grid {
  display: grid;
  gap: 0.8rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hours-day {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

.hours-time {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: right;
}

.hours-closed {
  color: var(--coral);
  font-style: italic;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seafoam);
  font-weight: 500;
}

.contact-value {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

.contact-value a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-value a:hover {
  color: var(--seafoam);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-cta .btn {
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
}

.sister-restaurant {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sister-restaurant p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sister-restaurant a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--seafoam);
  text-decoration: none;
  transition: color 0.3s;
}

.sister-restaurant a:hover { color: var(--white); }

/* ===== MAP ===== */
.map-section {
  height: 400px;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.7) contrast(1.1);
}

/* ===== FOOTER ===== */
footer {
  background: #060E16;
  padding: 3rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-credit {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
}

.zxstudio-link {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 1;
  border: none;
  text-decoration: none;
}

.zxstudio-link .zx { color: #e63946; }
.zxstudio-link:hover { opacity: 0.7; }

/* ===== MODAL MENTIONS LEGALES ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--cream);
  color: var(--text);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
}

.modal-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand);
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ocean);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.5rem;
}

.modal-content ul li {
  font-size: 0.92rem;
  color: var(--text-light);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.modal-content ul li::before {
  content: '\25C6';
  color: var(--teal);
  font-size: 0.45rem;
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--navy);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .restaurant,
  .philosophie {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .contact-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 1rem;
  }

  .contact-cta .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.6rem 1.5rem; }

  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(11, 29, 46, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 200;
  }

  .nav-links.open a {
    font-size: 1.2rem;
    color: var(--white);
  }

  .menu-toggle {
    z-index: 201;
  }

  section { padding: 5rem 1.5rem; }

  .hero-content { padding: 0 1.5rem 6vh; }

  .cuisine-list {
    grid-template-columns: 1fr;
  }

  .cuisine-images {
    grid-template-columns: 1fr 1fr;
  }

  .carte-cards {
    grid-template-columns: 1fr;
  }

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

  .contact-cta {
    flex-direction: column;
  }

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

  .scroll-indicator { display: none; }

  .restaurant-img-accent { display: none; }

  footer {
    flex-direction: column;
    text-align: center;
  }
}