/* ==========================================================================
   Le Mazet Café — feuille de style
   Couleurs, polices et tailles se règlent dans l'admin (onglet « Style ») :
   elles remplacent les valeurs par défaut des variables ci-dessous.
   ========================================================================== */

:root {
  --terracotta: #C45B48;
  --peche: #FFDBC1;
  --creme: #FFF0DA;
  --bleu: #21428A;
  --brun: #3A2420;
  --turquoise: #6AC9C5;
  --framboise: #B8285A;
  --bandeau: #3A2420;
  --vert: #3E7D2E;

  --police-logo: "Righteous", system-ui, sans-serif;
  --police-cafe: "League Spartan", system-ui, sans-serif;
  --titre: "League Spartan", system-ui, sans-serif;
  --texte: "League Spartan", system-ui, sans-serif;
  --taille-texte: 17px;
  --logo-echelle: 1;
  --rayon: 18px;
  --oiseau-taille: 2.1;
  --oiseau-x: -0.85;
  --oiseau-y: 0;
  --ombre: 0 2px 0 rgba(58, 36, 32, .08), 0 10px 30px -12px rgba(58, 36, 32, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font: 400 var(--taille-texte)/1.65 var(--texte);
  -webkit-font-smoothing: antialiased;
}
body.chargement { opacity: 0; }
body { transition: opacity .25s ease; }
.erreur-chargement { margin: 0; padding: 1em 20px; background: #fff3cd; color: #5c4400; text-align: center; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--bleu); }
[hidden] { display: none !important; }

.conteneur { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }

.titre {
  font: 700 clamp(1.9rem, 4.2vw, 2.7rem)/1.1 var(--titre);
  color: var(--bleu);
  margin: 0 0 .7em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.titre--centre { text-align: center; }
.sous-titre {
  font: 700 1.35rem/1.2 var(--titre);
  color: var(--brun);
  margin: 1.8em 0 .6em;
}
.note { font-size: .95rem; opacity: .8; margin: 1em 0 0; }
.note--centre { text-align: center; margin-top: 2.2em; }
.texte p { margin: 0 0 1em; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.6em .72em;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font: 700 1rem/1 var(--texte);
  text-decoration: none;
  border: 2px solid var(--terracotta);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.bouton:hover { background: var(--brun); border-color: var(--brun); color: #fff; transform: translateY(-2px); }
.bouton--contour { background: transparent; color: var(--brun); border-color: var(--brun); }
.bouton--contour:hover { background: var(--brun); color: #fff; }
.bouton--petit { padding: .65em 1.2em .5em; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }

/* Bandeau d'annonces */
.annonces {
  background: var(--bandeau);
  color: var(--creme);
  text-align: center;
  font-weight: 600;
  padding: .7em 20px .55em;
}
.annonces p { margin: 0; }
.annonces p + p { margin-top: .35em; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(20px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--creme) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 36, 32, .08);
}
.entete__nom {
  font: 400 1.45rem/1 var(--police-logo);
  color: var(--bleu);
  text-decoration: none;
  white-space: nowrap;
}
.entete__nom .logo-cafe { font-family: var(--police-cafe); font-weight: 800; color: var(--brun); font-size: .8em; }
.entete__nav { display: flex; gap: 22px; margin-left: auto; }
.entete__nav a { color: var(--brun); text-decoration: none; font-weight: 600; }
.entete__nav a:hover { color: var(--terracotta); }
@media (max-width: 680px) {
  .entete { gap: 12px; }
  .entete__nav { display: none; }
  .entete .bouton { margin-left: auto; }
}

/* Accueil : le « cadre » reprend la carte de visite (bord terracotta, fond pêche) */
.accueil { background: var(--terracotta); padding: clamp(14px, 3vw, 36px); }
.accueil__cadre {
  background: var(--peche);
  border: 1px solid rgba(58, 36, 32, .5);
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(36px, 7vw, 80px) 20px clamp(40px, 6vw, 64px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.accueil__logo {
  font-size: calc(clamp(3.4rem, 13vw, 7.4rem) * var(--logo-echelle));
  width: max-content; max-width: 100%;
  animation: arrivee .8s ease-out both;
}
.accueil__logo { position: relative; padding-top: calc((var(--oiseau-taille) - .35) * 1em); }
.accueil__oiseau {
  position: absolute;
  top: calc(var(--oiseau-y) * -1em);
  left: calc(100% + var(--oiseau-x) * 1em);
  width: auto; height: calc(var(--oiseau-taille) * 1em); max-width: none;
}
.sans-oiseau .accueil__logo { padding-top: 0; }
.logo-titre {
  margin: 0;
  font: 400 1em/.9 var(--police-logo);
  color: var(--bleu);
  letter-spacing: -.01em;
  text-align: left;
}
.logo-titre .logo-cafe {
  display: block;
  margin: .06em -.45em 0 0;
  text-align: right;
  font: 800 .62em/1 var(--police-cafe);
  color: var(--brun);
  letter-spacing: -.02em;
  text-shadow: -.05em -.03em 0 var(--turquoise), .05em .04em 0 var(--framboise);
}
.sans-effet-cafe .logo-cafe { text-shadow: none !important; }
.accueil__lieu { font-weight: 700; margin: .4em 0 1.6em; letter-spacing: .02em; }
.accueil__accroche {
  font: 700 clamp(1.35rem, 3vw, 1.8rem)/1.25 var(--titre);
  color: var(--brun);
  margin: 0 0 .9em;
}
.accueil__statut {
  display: inline-flex; align-items: center; gap: .55em;
  margin: 0 0 1.8em;
  padding: .45em 1em .3em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-weight: 600; font-size: .95rem;
}
.accueil__statut::before {
  content: ""; width: .6em; height: .6em; border-radius: 50%;
  background: var(--terracotta); margin-top: -.15em;
}
.accueil__statut.est-ouvert::before { background: var(--vert); box-shadow: 0 0 0 4px rgba(62, 125, 46, .18); }
.accueil__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@keyframes arrivee { from { opacity: 0; transform: translateY(12px); } }

/* Bienvenue */
.bienvenue__grille {
  display: grid; gap: clamp(24px, 6vw, 72px);
  grid-template-columns: 1.2fr 1fr; align-items: center;
}
.bienvenue__illu { width: min(400px, 100%); justify-self: center; }
.signature {
  font: 500 1.15rem/1.5 var(--titre);
  color: var(--terracotta);
  border-left: 3px solid var(--turquoise);
  padding-left: 16px;
  margin: 1.4em 0 0;
}
@media (max-width: 760px) {
  .bienvenue__grille { grid-template-columns: 1fr; }
  .bienvenue__illu { order: -1; width: 220px; }
}

/* La carte */
.carte { background: var(--peche); overflow: hidden; }
.carte__grille {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  max-width: 920px; margin-inline: auto;
}
.categorie {
  background: var(--creme);
  border-radius: var(--rayon);
  padding: 28px 28px 18px;
  box-shadow: var(--ombre);
}
.categorie__tete {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 0 0 .8em;
  padding-bottom: .5em;
  border-bottom: 2px dashed color-mix(in srgb, var(--terracotta) 40%, transparent);
}
.categorie__titre {
  font: 700 1.4rem/1.2 var(--titre);
  color: var(--terracotta);
  margin: 0;
}
.categorie__illu { width: 96px; margin: -46px -8px -6px 0; transform: rotate(-5deg); flex: none; }
.categorie__liste { list-style: none; margin: 0; padding: 0; }
.produit { padding: .45em 0; }
.produit__ligne { display: flex; align-items: baseline; gap: 8px; }
.produit__nom { font-weight: 600; }
.produit__points { flex: 1; border-bottom: 2px dotted rgba(58, 36, 32, .3); transform: translateY(-4px); min-width: 16px; }
.produit__prix { font-weight: 700; white-space: nowrap; color: var(--bleu); }
.produit__detail { margin: .1em 0 0; font-size: .92rem; opacity: .75; }
.badge {
  display: inline-block; margin-left: .5em;
  padding: .25em .6em .1em;
  border-radius: 999px;
  background: var(--turquoise);
  color: var(--brun);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  vertical-align: .15em;
}
.carte__deco {
  position: absolute; width: 220px; right: max(-30px, calc((100% - 1300px) / 2)); top: 34px;
  transform: rotate(-6deg); pointer-events: none;
}
@media (max-width: 900px) { .carte__deco { width: 130px; top: 18px; right: -20px; } }

/* Photos */
.galerie {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.galerie__item {
  position: relative; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--rayon); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--peche);
  box-shadow: var(--ombre);
}
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galerie__item:hover img { transform: scale(1.04); }
.galerie__legende {
  position: absolute; inset: auto 0 0; padding: 30px 14px 10px;
  background: linear-gradient(transparent, rgba(58, 36, 32, .75));
  color: #fff; font: 600 .95rem/1.3 var(--texte); text-align: left;
}
.visionneuse {
  border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw);
  color: #fff; text-align: center;
}
.visionneuse::backdrop { background: rgba(30, 18, 15, .88); }
.visionneuse img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 10px; }
.visionneuse p { margin: .8em 0 0; font-weight: 600; }
.visionneuse__fermer {
  position: fixed; top: 14px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--creme); color: var(--brun); font-size: 1.7rem; line-height: 1; cursor: pointer;
}

/* Infos pratiques */
.infos { background: var(--creme); }
.infos__grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact li { display: flex; align-items: center; gap: 16px; font-size: 1.15rem; }
.contact img { width: 26px; flex: none; }
.contact__icone { width: 26px; flex: none; text-align: center; font-weight: 700; font-size: 1.5rem; color: var(--terracotta); }
.contact__tel { font: 700 1.35rem/1 var(--texte); color: var(--brun); text-decoration: none; letter-spacing: .03em; }
.horaires { border-collapse: collapse; width: 100%; max-width: 420px; }
.horaires th, .horaires td { padding: .5em .8em .4em; text-align: left; border-bottom: 1px solid rgba(58, 36, 32, .12); }
.horaires th { font-weight: 600; }
.horaires td { text-align: right; }
.horaires .est-aujourdhui { background: var(--peche); font-weight: 700; }
.horaires .est-aujourdhui th::after { content: " · aujourd'hui"; font-weight: 400; font-size: .85em; color: var(--terracotta); }
.infos__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.plan {
  margin: 0; background: #fff; border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre);
  transform: rotate(1.5deg);
}
.plan img { max-height: 520px; width: auto; margin: 0 auto; }
.plan figcaption { margin-top: 1em; text-align: center; font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) {
  .infos__grille { grid-template-columns: 1fr; }
  .plan { transform: none; }
  .plan img { max-height: 380px; }
}

/* Pied de page */
.pied {
  background: var(--terracotta);
  color: var(--creme);
  text-align: center;
  padding: 48px 20px 36px;
}
.pied a { color: var(--creme); }
.pied__oiseaux { width: min(420px, 80%); margin: 0 auto 18px; }
.pied__nom { font: 400 1.8rem/1 var(--police-logo); margin: 0 0 .6em; }
.pied__nom .logo-cafe { font-family: var(--police-cafe); font-weight: 800; font-size: .8em; color: var(--brun); }
.pied p { margin: .3em 0; }
.pied__petit { opacity: .75; font-size: .85rem; margin-top: 1.4em !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
