/* ================================================================
   Le Quai Bleu — Mediterranean Restaurant
   Design system: warm coastal gold, soft Mediterranean blue, warm ivory
   ================================================================ */

/* ---- CSS Custom Properties (color mood tokens) ---- */
:root {
  /* Warm Coastal Gold */
  --gold:          hsl(40, 70%, 52%);
  --gold-light:    hsl(42, 80%, 72%);
  --gold-deep:     hsl(36, 65%, 40%);

  /* Soft Mediterranean Blue */
  --blue:          hsl(210, 55%, 42%);
  --blue-light:    hsl(210, 60%, 92%);
  --blue-mid:      hsl(210, 50%, 60%);
  --blue-deep:     hsl(215, 55%, 28%);

  /* Warm Ivory / Neutrals */
  --ivory:         hsl(45, 40%, 96%);
  --ivory-warm:    hsl(40, 35%, 90%);
  --sand:          hsl(38, 30%, 82%);
  --stone:         hsl(35, 15%, 55%);
  --charcoal:      hsl(220, 15%, 22%);
  --ink:           hsl(220, 20%, 12%);

  /* Wood tones */
  --wood:          hsl(28, 40%, 55%);
  --wood-light:    hsl(32, 38%, 75%);

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;

  /* Layout */
  --max-w:      1200px;
  --radius:     4px;
  --radius-lg:  12px;

  /* Transitions */
  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ---- Utility classes ---- */
.container {
  width: min(var(--max-w), 100% - 2 * var(--space-md));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section__label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--blue-deep);
  margin-bottom: var(--space-sm);
}

.section__desc {
  font-size: 1rem;
  color: var(--stone);
  max-width: 52ch;
}

.section__header {
  margin-bottom: var(--space-lg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: white;
  box-shadow: 0 4px 20px hsla(40, 70%, 52%, 0.35);
}

.btn--primary:hover {
  background: var(--gold-deep);
  box-shadow: 0 6px 28px hsla(36, 65%, 40%, 0.45);
  transform: translateY(-1px);
}

.btn--full { width: 100%; justify-content: center; }

.btn__icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Icons ---- */
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.icon--success {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: hsla(45, 40%, 96%, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--ivory-warm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: min(var(--max-w), 100% - 2 * var(--space-md));
  margin-inline: auto;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: white;
  transition: color 0.4s var(--ease);
  letter-spacing: 0.02em;
}

.nav.scrolled .nav__logo {
  color: var(--blue-deep);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.85);
  transition: color 0.25s var(--ease);
}

.nav.scrolled .nav__links a {
  color: var(--stone);
}

.nav__links a:hover {
  color: var(--gold);
}

.nav.scrolled .nav__links a:hover {
  color: var(--gold-deep);
}

.nav__cta {
  background: transparent !important;
  border: 1px solid hsla(0, 0%, 100%, 0.55) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: var(--radius) !important;
  color: white !important;
  transition: border-color 0.25s, background 0.25s, color 0.25s !important;
}

.nav.scrolled .nav__cta {
  border-color: var(--gold) !important;
  color: var(--gold-deep) !important;
}

.nav__cta:hover,
.nav.scrolled .nav__cta:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: white !important;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: background 0.4s, transform 0.3s, opacity 0.3s;
}

.nav.scrolled .nav__burger span {
  background: var(--charcoal);
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  background: var(--ivory);
  border-top: 1px solid var(--ivory-warm);
  padding: var(--space-sm) 0;
}

.nav__mobile.open { display: block; }

.nav__mobile ul { display: flex; flex-direction: column; }

.nav__mobile-link {
  display: block;
  padding: 0.9rem var(--space-md);
  font-size: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue-deep);
  border-bottom: 1px solid var(--ivory-warm);
  transition: color 0.2s, padding-left 0.2s;
}

.nav__mobile-link:hover {
  color: var(--gold-deep);
  padding-left: calc(var(--space-md) + 6px);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease) forwards;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    hsla(215, 55%, 20%, 0.62) 0%,
    hsla(215, 55%, 15%, 0.45) 50%,
    hsla(40, 50%, 20%, 0.30) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
  max-width: 700px;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.9s 0.3s var(--ease-out) forwards;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: white;
  margin-bottom: var(--space-xs);
  opacity: 0;
  animation: fadeInUp 1s 0.55s var(--ease-out) forwards;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.78);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.9s 0.8s var(--ease-out) forwards;
}

.hero__content .btn {
  opacity: 0;
  animation: fadeInUp 0.9s 1.1s var(--ease-out) forwards;
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, hsla(0,0%,100%,0.6));
  margin: 0 auto;
  animation: scrollPulse 2.2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ================================================================
   MENU
   ================================================================ */
.menu {
  background: var(--ivory);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-md);
}

.dish {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px hsla(220, 20%, 12%, 0.06);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.dish:hover {
  box-shadow: 0 12px 40px hsla(220, 20%, 12%, 0.12);
  transform: translateY(-4px);
}

.dish__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.dish__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.dish:hover .dish__img {
  transform: scale(1.05);
}

.dish__body {
  padding: 1.5rem;
}

.dish__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.dish__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--stone);
  margin-bottom: 1rem;
}

.dish__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold-light);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
}

/* ================================================================
   HORAIRES
   ================================================================ */
.horaires {
  background: var(--blue-deep);
  color: white;
}

.horaires .section__label {
  color: var(--gold-light);
}

.horaires .section__title {
  color: white;
}

.horaires__inner {
  max-width: 720px;
}

.horaires__table {
  margin-top: var(--space-md);
  border: 1px solid hsla(0,0%,100%,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: hsla(0,0%,100%,0.04);
}

.horaires__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.4rem 2rem;
  transition: background 0.2s;
}

.horaires__row:hover {
  background: hsla(0,0%,100%,0.06);
}

.horaires__divider {
  height: 1px;
  background: hsla(0,0%,100%,0.1);
}

.horaires__day {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ivory);
}

.horaires__day .icon {
  color: var(--gold-light);
  width: 18px;
  height: 18px;
}

.horaires__slots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot {
  background: hsla(0,0%,100%,0.1);
  border: 1px solid hsla(0,0%,100%,0.18);
  border-radius: var(--radius);
  padding: 0.3rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

.slot__sep {
  color: var(--gold-light);
  font-size: 0.8rem;
}

.horaires__note {
  margin-top: var(--space-md);
  font-size: 0.82rem;
  color: hsla(0,0%,100%,0.52);
  letter-spacing: 0.02em;
  font-style: italic;
}

/* ================================================================
   CONTACT & RESERVATION
   ================================================================ */
.contact {
  background: var(--ivory);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Info side */
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: var(--space-md) 0;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__list .icon {
  color: var(--gold-deep);
  margin-top: 0.15rem;
}

.contact__list strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.2rem;
}

.contact__list span,
.contact__list a {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.contact__list a:hover {
  color: var(--gold-deep);
}

/* Map placeholder */
.contact__map {
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/2.5;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__map-inner {
  text-align: center;
  color: var(--blue-mid);
}

.contact__map-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-xs);
  stroke-width: 1;
  color: var(--blue);
}

.contact__map-inner p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--blue-deep);
  margin-bottom: 0.25rem;
}

.contact__map-inner span {
  font-size: 0.8rem;
  color: var(--stone);
}

/* Form */
.contact__form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 2px 24px hsla(220, 20%, 12%, 0.07);
}

.reservation-form {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form__group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: hsla(35, 15%, 55%, 0.65);
  font-size: 0.72rem;
}

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

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--charcoal);
  background: var(--ivory);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.form__group select {
  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='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px hsla(210, 55%, 42%, 0.12);
}

.form__group textarea {
  resize: vertical;
  min-height: 90px;
}

/* Input with icon */
.input__icon-wrap {
  position: relative;
}

.input__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--stone);
  pointer-events: none;
  stroke-width: 1.5;
}

.input__icon-wrap input,
.input__icon-wrap select {
  padding-left: 2.5rem;
}

.form__success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--blue-light);
  border: 1px solid hsla(210, 55%, 42%, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  animation: fadeInUp 0.4s var(--ease-out);
}

.form__success p {
  font-size: 0.9rem;
  color: var(--blue-deep);
  line-height: 1.55;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--ink);
  color: hsla(0,0%,100%,0.55);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 300;
  color: white;
  letter-spacing: 0.03em;
}

.footer__tagline {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.2rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--space-md);
  justify-content: center;
}

.footer__nav a {
  font-size: 0.8rem;
  color: hsla(0,0%,100%,0.45);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--gold-light); }

.footer__copy {
  font-size: 0.78rem;
  line-height: 1.8;
}

.footer__fiction {
  display: block;
  color: hsla(0,0%,100%,0.28);
  font-size: 0.72rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-in,
.fade-up {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up {
  transform: translateY(28px);
}

.fade-in.visible,
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay via CSS custom property */
.fade-up[style*="--delay"] {
  transition-delay: var(--delay, 0s);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --space-xl: 4.5rem;
    --space-lg: 2.5rem;
  }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

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

  .horaires__row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.5rem;
  }

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

  .contact__form-wrap {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .menu__grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: clamp(2.8rem, 14vw, 5rem);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; transform: scale(1); }
  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__content .btn { animation: none; opacity: 1; }
  .fade-in, .fade-up { transition: none; opacity: 1; transform: none; }
}
