:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --fg: #1f1f1d;
  --muted: #5c5a55;
  --line: #e2ded5;
  --header: #1c1d21;
  --header-fg: #f3f1ec;
  --accent: #f9a825;
  --accent-ink: #1c1d21;
  --link: #a86500;
  --header-line: rgba(255, 255, 255, .3);
  --header-hover: rgba(255, 255, 255, .08);
  --header-accent: var(--accent);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font);
  --radius: 10px;
  --button-radius: 999px;
  --max: 70rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141518;
    --surface: #1d1e23;
    --fg: #ecebe7;
    --muted: #a9a7a0;
    --line: #2e3036;
    --header: #0d0e10;
    --link: #ffc35a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--fg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* En-tête */
.site-header {
  background: var(--header);
  color: var(--header-fg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  font-family: var(--font-heading);
}
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; }
#menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
#menu a {
  display: block;
  padding: .45rem .7rem;
  color: var(--header-fg);
  text-decoration: none;
  border-radius: 6px;
  font-size: .95rem;
}
#menu a:hover { background: var(--header-hover); }
#menu a[aria-current="page"] { color: var(--header-accent); box-shadow: inset 0 -2px 0 var(--header-accent); border-radius: 0; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--header-line);
  color: inherit;
  font: inherit;
  padding: .35rem .8rem;
  border-radius: 6px;
  cursor: pointer;
}
@media (max-width: 60rem) {
  .menu-toggle { display: block; }
  #menu { display: none; width: 100%; padding-bottom: .75rem; }
  #menu.open { display: block; }
  #menu ul { flex-direction: column; }
  #menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--header-accent); }
}

/* Bandeau */
.hero {
  height: clamp(10rem, 32vw, 22rem);
  background-size: cover;
  background-position: center;
}

/* Contenu */
main { padding-top: 2rem; padding-bottom: 3rem; }
main::after { content: ""; display: table; clear: both; }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; margin: 2rem 0 .75rem; font-family: var(--font-heading); }
.prose h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.prose h1::after, .prose h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: .5rem;
  background: var(--accent);
}
.prose ul { padding-left: 1.25rem; }
.prose li { margin: .3rem 0; }
figure { margin: 1.5rem 0; }
figure img { border-radius: var(--radius); }
figure.float-left { float: left; width: min(16rem, 40%); margin: 0 1.5rem 1rem 0; }
.prose + figure:not(.float-left) img { max-height: 32rem; width: auto; }

.cta { margin: 2rem 0; clear: both; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: var(--button-radius);
}
.button:hover { filter: brightness(1.07); }

/* Galeries */
.gallery {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: .75rem;
  margin: 1.5rem 0 2.5rem;
}
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 94vw; max-height: 88vh; width: auto; }
.lightbox button {
  position: absolute;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox .close { top: 1rem; right: 1rem; }
.lightbox .prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
}
.contact-cards li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.contact-cards h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--muted); }
.contact-cards p { margin: 0; }
.map iframe { width: 100%; height: 24rem; border: 0; border-radius: var(--radius); margin-top: 1rem; }

/* Pied de page */
.site-footer { background: var(--header); color: var(--header-fg); font-size: .95rem; padding: 1.5rem 0; }
.site-footer p { margin: .25rem 0; }
.site-footer a { color: var(--header-accent); }

/* Sélecteur de thème */
.theme-picker { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; }
.theme-picker select {
  background: var(--header);
  color: var(--header-fg);
  border: 1px solid var(--header-line);
  border-radius: 6px;
  font: inherit;
  padding: .25rem .5rem;
}

@media (max-width: 36rem) {
  figure.float-left { float: none; width: 60%; margin: 1rem auto; }
}
