/* ============================================
   SOMID — feuille de style partagée
   Version festive : jaune bière + rouge SOMID,
   mousse crème, fanions et bulles
   ============================================ */

/* Polices hébergées sur le site (pas d'appel à Google Fonts — RGPD) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #2a1a0e;
  --ink-soft: #5b4636;
  --foam: #fff8e8;          /* fond principal, couleur mousse */
  --foam-deep: #fdebc2;
  --beer: #f4b41a;          /* jaune bière (logo) */
  --beer-deep: #d98e04;
  --amber: #a85d06;
  --red: #d7261e;           /* rouge SOMID (logo) */
  --red-deep: #a8150f;
  --line: #efd9a8;
  --white: #ffffff;
  --ok: #2f7a3c;
  --wait: #b26f00;
  --refuse: #b3201a;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(120, 60, 0, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--foam);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--foam);
  box-shadow: 0 1px 0 var(--line);
}

/* Guirlande de fanions sous le header */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--red) 25%, transparent 25%) 0 0 / 36px 12px repeat-x,
    linear-gradient(225deg, var(--red) 25%, transparent 25%) 0 0 / 36px 12px repeat-x,
    linear-gradient(135deg, var(--beer) 25%, transparent 25%) 18px 0 / 36px 12px repeat-x,
    linear-gradient(225deg, var(--beer) 25%, transparent 25%) 18px 0 / 36px 12px repeat-x;
  opacity: .9;
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  text-decoration: none;
  color: var(--red);
  letter-spacing: .02em;
}

/* Pastille façon capsule de bière */
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--beer);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  border: 3px dotted var(--red);
  box-shadow: 0 0 0 2px var(--beer);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}

.nav-links a:hover { background: var(--foam-deep); color: var(--ink); }

.nav-links a.active { background: var(--beer); color: var(--ink); }

.nav-toggle {
  display: none;
  background: var(--beer);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}

.social-link:hover { background: var(--red-deep); transform: rotate(-8deg); }

.social-link svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .nav-wrap { padding: 10px 16px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--foam);
    flex-direction: column;
    gap: 4px;
    display: none;
    padding: 20px 16px 16px;
    box-shadow: 0 16px 24px -16px rgba(0,0,0,.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 16px; }
  .nav-toggle { display: block; }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 760px) { .wrap { padding: 0 16px; } }

section { padding: 64px 0; position: relative; }

@media (max-width: 760px) { section { padding: 44px 0; } }

.section-narrow { max-width: 760px; }

.eyebrow-free h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 14px;
  font-weight: 800;
}

/* Petit soulignement « mousse » sous les titres de section */
.eyebrow-free h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 4px, var(--beer) 4px, transparent 4.5px) 0 0 / 16px 8px repeat-x;
}

.lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 660px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: var(--sans);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 0 var(--red-deep);
}
.btn-primary:hover { background: #e2342b; transform: translateY(-1px); }
.btn-primary:active { box-shadow: 0 2px 0 var(--red-deep); transform: translateY(3px); }

.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }

.btn-beer { background: var(--beer); color: var(--ink); box-shadow: 0 6px 0 var(--beer-deep); }
.btn-beer:hover { background: #ffc331; }

.btn-block { width: 100%; }

.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Bulles animées ---------- */
.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubbles span {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: 1px solid rgba(255, 255, 255, .55);
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(10px, -50vh); }
  100% { transform: translate(-6px, -110vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles span { animation: none; display: none; }
}

/* Vague de mousse en bas des bandeaux */
.foam-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
  z-index: 1;
  background:
    radial-gradient(circle at 20px 34px, var(--foam) 22px, transparent 23px) 0 0 / 40px 34px repeat-x,
    radial-gradient(circle at 0 40px, var(--foam) 20px, transparent 21px) 20px 4px / 40px 34px repeat-x;
}

/* ---------- Hero (accueil) ---------- */
.hero {
  padding: 96px 0 110px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(180deg, #ffcb3d 0%, var(--beer) 45%, var(--beer-deep) 100%);
  overflow: hidden;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero { padding: 64px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-kicker {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.02;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero .lede { font-size: 18px; margin-bottom: 30px; color: #3d2810; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-actions .btn-secondary { background: rgba(255,255,255,.85); border-color: transparent; }
.hero-actions .btn-secondary:hover { background: var(--ink); color: var(--white); }

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  border: 3px solid var(--ink);
}

@media (max-width: 860px) { .hero-card { transform: none; } }

.hero-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }

.hero-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.hero-stat {
  background: var(--foam);
  border-radius: 14px;
  padding: 14px;
  border: 2px dashed var(--beer);
}

.hero-stat b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
}

.hero-stat span { font-size: 13px; color: var(--ink-soft); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ok);
}

/* ---------- Bandeau de titre des pages internes ---------- */
.page-banner {
  padding: 56px 0 76px;
  background: linear-gradient(180deg, #ffcb3d 0%, var(--beer) 70%, var(--beer-deep) 100%);
  overflow: hidden;
}

.page-banner .wrap { position: relative; z-index: 2; }

.page-banner h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}

.page-banner p {
  margin: 10px 0 0;
  font-size: 17px;
  color: #3d2810;
  max-width: 640px;
}

@media (max-width: 760px) { .page-banner { padding: 40px 0 64px; } }

/* ---------- Feature cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--beer);
  transition: transform .2s ease;
}

.feature:nth-child(2) { border-top-color: var(--red); }

.feature:hover { transform: translateY(-4px) rotate(-.5deg); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--foam-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--red);
}

.feature-icon svg { width: 28px; height: 28px; }

.feature h3 { font-size: 20px; margin: 0 0 8px; font-weight: 800; }

.feature p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Bande "Comment ça marche" ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
  margin-top: 26px;
}

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 22px 22px 22px 76px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Horaires ---------- */
.hours-band {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

.hours-band .wrap { position: relative; z-index: 2; }

.hours-band .eyebrow-free h2 { color: var(--white); }

.hours-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) { .hours-layout { grid-template-columns: 1fr; } }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.hours-table td {
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { opacity: .85; }
.hours-table td:last-child { text-align: right; font-weight: 700; }

.pickup-card {
  background: var(--beer);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  transform: rotate(-1deg);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.35);
}

.pickup-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.pickup-card p { margin: 0 0 10px; font-size: 14.5px; }
.pickup-card p:last-child { margin-bottom: 0; }

@media (max-width: 860px) { .pickup-card { transform: none; } }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  text-align: center;
}

.cta-box {
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 44px 24px;
  position: relative;
  overflow: hidden;
}

.cta-box > * { position: relative; z-index: 2; }

.cta-box h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.cta-box p { margin: 0 auto 24px; max-width: 520px; opacity: .85; }

.cta-box .bubbles span { background: rgba(244,180,26,.25); border-color: rgba(244,180,26,.5); }

/* ---------- Produits ---------- */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}

.cat-tab:hover { border-color: var(--beer); }

.cat-tab.active { background: var(--red); color: var(--white); border-color: var(--red); }

@media (max-width: 760px) {
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 24px;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
}

.cat-panel { display: none; }
.cat-panel.active { display: block; }

.cat-panel .groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 860px) { .cat-panel .groups { grid-template-columns: 1fr; } }

.cat-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.cat-group h4 {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  background: var(--beer);
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
}

.prod-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line);
}

.prod-row:last-child { border-bottom: none; }

.prod-row .name { color: var(--ink); }
.prod-row .price { font-weight: 700; white-space: nowrap; color: var(--red); }

.note-box {
  background: var(--foam-deep);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 24px;
}

/* ---------- Formulaire réservation ---------- */
.resa-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) { .resa-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--beer);
  min-width: 0;
}

.card.card-red { border-top-color: var(--red); }

@media (max-width: 480px) { .card { padding: 20px 16px; } }

.card h3 { margin-top: 0; font-size: 21px; font-weight: 800; }

.field { margin-bottom: 18px; min-width: 0; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 16px;            /* 16px = pas de zoom auto sur iPhone */
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field input[type="date"] { min-height: 48px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--beer);
  box-shadow: 0 0 0 3px rgba(244,180,26,.25);
}

.field textarea { resize: vertical; min-height: 90px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.radio-pill-group { display: flex; gap: 8px; flex-wrap: wrap; }

.radio-pill { position: relative; }

.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }

.radio-pill span {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  transition: all .15s ease;
}

.radio-pill input:checked + span {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(244,180,26,.5); }

.form-hint { font-size: 13px; color: var(--ink-soft); margin: -6px 0 18px; }

.form-msg {
  margin-top: 14px;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
}

.form-msg.show { display: block; }
.form-msg.ok { background: #e6f4e8; color: var(--ok); font-weight: 600; }
.form-msg.err { background: #fde7e5; color: var(--refuse); font-weight: 600; }

/* ---------- Calendrier de dispo ---------- */
.dispo-intro { color: var(--ink-soft); font-size: 14px; margin-top: -6px; }

.dispo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.dispo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--foam);
  border-radius: 12px;
  font-size: 14px;
}

.dispo-item .dates { display: block; font-weight: 700; }
.dispo-item .sub { display: block; font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 420px) {
  .dispo-item { flex-direction: column; align-items: flex-start; }
}

.status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-confirme { background: #e6f4e8; color: var(--ok); }
.status-en_attente { background: #fff0cc; color: var(--wait); }

.dispo-empty {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 12px 0;
}

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.about-facts { display: grid; gap: 14px; }

.fact {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--beer);
}

.fact:nth-child(2) { border-left-color: var(--red); }

.fact b { display: block; font-family: var(--display); font-size: 18px; font-weight: 800; }
.fact span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Admin / back-office ---------- */
.admin-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--red);
}

.login-card h1 { font-size: 26px; margin: 0 0 6px; font-weight: 800; }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}

.admin-topbar h1 { font-size: 24px; margin: 0; font-weight: 800; }

.resa-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.resa-card-top { margin-bottom: 12px; }

.resa-card-top h3 { margin: 0; font-size: 18px; }
.resa-card-top .meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; word-break: break-word; }

.resa-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.resa-details div { word-break: break-word; }
.resa-details div span { display: block; color: var(--ink-soft); font-size: 12px; }

.resa-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 480px) { .resa-actions .btn { flex: 1; } }

.btn-accept { background: var(--ok); color: var(--white); }
.btn-accept:hover { background: #24622f; }

.btn-refuse { background: transparent; color: var(--refuse); border-color: var(--refuse); }
.btn-refuse:hover { background: var(--refuse); color: var(--white); }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }

.admin-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--ink);
}

.admin-tab.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 48px 0 28px;
  margin-top: 40px;
  font-size: 14px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--beer) 0 40px, var(--red) 40px 80px);
}

.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--beer); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }

.footer-grid h4 {
  font-size: 16px;
  color: var(--beer);
  margin: 0 0 10px;
  font-weight: 800;
}

.footer-grid p { margin: 0; }

.footer-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px;
  opacity: .7;
}

/* ---------- Mentions légales ---------- */
.legal-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.legal-block h2 { color: var(--ink); font-size: 30px; font-weight: 800; }

.legal-block h3 { color: var(--ink); font-size: 18px; margin-top: 28px; font-weight: 800; }

@media (max-width: 760px) { .legal-block { padding: 36px 16px; } }

@media (max-width: 480px) {
  .hours-table { font-size: 14px; }
  .hours-table td { padding: 10px 12px; }
  .hours-table td:last-child { white-space: nowrap; }
}

.form-legal { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.45; }
.form-legal a { color: var(--red); }

/* ---------- Personnage SOMID ---------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-visual .mascotte {
  width: 210px;
  height: auto;
  margin-bottom: -46px;
  position: relative;
  z-index: 3;
  transform: rotate(-3deg);
  filter: drop-shadow(0 10px 14px rgba(90, 45, 0, .3));
  animation: mascotte-hop 3.2s ease-in-out infinite;
}

.hero-visual .hero-card { width: 100%; padding-top: 52px; }

@keyframes mascotte-hop {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) { .hero-visual .mascotte { animation: none; } }

@media (max-width: 860px) {
  .hero-visual .mascotte { width: 160px; margin-bottom: -36px; }
  .hero-visual .hero-card { padding-top: 44px; }
}

.mascotte-about {
  width: 190px;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 10px 14px rgba(90, 45, 0, .25));
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 34px; height: auto; }

/* ---------- Back-office : Tarifs ---------- */
.section-switch {
  display: inline-flex;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
  flex-wrap: wrap;
}

.section-btn {
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-soft);
  cursor: pointer;
}

.section-btn.active { background: var(--beer); color: var(--ink); }

.tarifs-intro { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; max-width: 640px; }

.t-cat {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.t-cat summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 800;
  font-family: var(--display);
  font-size: 17px;
  list-style: none;
}

.t-cat summary::-webkit-details-marker { display: none; }
.t-cat summary::before { content: "▸"; color: var(--red); margin-right: 4px; transition: transform .15s; }
.t-cat[open] summary::before { transform: rotate(90deg); }
.t-cat summary .t-cat-name { flex: 1; }
.t-cat-count { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--foam); padding: 4px 10px; border-radius: 999px; }

.t-cat-body { padding: 0 20px 20px; border-top: 2px dashed var(--line); }

.t-label { display: block; font-size: 12.5px; font-weight: 700; margin: 14px 0 5px; color: var(--ink-soft); }

.t-cat-body input,
.t-cat-body textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
}

.t-cat-body input:focus,
.t-cat-body textarea:focus { outline: none; border-color: var(--beer); }

.t-group {
  margin-top: 18px;
  padding: 14px;
  background: var(--foam);
  border-radius: 12px;
}

.t-group-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.t-group-head .group-title { flex: 1 1 200px; font-weight: 700; }

.t-item {
  display: grid;
  grid-template-columns: 1fr 120px 40px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.t-item .item-price { text-align: right; font-weight: 700; color: var(--red); }

@media (max-width: 520px) {
  .t-item { grid-template-columns: 1fr 96px 36px; gap: 6px; }
  .t-cat-body { padding: 0 12px 16px; }
  .t-group { padding: 10px; }
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--refuse);
  font-size: 15px;
  cursor: pointer;
}

.icon-btn:hover { background: #fde7e5; border-color: var(--refuse); }

.link-btn {
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  cursor: pointer;
}

.link-btn.danger { color: var(--ink-soft); font-weight: 600; font-size: 13px; }
.link-btn.danger:hover { color: var(--refuse); }

.tarifs-savebar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(255,248,232,0), var(--foam) 30%);
  margin-top: 8px;
}

.tarifs-status { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.tarifs-status.ok { color: var(--ok); }
.tarifs-status.err { color: var(--refuse); }
.tarifs-status.warn { color: var(--wait); }

@media (max-width: 520px) { .tarifs-savebar .btn { width: 100%; } }

@media (max-width: 520px) {
  .t-item {
    grid-template-columns: 1fr 110px 38px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
  }
  .t-item .item-name { grid-column: 1 / -1; }
  .t-item .item-price { grid-column: 2; }
  .t-item .icon-btn { grid-column: 3; }
}

@media (max-width: 420px) {
  .hero-stat b { font-size: 18px; }
  .hero-stat { padding: 12px 10px; }
}

/* Logo : tête du personnage à la place du rond « S » */
img.brand-mark {
  width: 46px;
  height: 46px;
  border: none;
  box-shadow: none;
  background: none;
  border-radius: 50%;
  transition: transform .2s ease;
}
.brand:hover img.brand-mark { transform: rotate(-8deg) scale(1.05); }
@media (max-width: 760px) { img.brand-mark { width: 42px; height: 42px; } }
