/*
 * Thème sombre MIP — surcharges communes.
 * À inclure APRÈS sketchfab.css et le style/app.css de chaque page.
 */

:root {
    --mip-bg: #0f1216;
    --mip-surface: #1a1f26;
    --mip-surface-2: #232a33;
    --mip-border: #2d3641;
    --mip-text: #e6e9ed;
    --mip-muted: #8b95a1;
    --mip-accent: #1caad9;
    --mip-accent-hover: #2fc0f0;
}

html,
body {
    background: var(--mip-bg);
    color: var(--mip-text);
}

a {
    color: var(--mip-accent);
}

/* ---- header commun ---- */
.header {
    background: var(--mip-surface);
    box-shadow: 0 1px 0 var(--mip-border);
}
.header--logo,
.header--logo span {
    color: var(--mip-text);
}
.header a:hover span {
    color: var(--mip-accent);
}

/* ---- accueil ---- */
.experiments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4px;
    padding: 0 30px;
}
.experiments li {
    list-style: none;
}
.experiment {
    background: var(--mip-surface);
    border: 1px solid var(--mip-border);
}
.experiment:hover {
    background: var(--mip-surface-2);
    border-color: var(--mip-accent);
}
.experiment h2 {
    color: var(--mip-text);
}
.experiment p {
    color: var(--mip-muted);
}

/* section secondaire de l'accueil */
.home-section-title {
    margin: 40px 40px 10px;
    font-family: "Titillium Web", sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mip-muted);
}
.experiments--secondary .experiment h2 {
    font-size: 16px;
}
.experiments--secondary .experiment p {
    font-size: 13px;
}
.badge-broken {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #5c2b2b;
    color: #f0b1b1;
}
.experiment-broken .experiment {
    opacity: .55;
}
.experiment-broken:hover .experiment {
    opacity: .8;
}

/* ---- pages outils (screenshots, configurator, video-export…) ---- */
.panel {
    background: var(--mip-surface);
}
.sidebar {
    background: var(--mip-surface);
    color: var(--mip-text);
}
.sidebar .notes,
.field-label,
label {
    color: var(--mip-muted);
}
.section {
    border-color: var(--mip-border);
}
.section-title,
.panel-title {
    color: var(--mip-text);
    background: transparent;
}
.viewer {
    background: var(--mip-bg);
}

input[type="text"],
input[type="number"],
select,
textarea {
    background: var(--mip-surface-2);
    border: 1px solid var(--mip-border);
    color: var(--mip-text);
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--mip-accent);
    outline: none;
}

.button,
.btn {
    background: var(--mip-surface-2);
    color: var(--mip-text);
}
.button.btn-primary,
.btn-primary {
    background: var(--mip-accent);
    color: #ffffff;
}
.button.btn-primary:hover,
.btn-primary:hover {
    background: var(--mip-accent-hover);
}
.button.btn-secondary,
.btn-secondary {
    background: var(--mip-surface-2);
    border: 1px solid var(--mip-border);
    color: var(--mip-text);
}
.button[disabled],
.btn[disabled],
.button[disabled]:hover,
.btn[disabled]:hover {
    background: var(--mip-surface-2);
    color: var(--mip-muted);
}

/* arbre d'objets (screenshots) et divers */
.objects,
.tree {
    color: var(--mip-text);
}

::placeholder {
    color: var(--mip-muted);
}
