/* ============================================================
   Thème "Aokiji" : construit sur le modèle de Metronic, à partir du thème Marine Ford (même structure).
   Palette de glace : nuit bleue, bleu de banquise et blanc de givre. Activé par data-bs-theme="aokiji" sur <html>.
   Tout est limité à ce sélecteur : aucun autre thème n'est touché.
   ============================================================ */

[data-bs-theme="aokiji"] {
    /* === Échelle de gris → palette navy === */
    --bs-gray-100: #05080d;
    --bs-gray-100-rgb: 5, 8, 13;
    --bs-gray-200: #08101a;
    --bs-gray-200-rgb: 8, 16, 26;
    --bs-gray-300: #0e1a28;
    --bs-gray-300-rgb: 14, 26, 40;
    --bs-gray-400: #16283c;
    --bs-gray-400-rgb: 22, 40, 60;
    --bs-gray-500: #5b84a6;
    --bs-gray-500-rgb: 91, 132, 166;
    --bs-gray-600: #86aeca;
    --bs-gray-600-rgb: 134, 174, 202;
    --bs-gray-700: #d6e6f2;
    --bs-gray-700-rgb: 214, 230, 242;
    --bs-gray-800: #e9f2f9;
    --bs-gray-800-rgb: 233, 242, 249;
    --bs-gray-900: #ffffff;
    --bs-gray-900-rgb: 255, 255, 255;

    /* === Couleurs sémantiques === */
    --bs-white: #ffffff;
    --bs-light: #08101a;
    --bs-primary: #3fa9e0;
    --bs-success: #50cd89;
    --bs-info: #7239ea;
    --bs-warning: #ffc700;
    --bs-danger: #d23a3a;
    --bs-dark: #ffffff;
    --bs-secondary: #0e1a28;

    --bs-primary-active: #2a8cc4;
    --bs-secondary-active: #16283c;
    --bs-light-active: #0e1a28;
    --bs-success-active: #47be7d;
    --bs-info-active: #5014d0;
    --bs-warning-active: #f1bc00;
    --bs-danger-active: #b02a2a;
    --bs-dark-active: white;

    --bs-primary-light: #08101a;
    --bs-success-light: #10201a;
    --bs-info-light: #24162c;
    --bs-warning-light: #2b170d;
    --bs-danger-light: #3a1a1d;
    --bs-dark-light: #08101a;
    --bs-secondary-light: #05080d;
    --bs-red-light: #3a2424;

    --bs-primary-inverse: #ffffff;
    --bs-secondary-inverse: #d6e6f2;
    --bs-light-inverse: #86aeca;
    --bs-success-inverse: #ffffff;
    --bs-info-inverse: #ffffff;
    --bs-warning-inverse: #ffffff;
    --bs-danger-inverse: #ffffff;
    --bs-dark-inverse: #05080d;

    --bs-white-rgb: 255, 255, 255;
    --bs-light-rgb: 8, 16, 26;
    --bs-primary-rgb: 63, 169, 224;
    --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: 14, 26, 40;

    /* === Textes === */
    --bs-text-muted: #5b84a6;
    --bs-text-white: #ffffff;
    --bs-text-primary: #3fa9e0;
    --bs-text-secondary: #0e1a28;
    --bs-text-light: #08101a;
    --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 #08101a.
       Les --bs-text-gray-N sont indépendantes des --bs-gray-N (backgrounds). */
    --bs-text-gray-100: #0e1a28;
    --bs-text-gray-200: #16283c;
    --bs-text-gray-300: #5b84a6;
    --bs-text-gray-400: #7fa6c4;
    --bs-text-gray-500: #a9c8de;
    --bs-text-gray-600: #d6e6f2;
    --bs-text-gray-700: #dfecf6;
    --bs-text-gray-800: #f2f8fc;
    --bs-text-gray-900: #ffffff;

    /* === Bordures === */
    --bs-border-color: #08101a;
    --bs-border-dashed-color: #0e1a28;

    /* === Composants génériques === */
    --bs-component-active-color: #ffffff;
    --bs-component-active-bg: #3fa9e0;
    --bs-component-hover-color: #3fa9e0;
    --bs-component-hover-bg: #05080d;
    --bs-component-checked-color: #ffffff;
    --bs-component-checked-bg: #3fa9e0;

    /* === 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(6, 10, 16, 0.75);
    --bs-table-loading-message-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    --bs-dropdown-bg: #060b12;
    --bs-dropdown-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);

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

    /* === Symbols, bullets === */
    --bs-symbol-label-color: #e9f2f9;
    --bs-symbol-label-bg: #05080d;
    --bs-symbol-border-color: rgba(255, 255, 255, 0.5);
    --bs-bullet-bg-color: #16283c;

    /* === 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: #3fa9e0;
    --bs-scrolltop-bg-color-hover: #2a8cc4;
    --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: #060b12;
    --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: #060b12;
    --bs-menu-heading-color: #5b84a6;
    --bs-menu-link-color-hover: #3fa9e0;
    --bs-menu-link-color-show: #3fa9e0;
    --bs-menu-link-color-here: #3fa9e0;
    --bs-menu-link-color-active: #3fa9e0;
    --bs-menu-link-bg-color-hover: #05080d;
    --bs-menu-link-bg-color-show: #05080d;
    --bs-menu-link-bg-color-here: #05080d;
    --bs-menu-link-bg-color-active: #05080d;

    /* === Scrollbars, overlays === */
    --bs-scrollbar-color: #08101a;
    --bs-scrollbar-hover-color: #0e1a28;
    --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: #16283c;
    --bs-rating-color-active: #FFAD0F;
    --bs-ribbon-label-box-shadow: 0px -1px 5px 0px rgba(255, 255, 255, 0.1);
    --bs-ribbon-label-bg: #3fa9e0;
    --bs-ribbon-label-border-color: #1f6e9e;
    --bs-ribbon-clip-bg: #F9F9F9;

    /* === Engage button === */
    --bs-engage-btn-bg: #08101a;
    --bs-engage-btn-box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    --bs-engage-btn-border-color: #08101a;
    --bs-engage-btn-color: #e9f2f9;
    --bs-engage-btn-icon-color: #86aeca;
    --bs-engage-btn-color-active: #e9f2f9;

    /* === Body (fond global de la page) === */
    --bs-body-bg: #08101a;
    --bs-body-bg-rgb: 8, 16, 26;
    --bs-body-color: #d6e6f2;
    --bs-body-color-rgb: 214, 230, 242;
    --bs-heading-color: #e3f3ff;

    /* === Optionnel : surfaces principales (cards, headers) ===
       Ajuste si tes cards apparaissent transparentes ou mal contrastées */
    --bs-card-bg: #0d1824;
    --bs-card-border-color: #16283c;

    /* ============================================================
       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: #060b12;
    --bs-app-header-base-box-shadow: none;
    --bs-app-header-minimize-bg-color: #060b12;
    --bs-app-header-minimize-box-shadow: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.1);
    --bs-app-header-light-separator-color: #08101a;

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

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

    /* === 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: #08101a;
    --bs-app-sidebar-base-toggle-btn-border-color: none;
    --bs-app-sidebar-base-border-color: none;
    --bs-app-sidebar-light-bg-color: #060b12;
    --bs-app-sidebar-light-box-shadow: none;
    --bs-app-sidebar-light-separator-color: #08101a;
    --bs-app-sidebar-light-scrollbar-color-hover: #08101a;
    --bs-app-sidebar-light-menu-heading-color: #5b84a6;
    --bs-app-sidebar-light-menu-link-bg-color-active: #16283c;
    --bs-app-sidebar-light-header-menu-link-bg-color-active: #16283c;
    --bs-app-sidebar-light-menu-link-color: #e9f2f9;
    --bs-app-sidebar-light-menu-link-icon-color: #86aeca;

    /* === 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 "aokiji", 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="aokiji"] .theme-light-show {
    display: none !important;
}

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

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

/* ============================================================
   Force le fond des cards (glace 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="aokiji"] .card {
    --bs-card-bg: #0d1824;
    background-color: #0d1824;
}

/* ============================================================
   Décor d'Aokiji (par-dessus la palette), sur le modèle exact du thème Akainu. Kuzan, amiral de la Marine, homme de la glace
   et de la « Justice paresseuse ». Fond : Aokiji devant une mer gelée (images fournies par l'utilisateur), sous un voile sombre ;
   version en miroir sur la connexion et l'inscription. En-tête : une bande de banquise tirée du fond, sous un voile, et un filet
   de glace qui scintille lentement. Menu : « 氷 » (la glace) en filigrane au bas. Paillettes de givre qui tombent (lib/aokiji.js).
   ============================================================ */

[data-bs-theme="aokiji"] {
    --ao-fond: url('/assets/media/aokiji/fond.webp?v=1');
    --ao-fond-tel: url('/assets/media/aokiji/fond-tel.webp?v=1');
    --ao-bande: url('/assets/media/aokiji/bande-entete.webp?v=1');
    --ao-fond-connexion: url('/assets/media/aokiji/fond-connexion.webp?v=1');
    --ao-givre: #dff4ff;
    --ao-filet: rgba(120, 200, 255, .4);

    --bs-body-bg: #060a10; --bs-body-bg-rgb: 6, 10, 16;
    --bs-body-color: #d3e3ef;
    --bs-card-bg: #0d1824; --bs-card-border-color: #1d3a55;
    --bs-primary: #3fa9e0; --bs-primary-active: #2a8cc4; --bs-primary-rgb: 63, 169, 224; --bs-text-primary: #7fd0ff;
    --bs-app-sidebar-light-bg-color: #060b12;
    --bs-app-sidebar-light-menu-link-bg-color-active: #0f4a72;
    --bs-app-sidebar-light-menu-link-color-active: #ffffff;
    --bs-menu-link-bg-color-active: #0f4a72; --bs-menu-link-color-active: #ffffff;
    --bs-menu-link-bg-color-hover: #0f2133; --bs-menu-link-bg-color-here: #0f2133;
}

/* Fond : Aokiji sur la mer gelée, 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="aokiji"]::before {
    content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 8, 14, .6) 0%, rgba(5, 9, 16, .54) 45%, rgba(6, 12, 20, .4) 75%, rgba(8, 18, 30, .28) 100%),
        var(--ao-fond-tel) center top / cover no-repeat, #050911;
}
@media (min-width: 768px) {
    [data-bs-theme="aokiji"]::before { background-image: linear-gradient(180deg, rgba(4, 8, 14, .6) 0%, rgba(5, 9, 16, .54) 45%, rgba(6, 12, 20, .4) 75%, rgba(8, 18, 30, .28) 100%), var(--ao-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="aokiji"]::before { left: var(--bs-app-sidebar-width, 265px); background-position: 0 0, right 64px; }
}
[data-bs-theme="aokiji"]:has(body.app-blank)::before { left: 0; }
/* Connexion et inscription sur ordinateur : image en miroir (Aokiji à 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="aokiji"]:has(body.app-blank)::before { background-image: linear-gradient(180deg, rgba(4, 8, 14, .6) 0%, rgba(5, 9, 16, .54) 45%, rgba(6, 12, 20, .4) 75%, rgba(8, 18, 30, .28) 100%), var(--ao-fond-connexion); background-position: 0 0, center top; }
}
[data-bs-theme="aokiji"] body { background: transparent !important; }

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

/* En-tête : nuit bleue translucide, sur une bande de banquise tirée du fond ; en dessous, un mince filet de glace,
   clair au centre et presque noir aux bouts, qui scintille lentement */
[data-bs-theme="aokiji"] #kt_app_header {
    background: linear-gradient(rgba(5, 9, 15, .86), rgba(5, 9, 15, .86)), var(--ao-bande) center 60% / cover no-repeat, #060b12 !important;
    border-bottom: 0;
    box-shadow: 0 .3rem 1.2rem rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
}
[data-bs-theme="aokiji"] #kt_app_header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, rgba(4, 10, 18, .9) 0%, #0e3350 16%, #2f86bf 36%, #a8e2ff 50%, #2f86bf 64%, #0e3350 84%, rgba(4, 10, 18, .9) 100%);
    box-shadow: 0 0 6px rgba(130, 205, 255, .3), 0 0 16px 1px rgba(100, 190, 255, .12);
    animation: ao-filet 8s ease-in-out infinite alternate;
}
@keyframes ao-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="aokiji"] #kt_app_header:not(.app-header-fixed) { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
    [data-bs-theme="aokiji"] #kt_app_header::after { animation: none; opacity: .65; }
}

/* Logo de l'ordinateur : Aokiji en pied à côté du logo (comme Rayleigh et Akainu) ; 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="aokiji"] #kt_app_sidebar_logo { height: 100px; padding-left: 1rem !important; padding-right: 1rem !important; }
    [data-bs-theme="aokiji"] #kt_app_sidebar_logo img.app-sidebar-logo-default { height: 80px !important; }
}
/* Logo du téléphone (Aokiji et le « O », sans « PRPG ») : largeur bornée pour laisser la place aux icônes de l'en-tête */
[data-bs-theme="aokiji"] #kt_app_header img[src*="aokiji-small"] { height: auto !important; width: 72px; max-width: 22vw; }

/* Menu latéral : nuit bleue, liseré de glace à droite, et « 氷 » (la glace) en filigrane au bas */
[data-bs-theme="aokiji"] #kt_app_sidebar {
    border-right: 1px solid var(--ao-filet);
    box-shadow: 1px 0 14px rgba(110, 195, 255, .14);
    background: linear-gradient(180deg, rgba(6, 10, 16, .96) 0%, rgba(8, 14, 22, .95) 70%, rgba(10, 24, 38, .95) 100%) !important;
}
[data-bs-theme="aokiji"] #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(226, 244, 255, .07);
    text-shadow: 0 0 22px rgba(120, 200, 255, .25);
}
[data-bs-theme="aokiji"] .app-sidebar-minimize #kt_app_sidebar::after,
[data-bs-theme="aokiji"] [data-kt-app-sidebar-minimize="on"] #kt_app_sidebar::after { font-size: 40px; }
[data-bs-theme="aokiji"] #kt_app_sidebar .menu-item .menu-link.active {
    background: linear-gradient(90deg, rgba(63, 169, 224, .85), rgba(18, 70, 110, .75)) !important;
    box-shadow: 0 0 12px rgba(120, 200, 255, .3);
}
[data-bs-theme="aokiji"] #kt_app_sidebar .menu-item .menu-link.active .menu-icon i,
[data-bs-theme="aokiji"] #kt_app_sidebar .menu-item .menu-link.active .menu-title { color: #fff !important; }

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

/* Cartes : glace sombre translucide, cadre bleu nuit, et un filet de givre en haut */
[data-bs-theme="aokiji"] .card {
    position: relative;
    border: 1px solid rgba(70, 140, 190, .45); border-radius: 6px;
    background: linear-gradient(180deg, rgba(14, 26, 40, .9), rgba(7, 13, 21, .93)) !important;
    box-shadow: 0 .8rem 1.8rem rgba(0, 0, 0, .5), inset 0 1px 0 rgba(170, 225, 255, .25);
}

/* Boutons principaux : bleu de banquise */
[data-bs-theme="aokiji"] .btn.btn-primary {
    border: 1px solid #1f6e9e; color: #fff;
    background: linear-gradient(180deg, #4fb6ea, #2786bd);
    box-shadow: 0 .15rem .5rem rgba(0, 0, 0, .4);
}
[data-bs-theme="aokiji"] .btn.btn-primary:hover, [data-bs-theme="aokiji"] .btn.btn-primary:focus {
    color: #fff; background: linear-gradient(180deg, #67c4f2, #2f94cc); box-shadow: 0 0 14px rgba(120, 200, 255, .5);
}
[data-bs-theme="aokiji"] .btn.btn-primary:active { transform: translateY(1px); }

/* Champs : nuit sombre, liseré de glace discret */
[data-bs-theme="aokiji"] .form-control, [data-bs-theme="aokiji"] .form-select {
    background-color: rgba(4, 8, 14, .78); border: 1px solid rgba(90, 165, 215, .35); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55);
}
[data-bs-theme="aokiji"] .form-control:focus, [data-bs-theme="aokiji"] .form-select:focus { border-color: #7fd0ff; }
[data-bs-theme="aokiji"] .form-label { color: #e3f3ff; font-weight: 700; }

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

/* Barre du bas sur téléphone (vie, endurance, raccourcis) : nuit bleue, filet de glace au-dessus, boutons de givre */
[data-bs-theme="aokiji"] .mobile-quickbar {
    background: linear-gradient(180deg, #0b1724, #060b12);
    border-top: 1px solid var(--ao-filet);
    box-shadow: 0 -.25rem .9rem rgba(0, 0, 0, .45), 0 -1px 12px rgba(110, 195, 255, .14);
}
[data-bs-theme="aokiji"] .mobile-quickbar-avatar > img:first-child { border: 1px solid rgba(130, 205, 255, .45); }
[data-bs-theme="aokiji"] .mobile-quickbar-bar .progress { background: rgba(3, 6, 10, .85); }
[data-bs-theme="aokiji"] .mobile-quickbar-bar span, [data-bs-theme="aokiji"] .mobile-quickbar-berry { color: #e2eff8; }
[data-bs-theme="aokiji"] .mobile-quickbar-action {
    color: #8fd6ff; border: 1px solid rgba(120, 195, 245, .38);
    background: linear-gradient(180deg, rgba(63, 169, 224, .2), rgba(63, 169, 224, .08));
}
[data-bs-theme="aokiji"] .mobile-quickbar-action:hover, [data-bs-theme="aokiji"] .mobile-quickbar-action:active {
    color: #fff; background: linear-gradient(180deg, rgba(63, 169, 224, .4), rgba(63, 169, 224, .18));
}

/* Pied de page : posé sur la glace claire, il garde un contour sombre pour rester lisible */
[data-bs-theme="aokiji"] #kt_app_footer, [data-bs-theme="aokiji"] #kt_app_footer a, [data-bs-theme="aokiji"] #kt_app_footer .text-muted {
    color: #f2f9ff !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="aokiji"] #kt_app_header { position: relative; z-index: 100; }
}
