/* La Bouteille à la Mer — maquette de démonstration
   Base : jetons de la fiche Refero « Miti Navi » (papier + encre, arche, liens soulignés, onglet vertical),
   transformés : palette marine/rhum, polices IM Fell English + Karla + DM Mono, hublot, vagues, carte au trésor. */

@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/imfell-400.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/imfell-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/karla-var.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dmmono-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dmmono-500.woff2") format("woff2"); }

:root {
  /* Colors (Miti Navi : linen / deep-ink / carbon / soft-ash / apricot → parchemin / abysse / carbone / brume / rhum) */
  --color-parchment: #e9dfc6;
  --color-parchment-deep: #ddd0b0;
  --color-abyss: #0b2b3a;
  --color-abyss-soft: #123d50;
  --color-carbon: #1d2f38;
  --color-mist: #4a5d64;
  --color-rum: #d98a3d;
  --color-rum-text: #8a4a10;
  --color-rum-on-dark: #eaa95f;
  --color-verdigris: #2c7a74;
  --color-foam: #f6f0df;

  /* Typography — Font Families */
  --font-display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Typography — Scale (échelle de la fiche, réduite pour mobile) */
  --text-caption: 0.75rem;
  --tracking-caption: 0.07em;
  --text-eyebrow: 0.8125rem;
  --tracking-eyebrow: 0.28em;
  --text-body: 1.0625rem;
  --text-body-lg: 1.1875rem;
  --text-subheading: 1.625rem;
  --text-heading: clamp(2.25rem, 6vw, 2.875rem);
  --text-heading-lg: clamp(2.75rem, 8vw, 4.5rem);
  --text-display: clamp(3.2rem, 10vw, 5.6rem);
  --leading-display: 0.92;
  --leading-heading: 0.98;

  /* Spacing */
  --spacing-unit: 4px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-60: 60px;

  /* Layout */
  --page-max-width: 1200px;
  --gutter: 16px;
  --section-gap: 72px;
  --card-padding: 24px;
  --element-gap: 16px;

  /* Radii : angles vifs comme la fiche ; l'arche et le hublot sont les seules courbes */
  --radius-cards: 0;
  --radius-buttons: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-parchment);
  color: var(--color-abyss);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-verdigris); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--page-max-width); margin: 0 auto; padding: 0 var(--gutter); }

/* Bandeau démo */
.demo-bar {
  background: var(--color-abyss); color: var(--color-parchment);
  font-family: var(--font-mono); font-size: var(--text-caption); letter-spacing: var(--tracking-caption);
  text-align: center; padding: 8px var(--gutter);
}

/* Lien souligné : seul style d'action de la fiche (soulignement fin couleur accent) */
.link {
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--color-abyss);
  border-bottom: 2px solid var(--color-rum); padding-bottom: 4px; display: inline-block;
}
.link:hover { border-bottom-color: var(--color-abyss); }
.link--light { color: var(--color-parchment); }
.link--light:hover { border-bottom-color: var(--color-parchment); }

/* En-tête en trois blocs, enseigne au centre */
.site-header {
  position: sticky; top: 0; z-index: 30; background: var(--color-parchment);
  border-bottom: 1px solid rgba(11, 43, 58, 0.22);
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 12px; }
.nav-side { display: none; gap: 22px; }
.nav-side--right { justify-content: flex-end; }
.nav-side a {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-side a:hover, .nav-side a[aria-current="true"] { border-bottom-color: var(--color-rum); }
.wordmark { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; text-decoration: none; text-align: center; white-space: nowrap; }
.wordmark em { font-style: italic; color: var(--color-rum-text); }
.menu-btn {
  justify-self: start; background: none; border: 1px solid var(--color-abyss); color: var(--color-abyss);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 12px; cursor: pointer;
}
.header-call { justify-self: end; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-decoration: none; border-bottom: 2px solid var(--color-rum); padding-bottom: 2px; }
.mobile-nav { display: none; background: var(--color-abyss); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 16px var(--gutter); color: var(--color-parchment); font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-top: 1px solid rgba(233, 223, 198, 0.18); }

/* Onglet vertical (composant de la fiche), bord droit, texte pivoté */
.side-tab {
  display: none; position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 20;
  background: var(--color-abyss); color: var(--color-parchment); width: 28px; padding: 18px 0; text-align: center;
}
.side-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }

/* Hero */
.hero { padding: 40px 0 var(--section-gap); }
.hero .wrap { display: grid; gap: 40px; }
.eyebrow { font-family: var(--font-mono); font-size: var(--text-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-rum-text); margin: 0 0 20px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-display); line-height: var(--leading-display); margin: 0 0 28px; letter-spacing: -0.01em; }
.hero h1 em { color: var(--color-rum-text); }
.lead { font-size: var(--text-body-lg); max-width: 34ch; margin: 0 0 28px; color: var(--color-carbon); }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em;
}
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-verdigris); flex: none; }
.status[data-open="yes"] i { background: var(--color-verdigris); box-shadow: 0 0 0 4px rgba(44, 122, 116, 0.25); }
.status[data-open="no"] i { background: var(--color-rum); }
.arch { width: 100%; max-width: 440px; margin: 0 auto; }
.arch svg { width: 100%; height: auto; }

/* Bandes de vagues */
.waves { display: block; width: 100%; height: 48px; }
.band-dark { background: var(--color-abyss); color: var(--color-parchment); }

/* Sections */
section { padding: var(--section-gap) 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-heading); line-height: var(--leading-heading); margin: 0; }
.section-head .rule { width: 56px; height: 1px; background: currentColor; margin: 22px auto 0; opacity: 0.7; }
.section-head p { margin: 18px auto 0; color: var(--color-mist); max-width: 52ch; }
.band-dark .section-head p { color: rgba(233, 223, 198, 0.82); }

/* Histoire / adresse */
.story { display: grid; gap: 40px; padding-bottom: var(--section-gap); }
.story h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-heading-lg); line-height: 0.95; margin: 0 0 22px; }
.story h2 em { color: var(--color-rum-on-dark); }
.story p { margin: 0 0 16px; max-width: 54ch; color: rgba(233, 223, 198, 0.9); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-self: center; }
.facts li { padding: 18px 0; border-top: 1px solid rgba(233, 223, 198, 0.28); display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.facts li:last-child { border-bottom: 1px solid rgba(233, 223, 198, 0.28); }
.facts b { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-rum-on-dark); padding-top: 4px; }
.rating-note { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--color-rum-on-dark); margin-top: 28px; }

/* Carte */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 0 40px; padding: 0; list-style: none; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; padding: 8px 0;
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-abyss);
}
.tabs button[aria-selected="true"] { border-bottom-color: var(--color-rum); }
.tabs button:hover { border-bottom-color: var(--color-abyss); }
.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 56px; }
.js .panel + .panel { margin-top: 0; }
.panel h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-subheading); margin: 40px 0 4px; display: flex; align-items: center; gap: 14px; }
.panel h3:first-of-type { margin-top: 0; }
.panel h3::after { content: ""; flex: 1; height: 1px; background: rgba(11, 43, 58, 0.35); }
.panel .sub { color: var(--color-mist); font-size: 0.9375rem; margin: 0 0 8px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 56px; }
.dish { padding: 16px 0; border-bottom: 1px dotted rgba(11, 43, 58, 0.45); display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; align-items: baseline; }
.dish .n { font-weight: 700; font-size: 1.0625rem; }
.dish .p { font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.dish .d { grid-column: 1 / -1; color: var(--color-mist); font-size: 0.9375rem; line-height: 1.4; }
.note-card { margin-top: 36px; border: 1px solid var(--color-abyss); padding: var(--card-padding); display: grid; gap: 6px; }
.note-card b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.note-card p { margin: 0; color: var(--color-carbon); }
.fine { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--color-mist); text-align: center; margin: 44px auto 0; max-width: 62ch; }

/* Moussaillon */
.kids { display: grid; gap: 24px; padding: var(--card-padding); border: 1px solid var(--color-abyss); margin-top: 36px; }
.kids h3 { margin: 0; }
.kids h3::after { display: none; }

/* Avis */
.reviews { display: grid; gap: 0; }
.review { margin: 0; padding: 28px 0; border-top: 1px solid rgba(11, 43, 58, 0.3); }
.review:last-child { border-bottom: 1px solid rgba(11, 43, 58, 0.3); }
.review blockquote { margin: 0 0 12px; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.25; }
.review figcaption { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-mist); }
.review-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin: 36px 0 0; }
.review-links .score { font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 500; }
.book { border: 1px solid var(--color-abyss); padding: var(--card-padding); margin-top: 28px; }
.book b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; display: block; margin-bottom: 6px; }
.book p { margin: 0; }
.book a { font-family: var(--font-mono); text-decoration: none; border-bottom: 2px solid var(--color-rum); }

/* Horaires + venir */
.visit { display: grid; gap: 48px; padding-bottom: var(--section-gap); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(11, 43, 58, 0.3); font-family: var(--font-mono); font-size: 0.9375rem; }
.hours li:last-child { border-bottom: 1px solid rgba(11, 43, 58, 0.3); }
.hours li.today { background: var(--color-parchment-deep); margin: 0 -12px; padding-left: 12px; padding-right: 12px; font-weight: 500; }
.hours .closed { color: var(--color-mist); }
.visit h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-heading); line-height: 1; margin: 0 0 22px; }
.address { font-style: normal; font-size: 1.1875rem; line-height: 1.5; margin-bottom: 24px; }
.address a.tel { font-family: var(--font-mono); font-size: 1.375rem; letter-spacing: 0.02em; text-decoration: none; border-bottom: 2px solid var(--color-rum); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.pills li { border: 1px solid var(--color-abyss); padding: 6px 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Pied de page */
.site-footer { background: var(--color-abyss); color: var(--color-parchment); padding: 48px 0 110px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .wordmark { text-align: left; font-size: 1.75rem; }
.site-footer .wordmark em { color: var(--color-rum-on-dark); }
.site-footer p { margin: 0; font-size: 0.9375rem; color: rgba(233, 223, 198, 0.85); max-width: 70ch; }
.site-footer .demo-note { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: rgba(233, 223, 198, 0.7); }

/* Barre d'appel mobile */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 1px; background: var(--color-parchment);
  border-top: 1px solid var(--color-abyss); padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  flex: 1; text-align: center; padding: 16px 8px; text-decoration: none; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.callbar a:first-child { background: var(--color-abyss); color: var(--color-parchment); }
.callbar a:last-child { color: var(--color-abyss); }

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .review, .review:last-child { border-bottom: 0; }
  .menu-list { grid-template-columns: 1fr 1fr; }
  .facts li { grid-template-columns: 160px 1fr; }
}
@media (min-width: 960px) {
  :root { --gutter: 40px; --section-gap: 112px; }
  .menu-btn, .mobile-nav { display: none !important; }
  .header-call { display: none; }
  .nav-side { display: flex; }
  .site-header .wrap { min-height: 76px; }
  .wordmark { font-size: 2rem; }
  .side-tab { display: block; }
  .callbar { display: none; }
  .site-footer { padding-bottom: 48px; }
  .hero { padding-top: 64px; }
  .hero .wrap { grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 56px; }
  .arch { max-width: 460px; margin: 0 0 0 auto; }
  .story { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .visit { grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 6s ease-in-out infinite; transform-origin: 50% 50%; }
  .drift { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(-14deg); } 50% { transform: translateY(-9px) rotate(-10deg); } }
  @keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bob { transform: rotate(-12deg); } }

/* Zones tactiles : agrandit la cible (44 px) sans changer l'aspect des liens */
.link, .header-call, .address a.tel, .book a, .wordmark { position: relative; }
.link::before, .header-call::before, .address a.tel::before, .book a::before, .wordmark::before {
  content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%);
}

/* Photos d'illustration (libres de droits), une par rubrique de la carte */
.trio-section { padding-top: 8px; padding-bottom: 8px; }
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trio li { position: relative; margin: 0; overflow: hidden; background: var(--color-parchment-deep); }
.trio img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.trio span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-foam); background: linear-gradient(to top, rgba(11, 43, 58, 0.88), rgba(11, 43, 58, 0)); }
.story-side { display: grid; gap: 28px; align-self: center; }
.story-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.shot { margin: 40px 0 0; }
.panel .shot:first-child { margin-top: 0; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--color-parchment-deep); }
.shot + h3 { margin-top: 18px; }
@media (min-width: 960px) {
  .trio { gap: 24px; }
  .trio img { aspect-ratio: 4 / 3; }
  .trio span { font-size: 0.8125rem; padding: 34px 18px 16px; }
  .shot img { aspect-ratio: 21 / 8; }
}

/* Vraies photos du restaurant (portrait, 720 px d'origine) : affichées sans agrandissement excessif */
.shot img.is-real { aspect-ratio: 4 / 3; max-width: 560px; object-position: center; }
@media (min-width: 960px) { .shot img.is-real { aspect-ratio: 4 / 3; } }
