/* =====================================================================
   MODE GUIDE RÉDACTION — overlay non destructif pour le client
   Annote chaque zone éditable (balise + consigne + renvoi brief).
   Activé par le bouton flottant ou ?guide=1.
   ===================================================================== */

.guide-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 10000;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ruby-700); color: #fff; border: none; border-radius: 999px;
  padding: .7rem 1.1rem; font-family: var(--font-body, sans-serif); font-weight: 600; font-size: .85rem;
  cursor: pointer; box-shadow: 0 10px 30px rgba(58,8,32,.32); }
.guide-toggle:hover { background: var(--ruby-800); }
.guide-toggle.is-on { background: var(--red-500); }

/* Fiche SEO (title / meta / mot-clé / schema) — visible en mode guide */
.seo-card { display: none; position: fixed; top: 84px; right: 16px; z-index: 9999;
  width: min(340px, 88vw); background: var(--ruby-900); color: #fff; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 48px rgba(0,0,0,.4);
  font-family: var(--font-body, sans-serif); font-size: 12px; line-height: 1.5; }
body.guide-on .seo-card { display: block; }
.seo-card strong { display: block; color: var(--gold-300); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.seo-card div { margin-bottom: 7px; color: rgba(255,248,245,.85); }
.seo-card span { display: inline-block; min-width: 68px; color: var(--gold-300); font-weight: 700; vertical-align: top; }

/* Zones annotées */
body.guide-on [data-guide] { outline: 2px dashed var(--red-500); outline-offset: 4px; position: relative; }
body.guide-on [data-guide]::before { content: attr(data-guide-html) "  ·  " attr(data-guide-tag);
  position: absolute; top: 0; left: 0; transform: translateY(-100%);
  background: var(--ruby-900); color: #fff; font: 700 10px/1.7 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .02em; padding: 0 7px; border-radius: 5px 5px 0 0; white-space: nowrap;
  z-index: 50; pointer-events: none; }
body.guide-on [data-guide]:hover { outline-color: var(--gold-400); }
body.guide-on [data-guide]:hover::after { content: attr(data-guide); position: absolute; top: 100%; left: 0;
  margin-top: 7px; background: var(--ruby-900); color: #fff;
  font: 400 11.5px/1.45 var(--font-body, sans-serif); padding: 9px 11px; border-radius: 8px;
  width: max-content; max-width: 300px; z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,.35); }

/* Bandeau de guidage par section — « Cette section → … » (mode guide only) */
.guide-band { display: none; }
body.guide-on .guide-band { display: flex; align-items: flex-start; gap: .85rem;
  position: relative; z-index: 5; margin: 0 0 1.85rem; padding: .85rem 1.05rem;
  background: linear-gradient(95deg, var(--gold-300), #ffe39a);
  border: 1px solid rgba(98,13,53,.16); border-left: 5px solid var(--ruby-700);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(58,8,32,.16);
  color: var(--ruby-900); font-family: var(--font-body, sans-serif); }
.guide-band__n { flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ruby-700); color: #fff; font-weight: 800; font-size: .92rem;
  display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.guide-band__body { display: flex; flex-direction: column; gap: 2px; }
.guide-band__k { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ruby-700); opacity: .75; }
.guide-band__t { font-size: 1.04rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--ruby-900); }
.guide-band__c { font-size: .83rem; line-height: 1.5; color: #5b2740; }

@media print { .guide-toggle, .seo-card, .guide-band { display: none !important; } }
