/* Boulangerie Lumière – feuille de style partagée */

:root {
  --cream: #fbf6ee;
  --paper: #fffaf2;
  --brown: #3b2415;
  --brown-soft: #6b3f1d;
  --accent: #8a5a2b;
  --gold: #e8b04b;
  --gold-ink: #b7791f;
  --line: #e6d5bd;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--brown);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--brown-soft);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--brown); }

:focus-visible {
  outline: 3px solid var(--gold-ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--brown);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* En-tête et navigation (fonctionne sans JavaScript) */
.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--brown);
  color: var(--paper);
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--gold); }

.site-nav { display: block; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--paper); }

.menu-toggle { display: none; }
.menu-button { display: none; }

/* Boutons et sections */
.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: var(--brown-soft); color: var(--paper); }

main { display: block; }

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 6vw, 4rem);
  background: linear-gradient(135deg, var(--brown) 0%, var(--accent) 100%);
  color: var(--paper);
  border-bottom: 4px solid var(--gold);
}
.hero h1,
.hero .tagline { color: var(--paper); }
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #f7e3bd;
}
.hero-text { max-width: 36rem; }
.hero .button {
  background: var(--paper);
  color: var(--brown);
}
.hero .button:hover { background: var(--gold); color: var(--brown); }
.hero-art { width: 8rem; height: auto; opacity: 0.9; }

.section,
.page-intro {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 6vw, 4rem);
  max-width: 60rem;
  margin: 0 auto;
}
.section-alt { background: var(--paper); max-width: none; }
.section-alt > * { max-width: 60rem; margin-left: auto; margin-right: auto; }
.page-intro { padding-bottom: 0; }

/* Spécialités */
.specialties {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.specialty {
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.specialty p:last-child { margin-bottom: 0; }
.price {
  font-weight: 700;
  color: var(--brown-soft);
}
.unit { font-weight: 400; font-size: 0.9em; }
.more { margin-top: 1.5rem; }

/* Carte */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--accent);
}
.menu-list small { color: var(--brown-soft); }
.menu-list .price { white-space: nowrap; }

/* Horaires */
.hours {
  width: 100%;
  max-width: 28rem;
  border-collapse: collapse;
}
.hours th,
.hours td {
  padding: 0.6rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.hours thead th { color: var(--brown-soft); }

address { font-style: normal; margin-bottom: 1rem; }

/* Pied de page */
.site-footer {
  background: var(--brown);
  color: var(--paper);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  font-size: 0.95rem;
}
.footer-inner { max-width: 60rem; margin: 0 auto; }
.site-footer p { margin: 0 0 0.5rem; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
}
.copyright { margin-top: 1rem; color: #e9dcc6; }

/* Page 404 */
.not-found {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) 1rem;
  text-align: center;
}
.error-code {
  font-family: var(--serif);
  font-size: clamp(4rem, 15vw, 7rem);
  line-height: 1;
  color: var(--gold-ink);
  margin: 0;
}

/* Responsive : menu repliable sans JavaScript */
@media (max-width: 760px) {
  .menu-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
  }
  .menu-button {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 2px solid var(--paper);
    border-radius: 999px;
    color: var(--paper);
    cursor: pointer;
    user-select: none;
  }
  .menu-toggle:focus-visible + .menu-button {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
  }
  .site-nav { display: none; flex-basis: 100%; }
  .menu-toggle:checked ~ .site-nav { display: block; }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
  }
  .nav-list a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 250, 242, 0.2);
  }
  .hero { flex-direction: column-reverse; align-items: flex-start; }
  .hero-art { width: 5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: background-color 0.2s ease, color 0.2s ease; }
}
