/* Café Ruelle — feuille de style. Suit design/charte.md (ambiance « Clair aéré »). */

:root {
  --fond: #FAF8F4;
  --surface: #FFFFFF;
  --texte: #2A2622;
  --texte-2: #6B655E;
  --accent: #7C9A82;
  --accent-fonce: #5F7D66;
  --accent-pale: #E9F0EA;
  --ligne: #ECE7DF;
  --ferme: #C98A6B;
  --ferme-texte: #A8734F;
  --ferme-pale: #F4E6DF;
  --ombre: 0 4px 24px rgba(42, 38, 34, 0.06);
  --rayon: 20px;
  --rayon-petit: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.conteneur {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo .pastille {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.nav { display: flex; gap: 22px; }

.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--texte-2);
}

.nav a:hover { color: var(--texte); }

@media (max-width: 520px) {
  .nav a:nth-child(2) { display: none; }
}

/* ---------- Accueil ---------- */

.accueil {
  padding: 72px 0 64px;
  text-align: center;
}

.surtitre {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-fonce);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.accueil p {
  max-width: 30ch;
  margin: 0 auto 36px;
  font-size: 19px;
  color: var(--texte-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.bouton:active { transform: scale(0.98); }

.bouton-plein {
  background: var(--accent);
  color: #fff;
}

.bouton-plein:hover { background: var(--accent-fonce); }

.bouton-ligne {
  background: transparent;
  border-color: var(--ligne);
  color: var(--texte);
}

.bouton-ligne:hover { background: var(--surface); }

/* Indicateur ouvert / fermé */

.etat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 10px 18px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--ombre);
  font-size: 15px;
  color: var(--texte-2);
}

.etat[hidden] { display: none; }

.etat .point {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-pale);
}

.etat.ferme .point {
  background: var(--ferme);
  box-shadow: 0 0 0 4px var(--ferme-pale);
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.titre-section {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.sous-titre {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--texte-2);
}

/* ---------- Horaires ---------- */

.horaires .carte {
  padding: 8px 24px;
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.horaires dl { margin: 0; }

.horaires .ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ligne);
}

.horaires .ligne:last-child { border-bottom: 0; }

.horaires dt { font-weight: 400; }

.horaires dd {
  margin: 0;
  color: var(--texte-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.horaires .ligne.aujourdhui dt {
  color: var(--accent-fonce);
  font-weight: 500;
}

.horaires .ligne.aujourdhui dt::after {
  content: "aujourd’hui";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent-fonce);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- Spécialités ---------- */

.grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .grille { grid-template-columns: repeat(3, 1fr); }
}

.produit {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

.produit .visuel {
  display: grid;
  place-items: center;
  height: 150px;
  background: var(--accent-pale);
}

.produit .visuel-2 { background: #F3EBE0; }
.produit .visuel-3 { background: #EEEAF2; }

.produit .visuel svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--texte);
  stroke-width: 1.4;
  opacity: 0.75;
}

.produit .corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
}

.produit .haut {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.produit h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.prix {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-fonce);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.produit p {
  margin: 0;
  font-size: 15.5px;
  color: var(--texte-2);
}

/* ---------- Pied de page ---------- */

footer {
  margin-top: 32px;
  padding: 56px 0 48px;
  border-top: 1px solid var(--ligne);
}

.pied {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .pied { grid-template-columns: 1.3fr 1fr 1fr; }
}

.pied h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.pied address {
  font-style: normal;
  line-height: 1.7;
}

.pied a {
  text-decoration: none;
  border-bottom: 1px solid var(--ligne);
}

.pied a:hover { border-color: var(--accent); }

.pied .petit {
  margin: 0;
  font-size: 15px;
  color: var(--texte-2);
}

.mention {
  margin-top: 40px;
  font-size: 13px;
  text-align: center;
  color: var(--texte-2);
}

/* ---------- Préférences utilisateur ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
