/*
 * 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;
}


/* ═══════════════════════════════════════════════════════════════════
   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: 44px; 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; }
.tb-brand img { height: 34px; width: auto; cursor: pointer; }
.tb-brand span { font-size: 11px; letter-spacing: 2px; 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: 2px; 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: 3px; 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-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: 2px; text-transform: uppercase; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.btn-dk { background: var(--hover); color: #fff; margin-top: 20px;}
.btn-dk:hover { filter: brightness(0.85); }
.btn-ghost { background: transparent; color: #555; }
.btn-ghost:hover { border-color: #111; color: #111; }
.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: 2px; 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: 12px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--border); padding: 18px; display: flex; align-items: center; gap: 13px; }
.stat-ico { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.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: 28px; color: #111; line-height: 1; }
.stat-l { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #aaa; margin-top: 2px; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — TABLE
   ══════════════════════════════════════════════════════════════════ */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 10px; letter-spacing: 2.5px; 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: 2px; 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; }
.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 — 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: 2.5px; 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; }
.cats-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.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; }
.factions { display: flex; gap: 9px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }


/* ══════════════════════════════════════════════════════════════════
   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; }
.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: 'Roboto Condensed', sans-serif; font-size: 20px; color: var(--hover); margin: 28px 0 12px; padding-bottom: 8px; }
.editor-wrap .ql-editor blockquote { border-left: 2px solid #cec9bb; margin: 24px 0; padding: 12px 18px; background: rgba(206,201,187,.1); font-style: italic; color: #666; }
.editor-wrap .ql-editor p { margin: 0 0 14px; }
.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; }


/* ══════════════════════════════════════════════════════════════════
   ADMIN — ARTICLES RÉCENTS (dashboard)
   ══════════════════════════════════════════════════════════════════ */
.rec-card { background: #fff; border: 1px solid var(--border); padding: 20px; }
.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: 2px; 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: 2px; 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: 130%; 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: 2px; 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: 2.5px; 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: 'Roboto Condensed', sans-serif; font-weight: 400; font-size: 21px; letter-spacing: .5px; color: var(--hover); margin: 0 0 15px; }
.art-body h3 { font-weight: 500; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #111; margin: 28px 0 11px; }
.art-body p { margin-bottom: 17px; }
.art-body blockquote { border-left: 2px solid #cec9bb; margin: 34px 0; padding: 16px 22px; background: rgba(206,201,187,0.1); font-style: italic; font-size: 15px; color: #777; }
.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-tags { margin-top: 44px; padding-top: 26px; border-top: 1px solid #ebebeb; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.art-tag-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #bbb; }
.atag { border: 1px solid #e0e0e0; padding: 4px 11px; font-size: 10px; letter-spacing: 2px; 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; border-bottom: 1px solid #ebebeb; }
.back-lnk { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--hover); font-size: 11px; font-weight: 700;letter-spacing: 2px; 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 — 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: 2px; 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-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.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 20px; }
.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: 2px; 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: 2px; 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: 2px; 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: 2px; 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: 2px; 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);
}
