/* ==========================================================================
   MCLife RP — Taverne Vocale · Thème médiéval
   Feuille de style séparée du HTML.
   NOTE : les classes `.hidden`, `.user`, `.username`, `.logo`, `.user-volume`,
   `.muteButton`, `.mutedButton`, `.-translate-x-full`, `.translate-x-64`,
   `.hover:scale-150`, `.animate-bounce`, `.gray-animation`, `.red-animation`
   et `.sliderMicThreshold` sont utilisées par le JavaScript : ne pas les
   renommer (leur apparence, elle, peut être changée librement).
   ========================================================================== */

:root {
    --gold: #c9a227;
    --gold-light: #e8c34a;
    --gold-pale: #f3e2a9;
    --bronze: #8c6a2f;
    --bronze-dark: #5d4519;
    --blood: #7a1f1f;
    --blood-light: #a83232;
    --parchment: #e9d9ae;
    --parchment-dark: #d9c48d;
    --ink: #2b1d10;
    --wood-dark: #1c130c;
    --wood: #2b1d12;
    --wood-light: #3d2a18;
    --night: #100c14;
    --night-2: #191221;
    --text: #f0e6c8;
    --muted-text: #b9a678;
    --green: #4caf50;
    --red: #e5484d;
    --title-font: 'Cinzel', 'Times New Roman', serif;
    --body-font: 'Crimson Text', Georgia, serif;
}

/* ---------------- Base ---------------- */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(1200px 500px at 50% -8%, rgba(201, 162, 39, 0.14), transparent 60%),
        radial-gradient(1000px 600px at 50% 115%, rgba(122, 31, 31, 0.28), transparent 60%),
        radial-gradient(700px 400px at 8% 100%, rgba(201, 162, 39, 0.06), transparent 60%),
        radial-gradient(700px 400px at 92% 100%, rgba(201, 162, 39, 0.06), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 7px),
        linear-gradient(var(--night-2), var(--night));
    background-attachment: fixed;
}

/* Utilitaire indispensable au JS (remplace l'ancien `hidden` de Tailwind) */
.hidden {
    display: none !important;
}

::selection {
    background: rgba(201, 162, 39, 0.4);
}

/* Barre de défilement du royaume */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: #141019;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--bronze), var(--bronze-dark));
    border-radius: 8px;
    border: 2px solid #141019;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--gold), var(--bronze));
}

/* ---------------- Mise en page ---------------- */

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

/* ---------------- Bannière héraldique ---------------- */

.banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 26px;
    margin-bottom: 22px;
    background:
        linear-gradient(rgba(20, 12, 8, 0.82), rgba(20, 12, 8, 0.82)),
        repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.05) 0 2px, transparent 2px 26px),
        linear-gradient(#3a2616, #241610);
    border: 2px solid var(--gold);
    outline: 1px solid rgba(201, 162, 39, 0.35);
    outline-offset: 4px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(243, 226, 169, 0.15);
    position: relative;
}

.banner::before,
.banner::after {
    content: "⚜";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(201, 162, 39, 0.5);
    font-size: 26px;
}
.banner::before { left: 8px; }
.banner::after { right: 8px; }

.banner-shield {
    width: 58px;
    height: 72px;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.banner-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.banner-over {
    margin: 0;
    font-family: var(--title-font);
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
}

.banner h1 {
    margin: 2px 0;
    font-family: var(--title-font);
    font-weight: 900;
    font-size: clamp(28px, 4.5vw, 44px);
    letter-spacing: 2px;
    color: var(--gold-pale);
    text-shadow: 0 2px 0 #000, 0 0 22px rgba(201, 162, 39, 0.35);
}

.banner-sub {
    margin: 0;
    font-style: italic;
    font-size: 17px;
    color: var(--muted-text);
}

/* ---------------- Pastille de statut ---------------- */

.status-pill {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--blood-light);
    border-radius: 999px;
    font-family: var(--title-font);
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
    cursor: help;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
    animation: dot-pulse 1.6s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.status-tip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    max-width: 280px;
    padding: 10px 12px;
    background: #241610;
    border: 1px solid var(--gold);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--text);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    z-index: 30;
}

.status-pill:hover .status-tip {
    display: block;
}

/* ---------------- Grand panneau de bois ---------------- */

.panel {
    position: relative;
    background:
        linear-gradient(rgba(28, 19, 12, 0.94), rgba(20, 13, 9, 0.94)),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 3px, transparent 3px 90px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 5px),
        linear-gradient(#33220f, #20140a);
    border: 3px solid var(--bronze);
    outline: 1px solid var(--gold);
    outline-offset: -8px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), inset 0 0 80px rgba(0, 0, 0, 0.5);
    padding: 30px 34px 18px;
}

/* Rivets dorés aux quatre coins */
.panel::after {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    background-image:
        radial-gradient(circle, var(--gold-light) 0 3px, var(--bronze-dark) 4px 5px, transparent 6px),
        radial-gradient(circle, var(--gold-light) 0 3px, var(--bronze-dark) 4px 5px, transparent 6px),
        radial-gradient(circle, var(--gold-light) 0 3px, var(--bronze-dark) 4px 5px, transparent 6px),
        radial-gradient(circle, var(--gold-light) 0 3px, var(--bronze-dark) 4px 5px, transparent 6px);
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.divider {
    border: none;
    height: 2px;
    margin: 24px 10px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: 0.6;
    position: relative;
}
.divider::after {
    content: "❖";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    background: #22150c;
    padding: 0 12px;
    color: var(--gold);
    font-size: 16px;
}

/* ---------------- Contrôles ---------------- */

.controls {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.fader {
    flex: 1 1 220px;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 10px;
    padding: 12px 16px 16px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.fader label {
    display: block;
    font-family: var(--title-font);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-pale);
    margin-bottom: 10px;
}

/* Curseurs façon bronze */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(#0d0a08, #241a10);
    border: 1px solid rgba(201, 162, 39, 0.5);
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold) 45%, var(--bronze-dark) 100%);
    border: 2px solid #3a2a0c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(201, 162, 39, 0.5);
    transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold) 45%, var(--bronze-dark) 100%);
    border: 2px solid #3a2a0c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(201, 162, 39, 0.5);
}

/* Sceau muet / non-muet */
.seal-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal {
    width: 64px;
    height: 64px;
    padding: 12px;
    color: var(--gold-pale);
    background: radial-gradient(circle at 35% 30%, #5a3d22, #2b1c0e 70%);
    border: 2px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(243, 226, 169, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.2s ease;
    position: relative;
    z-index: 2;
}

.seal:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 16px rgba(201, 162, 39, 0.55);
}

.seal.is-muted {
    color: #ff8d8d;
    border-color: var(--blood-light);
}

.speaking-halo {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 195, 74, 0.85), rgba(232, 195, 74, 0.15) 65%, transparent 70%);
    filter: blur(6px);
    animation: halo-breathe 1.4s ease-in-out infinite;
    z-index: 1;
}

@keyframes halo-breathe {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

/* Bouton engrenage */
.gear-btn {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 12px;
    color: var(--text);
    background: linear-gradient(#3d3d46, #232329);
    border: 2px solid #8f8f9a;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.15s ease, border-color 0.2s ease;
}
.gear-btn svg {
    width: 100%;
    height: 100%;
}
.gear-btn:hover {
    transform: scale(1.06) rotate(20deg);
    border-color: var(--gold);
}

/* ---------------- Grande salle ---------------- */

.hall-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hall h2 {
    margin: 0;
    font-family: var(--title-font);
    font-size: clamp(18px, 3vw, 24px);
    letter-spacing: 1px;
    color: var(--gold-pale);
    text-shadow: 0 2px 0 #000;
}

.count {
    font-size: 18px;
    color: var(--muted-text);
    font-style: italic;
}
.count-value {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    color: #1c130c;
    background: linear-gradient(var(--gold-light), var(--gold));
    border: 1px solid var(--bronze-dark);
    border-radius: 999px;
    padding: 1px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Recherche */
.search {
    position: relative;
    max-width: 340px;
    margin-bottom: 18px;
}

.search input {
    width: 100%;
    padding: 11px 42px 11px 18px;
    font-family: var(--body-font);
    font-size: 17px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.55);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search input::placeholder {
    color: #8d7c55;
    font-style: italic;
}
.search input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2), 0 0 18px rgba(201, 162, 39, 0.25);
}

.search svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gold);
    pointer-events: none;
}

/* Petit rebond de la loupe (utilisé par le JS) */
.animate-bounce {
    animation: bounce 0.9s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-80%); }
}

/* Message de bannissement vocal */
.banished {
    margin: 0 0 16px;
    padding: 16px;
    text-align: center;
    font-size: 22px;
    font-style: italic;
    color: #ffd9d9;
    background: linear-gradient(rgba(122, 31, 31, 0.55), rgba(60, 12, 12, 0.55));
    border: 1px solid var(--blood-light);
    border-radius: 10px;
    text-shadow: 0 2px 4px #000;
}

/* ---------------- Cartes des aventuriers ---------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    max-height: 46vh;
    min-height: 120px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: 12px;
    box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.6);
}

.card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--ink);
    background:
        radial-gradient(140px 60px at 20% 0%, rgba(255, 250, 230, 0.5), transparent 70%),
        radial-gradient(200px 120px at 100% 100%, rgba(120, 84, 30, 0.25), transparent 70%),
        linear-gradient(var(--parchment), var(--parchment-dark));
    border: 1px solid var(--bronze-dark);
    outline: 1px solid rgba(201, 162, 39, 0.5);
    outline-offset: -5px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(201, 162, 39, 0.35);
}

/* Portrait (skin mc-api.io Java / Bedrock) */
.portrait {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    object-fit: contain;
    background:
        radial-gradient(circle at 50% 35%, #3d2f1d, #191007 75%);
    border: 2px solid var(--bronze-dark);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
}

.username {
    margin: 0;
    flex: 1 1 auto;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #3a2410;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .user-volume {
    height: 8px;
}

/* Badge de plateforme Java / Bedrock (rempli par le JS, MODIF n°3) */
.platform-badge {
    flex: 0 0 auto;
    font-family: var(--title-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.platform-badge:empty {
    display: none;
}
.platform-badge.is-java {
    color: #eaf7d8;
    background: linear-gradient(#4a8f3e, #2c5a24);
    border: 1px solid #1d3d17;
}
.platform-badge.is-bedrock {
    color: #f3e9c8;
    background: linear-gradient(#6a6a76, #33333c);
    border: 1px solid #1b1b21;
}

/* Boutons muet des cartes */
.card-mute {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 7px;
    color: #3a5a2f;
    background: linear-gradient(#f6ecd0, #d9c48d);
    border: 2px solid var(--bronze-dark);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, color 0.2s ease;
}
.card-mute:hover {
    transform: scale(1.12);
}
.card-mute.is-muted {
    color: var(--blood);
    border-color: var(--blood);
}

/* ---------------- Pied du panneau ---------------- */

.board-foot {
    margin-top: 14px;
    text-align: right;
}
.board-foot p {
    margin: 0;
    font-size: 14px;
}
.board-foot a {
    color: var(--muted-text);
    text-decoration: underline;
    transition: color 0.2s ease;
}
.board-foot a:hover {
    color: var(--gold-light);
}

.page-foot {
    text-align: center;
    margin: 20px 0 0;
    font-style: italic;
    font-size: 16px;
    color: var(--muted-text);
}

/* ---------------- Porte d'entrée (overlay connexion) ---------------- */

.gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 5, 10, 0.78);
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.gate-card {
    text-align: center;
    padding: 48px 60px;
    background:
        linear-gradient(rgba(28, 19, 12, 0.96), rgba(20, 13, 9, 0.96));
    border: 3px solid var(--gold);
    outline: 1px solid rgba(201, 162, 39, 0.4);
    outline-offset: 6px;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(201, 162, 39, 0.15);
}

.gate-shield {
    width: 84px;
    height: 104px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}

.gate-title {
    margin: 18px 0 10px;
    font-family: var(--title-font);
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    color: var(--gold-pale);
}

.gate-hint {
    margin: 0;
    font-style: italic;
    font-size: 17px;
    color: var(--muted-text);
    line-height: 1.5;
}

/* Pulsation dorée (classe historique conservée pour le JS / le HTML) */
.gray-animation {
    animation: gold-pulse 2.2s ease-in-out infinite;
}
@keyframes gold-pulse {
    0%, 100% { color: var(--gold-pale); text-shadow: 0 0 18px rgba(201, 162, 39, 0.5); }
    50% { color: #8d7c55; text-shadow: none; }
}

/* Survol du sceau : pulsation rouge (classe historique conservée) */
.red-animation:hover {
    animation: red-pulse 1.5s ease-in-out infinite;
}
@keyframes red-pulse {
    0%, 100% { color: var(--gold-pale); }
    50% { color: #ff9d9d; }
}

/* ---------------- Parchemin modal (réglages) ---------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 5, 10, 0.7);
    backdrop-filter: blur(3px);
}

.scroll-modal {
    width: min(620px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px 34px 30px;
    color: var(--ink);
    background:
        radial-gradient(300px 120px at 50% 0%, rgba(255, 252, 235, 0.55), transparent 70%),
        radial-gradient(400px 260px at 100% 100%, rgba(120, 84, 30, 0.3), transparent 70%),
        radial-gradient(400px 260px at 0% 100%, rgba(120, 84, 30, 0.22), transparent 70%),
        linear-gradient(var(--parchment), var(--parchment-dark));
    border: 1px solid var(--bronze-dark);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), inset 0 0 60px rgba(120, 84, 30, 0.25);
    position: relative;
}

.scroll-rod {
    height: 12px;
    margin: 0 -34px;
    background: linear-gradient(#6b4a26, #3a2812 50%, #6b4a26);
    border-top: 1px solid #8c6a2f;
    border-bottom: 1px solid #241708;
}
.scroll-rod.top {
    margin-bottom: 18px;
    border-radius: 12px 12px 0 0;
}
.scroll-rod.bottom {
    margin-top: 22px;
    border-radius: 0 0 12px 12px;
}

.modal-title {
    margin: 0;
    text-align: center;
    font-family: var(--title-font);
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 1px;
    color: #3a2410;
}

.modal-sub {
    margin: 4px 0 20px;
    text-align: center;
    font-style: italic;
    font-size: 16px;
    color: #6b5326;
}

.field {
    margin-bottom: 20px;
}

.field > label,
.check-label {
    display: block;
    font-family: var(--title-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3a2410;
    margin-bottom: 8px;
}

.field .hint {
    margin: 0 0 10px;
    font-size: 15px;
    font-style: italic;
    color: #6b5326;
    line-height: 1.45;
}

.field select {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--text);
    background: linear-gradient(#2b2117, #1c1409);
    border: 1px solid var(--bronze);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}
.field select:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

/* Curseur de sensibilité micro (classe utilisée par le JS) */
.sliderMicThreshold {
    background: #3a2c17;
    border-color: var(--bronze-dark);
}
.sliderMicThreshold::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
}
.sliderMicThreshold::-moz-range-thumb {
    width: 24px;
    height: 24px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    cursor: pointer;
}
.check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--blood);
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* Bouton sceau de cire */
.btn-wax {
    font-family: var(--title-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffe9e9;
    padding: 12px 30px;
    background: radial-gradient(circle at 35% 30%, var(--blood-light), var(--blood) 60%, #4a1212);
    border: 2px solid #3a0d0d;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-wax:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 16px rgba(168, 50, 50, 0.6);
}

/* ---------------- Barre latérale (masquée par défaut, comme à l'origine) ---------------- */

.sidebar-wrap {
    position: relative;
    z-index: 10;
}

.sidebar-toggle-float {
    position: fixed;
    top: 50%;
    left: -24px;
    transform: translateY(-50%);
    transition: transform 0.1s ease;
}

/* Équivalents des classes Tailwind manipulées par le JS d'origine */
.hover\:scale-150:hover {
    transform: translateY(-50%) scale(1.5);
}

.sidebar-toggle {
    width: 56px;
    height: 40px;
    padding: 6px 6px 6px 18px;
    color: var(--gold-pale);
    background: linear-gradient(#3a2616, #241610);
    border: 1px solid var(--gold);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.sidebar-toggle svg {
    width: 100%;
    height: 100%;
}

.translate-x-64 {
    transform: translateX(16rem);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 16rem;
    height: 100vh;
    padding: 20px;
    color: var(--text);
    background: linear-gradient(#2b1d12, #1c130c);
    border-right: 2px solid var(--gold);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

.-translate-x-full {
    transform: translateX(-100%);
}

.sidebar-title {
    font-family: var(--title-font);
    color: var(--gold-pale);
    margin-top: 0;
}
.sidebar-text {
    color: var(--muted-text);
    font-style: italic;
}

/* ---------------- Adaptatif ---------------- */

@media (max-width: 720px) {
    .page {
        padding: 16px 12px 28px;
    }
    .banner {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    .panel {
        padding: 22px 16px 14px;
    }
    .controls {
        gap: 16px;
        justify-content: center;
    }
    .fader {
        flex: 1 1 100%;
    }
    .cards {
        max-height: 52vh;
        grid-template-columns: 1fr;
    }
    .gate-card {
        padding: 32px 24px;
    }
    .scroll-modal {
        padding: 20px 20px 24px;
    }
    .scroll-rod {
        margin-left: -20px;
        margin-right: -20px;
    }
}
