/* =========================================================
   Feuille commune au kit back-office (bandeau cookies, page
   mentions légales, mode éditeur). Le style du site est dans
   assets/style.css (chargé avant ce fichier sur l'accueil).
   ========================================================= */
:root { --paper: #f3eee3; --paper-3: #fbf8f1; --ink: #17140f; --ink-2: #3d372e; --red: #d22a1b; --yellow: #ffd93b; --blue: #2456c9; }

/* boutons utilisés par le kit */
.btn-gold { background: var(--yellow) !important; color: var(--ink) !important; }
.btn-outline { background: var(--paper-3); color: var(--ink); }
.btn-sm { padding: 10px 14px 8px !important; font-size: 16px !important; }
.btn .ico, .ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- Bandeau cookies : une bulle de BD ---------- */
.ck {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  display: grid; gap: 14px; padding: 18px 20px; background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink);
  font: 400 15px/1.45 "Newsreader", Georgia, serif;
  transform: translateY(30px); opacity: 0; transition: transform .3s, opacity .3s;
}
.ck.in { transform: none; opacity: 1; }
.ck[hidden] { display: none; }
.ck b { display: block; font: 400 24px/1 "Bangers", Impact, sans-serif; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.ck p { margin: 0; }
.ck a { color: var(--red); }
.ck-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ck-btns .btn { min-height: 42px; }

/* ---------- Page mentions légales ---------- */
.legal-page { background: var(--paper); color: var(--ink); font: 400 18px/1.6 "Newsreader", Georgia, serif; margin: 0; }
.legal-page .wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.legal-top { border-bottom: 3px solid var(--ink); background: var(--yellow); }
.legal-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; }
.legal-top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.legal-top .brand img { width: 42px; height: 42px; }
.legal-top .brand b { font: 400 34px/1 "UnifrakturMaguntia", serif; font-weight: 400; }
.legal-page .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 400 17px/1 "Bangers", Impact, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.legal { padding-top: 30px; padding-bottom: 60px; }
.legal h1 { font: 400 clamp(40px, 6vw, 64px)/1 "Bangers", Impact, sans-serif; letter-spacing: .03em; text-transform: uppercase; margin: 30px 0 18px; }
.legal h2 { font: 900 24px/1.2 "Fraunces", Georgia, serif; margin: 28px 0 8px; }
.legal a { color: var(--red); }
.legal-tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; display: block; overflow-x: auto; }
.legal-tbl th, .legal-tbl td { border: 1.5px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-tbl th { background: var(--yellow); }
.muted-sm { color: var(--ink-2); font-size: 14px; }

/* ---------- Mode éditeur (aperçu dans l'espace client) ---------- */
.ed-mode [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.ed-mode .ticker-run { animation: none !important; flex-wrap: wrap; white-space: normal; row-gap: 10px; padding: 10px 16px; }
.ed-mode .bar { display: none !important; }
.ed-mode .plate-burst { animation: none; }
.ed-mode .case:hover, .ed-mode .tarif:hover, .ed-mode .ad:hover, .ed-mode .art-card:hover { transform: none; }
.ed-pages {
  position: fixed; z-index: 200; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
  max-width: calc(100% - 24px); padding: 6px 8px; flex-wrap: nowrap; overflow-x: auto; background: #0E1F38; color: #fff; border-radius: 12px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
  font: 600 12px/1 Inter, system-ui, sans-serif;
}
.ed-pages > span:first-child { color: #E0BF72; padding: 0 6px; }
.ed-pg { cursor: pointer; padding: 7px 8px; border-radius: 8px; white-space: nowrap; }
.ed-pg:hover { background: #C9A14A; color: #0E1F38; }
.ed-pg.on { background: #fff; color: #0E1F38; }
/* place pour la barre d'outils de bloc, au-dessus du contenu */
.ed-mode main [data-esec] { padding-top: 56px !important; }
.ed-mode main .page-sec[data-esec] > .ed-sec-tb { position: sticky; top: 10px; left: 12px; width: max-content; margin-bottom: -40px; }
