/* ============================================================
   Thème "Kizaru" : construit sur le modèle de Metronic, à partir du thème Marine Ford (même structure).
   Palette de lumière : nuit chaude, or et jaune de la Pika Pika no Mi. Activé par data-bs-theme="kizaru" sur <html>.
   Tout est limité à ce sélecteur : aucun autre thème n'est touché.
   ============================================================ */

[data-bs-theme="kizaru"] {
    /* === Échelle de gris → palette navy === */
    --bs-gray-100: #080705;
    --bs-gray-100-rgb: 8, 7, 5;
    --bs-gray-200: #0f0d08;
    --bs-gray-200-rgb: 15, 13, 8;
    --bs-gray-300: #1a170d;
    --bs-gray-300-rgb: 26, 23, 13;
    --bs-gray-400: #2a2512;
    --bs-gray-400-rgb: 42, 37, 18;
    --bs-gray-500: #a08a4a;
    --bs-gray-500-rgb: 160, 138, 74;
    --bs-gray-600: #c8b06a;
    --bs-gray-600-rgb: 200, 176, 106;
    --bs-gray-700: #efe6cc;
    --bs-gray-700-rgb: 239, 230, 204;
    --bs-gray-800: #f7f1df;
    --bs-gray-800-rgb: 247, 241, 223;
    --bs-gray-900: #ffffff;
    --bs-gray-900-rgb: 255, 255, 255;

    /* === Couleurs sémantiques === */
    --bs-white: #ffffff;
    --bs-light: #0f0d08;
    --bs-primary: #e8b521;
    --bs-success: #50cd89;
    --bs-info: #7239ea;
    --bs-warning: #ffc700;
    --bs-danger: #d23a3a;
    --bs-dark: #ffffff;
    --bs-secondary: #1a170d;

    --bs-primary-active: #c99a12;
    --bs-secondary-active: #2a2512;
    --bs-light-active: #1a170d;
    --bs-success-active: #47be7d;
    --bs-info-active: #5014d0;
    --bs-warning-active: #f1bc00;
    --bs-danger-active: #b02a2a;
    --bs-dark-active: white;

    --bs-primary-light: #0f0d08;
    --bs-success-light: #10201a;
    --bs-info-light: #24162c;
    --bs-warning-light: #2b170d;
    --bs-danger-light: #3a1a1d;
    --bs-dark-light: #0f0d08;
    --bs-secondary-light: #080705;
    --bs-red-light: #3a2424;

    --bs-primary-inverse: #1a1408;
    --bs-secondary-inverse: #efe6cc;
    --bs-light-inverse: #c8b06a;
    --bs-success-inverse: #ffffff;
    --bs-info-inverse: #ffffff;
    --bs-warning-inverse: #ffffff;
    --bs-danger-inverse: #ffffff;
    --bs-dark-inverse: #080705;

    --bs-white-rgb: 255, 255, 255;
    --bs-light-rgb: 15, 13, 8;
    --bs-primary-rgb: 232, 181, 33;
    --bs-success-rgb: 80, 205, 137;
    --bs-info-rgb: 36, 122, 255;
    --bs-warning-rgb: 255, 199, 0;
    --bs-danger-rgb: 210, 58, 58;
    --bs-dark-rgb: 255, 255, 255;
    --bs-secondary-rgb: 26, 23, 13;

    /* === Textes === */
    --bs-text-muted: #a08a4a;
    --bs-text-white: #ffffff;
    --bs-text-primary: #e8b521;
    --bs-text-secondary: #1a170d;
    --bs-text-light: #0f0d08;
    --bs-text-success: #50cd89;
    --bs-text-info: #7239ea;
    --bs-text-warning: #ffc700;
    --bs-text-danger: #d23a3a;
    --bs-text-dark: #ffffff;
    --bs-text-purple: #812b9e;
    --bs-text-gold: #EFBF04;
    --bs-text-blue: #6ea8ff;
    --bs-text-orange: #d1714b;

    /* Échelle de texte recalibrée pour rester lisible sur body #0f0d08.
       Les --bs-text-gray-N sont indépendantes des --bs-gray-N (backgrounds). */
    --bs-text-gray-100: #1a170d;
    --bs-text-gray-200: #2a2512;
    --bs-text-gray-300: #a08a4a;
    --bs-text-gray-400: #bfa565;
    --bs-text-gray-500: #d9c58e;
    --bs-text-gray-600: #efe6cc;
    --bs-text-gray-700: #f2ead2;
    --bs-text-gray-800: #fbf7ea;
    --bs-text-gray-900: #ffffff;

    /* === Bordures === */
    --bs-border-color: #0f0d08;
    --bs-border-dashed-color: #1a170d;

    /* === Composants génériques === */
    --bs-component-active-color: #ffffff;
    --bs-component-active-bg: #e8b521;
    --bs-component-hover-color: #e8b521;
    --bs-component-hover-bg: #080705;
    --bs-component-checked-color: #ffffff;
    --bs-component-checked-bg: #e8b521;

    /* === Ombres === */
    --bs-box-shadow-xs: 0 0.1rem 0.75rem 0.25rem rgba(0, 0, 0, 0.1);
    --bs-box-shadow-sm: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.1);
    --bs-box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-lg: 0 1rem 2rem 1rem rgba(0, 0, 0, 0.2);

    /* === Inputs === */
    --bs-input-color: var(--bs-gray-700);
    --bs-input-bg: var(--bs-body-bg);
    --bs-input-solid-color: var(--bs-gray-700);
    --bs-input-solid-bg: var(--bs-gray-100);
    --bs-input-solid-bg-focus: var(--bs-gray-200);
    --bs-input-solid-placeholder-color: var(--bs-gray-500);

    /* === Tooltips, tables, dropdowns === */
    --bs-tooltip-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.25);
    --bs-card-box-shadow: none;
    --bs-table-striped-bg: rgba(10, 9, 6, 0.75);
    --bs-table-loading-message-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    --bs-dropdown-bg: #0a0906;
    --bs-dropdown-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);

    /* === Code === */
    --bs-code-bg: #0f0d08;
    --bs-code-box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.1);
    --bs-code-color: #d989ff;

    /* === Symbols, bullets === */
    --bs-symbol-label-color: #f7f1df;
    --bs-symbol-label-bg: #080705;
    --bs-symbol-border-color: rgba(255, 255, 255, 0.5);
    --bs-bullet-bg-color: #2a2512;

    /* === ScrollTop === */
    --bs-scrolltop-opacity: 0;
    --bs-scrolltop-opacity-on: 0.3;
    --bs-scrolltop-opacity-hover: 1;
    --bs-scrolltop-box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.1);
    --bs-scrolltop-bg-color: #e8b521;
    --bs-scrolltop-bg-color-hover: #c99a12;
    --bs-scrolltop-icon-color: #ffffff;
    --bs-scrolltop-icon-color-hover: #ffffff;

    /* === Drawers === */
    --bs-drawer-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
    --bs-drawer-bg-color: #0a0906;
    --bs-drawer-overlay-bg-color: rgba(0, 0, 0, 0.5);

    /* === Menus / sidebar === */
    --bs-menu-dropdown-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    --bs-menu-dropdown-bg-color: #0a0906;
    --bs-menu-heading-color: #a08a4a;
    --bs-menu-link-color-hover: #e8b521;
    --bs-menu-link-color-show: #e8b521;
    --bs-menu-link-color-here: #e8b521;
    --bs-menu-link-color-active: #e8b521;
    --bs-menu-link-bg-color-hover: #080705;
    --bs-menu-link-bg-color-show: #080705;
    --bs-menu-link-bg-color-here: #080705;
    --bs-menu-link-bg-color-active: #080705;

    /* === Scrollbars, overlays === */
    --bs-scrollbar-color: #0f0d08;
    --bs-scrollbar-hover-color: #1a170d;
    --bs-overlay-bg: rgba(255, 255, 255, 0.05);
    --bs-blockui-overlay-bg: rgba(255, 255, 255, 0.05);

    /* === Rating, ribbon === */
    --bs-rating-color-default: #2a2512;
    --bs-rating-color-active: #FFAD0F;
    --bs-ribbon-label-box-shadow: 0px -1px 5px 0px rgba(255, 255, 255, 0.1);
    --bs-ribbon-label-bg: #e8b521;
    --bs-ribbon-label-border-color: #9c7a10;
    --bs-ribbon-clip-bg: #F9F9F9;

    /* === Engage button === */
    --bs-engage-btn-bg: #0f0d08;
    --bs-engage-btn-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    --bs-engage-btn-border-color: #0f0d08;
    --bs-engage-btn-color: #f7f1df;
    --bs-engage-btn-icon-color: #c8b06a;
    --bs-engage-btn-color-active: #f7f1df;

    /* === Body (fond global de la page) === */
    --bs-body-bg: #0f0d08;
    --bs-body-bg-rgb: 15, 13, 8;
    --bs-body-color: #efe6cc;
    --bs-body-color-rgb: 239, 230, 204;
    --bs-heading-color: #fff4cf;

    /* === Optionnel : surfaces principales (cards, headers) ===
       Ajuste si tes cards apparaissent transparentes ou mal contrastées */
    --bs-card-bg: #17140b;
    --bs-card-border-color: #2a2512;

    /* ============================================================
       Variables LAYOUT spécifiques à Metronic
       (sidebar, header, toolbar, footer, aside)
       ============================================================ */

    /* === Fond global de l'application === */
    --bs-app-bg-color: transparent;
    --bs-app-blank-bg-color: transparent;

    /* === Header (la barre du haut avec "Jeu", "Communauté") === */
    --bs-app-header-base-bg-color: #0a0906;
    --bs-app-header-base-box-shadow: none;
    --bs-app-header-minimize-bg-color: #0a0906;
    --bs-app-header-minimize-box-shadow: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.1);
    --bs-app-header-light-separator-color: #0f0d08;

    /* === Toolbar === */
    --bs-app-toolbar-base-bg-color: #0a0906;
    --bs-app-toolbar-base-box-shadow: none;
    --bs-app-toolbar-base-border-top: 1px dashed #1a170d;

    /* === Aside (panneau latéral droit éventuel) === */
    --bs-app-aside-base-bg-color: #0a0906;

    /* === Footer === */
    --bs-app-footer-bg-color: transparent;
    --bs-app-footer-box-shadow: none;

    /* === Sidebar (la colonne de gauche avec OPRPG, avatar, menu) === */
    --bs-app-sidebar-base-toggle-btn-box-shadow: none;
    --bs-app-sidebar-base-toggle-btn-bg-color: #0f0d08;
    --bs-app-sidebar-base-toggle-btn-border-color: none;
    --bs-app-sidebar-base-border-color: none;
    --bs-app-sidebar-light-bg-color: #0a0906;
    --bs-app-sidebar-light-box-shadow: none;
    --bs-app-sidebar-light-separator-color: #0f0d08;
    --bs-app-sidebar-light-scrollbar-color-hover: #0f0d08;
    --bs-app-sidebar-light-menu-heading-color: #a08a4a;
    --bs-app-sidebar-light-menu-link-bg-color-active: #2a2512;
    --bs-app-sidebar-light-header-menu-link-bg-color-active: #2a2512;
    --bs-app-sidebar-light-menu-link-color: #f7f1df;
    --bs-app-sidebar-light-menu-link-icon-color: #c8b06a;

    /* === Force le fond du body === */
    background-color: var(--bs-body-bg) !important;
}

/* ============================================================
   Règles HORS du bloc principal — sélecteurs composés classiques.
   En thème "kizaru", on a un fond sombre → on cache les éléments
   destinés au fond clair (logos light, icônes light, etc.)
   et on laisse visibles ceux destinés au fond sombre.
   ============================================================ */

[data-bs-theme="kizaru"] .theme-light-show {
    display: none !important;
}

[data-bs-theme="kizaru"] .theme-dark-show {
    display: inline-block !important;
}

[data-bs-theme="kizaru"] .app-page,
[data-bs-theme="kizaru"] .app-wrapper {
    border-top: none !important;
}

/* ============================================================
   Force le fond des cards (nuit dorée plus claire que le body).
   Nécessaire car Metronic redéfinit --bs-card-bg directement
   sur .card (style.bundle.css ligne 3806), ce qui écrase
   la valeur héritée du thème.
   ============================================================ */

[data-bs-theme="kizaru"] .card {
    --bs-card-bg: #17140b;
    background-color: #17140b;
}

/* ============================================================
   Décor de Kizaru (par-dessus la palette), sur le modèle exact des thèmes Akainu et Aokiji. Borsalino, amiral de la Marine,
   homme de la lumière et de la « Justice indécise ». Fond : Kizaru (images fournies par l'utilisateur), sous un voile sombre ;
   version en miroir sur la connexion et l'inscription. En-tête : une bande tirée du fond, sous un voile, et un filet de lumière
   qui palpite lentement. Menu : « 光 » (la lumière) en filigrane au bas. Particules de lumière qui montent (lib/kizaru.js).
   ============================================================ */

[data-bs-theme="kizaru"] {
    --kz-fond: url('/assets/media/kizaru/fond.webp?v=1');
    --kz-fond-tel: url('/assets/media/kizaru/fond-tel.webp?v=1');
    --kz-bande: url('/assets/media/kizaru/bande-entete.webp?v=1');
    --kz-fond-connexion: url('/assets/media/kizaru/fond-connexion.webp?v=1');
    --kz-lumiere: #fff3b8;
    --kz-filet: rgba(240, 200, 60, .4);

    --bs-body-bg: #0b0a06; --bs-body-bg-rgb: 11, 10, 6;
    --bs-body-color: #ece4cb;
    --bs-card-bg: #17140b; --bs-card-border-color: #4a3d16;
    --bs-primary: #e8b521; --bs-primary-active: #c99a12; --bs-primary-rgb: 232, 181, 33; --bs-text-primary: #ffd75a;
    --bs-app-sidebar-light-bg-color: #0a0906;
    --bs-app-sidebar-light-menu-link-bg-color-active: #6b520c;
    --bs-app-sidebar-light-menu-link-color-active: #ffffff;
    --bs-menu-link-bg-color-active: #6b520c; --bs-menu-link-color-active: #ffffff;
    --bs-menu-link-bg-color-hover: #241e0c; --bs-menu-link-bg-color-here: #241e0c;
}

/* Fond : Kizaru dans sa lumière, sous un voile qui s'éclaircit vers le bas.
   Calque fixe qui couvre tout l'écran (un fond sur le body se coupe sur les pages longues, et `fixed` est ignoré sur iOS). */
[data-bs-theme="kizaru"]::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 8, 4, .6) 0%, rgba(12, 10, 5, .54) 45%, rgba(16, 13, 5, .4) 75%, rgba(30, 24, 6, .28) 100%),
        var(--kz-fond-tel) center top / cover no-repeat, #0a0805;
}
@media (min-width: 768px) {
    [data-bs-theme="kizaru"]::before { background-image: linear-gradient(180deg, rgba(10, 8, 4, .6) 0%, rgba(12, 10, 5, .54) 45%, rgba(16, 13, 5, .4) 75%, rgba(30, 24, 6, .28) 100%), var(--kz-fond); background-position: 0 0, right top; }
}
@media (min-width: 992px) {
    /* Sur ordinateur, l'en-tête est fixe : l'image commence juste en dessous. Sur téléphone et tablette, il part avec la page :
       l'image commence tout en haut, sinon une bande vide de 64 px apparaît en haut de l'écran une fois l'en-tête parti */
    [data-bs-theme="kizaru"]::before { left: var(--bs-app-sidebar-width, 265px); background-position: 0 0, right 64px; }
}
[data-bs-theme="kizaru"]:has(body.app-blank)::before { left: 0; }
/* Connexion et inscription sur ordinateur : image en miroir (Kizaru à gauche, face au formulaire), collée en haut puisqu'il n'y a pas d'en-tête */
@media (min-width: 768px) {
    [data-bs-theme="kizaru"]:has(body.app-blank)::before { background-image: linear-gradient(180deg, rgba(10, 8, 4, .6) 0%, rgba(12, 10, 5, .54) 45%, rgba(16, 13, 5, .4) 75%, rgba(30, 24, 6, .28) 100%), var(--kz-fond-connexion); background-position: 0 0, center top; }
}
[data-bs-theme="kizaru"] body { background: transparent !important; }

/* Particules de lumière et halo (calque posé par lib/kizaru.js) */
#kz-lumiere { display: none; }
[data-bs-theme="kizaru"] #kz-lumiere { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
@media (min-width: 992px) {
    [data-bs-theme="kizaru"] #kz-lumiere { left: var(--bs-app-sidebar-width, 265px); }
}
[data-bs-theme="kizaru"]:has(body.app-blank) #kz-lumiere { left: 0; }
/* La lumière respire : un halo doré monte du bas, s'avive et retombe lentement */
#kz-lumiere .kz-souffle {
    position: absolute; left: -10%; right: -10%; bottom: -20%; height: 55%;
    background: radial-gradient(ellipse 60% 55% at 50% 100%, rgba(255, 220, 110, .2), rgba(255, 220, 110, 0) 70%);
    animation: kz-souffle 8s ease-in-out infinite alternate;
}
@keyframes kz-souffle { from { opacity: .35; } to { opacity: 1; } }
/* Une particule de lumière : un point doré qui monte en ondulant, scintille et s'efface */
#kz-lumiere i {
    position: absolute; left: var(--x, 50%); bottom: -12px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, var(--kz-lumiere) 40%, rgba(255, 215, 90, .6) 70%, rgba(255, 215, 90, 0) 100%);
    box-shadow: 0 0 calc(var(--s, 4px) * 2) rgba(255, 225, 120, .8);
    opacity: 0;
    animation: kz-monte var(--t, 14s) linear var(--d, 0s) infinite, kz-ondule var(--f, 3s) ease-in-out var(--d, 0s) infinite alternate;
    will-change: transform, opacity;
}
@keyframes kz-monte {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    10% { opacity: var(--o, .9); }
    75% { opacity: calc(var(--o, .9) * .6); }
    100% { transform: translate3d(0, calc(-1 * var(--h, 80vh)), 0); opacity: 0; }
}
@keyframes kz-ondule { from { margin-left: calc(-1 * var(--dx, 20px)); } to { margin-left: var(--dx, 20px); } }
@media (prefers-reduced-motion: reduce) {
    #kz-lumiere i { display: none; }
    #kz-lumiere .kz-souffle { animation: none; opacity: .7; }
}

/* En-tête : nuit translucide, sur une bande tirée du fond ; en dessous, un mince filet de lumière,
   clair au centre et presque noir aux bouts, qui palpite lentement */
[data-bs-theme="kizaru"] #kt_app_header {
    background: linear-gradient(rgba(10, 8, 4, .86), rgba(10, 8, 4, .86)), var(--kz-bande) center 60% / cover no-repeat, #0a0906 !important;
    border-bottom: 0;
    box-shadow: 0 .3rem 1.2rem rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
}
[data-bs-theme="kizaru"] #kt_app_header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, rgba(16, 12, 4, .9) 0%, #4a3a08 16%, #b8901a 36%, #fff0a0 50%, #b8901a 64%, #4a3a08 84%, rgba(16, 12, 4, .9) 100%);
    box-shadow: 0 0 6px rgba(255, 220, 100, .3), 0 0 16px 1px rgba(255, 200, 60, .12);
    animation: kz-filet 8s ease-in-out infinite alternate;
}
@keyframes kz-filet { from { opacity: .45; } to { opacity: .8; } }
/* Sur téléphone et tablette, l'en-tête n'est pas positionné : sans ça, le filet se placerait par rapport à la page */
@media (max-width: 991.98px) {
    [data-bs-theme="kizaru"] #kt_app_header:not(.app-header-fixed) { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
    [data-bs-theme="kizaru"] #kt_app_header::after { animation: none; opacity: .65; }
}

/* Logo de l'ordinateur : Kizaru à côté du logo (comme Rayleigh, Akainu et Aokiji) ; barre du logo un peu plus haute (100 px au lieu de 75)
   et marges plus étroites pour qu'il s'affiche plus grand. Ne touche pas au menu réduit. */
@media (min-width: 992px) {
    [data-bs-theme="kizaru"] #kt_app_sidebar_logo { height: 100px; padding-left: 1rem !important; padding-right: 1rem !important; }
    [data-bs-theme="kizaru"] #kt_app_sidebar_logo img.app-sidebar-logo-default { height: 80px !important; }
}
/* Logo du téléphone (Kizaru et le « O », sans « PRPG ») : largeur bornée pour laisser la place aux icônes de l'en-tête */
[data-bs-theme="kizaru"] #kt_app_header img[src*="kizaru-small"] { height: auto !important; width: 72px; max-width: 22vw; }

/* Menu latéral : nuit chaude, liseré doré à droite, et « 光 » (la lumière) en filigrane au bas */
[data-bs-theme="kizaru"] #kt_app_sidebar {
    border-right: 1px solid var(--kz-filet);
    box-shadow: 1px 0 14px rgba(255, 205, 80, .14);
    background: linear-gradient(180deg, rgba(11, 10, 6, .96) 0%, rgba(16, 13, 7, .95) 70%, rgba(34, 27, 8, .95) 100%) !important;
}
[data-bs-theme="kizaru"] #kt_app_sidebar::after {
    content: '光'; position: absolute; left: 0; right: 0; bottom: 18px; z-index: -1; pointer-events: none; text-align: center;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', 'Noto Serif CJK JP', serif; font-weight: 700;
    font-size: 120px; line-height: 1; color: rgba(255, 246, 214, .07);
    text-shadow: 0 0 22px rgba(255, 210, 80, .25);
}
[data-bs-theme="kizaru"] .app-sidebar-minimize #kt_app_sidebar::after,
[data-bs-theme="kizaru"] [data-kt-app-sidebar-minimize="on"] #kt_app_sidebar::after { font-size: 40px; }
[data-bs-theme="kizaru"] #kt_app_sidebar .menu-item .menu-link.active {
    background: linear-gradient(90deg, rgba(232, 181, 33, .85), rgba(120, 90, 10, .75)) !important;
    box-shadow: 0 0 12px rgba(255, 215, 90, .3);
}
[data-bs-theme="kizaru"] #kt_app_sidebar .menu-item .menu-link.active .menu-icon i,
[data-bs-theme="kizaru"] #kt_app_sidebar .menu-item .menu-link.active .menu-title { color: #fff !important; }

/* Titres de cartes : blanc doré */
[data-bs-theme="kizaru"] .card-header h1, [data-bs-theme="kizaru"] .card-header h2, [data-bs-theme="kizaru"] .card-header h3, [data-bs-theme="kizaru"] .card-header .card-label, [data-bs-theme="kizaru"] .card .card-header .card-title, [data-bs-theme="kizaru"] .card .card-header .card-title .card-label {
    color: #fff8e2;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}

/* Cartes : nuit dorée translucide, cadre or sombre, et un filet de lumière en haut */
[data-bs-theme="kizaru"] .card {
    position: relative;
    border: 1px solid rgba(190, 150, 40, .45); border-radius: 6px;
    background: linear-gradient(180deg, rgba(30, 26, 14, .9), rgba(14, 12, 7, .93)) !important;
    box-shadow: 0 .8rem 1.8rem rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 225, 130, .25);
}

/* Boutons principaux : or de la Pika Pika no Mi, texte sombre pour rester lisible */
[data-bs-theme="kizaru"] .btn.btn-primary {
    border: 1px solid #a8820e; color: #1a1408;
    background: linear-gradient(180deg, #ffd23f, #e0a812);
    box-shadow: 0 .15rem .5rem rgba(0, 0, 0, .4);
}
[data-bs-theme="kizaru"] .btn.btn-primary:hover, [data-bs-theme="kizaru"] .btn.btn-primary:focus {
    color: #1a1408; background: linear-gradient(180deg, #ffe066, #eeb820); box-shadow: 0 0 14px rgba(255, 215, 80, .5);
}
[data-bs-theme="kizaru"] .btn.btn-primary:active { transform: translateY(1px); }

/* Champs : nuit sombre, liseré doré discret */
[data-bs-theme="kizaru"] .form-control, [data-bs-theme="kizaru"] .form-select {
    background-color: rgba(10, 8, 4, .78); border: 1px solid rgba(210, 170, 60, .35); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55);
}
[data-bs-theme="kizaru"] .form-control:focus, [data-bs-theme="kizaru"] .form-select:focus { border-color: #ffd75a; }
[data-bs-theme="kizaru"] .form-label { color: #fff4cf; font-weight: 700; }

/* Liens */
[data-bs-theme="kizaru"] a:not(.btn):not(.menu-link):not(.nav-link) { color: #ffd75a; }

/* Barre du bas sur téléphone (vie, endurance, raccourcis) : nuit chaude, filet doré au-dessus, boutons dorés */
[data-bs-theme="kizaru"] .mobile-quickbar {
    background: linear-gradient(180deg, #1a160b, #0a0906);
    border-top: 1px solid var(--kz-filet);
    box-shadow: 0 -.25rem .9rem rgba(0, 0, 0, .45), 0 -1px 12px rgba(255, 205, 80, .14);
}
[data-bs-theme="kizaru"] .mobile-quickbar-avatar > img:first-child { border: 1px solid rgba(255, 215, 90, .45); }
[data-bs-theme="kizaru"] .mobile-quickbar-bar .progress { background: rgba(6, 5, 3, .85); }
[data-bs-theme="kizaru"] .mobile-quickbar-bar span, [data-bs-theme="kizaru"] .mobile-quickbar-berry { color: #f2ebd4; }
[data-bs-theme="kizaru"] .mobile-quickbar-action {
    color: #ffd75a; border: 1px solid rgba(240, 200, 70, .38);
    background: linear-gradient(180deg, rgba(232, 181, 33, .2), rgba(232, 181, 33, .08));
}
[data-bs-theme="kizaru"] .mobile-quickbar-action:hover, [data-bs-theme="kizaru"] .mobile-quickbar-action:active {
    color: #fff; background: linear-gradient(180deg, rgba(232, 181, 33, .4), rgba(232, 181, 33, .18));
}

/* Pied de page : posé sur la lumière, il garde un contour sombre pour rester lisible */
[data-bs-theme="kizaru"] #kt_app_footer, [data-bs-theme="kizaru"] #kt_app_footer a, [data-bs-theme="kizaru"] #kt_app_footer .text-muted {
    color: #fff9ea !important; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .9);
}

/* Téléphone et tablette : le flou de l'en-tête (backdrop-filter) en fait un plan à part, que les cartes de la page recouvraient,
   menu de l'avatar compris (iPhone). L'en-tête passe au-dessus des cartes, sous le menu latéral ouvert et son voile. */
@media (max-width: 991.98px) {
    [data-bs-theme="kizaru"] #kt_app_header { position: relative; z-index: 100; }
}
