/* =====================================================================
   Royaume Noir — thème Azuriom des Terres Royales (sombre et or)
   Polices : Cinzel (fournie avec le thème, aucune requête externe),
   texte en police système, chiffres et commandes en monospace système.
   ===================================================================== */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("../fonts/cinzel-decorative.woff") format("woff"); font-display: swap; }

:root,
[data-bs-theme="dark"] {
    --rn-bg: #08070a;
    --rn-bg2: #0c0a0c;
    --rn-surface: #110f11;
    --rn-surface2: #161316;
    --rn-line: rgba(243, 235, 221, .09);
    --rn-line2: rgba(243, 235, 221, .16);
    --rn-text: #f3ebdd;
    --rn-text2: #d9ccb4;
    --rn-muted: #a99d88;
    --rn-dim: #7e7462;
    --rn-gold: #e7be62;
    --rn-gold2: #f6da95;
    --rn-ink: #1a1306;
    --rn-ember: #e9845a;
    --rn-green: #5ed68c;
    --rn-radius: 22px;
    --rn-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --rn-serif: "Cinzel", Georgia, serif;
    --rn-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

    --bs-body-bg: var(--rn-bg);
    --bs-body-color: var(--rn-text);
    --bs-body-font-family: var(--rn-sans);
    --bs-secondary-color: var(--rn-muted);
    --bs-tertiary-bg: var(--rn-surface2);
    --bs-secondary-bg: var(--rn-surface);
    --bs-border-color: var(--rn-line2);
    --bs-link-color: var(--rn-gold);
    --bs-link-color-rgb: 231, 190, 98;
    --bs-link-hover-color: var(--rn-gold2);
    --bs-link-hover-color-rgb: 246, 218, 149;
    --bs-primary: var(--rn-gold);
    --bs-primary-rgb: 231, 190, 98;
    --bs-emphasis-color: #fff;
    --bs-heading-color: var(--rn-text);
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body { background: var(--rn-bg); color: var(--rn-text); font-family: var(--rn-sans); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
#app { flex: 1 0 auto; }
::selection { background: var(--rn-gold); color: var(--rn-ink); }
a { color: var(--rn-gold); text-decoration: none; }
a:hover { color: var(--rn-gold2); }
:focus-visible { outline: 2px solid var(--rn-gold); outline-offset: 3px; }
h1, h2, h3, h4, h5 { color: var(--rn-text); }

.rn-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--rn-gold); color: var(--rn-ink); padding: 8px 14px; border-radius: 10px; }
.rn-skip:focus { left: 12px; }

.rn-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.rn-display { font-family: var(--rn-serif); font-weight: 800; letter-spacing: .005em; }
.rn-mono { font-family: var(--rn-mono); }
.rn-muted { color: var(--rn-muted); }
.rn-gold { color: var(--rn-gold); }
.rn-green { color: var(--rn-green); }
.rn-small { font-size: 14px; }
.rn-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8e836f; }
.rn-num { font-family: var(--rn-mono); font-size: 12px; color: var(--rn-gold); letter-spacing: .04em; text-transform: uppercase; }
.rn-link { font-weight: 600; }
.rn-chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rn-text); background: rgba(8, 7, 10, .65); padding: 6px 12px; border-radius: 999px; }

/* ---------- boutons ---------- */
.rn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14px; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; white-space: nowrap; }
.rn-btn:hover { transform: translateY(-1px); }
.rn-btn-gold { background: var(--rn-gold); color: var(--rn-ink); }
.rn-btn-gold:hover { color: var(--rn-ink); box-shadow: 0 10px 30px rgba(231, 190, 98, .25); }
.rn-btn-ghost { border-color: var(--rn-line2); color: var(--rn-text2); background: transparent; }
.rn-btn-ghost:hover { color: var(--rn-text); border-color: rgba(231, 190, 98, .4); }
.rn-btn-glass { background: rgba(243, 235, 221, .06); border-color: rgba(243, 235, 221, .14); color: var(--rn-text); backdrop-filter: blur(10px); }
.rn-btn-glass:hover { color: var(--rn-text); }
.rn-btn-lg { min-height: 64px; padding: 0 24px; border-radius: 18px; font-size: 16px; font-weight: 600; }
.rn-btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.rn-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--rn-line); background: rgba(243, 235, 221, .03); color: var(--rn-text2); position: relative; cursor: pointer; }
.rn-icon-btn:hover { border-color: rgba(231, 190, 98, .4); color: var(--rn-gold2); }
.rn-input { flex: 1; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--rn-line2); background: var(--rn-surface); color: var(--rn-text); font-size: 16px; min-width: 0; }
.rn-input:focus { outline: none; border-color: rgba(231, 190, 98, .55); box-shadow: 0 0 0 4px rgba(231, 190, 98, .12); }

/* ---------- bandeau d'événement ---------- */
.rn-eventbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; background: #150f07; border-bottom: 1px solid rgba(231, 190, 98, .18); color: var(--rn-text2); font-size: 13px; }
a.rn-eventbar:hover { color: var(--rn-text); }
.rn-eventbar-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--rn-gold); color: var(--rn-ink); }
.rn-eventbar-cd { color: var(--rn-gold2); }
.rn-eventbar-link { color: var(--rn-gold); font-weight: 600; }

/* ---------- navigation ---------- */
.rn-header { position: sticky; top: 0; z-index: 1030; padding: 14px 20px 0; }
.rn-nav { padding: 0; }
.rn-nav-inner { max-width: 1320px; margin: 0 auto; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 18px; background: rgba(16, 14, 15, .76); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--rn-line); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.rn-brand { display: flex; align-items: center; gap: 10px; color: var(--rn-text); font-family: var(--rn-serif); font-weight: 900; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.rn-brand:hover { color: var(--rn-text); }
.rn-brand svg { color: var(--rn-gold); }
.rn-brand-logo { height: 32px; width: auto; }
.rn-nav .navbar-toggler { margin-left: auto; border: 1px solid var(--rn-line); }
.rn-nav .navbar-toggler:focus { box-shadow: none; }
.rn-nav .navbar-collapse { flex-grow: 1; }
.rn-links { gap: 2px; margin-left: 10px; }
.rn-links .nav-link { padding: 9px 14px !important; border-radius: 11px; color: var(--rn-muted); font-size: 14px; font-weight: 500; }
.rn-links .nav-link:hover { background: rgba(243, 235, 221, .06); color: var(--rn-text); }
.rn-links .nav-link.active { color: var(--rn-text); font-weight: 600; }
.rn-nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rn-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 14px; border-radius: 12px; border: 1px solid var(--rn-line); background: rgba(243, 235, 221, .03); color: #8e836f; font-size: 14px; cursor: pointer; min-width: 250px; }
.rn-search:hover { border-color: rgba(231, 190, 98, .35); color: var(--rn-text2); }
.rn-search-txt { flex: 1; text-align: left; }
.rn-search kbd, .rn-kbd-btn { font-family: var(--rn-mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--rn-line2); background: transparent; color: var(--rn-muted); }
.rn-kbd-btn { min-height: 36px; padding: 0 10px; cursor: pointer; }
.rn-bell-dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--rn-ember); }
.rn-user { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 12px; border: 1px solid var(--rn-line); background: transparent; color: var(--rn-text2); font-size: 14px; }
.rn-user img { border-radius: 6px; image-rendering: pixelated; }
.rn-header .nav-item .nav-link .badge { font-size: 10px; }
.dropdown-menu { --bs-dropdown-bg: #141114; --bs-dropdown-border-color: rgba(231, 190, 98, .2); --bs-dropdown-link-color: var(--rn-text2); --bs-dropdown-link-hover-bg: rgba(231, 190, 98, .1); --bs-dropdown-link-hover-color: var(--rn-text); --bs-dropdown-link-active-bg: rgba(231, 190, 98, .18); --bs-dropdown-link-active-color: var(--rn-text); border-radius: 16px; padding: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.dropdown-item { border-radius: 10px; padding: 9px 12px; }
.rn-alerts { width: 340px; padding: 12px; }
.rn-alerts-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 10px 10px; }
.rn-alerts-head span { font-size: 12px; color: var(--rn-dim); }
.rn-alerts-note { font-size: 12px; color: var(--rn-dim); padding: 8px 10px 2px; margin: 0; }
.rn-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 54px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; color: var(--rn-text2); text-align: left; cursor: pointer; }
.rn-switch:hover { background: rgba(243, 235, 221, .04); }
.rn-switch b { display: block; font-weight: 600; font-size: 14px; }
.rn-switch small { display: block; font-size: 12px; color: #8e836f; }
.rn-switch i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(243, 235, 221, .15); position: relative; transition: background .2s ease; }
.rn-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--rn-text); transition: transform .2s ease; }
.rn-switch[aria-pressed="true"] i { background: var(--rn-gold); }
.rn-switch[aria-pressed="true"] i::after { transform: translateX(16px); }

/* ---------- héros ---------- */
.rn-hero { margin-top: -78px; padding: 170px 0 90px; min-height: 660px; background-size: cover; background-position: center 35%; animation: rnKenBurns 26s ease-in-out infinite; }
@keyframes rnKenBurns { 0%, 100% { background-position: center 30%; } 50% { background-position: center 42%; } }
.rn-hero-grid { display: flex; gap: 48px; align-items: flex-end; }
.rn-hero-copy { flex: 1 1 680px; min-width: 0; }
.rn-kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--rn-gold); font-weight: 600; }
.rn-kicker span { width: 40px; height: 1px; background: var(--rn-gold); }
.rn-hero-title { margin: 22px 0 0; font-weight: 900; font-size: clamp(54px, 8vw, 116px); line-height: .92; }
.rn-hero-text { margin: 26px 0 0; max-width: 520px; font-size: 19px; line-height: 1.65; color: var(--rn-text2); }
.rn-hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rn-ip { display: inline-flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 8px 0 22px; border-radius: 18px; border: 1px solid rgba(231, 190, 98, .45); background: rgba(8, 7, 10, .72); backdrop-filter: blur(10px); color: var(--rn-text); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.rn-ip:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(231, 190, 98, .2); }
.rn-ip-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.rn-ip-txt small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8e836f; }
.rn-ip-txt .rn-mono { font-size: 19px; }
.rn-ip-big { font-size: 20px; }
.rn-ip-btn { min-height: 48px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 12px; background: var(--rn-gold); color: var(--rn-ink); font-weight: 700; font-size: 15px; }
.rn-livecard { flex: 0 1 400px; border-radius: 24px; background: rgba(16, 14, 15, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--rn-line); padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.rn-livecard hr { border-color: var(--rn-line); opacity: 1; margin: 18px 0; }
.rn-livecard-head { display: flex; align-items: center; gap: 12px; }
.rn-livecard-head .rn-mono { margin-left: auto; font-size: 13px; }
.rn-livecard-count { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.rn-bignum { font-size: 52px; font-weight: 900; line-height: 1; }
.rn-bignum small { font-size: 22px; color: #6e6556; }
.rn-heads { display: flex; }
.rn-heads img { width: 36px; height: 36px; border-radius: 9px; border: 2px solid #121012; margin-left: -10px; image-rendering: pixelated; background: #222; }
.rn-heads img:first-child { margin-left: 0; }
.rn-heads span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: -10px; border-radius: 9px; border: 2px solid #121012; background: #2a2420; color: var(--rn-text2); font-size: 12px; font-weight: 700; }
.rn-feed-item { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; }
.rn-feed-item i { width: 8px; height: 8px; border-radius: 2px; margin-top: 8px; flex: none; }
.rn-feed-item span { flex: 1; color: var(--rn-text2); }
.rn-feed-item time { color: #6e6556; font-size: 13px; white-space: nowrap; }
.rn-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rn-green); }
.rn-dot.is-off { background: #6e6556; }
.rn-pulse { animation: rnPulse 2s infinite; }
@keyframes rnPulse { 0% { box-shadow: 0 0 0 0 rgba(94, 214, 140, .55); } 70% { box-shadow: 0 0 0 10px rgba(94, 214, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 214, 140, 0); } }
@keyframes rnRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rn-rise { animation: rnRise .9s cubic-bezier(.2, .8, .2, 1) both; }
.rn-rise2 { animation: rnRise .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
.rn-rise3 { animation: rnRise .9s .3s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- chronique défilante ---------- */
.rn-marquee-wrap { border-top: 1px solid rgba(243, 235, 221, .06); border-bottom: 1px solid rgba(243, 235, 221, .06); background: var(--rn-bg2); overflow: hidden; padding: 16px 0; }
.rn-marquee { display: flex; gap: 56px; width: max-content; animation: rnScroll 48s linear infinite; }
.rn-marquee:hover { animation-play-state: paused; }
.rn-marquee span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 14px; color: var(--rn-muted); }
.rn-marquee b { color: var(--rn-text2); font-weight: 500; }
.rn-marquee i { color: var(--rn-gold); font-size: 11px; }
@keyframes rnScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.rn-section { padding: 110px 0 20px; }
.rn-section-last { padding-bottom: 110px; }
.rn-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.rn-sechead h2 { margin: 10px 0 0; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; }
.rn-sechead p { margin: 0; max-width: 380px; }
.rn-g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.rn-tile { border-radius: var(--rn-radius); border: 1px solid var(--rn-line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s ease; }
.rn-tile:hover { transform: perspective(900px) rotateX(1.5deg) translateY(-4px); border-color: rgba(231, 190, 98, .42); }
.rn-panel { border-radius: var(--rn-radius); background: var(--rn-surface); border: 1px solid var(--rn-line); padding: 24px; }
.rn-panel:hover { transform: none; }
.rn-panel-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rn-maptile { min-height: 380px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background-size: cover; background-position: center; color: var(--rn-text); }
.rn-maptile:hover { color: var(--rn-text); }
.rn-maptile-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.rn-maptile h3 { margin: 0; font-size: 36px; }
.rn-maptile p { margin: 4px 0 0; color: var(--rn-text2); }
.rn-online { display: flex; flex-direction: column; gap: 6px; }
.rn-online-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; background: rgba(243, 235, 221, .025); }
.rn-online-row img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; background: #222; }
.rn-online-row b { flex: 1; font-weight: 600; font-size: 15px; }
.rn-online-row small { font-size: 12px; color: var(--rn-muted); padding: 3px 8px; border-radius: 6px; background: rgba(243, 235, 221, .05); }
.rn-bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rn-boss { border-radius: 16px; padding: 16px; background: #0e1210; border: 1px solid rgba(94, 214, 140, .18); }
.rn-boss.is-down { background: #160d0a; border-color: rgba(240, 128, 80, .2); }
.rn-boss-state { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #8cd9a8; }
.rn-boss.is-down .rn-boss-state { color: #e9a07a; }
.rn-boss-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rn-green); }
.rn-boss.is-down .rn-boss-state::before { background: var(--rn-ember); }
.rn-boss-name { margin-top: 8px; font-family: var(--rn-serif); font-size: 18px; font-weight: 700; line-height: 1.25; }
.rn-boss-by { margin-top: 4px; font-size: 13px; color: #8e836f; }

/* ---------- carnet ---------- */
.rn-carnet-copy { display: flex; flex-direction: column; justify-content: center; }
.rn-carnet-copy h2 { margin: 10px 0 14px; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; }
.rn-carnet-form { display: flex; gap: 8px; max-width: 460px; }
.rn-carnet { min-height: 240px; border-radius: 28px; padding: 30px; background: #120f0b; border: 1px solid rgba(231, 190, 98, .3); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); display: flex; flex-direction: column; justify-content: center; }
.rn-carnet-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rn-carnet-top img { width: 92px; height: 92px; border-radius: 18px; box-shadow: 0 0 0 3px rgba(231, 190, 98, .5); image-rendering: pixelated; background: #222; }
.rn-carnet-name { font-family: var(--rn-serif); font-size: 32px; font-weight: 800; }
.rn-carnet-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.rn-carnet-stats div { border-radius: 16px; padding: 16px; background: rgba(243, 235, 221, .04); }
.rn-carnet-stats b { display: block; font-family: var(--rn-serif); font-size: 30px; font-weight: 800; color: var(--rn-gold2); line-height: 1.2; }
.rn-carnet-stats small { font-size: 13px; color: #8e836f; }
.rn-badges { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.rn-badges span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(231, 190, 98, .3); color: var(--rn-gold2); }

/* ---------- codex ---------- */
.rn-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--rn-surface); border: 1px solid var(--rn-line); }
.rn-tabs button { min-height: 44px; padding: 0 20px; border-radius: 10px; border: 0; background: transparent; color: var(--rn-muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.rn-tabs button.is-active { background: var(--rn-gold); color: var(--rn-ink); }
.rn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.rn-card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; padding: 24px; background: var(--rn-surface); color: var(--rn-text); min-height: 190px; cursor: pointer; font-size: 16px; }
.rn-card:hover { color: var(--rn-text); }
.rn-card-title { font-size: 23px; line-height: 1.2; }
.rn-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--rn-gold); }
.rn-card-foot code { color: var(--rn-gold2); font-size: 13px; }
.rn-mapbox { position: relative; border-radius: var(--rn-radius); overflow: hidden; border: 1px solid rgba(231, 190, 98, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.rn-mapbox img { display: block; width: 100%; height: auto; }
.rn-hotspot { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--rn-gold); background: rgba(8, 7, 10, .78); color: var(--rn-gold2); font-family: var(--rn-serif); font-weight: 800; cursor: pointer; box-shadow: 0 0 0 0 rgba(231, 190, 98, .5); animation: rnHot 2.4s infinite; }
.rn-hotspot:hover { background: var(--rn-gold); color: var(--rn-ink); }
@keyframes rnHot { 0% { box-shadow: 0 0 0 0 rgba(231, 190, 98, .5); } 70% { box-shadow: 0 0 0 14px rgba(231, 190, 98, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 190, 98, 0); } }

/* ---------- chroniques ---------- */
.rn-news { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 26px; min-height: 220px; background: var(--rn-surface); color: var(--rn-text); background-size: cover; background-position: center; }
.rn-news:hover { color: var(--rn-text); }
.rn-news-big { min-height: 300px; }
.rn-news-title { font-size: 20px; font-weight: 600; line-height: 1.35; }
.rn-news-big .rn-news-title { font-family: var(--rn-serif); font-size: 28px; font-weight: 800; line-height: 1.15; }

/* ---------- appel final ---------- */
.rn-cta { border-radius: 32px; border: 1px solid rgba(231, 190, 98, .25); padding: 80px 40px; text-align: center; background-size: cover; background-position: center; }
.rn-cta h2 { margin: 14px auto 0; font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1; }
.rn-cta p { margin: 18px auto 30px; color: var(--rn-text2); max-width: 520px; }

/* ---------- pages internes ---------- */
.rn-pagehead { margin-top: -78px; padding: 150px 0 40px; background: radial-gradient(1200px 400px at 20% 0%, rgba(231, 190, 98, .08), transparent 70%); border-bottom: 1px solid var(--rn-line); }
.rn-pagehead h1 { margin: 10px 0 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
.rn-lead { margin: 14px 0 0; max-width: 680px; color: var(--rn-text2); font-size: 18px; }
.rn-content { padding-top: 40px; padding-bottom: 90px; }
.rn-page { font-size: 17px; line-height: 1.75; color: var(--rn-text2); }
.rn-page > p, .rn-page > ul, .rn-page > ol, .rn-page > h2, .rn-page > h3, .rn-page > blockquote { max-width: 860px; }
.rn-page > p[style*="center"] { margin-left: auto; margin-right: auto; }
.rn-page strong { color: var(--rn-text); font-weight: 600; }
.rn-page ul, .rn-page ol { padding-left: 1.3em; }
.rn-page li { margin-bottom: .35em; }
.rn-page li::marker { color: var(--rn-gold); }
.rn-page h2 { font-size: 30px; margin: 2.2em 0 .7em; padding-bottom: .4em; border-bottom: 1px solid var(--rn-line); }
.rn-page h2:first-child { margin-top: 0; }
.rn-page h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.rn-page h2, .rn-page h3 { font-family: var(--rn-serif); font-weight: 700; color: var(--rn-text); }
.rn-page img { max-width: 100%; height: auto; border-radius: 16px; }
.rn-article-img { border-radius: var(--rn-radius); }
.rn-error { text-align: center; padding: 60px 0; }
.rn-error-code { font-size: 120px; line-height: 1; margin: 10px 0; color: var(--rn-gold); }

/* ---------- blocs des pages rédigées dans l'admin (Grimoire, Bestiaire…) ---------- */
.rn-page .tr-grid { display: grid; gap: 18px; margin: 28px 0; }
.rn-page .tr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rn-page .tr-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rn-page .tr-card, .rn-page .tr-panel-dark { border-radius: 20px; padding: 22px 24px; background: var(--rn-surface); border: 1px solid var(--rn-line); }
.rn-page .tr-panel-dark { background: #120f0b; border-color: rgba(231, 190, 98, .25); margin: 28px 0; }
.rn-page .tr-card h3, .rn-page .tr-panel-dark h3 { margin-top: 0; font-size: 19px; }
.rn-page .tr-card > :last-child, .rn-page .tr-panel-dark > :last-child { margin-bottom: 0; }
.rn-page .tr-cmd, .rn-page code { font-family: var(--rn-mono); font-size: .88em; color: var(--rn-gold2); background: rgba(231, 190, 98, .08); border: 1px solid rgba(231, 190, 98, .16); padding: 2px 7px; border-radius: 7px; white-space: nowrap; }
.rn-page .tr-table, .rn-page table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 15px; border: 1px solid var(--rn-line); border-radius: 16px; overflow: hidden; }
.rn-page .tr-table th, .rn-page table th { background: rgba(243, 235, 221, .04); color: #8e836f; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.rn-page .tr-table th, .rn-page .tr-table td, .rn-page table th, .rn-page table td { padding: 12px 16px; border-bottom: 1px solid var(--rn-line); text-align: left; vertical-align: top; }
.rn-page .tr-table tr:last-child td, .rn-page table tr:last-child td { border-bottom: 0; }
.rn-page .tr-boss { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--rn-surface); border: 1px solid var(--rn-line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s ease; }
.rn-page .tr-boss:hover { transform: translateY(-4px); border-color: rgba(231, 190, 98, .4); }
.rn-page .tr-boss-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; border-bottom: 1px solid var(--rn-line); }
.rn-page .tr-boss-body { padding: 20px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.rn-page .tr-boss-body h3 { order: -1; margin: 0 0 10px; font-size: 24px; line-height: 1.2; }
.rn-page .tr-boss-body p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.rn-page .tr-boss-body .tr-badge { align-self: flex-start; }
.rn-page .tr-boss-body > .tr-badge { display: inline-flex; margin: 0 6px 12px 0; }
.rn-page .tr-boss-body { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
.rn-page .tr-boss-body > h3, .rn-page .tr-boss-body > p { flex: 0 0 100%; }
.rn-page .tr-badge { font-family: var(--rn-sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(243, 235, 221, .16); color: var(--rn-text2); background: rgba(243, 235, 221, .04); line-height: 1.6; }
.rn-page .tr-badge-hard { color: #f7b48f; border-color: rgba(233, 132, 90, .35); background: rgba(233, 132, 90, .1); }
.rn-page .tr-badge-extreme { color: #ff9a9a; border-color: rgba(230, 80, 80, .4); background: rgba(230, 80, 80, .12); }
.rn-page .tr-badge-gold { color: var(--rn-gold2); border-color: rgba(231, 190, 98, .4); background: rgba(231, 190, 98, .1); }
.rn-page .tr-boss-secret { border-style: dashed; border-color: rgba(231, 190, 98, .35); background: #0f0d0f; }
.rn-page .tr-boss-secret .tr-boss-img { filter: grayscale(1) brightness(.35) blur(2px); }

/* ---------- Hall des Légendes ---------- */
.rn-hall { margin-top: 36px; }
.rn-hall-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.rn-hall-head i { color: var(--rn-gold); font-size: 26px; }
.rn-hall-head p { margin: 0; color: var(--rn-text2); }
.rn-hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.rn-hall-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(231, 190, 98, .09), rgba(17, 15, 17, 1) 60%); border: 1px solid rgba(231, 190, 98, .25); text-align: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.rn-hall-card:hover { transform: translateY(-4px); }
.rn-hall-card img { height: 120px; width: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.rn-hall-name { font-family: var(--rn-serif); font-weight: 700; font-size: 17px; color: var(--rn-text); margin-top: 6px; }
.rn-hall-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rn-gold); }


/* ---------- Grimoire du voyageur ---------- */
.rn-grimoire { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.rn-g-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.rn-g-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--rn-line2); background: var(--rn-surface); }
.rn-g-search i { color: var(--rn-gold); }
.rn-g-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: none; background: transparent; color: var(--rn-text); font-size: 15px; }
.rn-g-search:focus-within { border-color: rgba(231, 190, 98, .55); box-shadow: 0 0 0 4px rgba(231, 190, 98, .12); }
.rn-g-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: var(--rn-surface); border: 1px solid var(--rn-line); }
.rn-g-navlink { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--rn-muted); font-size: 14px; font-weight: 500; }
.rn-g-navlink i { width: 18px; text-align: center; color: #8e836f; }
.rn-g-navlink:hover { background: rgba(243, 235, 221, .05); color: var(--rn-text); }
.rn-g-navlink.is-active { background: rgba(231, 190, 98, .12); color: var(--rn-text); }
.rn-g-navlink.is-active i { color: var(--rn-gold); }
.rn-g-navlink.is-hidden { display: none; }
.rn-g-tip { margin: 0; font-size: 13px; color: var(--rn-dim); padding: 0 6px; }
.rn-g-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rn-g-chapter { scroll-margin-top: 110px; border-radius: 24px; background: var(--rn-surface); border: 1px solid var(--rn-line); padding: 28px 30px; }
.rn-g-chapter[hidden] { display: none; }
.rn-g-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rn-line); }
.rn-g-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(231, 190, 98, .12); color: var(--rn-gold); font-size: 22px; }
.rn-g-head h2 { margin: 0; font-family: var(--rn-serif); font-size: 26px; font-weight: 800; line-height: 1.2; }
.rn-g-head p { margin: 2px 0 0; color: var(--rn-muted); font-size: 15px; }
.rn-g-body { color: var(--rn-text2); font-size: 16px; line-height: 1.7; }
.rn-g-body > :first-child { margin-top: 0; }
.rn-g-body strong { color: var(--rn-text); font-weight: 600; }
.rn-g-body p { margin: 0 0 10px; }
.rn-g-sub { font-family: var(--rn-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rn-gold); margin: 22px 0 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rn-g-sub .rn-cmd { text-transform: none; letter-spacing: 0; }
.rn-g-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rn-g-list li { position: relative; padding-left: 20px; }
.rn-g-list li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--rn-gold); transform: rotate(45deg); }
.rn-g-detail { display: block; font-size: 14px; color: var(--rn-muted); }
.rn-g-steps { list-style: none; counter-reset: rn-step; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rn-g-steps li { counter-increment: rn-step; position: relative; padding: 16px 16px 14px; line-height: 1.55; border-radius: 16px; background: rgba(243, 235, 221, .03); border: 1px solid var(--rn-line); font-size: 15px; }
.rn-g-steps li::before { content: counter(rn-step); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--rn-gold); color: var(--rn-ink); font-family: var(--rn-serif); font-weight: 800; font-size: 14px; }
.rn-g-steps li .rn-cmd { margin-top: 6px; }
.rn-g-note, .rn-g-reward { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.rn-g-note { background: rgba(127, 184, 232, .07); border: 1px solid rgba(127, 184, 232, .2); color: #bcd3e6; }
.rn-g-note i { color: #7fb8e8; margin-top: 2px; }
.rn-g-reward { background: rgba(231, 190, 98, .07); border: 1px solid rgba(231, 190, 98, .2); color: var(--rn-text2); }
.rn-g-reward i { color: var(--rn-gold); margin-top: 2px; }
.rn-g-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rn-line); }
.rn-g-row:last-of-type { border-bottom: 0; }
.rn-g-key { font-weight: 600; color: var(--rn-text); }
.rn-g-val { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-cmd { display: inline-flex; align-items: center; font-family: var(--rn-mono); font-size: 13px; line-height: 1.5; color: var(--rn-gold2); background: rgba(231, 190, 98, .08); border: 1px solid rgba(231, 190, 98, .2); padding: 1px 8px; border-radius: 7px; cursor: copy; white-space: nowrap; vertical-align: baseline; transition: background .2s ease, border-color .2s ease; }
.rn-cmd:hover { background: rgba(231, 190, 98, .16); border-color: rgba(231, 190, 98, .45); }
.rn-cmd.is-copied { background: rgba(94, 214, 140, .14); border-color: rgba(94, 214, 140, .45); color: #9ff0bf; }
.rn-g-empty { padding: 40px; text-align: center; color: var(--rn-muted); border: 1px dashed var(--rn-line2); border-radius: 20px; margin: 0; }
mark.rn-hit { background: rgba(231, 190, 98, .3); color: inherit; padding: 0 2px; border-radius: 3px; }
@media (max-width: 991px) {
    .rn-grimoire { grid-template-columns: minmax(0, 1fr); }
    .rn-g-side { position: sticky; top: 76px; z-index: 5; background: var(--rn-bg); padding: 8px 0; }
    .rn-g-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .rn-g-navlink { white-space: nowrap; }
    .rn-g-tip { display: none; }
    .rn-g-chapter { padding: 22px 18px; }
    .rn-g-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- page de vote ---------- */
.rn-vote-head { margin-bottom: 26px; }
.rn-vote-head h1 { margin: 8px 0 6px; font-size: clamp(38px, 5vw, 56px); }
.rn-progress { height: 10px; border-radius: 10px; background: rgba(243, 235, 221, .08); overflow: hidden; }
.rn-progress div { height: 100%; border-radius: 10px; background: var(--rn-gold); }
.rn-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: end; }
.rn-podium-col { border-radius: 22px; background: var(--rn-surface); border: 1px solid var(--rn-line); padding: 26px; text-align: center; }
.rn-podium-col img { border-radius: 16px; image-rendering: pixelated; background: #222; }
.rn-podium-1 { background: #1a150c; border-color: rgba(231, 190, 98, .4); }
.rn-podium-1 img { box-shadow: 0 0 0 3px rgba(231, 190, 98, .5); }
.rn-podium-name { margin-top: 14px; font-weight: 700; font-size: 18px; }
.rn-podium-step { margin-top: 16px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.rn-podium-1 .rn-podium-step { height: 130px; background: rgba(231, 190, 98, .16); color: var(--rn-gold); font-size: 44px; }
.rn-podium-2 .rn-podium-step { height: 90px; background: rgba(201, 194, 181, .12); color: #c9c2b5; }
.rn-podium-3 .rn-podium-step { height: 64px; background: rgba(192, 138, 90, .14); color: #c08a5a; }
.rn-ranking { padding: 0; overflow: hidden; }
.rn-rank-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid rgba(243, 235, 221, .06); }
.rn-rank-row img { border-radius: 8px; image-rendering: pixelated; background: #222; }
.rn-rank-n { width: 28px; color: #9c907b; font-weight: 700; }
.rn-rank-name { flex: 1; font-weight: 600; }
.rn-rank-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 24px; background: rgba(231, 190, 98, .06); }
.rn-reward-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(231, 190, 98, .14); color: var(--rn-gold); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- pied de page ---------- */
.rn-footer { border-top: 1px solid rgba(243, 235, 221, .07); padding: 56px 0 30px; background: var(--rn-bg); color: #8e836f; font-size: 14px; }
.rn-footer a { color: var(--rn-text2); }
.rn-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.rn-footer-name { color: var(--rn-text); letter-spacing: .14em; text-transform: uppercase; font-weight: 900; margin-bottom: 8px; }
.rn-footer-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6e6556; margin-bottom: 10px; font-family: var(--rn-sans); }
.rn-footer-grid li { margin-bottom: 6px; }
.rn-footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(243, 235, 221, .06); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #6e6556; }
.rn-status-line { display: inline-flex; align-items: center; gap: 8px; }
.rn-status-line .rn-dot { width: 7px; height: 7px; }

/* ---------- recherche, panneau, notifications ---------- */
.rn-pal { position: fixed; inset: 0; z-index: 1060; display: flex; justify-content: center; padding: 110px 20px 20px; }
.rn-pal[hidden], .rn-drawer[hidden] { display: none; }
.rn-pal-backdrop, .rn-drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 5, .72); backdrop-filter: blur(8px); }
.rn-pal-box { position: relative; width: 100%; max-width: 640px; height: fit-content; max-height: 70vh; display: flex; flex-direction: column; border-radius: 20px; background: #121012; border: 1px solid rgba(231, 190, 98, .22); box-shadow: 0 50px 140px rgba(0, 0, 0, .7); overflow: hidden; animation: rnRise .25s ease both; }
.rn-pal-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(243, 235, 221, .07); }
.rn-pal-head i { color: var(--rn-gold); }
.rn-pal-head input { flex: 1; background: transparent; border: 0; outline: none; color: var(--rn-text); font-size: 17px; min-width: 0; }
.rn-pal-list { overflow-y: auto; padding: 10px; }
.rn-pal-group { padding: 8px 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rn-dim); }
.rn-pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--rn-text); }
.rn-pal-item:hover, .rn-pal-item.is-active { background: rgba(231, 190, 98, .1); color: var(--rn-text); }
.rn-pal-item img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; }
.rn-pal-item code { font-family: var(--rn-mono); color: var(--rn-gold2); min-width: 120px; }
.rn-pal-item span { flex: 1; }
.rn-pal-item small { color: var(--rn-dim); font-size: 13px; }
.rn-pal-empty { padding: 20px; color: var(--rn-muted); text-align: center; }
.rn-drawer { position: fixed; inset: 0; z-index: 1060; display: flex; justify-content: flex-end; }
.rn-drawer-panel { position: relative; width: 100%; max-width: 460px; height: 100%; overflow-y: auto; background: var(--rn-surface); border-left: 1px solid rgba(231, 190, 98, .22); box-shadow: -30px 0 80px rgba(0, 0, 0, .5); animation: rnDrawer .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rnDrawer { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.rn-drawer-img { height: 210px; position: relative; background: linear-gradient(180deg, rgba(8, 7, 10, .1) 30%, rgba(17, 15, 17, 1) 100%), var(--rn-drawer-img, none) center / cover; }
.rn-drawer-img .rn-icon-btn { position: absolute; top: 16px; right: 16px; background: rgba(8, 7, 10, .7); }
.rn-drawer-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.rn-drawer-body h3 { margin: 0; font-size: 34px; line-height: 1.1; }
.rn-drawer-cmd { border-radius: 14px; padding: 16px; background: rgba(231, 190, 98, .07); border: 1px solid rgba(231, 190, 98, .18); }
.rn-drawer-cmd code { font-family: var(--rn-mono); font-size: 16px; color: var(--rn-gold2); }
.rn-toasts { position: fixed; left: 20px; bottom: 20px; z-index: 1055; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.rn-toast { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(18, 16, 18, .94); backdrop-filter: blur(14px); border: 1px solid var(--rn-line2); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: rnRise .5s cubic-bezier(.2, .8, .2, 1) both; font-size: 14px; color: var(--rn-text2); }
.rn-toast i.rn-toast-mark { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rn-toast span { flex: 1; }
.rn-toast small { display: block; font-size: 12px; color: var(--rn-dim); }
.rn-toast button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(243, 235, 221, .06); color: var(--rn-muted); cursor: pointer; }

/* ---------- composants Bootstrap (boutique, profil, connexion…) ---------- */
.card { --bs-card-bg: var(--rn-surface); --bs-card-border-color: var(--rn-line); --bs-card-border-radius: var(--rn-radius); --bs-card-cap-bg: rgba(243, 235, 221, .03); --bs-card-color: var(--rn-text); }
.card-header { font-family: var(--rn-serif); font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--rn-gold); --bs-btn-border-color: var(--rn-gold); --bs-btn-color: var(--rn-ink); --bs-btn-hover-bg: var(--rn-gold2); --bs-btn-hover-border-color: var(--rn-gold2); --bs-btn-hover-color: var(--rn-ink); --bs-btn-active-bg: #d4a948; --bs-btn-active-border-color: #d4a948; --bs-btn-active-color: var(--rn-ink); --bs-btn-disabled-bg: #8e7a4a; --bs-btn-disabled-border-color: #8e7a4a; --bs-btn-disabled-color: var(--rn-ink); font-weight: 700; border-radius: 12px; }
.btn-secondary, .btn-outline-secondary { --bs-btn-color: var(--rn-text2); --bs-btn-border-color: var(--rn-line2); --bs-btn-bg: transparent; --bs-btn-hover-bg: rgba(243, 235, 221, .06); --bs-btn-hover-color: var(--rn-text); --bs-btn-hover-border-color: rgba(231, 190, 98, .4); border-radius: 12px; }
.btn-outline-primary { --bs-btn-color: var(--rn-gold); --bs-btn-border-color: rgba(231, 190, 98, .5); --bs-btn-hover-bg: var(--rn-gold); --bs-btn-hover-color: var(--rn-ink); --bs-btn-hover-border-color: var(--rn-gold); border-radius: 12px; }
.form-control, .form-select { background-color: var(--rn-surface); border-color: var(--rn-line2); color: var(--rn-text); border-radius: 12px; }
.form-control:focus, .form-select:focus { background-color: var(--rn-surface); border-color: rgba(231, 190, 98, .55); box-shadow: 0 0 0 4px rgba(231, 190, 98, .12); color: var(--rn-text); }
.form-check-input:checked { background-color: var(--rn-gold); border-color: var(--rn-gold); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--rn-text); --bs-table-border-color: var(--rn-line); --bs-table-striped-bg: rgba(243, 235, 221, .03); }
.table-dark { --bs-table-bg: rgba(243, 235, 221, .04); --bs-table-color: var(--rn-muted); }
.list-group { --bs-list-group-bg: var(--rn-surface); --bs-list-group-border-color: var(--rn-line); --bs-list-group-color: var(--rn-text2); --bs-list-group-action-hover-bg: rgba(231, 190, 98, .08); --bs-list-group-active-bg: var(--rn-gold); --bs-list-group-active-border-color: var(--rn-gold); --bs-list-group-active-color: var(--rn-ink); }
.pagination { --bs-pagination-bg: var(--rn-surface); --bs-pagination-border-color: var(--rn-line); --bs-pagination-color: var(--rn-text2); --bs-pagination-hover-bg: rgba(231, 190, 98, .1); --bs-pagination-hover-color: var(--rn-text); --bs-pagination-active-bg: var(--rn-gold); --bs-pagination-active-border-color: var(--rn-gold); --bs-pagination-active-color: var(--rn-ink); }
.modal-content { background: var(--rn-surface); border: 1px solid rgba(231, 190, 98, .2); border-radius: var(--rn-radius); }
.alert { border-radius: 14px; }
.badge.bg-primary { background: var(--rn-gold) !important; color: var(--rn-ink); }
.nav-tabs, .nav-pills { --bs-nav-link-color: var(--rn-muted); --bs-nav-link-hover-color: var(--rn-text); --bs-nav-pills-link-active-bg: var(--rn-gold); --bs-nav-pills-link-active-color: var(--rn-ink); --bs-nav-tabs-link-active-bg: var(--rn-surface); --bs-nav-tabs-link-active-color: var(--rn-text); --bs-nav-tabs-border-color: var(--rn-line); }
.content > .card:first-child, main.content .card { margin-bottom: 1.5rem; }

/* ---------- adaptatif ---------- */
@media (max-width: 1199px) {
    .rn-search { min-width: 0; }
    .rn-search-txt { display: none; }
}
@media (max-width: 991px) {
    .rn-header { padding: 10px 12px 0; }
    .rn-nav-inner { padding: 8px 8px 8px 14px; }
    .rn-links { margin: 10px 0 0; }
    .rn-nav-tools { margin: 10px 0 4px; flex-wrap: wrap; }
    .rn-hero { padding: 140px 0 70px; }
    .rn-hero-grid { flex-direction: column; align-items: stretch; }
    .s3, .s4, .s5, .s6, .s7, .s8 { grid-column: span 12; }
    .rn-footer-grid { grid-template-columns: 1fr; }
    .rn-page .tr-grid-2, .rn-page .tr-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .rn-page .tr-table, .rn-page table { display: block; overflow-x: auto; }
    .rn-carnet-copy { margin-bottom: 10px; }
}
@media (max-width: 640px) {
    .rn-ip { width: 100%; justify-content: space-between; }
    .rn-btn-lg { width: 100%; }
    .rn-podium { grid-template-columns: 1fr; }
    .rn-carnet-stats { grid-template-columns: 1fr 1fr; }
    .rn-hotspot { width: 34px; height: 34px; font-size: 13px; }
    .rn-cta { padding: 56px 22px; }
    .rn-tabs { width: 100%; }
    .rn-tabs button { flex: 1; padding: 0 10px; }
    .rn-cmd { white-space: normal; word-break: break-word; }
}
/* ==========================================================================
   VERSION TÉLÉPHONE — tout ce bloc ne s'applique qu'aux écrans de 760 px et moins.
   Le site ordinateur n'est pas touché.
   ========================================================================== */
.rn-tabbar { display: none; }
@media (max-width: 760px) {
    /* Barre d'onglets façon application */
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .rn-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(12, 10, 12, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(243, 235, 221, .08); }
    .rn-tabbar a, .rn-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 54px; justify-content: center; border: 0; background: none; color: #8e836f; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .rn-tabbar i { font-size: 20px; line-height: 1; }
    .rn-tabbar .is-active { color: var(--rn-gold); }
    .rn-tabbar .rn-tabbar-ip { position: relative; top: -14px; min-height: 0; }
    .rn-tabbar .rn-tabbar-ip i { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; color: var(--rn-ink); background: var(--rn-gold); box-shadow: 0 10px 26px rgba(231, 190, 98, .35), 0 0 0 4px #0c0a0c; }
    .rn-tabbar .rn-tabbar-ip span { color: var(--rn-gold); }
    /* Bulles d'annonce : une fine pastille sur une ligne, juste au-dessus de la barre */
    .rn-toasts { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(98px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); gap: 6px; }
    .rn-toast { padding: 7px 6px 7px 12px; gap: 8px; border-radius: 999px; font-size: 12.5px; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
    .rn-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    .rn-toast small { display: none; }
    .rn-toast i.rn-toast-mark { width: 7px; height: 7px; border-radius: 50%; }
    .rn-toast button { width: 24px; height: 24px; border-radius: 50%; font-size: 14px; line-height: 1; }

    /* Rythme général plus serré */
    .rn-section { padding: 56px 0 4px; }
    .rn-section-last { padding-bottom: 56px; }
    .rn-sechead { margin-bottom: 18px; gap: 12px; }
    .rn-sechead h2, .rn-carnet-copy h2 { font-size: 32px; }
    .rn-sechead > p { display: none; }
    .rn-wrap { padding: 0 16px; }

    /* Héros compact */
    .rn-hero { padding: 120px 0 34px; min-height: 0; animation: none; }
    .rn-hero-title { font-size: 46px; margin-top: 14px; }
    .rn-hero-text { font-size: 16px; margin-top: 14px; }
    .rn-hero-actions { gap: 10px; margin-top: 22px; }
    .rn-hero .rn-btn-lg { min-height: 48px; }
    .rn-livecard { flex: 0 0 auto; padding: 16px 18px; border-radius: 20px; margin-top: 22px; }
    .rn-hero-grid { gap: 0; }
    .rn-livecard hr, .rn-livecard .rn-label, .rn-livecard [data-rn-feed] { display: none; }
    .rn-livecard-count { margin-top: 10px; }
    .rn-livecard-head [data-rn-updated] { display: none; }

    /* Carte : vignette plus basse */
    .rn-maptile { min-height: 210px; padding: 18px; }
    .rn-maptile h3 { font-size: 26px; }

    /* Joueurs en ligne : une rangée qui glisse */
    .rn-online { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
    .rn-online::-webkit-scrollbar, .rn-bosses::-webkit-scrollbar, [data-rn-pane="mondes"]::-webkit-scrollbar, .rn-m-news::-webkit-scrollbar { display: none; }
    .rn-online-row { flex: 0 0 auto; scroll-snap-align: start; padding: 8px 12px 8px 8px; }
    .rn-online-row small { display: none; }

    /* Registre des boss et étapes du Codex : cartes à faire glisser */
    .rn-bosses, [data-rn-pane="mondes"] { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
    .rn-bosses > *, [data-rn-pane="mondes"] > * { flex: 0 0 78%; scroll-snap-align: start; }
    .rn-tile.s12.rn-panel .rn-bosses { margin: 0 -18px; padding: 0 18px 6px; scroll-padding-left: 18px; }
    .rn-bosses, [data-rn-pane="mondes"] { scroll-padding-left: 16px; }
    .rn-online { scroll-padding-left: 18px; }
    [id] { scroll-margin-top: 90px; }
    .rn-panel-head .rn-small { display: none; }

    /* Carnet */
    .rn-carnet { padding: 22px; border-radius: 22px; min-height: 0; }

    /* Chroniques : la grande nouvelle, puis des lignes compactes */
    .rn-news { min-height: 0; padding: 16px 18px; }
    .rn-news-big { min-height: 230px; padding: 22px; }
    .rn-news-big .rn-news-title { font-size: 24px; }
    .rn-news-title { font-size: 16px; }

    /* L'appel final fait doublon avec le bouton « Jouer » de la barre */
    .rn-section-last { display: none; }
    .rn-footer { padding: 36px 0 20px; }
    .rn-footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================================================
   TÉLÉPHONE — PASSE « ÉPURÉE » : moins de blocs, moins de texte, l'essentiel d'abord.
   ========================================================================== */
@media (max-width: 760px) {
    /* Bandeau d'événement : une seule ligne fine */
    .rn-eventbar { flex-wrap: nowrap; gap: 8px; padding: 7px 12px; font-size: 12px; white-space: nowrap; overflow: hidden; }
    .rn-eventbar-tag, .rn-eventbar-link { display: none; }
    .rn-eventbar [data-rn-event-label] { overflow: hidden; text-overflow: ellipsis; }

    /* En-tête : barre fine, sans ombre lourde */
    .rn-header { padding: 8px 10px 0; }
    .rn-nav-inner { padding: 4px 4px 4px 14px; border-radius: 14px; box-shadow: none; }
    .rn-brand { font-size: 13px; letter-spacing: .12em; }
    .rn-brand svg { width: 20px; height: 20px; }
    .rn-nav .navbar-toggler { padding: 6px 9px; }

    /* Héros : titre + IP, rien d'autre */
    .rn-hero { padding: 96px 0 22px; }
    .rn-hero-copy { flex: 0 0 auto; }
    .rn-hero .rn-kicker, .rn-hero-text { display: none; }
    .rn-hero-title { font-size: 40px; margin-top: 0; }
    .rn-hero-actions { flex-direction: row; flex-wrap: nowrap; margin-top: 18px; }
    .rn-hero .rn-ip { flex: 1; min-width: 0; min-height: 54px; padding: 0 6px 0 14px; border-radius: 14px; }
    .rn-hero .rn-ip-txt small { display: none; }
    .rn-hero .rn-ip-txt .rn-mono { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
    .rn-hero .rn-ip-btn { min-height: 42px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
    .rn-hero .rn-btn-lg { flex: 0 0 54px; width: 54px; min-height: 54px; padding: 0; border-radius: 14px; font-size: 0; }
    .rn-hero .rn-btn-lg i { font-size: 22px; margin: 0; }

    /* Carte « en direct » : une seule ligne (pastille, nombre, têtes) */
    .rn-livecard { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border-radius: 14px; }
    .rn-livecard-head strong, .rn-livecard > .rn-muted { display: none; }
    .rn-livecard-count { margin: 0; gap: 12px; flex: 1; min-width: 0; }
    .rn-bignum { font-size: 26px; }
    .rn-bignum small { font-size: 14px; }
    .rn-heads { overflow: hidden; }
    .rn-heads img, .rn-heads span { width: 28px; height: 28px; border-radius: 7px; margin-left: -8px; }

    /* Ruban : plus fin */
    .rn-marquee-wrap { padding: 10px 0; }
    .rn-marquee span { font-size: 12.5px; }

    /* Titres de section sobres */
    .rn-section { padding: 40px 0 0; }
    .rn-num { display: none; }
    .rn-sechead { margin-bottom: 14px; }
    .rn-sechead h2, .rn-carnet-copy h2 { font-size: 26px; margin-top: 0; }

    /* 01 · En direct : seulement le registre des boss (la carte est dans le Codex, les joueurs en haut) */
    #direct .rn-maptile, #direct .rn-tile.s4 { display: none; }
    #direct .rn-panel { padding: 0; background: none; border: 0; }
    #direct .rn-panel-head { display: none; }
    .rn-boss { padding: 12px 14px; border-radius: 14px; }
    .rn-boss-name { font-size: 17px; }

    /* 02 · Carnet : réservé à l'ordinateur */
    #carnet { display: none; }

    /* 03 · Codex : onglets compacts, cartes courtes */
    .rn-tabs button { min-height: 40px; font-size: 14px; }
    .rn-card { padding: 16px; gap: 6px; }
    .rn-card .rn-muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
    .rn-card-title { font-size: 20px; }

    /* 04 · Chroniques : une liste nette */
    .rn-news-big { min-height: 180px; padding: 18px; }
    .rn-news-big .rn-news-title { font-size: 20px; }
    .rn-news:not(.rn-news-big) { padding: 12px 16px; border-radius: 14px; }
    .rn-sechead .rn-link { font-size: 14px; }

    /* Pied de page minimal : la barre d'onglets fait le reste */
    .rn-footer { padding: 22px 0 12px; font-size: 12px; }
    .rn-footer-grid > :not(.rn-footer-brand), .rn-footer-brand p { display: none; }
    .rn-footer-name { margin: 0; font-size: 13px; }
    .rn-footer-bottom { margin-top: 10px; padding-top: 10px; }
}

/* ==========================================================================
   TÉLÉPHONE — FINITION « iOS » : matières translucides, listes groupées,
   widgets, contrôle segmenté et barre d'onglets native. Ordinateur inchangé.
   ========================================================================== */
.rn-m-widgets, .rn-m-more { display: none; }
@media (max-width: 760px) {
    :root { --ios-mat: rgba(28, 25, 26, .62); --ios-hair: rgba(255, 255, 255, .09); --ios-fill: rgba(255, 255, 255, .055); --ios-sec: rgba(235, 228, 214, .58); }
    html { -webkit-text-size-adjust: 100%; }
    body { letter-spacing: -.01em; }
    a, button { -webkit-tap-highlight-color: transparent; }

    /* Barre de navigation translucide, pleine largeur, sous l'encoche */
    .rn-header { padding: 0; }
    .rn-nav-inner { border-radius: 0; border: 0; border-bottom: .5px solid var(--ios-hair); padding: calc(6px + env(safe-area-inset-top)) 8px 6px 16px; background: rgba(10, 9, 11, .68); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); }
    .rn-nav .navbar-toggler { border: 0; background: var(--ios-fill); border-radius: 10px; }
    body:has(.rn-m-widgets) .rn-eventbar { display: none; }

    /* Héros : image plein cadre, grand titre, matières vitrées */
    .rn-hero { margin-top: -60px; padding: calc(84px + env(safe-area-inset-top)) 0 18px; background-position: center 30%; }
    .rn-hero-title { font-size: 44px; line-height: .95; text-shadow: 0 6px 30px rgba(0, 0, 0, .55); }
    .rn-hero .rn-ip, .rn-hero .rn-btn-lg { background: var(--ios-mat); border: .5px solid rgba(255, 255, 255, .14); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
    .rn-hero .rn-ip-txt .rn-mono { font-family: var(--rn-sans); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
    .rn-hero .rn-ip-btn { border-radius: 11px; font-weight: 600; }
    .rn-livecard { display: none; }

    /* Widgets */
    .rn-m-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
    .rn-m-widget { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 13px 14px; border-radius: 20px; background: var(--ios-mat); border: .5px solid rgba(255, 255, 255, .12); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
    .rn-m-widget:only-child { grid-column: span 2; }
    .rn-m-wlabel { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ios-sec); }
    .rn-m-wlabel .rn-dot { width: 7px; height: 7px; }
    .rn-m-wbig { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--rn-text); }
    .rn-m-wbig small { font-size: 15px; font-weight: 600; color: var(--ios-sec); letter-spacing: 0; }
    .rn-m-wcd { font-size: 20px; letter-spacing: -.02em; color: var(--rn-gold2); padding-top: 6px; }
    .rn-m-wsub { font-size: 12px; color: var(--ios-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rn-m-widget-gold { background: linear-gradient(160deg, rgba(231, 190, 98, .2), rgba(28, 25, 26, .62) 60%); border-color: rgba(231, 190, 98, .28); }
    .rn-m-widget .rn-heads img, .rn-m-widget .rn-heads span { width: 24px; height: 24px; border-radius: 6px; margin-left: -6px; border-width: 1.5px; }
    .rn-m-widget .rn-heads img:first-child { margin-left: 0; }

    /* Ruban discret */
    .rn-marquee-wrap { background: transparent; border-color: var(--ios-hair); }

    /* Grands titres façon iOS */
    .rn-section { padding-top: 34px; }
    .rn-sechead { flex-wrap: nowrap; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
    .rn-sechead h2 { font-family: var(--rn-sans); font-size: 24px; font-weight: 700; letter-spacing: -.025em; text-transform: none; line-height: 1.15; }
    .rn-sechead h2 br { display: none; }
    .rn-sechead .rn-link { font-size: 15px; font-weight: 500; white-space: nowrap; }
    .rn-sechead .rn-link i { font-size: 12px; }
    #codex .rn-sechead { flex-wrap: wrap; }
    #codex .rn-sechead h2 br { display: inline; }

    /* Registre des boss : liste groupée (5 premiers + lien) */
    #direct .rn-bosses { display: block; margin: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--ios-fill); border: .5px solid var(--ios-hair); }
    #direct .rn-boss { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; margin: 0; padding: 11px 16px; border: 0; border-radius: 0; background: none; border-bottom: .5px solid var(--ios-hair); flex: none; }
    #direct .rn-boss:last-child { border-bottom: 0; }
    #direct .rn-boss:nth-child(n+6) { display: none; }
    #direct .rn-boss-name { grid-column: 1; grid-row: 1; margin: 0; font-family: var(--rn-sans); font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
    #direct .rn-boss-by { grid-column: 1; grid-row: 2; margin: 1px 0 0; font-size: 13px; color: var(--ios-sec); }
    #direct .rn-boss-state { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; font-weight: 500; }
    .rn-m-more { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 10px; min-height: 44px; border-radius: 14px; background: var(--ios-fill); color: var(--rn-gold); font-weight: 600; font-size: 15px; }
    .rn-m-more i { font-size: 12px; }

    /* Contrôle segmenté */
    .rn-tabs { padding: 2px; gap: 0; border-radius: 10px; background: rgba(118, 118, 128, .24); border: 0; }
    .rn-tabs button { min-height: 32px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--rn-text2); }
    .rn-tabs button.is-active { background: rgba(255, 255, 255, .16); color: var(--rn-text); box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }

    /* Cartes du Codex */
    .rn-card { border-radius: 20px; background: var(--ios-fill); border: .5px solid var(--ios-hair); }
    .rn-card-title { font-family: var(--rn-sans); font-size: 19px; font-weight: 700; letter-spacing: -.02em; text-transform: none; }
    .rn-card .rn-mono.rn-small { font-family: var(--rn-sans); font-size: 11px; font-weight: 600; letter-spacing: .06em; }

    /* Chroniques : une carte vedette puis une liste groupée */
    .rn-news { border-radius: 0; border: 0; }
    .rn-news-big { border-radius: 20px; margin-bottom: 10px; }
    .rn-news-big .rn-news-title { font-family: var(--rn-sans); font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-transform: none; }
    .rn-news:not(.rn-news-big) { background: var(--ios-fill); padding: 12px 16px; gap: 2px; border-bottom: .5px solid var(--ios-hair); }
    .rn-news:not(.rn-news-big) .rn-news-title { font-size: 15px; font-weight: 600; }
    .rn-news:not(.rn-news-big) .rn-mono { font-family: var(--rn-sans); font-size: 12px; }
    .rn-g12:has(> .rn-news) { gap: 0; }
    .rn-g12 > .rn-news.s3:nth-child(2) { border-radius: 18px 18px 0 0; }
    .rn-g12 > .rn-news.s3:last-child { border-radius: 0 0 18px 18px; border-bottom: 0; }

    /* Retour tactile */
    .rn-card:active, .rn-news:active, .rn-m-more:active, .rn-ip:active, .rn-btn:active, #direct .rn-boss:active { transform: scale(.98); opacity: .85; transition: transform .1s ease, opacity .1s ease; }

    /* Barre d'onglets native */
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .rn-tabbar { align-items: start; padding: 6px 4px calc(4px + env(safe-area-inset-bottom)); background: rgba(14, 12, 13, .74); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%); border-top: .5px solid var(--ios-hair); }
    .rn-tabbar a, .rn-tabbar button { min-height: 44px; gap: 2px; font-size: 10px; font-weight: 500; letter-spacing: 0; color: rgba(235, 228, 214, .5); }
    .rn-tabbar i { font-size: 23px; }
    .rn-tabbar .rn-tabbar-ip { position: static; }
    .rn-tabbar .rn-tabbar-ip i { width: auto; height: auto; display: inline; background: none; box-shadow: none; color: var(--rn-gold); font-size: 25px; }
    .rn-tabbar .rn-tabbar-ip span { color: var(--rn-gold); font-weight: 600; }
    .rn-toasts { bottom: calc(68px + env(safe-area-inset-bottom)); }
    .rn-toast { background: rgba(28, 25, 26, .8); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: .5px solid rgba(255, 255, 255, .12); }

    /* Pied de page */
    .rn-footer { background: transparent; border-top: .5px solid var(--ios-hair); }
}

/* ==========================================================================
   FINITIONS (ordinateur + téléphone) : transitions de page, lumière au survol,
   apparitions au défilement, braises du héros, barre de progression.
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
::selection { background: rgba(231, 190, 98, .35); color: #fff; }
html { scroll-behavior: smooth; scrollbar-color: #3a3228 #08070a; }
:focus-visible { outline: 2px solid var(--rn-gold); outline-offset: 3px; border-radius: 6px; }

/* Barre de progression de lecture */
.rn-progress { position: fixed; top: 0; left: 0; z-index: 1100; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--rn-gold), #fff1c9); pointer-events: none; }

/* Titre du héros : reflet doré lent */
.rn-hero-title { background: linear-gradient(100deg, #f3ebdd 0%, #f3ebdd 38%, #ffe7a8 50%, #f3ebdd 62%, #f3ebdd 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f3ebdd; animation: rnSheen 9s ease-in-out infinite; }
@keyframes rnSheen { 0%, 55% { background-position: 120% 0; } 100% { background-position: -60% 0; } }

/* Braises du héros */
.rn-hero { position: relative; overflow: hidden; }
.rn-hero > .rn-wrap { position: relative; z-index: 1; }
.rn-embers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rn-embers i { position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%; background: #ffd98a; box-shadow: 0 0 8px 2px rgba(255, 190, 90, .55); opacity: 0; animation: rnEmber linear infinite; }
@keyframes rnEmber { 0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate3d(var(--dx, 30px), -78vh, 0) scale(.3); opacity: 0; } }

/* Lumière qui suit le curseur sur les tuiles (ordinateur) */
@media (hover: hover) and (pointer: fine) {
    .rn-tile, .rn-carnet, .rn-livecard { position: relative; }
    .rn-tile::after, .rn-carnet::after, .rn-livecard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(231, 190, 98, .13), transparent 60%); }
    .rn-tile:hover::after, .rn-carnet:hover::after, .rn-livecard:hover::after { opacity: 1; }
    .rn-btn-gold, .rn-ip-btn { transition: filter .2s ease, transform .2s ease, box-shadow .2s ease; }
    .rn-btn-gold:hover, .rn-ip:hover .rn-ip-btn { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(231, 190, 98, .35); }
}

/* Apparition au défilement (activée par le script ; sans script tout reste visible) */
.rn-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0s); }
.rn-reveal.is-in { opacity: 1; transform: none; }

/* Actualités sans image : fond travaillé plutôt qu'une carte vide */
.rn-news:not(.rn-news-big) { background-image: radial-gradient(120% 90% at 100% 0%, rgba(231, 190, 98, .1), transparent 55%), linear-gradient(180deg, rgba(243, 235, 221, .03), transparent); position: relative; overflow: hidden; }
@media (max-width: 760px) { .rn-news:not(.rn-news-big) { background-image: none; } .rn-hero-title { animation-duration: 12s; } }

/* En-tête : se densifie après défilement */
.rn-header.is-scrolled .rn-nav-inner { background: rgba(12, 10, 12, .9); border-color: rgba(231, 190, 98, .16); }

@media (prefers-reduced-motion: reduce) {
    .rn-reveal { opacity: 1; transform: none; transition: none; }
    .rn-hero-title { animation: none; background-position: 50% 0; }
    html { scroll-behavior: auto; }
    .rn-embers i { animation-duration: 26s !important; }
    /* Le ruban d'annonces garde un défilement lent : sans lui, les annonces sont illisibles. */
    .rn-marquee { animation-duration: 90s !important; }
    .rn-hero, .rn-rise, .rn-rise2, .rn-rise3, .rn-pulse, .rn-hotspot, .rn-toast, .rn-drawer-panel, .rn-pal-box { animation: none; }
    .rn-tile:hover { transform: none; }
}


/* ===================== Perf & accessibilité (rapport SEO 20/11/2026) ===================== */
/* Contraste ≥ 4,5:1 sur le fond */
.rn-footer-bottom, .rn-footer-title, .rn-feed-item time { color: #958a76; }
/* Hauteurs réservées : plus de décalage quand les données en direct arrivent */
.rn-heads { min-height: 36px; }
.rn-boss.rn-skel { border-color: rgba(243, 235, 221, .06); background: rgba(243, 235, 221, .025); }
.rn-boss.rn-skel .rn-boss-state::before { background: rgba(243, 235, 221, .12); }
.rn-boss.rn-skel .rn-boss-name, .rn-boss.rn-skel .rn-boss-by { border-radius: 6px; background: rgba(243, 235, 221, .05); width: 70%; }
.rn-boss.rn-skel .rn-boss-by { width: 45%; }
/* Pastille « en ligne » : animation composée (transform + opacity) au lieu de box-shadow */
.rn-pulse { animation: none; position: relative; }
.rn-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(94, 214, 140, .55); animation: rnPulseC 2s infinite; will-change: transform, opacity; }
@keyframes rnPulseC { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 760px) {
    .rn-heads { min-height: 28px; }
    .rn-m-widget .rn-heads { min-height: 24px; }
    .rn-online { min-height: 48px; }
    .rn-tabbar a, .rn-tabbar button { color: rgba(235, 228, 214, .72); }
    /* Téléphone : titre affiché tout de suite (meilleur LCP), sans reflet animé */
    .rn-hero-title { animation: none; background-position: 50% 0; }
    .rn-hero-copy .rn-rise, .rn-hero-copy .rn-rise2, .rn-hero-copy .rn-rise3 { animation: none; }
}
/* Ruban en attente (un seul message) : immobile */
.rn-marquee:has(> span:only-child) { animation: none; padding-left: 24px; }

/* ===================== Section « Le serveur » + FAQ (SEO sémantique) ===================== */
.rn-h1-sub { display: block; margin-top: 14px; font-family: var(--rn-sans); font-size: clamp(17px, 1.9vw, 24px); font-weight: 600; letter-spacing: .02em; line-height: 1.3; -webkit-text-fill-color: var(--rn-text2); color: var(--rn-text2); }
.rn-prose { max-width: 820px; color: var(--rn-text2); font-size: 17px; line-height: 1.75; }
.rn-prose p { margin: 0 0 16px; }
.rn-prose strong, .rn-feature strong, .rn-join strong { color: var(--rn-text); font-weight: 600; }
.rn-sub-h2 { margin: 54px 0 22px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.rn-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rn-feature { padding: 22px; border-radius: var(--rn-radius); background: var(--rn-surface); border: 1px solid var(--rn-line); }
.rn-feature h3 { margin: 0 0 8px; font-family: var(--rn-serif); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--rn-gold2, #f0d28c); }
.rn-feature p { margin: 0; color: var(--rn-muted); font-size: 15px; line-height: 1.6; }
.rn-join { max-width: 720px; margin: 0; padding-left: 22px; color: var(--rn-text2); font-size: 16px; line-height: 1.9; }
.rn-join li::marker { color: var(--rn-gold); font-weight: 700; }
.rn-faq { display: grid; gap: 10px; max-width: 900px; }
.rn-faq-item { border-radius: 16px; background: var(--rn-surface); border: 1px solid var(--rn-line); }
.rn-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.rn-faq-item summary::-webkit-details-marker { display: none; }
.rn-faq-item summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--rn-gold); transition: transform .2s ease; }
.rn-faq-item[open] summary::after { transform: rotate(45deg); }
.rn-faq-item h3 { margin: 0; font-family: var(--rn-sans); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--rn-text); }
.rn-faq-item p { margin: 0; padding: 0 22px 20px; color: var(--rn-text2); line-height: 1.7; }
@media (max-width: 760px) {
    .rn-h1-sub { margin-top: 10px; font-size: 16px; }
    .rn-prose { font-size: 16px; }
    .rn-sub-h2 { margin-top: 40px; }
    .rn-features { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
    .rn-features::-webkit-scrollbar { display: none; }
    .rn-features > * { flex: 0 0 82%; scroll-snap-align: start; }
    .rn-faq-item summary { padding: 16px 18px; }
    .rn-faq-item h3 { font-size: 16px; }
    .rn-faq-item p { padding: 0 18px 18px; }
}
