/* La Belle Époque — feuille de style
   Parti pris : la journée sur la marina. Une seule famille de teintes, ivoire, brun chaud et noir, relevée d'or : le fond
   s'assombrit de midi au soir ; un rail horaire à l'échelle porte les trois temps. Tout le reste reste calme. */
:root {
  color-scheme: light;
  --white: #ffffff;
  --stone: #f0ede7;
  --ink: #12100e;
  --ink-soft: #1e1b17;
  --umber: #2a231b;
  --gold: #d9ab68;
  --gold-pale: #edca92;
  --bronze: #7f5f2b;
  --text: #27231f;
  --muted: #645d54;
  --on-dark: #f2ece2;
  --on-dark-muted: #b9b0a2;

  --f-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --f-text: 'Jost', 'Century Gothic', 'Avenir Next', 'Segoe UI', sans-serif;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);

  /* Rôles locaux, redéfinis par chaque bande de couleur */
  --bg: var(--white);
  --fg: var(--text);
  --fg-muted: var(--muted);
  --accent: var(--bronze);
  --rule: rgba(127, 95, 43, .3);
}

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.7rem; line-height: 1.15; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--f-text); font-size: .76rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); line-height: 1.5; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--fg-muted); max-width: 38em; }
.note { font-size: .92rem; color: var(--fg-muted); max-width: 44em; }
.prose { display: grid; gap: 1.1em; max-width: 36em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on-dark); padding: .75rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.link { font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--accent); padding-bottom: .25em; transition: color .2s; }
.link:hover { color: var(--accent); }
.btn { display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; text-align: center; background: var(--ink); color: var(--gold-pale); padding: 1.05rem 1.7rem; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--small { padding: .7rem 1.1rem; font-size: .72rem; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: transparent; color: var(--gold-pale); }

/* Bandes de couleur */
.band { background: var(--bg); color: var(--fg); padding-block: var(--band); }
.band--stone { --bg: var(--stone); }
.band--night { --bg: var(--ink); --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --accent: var(--gold); --rule: rgba(217, 171, 104, .32); }
.band--dusk { --bg: var(--umber); --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --accent: var(--gold); --rule: rgba(217, 171, 104, .32); }
.band--flush { padding-bottom: 0; }
.intro { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top__row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.mono { display: block; object-fit: contain; }
.sprite { position: absolute; }
.brand__mono { width: 2.9rem; height: 2.9rem; color: var(--ink); flex: none; }
.brand__name { font-size: .8rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 1.6rem; }
.nav a { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--text); padding-block: .5rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--bronze); }
.top__tools { display: flex; align-items: center; gap: 1rem; }
.langs { display: flex; align-items: center; gap: .35rem; }
.flag { display: block; padding: .5rem .2rem; opacity: .4; transition: opacity .2s; }
.flag svg { display: block; width: 1.65rem; height: 1.1rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(18, 16, 14, .22); }
.flag:hover, .flag.is-current { opacity: 1; }
.flag.is-current svg { box-shadow: 0 0 0 1px var(--bg, #fff), 0 0 0 2.5px var(--accent); }
.foot .flag svg { box-shadow: 0 0 0 1px rgba(242, 236, 226, .3); }
.foot .flag.is-current svg { box-shadow: 0 0 0 1px var(--ink), 0 0 0 2.5px var(--gold); }
.burger { display: none; width: 2.5rem; height: 2.5rem; position: relative; }
.burger span { position: absolute; left: .55rem; right: .55rem; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { top: 1rem; }
.burger span:last-child { top: 1.45rem; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(.225rem) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-.225rem) rotate(-45deg); }

/* Ouverture */
.hero { background: var(--white); padding-block: clamp(2.5rem, 6vw, 5rem) var(--band); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero__text { display: grid; gap: 1.5rem; min-width: 0; }
.hero__text h1 { max-width: 13em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: .5rem; }
.seal { width: 15rem; display: grid; gap: .6rem; justify-items: center; text-align: center; }
.seal__mono { width: 9.5rem; height: 9.5rem; color: var(--gold);  }
.seal__status { font-family: var(--f-display); font-style: italic; font-size: 1.45rem; line-height: 1.2; color: var(--bronze); margin-top: .4rem; }
.seal__text { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.hero__photos { margin-top: clamp(2.25rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero__photos figure { min-width: 0; }
.hero__photos img { width: 100%; height: auto; }
.hero__restaurant figcaption { max-width: 40em; }
.hero__ambiance { width: 100%; max-width: 22rem; justify-self: end; }
.hero__ambiance figcaption { color: var(--bronze); }
figcaption { font-size: .82rem; color: var(--fg-muted); margin-top: .6rem; letter-spacing: .02em; }

/* La maison */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.split__head { display: grid; gap: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.facts li { padding-top: 1.5rem; display: grid; gap: .5rem; align-content: start; }
.facts h3 { font-size: 1.5rem; font-style: italic; color: var(--accent); }
.facts p { font-size: .98rem; color: var(--fg-muted); }

/* Les trois temps : colonnes proportionnelles aux durées, rail horaire à l'échelle */
.tempos { display: grid; grid-template-columns: var(--c1) var(--c2) var(--c3); }
.tempo { --pad: clamp(1.25rem, 2.6vw, 2.5rem); background: var(--bg); color: var(--fg); min-width: 0; display: flex; flex-direction: column; }
.tempo--day { --bg: var(--stone); }
.tempo--dusk { --bg: var(--umber); --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --accent: var(--gold); }
.tempo--night { --bg: var(--ink); --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --accent: var(--gold); }
.rail { position: relative; height: 3.4rem; border-top: 1px solid var(--accent); font-size: .8rem; font-weight: 500; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--accent); }
.rail__tick { position: absolute; top: 0; padding: .85rem 0 0 .6rem; line-height: 1.2; white-space: nowrap; }
.rail__tick::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: .7rem; background: var(--accent); }
.rail__tick--start { left: 0; }
.rail__tick--end { right: 0; padding: .85rem .6rem 0 0; display: none; }
.rail__tick--end::before { left: auto; right: 0; }
.rail__tick--end.is-last { display: block; }
.rail__tick small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.tempo__photo img { width: 100%; height: clamp(15rem, 25vw, 23rem); object-fit: cover; filter: saturate(.85); }
.tempo__body { padding: var(--pad) var(--pad) clamp(2.25rem, 5vw, 4rem); display: grid; gap: .9rem; align-content: start; }
.tempo__body p:last-child { color: var(--fg-muted); font-size: 1rem; max-width: 30em; }
.tempo__hours { display: none; }

/* La carte, comme la carte imprimée */
.carte__head { display: grid; justify-items: center; text-align: center; gap: .8rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.carte__mono { width: 5.25rem; height: 5.25rem; color: var(--gold); margin-bottom: .5rem; }
.carte__head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-style: italic; color: var(--fg-muted); }
.carte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(2rem, 4vw, 4rem); }
.carte__title { display: flex; align-items: center; gap: 1rem; font-family: var(--f-text); font-size: .76rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.75rem; }
.carte__title::before, .carte__title::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.dishes { display: grid; gap: 1.35rem; }
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; }
.dish h4 { font-family: var(--f-display); font-size: 1.32rem; font-weight: 500; line-height: 1.2; min-width: 0; }
.dish__price { font-size: .9rem; font-weight: 500; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.dish p { font-family: var(--f-display); font-style: italic; font-size: 1.06rem; line-height: 1.35; color: var(--fg-muted); margin-top: .2rem; padding-right: 2.5rem; }
.carte__foot { display: grid; justify-items: center; text-align: center; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--rule); }
.bonap { width: 11rem; height: auto; color: var(--gold); }

/* L'équipe */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.person { display: grid; gap: 1.25rem; min-width: 0; align-content: start; }
.person__head { display: flex; align-items: center; gap: 1.5rem; min-height: 9rem; }
.person__head > div { display: grid; gap: .4rem; }
.person__head h3 { font-size: 2rem; }
.person__photo { width: 9rem; height: 9rem; object-fit: cover; flex: none; filter: saturate(.75); }
.person__text { max-width: 30em; }
.person--salle { border-left: 1px solid var(--rule); padding-left: clamp(1.5rem, 4vw, 3.5rem); }

/* Venir */
.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); }
.visit > div { display: grid; gap: .8rem; align-content: start; border-top: 1px solid var(--rule); padding-top: 1.5rem; min-width: 0; }
.visit address, .visit p { font-size: 1.05rem; }
.visit address { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.35; }
.contacts { display: grid; gap: .7rem; }
.contacts a { overflow-wrap: anywhere; }
.contacts__k { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); }
.social { display: flex; gap: 1.5rem; margin-top: .5rem; }

/* Pied de page */
.foot { --fg: var(--on-dark); --fg-muted: var(--on-dark-muted); --accent: var(--gold); --rule: rgba(217, 171, 104, .32); background: var(--ink); color: var(--on-dark); padding-block: 3rem 2.5rem; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.foot__brand { display: flex; align-items: center; gap: 1.1rem; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; line-height: 1.8; }
.foot__brand span { letter-spacing: .12em; color: var(--on-dark-muted); font-size: .72rem; }
.foot__mono { width: 3.75rem; height: 3.75rem; color: var(--gold); flex: none; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.foot__legal { margin-top: 2.25rem; display: grid; gap: .6rem; font-size: .82rem; color: var(--on-dark-muted); }
.foot__legal::before { content: ''; height: 1px; background: var(--rule); margin-bottom: .9rem; }
.foot__legal summary { cursor: pointer; width: fit-content; letter-spacing: .08em; }
.foot__legal details p { margin-top: .5rem; }

/* Invitation à l'installation */
.install { position: fixed; z-index: 30; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); max-width: 26rem; margin-left: auto; background: var(--ink); color: var(--on-dark); border: 1px solid rgba(217, 171, 104, .45); padding: 1.1rem 1.25rem 1.2rem; box-shadow: 0 12px 40px rgba(18, 16, 14, .35); --fg: var(--on-dark); --accent: var(--gold); }
.install__title { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; }
.install__text { font-size: .92rem; color: var(--on-dark-muted); margin-top: .35rem; }
.install__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1rem; }
.install__ios ol { list-style: decimal; padding-left: 1.25rem; margin-block: .7rem 1rem; font-size: .95rem; display: grid; gap: .3rem; }
.install__ios .btn { margin-top: .9rem; }
.install .link { font-size: .72rem; }

/* Écrans moyens et petits */
@media (max-width: 66rem) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1.25rem; flex-direction: column; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding-block: .9rem; border-bottom: 1px solid var(--rule); font-size: .82rem; }
  .burger { display: block; }
  .carte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .seal { width: auto; grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 1.25rem; align-items: center; }
  .seal__mono { width: 5.5rem; height: 5.5rem; grid-row: span 2; }
  .seal__status { margin-top: 0; align-self: end; }
  .seal__text { align-self: start; }
  .hero__photos { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero__ambiance { max-width: 20rem; justify-self: center; }
  .split, .team { grid-template-columns: minmax(0, 1fr); }
  .person__head { min-height: 0; }
  .person--salle { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2rem; }
  .facts { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 2rem; }
  .facts li { border-top: 1px solid var(--rule); padding-block: 1.25rem; }
  .tempos { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .tempo__hours { display: inline; color: var(--fg-muted); margin-left: .75em; letter-spacing: .12em; }
  .tempo__photo img { height: auto; aspect-ratio: 16 / 10; }
  .visit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .carte { grid-template-columns: minmax(0, 1fr); }
  .brand__name { display: none; }
  .person__photo { width: 6.5rem; height: 6.5rem; }
  .dish p { padding-right: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
