/* Chez Rémy : page d'accueil. Couleurs et polices définies une seule fois ici. */

:root {
  --fond: #faf6ef;
  --papier: #fffdf8;
  --encre: #2b2622;
  --encre-douce: #6f655c;
  --accent: #b5532f;
  --ardoise: #2f3a36;
  --craie: #f1efe6;
  --craie-douce: #b9c2b9;
  --trait: #e6dccd;
  --cadre: #8a6a4a;
  --voyant: #3f9a5a;
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-craie: "Comic Neue", "Segoe Print", "Bradley Hand", "Chalkboard SE", cursive;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #1d1a17;
    --papier: #262220;
    --encre: #eee7dc;
    --encre-douce: #a89d90;
    --accent: #e08a62;
    --ardoise: #18201d;
    --trait: #3a332d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 1.05rem/1.6 var(--police-texte);
}

.enseigne, main, footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.enseigne {
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.toque {
  width: 4rem;
  height: 4rem;
  fill: var(--papier);
  stroke: var(--encre);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

h1, h2 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  margin: 0.5rem 0 0.25rem;
}

h2 {
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.devise {
  font-style: italic;
  color: var(--encre-douce);
  margin: 0;
}

.horaires {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.voyant {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  background: var(--voyant);
  animation: pouls 2.4s ease-in-out infinite;
}

@keyframes pouls {
  50% { opacity: 0.35; }
}

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

.discret {
  color: var(--encre-douce);
  font-size: 0.9rem;
}

section {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1.25rem 0;
}

a { color: var(--accent); }

code {
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

/* L'ardoise du jour */
.ardoise {
  background: var(--ardoise);
  border: 0.6rem solid var(--cadre);
  color: var(--craie);
  font-family: var(--police-craie);
}

.ardoise h2 {
  color: var(--craie);
  font-family: var(--police-craie);
  text-align: center;
}

.menu, .pieces {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--craie-douce);
}

.menu li:last-child { border-bottom: 0; }

.plat {
  display: block;
  font-size: 1.15rem;
}

.menu .detail { color: var(--craie-douce); }

.pieces li { padding: 0.25rem 0; }

.pieces .detail { color: var(--encre-douce); }

.pieces .detail::before { content: "· "; }

.capot {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}

.capot dt { font-weight: 600; }

.capot dd { margin: 0; }

@media (max-width: 30rem) {
  .capot { grid-template-columns: 1fr; }
  .capot dd { margin-bottom: 0.5rem; }
}

footer {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

footer p { margin: 0.25rem 0; }

/* --- Composants communs aux pièces de la maison (boutons, champs, pastilles, onglets) ---
   Uniquement à partir des variables ci-dessus : aucune nouvelle couleur ni police. */

button,
.bouton {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--papier);
  cursor: pointer;
}

button:hover:not(:disabled) { filter: brightness(1.08); }

button:disabled {
  opacity: 0.5;
  cursor: default;
}

button.secondaire {
  background: transparent;
  color: var(--accent);
}

button.discret {
  border-color: transparent;
  background: transparent;
  color: var(--encre-douce);
  font-weight: 400;
}

input,
textarea {
  font: inherit;
  color: var(--encre);
  background: var(--fond);
  border: 1px solid var(--trait);
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
}

:is(button, input, textarea, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pastille {
  display: inline-block;
  min-width: 1.8em;
  padding: 0 0.45em;
  border: 1px solid var(--trait);
  border-radius: 999px;
  text-align: center;
  font-size: 0.9em;
  color: var(--encre-douce);
}

.onglets {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}

.onglets button {
  white-space: nowrap;
  background: transparent;
  color: var(--encre);
  border-color: var(--trait);
  font-weight: 400;
}

.onglets button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--papier);
  font-weight: 600;
}
