/* Gabarit « Restaurant » v1 — thème par défaut « Façade » (spec § 3). Polices hébergées avec le site. */
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/gloock-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/gloock-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/karla-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/karla-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #14213D; --mist: #E8EEF2; --brass: #B08D57; --white: #FFFFFF; --muted: #55657A;
  --mist-dim: #9FB0C0; --line: rgba(20, 33, 61, .14); --accent-ink: #FFFFFF; --accent-on-dark: var(--brass);
  --title: "Gloock", Georgia, serif; --text: "Karla", system-ui, sans-serif;
  --gutter: 20px; --gap: 44px; --bar-h: 72px;
}
@media (min-width: 760px) { :root { --gutter: 28px; --gap: 56px; --bar-h: 0px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--night); font: 400 17px/1.6 var(--text); padding-bottom: var(--bar-h); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.loading, .load-error { padding: 40vh var(--gutter); text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau de démonstration */
.demo-banner { position: sticky; top: 0; z-index: 5; background: var(--brass); color: var(--accent-ink); text-align: center; font-size: 15px; line-height: 1.35; padding: 8px var(--gutter); }
.demo-banner strong { font-weight: 700; }
.demo-banner .demo-banner-name { font-size: 13px; opacity: .85; }

/* En-tête (posé sur la photo) */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); color: var(--white); }
.top .brand { font-weight: 700; text-decoration: none; }
.top nav { display: none; gap: 22px; align-items: center; }
.top nav a { text-decoration: none; font-weight: 500; }
.lang { display: inline-flex; border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; overflow: hidden; }
.lang button { background: transparent; color: var(--white); border: 0; font: 700 13px/1 var(--text); padding: 8px 10px; min-height: 36px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--night); }
@media (min-width: 760px) { .top nav { display: flex; } }

/* Photo + nom */
.hero { position: relative; min-height: max(460px, 78vh); display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); background: var(--night); overflow: hidden; }
.hero.no-photo { min-height: 0; padding-top: 112px; }
.hero .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Dégradé dans la couleur principale du restaurant (--night), pas une couleur fixe. */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--night) 25%, transparent) 0%, color-mix(in srgb, var(--night) 10%, transparent) 40%, color-mix(in srgb, var(--night) 92%, transparent) 100%); }
.hero .inner { position: relative; z-index: 1; padding: 0 var(--gutter) 48px; max-width: 1120px; width: 100%; margin: 0 auto; }
.hero h1 { font: 400 clamp(56px, 11vw, 132px)/.9 var(--title); margin: 0 0 14px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero .tagline { margin: 0; font-size: 17px; max-width: 34ch; color: var(--mist); }
.hero .cta { display: none; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.example-label { position: absolute; z-index: 1; right: 14px; bottom: 14px; font-size: 12px; background: rgba(20,33,61,.75); color: var(--white); padding: 4px 9px; border-radius: 3px; }
@media (min-width: 760px) { .hero { min-height: min(92vh, 760px); } .hero .tagline { font-size: 19px; } .hero .cta { display: flex; } .hero .inner { padding-bottom: 56px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--text); text-decoration: none; border: 1.5px solid currentColor; cursor: pointer; background: transparent; color: inherit; }
.btn.solid { background: var(--brass); border-color: var(--brass); color: var(--accent-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Badge d'ouverture + bandeau de fermeture */
.status { background: var(--white); border-bottom: 1px solid var(--line); }
.status .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.badge.open .dot { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46,139,87,.18); }
.badge .detail { font-weight: 400; color: var(--muted); }
.fr-note { width: 100%; margin: 0; font-size: 14px; color: var(--muted); }
.closure { width: 100%; margin: 0; padding: 10px 12px; border-radius: 6px; background: #FFF4E0; color: #6B4A12; font-size: 15px; }

/* Sections */
/* padding-top seulement : les marges latérales viennent de .wrap (ne jamais les écraser). */
section.block { padding-top: var(--gap); }
section.block:last-of-type { padding-bottom: var(--gap); }
h2 { font: 400 32px/1.1 var(--title); margin: 0 0 20px; }
@media (min-width: 760px) { h2 { font-size: 40px; } }
.lead-muted { color: var(--muted); margin: -8px 0 18px; font-size: 15px; }

/* Plats phares / plat du jour */
.featured { display: grid; gap: 12px; }
.dish-card { background: var(--white); border-radius: 8px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
.dish-card .name { font: 400 22px/1.25 var(--title); }
.dish-card .price { font-weight: 700; color: var(--night); font-size: 18px; white-space: nowrap; }
.dish-card .desc { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.dish-card .tag { grid-column: 1 / -1; font-size: 13px; color: var(--night); font-weight: 700; }
.see-all { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--night); }
@media (min-width: 760px) { .featured.three { grid-template-columns: repeat(3, 1fr); } }

/* Carte */
.menu { display: grid; gap: 8px 56px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: rgba(0,0,0,.06); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) { .menu { grid-template-columns: 1fr 1fr; } }
.cat-name { font: 400 22px/1.3 var(--title); color: var(--night); margin: 10px 0 6px; }
.item { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.item .name { flex: 0 1 auto; }
.item .lead { flex: 1 1 24px; border-bottom: 1px dotted var(--mist-dim); transform: translateY(-5px); min-width: 24px; }
.item .price { white-space: nowrap; font-weight: 700; }
.item small { display: block; color: var(--muted); font-size: 15px; }
.menu-notes { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* Formulaires (réservation, événements) */
form.site-form { display: grid; gap: 12px; max-width: 560px; }
form.site-form label { display: grid; gap: 4px; font-size: 15px; }
form.site-form input, form.site-form textarea { font: inherit; padding: 12px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--white); min-height: 48px; }
form.site-form .row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Bande Horaires / Accès */
.band { background: var(--night); color: var(--mist); }
main:not(:empty) + .band { margin-top: var(--gap); }
.band .grid { display: grid; gap: 32px; padding: 44px var(--gutter); max-width: 1120px; margin: 0 auto; }
@media (min-width: 760px) { .band .grid { grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 56px var(--gutter); } }
.band h2 { color: var(--white); }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(232,238,242,.12); vertical-align: top; }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: var(--accent-on-dark); font-weight: 700; }
.hours-notes { margin-top: 14px; color: var(--mist-dim); font-size: 15px; }
.address { font-size: 17px; margin: 0 0 12px; }
.maps-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--white); font-weight: 700; }
.maps-link svg { flex: none; }

/* Pied de page */
footer.site { padding: 28px 0 32px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: grid; gap: 10px; }
footer.site a { color: var(--night); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.made-with { font-size: 13px; }
.demo-notice { font-size: 12px; line-height: 1.5; opacity: .8; max-width: 60ch; margin: 0; }
details.legal summary { cursor: pointer; }

/* Barre fixe (téléphone) */
.bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 6px; background: var(--night); border-radius: 999px; box-shadow: 0 10px 30px rgba(20,33,61,.35); }
.bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; }
.bar a.primary { background: var(--brass); color: var(--accent-ink); }
@media (min-width: 760px) { .bar { display: none; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
