/* ════════════════════════════════════════════════════════════════
   CIMPLE PUBLIC SKIN — palette ivoire/marine/or, partagée par toutes
   les briques satellites. Cohérence visuelle avec la home (sanctuaire).
   À inclure en remplacement de chanel-skin.css (qui force du noir).
   ──────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root, html, body {
  /* Palette République élégante (skin "republicain") */
  --c1: #1E3A5F;            /* marine principale */
  --c2: #C5942C;            /* or accent */
  --bg: #F4F1EA;            /* ivoire fond */
  --card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #555555;
  --text-faint: rgba(26,26,26,.55);
  --line: rgba(0,0,0,.08);
  --line-mid: rgba(0,0,0,.18);
  /* Variables briques Cimple (compat) */
  --p: #1E3A5F;
  --accent: #C5942C;
  --muted: #6b6b6b;
  --border: rgba(0,0,0,.08);
  --border-mid: rgba(0,0,0,.15);
  --success: #16a34a;
  --danger: #c92c2c;
  --font-h: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-b) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Typographie ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-h) !important;
  color: var(--c1) !important;
  font-weight: 600 !important;
  letter-spacing: .005em !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}
h1 { font-size: 2.6rem !important; font-style: italic !important; }
h2 { font-size: 1.9rem !important; }
h3 { font-size: 1.35rem !important; }
h4 { font-size: 1.1rem !important; }

p { color: var(--text-soft) !important; line-height: 1.75 !important; }
strong { color: var(--text) !important; font-weight: 600 !important; }
a { color: var(--c1) !important; text-decoration: none; border-bottom: 1px dotted var(--c1); }
a:hover { color: var(--c2) !important; border-bottom-color: var(--c2); }

/* ── Filets ── */
hr, .separator {
  border: none !important;
  border-top: 1px solid var(--line) !important;
  margin: 36px 0 !important;
}

/* ── Header générique des briques ── */
body .header, body header.header {
  background: var(--c1) !important;
  color: #fff !important;
  padding: 18px 28px !important;
  border: none !important;
}
body .header *, body header.header * { color: #fff !important; }

/* ── Cartes / blocs ── */
body .card, body .menu-card, body .info-block, body .event,
body .maire-card, body .elu-card, body .concession,
body .lib-item, body .tpl-item, body .step-card, body .lieu-card,
body .pub-item {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
}

/* ── Boutons ── */
body .btn, body button.btn, body button {
  font-family: var(--font-b) !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  transition: all .15s !important;
}
body .btn, body button.btn {
  background: var(--c1) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
body .btn:hover, body button.btn:hover {
  background: var(--c2) !important;
  color: #fff !important;
}

/* ── Champs formulaire ── */
body input, body select, body textarea {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--line-mid) !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  font-family: var(--font-b) !important;
}
body input:focus, body select:focus, body textarea:focus {
  outline: 2px solid var(--c2) !important;
  outline-offset: -1px;
}

/* ── Tableaux ── */
table { border-collapse: collapse !important; width: 100% !important; }
th {
  font-size: .72rem !important; font-weight: 700 !important;
  letter-spacing: .15em !important; text-transform: uppercase !important;
  color: var(--c1) !important; padding: 12px 16px !important;
  border-bottom: 2px solid var(--c2) !important;
  background: transparent !important; text-align: left;
}
td {
  padding: 12px 16px !important; color: var(--text-soft) !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important; font-size: .92rem !important;
}
tr:hover td { background: rgba(197,148,44,.06) !important; }

/* ── Citations ── */
blockquote {
  border-left: 3px solid var(--c2) !important;
  padding: 14px 22px !important; margin: 28px 0 !important;
  color: var(--text-soft) !important;
  font-family: var(--font-h) !important;
  font-style: italic !important;
  background: rgba(197,148,44,.06) !important;
}

/* ── Badges / tags ── */
.badge, [class*="badge"], [class*="tag"], [class*="label"] {
  font-size: .68rem !important; font-weight: 700 !important;
  letter-spacing: .15em !important; text-transform: uppercase !important;
}

/* ── Liens "République Française" footer commun ── */
.cimple-footer-rf {
  background: var(--c1); color: #fff;
  padding: 18px 28px; text-align: center;
  font-family: var(--font-b); font-size: .82rem; letter-spacing: .05em;
}
.cimple-footer-rf a { color: var(--c2) !important; border-bottom: none; }

/* ── Bouton retour à l'accueil (bandeau supérieur léger) ── */
.cimple-topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 28px; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-b); font-size: .8rem;
}
.cimple-topbar a {
  color: var(--c1) !important; text-decoration: none; border-bottom: none;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.cimple-topbar a:hover { color: var(--c2) !important; }
.cimple-topbar .sep { color: var(--line-mid); margin: 0 4px; }
.cimple-topbar .commune-name {
  font-family: var(--font-h); font-style: italic; font-size: 1.05rem;
  color: var(--c1); border-bottom: none;
}
