/*
 * variables.css — Feuille de style globale commune à toutes les pages
 * ══════════════════════════════════════════════════════════════════════
 * Contient l'intégralité du CSS du projet :
 *   - Variables CSS personnalisables (accent, typographie nav…)
 *   - Reset universel
 *   - Base body / header / footer communs
 *   - Page ADMIN
 *   - Pages ARTICLE (article.html + article.php)
 *   - Page INDEX
 *
 * Les valeurs des variables CSS sont écrasées dynamiquement par
 * applySettings() selon le contenu de data/settings.json
 * ══════════════════════════════════════════════════════════════════════
 */


/* ═══════════════════════════════════════════════════════════════════
   VARIABLES GLOBALES
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --hover:  #06a0a0;
  --beige:  #cec9bb;
  --dark:   #111;
  --border: #e8e8e8;
  --success: #4a7c59;
  --danger:  #8b3a3a;
  --side:    230px;
  --nav-font-family:        'Roboto', sans-serif;
  --nav-font-weight:        400;
  --nav-font-weight-hover:  800;
  --nav-font-size:          0.875rem;
  --nav-items-gap:          0px;
  --nav-letter-spacing:     0px;

  /* ── Typographie articles ── */
  --h2-font-family:    'Roboto Condensed', sans-serif;
  --h2-font-size:      21px;
  --h2-font-weight:    400;
  --h2-color:          #06a0a0;
  --h2-letter-spacing: 0.5px;
  --h3-font-size:      14px;
  --h3-font-weight:    500;
  --h3-color:          #111111;
  --h3-letter-spacing: 1px;
  --bq-border-color:   #cec9bb;
  --bq-bg:             rgba(206,201,187,0.1);
  --bq-color:          #777777;
  --bq-font-size:      15px;
  --bq-font-style:     italic;
}


/* ═══════════════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }


/* ═══════════════════════════════════════════════════════════════════
   BASE BODY
   ═══════════════════════════════════════════════════════════════════ */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.u-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease;
}
.u-header.always-dark,
.u-header.scrolled { background: rgba(0,0,0,0.82); }

.u-inner {
  max-width: 1135px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.u-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
/* Logo img dans le header public (index, article) */
.u-logo img { height: 31px; width: auto; }


/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.u-nav { display: flex; align-items: center; list-style: none; gap: var(--nav-items-gap); }
.u-nav li a {
  display: block;
  font-family:    var(--nav-font-family);
  font-weight:    var(--nav-font-weight);
  font-size:      var(--nav-font-size);
  letter-spacing: var(--nav-letter-spacing);
  color: #fff;
  text-decoration: none;
  padding: 0 8px;
  height: 68px;
  line-height: 68px;
  white-space: nowrap;
  transition: color 0.2s;
}
.u-nav li a:hover,
.u-nav li a.current { color: var(--hover); letter-spacing: var(--nav-letter-spacing); font-weight: var(--nav-font-weight-hover); }

.u-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.u-burger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.9); }


/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.u-footer { background: var(--beige); padding: 46px 20px 30px; text-align: center; }
.u-footer .u-sheet { max-width: 1135px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

.footer-logo svg { height: 48px; width: auto; margin-bottom: 16px; filter: invert(1) brightness(0); opacity: 0.6; }
/* Logo img dans le footer (toutes les pages) */
.footer-logo img { height: 48px; width: auto; margin-bottom: 16px; filter: invert(1) brightness(0); opacity: 0.6; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin-bottom: 18px; }
.footer-nav li a { font-size: 13px; font-weight: 400; color: rgba(0,0,0,0.55); text-decoration: none; padding: 3px 12px; transition: color 0.2s; white-space: nowrap; }
.footer-nav li a:hover { color: #000; }
.footer-copy { font-size: 11px; font-weight: 300; color: rgba(0,0,0,0.38); }


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — NAVIGATION MOBILE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .u-nav { display: none; }
  .u-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(0,0,0,0.93); list-style: none;
    padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.07);
  }
  .u-nav.open li a { height: 44px; line-height: 44px; padding: 0 20px; font-size: 13px; }
  .u-burger { display: flex; }
}


/* ══════════════════════════════════════════════════════════════════
   ADMIN — BODY
   ══════════════════════════════════════════════════════════════════ */
html:has(body.adm-body),
body.adm-body { height: 100%; }
body.adm-body { background: #f7f5f0; display: flex; flex-direction: column; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — TOPBAR
   ══════════════════════════════════════════════════════════════════ */
.topbar { height: 56px; background: #111; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; z-index: 100; }
.tb-brand { display: flex; align-items: center; gap: 14px; }
.adm-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; margin-right: 2px; }
.adm-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.adm-nav-overlay { display: none; }
.tb-brand img { height: 34px; width: auto; cursor: pointer; }
.tb-brand span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(206,201,187,0.75); font-weight: 300; }
.tb-brand .sep { color: rgba(255,255,255,0.2); }
.admin-badge { background: rgba(139,201,186,0.2); color: var(--hover); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 44px; }
.tb-links { display: flex; gap: 18px; }
.tb-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
.tb-links a:hover { color: rgba(255,255,255,0.85); }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — LAYOUT & SIDEBAR
   ══════════════════════════════════════════════════════════════════ */
.adm-wrap { display: flex; flex: 1; min-height: 0; }
.adm-nav { width: var(--side); background: #1a1a1a; flex-shrink: 0; overflow-y: auto; display: flex; flex-direction: column; }
.nav-sec { padding: 16px 0; }
.nav-sec-lbl { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: rgba(206,201,187,0.3); padding: 0 18px 8px; }
.nav-btn { display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: #FFF; font-size: 13px; font-weight: 300; cursor: pointer; background: none; border: none; width: 100%; text-align: left; transition: all 0.2s; font-family: 'Roboto', sans-serif; text-decoration: none; }
.nav-btn i { font-size: 0.95rem; width: 16px; }
.nav-btn:hover { background: rgba(255,255,255,0.04); color: rgba(206,201,187,0.9); }
.nav-btn.on { background: rgba(139,201,186,0.12); color: var(--hover); border-left: 2px solid var(--hover); font-weight: bold; }
.nav-btn .n { margin-left: auto; font-size: 10px; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 8px; color: #FFF; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — MAIN / PANELS
   ══════════════════════════════════════════════════════════════════ */
.adm-main { flex: 1; overflow-y: auto; }
.panel { display: none; padding: 32px 36px; }
.panel.on { display: block; }
.ph { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; padding-bottom: 18px; }
.ph .btn { margin-top: 0; }
.ph-col { flex-direction: column; align-items: flex-start; gap: 14px; }
.ph-title { font-family: 'Roboto Condensed', sans-serif; font-weight: 400; font-size: 22px; color: #111; letter-spacing: 0.5px; }
.ph-sub { font-size: 12px; color: #aaa; margin-top: 3px; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — BOUTONS
   ══════════════════════════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; font-family: 'Roboto', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.art-nav-btn { padding: 0; width: 38px; height: 38px; justify-content: center; border: 1px solid #ddd !important; background: #fff; border-radius: 3px; }
.art-nav-btn i { font-size: 18px; }
.art-nav-btn:hover:not(:disabled) { background: #f4f2ee; border-color: #111 !important; }
.btn-dk { background: var(--hover); color: #fff; margin-top: 20px;}
.btn-dk:hover { filter: brightness(0.85); }
.btn-ghost { background: transparent; color: #555; border: 1px solid #ddd; }
.btn-ghost:hover { border-color: #111; color: #111; }
.btn:disabled, .btn[disabled] { opacity: .3; cursor: not-allowed; pointer-events: none; }
.btn-red { background: transparent; border-color: var(--danger); }
.btn-red:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.ml-auto { margin-left: auto; }

/* Bouton "Générer depuis l'article" */
.btn-auto { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: none; border: 1px solid #ddd; border-radius: 20px; font-family: 'Roboto', sans-serif; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: #999; cursor: pointer; transition: all .2s; }
.btn-auto:hover { border-color: var(--hover); color: var(--hover); }
.btn-auto i { font-size: .75rem; }

/* Bouton "Auto-détecter" dans settings */
.btn-auto-detect { flex-shrink: 0; padding: 8px 14px; background: var(--hover); border: none; color: #fff; font-family: 'Roboto', sans-serif; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; white-space: nowrap; margin-bottom: 1px; }

/* Bouton "+ Ajouter" inline dans header de section settings */
.btn-add-link { float: right; padding: 2px 10px; background: #f7f5f0; border: 1px solid var(--border); color: #555; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: 'Roboto', sans-serif; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — STATS
   ══════════════════════════════════════════════════════════════════ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--border); padding: 13px 15px; display: flex; align-items: center; gap: 11px; border-radius: 4px; }
.stat-ico { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; border-radius: 6px; }
.stat-ico.a { background: rgba(17,17,17,0.06); color: #111; }
.stat-ico.p { background: rgba(74,124,89,0.1); color: #4a7c59; }
.stat-ico.d { background: rgba(200,200,200,0.2); color: #999; }
.stat-ico.c { background: rgba(139,201,186,0.15); color: var(--hover); }
.stat-n { font-family: 'Roboto Condensed', sans-serif; font-weight: 400; font-size: 22px; color: #111; line-height: 1; }
.stat-l { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; margin-top: 2px; }

/* Sélecteur de période (tableau de bord stats) */
.stats-range { display: flex; gap: 6px; }
.srbtn { background: #fff; border: 1px solid var(--border); color: #777; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 7px 14px; cursor: pointer; font-family: 'Roboto', sans-serif; transition: all 0.15s; }
.srbtn:hover { color: #111; border-color: #ccc; }
.srbtn.on { background: var(--hover); color: #fff; border-color: var(--hover); font-weight: 500; }

/* Grille 3 colonnes pour les camemberts */
.stats-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
@media (max-width: 1100px) { .stats-grid-3 { grid-template-columns: 1fr; } }

/* Listes classement (articles les + lus / mots-clés) */
.stat-rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.stat-rank-row:last-child { border-bottom: none; }
.stat-rank-n { font-family: 'Roboto Condensed', sans-serif; font-size: 13px; color: #bbb; width: 20px; flex-shrink: 0; text-align: right; }
.stat-rank-lbl { flex: 1; font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-rank-bar-wrap { width: 90px; height: 6px; background: #f0f0ee; flex-shrink: 0; }
.stat-rank-bar { height: 100%; background: var(--hover); }
.stat-rank-count { font-size: 12px; color: #888; width: 30px; text-align: right; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — TABLE
   ══════════════════════════════════════════════════════════════════ */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; padding: 8px 13px; font-weight: 400; background: #fff; }
.tbl td { padding: 12px 13px; background: #fff; font-size: 13px; vertical-align: middle; }
.tbl tbody tr:nth-child(odd) td { background: rgba(0,0,0,0.03); }
.tbl tr:hover td { background: #fdf9f5; }
.tbl-thumb { width: 55px; height: 42px; object-fit: cover; display: block; }
.tbl-ttl { font-size: 13px; color: #111; font-weight: 400; }
.tbl-ttl small { display: block; font-size: 10px; color: #bbb; margin-top: 2px; font-weight: 300; }
.badge { display: inline-block; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; }
.badge-pub { background: rgba(74,124,89,0.1); color: #4a7c59; }
.badge-dft { background: rgba(200,200,200,0.2); color: #999; }
.badge-sched { background: rgba(52,101,164,0.12); color: #3465a4; }
.badge-feat { background: rgba(212,160,23,0.14); color: #b8860b; font-weight: 700; }
.cat-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.cc { background: #f5f0e8; color: #888; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; padding: 2px 7px; }
.row-acts { display: flex; gap: 5px; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — COMMENTAIRES
   ══════════════════════════════════════════════════════════════════ */
.cm-filter-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.cm-filter-btn { border: 1px solid #e6e2d8; background: #fff; color: #888; font-size: 12px; padding: 8px 15px; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all .15s; }
.cm-filter-btn .n { background: #f0ece2; color: #999; font-size: 10px; padding: 1px 7px; border-radius: 10px; }
.cm-filter-btn:hover { border-color: var(--hover); color: var(--hover); }
.cm-filter-btn.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.cm-filter-btn.on .n { background: rgba(255,255,255,0.2); color: #fff; }

.cm-adm-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid #ececec; border-radius: 5px; padding: 15px 17px; margin-bottom: 10px; }
.cm-adm-main { flex: 1; min-width: 0; }
.cm-adm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.cm-adm-email { font-size: 11px; color: #aaa; }
.cm-adm-date { font-size: 11px; color: #bbb; margin-left: auto; }
.cm-adm-art { font-size: 11.5px; color: #888; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.cm-adm-art a { color: var(--hover); text-decoration: none; }
.cm-adm-art a:hover { text-decoration: underline; }
.cm-adm-msg { font-size: 13px; color: #333; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cm-adm-acts { flex-shrink: 0; }

.art-cm-mgr { max-width: 900px; margin: 34px auto 0; border-top: 1px solid #ececec; padding-top: 24px; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — WIDGET "ARTICLE À LA UNE"
   ══════════════════════════════════════════════════════════════════ */
.widget-style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
.widget-style-opt { border: 1.5px solid #e6e2d8; background: #fff; border-radius: 6px; padding: 14px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: all .15s; }
.widget-style-opt:hover { border-color: var(--hover); }
.widget-style-opt.on { border-color: var(--hover); background: rgba(6,160,160,0.06); }
.wso-lbl { font-size: 11.5px; color: #666; font-weight: 500; }
.widget-style-opt.on .wso-lbl { color: var(--hover); font-weight: 700; }
.wso-swatch { width: 100%; height: 46px; border-radius: 4px; overflow: hidden; display: flex; background: #eee; }
.wso-a { position: relative; background: linear-gradient(to top, #333 30%, #999 100%); }
.wso-a span { position: absolute; bottom: 6px; left: 6px; width: 55%; height: 6px; background: #fff; border-radius: 2px; }
.wso-b { }
.wso-b span:nth-child(1) { flex: 1; background: #bbb; }
.wso-b span:nth-child(2) { flex: 1; background: #A9801A; }
.wso-c { flex-direction: column; }
.wso-c span:nth-child(1) { flex: 1.4; background: #bbb; }
.wso-c span:nth-child(2) { flex: 1; background: #fff; border-top: 1px solid #eee; }
.wso-d { align-items: center; gap: 6px; padding: 6px; background: #fff; border: 1px solid #eee; }
.wso-d span:nth-child(1) { width: 32px; height: 32px; border-radius: 6px; background: #bbb; flex-shrink: 0; }
.wso-d span:nth-child(2) { flex: 1; height: 6px; background: #ddd; border-radius: 2px; }

.widget-preview-box { border: 1px dashed #d8d3c8; border-radius: 6px; padding: 18px; background: #faf9f6; overflow: hidden; }
.widget-code-out { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 11.5px; line-height: 1.6; color: #444; background: #fbfaf7; resize: vertical; white-space: pre; overflow: auto; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — FORMULAIRE
   ══════════════════════════════════════════════════════════════════ */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg.full { grid-column: 1/-1; }
.fg.fg-end { justify-content: flex-end; }
.fg.fg-mb { margin-bottom: 12px; }
.fg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.flbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; }
.fin { padding: 8px 12px; border: 1px solid var(--border); background: #fff; font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 300; color: #111; outline: none; transition: border-color 0.2s; }
.fin:focus { border-color: var(--hover); }
.fin::placeholder { color: rgba(170,170,170,0.6); }
textarea.fin { resize: vertical; }
.fin.w-full { width: 100%; }
.fin.fin-ta { min-height: 70px; }
.fin.hex-input { width: 90px; }
.fin.range-val { width: 72px; text-align: center; }
.img-row { display: flex; }
.img-row .fin { flex: 1; border-right: none; }
.img-row button { padding: 8px 12px; background: var(--hover); color: #fff; border: 1px solid var(--hover); cursor: pointer; transition: filter 0.2s; font-size: 1.6rem; white-space: nowrap; }
.img-row button:hover { filter: brightness(0.85); }
.img-upload-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; margin: 0; background: #f7f5f0; border: 1px solid var(--border); color: #555; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; white-space: nowrap; font-family: 'Roboto', sans-serif; }
.img-upload-btn:hover { background: var(--hover); color: #fff; border-color: var(--hover); }
.img-upload-btn input[type=file] { display: none; }
.upload-progress { display: none; font-size: 11px; color: var(--hover); margin-top: 5px; letter-spacing: 1px; }
.upload-progress.show { display: block; }
.img-prev { margin-top: 7px; max-height: 120px; max-width: 100%; object-fit: contain; display: none; margin-left: 0; margin-right: auto; }
.img-source-row { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.fg-img-col { flex: 1 1 320px; display: flex; flex-direction: column; gap: 5px; }
.fg-source-col { flex: 1 1 280px; display: flex; flex-direction: column; gap: 5px; }
.fg-source-col textarea.fin { min-height: 92px; }
.cats-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.related-grid select { width: 100%; min-width: 0; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

.rel-combo { position: relative; width: 100%; min-width: 0; }
.rel-combo.active { z-index: 500; }
.rel-combo-input { width: 100%; cursor: text; }
.rel-combo-list { display: none; position: absolute; z-index: 500; top: calc(100% + 4px); left: 0; right: 0; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.rel-combo-list.open { display: block; }
.rel-combo-item { padding: 7px 12px; font-size: 13px; font-weight: 300; color: #111; cursor: pointer; }
.rel-combo-item:hover, .rel-combo-item.sel { background: var(--hover); color: #fff; }
.rel-combo-item.auto { color: #999; border-bottom: 1px solid var(--border); }
.rel-combo-item.auto:hover, .rel-combo-item.auto.sel { color: #fff; }
.rel-combo-empty { padding: 8px 12px; font-size: 12px; color: #999; font-style: italic; }
.cat-cb input { display: none; }
.cat-cb label { display: flex; align-items: center; gap: 5px; cursor: pointer; border: 1px solid var(--border); padding: 4px 11px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #888; transition: all 0.2s; background: #fff; font-family: 'Roboto', sans-serif; }
.cat-cb input:checked + label { background: var(--hover); color: #fff; border-color: var(--hover); }
.cat-cb label:hover { border-color: var(--hover); }
.tog-wrap { display: flex; align-items: center; gap: 10px; }
.tog { position: relative; width: 40px; height: 20px; }
.tog input { display: none; }
.tog-t { position: absolute; inset: 0; background: var(--border); border-radius: 10px; cursor: pointer; transition: background 0.3s; }
.tog input:checked ~ .tog-t { background: #4a7c59; }
.tog-k { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); transition: transform 0.3s; pointer-events: none; }
.tog input:checked ~ .tog-k { transform: translateX(20px); }
.tog-lbl { font-size: 12px; color: #aaa; }
.row-date-tog { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.fg-date { max-width: 160px; }
.factions { display: flex; gap: 9px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.factions .btn { margin-top: 0; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — ÉDITEUR QUILL
   ══════════════════════════════════════════════════════════════════ */
.editor-wrap { border: 1px solid var(--border); background: #fff; }
.editor-wrap .ql-toolbar { border: none; background: #fafafa; font-family: 'Roboto', sans-serif; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #eee; }
.editor-wrap .ql-container { border: none; font-family: 'Roboto', sans-serif; font-size: 14px; min-height: 360px; }
.editor-wrap .ql-editor { min-height: 360px; font-weight: 300; line-height: 1.8; color: #333; padding: 16px; }
.editor-wrap .ql-editor h2 { font-family: var(--h2-font-family); font-size: var(--h2-font-size); color: var(--h2-color); margin: 28px 0 12px; padding-bottom: 8px; line-height: 1.2; }
.editor-wrap .ql-editor h2:has(+ h2) { margin-bottom: 0; }
.editor-wrap .ql-editor h2 + h2 { margin-top: 0; }
.editor-wrap .ql-editor h3 { line-height: 1.2; }
.editor-wrap .ql-editor h3:has(+ h3) { margin-bottom: 0; }
.editor-wrap .ql-editor h3 + h3 { margin-top: 0; }
.editor-wrap .ql-editor blockquote { border-left: 2px solid var(--bq-border-color); margin: 24px 0; padding: 12px 18px; background: var(--bq-bg); font-style: var(--bq-font-style); color: var(--bq-color); }
.editor-wrap .ql-editor p { margin: 0 0 14px; }
.editor-wrap .ql-editor a { color: var(--hover); }
.editor-wrap .ql-picker { font-family: 'Roboto', sans-serif; font-size: 13px; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — CATÉGORIES / AUTEURS
   ══════════════════════════════════════════════════════════════════ */
.cats-mgr { display: flex; gap: 22px; align-items: flex-start; }
.cats-tbl { flex: 1; background: #f7f5f0; border: 1px solid var(--border); }
.cats-add { width: 240px; background: #f7f5f0; border: 1px solid var(--border); padding: 20px; flex-shrink: 0; }
.cats-add h3 { font-family: 'Roboto Condensed', sans-serif; font-weight: 400; font-size: 16px; color: #111; margin-bottom: 13px; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — TOASTS
   ══════════════════════════════════════════════════════════════════ */
.toasts { position: fixed; top: 64px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 7px; }
.toast { padding: 11px 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; min-width: 230px; animation: tin .3s ease; box-shadow: 0 3px 16px rgba(0,0,0,0.15); font-family: 'Roboto', sans-serif; font-weight: 300; }
.toast.ok { background: #4a7c59; }
.toast.err { background: #8b3a3a; }
.toast i { font-size: 0.95rem; flex-shrink: 0; }
@keyframes tin { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — MODAL
   ══════════════════════════════════════════════════════════════════ */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-bg.open { display: flex; }
.modal { background: #fff; padding: 34px; max-width: 380px; width: 90%; }
.modal h3 { font-family: 'Roboto Condensed', sans-serif; font-size: 18px; color: #111; margin-bottom: 9px; }
.modal p { font-size: 13px; color: #888; margin-bottom: 24px; line-height: 1.6; }
.modal-acts { display: flex; gap: 9px; justify-content: flex-end; }
.modal-acts .btn { margin-top: 0; }

/* Modal "modifications non enregistrées" : libellés longs → boutons empilés
   pleine largeur plutôt que côte à côte, et modal un peu plus large. */
#unsavedModal .modal { max-width: 460px; }
#unsavedModal .modal-acts { flex-direction: column; align-items: stretch; }
#unsavedModal .modal-acts .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — CORRECTEUR GRAMMATICAL
   ══════════════════════════════════════════════════════════════════ */
.gram-modal { max-width: 520px; }
.gram-counter { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--hover); margin-bottom: 14px; font-weight: 400; }
.gram-rule { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #bbb; margin-bottom: 16px; }
.gram-context { background: #f7f5f0; padding: 14px 16px; font-size: 13px; line-height: 1.8; color: #444; margin-bottom: 18px; border-left: 2px solid #ddd; }
.gram-context mark { background: #ffe08a; color: #111; padding: 0 2px; border-radius: 2px; font-style: normal; }
.gram-suggestion { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.gram-suggestion-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; flex-shrink: 0; }
.gram-suggestion-val { font-size: 13px; color: #111; background: #edfaf5; padding: 4px 10px; border: 1px solid #c3e8d8; border-radius: 2px; font-weight: 400; }
.gram-suggestion-val.no-suggestion { color: #aaa; font-style: italic; background: none; border: none; padding: 4px 0; }
.gram-acts { display: flex; gap: 9px; align-items: center; justify-content: flex-end; }
.gram-acts .btn-ghost-cancel { margin-right: auto; }
.gram-acts .btn-dk { margin-top: 0; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — ARTICLES RÉCENTS (dashboard)
   ══════════════════════════════════════════════════════════════════ */
.rec-card { background: #fff; border: 1px solid var(--border); padding: 16px; border-radius: 4px; }
.rec-card-title {font-size: 13px; font-weight: 400; color: #111; margin-bottom: 14px; padding-bottom: 10px; letter-spacing: 0.5px; }
.rec-row {   display: flex; align-items: center; gap: 11px; padding: 10px 8px; }
.rec-row:nth-child(odd) { background: rgba(206,201,187,0.3); }
.rec-row:last-child { border-bottom: none; }
.rec-img { width: 50px; height: 38px; object-fit: cover; flex-shrink: 0; }
.rec-info { flex: 1; min-width: 0; }
.rec-info .rt { font-size: 13px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-info .rd { font-size: 10px; color: #bbb; margin-top: 2px; }
.empty-m { padding: 36px; text-align: center; color: #bbb; font-size: 13px; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — PANNEAU PARAMÈTRES
   ══════════════════════════════════════════════════════════════════ */
.settings-wrap { display: grid; gap: 22px; max-width: 680px; }
.settings-card { background: #fff; border: 1px solid var(--border); padding: 24px; display: grid; gap: 16px; }
.settings-card.gap-sm { gap: 12px; }
.settings-card.gap-md { gap: 14px; }
.settings-sec { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; padding-bottom: 8px; }
.flex-end-row { display: flex; align-items: flex-end; gap: 10px; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-1 { flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-gap-sm { display: grid; gap: 8px; }
.grid-2-sm { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.color-input { width: 40px; height: 34px; padding: 2px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.range-input { flex: 1; accent-color: var(--hover); }
.nav-preview-box { border: 1px dashed var(--border); background: #0c0c0c; border-radius: 4px; padding: 0 20px; display: flex; align-items: center; gap: 0; overflow: hidden; height: 52px; }
#ornPreviewBox { height: 200px; }
.nav-preview-lbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #555; white-space: nowrap; flex-shrink: 0; margin-right: 8px; }
.nav-preview-item { color: #fff; transition: all .2s; cursor: default; padding: 0 8px; height: 52px; display: flex; align-items: center; }
.nav-preview-hover { transition: all .2s; cursor: default; padding: 0 8px; height: 52px; display: flex; align-items: center; }
.text-hint { font-size: 11px; color: #aaa; }
.text-hint-mtn8 { font-size: 11px; color: #aaa; margin-top: -8px; }
.text-hint-mt4 { font-size: 11px; color: #aaa; margin-top: 4px; }
.text-hint-mtn6 { font-size: 11px; color: #aaa; margin-top: -6px; }
.warn-msg { font-size: 11px; color: var(--danger); display: none; }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — HERO
   ══════════════════════════════════════════════════════════════════ */
.art-hero { position: relative; height: 68vh; min-height: 400px; max-height: 620px; overflow: hidden; }
/* height: 130% pour le parallaxe */
.art-hero img { width: 100%; height: 1O0%; object-fit: cover; display: block; will-change: transform; transform: translateY(0); transition: transform 0s linear; }
.art-hero-ov { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,0.75) 0%,rgba(0,0,0,0.18) 60%,transparent 100%); }
.art-hero-cnt { position: absolute; bottom: 0; left: 0; right: 0; max-width: 1135px; margin: 0 auto; padding: 0 20px 48px; }
.art-cats { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.art-cat { background: rgba(206,201,187,0.88); color: #000; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 11px; font-family: 'Roboto', sans-serif; font-weight: 400; }
.art-title { font-family: 'Roboto', sans-serif; font-weight: 300; font-size: clamp(20px,3vw,32px); color: #fff; line-height: 1.32; margin-bottom: 14px; max-width: 780px; }
.art-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.7); letter-spacing: .5px; }
.art-meta span { display: flex; align-items: center; gap: 5px; }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — NAVIGATION HERO (précédent / suivant)
   ══════════════════════════════════════════════════════════════════ */
.hero-nav { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 10; padding: 0 18px; text-decoration: none; color: rgba(255,255,255,0.65); transition: color .2s; }
.hero-nav.hero-prev { left: 0; background: linear-gradient(90deg,rgba(0,0,0,0.28) 0%,transparent 100%); }
.hero-nav.hero-next { right: 0; background: linear-gradient(270deg,rgba(0,0,0,0.28) 0%,transparent 100%); }
.hero-nav:hover { color: #fff; }
.hero-nav i { font-size: 1.9rem; display: block; }
.hero-nav span { font-family: 'Roboto Condensed', sans-serif; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; display: block; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-nav.hero-next span { transform: rotate(0deg); }
@media(max-width:600px) { .hero-nav { padding: 0 10px; } .hero-nav span { display: none; } }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — FIL D'ARIANE
   ══════════════════════════════════════════════════════════════════ */
.bc-wrap { background: #F8F6F1; border-bottom: 1px solid #ebebeb; }
.bc { max-width: 1135px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 7px; font-size: 11px; color: #555; letter-spacing: .5px; }
.bc a { color: #bbb; text-decoration: none; transition: color .2s; }
.bc a:hover { color: var(--hover); }
.bc i { font-size: .7rem; }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — LAYOUT & CONTENU
   ══════════════════════════════════════════════════════════════════ */
.art-layout { max-width: 1135px; margin: 0 auto; padding: 58px 20px 78px; display: grid; grid-template-columns: 255px 1fr; gap: 58px; align-items: initial; overflow: hidden; }
article { min-width: 0; }
.art-body { font-size: 15px; font-weight: 300; line-height: 1.85; color: #333; overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; }
.art-body h2 { font-family: var(--h2-font-family); font-weight: var(--h2-font-weight); font-size: var(--h2-font-size); letter-spacing: var(--h2-letter-spacing); color: var(--h2-color); margin: 0 0 15px; line-height: 1.2; }
.art-body h2:has(+ h2) { margin-bottom: 0; }
.art-body h3 { font-weight: var(--h3-font-weight); font-size: var(--h3-font-size); letter-spacing: var(--h3-letter-spacing); text-transform: uppercase; color: var(--h3-color); margin: 28px 0 11px; line-height: 1.2; }
.art-body h3:has(+ h3) { margin-bottom: 0; }
.art-body h3 + h3 { margin-top: 0; }
/* Premier élément de l'article collé en haut (aligné avec le bloc gauche) */
.art-body > *:first-child { margin-top: 0; }
.art-body p { margin-bottom: 17px; }
.art-body a { color: var(--hover); text-decoration: underline; text-underline-offset: 3px; }
.art-body blockquote { border-left: 2px solid var(--bq-border-color); margin: 34px 0; padding: 16px 22px; background: var(--bq-bg); font-style: var(--bq-font-style); font-size: var(--bq-font-size); color: var(--bq-color); }
.art-body ul, .art-body ol { padding-left: 20px; margin-bottom: 17px; }
.art-body li { margin-bottom: 5px; }
.art-body strong { font-weight: 500; }
.art-body img { width: 100%; height: auto; margin: 22px 0; display: block; }
.art-body iframe, .art-body video, .art-body embed, .art-body table, .art-body pre { max-width: 100%; overflow-x: auto; }
.art-body table { border-collapse: collapse; width: 100%; margin: 28px 0; font-size: 14px; display: table; }
.art-body table td, .art-body table th { border: 1px solid #d8d3c8; padding: 11px 14px; text-align: left; vertical-align: top; line-height: 1.6; }
.art-body table tr:first-child td, .art-body table th { background: #faf9f7; font-weight: 500; }
.art-body table td strong { font-weight: 600; }
.art-source { margin-top: 28px; font-size: 11px; font-weight: 300; font-style: italic; color: #999; line-height: 1.7; }
.art-source-row { margin-top: 11px; }
.art-source-row i { margin-right: 5px; }
.art-source-lbl { font-weight: 700; }
.art-tags { margin-top: 44px; padding-top: 26px; border-top: 1px solid #ebebeb; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.tts-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #e8e4db; background: #faf9f7; margin-bottom: 28px; }
.tts-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--hover); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s; }
.tts-btn:hover { opacity: .82; }
.tts-btn i { color: #fff; font-size: 15px; }
.tts-info { flex: 1; min-width: 0; }
.tts-lbl { font-family: 'Roboto Condensed', sans-serif; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #bbb; line-height: 1; }
.tts-status { font-size: 12px; color: #777; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tts-prog-wrap { flex: 1; height: 2px; background: #e8e4db; max-width: 160px; flex-shrink: 0; }
.tts-prog { height: 100%; width: 0%; background: var(--hover); transition: width .3s; }
.tts-time { font-family: 'Roboto Condensed', sans-serif; font-size: 11px; color: #bbb; flex-shrink: 0; min-width: 30px; text-align: right; }
.tts-speed { font-family: 'Roboto Condensed', sans-serif; font-size: 10px; color: #aaa; cursor: pointer; border: 1px solid #e0dbd2; background: none; padding: 3px 7px; letter-spacing: 1px; }
.tts-speed:hover { color: #555; border-color: #bbb; }
.tts-voice { font-family: 'Roboto Condensed', sans-serif; font-size: 10px; letter-spacing: .5px; color: #888; cursor: pointer; border: 1px solid #e0dbd2; background: #fff; padding: 3px 6px; max-width: 130px; outline: none; }
.tts-voice:hover { color: #555; border-color: #bbb; }
.tts-speed-radios { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.tts-speed-radios label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: #555; }
.tts-speed-radios input[type="radio"] { accent-color: var(--hover); width: 15px; height: 15px; cursor: pointer; }
.tts-rspan { font-size: 11px; color: #aaa; }
.art-tag-lbl { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #bbb; }
.atag { border: 1px solid #e0e0e0; padding: 4px 11px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #888; text-decoration: none; transition: all .2s; }
.atag:hover { background: var(--hover); color: #fff; border-color: var(--hover); }
.art-cta { background: var(--hover); padding: 42px 38px; margin-top: 42px; text-align: center; border-radius: 4px; }
.art-cta p { font-weight: 300; font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 22px; }
.art-cta a { display: inline-block; border: 1px solid rgba(255,255,255,0.45); color: #fff; text-decoration: none; padding: 9px 28px; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; transition: all .3s; }
.art-cta a:hover { background: #cec9bb; color: #111; border-color: #cec9bb; }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — SIDEBAR
   ══════════════════════════════════════════════════════════════════ */
.art-sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 16px; }
.sw { border: 1px solid #ebebeb; background: #F8F6F1; padding: 17px; border-radius: 4px; }
.sw-ttl { font-size: 10px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: #111; margin-bottom: 13px; }
.back-lnk { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--hover); font-size: 11px; font-weight: 700;letter-spacing: 1px; text-transform: uppercase; transition: all .2s; }
.back-lnk:hover { color: var(--hover); }
.back-lnk.back-lnk-accent { color: var(--hover); }
.back-lnk i { font-size: .9rem; }
.share-row { display: flex; gap: 6px; }
.shr-b { flex: 1; display: flex; align-items: center; justify-content: center; padding: 4px 2px; border: 1px solid #e0e0e0; border-radius: 44px; cursor: pointer; background: none; transition: all .2s; color: #999; font-size: 1.6rem; }
.shr-b:hover { background: var(--hover); color: #fff; border-color: var(--hover); }
.related-list { list-style: none; }
.related-list li a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #f2f2f2; text-decoration: none; color: #444; transition: color .2s; font-size: 13px; font-weight: 300; line-height: 1.35; }
.related-list li:last-child a { border-bottom: none; }
.related-list li a:hover { color: var(--hover); }
.rel-img { width: 55px; height: 43px; object-fit: cover; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — COMMENTAIRES
   ══════════════════════════════════════════════════════════════════ */
.art-comments { margin-top: 44px; padding-top: 30px; border-top: 1px solid #ebebeb; }
.cm-loading { font-size: 13px; color: #aaa; }
.cm-head { display: flex; align-items: center; gap: 8px; font-family: 'Roboto Condensed', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .5px; color: #111; margin-bottom: 22px; }
.cm-head i { color: var(--hover); font-size: 1.15em; }

.cm-list { list-style: none; margin-bottom: 34px; display: flex; flex-direction: column; gap: 22px; }
.cm-item { display: flex; gap: 13px; align-items: flex-start; }
.cm-avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--hover); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.cm-body { flex: 1; min-width: 0; }
.cm-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cm-name { font-size: 13px; font-weight: 700; color: #111; }
.cm-date { font-size: 11px; color: #aaa; }
.cm-msg { font-size: 14px; font-weight: 300; line-height: 1.65; color: #444; word-break: break-word; }
.cm-empty { font-size: 13px; color: #aaa; font-style: italic; margin-bottom: 30px; }

.cm-form { border: 1px solid #ebebeb; background: #F8F6F1; padding: 22px; border-radius: 4px; max-width: 620px; }
.cm-form-ttl { font-size: 10px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: #111; margin-bottom: 15px; }
.cm-form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cm-input { flex: 1; min-width: 180px; border: 1px solid #ddd6c9; background: #fff; padding: 10px 13px; font-size: 13px; font-family: 'Roboto', sans-serif; font-weight: 300; color: #333; border-radius: 3px; outline: none; transition: border-color .2s; }
.cm-input:focus { border-color: var(--hover); }
.cm-textarea { width: 100%; min-height: 100px; resize: vertical; margin-bottom: 12px; line-height: 1.6; }
.cm-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cm-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cm-form-note { font-size: 11px; color: #999; line-height: 1.5; }
.btn-cm-submit { flex-shrink: 0; border: 1px solid var(--hover); background: var(--hover); color: #fff; padding: 10px 26px; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border-radius: 3px; transition: all .2s; }
.btn-cm-submit:hover { opacity: .85; }
.btn-cm-submit:disabled { opacity: .6; cursor: default; }
.cm-form-msg { margin-top: 12px; font-size: 12.5px; }
.cm-form-msg.ok { color: var(--success); }
.cm-form-msg.err { color: var(--danger); }
.cm-closed { font-size: 13px; color: #999; background: #F8F6F1; border: 1px solid #ebebeb; padding: 16px 18px; border-radius: 4px; display: flex; align-items: center; gap: 8px; }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — NOT FOUND
   ══════════════════════════════════════════════════════════════════ */
.notfound { max-width: 480px; margin: 120px auto; text-align: center; padding: 0 20px; }
.notfound h2 { font-family: 'Roboto Condensed', sans-serif; font-size: 24px; color: var(--hover); margin-bottom: 9px; }
.notfound p { font-size: 13px; color: #bbb; margin-bottom: 22px; }
.notfound a { text-decoration: none; display: inline-block; border: 1px solid var(--hover); padding: 9px 26px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--hover); transition: all .2s; }
.notfound a:hover { background: var(--hover); color: #fff; }


/* ══════════════════════════════════════════════════════════════════
   ARTICLE — RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media(max-width:900px) { .art-layout { grid-template-columns: 1fr; } .art-sidebar { position: static; } }
@media(max-width:600px) { .art-hero-cnt { padding-bottom: 28px; } .art-layout { padding: 36px 20px 58px; } }


/* ══════════════════════════════════════════════════════════════════
   INDEX — HERO VIDÉO
   ══════════════════════════════════════════════════════════════════ */
.hero { position: relative; width: 100%; height: 40vh; min-height: 500px; overflow: hidden; background: #000; }
.hero video { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 130%; object-fit: cover; display: block; will-change: transform; transform: translateY(0); }
.hero img  { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); }
.hero-center { margin-top: 0; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0; }
/* hero-inner : même contraintes que .u-inner — le texte ne dépasse jamais le logo ni le menu */
.hero-inner { width: 100%; max-width: 1135px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }
.hero-logo-anim { height: 368px; width: 279px; margin-bottom: 0; }
.hero-tagline { font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero-btn { display: inline-block; border: 1px solid #fff; border-radius: 3px; background: rgba(0,0,0,0.45); color: #fff; text-decoration: none; font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 24px; transition: background 0.3s, color 0.3s; box-shadow: 5px 5px 20px rgba(0,0,0,0.4); }
.hero-btn:hover { background: #fff; color: #111; }


/* ══════════════════════════════════════════════════════════════════
   INDEX — SECTION ARTICLES & LAYOUT
   ══════════════════════════════════════════════════════════════════ */
.blog-section { background: #fff; padding: 50px 0 90px; }
.u-sheet { max-width: 1135px; margin: 0 auto; padding: 0 20px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h1 { font-family: 'Roboto Condensed', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 3px; text-transform: uppercase; color: #111; margin-bottom: 14px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; }
.ornament span { font-size: 44px; letter-spacing: 1px; text-transform: uppercase; color: #fff; font-weight: 300; }
.blog-layout { display: grid; grid-template-columns: 265px 1fr; gap: 48px; align-items: start; }
.res-bar { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 0px;}
.res-count { font-size: 13px; font-weight: 300; color: #999; }
.res-count strong { color: #111; font-weight: 400; }
.fchip { display: inline-flex; align-items: center; gap: 5px; background: var(--hover); color: #fff; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 11px; cursor: pointer; border: none; font-family: 'Roboto', sans-serif; transition: filter 0.2s; margin-bottom: 16px}
.fchip:hover { filter: brightness(0.85); }
.fchip i { font-size: 0.8rem; }


/* ══════════════════════════════════════════════════════════════════
   INDEX — GRILLE ARTICLES
   ══════════════════════════════════════════════════════════════════ */
.art-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.art-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #F8F6F1; border: 1px solid #ebebeb; overflow: hidden; transition: box-shadow 0.3s, transform 0.3s; min-width: 0; border-radius: 0 0 4px 4px; }
.art-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.09); transform: translateY(-3px); }
.card-img { position: relative; overflow: hidden; aspect-ratio: 3/2; border-radius: 4px 4px 0 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; border-radius: 4px 4px 0 0; }
.art-card:hover .card-img img { transform: scale(1.05); }
.card-cats { position: absolute; top: 11px; left: 11px; display: flex; gap: 5px; flex-wrap: wrap; }
.cbadge { border-radius: 1px; background: rgba(0,0,0,0.40); color: #cec9bb; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; }
.card-body { border-radius: 4px 4px 0 0; padding: 17px 19px 19px; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: 10px; font-weight: 300; color: #bbb; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; display: flex; align-items: center; gap: 5px; }
.card-date i { font-size: 0.75rem; }
.card-title { font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.42; color: #111; margin-bottom: 9px; transition: color 0.2s; overflow-wrap: break-word; }
.art-card:hover .card-title { color: var(--hover); }
.card-exc { font-size: 13px; font-weight: 300; line-height: 1.72; color: #888; flex: 1; overflow-wrap: break-word; }
.card-foot { margin-top: 13px; padding-top: 12px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; }
.card-read { font-size: 10px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: #111; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.art-card:hover .card-read { color: var(--hover); gap: 10px; }
.card-read i { font-size: 0.8rem; }


/* ══════════════════════════════════════════════════════════════════
   INDEX — ÉTATS / SKELETON
   ══════════════════════════════════════════════════════════════════ */
.state-empty { grid-column: 1/-1; padding: 60px 0; text-align: center; }
.state-empty i { display: block; font-size: 2rem; color: #ccc; margin-bottom: 12px; }
.state-empty p { font-size: 13px; color: #bbb; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk { background: linear-gradient(90deg,#f2f2f2 25%,#e8e8e8 50%,#f2f2f2 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-card { border: 1px solid #ebebeb; overflow: hidden; }
.sk-img { aspect-ratio: 3/2; }
.sk-bd { padding: 17px 19px; }
.sk-ln { height: 10px; margin-bottom: 8px; border-radius: 2px; }
.sk-ln.s { width: 30%; } .sk-ln.m { width: 58%; } .sk-ln.l { width: 86%; }


/* ══════════════════════════════════════════════════════════════════
   INDEX — SIDEBAR (filtres & recherche)
   ══════════════════════════════════════════════════════════════════ */
.sidebar { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 20px; }
.widget { border: 1px solid #ebebeb; background: #F8F6F1; padding: 18px; border-radius: 4px; }
.widget-ttl { font-size: 10px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: #111; margin-bottom: 13px; }
.search-row { display: flex; }
.search-in { flex: 1; padding: 8px 11px; border-radius: 30px 0 0 30px; border: 1px solid #e0e0e0; border-right: none; font-family: 'Roboto', sans-serif; font-size: 13px; font-weight: 300; color: #333; outline: none; background: #fff; transition: border-color 0.2s; }
.search-in::placeholder { color: #ccc; }
.search-in:focus { border-color: var(--hover); }
.search-btn { padding: 8px 11px; background: var(--hover); color: #fff; border-radius: 0 30px 30px 0; border: none; cursor: pointer; display: flex; align-items: center; transition: filter 0.2s; }
.search-btn:hover { filter: brightness(0.85); }
.search-btn i { font-size: 0.95rem; }
.cat-list { list-style: none; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; text-decoration: none; color: #555; font-size: 13px; font-weight: 300; transition: all 0.2s; }
.cat-list li a:hover, .cat-list li a.on { color: var(--hover); padding-left: 5px; font-weight: bold; }
.cat-n { font-size: 10px; background: #f5f5f5; color: #bbb; padding: 2px 7px; transition: all 0.2s; }
.cat-list li a.on .cat-n { background: var(--hover); color: #FFF; }
.clear-btn { display: none; align-items: center; gap: 5px; margin-top: 9px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #bbb; cursor: pointer; text-decoration: none; font-family: 'Roboto', sans-serif; transition: color 0.2s; }
.clear-btn.show { display: flex; }
.clear-btn:hover { color: #111; }


/* ══════════════════════════════════════════════════════════════════
   INDEX — RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media(max-width:900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .widget { flex: 1; min-width: 220px; }
}
@media(max-width:660px) { .art-grid { grid-template-columns: 1fr; } }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — LARGEURS COLONNES TABLEAUX
   ══════════════════════════════════════════════════════════════════ */
.tbl .col-img    { width: 63px; }
.tbl .col-act    { width: 80px; }
.tbl .col-cnt    { width: 80px; text-align: center; }
.tbl .col-act-lg { width: 100px; }

/* Utilitaire : opacité décorative */
.op-07 { opacity: .7; }

/* ══════════════════════════════════════════════════════════════════
   ADMIN — TOGGLE SWITCH (IFTTT & futurs réglages on/off)
   ══════════════════════════════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--hover, #06a0a0);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* ══════════════════════════════════════════════
   SETTINGS — Layout tabulé
   ══════════════════════════════════════════════ */
.settings-tabbed { display: flex; max-width: 860px; background: #fff; border: 1px solid var(--border); height: 540px; }
.stab-sidebar { width: 172px; flex-shrink: 0; border-right: 1px solid var(--border); background: #faf9f6; display: flex; flex-direction: column; height: 100%; }
.stab-sidebar-ttl { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: #ccc; padding: 18px 16px 10px; }
.stab-item { display: flex; align-items: center; gap: 9px; padding: 10px 16px; cursor: pointer; background: none; border: none; border-left: 2px solid transparent; font-family: 'Roboto', sans-serif; font-size: 12px; font-weight: 400; color: #999; text-align: left; width: 100%; letter-spacing: 0.3px; transition: all 0.15s; }
.stab-item i { font-size: 14px; width: 16px; flex-shrink: 0; }
.stab-item:hover { background: rgba(0,0,0,0.025); color: #555; }
.stab-item.on { background: #fff; color: #111; border-left-color: var(--hover); font-weight: 500; }
.stab-badge { margin-left: auto; font-size: 9px; padding: 1px 6px; background: rgba(6,160,160,0.1); color: var(--hover); border-radius: 20px; letter-spacing: 0.5px; }
.stab-save { margin-top: auto; padding: 14px 12px; border-top: 1px solid var(--border); }
.stab-save-btn { width: 100%; padding: 9px; background: var(--hover); color: #fff; border: none; font-family: 'Roboto', sans-serif; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: filter 0.2s; display: flex; align-items: center; justify-content: center; gap: 7px; }
.stab-save-btn:hover { filter: brightness(1.1); }
.stab-content { flex: 1; padding: 24px 26px; overflow-y: auto; min-width: 0; height: 100%; box-sizing: border-box; }
.stab-panel { display: none; flex-direction: column; gap: 16px; }
.stab-panel.on { display: flex; }
.stab-section { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #bbb; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-top: 6px; }
.stab-section:first-child { margin-top: 0; }

/* ══════════════════════════════════════════════════════════════════
   ADMIN — RESPONSIVE (MOBILE / TABLETTE)
   Tiroir de navigation off-canvas + recomposition des panneaux les
   plus denses (Tableau de bord & Paramètres) pour petits écrans.
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── Topbar ── */
  .topbar { padding: 0 12px; }
  .adm-burger { display: flex; }
  .tb-brand { gap: 8px; }
  .tb-brand > span:not(.admin-badge) { display: none; }   /* masque "|" et "Articles" (ciblage direct pour ne pas toucher aux barres du burger, imbriquées plus profond) */
  .adm-burger span { display: block !important; }         /* garde-fou supplémentaire */
  .tb-brand img { height: 28px; }
  .tb-links { gap: 8px; }
  .tb-links a { font-size: 0; gap: 0; padding: 6px; }
  .tb-links a i { font-size: 18px; }

  /* ── Sidebar → tiroir off-canvas ── */
  .adm-wrap { position: relative; overflow-x: hidden; }
  .adm-nav {
    position: fixed;
    top: 56px; left: 0; bottom: 0;
    width: 82%; max-width: 300px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 210;
    box-shadow: 3px 0 22px rgba(0,0,0,0.35);
  }
  .adm-nav.open { transform: translateX(0); }
  .adm-nav-overlay {
    display: block;
    position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 205;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .adm-nav-overlay.open { opacity: 1; pointer-events: auto; }
  body.adm-nav-locked { overflow: hidden; }

  /* ── Panneaux ── */
  .adm-main { width: 100%; min-width: 0; }
  .panel { padding: 18px 14px 50px; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; }
  .ph.ph-col { gap: 12px; }
  .ph .btn { width: 100%; justify-content: center; margin-top: 0; }
  .ph-title { font-size: 19px; }

  /* ── Cartes statistiques (dashboard + tableau de bord) ── */
  .stats { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .stat { padding: 11px 12px; }
  .stat-n { font-size: 18px; }
  .stats-range { width: 100%; }
  .stats-range .srbtn { flex: 1; padding: 8px 4px; font-size: 10px; }

  /* ── Graphiques : forcer 1 colonne dès le tiroir mobile ── */
  .stats-grid-3 { grid-template-columns: 1fr !important; }

  /* ── Tableaux : le panneau défile horizontalement, la table garde
     sa mise en page native (alignement colonnes/en-têtes intact) ── */
  #p-list, #p-cats, #p-authors { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #p-list .tbl, #p-cats .tbl, #p-authors .tbl { min-width: 620px; }

  /* ── Paramètres : tabs sidebar → bandeau horizontal défilant ── */
  .settings-tabbed { flex-direction: column; height: auto; max-width: 100%; border: none; background: transparent; }
  .stab-sidebar {
    flex-direction: row; align-items: stretch; height: auto; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-right: none; border: 1px solid var(--border); border-radius: 4px 4px 0 0;
  }
  .stab-sidebar-ttl { display: none; }
  .stab-item { flex-shrink: 0; width: auto; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 12px 14px; }
  .stab-item.on { border-left-color: transparent; border-bottom-color: var(--hover); }
  .stab-save {
    margin-top: 0; flex-shrink: 0; border-top: none; border-left: 1px solid var(--border);
    padding: 8px; display: flex; align-items: center;
    position: sticky; right: 0; background: #faf9f6;
    box-shadow: -10px 0 10px -8px rgba(0,0,0,0.12);
  }
  .stab-save-btn { width: auto; padding: 8px 14px; white-space: nowrap; }
  .stab-content { padding: 18px 14px; height: auto; border: 1px solid var(--border); border-top: none; border-radius: 0 0 4px 4px; }

  /* ── Formulaires paramètres : passage en 1 colonne ── */
  .grid-2, .grid-2-sm { grid-template-columns: 1fr; }
  .flex-end-row { flex-direction: column; align-items: stretch; }
  .btn-auto-detect { width: 100%; justify-content: center; display: flex; }
  .flex-row { flex-wrap: wrap; }

  /* ── Édition d'article ── */
  .fg-img-col, .fg-source-col { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .tb-links a { display: none; }   /* sur très petit écran, priorité au contenu */
}

/* ── Éditeur : état d'enregistrement & restauration ── */
.save-state { font-size: 12px; color: #999; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.save-state small { color: #aaa; }
.save-state.is-dirty { color: #b8860b; }
.save-state.is-ok { color: #4a7c59; }
.save-state.is-error { color: #a33; }
.save-state.is-saving i { display: inline-block; animation: blSpin 1s linear infinite; }
@keyframes blSpin { to { transform: rotate(360deg); } }
.restore-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 18px; padding: 10px 14px;
  background: rgba(212,160,23,0.10); border: 1px solid rgba(212,160,23,0.35); border-radius: 6px; font-size: 13px; color: #6b5310; }
.restore-bar[hidden] { display: none; }
.restore-bar span { flex: 1; min-width: 200px; }

/* ── Liste des articles : outils ── */
.list-tools { display: flex; flex-direction: column; gap: 12px; margin: -6px 0 16px; }
.list-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid #e6e6e6; }
.list-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; margin-bottom: -1px;
  font: inherit; font-size: 13px; color: #888; cursor: pointer; }
.list-tab span { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 9px;
  background: rgba(0,0,0,0.06); font-size: 11px; color: #777; }
.list-tab:hover { color: #333; }
.list-tab.on { color: #111; border-bottom-color: var(--hover, #111); font-weight: 600; }
.list-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.list-filters .fin { width: auto; min-width: 170px; }
.list-search { position: relative; flex: 1; min-width: 220px; }
.list-search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #aaa; pointer-events: none; }
.list-search .fin { width: 100%; padding-left: 32px; }
.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.th-sort:hover { color: #111; }
.th-sort::after { content: ' ↕'; opacity: .25; font-size: 11px; }
.th-sort.on[data-dir="asc"]::after { content: ' ↑'; opacity: .8; }
.th-sort.on[data-dir="desc"]::after { content: ' ↓'; opacity: .8; }

/* ══════════════════════════════════════════════════════════════════
   ADMIN — ÉDITEUR EN DEUX ZONES (lot 2)
   ══════════════════════════════════════════════════════════════════ */
.panel.panel-edit { padding-top: 0; }
.ed-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 0 -36px 22px; padding: 12px 36px; background: rgba(245,243,238,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid #e6e3dc; }
.ed-bar-l, .ed-bar-r { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ed-bar .btn { margin-top: 0; }
.ed-bar-ttl { min-width: 0; margin: 0 6px; }
.ed-bar-ttl .ph-title { font-size: 17px; }
.ed-bar-ttl .ph-sub { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-back { padding: 0; width: 38px; height: 38px; justify-content: center; }
.ed-back i { font-size: 18px; }
.ed-primary.is-sched { background: #3465a4; }
.ed-primary.is-draft { background: #555; }

.ed-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; align-items: start; }
.ed-main { min-width: 0; max-width: 860px; width: 100%; justify-self: center; }
.ed-title { width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; outline: none;
  font-family: 'Roboto Condensed', sans-serif; font-size: 32px; line-height: 1.2; color: #111; padding: 6px 0 8px; }
.ed-title:focus { border-bottom-color: var(--hover); }
.ed-title::placeholder { color: #c9c6bf; }
.ed-exc { position: relative; margin: 6px 0 20px; }
.ed-exc-in { width: 100%; border: 0; border-left: 2px solid #e2dfd8; background: transparent; outline: none; resize: vertical;
  font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 300; font-style: italic; line-height: 1.6; color: #555; padding: 4px 0 4px 14px; }
.ed-exc-in:focus { border-left-color: var(--hover); }
.ed-exc-in::placeholder { color: #bbb; }
.ed-exc .btn-auto { margin: 6px 0 0 14px; }
.ed-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ed-count { margin-left: auto; font-size: 11px; color: #aaa; white-space: nowrap; }
.panel-edit .editor-wrap .ql-toolbar { top: 63px; }
.panel-edit .editor-wrap .ql-editor { min-height: 480px; font-size: 15px; padding: 22px 26px; }
.panel-edit .art-cm-mgr { max-width: none; }

.ed-side { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
  padding-bottom: 12px; scrollbar-width: thin; }
.ed-card { background: #fff; border: 1px solid #e6e3dc; border-radius: 6px; }
.ed-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #444; user-select: none; }
.ed-card > summary::-webkit-details-marker { display: none; }
.ed-card > summary::after { content: '▾'; margin-left: auto; color: #bbb; transition: transform .2s; }
.ed-card:not([open]) > summary::after { transform: rotate(-90deg); }
.ed-card > summary i { font-size: 15px; color: var(--hover); }
.ed-card-b { display: flex; flex-direction: column; gap: 6px; padding: 2px 14px 14px; }
.ed-card-b .fin { width: 100%; }
.ed-card-b .cats-grid { gap: 5px; }
.ed-card-b .img-prev { max-height: 170px; width: 100%; object-fit: cover; margin: 0 0 8px; border-radius: 4px; }
.ed-card-b .img-row .fin { min-width: 0; }
.ed-rel { grid-template-columns: 1fr !important; }

.ed-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #ddd; border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.ed-seg-b { background: #fff; border: 0; padding: 8px 6px; font: inherit; font-size: 12px; color: #888; cursor: pointer; }
.ed-seg-b + .ed-seg-b { border-left: 1px solid #ddd; }
.ed-seg-b.on { background: #111; color: #fff; }
#segPub.on { background: var(--hover); }
.ed-row2 { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.ed-pub-sum { font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 4px; margin: 6px 0 4px; background: #f6f5f2; color: #666; }
.ed-pub-sum.is-sched { background: rgba(52,101,164,0.09); color: #2c5486; }
.ed-pub-sum.is-pub { background: rgba(74,124,89,0.09); color: #3d6a4a; }
.ed-tog-row { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; margin-top: 4px; border-top: 1px solid #f0eee9; font-size: 13px; color: #555; }

@media (max-width: 1100px) {
  .ed-layout { grid-template-columns: minmax(0,1fr); }
  .ed-side { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
}
@media (max-width: 900px) {
  .ed-bar { margin: 0 -14px 18px; padding: 10px 14px; }
  .ed-bar-ttl { display: none; }
  .panel-edit .editor-wrap .ql-toolbar { top: 0; position: relative; }
  .ed-title { font-size: 25px; }
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN — TABLEAU DE BORD & CALENDRIER (lot 3)
   ══════════════════════════════════════════════════════════════════ */
.nav-btn .n.n-alert { background: #c0392b; color: #fff; }
.stat-btn { font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.stat-btn:hover { border-color: var(--hover); transform: translateY(-1px); }
.stat-ico.s { background: rgba(52,101,164,0.1); color: #3465a4; }
.stat-ico.m { background: rgba(192,57,43,0.08); color: #c0392b; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 14px 16px; }
.dash-card-h { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #444; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #f0eee9; }
.dash-card-h i { color: var(--hover); font-size: 15px; }
.dash-more { margin-left: auto; font-size: 10px; letter-spacing: 1px; color: var(--hover); cursor: pointer; text-decoration: none; }
.dash-more:hover { text-decoration: underline; }
.dash-empty { padding: 12px 2px; font-size: 13px; color: #aaa; }
.dash-empty.ok { color: #4a7c59; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f4f2ee; cursor: pointer; border-radius: 3px; }
.dash-row:last-child { border-bottom: 0; }
.dash-row:hover { background: #faf9f6; }
.dash-row-t { min-width: 0; flex: 1; }
.dash-row-ttl { font-size: 13px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row-m { font-size: 11px; color: #999; margin-top: 2px; }
.dash-cm { padding: 10px 2px; border-bottom: 1px solid #f4f2ee; }
.dash-cm:last-child { border-bottom: 0; }
.dash-cm-top { font-size: 12px; color: #111; }
.dash-cm-top span { color: #999; }
.dash-cm-msg { font-size: 13px; color: #444; line-height: 1.5; margin: 5px 0 8px; font-weight: 300; }
.dash-cm-acts { display: flex; gap: 6px; }
.dash-cm-acts .btn { margin-top: 0; padding: 5px 12px; }
.dash-ok { background: #4a7c59; color: #fff; }
.dash-ok:hover { filter: brightness(.9); }
.dash-fix > summary { cursor: pointer; font-size: 13px; color: #555; padding: 8px 2px; }
.dash-fix > summary strong { color: #b8860b; }
.dash-top { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #f4f2ee; cursor: pointer; }
.dash-top:last-child { border-bottom: 0; }
.dash-top-n { width: 16px; text-align: right; color: #bbb; font-size: 12px; }
.dash-top-t { flex: 1; min-width: 0; font-size: 13px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-top-bar { width: 70px; height: 5px; background: #f0eee9; flex-shrink: 0; }
.dash-top-bar i { display: block; height: 100%; background: var(--hover); }
.dash-top-c { width: 34px; text-align: right; font-size: 12px; color: #888; }
.ask-warn { display: inline-block; color: #8a5a00; background: rgba(212,160,23,0.12); padding: 6px 10px; border-radius: 4px; }

.cal-nav { display: flex; gap: 8px; align-items: center; }
.cal-legend { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #777; margin: -8px 0 14px; }
.cal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.cal-dot.pub { background: #4a7c59; } .cal-dot.sched { background: #3465a4; } .cal-dot.draft { background: #bbb; }
.cal-opt { margin-left: auto; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.cal-head div { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #aaa; padding: 0 8px 6px; }
.cal-grid { border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: #fff; }
.cal-day { min-height: 118px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; cursor: copy; transition: background .15s; min-width: 0; }
.cal-day:hover { background: #fcfbf8; }
.cal-day.out { background: #faf9f6; }
.cal-day.out .cal-dn { color: #ccc; }
.cal-day.past:not(.today) .cal-dn { color: #aaa; }
.cal-day.today .cal-dn { background: var(--hover); color: #fff; border-radius: 10px; padding: 0 7px; align-self: flex-start; }
.cal-day.drop { background: rgba(52,101,164,0.08); outline: 2px dashed #3465a4; outline-offset: -3px; }
.cal-dn { font-size: 12px; color: #444; margin-bottom: 2px; }
.cal-it { font-size: 11px; line-height: 1.3; padding: 3px 6px; border-radius: 3px; cursor: grab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.cal-it b { font-weight: 600; }
.cal-it.pub { background: rgba(74,124,89,0.09); border-color: #4a7c59; color: #2f5a3b; }
.cal-it.sched { background: rgba(52,101,164,0.10); border-color: #3465a4; color: #264e84; }
.cal-it.draft { background: #f3f2ef; border-color: #bbb; color: #777; font-style: italic; }
.cal-it:hover { filter: brightness(.95); }
.cal-it.dragging { opacity: .4; }

@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cal-day { min-height: 74px; padding: 3px; }
  .cal-it { font-size: 10px; padding: 2px 3px; }
  .cal-it b { display: none; }
  .cal-opt { margin-left: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN — PARAMÈTRES (lot 4)
   ══════════════════════════════════════════════════════════════════ */
.stab-sidebar { overflow-y: auto; }
.stab-grp { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #bbb; padding: 16px 16px 6px; display: flex; align-items: center; gap: 6px; }
.stab-grp:first-child { padding-top: 14px; }
.stab-live-hint { letter-spacing: .5px; text-transform: none; font-size: 9px; color: var(--hover); opacity: .8; }
.stab-dirty { font-size: 11px; color: #b8860b; text-align: center; margin-bottom: 8px; }
.stab-dirty[hidden] { display: none; }
#btnLivePrev.on { border-color: var(--hover); color: var(--hover); }
.live-prev[hidden] { display: none; }
.live-prev-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 11px; color: #777; }
.live-prev-bar em { color: #b8860b; font-style: normal; }
.live-prev-dev { display: flex; gap: 2px; }
.live-prev-dev button { background: none; border: 1px solid transparent; border-radius: 3px; padding: 3px 7px; cursor: pointer; color: #999; font-size: 14px; }
.live-prev-dev button.on, .live-prev-dev button:hover { border-color: #ddd; color: #111; }
.live-prev-frame { flex: 1; background: #eceae4; display: flex; justify-content: center; overflow: hidden; }
.live-prev-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.live-prev.mob .live-prev-frame { padding: 14px 0; }
.live-prev.mob .live-prev-frame iframe { width: 390px; max-width: 100%; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
@media (max-width: 1200px) { .live-prev, .set-resizer { display: none !important; } #btnLivePrev { display: none; } .set-split .settings-tabbed { width: auto !important; flex: 1 1 auto !important; } }

/* ══════════════════════════════════════════════════════════════════
   SITE PUBLIC — LOT 5
   ══════════════════════════════════════════════════════════════════ */
/* Accueil : « voir plus » et recherche */
.more-wrap { grid-column: 1/-1; display: flex; justify-content: center; padding: 18px 0 6px; }
.more-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; background: transparent; border: 1px solid #111; color: #111;
  padding: 12px 30px; font-family: 'Roboto', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.more-btn span { font-size: 10px; letter-spacing: .5px; text-transform: none; color: #999; }
.more-btn:hover { background: #111; color: #fff; }
.more-btn:hover span { color: #ccc; }
.art-card mark, .card-snip mark { background: rgba(255,214,10,.45); color: inherit; padding: 0 1px; border-radius: 2px; }
.card-snip { font-size: 12px; line-height: 1.6; color: #666; background: #f8f6f1; border-left: 2px solid var(--hover); padding: 7px 10px; margin: 8px 0 4px; font-weight: 300; }
.card-snip i { color: var(--hover); font-size: 11px; }
/* Article : catégories cliquables */
a.art-cat { text-decoration: none; }
a.art-cat:hover { filter: brightness(1.15); }
/* Barre de progression de lecture */
#readProg { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10000; pointer-events: none; }
#readProg i { display: block; height: 100%; width: 0; background: var(--hover); transition: width .1s linear; }
/* Retour en haut */
#toTop { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #111; color: #fff;
  font-size: 20px; cursor: pointer; z-index: 900; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
#toTop.show { opacity: .85; transform: none; pointer-events: auto; }
#toTop:hover { opacity: 1; background: var(--hover); }
/* Sommaire */
.sw-toc[hidden] { display: none; }
.art-sidebar { max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: block; padding: 5px 0 5px 10px; border-left: 2px solid #e4e1d9; font-size: 12.5px; line-height: 1.4; color: #777; text-decoration: none; transition: all .15s; }
.toc li.toc-l3 a { padding-left: 22px; font-size: 12px; }
.toc li a:hover { color: #111; }
.toc li a.on { color: #111; border-left-color: var(--hover); font-weight: 500; }
@media (max-width: 900px) { .art-sidebar { max-height: none; overflow: visible; } #toTop { right: 14px; bottom: 14px; } }
/* La colonne latérale « collante » ne fonctionnait pas : overflow:hidden sur
   .art-layout en faisait un conteneur de défilement. overflow:clip coupe
   pareil les débordements sans casser position:sticky. */
.art-layout { overflow: clip; }
.art-sidebar { align-self: start; }

/* ══════════════════════════════════════════════════════════════════
   PARAMÈTRES — pleine largeur + séparateur redimensionnable
   ══════════════════════════════════════════════════════════════════ */
.set-split { display: flex; align-items: stretch; width: 100%; height: calc(100vh - 190px); min-height: 540px; }
/* Sans aperçu : les réglages prennent toute la largeur disponible */
.set-split .settings-tabbed { flex: 1 1 auto; max-width: none; min-width: 0; width: auto; height: 100%; }
/* Avec aperçu : largeur des réglages fixée par le séparateur (px), l'aperçu prend le reste */
.set-split.with-prev .settings-tabbed { flex: 0 0 auto; min-width: 520px; }
.set-split .live-prev { flex: 1 1 auto; min-width: 340px; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); }
.set-split .live-prev[hidden] { display: none; }

/* Séparateur : ligne de 1 px, zone de prise de 13 px, pastille au centre */
.set-resizer { flex: 0 0 1px; width: 1px; margin: 0 10px; background: var(--border); position: relative; cursor: col-resize; z-index: 5; transition: background .2s; touch-action: none; outline: none; }
.set-resizer[hidden] { display: none; }
.set-resizer::before { content: ''; position: absolute; inset: 0 -6px; }
/* La hauteur du bloc est bornée à la fenêtre : un simple top:50% place la
   pastille au milieu de la zone visible (pas besoin de position:fixed ici). */
.set-resizer::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 9px; height: 28px; background: #fff; border: 1px solid rgba(0,0,0,.22); border-radius: 99px;
  transition: border-color .2s, box-shadow .2s; }
.set-resizer:hover, .set-resizer.dragging, .set-resizer:focus-visible { background: var(--hover); }
.set-resizer:hover::after, .set-resizer.dragging::after, .set-resizer:focus-visible::after { border-color: var(--hover); box-shadow: 0 0 0 3px rgba(6,160,160,.12); }
body.set-resizing { cursor: col-resize; user-select: none; }
body.set-resizing iframe { pointer-events: none; } /* l'iframe ne « mange » pas le glisser */

/* ══════════════════════════════════════════════════════════════════
   Barres de défilement internes : décollées des blocs, discrètes,
   visibles seulement au survol (sidebar article, onglets des réglages,
   panneau latéral de l'éditeur).
   ══════════════════════════════════════════════════════════════════ */
.art-sidebar, .stab-sidebar, .ed-side {
  scrollbar-width: thin; scrollbar-color: transparent transparent; scrollbar-gutter: stable;
}
.art-sidebar:hover, .stab-sidebar:hover, .ed-side:hover { scrollbar-color: rgba(0,0,0,.18) transparent; }
.art-sidebar::-webkit-scrollbar, .stab-sidebar::-webkit-scrollbar, .ed-side::-webkit-scrollbar { width: 6px; }
.art-sidebar::-webkit-scrollbar-thumb, .stab-sidebar::-webkit-scrollbar-thumb, .ed-side::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.art-sidebar:hover::-webkit-scrollbar-thumb, .stab-sidebar:hover::-webkit-scrollbar-thumb, .ed-side:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); }
.art-sidebar::-webkit-scrollbar-track, .stab-sidebar::-webkit-scrollbar-track, .ed-side::-webkit-scrollbar-track { background: transparent; }
/* un peu d'air entre les blocs et la barre, sans décaler l'alignement */
.art-sidebar { padding-right: 12px; margin-right: -12px; }
.ed-side { padding-right: 10px; margin-right: -10px; }
@media (max-width: 900px) { .art-sidebar { padding-right: 0; margin-right: 0; } }
/* Brouillon daté dans le futur : lien « Publié » dans le résumé */
.ed-pub-sum a { color: var(--hover); font-weight: 600; }
#btnLivePrev[hidden] { display: none; }

/* ══════════════════════════════════════════════════════════════════
   Statistiques : boîtes toujours alignées à droite.
   « 1fr » vaut en réalité minmax(auto, 1fr) : un contenu long (nom de
   région, titre d'article, graphique) élargissait sa colonne et faisait
   déborder la rangée. minmax(0, 1fr) + min-width:0 force des colonnes
   strictement égales ; les textes trop longs sont coupés par « … ».
   ══════════════════════════════════════════════════════════════════ */
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid-3.stats-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats > *, .stats-grid-3 > *, .stat > div { min-width: 0; }
.stats-grid-3 canvas { max-width: 100% !important; }
.stat .stat-n { overflow: hidden; text-overflow: ellipsis; }
#stTopArticle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
@media (max-width: 1100px) { .stats-grid-3, .stats-grid-3.stats-grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* ══════════════════════════════════════════════════════════════════
   ÉDITEUR = RENDU EN LIGNE
   Le texte dans l'éditeur reprend exactement la feuille de style de
   .art-body (page article publique) : police, taille, interlignes,
   espacements, intertitres H2/H3, listes, exergues, gras.
   Largeur de texte identique (782 px) → mêmes retours à la ligne.
   ══════════════════════════════════════════════════════════════════ */
.panel-edit .ed-main { max-width: 836px; }   /* 782 px de texte + marges intérieures */
.panel-edit .editor-wrap .ql-editor {
  font-family: 'Roboto', sans-serif; font-size: 15px; font-weight: 300; line-height: 1.85; color: #333;
  overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphens: auto;
  padding: 26px; tab-size: 4;
}
.panel-edit .editor-wrap .ql-editor > *:first-child { margin-top: 0; }
.panel-edit .editor-wrap .ql-editor p { margin: 0 0 17px; padding: 0; }
.panel-edit .editor-wrap .ql-editor h2 {
  font-family: var(--h2-font-family); font-weight: var(--h2-font-weight); font-size: var(--h2-font-size);
  letter-spacing: var(--h2-letter-spacing); color: var(--h2-color); margin: 0 0 15px; padding: 0; line-height: 1.2;
}
.panel-edit .editor-wrap .ql-editor h2:has(+ h2) { margin-bottom: 0; }
.panel-edit .editor-wrap .ql-editor h3 {
  font-family: 'Roboto', sans-serif; font-weight: var(--h3-font-weight); font-size: var(--h3-font-size);
  letter-spacing: var(--h3-letter-spacing); text-transform: uppercase; color: var(--h3-color);
  margin: 28px 0 11px; padding: 0; line-height: 1.2;
}
.panel-edit .editor-wrap .ql-editor h3:has(+ h3) { margin-bottom: 0; }
.panel-edit .editor-wrap .ql-editor h3 + h3 { margin-top: 0; }
.panel-edit .editor-wrap .ql-editor strong, .panel-edit .editor-wrap .ql-editor b { font-weight: 500; }
.panel-edit .editor-wrap .ql-editor a { color: var(--hover); text-decoration: underline; text-underline-offset: 3px; }
.panel-edit .editor-wrap .ql-editor blockquote {
  border-left: 2px solid var(--bq-border-color); margin: 34px 0; padding: 16px 22px; background: var(--bq-bg);
  font-style: var(--bq-font-style); font-size: var(--bq-font-size); color: var(--bq-color);
}
.panel-edit .editor-wrap .ql-editor img { width: 100%; height: auto; margin: 22px 0; display: block; }
/* Listes : Quill dessine ses puces lui-même (li > .ql-ui) — on les cale
   comme les puces du site : retrait de 20 px, puce ronde en dehors du texte. */
.panel-edit .editor-wrap .ql-editor ol, .panel-edit .editor-wrap .ql-editor ul { padding-left: 20px; margin: 0 0 17px; }
.panel-edit .editor-wrap .ql-editor li { padding-left: 0; margin-bottom: 5px; }
.panel-edit .editor-wrap .ql-editor li > .ql-ui:before { margin-left: -20px; margin-right: 0; width: 20px; text-align: center; }
.panel-edit .editor-wrap .ql-editor li[data-list="bullet"] > .ql-ui:before { content: '\2022'; font-size: 1.15em; line-height: 0; }
.panel-edit .editor-wrap .ql-editor li[data-list="ordered"] > .ql-ui:before { text-align: right; padding-right: 5px; box-sizing: border-box; }
.panel-edit .editor-wrap .ql-editor sup { font-size: 75%; }

/* ══════════════════════════════════════════════════════════════════
   Couleurs d'état (retours du 21/09)
   - interrupteurs : couleur d'accent du site (au lieu du vert)
   - « Enregistré à… » et messages « rien à faire » : gris, discrets
   - « Non enregistré » / échec : rouge, pour attirer l'œil
   ══════════════════════════════════════════════════════════════════ */
.tog input:checked ~ .tog-t { background: var(--hover); }
.save-state.is-ok { color: #999; }
.save-state.is-dirty, .stab-dirty { color: #c0392b; font-weight: 500; }
.save-state.is-dirty small { color: #c0392b; opacity: .75; font-weight: 400; }
.save-state.is-error { color: #c0392b; font-weight: 600; }
.dash-empty.ok { color: #999; }

/* Cartes de l'accueil : toutes les catégories, empilées à gauche sur la photo */
.card-cats { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 4px; right: 11px; }
.cbadge { font-size: 8px; padding: 3px 8px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Accueil du blog : pied de page sur une ligne, caché en descendant, visible en remontant */
.u-footer.footer-reveal { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(248,246,241,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-top: 1px solid rgba(0,0,0,.07);
  transform: translateY(100%); transition: transform .3s ease; }
.u-footer.footer-reveal.show { transform: none; }
.footer-line { margin: 0; font-size: 11px; font-weight: 300; color: rgba(0,0,0,.45); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-line .footer-sep { margin: 0 6px; opacity: .5; }
.footer-line a { color: rgba(0,0,0,.6); text-decoration: none; letter-spacing: 1px; }
.footer-line a:hover { color: #000; }
@media (prefers-reduced-motion: reduce) { .u-footer.footer-reveal { transition: none; } }

/* Page article : même pied de page d'une ligne que l'accueil (sans logo), fixe en fin de page */
.u-footer.footer-line-only { padding: 14px 20px; border-top: 1px solid rgba(0,0,0,.07); }
/* Paramètres : envoi du logo / hero avec aperçu */
.media-row { display: flex; align-items: center; gap: 8px; }
.media-row .fin { flex: 1; min-width: 0; }
.media-row .img-upload-btn { flex-shrink: 0; }
.media-prev { flex-shrink: 0; border: 1px solid var(--border); border-radius: 3px; object-fit: contain; }
.media-prev-logo { height: 38px; max-width: 120px; padding: 4px 8px; background: #1a1a1a; }
.media-prev-hero { height: 38px; width: 68px; object-fit: cover; background: #eee; }
.media-prev[style*="display: none"], .media-prev:not([src]) { display: none; }
