/* La Muscade — le port de Sanary en vraies photos, un lettrage d'affiche, et la carte qui se lit sous l'eau. */
@font-face {
  font-family: "Yeseva One";
  src: url("fonts/yeseva-one.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Oleo Script";
  src: url("fonts/oleo-script-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --azur: #2d9cc4;
  --sable: #fbecc0;
  --ecume: #fbf7ee;
  --encre: #10283f;
  --encre-douce: #4a5f73;
  --mer: #1b5e94;
  --mer-claire: #3f86bd;
  --abysse: #0b2238;
  --mer-de-nuit: #0f3050;
  --vermillon: #d43d2a;
  --vermillon-fonce: #b22f1f;
  --soleil: #f2b632;
  --laiton: #d9a441;

  --titres: "Yeseva One", Georgia, serif;
  --peint: "Oleo Script", "Brush Script MT", cursive; /* comme un nom peint sur une coque */
  --texte: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --geant: clamp(3.1rem, 12.5vw, 10rem);
  --titre: clamp(2.5rem, 6vw, 4.25rem);
  --sous-titre: 1.625rem;

  --marge: clamp(20px, 5vw, 72px);
  --largeur: 1180px;
  --bord: max(var(--marge), calc((100vw - var(--largeur)) / 2));
  --souffle: clamp(72px, 10vw, 136px);

  --vague: 160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--titres);
  font-weight: 400;
  line-height: 1.05;
}
h2 { font-size: var(--titre); }
h3 { font-size: var(--sous-titre); }

p { margin: 0 0 1em; max-width: 62ch; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
address { font-style: normal; margin-bottom: 1em; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 2px; }

.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--encre);
  color: var(--ecume);
  z-index: 10;
}
.evitement:focus { top: 12px; }

.chapeau { font-size: 1.3125rem; line-height: 1.45; max-width: 34ch; }
.note { font-size: 0.9375rem; color: var(--encre-douce); }

.lien {
  text-decoration: underline;
  text-decoration-color: var(--vermillon);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-weight: 500;
}
.lien:hover { color: var(--vermillon-fonce); }

.bouton {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--vermillon);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--encre);
  transition: transform 0.12s, box-shadow 0.12s;
}
.bouton:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--encre); }
.bouton--petit { padding: 9px 18px; font-size: 0.9375rem; box-shadow: 0 3px 0 var(--encre); }

.photo { width: 100%; height: 100%; object-fit: cover; }

/* Les photos du restaurant, posées comme des cartes postales */
.carte-postale {
  border: 9px solid #fff;
  border-radius: 2px;
  box-shadow: 0 14px 28px rgb(16 40 63 / 0.22);
}

/* Les vagues : une frise qui se répète et avance doucement */
.vagues {
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28' preserveAspectRatio='none'%3E%3Cpath d='M0,14 Q40,0 80,14 T160,14 V28 H0 Z' fill='%231b5e94'/%3E%3C/svg%3E") repeat-x 0 0 / var(--vague) 28px;
  animation: houle 9s linear infinite;
}
.vagues--loin {
  margin-bottom: -18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28' preserveAspectRatio='none'%3E%3Cpath d='M0,14 Q40,0 80,14 T160,14 V28 H0 Z' fill='%233f86bd'/%3E%3C/svg%3E");
  animation-duration: 15s;
  animation-direction: reverse;
}
.vagues--nuit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28' preserveAspectRatio='none'%3E%3Cpath d='M0,14 Q40,0 80,14 T160,14 V28 H0 Z' fill='%230b2238'/%3E%3C/svg%3E");
  transform: scaleY(-1);
}
@keyframes houle { to { background-position-x: var(--vague); } }

/* Accueil : l'affiche. La vraie photo du port, le nom dans son ciel. */
.affiche {
  position: relative;
  z-index: 0;
  min-height: min(92vh, 900px);
  color: var(--ecume);
}
.accueil__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  z-index: -2;
}
/* La gauche et le haut de la photo sont foncés pour que le texte se lise ; la droite reste intacte. */
.affiche::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(11 34 56 / 0.78) 0%, rgb(11 34 56 / 0.5) 34%, rgb(11 34 56 / 0) 66%),
    linear-gradient(180deg, rgb(11 34 56 / 0.5) 0%, rgb(11 34 56 / 0) 40%);
  z-index: -1;
}

.entete {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--bord);
}
.entete__nom {
  font-family: var(--peint);
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
}
.entete__nav { display: flex; gap: 26px; }
.entete__nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.entete__nav a:hover { border-color: var(--ecume); }

.accueil__texte { padding: clamp(16px, 3.4vw, 44px) var(--bord) 0; }
.affiche h1 {
  font-size: var(--geant);
  line-height: 0.92;
  text-shadow: 0.035em 0.04em 0 var(--encre);
}
.accueil__lieu {
  margin: 0.15em 0 0 0.12em;
  max-width: none;
  font-family: var(--peint);
  font-size: clamp(1.75rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  color: #ffe9a3;
  text-shadow: 0.04em 0.05em 0 var(--encre);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.accueil__phrase {
  margin: 24px 0 0;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 34ch;
  text-shadow: 0 1px 10px rgb(11 34 56 / 0.7);
}
.accueil__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 24px;
}
.affiche .lien { font-weight: 600; text-decoration-color: var(--ecume); text-shadow: 0 1px 10px rgb(11 34 56 / 0.7); }
.affiche .lien:hover { color: #ffe9a3; }

/* Bandeau du jour, dans l'eau du port */
.aujourdhui {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 28px;
  padding: 20px var(--bord) 30px;
  background: var(--mer);
  color: var(--ecume);
}
.aujourdhui p { margin: 0; }
.aujourdhui__statut { font-family: var(--peint); font-size: 1.875rem; line-height: 1.2; color: #ffe9a3; }
.aujourdhui__detail { opacity: 0.9; }
.aujourdhui__lien { margin-left: auto; font-weight: 500; text-underline-offset: 5px; }

/* La maison, sur le sable */
.maison {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: calc(var(--souffle) - 30px) var(--bord) calc(var(--souffle) - 40px);
}
.maison__devanture {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: 50% 42%;
  border-width: 12px;
  margin-bottom: clamp(8px, 2vw, 28px);
}
.maison h2 { margin-bottom: 28px; }
.maison__photos {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}
.maison__photos .photo { aspect-ratio: 4 / 3; height: auto; }
.maison__photos .photo:nth-child(1) { transform: rotate(-2.2deg); }
.maison__photos .photo:nth-child(2) { transform: rotate(1.6deg) translateY(18px); }
.maison__photos .photo:nth-child(3) { transform: rotate(1.2deg); }
.maison__photos .photo:nth-child(4) { transform: rotate(-1.4deg) translateY(14px); }

/* La plongée : la surface de l'eau, puis on descend */
.plongee { padding-top: 40px; overflow: hidden; }

/* La carte, sous l'eau */
.carte {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mer) 0%, #154a78 30%, var(--abysse) 100%);
  color: var(--ecume);
  padding: calc(var(--souffle) - 30px) var(--bord) calc(var(--souffle) + 110px);
}
.carte::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: url("img/herbier.svg") repeat-x left bottom / 480px 130px;
  z-index: -1;
}
.faune {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.faune img {
  position: absolute;
  top: var(--haut);
  left: 100%;
  width: var(--taille);
  opacity: 0.42;
  animation: nage var(--duree) linear infinite;
  animation-delay: var(--depart);
}
@keyframes nage { to { transform: translateX(calc(-100vw - 320px)); } }
.faune .faune__poulpe {
  top: auto;
  left: auto;
  right: 5%;
  bottom: 26px;
  width: 128px;
  opacity: 0.9;
  animation: flotte 5s ease-in-out infinite alternate;
}
@keyframes flotte {
  from { transform: translateY(-6px) rotate(-3deg); }
  to { transform: translateY(6px) rotate(3deg); }
}

.carte__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 44px;
}
.carte__tete p { margin: 0; opacity: 0.85; }

/* Les formules : la carte posée sur la table */
.formules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(28px, 5vw, 72px);
  padding: 36px clamp(22px, 4vw, 52px) 34px;
  background: var(--ecume);
  color: var(--encre);
  border-radius: 4px;
  border-top: 10px solid var(--vermillon);
  box-shadow: 0 18px 40px rgb(5 20 36 / 0.35);
}
.formule h3 { font-size: 2rem; }
.formule__contenu { margin: 6px 0 16px; color: var(--encre-douce); }
.formule__prix { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-bottom: 10px; }
.formule__prix dt { font-size: 0.9375rem; color: var(--encre-douce); }
.formule__prix dd {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--vermillon);
}
.formule .note { margin: 0; }
.formule__choix {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px clamp(24px, 4vw, 56px);
  margin-top: 26px;
  padding-top: 24px;
  border-top: 2px dashed rgb(16 40 63 / 0.25);
}
.formule__choix h4 {
  font-family: var(--peint);
  font-size: 1.375rem;
  color: var(--mer);
  margin-bottom: 6px;
}
.formule__choix li { line-height: 1.4; padding: 4px 0; }

/* Les photos des assiettes, vues par des hublots */
.hublots {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  margin: 64px 0 8px;
}
.hublot {
  width: min(27vw, 230px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid var(--laiton);
  outline: 3px solid #8f6a1f;
  outline-offset: -13px;
  box-shadow: 0 0 0 4px #8f6a1f, 0 16px 30px rgb(5 20 36 / 0.5);
}
.hublot:nth-child(2) { margin-top: 44px; }

.rubriques {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px clamp(32px, 6vw, 88px);
  margin-top: 64px;
}
.rubrique--large { grid-column: 1 / -1; }
.rubrique h3 {
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid rgb(251 247 238 / 0.3);
}

.plats li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  padding: 10px 0;
}
.plat__nom { flex: 1 1 0; min-width: 0; }
.plat__nom small { font-size: 0.875rem; opacity: 0.75; margin-left: 4px; white-space: nowrap; }
.plat__prix {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  color: var(--soleil);
}
.plat__prix--texte { font-weight: 400; font-size: 0.9375rem; }
.plat__detail { flex-basis: 100%; font-size: 0.9375rem; opacity: 0.78; max-width: 56ch; }

.rubrique--large .plats { columns: 2; column-gap: clamp(32px, 6vw, 88px); }
.rubrique--large .plats li { break-inside: avoid; }

.boissons { margin-top: 64px; border-top: 2px solid rgb(251 247 238 / 0.3); }
.boissons summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--titres);
  font-size: var(--sous-titre);
  cursor: pointer;
  list-style: none;
}
.boissons summary::-webkit-details-marker { display: none; }
.boissons summary::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 3px solid var(--soleil);
  border-bottom: 3px solid var(--soleil);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.boissons[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.rubriques--boissons { margin-top: 24px; }
.rubriques--boissons h3 { font-size: 1.3125rem; }

/* Réserver : on reste dans le bleu profond, avec les photos de la salle et du bar à vin */
.soir {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: calc(var(--souffle) - 50px) var(--bord) var(--souffle);
  background: var(--abysse);
  color: var(--ecume);
}
.soir h2 { margin-bottom: 20px; }
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  margin: 30px 0;
}
.services dt { font-family: var(--peint); font-size: 1.5rem; color: #ffe9a3; }
.services dd {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.services dd span { font-size: 1rem; font-weight: 400; opacity: 0.75; margin: 0 4px; }
.soir .bouton { margin-top: 10px; box-shadow: 0 4px 0 #050f1a; }
.soir__photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: center; }
.soir__photos .photo { height: auto; }
.soir__photos .photo:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; transform: rotate(-1.2deg); }
.soir__photos .photo:nth-child(2) { aspect-ratio: 4 / 3; transform: rotate(1.6deg); }
.soir__photos .photo:nth-child(3) { aspect-ratio: 4 / 3; transform: rotate(-2deg) translateY(8px); }

.rivage { background: var(--sable); }

/* Venir, le lendemain matin sur le sable */
.venir { padding: calc(var(--souffle) - 40px) var(--bord) var(--souffle); }
.venir h2 { margin-bottom: 40px; }
.venir__colonnes {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px clamp(28px, 4vw, 56px);
  align-items: start;
}
.venir__photo { aspect-ratio: 3 / 4; height: auto; transform: rotate(2deg); }
.venir__bloc h3 { margin-bottom: 16px; }
.venir__bloc p { margin-bottom: 0.6em; }

.horaires { width: 100%; border-collapse: collapse; }
.horaires th,
.horaires td { padding: 9px 0; text-align: left; font-weight: 400; border-bottom: 1px solid rgb(16 40 63 / 0.18); }
.horaires th { width: 7.5em; }
.horaires td { font-variant-numeric: tabular-nums; }
.horaires tr.est-aujourdhui th,
.horaires tr.est-aujourdhui td { font-weight: 700; }
.horaires tr.est-aujourdhui th::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--vermillon);
}

/* Pied de page : la mer */
.pied {
  position: relative;
  margin-top: 60px;
  background: var(--mer);
  color: var(--ecume);
  padding: 44px var(--marge) 48px;
  text-align: center;
}
.vagues--pied { position: absolute; left: 0; right: 0; top: -27px; }
.pied p { margin: 0 auto 4px; }
.pied__nom { font-family: var(--titres); font-size: 2.25rem; line-height: 1.1; }
.pied .pied__lieu { font-family: var(--peint); font-size: 1.375rem; color: #ffe9a3; margin-bottom: 14px; }
.pied a { text-underline-offset: 4px; }

@media (max-width: 860px) {
  .maison,
  .soir { grid-template-columns: 1fr; }
  .venir__colonnes { grid-template-columns: 1fr 1fr; }
  .venir__bloc:first-child { grid-column: 1 / -1; }
  .venir__photo { grid-row: span 2; }
  .rubriques { grid-template-columns: 1fr; }
  .rubrique--large .plats { columns: 1; }
  .formule__choix { grid-template-columns: 1fr; }
  .faune img { opacity: 0.26; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .entete { gap: 12px 16px; flex-wrap: wrap; }
  .entete__nav { order: 3; width: 100%; gap: 22px; }
  .formules { grid-template-columns: 1fr; gap: 28px; }
  .venir__colonnes { grid-template-columns: 1fr; }
  .venir__photo { max-width: 240px; }
  .aujourdhui__lien { margin-left: 0; }
  .affiche { min-height: 88vh; }
  .affiche::before { background: linear-gradient(180deg, rgb(11 34 56 / 0.8) 0%, rgb(11 34 56 / 0.62) 46%, rgb(11 34 56 / 0) 78%); }
  .accueil__photo { object-position: 34% 50%; }
  .hublot { border-width: 7px; outline-offset: -9px; }
  .maison__devanture { border-width: 7px; aspect-ratio: 4 / 3; }
  .hublot:nth-child(2) { margin-top: 28px; }
  .faune .faune__poulpe { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .faune img { left: var(--x); }
}
