/* ============================================
   Café des Sports d'Héricourt — Feuille de style du site public
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --brown-900: #2E1B12;
  --brown-800: #3B2417;
  --brown-600: #6B4226;
  --cream: #FBF3E7;
  --cream-dark: #F2E2CB;
  --amber: #D97F35;
  --amber-dark: #B85C1F;
  --terracotta: #C1552C;
  --green: #5C7A4E;
  --red: #B23B3B;
  --shadow: 0 8px 24px rgba(46, 27, 18, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--brown-900);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  color: var(--brown-800);
  margin: 0 0 0.5em;
}

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

img {
  max-width: 100%;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brown-800);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--brown-800);
  text-decoration: none;
  line-height: 1;
  padding: 8px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--brown-800);
  font-weight: 700;
  padding: 8px 4px;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--amber);
}

.nav-links a.bouton {
  background: var(--amber);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  border-bottom: none;
}

.nav-links a.bouton:hover {
  background: var(--amber-dark);
}

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(180deg, rgba(46, 27, 18, 0.72) 0%, rgba(46, 27, 18, 0.55) 45%, rgba(46, 27, 18, 0.82) 100%),
    url('../img/facade.jpg');
  background-size: cover;
  background-position: center 65%;
  background-repeat: no-repeat;
  padding: 96px 0;
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero .container {
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero p.accroche {
  font-size: 1.2rem;
  color: #fff;
  max-width: 560px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero .bouton-secondaire {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
}

.hero .bouton-secondaire:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bouton {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.bouton-principal {
  background: var(--terracotta);
  color: #fff;
}

.bouton-principal:hover {
  background: var(--amber-dark);
}

.bouton-secondaire {
  background: transparent;
  color: var(--brown-800);
  border: 2px solid var(--brown-600);
}

.bouton-secondaire:hover {
  background: var(--cream-dark);
}

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

section {
  padding: 64px 0;
}

section.alt {
  background: #fff;
}

.section-titre {
  text-align: center;
  margin-bottom: 40px;
}

.section-titre h2 {
  font-size: 2rem;
}

.section-titre p {
  color: var(--brown-600);
}

.presentation {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

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

.horaires-table {
  max-width: 480px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.horaires-ligne {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--cream-dark);
  font-weight: 700;
}

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

.horaires-ligne .ferme-label {
  color: var(--red);
}

/* ---------- Infos pratiques ---------- */

.infos-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.info-carte {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.info-carte h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-carte p {
  margin: 0;
  color: var(--brown-600);
}

.carte-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carte-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brown-900);
  color: var(--cream-dark);
  padding: 40px 0;
  text-align: center;
}

.site-footer a {
  color: #fff;
}

.site-footer .footer-nom {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.site-footer .footer-detail {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- La carte (menu) ---------- */

.retour-lien {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  text-decoration: none;
}

.carte-vide {
  text-align: center;
  max-width: 480px;
  margin: 40px auto;
  color: var(--brown-600);
  font-size: 1.15rem;
}

.carte-tabs {
  display: flex;
  position: sticky;
  top: 72px;
  z-index: 40;
  background: var(--cream);
  gap: 12px;
  overflow-x: auto;
  margin: 0 -24px 8px;
  padding: 12px 24px 18px;
  scrollbar-width: none;
}

.carte-tabs::-webkit-scrollbar {
  display: none;
}

.carte-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--brown-800);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(46, 27, 18, 0.12);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.carte-tab:active {
  transform: scale(0.95);
}

.categories-grille {
  max-width: 640px;
  margin: 0 auto;
}

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

.categorie-bloc {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
}

.accordion-radio:checked + .categorie-bloc {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* L'en-tête de chaque catégorie est remplacé par les onglets ci-dessus */
.categorie-entete-clic {
  display: none;
}

.articles-liste-volet {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.accordion-radio:checked + .categorie-bloc .articles-liste-volet {
  grid-template-rows: 1fr;
}

.articles-liste {
  overflow: hidden;
  min-height: 0;
}

.articles-liste-items {
  display: grid;
  gap: 12px;
  padding: 20px 24px;
}

.article-ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 14px 18px;
}

.article-ligne.epuise {
  opacity: 0.55;
}

.article-info .article-nom {
  font-weight: 800;
  font-size: 1.1rem;
}

.article-info .article-contenance {
  font-size: 0.9rem;
  color: var(--brown-600);
  font-weight: 700;
  margin-left: 8px;
}

.article-info .article-description {
  display: block;
  color: var(--brown-600);
  font-size: 0.95rem;
  margin-top: 2px;
}

.article-prix {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--terracotta);
  white-space: nowrap;
}

.tag-epuise {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--cream-dark);
  }

  .nav-links li {
    padding: 8px 24px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .article-ligne {
    flex-direction: column;
    gap: 4px;
  }
}
