/* ==========================================================================
   Ghost Royale : couche « Royaume » (style Cassandra) + Noël toute l'année
   Pour revenir en arrière : retirer l'enqueue 'gt-royaume' dans functions.php
   ========================================================================== */
:root {
  --bg: #0c1124; --deep: #0e1430; --surface: rgba(27,35,64,.88); --surface2: rgba(33,42,76,.74);
  --border: rgba(226,220,248,.12); --gold: #c99a4a; --gold-lt: #e7be73; --text: #f7f1e8;
  --muted: #b8b7ca; --mist: #d0d0dd; --lavender: #9c92f1; --coral: #e9948f;
  --xmas-red: #c8323c; --xmas-green: #2f8a5f;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 80% -5%, rgba(156,146,241,.16), transparent 70%),
    radial-gradient(ellipse 50% 35% at 10% 105%, rgba(231,190,115,.08), transparent 70%),
    linear-gradient(180deg, #10162b 0%, #0c1124 55%, #0a0f20 100%) fixed;
}
a { color: var(--gold-lt); text-underline-offset: .18em; }
::selection { background: rgba(231,190,115,.35); color: #fff; }

/* ---------- Barre latérale ---------- */
#sidebar { background: linear-gradient(180deg, #111735 0%, #0d1229 100%); border-right: 1px solid var(--border); }
.gt-brand { background: transparent; backdrop-filter: blur(6px); }
#sidebar .gt-brand { background: rgba(17,23,53,.92); }
.gt-brand-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; text-transform: none; color: var(--text); }
.gt-brand-sub { font-family: var(--serif); color: var(--gold-lt); opacity: .85; }
.gt-nav-section { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .19em; color: var(--gold-lt); opacity: .9; }
.gt-menu a, .gt-link { font-family: var(--sans); font-size: .86rem; color: #d7d6e6; border-left: 0; margin: 1px .6rem; padding: .48rem .75rem; border-radius: 10px; }
.gt-menu a:hover, .gt-link:hover, .gt-menu .current-menu-item > a, .gt-menu li.is-active > a { color: var(--text); background: rgba(231,190,115,.10); box-shadow: inset 2px 0 0 var(--gold-lt); }
.gt-divider { border-top-color: var(--border); }
#gt-burger { background: #111735; border-radius: 12px; }

/* ---------- Contenu ---------- */
.gt-title, .gt-entry h1, .gt-entry h2, .gt-entry h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; color: var(--text); }
.gt-title { color: var(--text); font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.06; }
.gt-content p, .gt-content li { color: var(--mist); }
.gt-content blockquote { border-left-color: var(--gold-lt); }
.gt-meta { font-family: var(--sans); font-weight: 700; letter-spacing: .16em; color: var(--gold-lt); }
.gt-post { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem 1.6rem; transition: transform .25s, border-color .25s; }
.gt-post:hover { transform: translateY(-2px); border-color: rgba(231,190,115,.35); }
.gt-btn { font-family: var(--sans); font-weight: 700; border-radius: 999px; border-color: rgba(231,190,115,.55); padding: .6rem 1.2rem; }
.gt-btn:hover { background: rgba(231,190,115,.12); }
input, textarea, select { background: rgba(16,22,43,.85); border-radius: 10px; font-family: var(--sans); }
.navigation.pagination .page-numbers { border-radius: 999px; }

/* Largeur uniforme de toutes les sections de l'accueil */
body .gt-entry { max-width: 1120px; }
body .aap, body .alxd-net { max-width: 1120px; }

/* Sections du portail (alxd-portal) */
body .alxd-section, body .alxd-panel {
  background: linear-gradient(160deg, rgba(33,42,76,.78), rgba(21,27,53,.88));
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 24px 60px -32px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05);
}
body .alxd-kicker, body .alxd-net-kicker { font-family: var(--sans) !important; font-weight: 700; letter-spacing: .19em; color: var(--gold-lt) !important; }
body .alxd-section h2, body .alxd-panel h2, body .alxd-net h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; color: var(--text); }
body .alxd-section p, body .alxd-panel p, body .alxd-net-sub { color: var(--mist); }

/* ---------- Pied de page ---------- */
.gt-site-footer { border-top: 1px solid var(--border); font-family: var(--sans); font-size: .85rem; }
.gt-xmas-note { font-family: var(--serif); font-style: italic; color: var(--gold-lt); font-size: 1rem; }

/* ---------- Noël toute l'année : guirlande lumineuse ---------- */
.gt-garland { position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: 22px; z-index: 5; pointer-events: none; overflow: hidden; }
body.admin-bar .gt-garland { top: 32px; }
.gt-garland::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: radial-gradient(circle at 50% -10px, transparent 19px, rgba(70,95,78,.95) 19.5px, rgba(70,95,78,.95) 20.6px, transparent 21px) 0 0 / 40px 14px repeat-x; }
.gt-garland i { position: absolute; top: 9px; margin-left: -3.5px; width: 7px; height: 11px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; opacity: .9; animation: gt-bulb 2.6s ease-in-out infinite; }
.gt-garland i:nth-child(4n+1) { background: #ff5a5f; box-shadow: 0 0 10px 2px rgba(255,90,95,.55); }
.gt-garland i:nth-child(4n+2) { background: #f5d27a; box-shadow: 0 0 10px 2px rgba(245,210,122,.55); animation-delay: -.6s; }
.gt-garland i:nth-child(4n+3) { background: #5fd39a; box-shadow: 0 0 10px 2px rgba(95,211,154,.5); animation-delay: -1.3s; }
.gt-garland i:nth-child(4n)   { background: #a99dff; box-shadow: 0 0 10px 2px rgba(169,157,255,.5); animation-delay: -1.9s; }
@keyframes gt-bulb { 50% { opacity: .35; box-shadow: none; } }
@media (max-width: 900px) { .gt-garland { left: 0; } body.admin-bar .gt-garland { top: 46px; } }
@media (prefers-reduced-motion: reduce) { .gt-garland i { animation: none; } }
@media print { .gt-garland { display: none !important; } body { background: #fff !important; } }
