/* ===================================================================
   Le Wave — Restaurant de plage, Saint-Aygulf
   Palette bord de mer : sable / blanc / bleu Méditerranée
   =================================================================== */

:root {
  --sand-50:  #faf6ef;
  --sand-100: #f3ece0;
  --sand-200: #e7dcc8;
  --sand-300: #d8c7a8;
  --ink:      #2b2a26;
  --ink-soft: #5f5c53;
  --sea:      #2f7d92;
  --sea-deep: #1f5a6b;
  --sea-pale: #e4f0f1;
  --white:    #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --max: 1160px;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(31, 90, 107, 0.35);
}

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

/* Accessibilité / SEO : texte lisible par Google et les lecteurs d'écran,
   masqué visuellement — n'affecte pas le design. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
  letter-spacing: .01em;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn--primary {
  background: var(--white);
  color: var(--sea-deep);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0,0,0,.55); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,.85);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.1rem, 4vw, 3rem);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.is-scrolled {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  padding-top: .7rem; padding-bottom: .7rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav__logo {
  width: auto;
  height: 54px;
  /* Logo noir : rendu blanc par-dessus la photo du hero… */
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.35));
  transition: height .35s ease, filter .35s ease;
}
/* …puis noir une fois la nav passée en fond clair au scroll */
.nav.is-scrolled .nav__logo { filter: none; height: 44px; }

/* Nav toujours « solide » (pages sans hero, ex. mentions légales) */
.nav--solid {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav--solid .nav__logo { filter: none; height: 44px; }
.nav--solid .nav__links a { color: var(--ink-soft); }
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.nav__links a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  transition: color .35s ease, opacity .2s ease;
}
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:hover { opacity: .65; }
@media (max-width: 560px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 2rem 1.2rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,52,62,.42) 0%, rgba(20,52,62,.28) 40%, rgba(20,52,62,.62) 100%);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .72rem;
  font-weight: 600;
  margin: 0 0 .6rem;
  opacity: .9;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 14vw, 8.5rem);
  line-height: .95;
  margin: 0;
  letter-spacing: .01em;
  text-shadow: 0 4px 40px rgba(0,0,0,.35);
}
.hero__baseline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  margin: 1rem 0 2rem;
  opacity: .95;
}
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute;
  bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0);} 40%{opacity:1;} 80%{opacity:0;transform:translateY(12px);} 100%{opacity:0;} }

/* ---------- Intro ---------- */
.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.4rem;
  text-align: center;
}
.intro__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  line-height: 1.45;
  color: var(--sea-deep);
  margin: 0;
}

/* ---------- Section scaffolding ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 3rem);
}
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--sea);
  margin: 0 0 .7rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
.section__lead { margin: 1rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Menu ---------- */
.menu {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 720px) { .menu { columns: 1; } }

.menu-cat {
  break-inside: avoid;
  margin: 0 0 2.6rem;
  padding: 0;
}
.menu-cat__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--sea-deep);
  margin: 0 0 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--sand-200);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
}
.menu-cat__price-tag {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--sea);
  padding: .15rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.menu-cat__note {
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: -.5rem 0 1rem;
}
.menu-cat--feature {
  background: var(--sea-pale);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.menu-cat--feature .menu-cat__title { border-bottom-color: rgba(47,125,146,.25); }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { margin: 0 0 1.05rem; }
.menu-item:last-child { margin-bottom: 0; }
.menu-item__head {
  display: flex;
  align-items: baseline;
  gap: .4rem;
}
.menu-item__name { font-weight: 600; font-size: 1rem; color: var(--ink); }
.menu-item__dots {
  flex: 1;
  border-bottom: 1px dotted var(--sand-300);
  transform: translateY(-3px);
  min-width: 12px;
}
.menu-item__price { font-weight: 600; font-size: .95rem; color: var(--sea); white-space: nowrap; }
.menu-item__desc {
  margin: .2rem 0 0;
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.menu-list--plain .menu-item__name { font-weight: 500; }

.menu-footnote {
  max-width: 760px;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
}

/* ---------- Galerie ---------- */
.galerie { background: var(--sand-100); max-width: none; }
.galerie > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall { grid-row: span 2; }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--tall { grid-row: span 1; }
}

/* ---------- Avis Google ---------- */
.avis { background: var(--sand-100); max-width: none; }
.avis > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.avis-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  box-shadow: var(--shadow);
}
.avis-card__stars { color: #e6a817; letter-spacing: .12em; font-size: 1rem; }
.avis-card__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}
.avis-card__author {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.avis-card__name { font-weight: 600; font-size: .92rem; color: var(--sea-deep); }
.avis-card__when { font-size: .8rem; color: var(--ink-soft); }
.avis-source {
  text-align: center;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  gap: 1rem 1.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.avis-source a { color: var(--sea); text-decoration: none; font-weight: 500; }
.avis-source a:hover { text-decoration: underline; }
.avis-cta {
  background: var(--sea);
  color: var(--white) !important;
  padding: .7rem 1.4rem;
  border-radius: 999px;
}
.avis-cta:hover { background: var(--sea-deep); text-decoration: none !important; }

/* ---------- Infos ---------- */
.infos__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .infos__grid { grid-template-columns: 1fr; } }

.infos__cards { display: grid; gap: 1rem; }
.info-card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.info-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 .5rem;
  color: var(--sea-deep);
}
.info-card p { margin: 0; color: var(--ink-soft); }
.info-card a { color: var(--sea); text-decoration: none; font-weight: 500; }
.info-card a:hover { text-decoration: underline; }
.info-card__link { display: inline-block; margin-top: .7rem; }
.info-card__social { display: flex; gap: 1.2rem; margin-top: .9rem; }
.info-card__social a { font-weight: 600; }

.infos__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
  height: 100%;
}
.infos__map iframe { width: 100%; height: 100%; min-height: 340px; display: block; }

/* ---------- Page légale ---------- */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 8rem) clamp(1.2rem, 5vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}
.legal__back, .legal__back-bottom a {
  color: var(--sea);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
}
.legal__back:hover, .legal__back-bottom a:hover { text-decoration: underline; }
.legal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 1.2rem 0 .4rem;
  color: var(--ink);
}
.legal__updated { color: var(--ink-soft); font-size: .9rem; margin: 0 0 2.5rem; }
.legal__block { margin: 0 0 2.2rem; }
.legal__block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--sea-deep);
  margin: 0 0 .7rem;
}
.legal__block p { margin: 0 0 .9rem; color: var(--ink-soft); }
.legal__block a { color: var(--sea); }
.legal__back-bottom { margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--sea-deep);
  color: rgba(255,255,255,.85);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem) 1.8rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0;
  color: var(--white);
}
.footer__tagline { margin: .3rem 0 0; font-size: .9rem; opacity: .8; }
.footer__address {
  font-style: normal;
  margin: .7rem 0 0;
  font-size: .85rem;
  line-height: 1.6;
  opacity: .8;
  max-width: 34ch;
}
.footer__address a { color: inherit; text-decoration: none; }
.footer__address a:hover { text-decoration: underline; }
.footer__social { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__social a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: opacity .2s ease;
}
.footer__social a:hover { opacity: .6; }
.footer__bottom {
  max-width: var(--max);
  margin: 1.4rem auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  opacity: .75;
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }
