/* =========================================================
   HOOLALA.TM
   THÈME GLOBAL AUTOMATIQUE
   MODE CLAIR / MODE SOMBRE
   VERSION CORRIGÉE 2026-09-24
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    color-scheme: light dark;

    --theme-bg: #ffffff;
    --theme-surface: #f5f5f5;
    --theme-surface-2: #eeeeee;
    --theme-surface-3: #e4e4e4;

    --theme-text: #111111;
    --theme-text-strong: #000000;

    --theme-muted: #666666;
    --theme-muted-2: #888888;

    --theme-border: #d8d8d8;
    --theme-border-strong: #c0c0c0;

    --theme-input: #ffffff;
    --theme-input-text: #111111;

    --theme-inverse: #111111;
    --theme-inverse-text: #ffffff;

    --theme-header: rgba(255,255,255,.96);

    --theme-soft-shadow: rgba(0,0,0,.08);

    --theme-focus: #111111;
}


/* =========================================================
   MODE SOMBRE
   ========================================================= */

@media (prefers-color-scheme: dark) {

    :root {

        color-scheme: dark;

        --theme-bg: #090909;
        --theme-surface: #151515;
        --theme-surface-2: #1d1d1d;
        --theme-surface-3: #262626;

        --theme-text: #f3f3f3;
        --theme-text-strong: #ffffff;

        --theme-muted: #b7b7b7;
        --theme-muted-2: #969696;

        --theme-border: #363636;
        --theme-border-strong: #4b4b4b;

        --theme-input: #121212;
        --theme-input-text: #f3f3f3;

        --theme-inverse: #ffffff;
        --theme-inverse-text: #111111;

        --theme-header: rgba(9,9,9,.96);

        --theme-soft-shadow: rgba(0,0,0,.45);

        --theme-focus: #ffffff;
    }
}


/* =========================================================
   HTML / BODY
   ========================================================= */

html {
    background: var(--theme-bg);
    color: var(--theme-text);
    color-scheme: light dark;
}

body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    transition: background-color .2s ease, color .2s ease;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: var(--theme-header) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

.site-header a,
.main-nav a,
.header-actions,
.header-actions a {
    color: var(--theme-text) !important;
}

.main-nav {
    border-color: var(--theme-border) !important;
}


/* =========================================================
   FOOTER PREMIUM
   ========================================================= */

.hoolala-premium-footer {
    background: var(--theme-inverse) !important;
    color: var(--theme-inverse-text) !important;
    border-color: var(--theme-border) !important;
}

.hoolala-premium-footer a,
.hoolala-premium-footer p,
.hoolala-premium-footer strong,
.hoolala-premium-footer span,
.hoolala-premium-footer .hpf-label {
    color: var(--theme-inverse-text) !important;
}


/* =========================================================
   FORMULAIRES
   ========================================================= */

input,
select,
textarea {
    background-color: var(--theme-input) !important;
    color: var(--theme-input-text) !important;
    border-color: var(--theme-border) !important;
    caret-color: var(--theme-input-text) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--theme-focus) !important;
    outline-color: var(--theme-focus) !important;
}

select option {
    background: var(--theme-input) !important;
    color: var(--theme-input-text) !important;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.btn {
    background: var(--theme-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-text) !important;
}

.btn:hover {
    background: var(--theme-text) !important;
    color: var(--theme-bg) !important;
}

.btn.black {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

.btn.white {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #ffffff !important;
}


/* =========================================================
   ZONES NOIRES VOLONTAIRES (black-section)
   ========================================================= */

.black-section {
    background: #000000 !important;
    color: #ffffff !important;
}

.black-section h1,
.black-section h2,
.black-section h3,
.black-section h4,
.black-section h5,
.black-section h6,
.black-section p,
.black-section b,
.black-section strong,
.black-section span,
.black-section a {
    color: #ffffff !important;
}


/* =========================================================
   TABLEAUX
   ========================================================= */

table,
th,
td {
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

thead {
    background: var(--theme-surface-2) !important;
}


/* =========================================================
   HR
   ========================================================= */

hr {
    border-color: var(--theme-border) !important;
}


/* =========================================================
   FOCUS
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--theme-focus) !important;
    outline-offset: 2px;
}


/* =========================================================
   TRANSITIONS
   ========================================================= */

html,
body,
.site-header,
input,
select,
textarea,
.btn {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}