/* ==============================
   RESET
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --background: #0b0f19;
    --surface: #111827;
    --surface-light: #182235;
    --border: rgba(255, 255, 255, 0.08);

    --text: #f8fafc;
    --text-secondary: #94a3b8;

    --blue: #6366f1;
    --purple: #8b5cf6;
    --green: #22c55e;
    --orange: #f97316;
    --yellow: #eab308;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --red: #ef4444;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);

    overflow-x: hidden;
}


/* ==============================
   BACKGROUND
============================== */

.background {
    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(99, 102, 241, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(139, 92, 246, 0.1),
            transparent 30%
        );

    z-index: -1;
}


/* ==============================
   CONTAINER
============================== */

.container {
    width: min(1100px, 92%);

    margin: 0 auto;

    padding: 50px 0 30px;
}


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

.header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 35px;
}


.brand {
    display: flex;

    align-items: center;

    gap: 16px;
}


.brand-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--purple)
    );

    font-size: 22px;

    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.25);
}


.brand h1 {
    font-size: 30px;

    letter-spacing: -1px;
}


.brand p {
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 14px;
}


.header-right {
    color: var(--text-secondary);

    font-family: monospace;

    font-size: 18px;
}


/* ==============================
   SEARCH
============================== */

.search-container {
    height: 60px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 0 20px;

    margin-bottom: 45px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: rgba(17, 24, 39, 0.8);

    backdrop-filter: blur(15px);

    transition: 0.25s;
}


.search-container:focus-within {
    border-color: rgba(99, 102, 241, 0.6);

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.08);
}


.search-container > i {
    color: var(--text-secondary);

    font-size: 17px;
}


.search-container input {
    flex: 1;

    height: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 15px;
}


.search-container input::placeholder {
    color: #64748b;
}


kbd {
    padding: 5px 8px;

    border: 1px solid var(--border);

    border-radius: 6px;

    color: var(--text-secondary);

    background: var(--surface);

    font-family: monospace;

    font-size: 11px;
}


/* ==============================
   CATEGORY
============================== */

.category {
    margin-bottom: 45px;
}


.category-title {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 18px;
}


.category-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 16px;
}


.category-title h2 {
    font-size: 18px;
}


.category-title p {
    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 13px;
}


/* ==============================
   CARDS
============================== */

.cards {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.card {
    min-height: 92px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: rgba(17, 24, 39, 0.75);

    text-decoration: none;

    color: var(--text);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.card:hover {
    transform: translateY(-3px);

    background: var(--surface-light);

    border-color: rgba(255, 255, 255, 0.14);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
}


.card:active {
    transform: translateY(-1px) scale(0.99);
}


.card-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 19px;
}


.card-content {
    min-width: 0;

    flex: 1;
}


.card-content h3 {
    font-size: 15px;

    margin-bottom: 5px;
}


.card-content p {
    color: var(--text-secondary);

    font-size: 12px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.open-icon {
    color: #475569;

    font-size: 13px;

    transition: 0.2s;
}


.card:hover .open-icon {
    color: var(--text);
}


/* ==============================
   COLORS
============================== */

.blue {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.13);
}

.purple {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.13);
}

.green {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.13);
}

.orange {
    color: #fb923c;
    background: rgba(249, 115, 22, 0.13);
}

.yellow {
    color: #facc15;
    background: rgba(234, 179, 8, 0.13);
}

.cyan {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.13);
}

.pink {
    color: #f472b6;
    background: rgba(236, 72, 153, 0.13);
}

.red {
    color: #f87171;
    background: rgba(239, 68, 68, 0.13);
}

.github {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}


/* ==============================
   NO RESULTS
============================== */

.no-results {
    display: none;

    text-align: center;

    padding: 60px 20px;

    color: var(--text-secondary);
}


.no-results i {
    margin-bottom: 15px;

    font-size: 35px;
}


.no-results h3 {
    color: var(--text);

    margin-bottom: 6px;
}


.no-results p {
    font-size: 13px;
}


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

footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-top: 25px;

    border-top: 1px solid var(--border);

    color: #64748b;

    font-size: 12px;
}


footer p:last-child {
    display: flex;

    align-items: center;

    gap: 6px;
}


/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 700px) {

    .container {
        width: 90%;

        padding-top: 30px;
    }


    .header {
        margin-bottom: 25px;
    }


    .brand h1 {
        font-size: 25px;
    }


    .header-right {
        display: none;
    }


    .cards {
        grid-template-columns: 1fr;
    }


    .search-container {
        margin-bottom: 35px;
    }


    kbd {
        display: none;
    }


    footer {
        flex-direction: column;

        gap: 10px;

        align-items: flex-start;
    }
}

.flag {
    font-size: 21px;
    line-height: 1;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0b0f19;
    --surface: #111827;
    --surface-light: #182235;

    --border: rgba(255, 255, 255, 0.08);

    --text: #f8fafc;
    --text-secondary: #94a3b8;

    --primary: #6366f1;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);

    color: var(--text);
}


.container {
    width: min(900px, 92%);

    margin: auto;

    padding: 60px 0;
}


header {
    margin-bottom: 40px;
}


header h1 {
    font-size: 32px;

    margin-bottom: 8px;
}


header p {
    color: var(--text-secondary);
}


/* =========================
   OUTIL
========================= */

.tool {

    margin-bottom: 25px;

    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--surface);

}


.tool-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;

}


.tool-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(99, 102, 241, 0.13);

    font-size: 21px;

}


.tool-header h2 {

    font-size: 19px;

    margin-bottom: 4px;

}


.tool-header p {

    color: var(--text-secondary);

    font-size: 13px;

}


/* =========================
   INPUTS
========================= */

.inputs {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

}


.input-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.input-group label {

    color: var(--text-secondary);

    font-size: 13px;

    font-weight: 500;

}


.input-group input {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    background: #0d1422;

    color: var(--text);

    font-family: monospace;

    font-size: 15px;

    transition: 0.2s;

}


.input-group input::placeholder {

    color: #475569;

}


.input-group input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.1);

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .container {

        padding: 35px 0;

    }


    header h1 {

        font-size: 27px;

    }


    .inputs {

        grid-template-columns: 1fr;

    }


    .tool {

        padding: 20px;

    }

}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    border: 1px solid transparent;
    border-radius: 10px;

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition: 0.2s ease;
}

#presentation-nav-link[hidden] {
    display: none !important;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-light);
    border-color: var(--border);
}

.nav-link.active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

@media (max-width: 700px) {

    .main-nav {
        gap: 4px;
    }

    .nav-link {
        padding: 8px 10px;
    }

    .nav-link i {
        display: none;
    }

}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 22px;

    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition: 0.2s ease;
}

.back-button:hover {
    color: var(--text);

    background: var(--surface-light);

    border-color: rgba(255, 255, 255, 0.14);

    transform: translateX(-2px);
}

/* ==============================
   MÉMO
============================== */

.memo-section {
    margin-top: 45px;
    margin-bottom: 45px;
}


#memo {
    width: 100%;
    min-height: 180px;

    padding: 18px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: 14px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;

    transition: 0.2s ease;
}


#memo::placeholder {
    color: #64748b;
}


#memo:focus {
    border-color: rgba(234, 179, 8, 0.6);

    box-shadow:
        0 0 0 3px rgba(234, 179, 8, 0.08);
}


.memo-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 10px;
}


#memo-status {
    color: var(--text-secondary);

    font-size: 12px;
}


#clear-memo {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    font-size: 12px;

    transition: 0.2s;
}


#clear-memo:hover {
    color: #f87171;

    border-color: rgba(239, 68, 68, 0.3);

    background: rgba(239, 68, 68, 0.08);
}

.ai-prompts-button {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 12px;

    padding: 16px 18px;

    border: 1px solid rgba(139, 92, 246, 0.2);

    border-radius: 14px;

    background: rgba(139, 92, 246, 0.08);

    color: var(--text);

    text-decoration: none;

    transition: 0.2s ease;
}

.ai-prompts-button > i:first-child {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(139, 92, 246, 0.15);

    color: #a78bfa;
}

.ai-prompts-button div {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 4px;
}

.ai-prompts-button strong {
    font-size: 14px;
}

.ai-prompts-button span {
    color: var(--text-secondary);

    font-size: 12px;
}

.ai-prompts-button > i:last-child {
    color: #64748b;

    transition: 0.2s ease;
}

.ai-prompts-button:hover {
    transform: translateY(-2px);

    border-color: rgba(139, 92, 246, 0.4);

    background: rgba(139, 92, 246, 0.13);
}

.ai-prompts-button:hover > i:last-child {
    color: var(--text);

    transform: translateX(3px);
}

.prompt-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.prompt-card {
    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: rgba(17, 24, 39, 0.75);

    transition: 0.2s ease;
}


.prompt-card:hover {
    border-color: rgba(139, 92, 246, 0.25);

    background: var(--surface-light);
}


.prompt-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.prompt-card h2 {
    font-size: 15px;

    margin-bottom: 6px;
}


.prompt-card p {
    color: var(--text-secondary);

    font-size: 12px;
}


.copy-button {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 9px 13px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);

    color: var(--text-secondary);

    cursor: pointer;

    font-size: 12px;

    transition: 0.2s ease;
}


.copy-button:hover {
    color: var(--text);

    border-color: rgba(139, 92, 246, 0.4);

    background: rgba(139, 92, 246, 0.1);
}


.copy-button.copied {
    color: #4ade80;

    border-color: rgba(34, 197, 94, 0.3);

    background: rgba(34, 197, 94, 0.08);
}


@media (max-width: 600px) {

    .prompt-card-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .copy-button {
        width: 100%;

        justify-content: center;
    }

}

.version {
    color: var(--text-secondary);

    text-decoration: none;

    padding: 5px 8px;

    border: 1px solid var(--border);

    border-radius: 6px;

    font-family: monospace;

    font-size: 11px;

    transition: 0.2s ease;
}

.version:hover {
    color: var(--text);

    border-color: rgba(99, 102, 241, 0.4);

    background: rgba(99, 102, 241, 0.08);
}

/* ========================================
   CHANGELOG
======================================== */

.changelog {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Version */

.version-block {
    margin-bottom: 42px;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}

.version-number {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border-radius: 7px;

    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;
}

.version-date {
    color: var(--text-secondary);
    font-size: 12px;
}


/* Liste des changements */

.change-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Changement */

.change-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);

    transition: 0.2s ease;
}

.change-group:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}


/* Icône */

.change-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-size: 13px;
}


/* Couleurs selon le type */

.change-group.new .change-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.change-group.improved .change-icon {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.change-group.fixed .change-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.change-group.removed .change-icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}


/* Contenu */

.change-content {
    min-width: 0;
}

.change-type {
    display: block;

    margin-bottom: 3px;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.change-content h3 {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;
}

.change-content p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.5;
}


/* Mobile */

@media (max-width: 600px) {

    .changelog {
        padding: 25px 15px 60px;
    }

    .version-header {
        gap: 9px;
    }

    .version-number {
        font-size: 12px;
    }

    .change-group {
        padding: 14px;
        gap: 11px;
    }

    .change-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

}

/* ==============================
   FAVORIS
============================== */

.favorite-button {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: #64748b;

    cursor: pointer;

    font-size: 15px;

    transition: 0.2s ease;
}

.favorite-button:hover {
    color: #facc15;

    background: rgba(250, 204, 21, 0.1);

    transform: scale(1.1);
}

.favorite-button.active {
    color: #facc15;
}

.favorite-button.active i {
    font-weight: 900;
}

.favorites-section {
    margin-bottom: 42px;
}

.favorites-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.favorites-section .section-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 9px;
}

.favorites-section .section-header h2::before {
    content: "★";
    color: #facc15;
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.35));
}

.favorites-section .section-header::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(
        90deg,
        rgba(250, 204, 21, 0.25),
        transparent
    );
}

/* ==============================
   NOTEBOOK
   ============================== */

.page-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.page-header h1 {
    margin: 0 0 8px;
}

.page-header p {
    margin: 0;
    color: var(--text-secondary);
}


.notebook {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}


/* TOOLBAR */

.notebook-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 20px;
}


.notebook-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);

    padding: 10px 15px;

    border-radius: 10px;

    cursor: pointer;

    transition: 0.2s ease;
}


.notebook-button:hover {
    background: var(--surface-light);
    transform: translateY(-1px);
}


.notebook-button.primary {
    background: var(--primary);
    border-color: var(--primary);
}


.notebook-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* CELLULE */

.notebook-cell {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    margin-bottom: 16px;

    overflow: hidden;

    transition: 0.2s ease;
}


.notebook-cell:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
}


/* HEADER CELLULE */

.cell-header {
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    background: rgba(255, 255, 255, 0.025);

    border-bottom: 1px solid var(--border);
}


.cell-header > span {
    color: var(--text-secondary);
    font-size: 14px;
}


.cell-header i {
    margin-right: 6px;
}


/* ACTIONS */

.cell-actions {
    display: flex;
    gap: 4px;
}


.cell-actions button {
    width: 30px;
    height: 30px;

    border: none;
    border-radius: 7px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    transition: 0.2s ease;
}


.cell-actions button:hover {
    background: var(--surface-light);
    color: var(--text);
}


/* ÉDITEUR */

.cell-editor {
    display: block;

    width: 100%;
    min-height: 130px;

    box-sizing: border-box;

    padding: 18px;

    resize: vertical;

    border: none;
    outline: none;

    background: #0d1422;

    color: var(--text);

    font-family: "Consolas", "Courier New", monospace;

    font-size: 14px;

    line-height: 1.6;
}


.cell-editor::placeholder {
    color: #64748b;
}


/* SORTIE */

.cell-output {
    padding: 16px 18px;

    background: #090d16;

    border-top: 1px solid var(--border);

    color: #cbd5e1;

    font-family: "Consolas", "Courier New", monospace;

    font-size: 14px;

    white-space: pre-wrap;

    overflow-x: auto;
}


.cell-output.error {
    color: #f87171;
}


/* MARKDOWN */

.cell-output h1,
.cell-output h2,
.cell-output h3 {
    font-family: inherit;
    color: var(--text);

    margin-top: 0;
}


.cell-output h1 {
    font-size: 26px;
}


.cell-output h2 {
    font-size: 21px;
}


.cell-output h3 {
    font-size: 18px;
}


/* AJOUTER */

.add-cell-button {
    width: 100%;

    padding: 14px;

    border: 1px dashed rgba(255, 255, 255, 0.15);

    border-radius: 12px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    transition: 0.2s ease;
}


.add-cell-button:hover {
    border-color: var(--primary);
    color: var(--text);

    background: rgba(99, 102, 241, 0.05);
}


/* MOBILE */

@media (max-width: 600px) {

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .notebook {
        padding: 15px;
    }

    .notebook-toolbar {
        flex-direction: column;
    }

    .notebook-button {
        width: 100%;
    }

}

.save-status {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--text-secondary);

    font-size: 13px;

    opacity: 0.8;
}

.save-status i {
    font-size: 12px;
}

@media (max-width: 600px) {
    .save-status {
        margin-left: 0;
    }
}

/* ==============================
   NOTEBOOKS
   ============================== */

.notebooks-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}


.notebooks-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}


.notebooks-list {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 16px;
}


/* CARTE */

.notebook-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    transition: 0.2s ease;
}


.notebook-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(99, 102, 241, 0.4);
}


/* ICÔNE */

.notebook-card-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(99, 102, 241, 0.12);

    color: var(--primary);

    font-size: 18px;
}


/* CONTENU */

.notebook-card-content {
    min-width: 0;
    flex: 1;
}


.notebook-card-content h2 {
    margin: 0 0 5px;

    font-size: 16px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.notebook-card-content p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
}


/* ACTIONS */

.notebook-card-actions {
    display: flex;
    gap: 5px;
}


.notebook-card-actions button {
    width: 32px;
    height: 32px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    transition: 0.2s ease;
}


.notebook-card-actions button:hover {
    background: var(--surface-light);

    color: var(--text);
}


.notebook-card-actions
.delete-notebook:hover {
    color: #f87171;
}


/* VIDE */

.empty-notebooks {
    text-align: center;

    padding: 70px 20px;

    color: var(--text-secondary);
}


.empty-notebooks i {
    font-size: 40px;

    margin-bottom: 15px;

    color: var(--primary);
}


.empty-notebooks h2 {
    color: var(--text);

    margin-bottom: 8px;
}

/* ==============================
   SÉLECTION DU NIVEAU
   ============================== */

.level-selection {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}


.selection-content {
    width: 100%;
    max-width: 650px;

    text-align: center;
}


.selection-logo {
    width: 64px;
    height: 64px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        rgba(99, 102, 241, 0.15);

    color: var(--primary);

    font-size: 26px;

    box-shadow:
        0 0 40px
        rgba(99, 102, 241, 0.12);
}


.selection-content h1 {
    margin: 0 0 10px;

    font-size: 34px;
}


.selection-content > p {
    margin: 0 0 35px;

    color: var(--text-secondary);

    font-size: 16px;
}


.level-cards {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


.level-card {
    width: 100%;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 18px;

    padding: 20px;

    text-align: left;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}


.level-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(99, 102, 241, 0.5);

    background:
        var(--surface-light);
}


.level-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        rgba(99, 102, 241, 0.12);

    color: var(--primary);

    font-size: 18px;
}


.level-card h2 {
    margin: 0 0 5px;

    font-size: 18px;
}


.level-card p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.5;
}


.level-card > i {
    color: var(--text-secondary);

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


.level-card:hover > i {
    color: var(--primary);

    transform: translateX(4px);
}


@media (max-width: 600px) {

    .level-selection {
        padding: 20px;
    }

    .selection-content h1 {
        font-size: 28px;
    }

    .level-card {
        grid-template-columns:
            auto 1fr auto;

        padding: 16px;
    }

}

/* ==============================
   PARAMÈTRES
   ============================== */

.settings-page {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}


.settings-section {
    margin-bottom: 40px;
}


.settings-section-header {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 15px;
}


.settings-section-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background:
        rgba(99, 102, 241, 0.12);

    color: var(--primary);
}


.settings-section-header h2 {
    margin: 0 0 3px;

    font-size: 18px;
}


.settings-section-header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
}


/* CARTE */

.settings-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px;

    margin-bottom: 10px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 13px;
}


/* INFORMATIONS */

.setting-info {
    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;
}


.setting-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.04);

    color: var(--text-secondary);
}


.setting-info h3 {
    margin: 0 0 3px;

    font-size: 15px;
}


.setting-info p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;

    line-height: 1.4;
}


/* BOUTON */

.setting-button {
    border: 1px solid var(--border);

    background: var(--surface-light);

    color: var(--text);

    padding: 8px 13px;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s ease;
}


.setting-button:hover {
    border-color: var(--primary);

    color: var(--primary);
}


/* BADGE */

.setting-badge {
    padding: 5px 9px;

    border-radius: 7px;

    background:
        rgba(99, 102, 241, 0.12);

    color: var(--primary);

    font-size: 12px;
}


/* SWITCH */

.switch {
    position: relative;

    width: 44px;
    height: 24px;

    flex-shrink: 0;
}


.switch input {
    opacity: 0;

    width: 0;
    height: 0;
}


.slider {
    position: absolute;

    inset: 0;

    cursor: pointer;

    border-radius: 999px;

    background: #334155;

    transition: 0.2s ease;
}


.slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: white;

    transition: 0.2s ease;
}


.switch input:checked + .slider {
    background: var(--primary);
}


.switch input:checked + .slider::before {
    transform: translateX(20px);
}


/* DANGER */

.danger-card {
    border-color:
        rgba(248, 113, 113, 0.15);
}


.danger-icon {
    color: #f87171;

    background:
        rgba(248, 113, 113, 0.1);
}


.danger-button {
    border: 1px solid
        rgba(248, 113, 113, 0.25);

    background:
        rgba(248, 113, 113, 0.08);

    color: #f87171;

    padding: 8px 13px;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s ease;
}


.danger-button:hover {
    background:
        rgba(248, 113, 113, 0.15);
}


/* MOBILE */

@media (max-width: 600px) {

    .settings-page {
        padding: 15px;
    }


    .settings-card {
        align-items: flex-start;
    }


    .setting-info {
        align-items: flex-start;
    }

}

/* ==============================
   PRÉNOM
   ============================== */

.name-setting {
    display: flex;
    align-items: center;
    gap: 8px;
}


.setting-input {
    width: 150px;

    padding: 8px 11px;

    border: 1px solid var(--border);
    border-radius: 8px;

    outline: none;

    background: var(--surface-light);
    color: var(--text);

    font-family: inherit;
    font-size: 13px;

    transition: 0.2s ease;
}


.setting-input:focus {
    border-color: var(--primary);
}


.setting-input::placeholder {
    color: var(--text-secondary);
}


@media (max-width: 600px) {

    .name-setting {
        flex-direction: column;
        align-items: stretch;
    }

    .setting-input {
        width: auto;
    }

}

/* ==============================
   BIENVENUE CENTRALE
   ============================== */

.welcome-message {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    opacity: 0;

    animation: welcome-show 3s ease forwards;
}


/* LUMIÈRE DERRIÈRE */

.welcome-message::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(99, 102, 241, 0.28) 0%,
            rgba(99, 102, 241, 0.14) 25%,
            rgba(99, 102, 241, 0.05) 50%,
            transparent 72%
        );

    filter: blur(15px);

    transform: scale(0.7);

    animation: welcome-glow 3s ease forwards;
}


/* TEXTE */

.welcome-message > div:last-child {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}


.welcome-message span {
    display: none;
}


.welcome-message strong {
    position: relative;

    color: var(--text);

    font-size: clamp(32px, 5vw, 56px);

    font-weight: 800;

    letter-spacing: -1.5px;

    text-align: center;

    text-shadow:
        0 0 25px rgba(99, 102, 241, 0.25);
}


/* PETITE ICÔNE */

.welcome-icon {
    display: none;
}


/* APPARITION */

@keyframes welcome-show {

    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}


/* LUMIÈRE */

@keyframes welcome-glow {

    0% {
        opacity: 0;
        transform: scale(0.65);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    70% {
        opacity: 1;
        transform: scale(1.15);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }

}


@media (max-width: 600px) {

    .welcome-message strong {
        font-size: 34px;
        padding: 20px;
    }

    .welcome-message::before {
        width: 300px;
        height: 300px;
    }

}

.local-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.06);
}

.local-info-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    font-size: 15px;
}

.local-info-card h3 {
    margin: 0 0 5px;
    font-size: 14px;
    color: var(--text);
}

.local-info-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .local-info-card {
        padding: 14px;
    }
}

/* ========================================
   BANDEAU D'INFORMATIONS
======================================== */

.info-ticker {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-ticker-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
    animation: ticker-scroll 45s linear infinite;
    will-change: transform;
}

.info-ticker:hover .info-ticker-track {
    animation-play-state: paused;
}

.info-ticker span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 12px;
}

.info-ticker span strong {
    color: var(--text);
    font-weight: 600;
}

.info-ticker span i {
    color: var(--primary);
    font-size: 11px;
}

.info-ticker .ticker-separator {
    color: var(--border);
    font-size: 16px;
}

/* Animation */

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Mobile */

@media (max-width: 600px) {

    .info-ticker-track {
        gap: 18px;
        padding: 9px 0;
        animation-duration: 35s;
    }

    .info-ticker span {
        font-size: 11px;
    }

}

.info-ticker {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ========================================
   À PROPOS
======================================== */

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Hero */

.about-hero {
    text-align: center;
    padding: 30px 20px 50px;
}

.about-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);

    font-size: 26px;

    box-shadow:
        0 0 35px rgba(99, 102, 241, 0.15);
}

.about-hero h2 {
    margin: 0 0 10px;

    font-size: 32px;
    font-weight: 800;

    color: var(--text);
}

.about-hero p {
    max-width: 550px;
    margin: 0 auto;

    color: var(--text-secondary);
    line-height: 1.6;
}


/* Sections */

.about-section {
    margin-top: 35px;
}

.about-section-header {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 15px;
}

.about-section-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--surface-light);
    color: var(--primary);

    font-size: 15px;
}

.about-section-header h2 {
    margin: 0;

    font-size: 18px;
    color: var(--text);
}

.about-section-header p {
    margin: 3px 0 0;

    font-size: 12px;
    color: var(--text-secondary);
}


/* Cards */

.about-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
}

.about-card h3 {
    margin: 0 0 8px;

    color: var(--text);
    font-size: 17px;
}

.about-card p {
    margin: 0;

    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}


/* Technologies */

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.technology {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface);

    color: var(--text-secondary);

    font-size: 13px;
}

.technology i {
    color: var(--primary);
}


/* Informations */

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.about-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
}

.about-info-card span {
    color: var(--text-secondary);
    font-size: 13px;
}

.about-info-card strong {
    color: var(--text);
    font-size: 13px;
}


/* Contribuer */

.contribute-section {
    margin-top: 45px;
}

.contribute-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 18px;
}

.contribute-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface-light);

    color: var(--text);

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition: 0.2s ease;
}

.contribute-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}


/* Mobile */

@media (max-width: 600px) {

    .about-page {
        padding: 25px 15px 60px;
    }

    .about-hero {
        padding-bottom: 30px;
    }

    .about-hero h2 {
        font-size: 27px;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

}

.info-ticker a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.info-ticker a:hover {
    color: var(--primary);
}

/* ========================================
   CONTRIBUTION
======================================== */

.contribution-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.contribution-modal.active {
    display: flex;
}

.contribution-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contribution-box {
    position: relative;
    z-index: 1;

    width: min(520px, 100%);

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4);

    animation: contribution-open 0.2s ease;
}

@keyframes contribution-open {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contribution-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: transparent;
    color: var(--text-secondary);

    cursor: pointer;

    transition: 0.2s ease;
}

.contribution-close:hover {
    background: var(--surface-light);
    color: var(--text);
}

.contribution-header {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 22px;
}

.contribution-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.contribution-header h2 {
    margin: 0;

    color: var(--text);
    font-size: 18px;
}

.contribution-header p {
    margin: 4px 0 0;

    color: var(--text-secondary);
    font-size: 13px;
}

#contribution-form label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

#contribution-message {
    width: 100%;
    min-height: 150px;

    box-sizing: border-box;

    padding: 12px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: var(--surface-light);
    color: var(--text);

    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;

    transition: 0.2s ease;
}

#contribution-message:focus {
    border-color: var(--primary);
}

#contribution-message::placeholder {
    color: var(--text-secondary);
}

.contribution-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 12px;
}

.character-count {
    color: var(--text-secondary);
    font-size: 11px;
}

.contribute-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    border: none;
    border-radius: 8px;

    background: var(--primary);
    color: white;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.contribute-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (max-width: 600px) {

    .contribution-box {
        padding: 20px;
    }

    .contribution-footer {
        align-items: flex-end;
    }

}

.change-group.accepted .change-icon {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.about-changelog-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 15px;
    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface-light);
    color: var(--text);

    text-decoration: none;
    font-size: 13px;
    font-weight: 500;

    transition: 0.2s ease;
}

.about-changelog-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Sections enrichies de la page À propos */
.about-hero {
    position: relative;
    padding: 42px 24px 48px;
    border: 1px solid rgba(129, 140, 248, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0, rgba(99, 102, 241, 0.18), transparent 65%),
        linear-gradient(145deg, rgba(17, 24, 39, 0.88), rgba(11, 15, 25, 0.55));
}

.about-icon { color: var(--primary); }

.about-secret-trigger {
    padding: 0;
    border: 0;
    cursor: pointer;
    font: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-secret-trigger:hover,
.about-secret-trigger.is-clicked {
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.35);
}

.about-secret-message {
    margin: 18px auto 0 !important;
    color: #a5b4fc !important;
    font-weight: 700;
    animation: about-secret-appear 0.45s ease both;
}

@keyframes about-secret-appear {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.about-quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.about-action-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.about-action-button:hover { transform: translateY(-2px); opacity: 0.9; }
.about-action-button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.about-stat-card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 112px;
    padding: 18px 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(24, 34, 53, 0.95), rgba(17, 24, 39, 0.8));
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-stat-card:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, 0.45); }
.about-stat-card strong { color: #a5b4fc; font-size: 29px; line-height: 1; }
.about-stat-card > span { color: var(--text-secondary); font-size: 12px; }

.about-section-header { margin-bottom: 18px; }
.about-section-icon { background: rgba(99, 102, 241, 0.12); }

.about-card,
.about-roadmap-card,
.about-info-card,
.technology {
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.about-card:hover,
.about-roadmap-card:hover,
.technology:hover { border-color: rgba(129, 140, 248, 0.3); }

.about-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.about-reasons-grid article > i {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    font-size: 18px;
}

.about-reasons-grid h3 { margin: 12px 0 6px; color: var(--text); font-size: 15px; }
.about-reasons-grid p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }

.about-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0 0 0 24px;
    list-style: none;
    border-left: 2px solid rgba(99, 102, 241, 0.28);
}

.about-timeline li { position: relative; padding: 0 0 25px 20px; }
.about-timeline li:last-child { padding-bottom: 0; }

.about-timeline li::before {
    position: absolute;
    top: 4px;
    left: -31px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--background);
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    content: "";
}

.timeline-date { color: #a5b4fc; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.about-timeline h3 { margin: 5px 0; color: var(--text); font-size: 15px; }
.about-timeline p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }

.about-privacy-card ul { margin: 0; padding-left: 20px; color: var(--text-secondary); line-height: 1.8; font-size: 14px; }
.about-privacy-card li::marker { color: #818cf8; }
.about-privacy-card a { color: #a5b4fc; }
.about-note { margin: 14px 0 0 !important; font-size: 12px !important; }

.about-roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-roadmap-card { padding: 19px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.about-roadmap-card h3 { margin: 12px 0 7px; color: var(--text); font-size: 15px; }
.about-roadmap-card p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.roadmap-label { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.roadmap-label.available { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.roadmap-label.evolving { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; }
.roadmap-label.ideas { background: rgba(245, 158, 11, 0.13); color: #fbbf24; }

.about-action-button:focus-visible,
.about-secret-trigger:focus-visible {
    outline: 3px solid rgba(129, 140, 248, 0.65);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .about-page { padding-top: 24px; }
    .about-hero { padding: 30px 18px 34px; border-radius: 18px; }
    .about-reasons-grid, .about-roadmap-grid { grid-template-columns: 1fr; }
    .about-stat-card { min-height: 90px; }
    .about-action-button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .about-secret-message { animation: none; }
    .about-secret-trigger, .about-action-button, .about-stat-card { transition: none; }
}

.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#backup-status { min-height: 1.4em; color: var(--text-secondary, #94a3b8); }

/* Liens du footer */
footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

footer a:hover {
    color: var(--text);
    text-decoration: none;
}

footer a,
footer a:visited,
footer a:hover,
footer a:active {
    text-decoration: none;
}

/* ================================
   RECHERCHE
================================ */

.search-section {
    margin-bottom: 42px;
}

.search-section .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.search-section .section-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

/* Petite ligne à droite du titre */
.search-section .section-header::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.25),
        transparent
    );
}

/* Carte Qwant */
.search-section .card {
    position: relative;
}

.search-section .card:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

/* Icône recherche */
.search-section .card-icon.blue {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

/* Description */
.search-section .card-content p {
    margin-top: 4px;
    color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 600px) {
    .search-section {
        margin-bottom: 32px;
    }

    .search-section .section-header h2 {
        font-size: 20px;
    }
}

/* Accueil : mise en valeur des ressources et de la navigation */
.profile-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -20px 0 30px;
    padding: 16px 18px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(99, 102, 241, 0.12), rgba(17, 24, 39, 0.68));
}
.profile-welcome[hidden] { display: none; }
.profile-welcome > i { color: #a5b4fc; font-size: 22px; }
.profile-welcome-copy { flex: 1; }
.profile-welcome-copy strong { color: var(--text-primary); }
.profile-welcome-copy p { margin: 4px 0 0; color: var(--text-secondary); line-height: 1.45; }
.profile-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-shortcuts a { padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--text-primary); font-size: .82rem; text-decoration: none; }
.profile-shortcuts a:hover { border-color: #818cf8; background: rgba(99, 102, 241, .12); }
.profile-recommended { border-color: rgba(129, 140, 248, .5) !important; }
.level-card:not(.level-card-disabled) .coming-soon-badge { display: none; }
@media (max-width: 700px) { .profile-welcome { align-items: flex-start; flex-wrap: wrap; } .profile-shortcuts { width: 100%; padding-left: 36px; } }

.home-container {
    width: min(1180px, calc(100% - 48px));
    padding-top: 34px;
}

.home-container > .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.home-container .brand { gap: 14px; }
.home-container .brand-icon { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.home-container .brand:hover .brand-icon { transform: rotate(-5deg) scale(1.04); box-shadow: 0 12px 36px rgba(99, 102, 241, 0.36); }
.home-container .header-right { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(17, 24, 39, 0.72); font-variant-numeric: tabular-nums; }

.home-container .main-nav {
    grid-column: 1 / -1;
    width: fit-content;
    max-width: 100%;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 13px;
    background: rgba(17, 24, 39, 0.48);
}

.home-container .nav-link { min-height: 38px; padding: 8px 12px; }
.home-container .nav-link.active { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05); }

.home-container .search-container {
    position: relative;
    height: 62px;
    margin-bottom: 42px;
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(17, 24, 39, 0.92), rgba(24, 34, 53, 0.74));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.home-container .search-container > i { color: #a5b4fc; }
.home-container .search-container:focus-within { transform: translateY(-1px); border-color: rgba(129, 140, 248, 0.65); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 16px 38px rgba(0, 0, 0, 0.18); }
.home-container kbd { padding: 6px 9px; border-radius: 7px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }

.home-container .category { margin-bottom: 48px; }
.home-container .category-title { margin-bottom: 20px; }
.home-container .category-title > div:last-child { min-width: 0; }
.home-container .category-title::after { height: 1px; flex: 1; margin-left: 12px; background: linear-gradient(90deg, rgba(129, 140, 248, 0.22), transparent); content: ""; }
.home-container .category-icon { box-shadow: inset 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.25s ease; }
.home-container .category:hover .category-icon { transform: translateY(-2px) rotate(-3deg); }

.home-container .cards { gap: 14px; }
.home-container .card {
    position: relative;
    min-height: 96px;
    border-color: rgba(148, 163, 184, 0.1);
    background: linear-gradient(125deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.66));
    animation: home-card-appear 0.45s both;
}

.home-container .card:nth-child(2) { animation-delay: 45ms; }
.home-container .card:nth-child(3) { animation-delay: 90ms; }
.home-container .card:nth-child(4) { animation-delay: 135ms; }
.home-container .card:hover { border-color: rgba(129, 140, 248, 0.38); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(99, 102, 241, 0.05); }
.home-container .card-icon { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease; }
.home-container .card:hover .card-icon { transform: translateY(-2px) scale(1.06); box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18); }
.home-container .card-content h3 { letter-spacing: 0.01em; }
.home-container .card-content p { line-height: 1.5; }
.home-container .open-icon { transition: color 0.2s ease, transform 0.2s ease; }
.home-container .card:hover .open-icon { color: #a5b4fc; transform: translate(2px, -2px); }

.home-container .favorite-button { width: 38px; height: 38px; border: 1px solid transparent; }
.home-container .favorite-button:hover { border-color: rgba(250, 204, 21, 0.16); }
.home-container .favorites-section { padding: 20px; border: 1px solid rgba(250, 204, 21, 0.12); border-radius: 17px; background: linear-gradient(125deg, rgba(250, 204, 21, 0.035), rgba(17, 24, 39, 0.2)); }
.home-container .favorites-section .card { animation: none; }

.home-container .memo-section { padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: rgba(17, 24, 39, 0.4); }
.home-container #memo { min-height: 170px; background: rgba(11, 15, 25, 0.5); }
.home-container #memo:focus { border-color: rgba(234, 179, 8, 0.55); box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.08); }
.home-container footer { flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; }

@keyframes home-card-appear {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
    .home-container { width: calc(100% - 30px); padding-top: 24px; }
    .home-container > .header { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
    .home-container .main-nav { grid-column: 1 / -1; width: 100%; flex-wrap: wrap; }
    .home-container .nav-link { flex: 1 0 auto; justify-content: center; padding: 8px 9px; }
    .home-container .category { margin-bottom: 38px; }
    .home-container .cards { gap: 10px; }
    .home-container .card { min-height: 84px; padding: 14px; }
    .home-container .category-title::after { margin-left: 0; }
    .home-container .memo-section { padding: 15px; }
    .home-container .favorites-section { padding: 14px; }
}

@media (max-width: 380px) {
    .home-container .brand { gap: 10px; }
    .home-container .brand-icon { width: 46px; height: 46px; }
    .home-container .brand h1 { font-size: 22px; }
    .home-container .brand p { max-width: 180px; font-size: 12px; }
    .home-container .nav-link { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-container .card { animation: none; }
    .home-container .brand-icon,
    .home-container .nav-link,
    .home-container .card,
    .home-container .card-icon { transition: none; }
}

/* =================================
   INFORMATION IMPORTANTE
================================= */

.important-announcement {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.important-announcement.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fond sombre derrière la popup */

.announcement-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Popup */

.announcement-box {
    position: relative;
    z-index: 1;

    width: min(650px, calc(100% - 40px));
    padding: 38px;

    background: #1a0b0b;

    border: 2px solid #ef4444;
    border-radius: 18px;

    box-shadow:
        0 0 0 1px rgba(239, 68, 68, 0.15),
        0 0 60px rgba(239, 68, 68, 0.2),
        0 25px 80px rgba(0, 0, 0, 0.5);

    animation: announcement-open 0.35s ease;
}

/* Bouton fermer */

.announcement-close {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;

    cursor: pointer;

    transition: 0.2s ease;
}

.announcement-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Icône */

.announcement-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;

    font-size: 23px;
}

/* Label */

.announcement-label {
    display: block;

    margin-bottom: 8px;

    color: #ef4444;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

/* Titre */

.announcement-box h2 {
    margin: 0 0 12px;

    color: #f8fafc;

    font-size: 30px;
    font-weight: 800;
}

/* Texte */

.announcement-box p {
    margin: 0 0 25px;

    color: #cbd5e1;

    font-size: 15px;
    line-height: 1.6;
}

/* Bouton */

.announcement-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 16px;

    border-radius: 9px;

    background: #ef4444;
    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s ease;
}

.announcement-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* =================================
   ONGLET CACHÉ SUR LE CÔTÉ
================================= */

.announcement-tab {
    position: fixed;

    top: 50%;
    right: 0;

    z-index: 9999;

    transform: translateY(-50%) translateX(calc(100% - 42px));

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 15px;

    border: 1px solid rgba(239, 68, 68, 0.5);
    border-right: none;

    border-radius: 10px 0 0 10px;

    background: #7f1d1d;
    color: white;

    cursor: pointer;

    transition: transform 0.25s ease;
}

.announcement-tab:hover {
    transform: translateY(-50%) translateX(0);
}

.announcement-tab i {
    color: #fca5a5;
}

.announcement-tab span {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Caché tant que la popup est ouverte */

.announcement-tab.hidden {
    display: none;
}

/* Animation */

@keyframes announcement-open {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile */

@media (max-width: 600px) {

    .announcement-box {
        width: calc(100% - 30px);
        padding: 28px 22px;
    }

    .announcement-box h2 {
        font-size: 24px;
    }

    .announcement-box p {
        font-size: 14px;
    }

    .announcement-tab {
        transform: translateY(-50%) translateX(calc(100% - 38px));
    }
}

/* =================================
   ÉCRAN DE CHARGEMENT
================================= */
.loading-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow: hidden;
    background: var(--background);
}

.loading-screen {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 32px 0;
    background:
        radial-gradient(ellipse at 50% 42%, rgba(99, 102, 241, 0.12), transparent 35%),
        radial-gradient(ellipse at 10% 5%, rgba(139, 92, 246, 0.1), transparent 35%),
        var(--background);
}

.loading-screen::before,
.loading-screen::after {
    position: absolute;
    z-index: -1;
    width: min(62vw, 620px);
    aspect-ratio: 1;
    border: 1px solid rgba(129, 140, 248, 0.07);
    border-radius: 50%;
    content: "";
    animation: loading-halo 9s ease-in-out infinite alternate;
}

.loading-screen::after {
    width: min(78vw, 820px);
    animation-delay: -4s;
}

.loading-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loading-background span {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.11);
    filter: blur(80px);
    animation: loading-orb 11s ease-in-out infinite alternate;
}

.loading-background span:nth-child(1) { top: -140px; left: -100px; }
.loading-background span:nth-child(2) { right: -120px; bottom: -140px; animation-delay: -3s; background: rgba(139, 92, 246, 0.12); }
.loading-background span:nth-child(3) { top: 40%; left: 45%; width: 180px; height: 180px; animation-delay: -6s; }

.loading-content {
    width: min(440px, calc(100% - 40px));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: loading-content-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.loading-logo {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: clamp(42px, 8vw, 54px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
}

.loading-logo-nsi { color: var(--text); }
.loading-logo strong { color: var(--primary); }

.loading-tagline {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.loading-visual {
    position: relative;
    display: grid;
    width: 128px;
    height: 128px;
    place-items: center;
    margin: 30px 0 20px;
}

.loading-core {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(165, 180, 252, 0.42);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.24), rgba(99, 102, 241, 0.08));
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.24), inset 0 1px rgba(255, 255, 255, 0.1);
    color: #c7d2fe;
    font-size: 23px;
    animation: loading-core-pulse 2.2s ease-in-out infinite;
}

.loading-orbit {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 50%;
    animation: loading-orbit-spin 5s linear infinite;
}

.loading-orbit::before {
    position: absolute;
    top: 10px;
    left: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a5b4fc;
    box-shadow: 0 0 13px rgba(165, 180, 252, 0.9);
    content: "";
}

.loading-orbit-two {
    inset: 0;
    border-style: dashed;
    border-color: rgba(139, 92, 246, 0.22);
    animation-duration: 8s;
    animation-direction: reverse;
}

.loading-orbit-two::before {
    top: 20px;
    right: 14px;
    left: auto;
    width: 5px;
    height: 5px;
    background: #c4b5fd;
}

.loading-orbit-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 12px #818cf8;
    animation: loading-dot 1.6s ease-in-out infinite alternate;
}

#loading-status {
    min-height: 22px;
    margin: 0 0 17px;
    color: #cbd5e1;
    font-size: 13px;
    animation: loading-status-in 0.3s ease both;
}

#loading-status.is-changing { animation: loading-status-in 0.3s ease both; }

.loading-progress-meta {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #7c8aa5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

#loading-percent { color: #a5b4fc; font-variant-numeric: tabular-nums; }

.loading-progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.12);
}

#loading-progress-bar {
    position: relative;
    width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #a78bfa 60%, #c4b5fd);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.55);
    transition: width 0.12s linear;
}

#loading-progress-bar::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    content: "";
    animation: loading-shimmer 1s ease-in-out infinite;
}

.loading-steps { display: flex; gap: 6px; margin-top: 12px; }
.loading-step { width: 5px; height: 5px; border-radius: 99px; background: rgba(148, 163, 184, 0.28); transition: width 0.25s ease, background 0.25s ease; }
.loading-step.active { width: 19px; background: #818cf8; }
.loading-step.done { background: #a5b4fc; }

.loading-tip {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 27px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(24, 34, 53, 0.52));
    text-align: left;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.16);
    animation: loading-tip-in 0.75s 0.15s ease both;
}

.loading-tip-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(129, 140, 248, 0.12);
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.13);
    color: #a5b4fc;
    font-size: 13px;
}

.loading-tip span { display: block; margin-bottom: 5px; color: #a5b4fc; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.loading-tip p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }

.loading-skip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 14px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7c8aa5;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.loading-skip:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }
.loading-skip:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
.loading-screen.is-complete .loading-core { animation: loading-finish 0.45s ease both; }
.loading-screen.is-complete .loading-orbit { animation-play-state: paused; opacity: 0.5; }

@keyframes loading-content-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes loading-orbit-spin { to { transform: rotate(360deg); } }
@keyframes loading-core-pulse { 0%, 100% { transform: scale(0.97); box-shadow: 0 0 25px rgba(99, 102, 241, 0.18), inset 0 1px rgba(255, 255, 255, 0.1); } 50% { transform: scale(1.04); box-shadow: 0 0 42px rgba(99, 102, 241, 0.36), inset 0 1px rgba(255, 255, 255, 0.16); } }
@keyframes loading-orb { from { transform: translate3d(0, 0, 0) scale(0.85); } to { transform: translate3d(38px, -28px, 0) scale(1.12); } }
@keyframes loading-halo { from { transform: scale(0.94) rotate(-8deg); opacity: 0.45; } to { transform: scale(1.06) rotate(8deg); opacity: 1; } }
@keyframes loading-dot { from { transform: translate(-30px, 26px); opacity: 0.35; } to { transform: translate(30px, -26px); opacity: 1; } }
@keyframes loading-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes loading-status-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading-tip-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading-finish { 50% { transform: scale(1.12); } to { transform: scale(1); border-color: rgba(74, 222, 128, 0.65); color: #bbf7d0; } }

@media (max-width: 600px) {
    .loading-content { width: calc(100% - 36px); }
    .loading-visual { width: 112px; height: 112px; margin: 26px 0 18px; }
    .loading-core { width: 52px; height: 52px; border-radius: 17px; }
    .loading-tip { margin-top: 23px; padding: 13px; }
}

@media (max-height: 620px) {
    .loading-screen { padding: 18px 0; }
    .loading-visual { width: 92px; height: 92px; margin: 15px 0 12px; }
    .loading-core { width: 46px; height: 46px; }
    .loading-tip { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .loading-screen::before,
    .loading-screen::after,
    .loading-background span,
    .loading-content,
    .loading-core,
    .loading-orbit,
    .loading-orbit-dot,
    .loading-tip,
    #loading-progress-bar::after {
        animation: none !important;
    }
}

/* ========================================
   PAGE ANNONCES
======================================== */

.announcements-page {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 70px;
}


/* HEADER */

.announcements-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 45px;
}

.announcements-header-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);

    font-size: 20px;
}

.announcements-header h1 {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 30px;
    font-weight: 750;
}

.announcements-header p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 14px;
}


/* TITRES DE SECTIONS */

.announcement-section-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 16px;

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.announcement-section-title::after {
    content: "";

    height: 1px;

    flex: 1;

    background: var(--border);
}

.announcement-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.announcement-status.current {
    color: #ef4444;
}

.announcement-status.current i {
    font-size: 7px;
}


/* ANNONCE ACTUELLE */

.current-announcement-section {
    margin-bottom: 48px;
}

.current-announcement {
    display: flex;
    gap: 22px;

    padding: 28px;

    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(239, 68, 68, 0.08),
            rgba(17, 24, 39, 0.8)
        );

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.18);
}

.current-announcement-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;

    font-size: 17px;
}

.current-announcement-content {
    flex: 1;
}

.announcement-label {
    display: block;

    margin-bottom: 7px;

    color: #ef4444;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.current-announcement h2 {
    margin: 0 0 10px;

    color: var(--text);

    font-size: 22px;
    font-weight: 700;
}

.current-announcement p {
    margin: 0 0 16px;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.6;
}

.announcement-meta {
    display: flex;
    align-items: center;

    margin-bottom: 18px;

    color: var(--text-secondary);

    font-size: 11px;
}

.announcement-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.announcement-page-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 9px 14px;

    border-radius: 9px;

    background: var(--primary);
    color: white;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.2s ease;
}

.announcement-page-button:hover {
    transform: translateY(-1px);

    filter: brightness(1.08);
}


/* ANCIENNES ANNONCES */

.old-announcements-section {
    margin-bottom: 30px;
}

.old-announcement {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 17px 18px;

    margin-bottom: 10px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(17, 24, 39, 0.45);

    opacity: 0.55;

    transition:
        opacity 0.2s ease,
        background 0.2s ease;
}

.old-announcement:hover {
    opacity: 0.8;
    background: var(--surface);
}

.old-announcement-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--surface-light);

    color: var(--text-secondary);

    font-size: 12px;
}

.old-announcement-content {
    flex: 1;
    min-width: 0;
}

.old-announcement h3 {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 14px;
    font-weight: 650;
}

.old-announcement p {
    margin: 0 0 8px;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.5;
}

.old-announcement-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--text-secondary);

    font-size: 10px;
}


/* ÉTATS VIDES */

.no-announcements,
.no-old-announcements {
    padding: 25px;

    border: 1px dashed var(--border);
    border-radius: 12px;

    color: var(--text-secondary);

    text-align: center;
    font-size: 13px;
}

.no-announcements i {
    display: block;

    margin-bottom: 8px;

    font-size: 20px;
}


/* RESPONSIVE */

@media (max-width: 600px) {

    .announcements-page {
        width: calc(100% - 30px);
        padding-top: 35px;
    }

    .announcements-header {
        margin-bottom: 32px;
    }

    .announcements-header h1 {
        font-size: 25px;
    }

    .current-announcement {
        gap: 15px;
        padding: 20px;
    }

    .current-announcement-icon {
        width: 40px;
        height: 40px;
    }

    .current-announcement h2 {
        font-size: 19px;
    }

    .old-announcement {
        padding: 14px;
    }

}

/* ========================================
   MODE DÉVELOPPEUR
======================================== */

.dev-mode-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 12px;
    padding: 14px 16px;

    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;

    background: rgba(245, 158, 11, 0.06);

    color: var(--text-secondary);

    font-size: 12px;
}

.dev-mode-info > i {
    margin-top: 2px;

    color: #f59e0b;
}

.dev-mode-info strong {
    display: block;

    margin-bottom: 3px;

    color: #f59e0b;

    font-size: 12px;
}

.dev-mode-info p {
    margin: 0;

    line-height: 1.5;
}

#dev-indicator {
    margin-left: 8px;

    padding: 3px 7px;

    border-radius: 6px;

    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;

    font-size: 9px;
    font-weight: 700;
}

/* ========================================
   MODE DÉVELOPPEUR
======================================== */

.dev-mode-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 12px;
    padding: 14px 16px;

    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;

    background: rgba(245, 158, 11, 0.06);

    color: var(--text-secondary);

    font-size: 12px;
}

.dev-mode-info > i {
    margin-top: 2px;

    color: #f59e0b;
}

.dev-mode-info strong {
    display: block;

    margin-bottom: 3px;

    color: #f59e0b;

    font-size: 12px;
}

.dev-mode-info p {
    margin: 0;

    line-height: 1.5;
}

/* ========================================
   MODE DÉVELOPPEUR
======================================== */

.dev-mode-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px;

    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 14px;

    background: rgba(245, 158, 11, 0.04);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* CONTENU */

.dev-mode-card .settings-card-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    min-width: 0;
}

.dev-mode-card .settings-card-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;

    font-size: 15px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.dev-mode-card h3 {
    margin: 0 0 4px;

    color: var(--text);

    font-size: 14px;
    font-weight: 650;
}

.dev-mode-card p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.5;
}


/* ========================================
   CARTE ACTIVE
======================================== */

.dev-mode-card.active {
    border-color: rgba(245, 158, 11, 0.45);

    background: rgba(245, 158, 11, 0.08);

    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.04),
        0 8px 30px rgba(245, 158, 11, 0.06);
}

.dev-mode-card.active .settings-card-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}


/* ========================================
   SWITCH
======================================== */

.settings-switch {
    position: relative;

    width: 44px;
    height: 24px;

    flex-shrink: 0;

    cursor: pointer;
}

.settings-switch input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;
}

.settings-switch-slider {
    position: absolute;
    inset: 0;

    border-radius: 999px;

    background: var(--surface-light);
    border: 1px solid var(--border);

    transition: 0.25s ease;
}

.settings-switch-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    top: 2px;
    left: 2px;

    border-radius: 50%;

    background: var(--text-secondary);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.25);

    transition: 0.25s ease;
}

.settings-switch input:checked + .settings-switch-slider {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

.settings-switch input:checked + .settings-switch-slider::before {
    transform: translateX(20px);

    background: #f59e0b;

    box-shadow:
        0 0 10px rgba(245, 158, 11, 0.45);
}

.settings-switch:hover .settings-switch-slider {
    border-color: rgba(245, 158, 11, 0.4);
}


/* ========================================
   INFO MODE DEV
======================================== */

.dev-mode-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 10px;
    padding: 13px 15px;

    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 11px;

    background: rgba(245, 158, 11, 0.05);

    color: var(--text-secondary);

    font-size: 12px;
}

.dev-mode-info > i {
    margin-top: 2px;

    color: #f59e0b;
}

.dev-mode-info strong {
    display: block;

    margin-bottom: 3px;

    color: #f59e0b;

    font-size: 12px;
}

.dev-mode-info p {
    margin: 0;

    line-height: 1.5;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .dev-mode-card {
        gap: 12px;
        padding: 15px;
    }

    .dev-mode-card .settings-card-content {
        gap: 11px;
    }

    .dev-mode-card .settings-card-icon {
        width: 36px;
        height: 36px;
    }

}

.index-confetti-canvas {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 9999;
}

.level-card-disabled {
    position: relative;
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.level-card-disabled:hover {
    transform: none;
    border-color: var(--border);
    background: var(--surface);
}

.level-card-disabled .level-icon {
    background: rgba(148, 163, 184, 0.08);
    color: #64748b;
}

.coming-soon-badge {
    position: absolute;
    top: 14px;
    right: 14px;

    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.15);

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Finitions globales : focus visible, champs et préférences de mouvement */
:where(a, button, input, textarea, select, [role="button"], summary):focus-visible {
    outline: 3px solid rgba(129, 140, 248, 0.8);
    outline-offset: 3px;
}

:where(input, textarea, select):focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

::selection {
    color: #fff;
    background: rgba(99, 102, 241, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Outils du mode développeur */
.dev-mode-tools {
    display: grid;
    gap: 14px;
    margin-top: 12px;
    padding: 17px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(17, 24, 39, 0.62));
    animation: dev-tools-in 0.25s ease both;
}

.dev-mode-tools[hidden] { display: none; }
.dev-mode-tools-heading { display: grid; gap: 4px; }
.dev-mode-tools-heading strong { color: #fbbf24; font-size: 13px; }
.dev-mode-tools-heading strong i { margin-right: 6px; }
.dev-mode-tools-heading span { color: var(--text-secondary); font-size: 11px; line-height: 1.5; }

.dev-mode-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dev-action-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 9px;
    background: rgba(17, 24, 39, 0.78);
    color: var(--text);
    font: inherit;
    font-size: 11px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dev-action-button:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.08);
}

.dev-action-button i { width: 15px; color: #fbbf24; text-align: center; }
.dev-action-button.secondary { color: var(--text-secondary); }
.dev-action-button.secondary i { color: #94a3b8; }
.dev-test-status { min-height: 16px; margin: 0; color: #a7f3d0; font-size: 11px; line-height: 1.45; }

#dev-indicator {
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-variant-numeric: tabular-nums;
}

.settings-switch input:focus-visible + .settings-switch-slider {
    outline: 3px solid rgba(251, 191, 36, 0.75);
    outline-offset: 3px;
}

@keyframes dev-tools-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .dev-mode-actions { grid-template-columns: 1fr; }
    .dev-mode-tools { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .dev-mode-tools { animation: none; }
    .dev-action-button { transition: none; }
}

.changelog-type.bug {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Idée annulée */
.change-group.cancelled {
    opacity: 0.7;
    border: 1px dashed rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.04);
    border-radius: 12px;
    padding: 16px;
}

.change-group.cancelled .change-type {
    color: #f87171;
}

.change-group.cancelled .change-content h3 {
    text-decoration: line-through;
    text-decoration-color: rgba(248, 113, 113, 0.7);
}

.change-group.cancelled .change-content::before {
    content: "✕ ANNULÉ";
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

/* Lien « Voir toutes les annonces » dans la fenêtre d'annonce */
.announcement-all-link {
    display: block;
    margin-top: 14px;
    color: var(--text-secondary, #9ca3af);
    font-size: 13px;
    text-align: center;
    text-decoration: underline;
}

.announcement-all-link:hover {
    color: var(--text, #f9fafb);
}


/* ==============================
   ANIMATIONS DÉSACTIVÉES (Paramètres)
============================== */

html.no-animations {
    scroll-behavior: auto;
}

html.no-animations *,
html.no-animations *::before,
html.no-animations *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
}


/* ==============================
   EN-TÊTE STANDARD (titre + menu en dessous)
============================== */

.page-header-nav {
    display: block;
    margin-bottom: 28px;
}

.page-header-nav .brand {
    margin-bottom: 20px;
}

.page-header-nav .main-nav,
.dico-main-nav {
    flex-wrap: wrap;
}

.page-top {
    padding-bottom: 0;
}

.dico-main-nav {
    margin-bottom: 30px;
}


/* ==============================
   PARAMÈTRES : THÈME ET ESPACE UTILISÉ
============================== */

.theme-choice {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-light);
}

.theme-choice button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.theme-choice button:hover {
    color: var(--text);
}

.theme-choice button.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.storage-card {
    margin-bottom: 10px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.storage-head {
    margin-bottom: 14px;
}

.storage-bar {
    display: flex;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-light);
    box-shadow: inset 0 0 0 1px var(--border);
}

.storage-bar span {
    height: 100%;
    transition: width 0.4s;
}

.storage-bar span + span {
    border-left: 2px solid var(--surface);
}

.storage-bar.warning {
    box-shadow: inset 0 0 0 1px var(--red), 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.storage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 12px 0 4px;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 13px;
}

.storage-legend strong {
    color: var(--text);
    font-weight: 600;
}

.storage-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
}

.storage-details {
    margin-top: 12px;
    font-size: 14px;
}

.storage-details summary {
    color: var(--text-secondary);
    cursor: pointer;
}

.storage-details ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.storage-details li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
}

.storage-details a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.storage-details a:hover {
    text-decoration: underline;
}

.storage-notebook-info {
    flex: 1;
    color: var(--text-secondary);
    font-size: 13px;
}

.setting-button.small {
    padding: 5px 10px;
    font-size: 12px;
}

.storage-note {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.5;
}

.storage-note code {
    font-size: 12px;
}

@media (max-width: 650px) {
    .theme-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 650px) {
    .settings-card {
        flex-wrap: wrap;
    }

    .settings-card .name-setting {
        display: flex;
        width: 100%;
        gap: 8px;
    }

    .settings-card .name-setting .setting-input {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}


/* ==============================
   MODE DÉVELOPPEUR : BARRE ET CONTOURS
============================== */

.nsi-devbar {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 100000;
    font-family: inherit;
    font-size: 13px;
}

.nsi-devbar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(249, 115, 22, 0.55);
    border-radius: 999px;
    background: var(--surface);
    color: var(--orange);
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nsi-devbar-toggle:hover {
    background: var(--surface-light);
}

.nsi-devbar-errors {
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    text-align: center;
    letter-spacing: 0;
}

.nsi-devbar-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    width: min(330px, calc(100vw - 28px));
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.nsi-devbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.nsi-devbar-head strong i {
    color: var(--orange);
    margin-right: 4px;
}

.nsi-devbar-head button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.nsi-devbar-head button:hover {
    background: var(--surface-light);
    color: var(--text);
}

.nsi-devbar-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--surface-light);
    font-size: 12px;
}

.nsi-devbar-info dt {
    color: var(--text-secondary);
}

.nsi-devbar-info dd {
    margin: 0;
    font-family: "JetBrains Mono", Consolas, monospace;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsi-devbar-section {
    margin: 10px 0 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nsi-devbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.nsi-devbar-actions > *,
.nsi-devbar-footer > * {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-light);
    color: var(--text);
    font: inherit;
    font-size: 12.5px;
    text-decoration: none;
    cursor: pointer;
}

.nsi-devbar-actions > *:hover,
.nsi-devbar-footer > *:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

.nsi-devbar-actions i,
.nsi-devbar-footer i {
    width: 14px;
    color: var(--orange);
    text-align: center;
}

.nsi-devbar-actions .on {
    border-color: var(--orange);
    background: rgba(249, 115, 22, 0.12);
}

.nsi-devbar-select select {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.nsi-devbar-select select option {
    background: var(--surface);
}

.nsi-devbar-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

html.nsi-dev-outlines body *:not(.nsi-devbar):not(.nsi-devbar *) {
    outline: 1px solid rgba(239, 68, 68, 0.35) !important;
    outline-offset: -1px;
}

@media print {
    .nsi-devbar {
        display: none;
    }
}


/* ==============================
   PARAMÈTRES : OUTILS DU MODE DÉVELOPPEUR
============================== */

.dev-block {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.dev-block h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 15px;
}

.dev-block h4 > i {
    color: var(--orange);
}

.dev-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dev-block-head h4 {
    margin: 0;
}

.dev-block-actions {
    display: flex;
    gap: 6px;
}

.dev-count {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.dev-count.has-errors {
    background: var(--red);
    color: #fff;
}

.dev-hint {
    margin: 8px 0 10px;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.5;
}

.dev-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dev-row-label {
    min-width: 110px;
    color: var(--text-secondary);
    font-size: 13px;
}

.dev-select {
    flex: 1;
    min-width: 180px;
    width: auto;
}

.dev-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
}

.dev-segment button {
    padding: 6px 11px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.dev-segment button.active {
    background: var(--orange);
    color: #fff;
}

.dev-demo .dev-action-button {
    min-height: 36px;
}

.dev-action-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dev-errors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dev-errors-list > li {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: 10px;
    background: var(--surface-light);
}

.dev-errors-list > li.dev-empty {
    border-left-color: var(--green);
    color: var(--text-secondary);
    font-size: 13px;
}

.dev-errors-list .dev-empty i {
    color: var(--green);
    margin-right: 6px;
}

.dev-error-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 12px;
}

.dev-error-type {
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    font-weight: 700;
}

.dev-error-type.ressource {
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange);
}

.dev-error-type.promesse {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
}

.dev-error-page {
    font-family: "JetBrains Mono", Consolas, monospace;
    color: var(--text);
}

.dev-error-time {
    margin-left: auto;
    color: var(--text-secondary);
}

.dev-error-message {
    margin: 6px 0 0;
    font-size: 13.5px;
    word-break: break-word;
}

.dev-error-where {
    margin: 3px 0 0;
    color: var(--text-secondary);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12px;
}

.dev-errors-list details,
.dev-key-body {
    margin-top: 6px;
}

.dev-errors-list summary {
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
}

.dev-errors-list pre {
    margin: 6px 0 0;
    padding: 8px 10px;
    overflow-x: auto;
    border-radius: 8px;
    background: var(--background);
    color: var(--text-secondary);
    font-size: 11.5px;
    white-space: pre-wrap;
}

.dev-search {
    width: 200px;
}

.dev-storage-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dev-key {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
}

.dev-key summary {
    display: grid;
    grid-template-columns: minmax(140px, auto) auto auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    cursor: pointer;
    list-style: none;
}

.dev-key summary::-webkit-details-marker {
    display: none;
}

.dev-key[open] summary {
    border-bottom: 1px solid var(--border);
}

.dev-key-name {
    color: var(--text);
    font-weight: 600;
}

.dev-key-kind,
.dev-key-size {
    color: var(--text-secondary);
    white-space: nowrap;
}

.dev-key-preview {
    overflow: hidden;
    color: var(--text-secondary);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-key-body {
    padding: 10px 12px 12px;
}

.dev-key-editor {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    resize: vertical;
}

.dev-key-editor:focus {
    outline: none;
    border-color: var(--orange);
}

.dev-key-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.setting-button.danger {
    color: var(--red);
}

.dev-key-message {
    font-size: 12.5px;
}

.dev-key-message.ok {
    color: var(--green);
}

.dev-key-message.error {
    color: var(--red);
}

@media (max-width: 650px) {
    .dev-key summary {
        grid-template-columns: 1fr auto;
    }

    .dev-key-preview,
    .dev-key-kind {
        display: none;
    }

    .dev-search {
        width: 100%;
    }
}


/* ==============================
   RESSOURCES INDISPONIBLES (data-indisponible)
============================== */

.card[data-indisponible] {
    cursor: not-allowed;
    filter: grayscale(1);
}

/* L'opacité est appliquée au contenu : l'animation d'apparition des cartes fixe celle de la carte */
.card[data-indisponible] .card-icon,
.card[data-indisponible] .card-content {
    opacity: 0.5;
}

.card[data-indisponible]:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.card[data-indisponible] .open-icon {
    visibility: hidden;
}

.card[data-indisponible] .card-content h3::after {
    content: "Indisponible";
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.card.unavailable-shake {
    animation: unavailable-shake 0.35s ease;
}

@keyframes unavailable-shake {
    20%, 60% { translate: -4px 0; }
    40%, 80% { translate: 4px 0; }
}

.unavailable-notice {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 0.2s, transform 0.2s;
}

.unavailable-notice.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.unavailable-notice i {
    color: var(--orange);
}


/* ==============================
   PAGE DES PROMPTS
============================== */

.prompt-tips {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.06);
}

.prompt-tips-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.14);
    color: var(--green);
}

.prompt-tips strong {
    display: block;
    margin-bottom: 6px;
}

.prompt-tips ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.prompt-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.prompt-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.prompt-search:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
}

.prompt-search i {
    color: var(--text-secondary);
}

.prompt-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

.prompt-search input:focus {
    outline: none;
}

.prompt-count {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.prompt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.prompt-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: 0.15s ease;
}

.prompt-filter span {
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-light);
    font-size: 11px;
}

.prompt-filter:hover {
    color: var(--text);
    border-color: rgba(139, 92, 246, 0.4);
}

.prompt-filter.active {
    border-color: var(--purple);
    background: var(--purple);
    color: #fff;
}

.prompt-filter.active span {
    background: rgba(255, 255, 255, 0.2);
}

.prompt-filter .fa-star {
    color: var(--yellow);
}

.prompt-filter.active .fa-star {
    color: #fff;
}

.prompt-card.open {
    border-color: rgba(139, 92, 246, 0.4);
}

.prompt-card-title {
    min-width: 0;
}

.prompt-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt-card p {
    line-height: 1.5;
}

.prompt-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 11px;
}

.prompt-card-actions {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-icon-button,
.prompt-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: 0.15s ease;
}

.prompt-icon-button {
    width: 36px;
    padding: 0;
}

.prompt-icon-button:hover,
.prompt-open:hover {
    color: var(--text);
    border-color: rgba(139, 92, 246, 0.4);
}

.prompt-favorite.active {
    color: var(--yellow);
    border-color: rgba(234, 179, 8, 0.4);
}

.prompt-open[aria-expanded="true"] {
    color: var(--text);
    border-color: var(--purple);
}

.copy-button.failed {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.4);
}

.copy-button.primary {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.copy-button.primary:hover {
    filter: brightness(1.1);
    color: #fff;
}

.copy-button.primary.copied {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.prompt-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.prompt-help {
    margin: 0 0 12px;
}

.prompt-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.prompt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12.5px;
}

.prompt-field.wide {
    grid-column: 1 / -1;
}

.prompt-field input,
.prompt-field textarea {
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--background);
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
}

.prompt-field textarea {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    resize: vertical;
}

.prompt-field input:focus,
.prompt-field textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.prompt-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.prompt-preview {
    max-height: 320px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-hole {
    padding: 0 3px;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.18);
    color: inherit;
    font-weight: 600;
}

.prompt-empty {
    padding: 40px 20px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.prompt-empty i {
    margin-bottom: 8px;
    font-size: 26px;
}

.prompt-footer {
    margin-top: 26px;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

.prompt-footer a {
    color: var(--purple);
}

@media (max-width: 650px) {
    .prompt-card-actions {
        width: 100%;
    }

    .prompt-card-actions .prompt-open,
    .prompt-card-actions .copy-button {
        flex: 1;
        justify-content: center;
    }

    .prompt-fields {
        grid-template-columns: 1fr;
    }

    .prompt-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 650px) {
    .prompt-preview-head {
        flex-wrap: wrap;
    }

    .prompt-preview-head .copy-button {
        width: 100%;
        justify-content: center;
    }
}


/* ==============================
   PARAMÈTRES : MES COURS DE NSI
============================== */

.horaires-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 17px;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.horaires-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.horaires-head strong {
    color: var(--text);
    font-weight: 600;
}

.horaires-saved {
    flex-shrink: 0;
    font-size: 12.5px;
    color: var(--green);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.horaires-saved.visible { opacity: 1; }
.horaires-saved.error { color: var(--red); }

.horaires-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horaires-empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13.5px;
    text-align: center;
}

.horaires-empty i { margin-right: 6px; }

.horaires-slot {
    display: grid;
    grid-template-columns: 120px auto minmax(70px, 1fr) 165px 36px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
}

.horaires-slot .setting-input {
    width: 100%;
    min-width: 0;
    background: var(--surface);
}

.horaires-range {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.horaires-range .setting-input {
    width: 108px;
}

.horaires-slot.invalid {
    border-color: rgba(239, 68, 68, 0.6);
}

.horaires-slot.invalid .horaires-range .setting-input {
    border-color: var(--red);
}

.horaires-slot-error {
    display: none;
    grid-column: 1 / -1;
    margin: 0;
    color: var(--red);
    font-size: 12.5px;
}

.horaires-slot.invalid .horaires-slot-error { display: block; }

.horaires-delete {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.2s ease;
}

.horaires-delete:hover {
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.horaires-add {
    align-self: flex-start;
}

.horaires-add i { margin-right: 4px; }

.horaires-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13.5px;
}

.horaires-option[hidden] { display: none; }

.horaires-select {
    width: auto;
}

.horaires-hint {
    margin: -6px 0 0;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.5;
}

.horaires-hint:empty { display: none; }
.horaires-hint.error { color: var(--red); }
.horaires-hint.success { color: var(--green); }

.horaires-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.horaires-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 13.5px;
    cursor: pointer;
    user-select: none;
    transition: 0.2s ease;
}

.horaires-chip:hover { border-color: var(--primary); }

.horaires-chip.checked {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.14);
    color: var(--text);
}

.horaires-chip input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.horaires-time {
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 13px;
}

.horaires-method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-light);
}

.horaires-method > div:first-child {
    flex: 1 1 280px;
    min-width: 0;
}

.horaires-method.recommended {
    border-color: rgba(99, 102, 241, 0.45);
}

.horaires-method h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 14.5px;
}

.horaires-method h4 i { color: var(--primary); }

.horaires-method h4 .setting-badge {
    font-size: 11px;
    font-weight: 600;
}

.horaires-method p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.horaires-method .horaires-hint {
    flex-basis: 100%;
    margin: 0;
}

.horaires-method .settings-switch input:checked + .settings-switch-slider {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.55);
}

.horaires-method .settings-switch input:checked + .settings-switch-slider::before {
    background: var(--primary);
}

.horaires-method-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.setting-button.primary {
    border-color: transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.setting-button.primary:hover {
    color: #fff;
    filter: brightness(1.1);
}

.setting-button i { margin-right: 4px; }

.horaires-help {
    flex-basis: 100%;
    font-size: 13px;
    color: var(--text-secondary);
}

.horaires-help summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
}

.horaires-help ul {
    margin: 10px 0 0;
    padding-left: 18px;
    line-height: 1.55;
}

.horaires-help li + li { margin-top: 6px; }

.horaires-help strong { color: var(--text); }

@media (max-width: 700px) {
    .horaires-slot {
        grid-template-columns: 1fr 1fr 36px;
    }

    .horaires-slot select[data-field="day"] { grid-column: 1 / 3; grid-row: 1; }
    .horaires-slot .horaires-delete { grid-column: 3; grid-row: 1; }
    .horaires-slot .horaires-range { grid-column: 1 / -1; grid-row: 2; }
    .horaires-slot input[data-field="room"] { grid-column: 1; grid-row: 3; }
    .horaires-slot select[data-field="week"] { grid-column: 2 / 4; grid-row: 3; }

    .horaires-range .setting-input { flex: 1; width: auto; min-width: 0; }
    .horaires-range { min-width: 0; }

    .horaires-method .setting-button.primary {
        width: 100%;
        padding: 11px;
    }

    .horaires-head { align-items: flex-start; }
}
