/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --ink:        #1a1209;
  --sepia:      #5c4a1e;
  --gold:       #b8892a;
  --gold-light: #d4a84b;
  --parch:      #f0e6cc;
  --parch-dark: #e0cfa8;
  --cream:      #faf6ec;
  --chalk:      #f7f3e8;
  --shadow:     rgba(26,18,9,.18);
  --r:          4px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--cream); color: var(--ink); overflow-x: hidden; }

/* ── TOPBAR ── */
.topbar { background: var(--ink); padding: 0 2rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px var(--shadow); }
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.site-title { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
nav a { color: var(--parch); text-decoration: none; font-size: .78rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; padding: .45rem .65rem; border-radius: var(--r); transition: color .2s, background .2s; }
nav a:hover, nav a.active { color: var(--gold-light); background: rgba(255,255,255,.06); }


/* ── PAGE HERO ── */
.page-hero { background: var(--ink); padding: 4rem 2rem 3rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(105deg, transparent, transparent 60px, rgba(180,140,60,.04) 60px, rgba(180,140,60,.04) 61px), radial-gradient(ellipse 120% 80% at 50% 50%, #3d2e12 0%, #1a1209 100%); }
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.page-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--parch); line-height: 1.2; }
.page-title em { font-style: italic; color: var(--gold-light); }
.breadcrumb { margin-top: 1.2rem; font-size: .78rem; color: rgba(240,230,204,.5); }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ── RULE ── */
.rule { display: flex; align-items: center; gap: 12px; margin: 0 auto 2.5rem; color: var(--gold); max-width: 340px; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: var(--gold); }
.rule-diamond { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.rule-left { margin-left: 0; max-width: 200px; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 780px; margin: 0 auto; }
section { padding: 4.5rem 2rem; }
.section-head { margin-bottom: 2.5rem; }
.section-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--ink); line-height: 1.2; }
.section-lead { font-size: .98rem; color: var(--sepia); line-height: 1.7; margin-top: .6rem; }

/* ── BUTTONS ── */
.btn-primary { background: var(--gold); color: var(--ink); border: none; padding: .75rem 2rem; font-family: 'Source Sans 3', sans-serif; font-size: .88rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-radius: var(--r); text-decoration: none; display: inline-block; transition: background .2s, transform .15s; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--sepia); padding: .75rem 2rem; font-family: 'Source Sans 3', sans-serif; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--r); text-decoration: none; display: inline-block; transition: border-color .2s, color .2s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── GALLERY GRID ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.gallery-item { background: var(--cream); border: 2px solid var(--parch-dark); border-radius: var(--r); overflow: hidden; box-shadow: 2px 2px 8px var(--shadow); transition: transform .2s, box-shadow .2s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 4px 6px 18px var(--shadow); }
.gallery-item img { width: 100%; display: block; filter: sepia(15%) contrast(1.05); }
.gallery-caption { padding: .55rem .7rem; font-size: .78rem; font-style: italic; color: var(--sepia); border-top: 1px solid var(--parch-dark); line-height: 1.4; text-align: center; }

/* ── CTA BAR ── */
.cta-bar { background: var(--parch-dark); padding: 3rem 2rem; text-align: center; }
.cta-bar h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--ink); margin-bottom: .6rem; }
.cta-bar p { font-size: .9rem; color: var(--sepia); margin-bottom: 1.5rem; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: #110e07; color: rgba(240,230,204,.5); text-align: center; padding: 2rem; font-size: .78rem; letter-spacing: .04em; }
footer a { color: var(--gold); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  nav { display: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 540px) {
  .btn-group { flex-direction: column; }
}

/* ── RESPONSIVE MOBILE & TABLETTE ─────────────────── */

/* Navigation mobile */
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; padding: .5rem 1rem; min-height: auto; gap: .5rem; }
  .site-title { font-size: .85rem; }
  nav { display: flex; flex-wrap: wrap; gap: .1rem; width: 100%; justify-content: center; border-top: 1px solid rgba(255,255,255,.08); padding-top: .4rem; }
  nav a { font-size: .7rem; padding: .35rem .5rem; }
}

@media (max-width: 600px) {
  nav { gap: 0; }
  nav a { font-size: .65rem; padding: .3rem .4rem; }
  .site-title { font-size: .78rem; }
}

/* Hero responsive */
@media (max-width: 640px) {
  .hero { min-height: 70vh; }
  .hero-content { padding: 2rem 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

/* Stats bar */
@media (max-width: 640px) {
  .stats-bar-inner { gap: 1.2rem; padding: 1rem; }
  .stat-item .num { font-size: 1.5rem; }
}

/* Présentation grille */
@media (max-width: 820px) {
  .pres-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .photos-mosaic { grid-template-columns: 1fr 1fr; }
  .photos-mosaic .ph:first-child { grid-column: 1 / -1; }
}

/* Collections grid */
@media (max-width: 500px) {
  .coll-grid { grid-template-columns: 1fr !important; }
  .coll-hub { grid-template-columns: 1fr !important; }
}

/* Infos strip */
@media (max-width: 820px) {
  .infos-strip-inner { grid-template-columns: 1fr !important; gap: 1.5rem; }
}

/* Gallery */
@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
  .photo-grid { grid-template-columns: 1fr 1fr !important; }
  .obj-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Contact layout */
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* Partners */
@media (max-width: 500px) {
  .partners-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Page hero */
@media (max-width: 500px) {
  .page-hero { padding: 2.5rem 1rem 2rem; }
  .page-title { font-size: 1.6rem !important; }
}

/* User bar */
@media (max-width: 640px) {
  .user-bar { padding: .4rem 1rem; }
  .user-bar-inner { font-size: .72rem; gap: .5rem; flex-wrap: wrap; }
}

/* Actualités grid */
@media (max-width: 500px) {
  .actu-grid { grid-template-columns: 1fr !important; }
}

/* Publications grid */
@media (max-width: 500px) {
  .pub-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Article/Publication wrap */
@media (max-width: 600px) {
  .article-wrap, .pub-wrap { padding: 2rem 1rem; }
  .pub-cover-wrap { float: none; width: 100%; margin: 0 0 1.5rem 0; }
  .pdf-block { flex-direction: column; text-align: center; }
}

/* Admin */
@media (max-width: 600px) {
  .admin-wrap { padding: 1.5rem 1rem; }
  .form-row { grid-template-columns: 1fr !important; }
}

/* Décennie pub */
@media (max-width: 400px) {
  .pub-grid { grid-template-columns: 1fr !important; }
}

/* Fab button */
@media (max-width: 500px) {
  .fab { bottom: 1rem; right: 1rem; }
  .fab a { padding: .7rem 1rem; font-size: .8rem; }
}

/* Bouton groupe */
@media (max-width: 500px) {
  .btn-group { flex-direction: column; }
  .cta-group { flex-direction: column; align-items: center; }
}
