/* =========================================================
   Le Galion — carte numérique
   Identité héritée de l'export Muse 2018, refonte 2026
   pour la lisibilité et la maintenabilité.
   ========================================================= */

@font-face {
  font-family: "Foco";
  src: url("fonts/foco-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rift Soft";
  src: url("fonts/rift_soft_bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.10);
  --accent: #d4a85a;             /* doré discret pour les prix */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Foco", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  padding-bottom: calc(40px + var(--safe-bottom));
}

a { color: inherit; }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(20px + var(--safe-top)) 24px 32px;
  overflow: hidden;
}

.hero__facebook {
  align-self: center;
  margin-bottom: 8px;
  width: 32px;
  height: 28px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.hero__facebook:hover { opacity: 1; }
.hero__facebook img { width: 100%; height: 100%; display: block; }

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 12px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__boat {
  width: 78%;
  max-width: 240px;
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.04));
}

.hero__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 290px;
  height: auto;
}

.hero__lang {
  margin-top: 22px;
}

/* ---------- Sélecteur de langue (chips compacts) ---------- */

.lang-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(212, 168, 90, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.lang-switcher__btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  min-width: 32px;
}

.lang-switcher__btn:hover { color: var(--fg); }

.lang-switcher__btn.is-active {
  background: var(--accent);
  color: var(--bg);
}

.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- LAYOUT ---------- */

main {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  scroll-margin-top: 84px; /* compense la hauteur du nav sticky */
  padding: 48px 24px;
  /* étend le fond au-delà du padding du main pour pouvoir alterner les couleurs */
  margin: 0 -24px;
}

/* Alternance de fond : une section sur deux en gris-noir très léger,
   pour aider l'œil à scanner verticalement entre les sections. */
.section:nth-of-type(even):not(.section--formula) {
  background: rgba(255, 255, 255, 0.025);
}

/* La section formule (Menu Enfant) a son propre encadré, on retire son padding */
.section--formula {
  padding: 56px 24px 32px;
}

/* ---------- SECTION NAV (sticky chips) ---------- */

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.section-nav__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 24px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.section-nav__list::-webkit-scrollbar { display: none; }

.section-nav__item {
  flex-shrink: 0;
  scroll-snap-align: center;
}

.section-nav__link {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.section-nav__link:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.4);
}

.section-nav__link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

@media (min-width: 720px) {
  .section-nav__link { font-size: 16px; padding: 13px 24px; }
  /* Sur écrans larges, les pastilles tiennent toutes : on les centre.
     Sur mobile on garde flex-start pour préserver le scroll horizontal. */
  .section-nav__list { justify-content: center; }
}

.section__title {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 7vw, 38px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 28px;
  line-height: 1;
}

.section__note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: -16px 0 24px;
}

/* ---------- ITEMS ---------- */

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.item:last-child { border-bottom: none; }

.item__name {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

.item__desc {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

.item__price {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Symbole € en exposant : présent partout (item, drink, formula, subsection).
   Une seule règle unifiée — surélevé modérément, plus aligné avec les chiffres. */
.item__price sup,
.drink__price sup,
.drink__sizes sup,
.formula__price sup,
.subsection__price sup {
  font-size: 0.65em;
  vertical-align: 0.25em; /* moins extrême que "top" : € à mi-hauteur */
  margin-left: 1px;
  font-weight: 700;
}

/* ---------- FORMULA (Menu Enfant) ---------- */

.formula {
  border: 1px solid rgba(212, 168, 90, 0.35);  /* doré discret */
  border-radius: 24px;
  padding: 32px 24px 28px;
  text-align: center;
  background: rgba(212, 168, 90, 0.04);
}

.formula__title {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 7vw, 38px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1;
}

.formula__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.formula__price {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-size: 36px;
  color: var(--accent);
  display: block;
  margin: 22px 0 18px;
  letter-spacing: 0.02em;
}

.formula__group {
  margin: 12px 0;
}

.formula__starter {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.formula__choices {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.formula__choices li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.formula__choices li:first-child::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 700;
}

.formula__choices li:not(:first-child)::before {
  content: "ou ";
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 2px;
}
/* « ou » traduit selon la langue choisie (html lang mis à jour par menu.js) */
html[lang="en"] .formula__choices li:not(:first-child)::before { content: "or "; }
html[lang="es"] .formula__choices li:not(:first-child)::before,
html[lang="it"] .formula__choices li:not(:first-child)::before { content: "o "; }
html[lang="de"] .formula__choices li:not(:first-child)::before { content: "oder "; }
html[lang="nl"] .formula__choices li:not(:first-child)::before { content: "of "; }

/* ---------- SUB-SECTIONS (coupes 1/2/3 boules) ---------- */

.subsection {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.subsection__title {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--muted);
}

.subsection__price {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-size: 17px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- ADDONS (suppléments / accompagnements) ---------- */

.addons {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

/* ---------- FLAVORS ---------- */

.flavors {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.flavors__group {
  margin: 16px 0;
}

.flavors__label {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.flavors__list {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- DRINKS (Boissons) ---------- */

.drinks-group {
  margin: 36px 0;
}

.drinks-group:first-of-type { margin-top: 8px; }

.drinks-group__title {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 168, 90, 0.25);
}

.drinks-group__subtitle {
  margin: -2px 0 10px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.drink {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.drink:last-child { border-bottom: none; }

.drink__name {
  font-size: 15px;
  line-height: 1.3;
}

.drink__price {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Règle .drink fusionnée plus haut avec les autres prix. */

.drink__desc {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Multi-tailles : une bière 25cl/50cl, une eau 50cl/1L, un vin 50cl/75cl */
.drink__sizes {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.drink__size {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.drink__size strong {
  font-family: "Rift Soft", "Impact", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  margin-left: 4px;
}

@media (min-width: 720px) {
  .drink__name { font-size: 16px; }
  .drink__price { font-size: 17px; }
}

/* ---------- FOOTER ---------- */

.footer {
  max-width: 540px;
  margin: 56px auto 0;
  padding: 32px 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p { margin: 4px 0; }

.footer__pdf {
  margin-top: 16px;
  font-size: 12px;
}

.footer__pdf a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 168, 90, 0.4);
  padding-bottom: 1px;
}

.footer__pdf a:hover { border-bottom-color: var(--accent); }

.footer__credit {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer__credit a { color: var(--accent); text-decoration: none; }

/* ---------- LOADING / EMPTY STATE ---------- */

.loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- RESPONSIVE TWEAKS ---------- */

@media (min-width: 720px) {
  main { max-width: 600px; }
  .footer { max-width: 600px; }
  body { font-size: 18px; }
  .item__name { font-size: 19px; }
  .item__price { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- MENTIONS + SIGNATURE PAPER34 (kit) ---------- */
.footer { position: relative; padding-bottom: calc(24px + var(--safe-bottom)); }
.footer__legal { margin-top: 16px; }
.footer__legal a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__legal a:hover { color: var(--fg); }
.footer-fumee { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.footer-paper34 { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; min-height: 44px; }
.footer-paper34 img { height: 14px; width: auto; display: block; }
