:root {
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-warm: #faf8f5;
  --accent: #8b6914;
  --accent-dark: #6b5010;
  --border: #e8e0d4;
  --header-bg: #2c2c2c;
  --header-text: #e8e0d4;
  --serif: 'Ovo', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e0dcd6;
    --text-light: #a8a29e;
    --bg: #1a1a1a;
    --bg-warm: #242220;
    --accent: #c9a033;
    --accent-dark: #dbb545;
    --border: #3d3830;
    --header-bg: #111;
    --header-text: #e8e0d4;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.7; font-weight: 300; }

.site-header { background: url('/img/accueil.webp') center/cover no-repeat; position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.site-header-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
@keyframes slideDown { from { transform: translateY(-125px); } to { transform: translateY(0); } }
.site-logo { position: absolute; top: 1rem; left: 1rem; width: 110px; height: auto; background: rgba(255,255,255,0.9); border-radius: 8px; padding: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.animate-logo .site-logo { animation: slideDown 0.5s ease-in-out both; }
.site-title { font-family: var(--serif); font-size: 2.9rem; font-weight: 400; letter-spacing: 0.05em; color: #fff; text-decoration: none; display: block; text-shadow: 0 2px 8px rgba(0,0,0,0.4); padding: 0 0.5rem; max-width: 100%; text-align: center; text-wrap: balance; }
.site-title:hover { color: #f0e8d8; text-decoration: none; }
.site-subtitle { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 0.4rem; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }

nav.main-nav { background: var(--bg-warm); border-bottom: 1px solid var(--border); text-align: center; padding: 0; position: sticky; top: 0; z-index: 50; }
nav.main-nav a { display: inline-block; padding: 0.85rem 1.25rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); text-decoration: none; transition: color 0.2s; }
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--accent); }
.lang-switch { position: relative; display: inline-block; margin-left: 0.5rem; padding-left: 1rem; border-left: 1px solid var(--border); vertical-align: middle; }
.lang-current { background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); padding: 0.85rem 0; }
.lang-current:hover { color: var(--accent); }
.lang-dropdown { display: none; position: absolute; right: 0; top: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); list-style: none; padding: 0.25rem 0; min-width: 8rem; z-index: 100; }
.lang-switch.open .lang-dropdown { display: block; }
.lang-dropdown li a { display: block; padding: 0.5rem 1rem; font-size: 0.8rem; color: var(--text); text-decoration: none; text-transform: none; letter-spacing: 0; }
.lang-dropdown li a:hover { background: var(--bg-warm); color: var(--accent); }

main { max-width: 50rem; margin: 0 auto; padding: 3rem 1.5rem; }
.hero { text-align: center; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.hero h1 { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--text); margin-bottom: 0.5rem; }
.hero .lead { font-size: 1.1rem; color: var(--text-light); font-weight: 300; max-width: 36rem; margin: 0 auto; }

h1 { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin-bottom: 1rem; color: var(--text); }
h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 2rem 0 0.75rem; color: var(--text); }
h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }

.section-block { margin-bottom: 2.5rem; }
.section-block h2 { text-align: center; }
.section-block h2::after { content: ''; display: block; width: 3rem; height: 1px; background: var(--accent); margin: 0.75rem auto 0; }

.btn { display: inline-block; padding: 0.7rem 2rem; font-family: var(--sans); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; transition: all 0.2s; margin: 0.5rem 0.25rem; }
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.card { border: 1px solid var(--border); padding: 1.5rem; text-align: center; }
.card h3 { font-family: var(--serif); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-light); }

article .meta { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.5rem; font-style: italic; }

.gallery-section { margin-bottom: 2.5rem; }
.gallery-section h2 { text-align: center; }
.gallery-section h2::after { content: ''; display: block; width: 3rem; height: 1px; background: var(--accent); margin: 0.75rem auto 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; margin-top: 1.5rem; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 3px; }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform 0.3s, opacity 0.3s; }
.gallery-grid img:hover { transform: scale(1.05); opacity: 0.9; }
.gallery-credit { text-align: center; font-size: 0.85rem; color: var(--text-light); font-style: italic; margin-bottom: 2rem; }

.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }

.site-footer { background: var(--bg-warm); border-top: 1px solid var(--border); margin-top: 3rem; padding: 0; }
.footer-inner { display: flex; align-items: flex-start; gap: 2rem; padding: 2rem 2rem 1.5rem; }
.footer-logo { flex-shrink: 0; }
.footer-logo img { width: 120px; height: auto; }
.footer-partenaires { flex: 1; min-width: 0; }
.partenaires-title { font-family: var(--sans); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.75rem; }
.partenaires-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.partenaires-grid img { height: 45px; width: auto; object-fit: contain; opacity: 0.8; transition: opacity 0.2s; }
.partenaires-grid img:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 1rem 2rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-light); margin: 0; }

@media (prefers-color-scheme: dark) { .footer-logo img { filter: invert(1); } .partenaires-grid img { background: rgba(255,255,255,0.9); border-radius: 4px; padding: 4px; } }

@media (max-width: 600px) {
  .site-title { letter-spacing: 0; }
  nav.main-nav a { padding: 0.6rem 0.75rem; font-size: 0.7rem; }
  main { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-partenaires { width: 100%; }
  .partenaires-grid { justify-content: center; }
}

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--header-bg); color: var(--header-text); border-top: 1px solid var(--border); padding: 1rem 1.5rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { max-width: 60rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--header-text); flex: 1 1 20rem; }
.cookie-banner a { color: var(--header-text); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner .btn { margin: 0; }
.cookie-banner .btn-accept { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-banner .btn-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.cookie-banner .btn-reject { border-color: var(--header-text); color: var(--header-text); }
.cookie-banner .btn-reject:hover { background: var(--header-text); color: var(--header-bg); }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}
