/* Fototräume : feuille de style unique, sans police ni image externe */
:root {
  --bg: #faf5ee;
  --bg-soft: #f3eadf;
  --surface: #fffaf3;
  --text: #1c1917;
  --muted: #5b524b;
  --line: #e6d9c8;
  --accent: #d9622b;
  --accent-dark: #a9461a;
  --accent-soft: #f8dcc6;
  --radius: 14px;
  --measure: 42rem;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", 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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; top: 8px; }

/* En-tête */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.logo-mark { width: 34px; height: 34px; color: var(--text); flex: none; }
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
}
.nav a:hover { background: var(--accent-soft); color: var(--text); }
.nav a[aria-current="page"] { background: var(--text); color: var(--bg); }

main { padding-top: 32px; padding-bottom: 56px; }

/* Titres */
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 14px;
}

.kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 8px; max-width: var(--measure); }

/* Accueil */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.hero-art, .page-art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(110, 50, 24, .55);
}
.page-art { margin-top: 24px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 40px; }
}

.page-head { max-width: 52rem; margin-bottom: 8px; }

/* Texte courant */
.prose { max-width: var(--measure); }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }

/* Cartes des rubriques */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 24px;
}
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -22px rgba(110, 50, 24, .6);
}
.card svg { width: 44px; height: 44px; color: var(--text); margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* 404 */
.notfound { text-align: center; padding: 40px 0; }
.notfound .big {
  font-family: var(--serif);
  font-size: clamp(4rem, 18vw, 8rem);
  line-height: 1;
  margin: 0 0 8px;
  color: var(--accent);
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* Pied de page */
.site-footer { background: var(--text); color: #e9dfd3; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: .95rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin: 0; }
.footer-brand .logo-mark { color: #e9dfd3; width: 26px; height: 26px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #f3c8a6; }
.footer-links a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
