/* =========================================================
   Mine Consulting — feuille de style
   Palette sobre et gastronomique : crème, terracotta, anthracite
   ========================================================= */

:root {
  --cream:      #faf6f0;
  --ink:        #2b2622;
  --terracotta: #b5563b;
  --olive:      #6b6a4b;
  --line:       #e3dacb;
  --muted:      #8a8178;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--terracotta); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- En-tête ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.site-header .container {
  display: flex; justify-content: space-between; align-items: center;
}
.brand { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: var(--ink); }
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: normal; }
.nav a { margin-left: 22px; text-decoration: none; font-size: .95rem; }

/* ---- Pied de page ---- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px; padding: 30px 0;
  font-size: .85rem; color: var(--muted); text-align: center;
}

/* ---- Titres ---- */
h1 { font-size: 2.1rem; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.page-intro { color: var(--muted); margin-bottom: 30px; }

/* ---- Grille d'articles ---- */
.article-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 30px;
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 18px; flex: 1; }
.card .badge {
  display: inline-block; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .05em; background: var(--olive); color: #fff;
  padding: 3px 8px; border-radius: 3px; margin-bottom: 8px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card p { font-size: .9rem; color: var(--muted); }

/* ---- Boutons ---- */
.btn {
  display: inline-block; background: var(--terracotta); color: #fff;
  text-decoration: none; padding: 10px 20px; border-radius: 4px;
  border: none; cursor: pointer; font-size: .95rem; font-family: inherit;
}
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #9a3324; }

/* ---- Article ---- */
.article-full { max-width: 720px; margin: 0 auto; }
.article-full .cover { width: 100%; border-radius: 6px; margin: 20px 0; }
.article-body { font-size: 1.05rem; }
.article-body p { margin-bottom: 16px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; margin: 20px 0; }
.video-wrap iframe { position: absolute; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; border-radius: 4px; }

/* ---- Boutons de partage ---- */
.share-row { margin: 30px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share-row button {
  font-family: inherit; cursor: pointer; margin-right: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 4px;
}

/* ---- Carte ---- */
#map { height: 520px; border-radius: 6px; border: 1px solid var(--line); }
.map-legend { margin: 16px 0; font-size: .9rem; }
.map-legend span { margin-right: 16px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }

/* ---- Formulaires ---- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .9rem; margin-bottom: 5px; font-weight: bold; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 9px 11px; font-family: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.notice { padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; }
.notice-ok  { background: #e6f0e2; color: #38561f; }
.notice-err { background: #f6e2de; color: #8a3322; }

/* =========================================================
   BACK-OFFICE
   ========================================================= */
.admin-body { background: #f2efe9; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: var(--ink); color: #d8d2c8;
  padding: 24px 0; flex-shrink: 0;
}
.admin-sidebar .brand-mini {
  padding: 0 22px 20px; font-size: 1.1rem; color: #fff;
  border-bottom: 1px solid #443d36; margin-bottom: 12px;
}
.admin-sidebar a {
  display: block; padding: 11px 22px; color: #d8d2c8;
  text-decoration: none; font-family: sans-serif; font-size: .92rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #443d36; color: #fff; }
.admin-sidebar .pill {
  background: var(--terracotta); color: #fff; font-size: .72rem;
  border-radius: 10px; padding: 1px 7px; margin-left: 6px;
}
.admin-main { flex: 1; padding: 32px 40px; font-family: sans-serif; }
.admin-main h1 { font-family: sans-serif; }

.stat-grid {
  display: grid; gap: 18px; margin: 24px 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 18px 20px;
}
.stat-card .num { font-size: 2rem; font-weight: bold; color: var(--terracotta); }
.stat-card .lbl { font-size: .82rem; color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  font-family: sans-serif; font-size: .9rem; }
.data-table th, .data-table td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: #f7f4ee; font-size: .8rem; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: none; }

.admin-main .form-field label { font-family: sans-serif; }
.bar { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: .85rem; }
.bar .track { background: var(--line); height: 14px; border-radius: 7px; flex: 1; }
.bar .fill { background: var(--olive); height: 100%; border-radius: 7px; }
.inline-form { display: inline; }
.toolbar { margin: 20px 0; }
.unread-row { font-weight: bold; }
