/* LudiqIA — CSS nettoyé. Thèmes, navigation, Scanner, fiche et administration. */

*,
::before,
::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scrollbar-gutter: stable;
}

body {
    margin: 0px;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 0.25s, color 0.25s;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
video {
    max-width: 100%;
}

/* COULEURS D’ACCENT */

html[data-accent="lavande"] {
    --accent: #b58cff;
    --accent-hover: #c29fff;
    --accent-soft: rgba(181, 140, 255, 0.14);
    --accent-border: rgba(181, 140, 255, 0.30);
    --shadow-accent: 0 8px 24px rgba(181, 140, 255, 0.22);
}

html[data-accent="bleu-nuit"] {
    --accent: #4776c5;
    --accent-hover: #5c89d2;
    --accent-soft: rgba(71, 118, 197, 0.14);
    --accent-border: rgba(71, 118, 197, 0.30);
    --shadow-accent: 0 8px 24px rgba(71, 118, 197, 0.22);
}

:root,
html[data-accent="terracotta"] {
    --accent: #d98570;
    --accent-hover: #e69b86;
    --accent-soft: rgba(255, 128, 99, 0.14);
    --accent-border: rgba(255, 128, 99, 0.30);
    --shadow-accent: 0 8px 24px rgba(255, 128, 99, 0.22);
}

html[data-accent="bleu-petrole"] {
    --accent: #35b8ca;
    --accent-hover: #50c6d5;
    --accent-soft: rgba(53, 184, 202, 0.14);
    --accent-border: rgba(53, 184, 202, 0.30);
    --shadow-accent: 0 8px 24px rgba(53, 184, 202, 0.22);
}

html[data-accent="bordeaux-rose"] {
    --accent: #df4e7b;
    --accent-hover: #e6678e;
    --accent-soft: rgba(223, 78, 123, 0.14);
    --accent-border: rgba(223, 78, 123, 0.30);
    --shadow-accent: 0 8px 24px rgba(223, 78, 123, 0.22);
}

html[data-accent="champagne"] {
    --accent: #f2c987;
    --accent-hover: #f6d69f;
    --accent-soft: rgba(242, 201, 135, 0.16);
    --accent-border: rgba(242, 201, 135, 0.34);
    --shadow-accent: 0 8px 24px rgba(242, 201, 135, 0.22);
}

html[data-accent="rose-poudre"] {
    --accent: #d98fae;
    --accent-hover: #e3a4bf;
    --accent-soft: rgba(217, 143, 174, 0.14);
    --accent-border: rgba(217, 143, 174, 0.30);
    --shadow-accent: 0 8px 24px rgba(217, 143, 174, 0.22);
}

html[data-accent="peche"] {
    --accent: #f7b9a8;
    --accent-hover: #fac8ba;
    --accent-soft: rgba(247, 185, 168, 0.14);
    --accent-border: rgba(247, 185, 168, 0.30);
    --shadow-accent: 0 8px 24px rgba(247, 185, 168, 0.22);
}

html[data-accent="bleu-brume"] {
    --accent: #88afcb;
    --accent-hover: #9dc0d8;
    --accent-soft: rgba(136, 175, 203, 0.14);
    --accent-border: rgba(136, 175, 203, 0.30);
    --shadow-accent: 0 8px 24px rgba(136, 175, 203, 0.22);
}

html[data-accent="sauge"] {
    --accent: #91b69c;
    --accent-hover: #a5c5ad;
    --accent-soft: rgba(145, 182, 156, 0.14);
    --accent-border: rgba(145, 182, 156, 0.30);
    --shadow-accent: 0 8px 24px rgba(145, 182, 156, 0.22);
}

html[data-accent="sable"] {
    --accent: #b9aa96;
    --accent-hover: #c8bba9;
    --accent-soft: rgba(185, 170, 150, 0.14);
    --accent-border: rgba(185, 170, 150, 0.30);
    --shadow-accent: 0 8px 24px rgba(185, 170, 150, 0.22);
}

html[data-accent="prune"] {
    --accent: #84547d;
    --accent-hover: #986990;
    --accent-soft: rgba(132, 84, 125, 0.14);
    --accent-border: rgba(132, 84, 125, 0.30);
    --shadow-accent: 0 8px 24px rgba(132, 84, 125, 0.22);
}

.bouton-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    border: 0px;
    border-radius: var(--radius-md);
    padding: 13px 18px;
    background: var(--accent);
    color: rgb(255, 255, 255);
    font-weight: 800;
    box-shadow: var(--shadow-accent);
    transition: transform 0.15s, background-color 0.2s;
}

.bouton-principal:active {
    transform: scale(0.98);
}

.bouton-secondaire:hover {
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.carte {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.carte,
.bottom-nav,
input,
select,
textarea,
button {
    transition: background-color 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}

/* VARIABLES ET THÈMES */

:root {
    --bg: #07111b;
    --bg-elevated: #0b1722;
    --surface: #101d29;
    --surface-2: #162532;
    --surface-hover: #1c2d3b;
    --text: #f7f9fb;
    --text-secondary: #a8b4bf;
    --text-muted: #71808d;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --accent: #ff8063;
    --accent-hover: #ff947b;
    --accent-soft: rgba(255, 128, 99, 0.14);
    --accent-border: rgba(255, 128, 99, 0.30);
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #fb7185;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-pill: 999px;
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 22px;
    --space-xl: 30px;
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.22);
    --shadow-large: 0 20px 50px rgba(0, 0, 0, 0.35);
    --shadow-accent: 0 8px 24px rgba(255, 128, 99, 0.22);
    --nav-height: 72px;
    --accent-ink: var(--accent);
}

/* NAVIGATION */

.bottom-nav {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    width: min(100%, 600px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0px, 1fr));
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0px 0px;
    border-bottom: 0px;
    background: var(--bg-elevated);
    box-shadow: rgba(0, 0, 0, 0.094) 0px -8px 30px;
}

.nav-item {
    position: relative;
    isolation: isolate;
    min-width: 0px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0px;
    background: transparent;
    color: var(--text-secondary);
    padding: 5px 0px;
    -webkit-tap-highlight-color: transparent;
}

.nav-item::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: min(88px, 100%);
    height: 58px;
    border-radius: 50% 50% 0px 0px;
    opacity: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 75%);
    border-top: 1px solid var(--accent);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-icon {
    width: 32px;
    height: 29px;
    display: grid;
    place-items: center;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#navScanner svg {
    fill: currentcolor;
    stroke: none;
}

.nav-label {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
}

.nav-item.active {
    color: var(--accent-ink);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 9px var(--accent));
}

.nav-item.active .nav-label {
    font-weight: 700;
}

.icone-coeur-plein,
#navLudotheque.active .icone-coeur-vide {
    display: none;
}

#navLudotheque.active .icone-coeur-plein {
    display: block;
    fill: currentcolor;
}

.nav-item:active .nav-icon {
    transform: scale(0.94);
}

:where(button,
    .carte-decouvrir,
    select):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.app {
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% -10%,
            var(--accent-soft),
            transparent 38%),
        var(--bg);
    min-height: 100dvh;
}

/* SCANNER */

#ecranPrincipal {
    width: min(100%, 600px);
    margin: 0px auto;
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

.topbar {
    padding: 24px 20px 20px;
    text-align: center;
}

.logo {
    font-family: "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.subtitle {
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.scanner-zone {
    padding: 0px 20px;
}

.camera-wrapper {
    position: relative;
    width: 100%;
    height: clamp(280px, 49dvh, 460px);
    overflow: hidden;
    border-radius: 0px;
    background: transparent;
    border: 0px;
    box-shadow: none;
}

#camera {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(transparent 0%, rgb(0, 0, 0) 28%, rgb(0, 0, 0) 72%, transparent 100%);
    mask-image: linear-gradient(transparent 0%, rgb(0, 0, 0) 28%, rgb(0, 0, 0) 72%, transparent 100%);
}

.scan-frame {
    position: absolute;
    inset: 7%;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 34px;
    height: 34px;
    border-style: solid;
    border-color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent-soft));
}

.top-left {
    top: 0px;
    left: 0px;
    border-width: 3px 0px 0px 3px;
    border-radius: 12px 0px 0px;
}

.top-right {
    top: 0px;
    right: 0px;
    border-width: 3px 3px 0px 0px;
    border-radius: 0px 12px 0px 0px;
}

.bottom-left {
    bottom: 0px;
    left: 0px;
    border-width: 0px 0px 3px 3px;
    border-radius: 0px 0px 0px 12px;
}

.bottom-right {
    bottom: 0px;
    right: 0px;
    border-width: 0px 3px 3px 0px;
    border-radius: 0px 0px 12px;
}

.status-pill {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: 82%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(8, 20, 32, 0.58);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgb(255, 255, 255);
}

.status-pill svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
}

#etat {
    margin: 0px;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#resultat[hidden] {
    display: none !important;
}

.scanner-aide {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--accent-border);
    border-radius: 16px;
}

.scanner-aide svg {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--accent-ink, var(--accent));
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scanner-aide p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.scanner-aide strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

/* FICHE JEU */

#ecranPrincipal.fiche-ouverte>.topbar {
    display: none;
}

#ficheJeu {
    width: 100%;
    max-width: none;
    margin: 0px;
    padding: 0px;
    border: 0px;
    border-radius: 0px;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

/* Barre de retour et favori */

#ficheJeu .fiche-actions {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 4px;
}

#ficheJeu #boutonRetourFiche,
#ficheJeu #boutonCoeurLudotheque {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

#ficheJeu #boutonRetourFiche {
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
}

#ficheJeu #boutonRetourFiche svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ficheJeu #boutonCoeurLudotheque {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent-ink, var(--accent));
    font-size: 30px;
    line-height: 1;
}

.fiche-ligne-categorie {
    display: flex;
    align-items: center;
    gap: 18px;
}

#ficheJeu .fiche-actions button:focus:not(:focus-visible) {
    outline: none;
}

#ficheJeu .fiche-actions button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Image à gauche, informations à droite */

#ficheJeu .fiche-entete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 18px;
    padding: 10px 20px 24px;
}

#ficheJeu .fiche-visuel {
    min-width: 0;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    justify-self: center;
    background: transparent;
}

#ficheImageCategorie {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* Intersection des fondus vertical et horizontal */
    -webkit-mask-image:
        linear-gradient(to right,
            transparent, #000 16%, #000 84%, transparent),
        linear-gradient(to bottom,
            transparent, #000 16%, #000 84%, transparent);
    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(to right,
            transparent, #000 16%, #000 84%, transparent),
        linear-gradient(to bottom,
            transparent, #000 16%, #000 84%, transparent);
    mask-composite: intersect;
}

#ficheJeu .fiche-identite {
    min-width: 0;
}

#ficheNom {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
}

#ficheJeu .fiche-metadonnees {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

#ficheJeu .fiche-contenu {
    margin: 0;
    padding: 0 22px 24px;
}

@media (max-width: 360px) {
    #ficheJeu .fiche-entete {
        gap: 12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    #ficheNom {
        font-size: 26px;
    }
}

#ficheJeu #ficheCategorie {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

#ficheJeu .fiche-detail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.4;
}

#ficheJeu .fiche-detail svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ficheJeu #blocResumeJeu {
    margin: 0px 0px 20px;
    padding: 0px;
    border: 0px;
    background: transparent;
}

#ficheResume {
    margin: 0px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}

#ficheJeu #boutonVideo,
#choisirJeuOnJoue {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink, var(--accent));
    box-shadow: none;
    font-size: 15px;
    font-weight: 700;
}

#choisirJeuOnJoue:active {
    transform: scale(0.98);
}

#ficheJeu #videoJeu {
    margin-top: 12px;
    padding: 0px;
}

#ficheJeu #youtubePlayer {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0px;
    border-radius: 14px;
    background: rgb(0, 0, 0);
}

#ficheJeu .fermer-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    margin: 12px auto 0;
    padding: 8px 16px;

    border: 1px solid var(--accent-border);
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-ink, var(--accent));

    font-size: 14px;
    font-weight: 600;
}

#ficheJeu .fermer-video span {
    font-size: 22px;
    line-height: 1;
}

#ficheJeu .mise-en-place {
    margin: 24px 0px 0px;
    padding: 0px;
    border: 0px;
    background: transparent;
}

#ficheJeu .mise-en-place h2 {
    margin: 0px 0px 14px;
    color: var(--accent-ink, var(--accent));
    font-size: 20px;
}

#ficheJeu .etape {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

#ficheJeu .etape::before {
    content: "";
    flex: 0 0 5px;
    height: 5px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.categorie-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 8px 20px;
}

.numero-etape {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(255, 159, 28), rgb(255, 107, 26));
    color: white;
    font-weight: 900;
}

#boutonVideo:active {
    transform: scale(0.98);
}

/* ======================================================
   RÉGLAGES
   ====================================================== */
.ecran-reglages {
    display: none;
    min-height: 100vh;
}


/* SECTIONS */

.section-reglages {
    margin-bottom: 20px;
}

.titre-section-reglages {
    margin: 0 2px 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.carte-reglages {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}


/* TEXTES */

.texte-reglage {
    min-width: 0;
    flex: 1;
}

.texte-reglage strong {
    display: block;

    color: var(--text);

    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.texte-reglage span {
    display: block;
    margin-top: 4px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.4;
}

.bouton-deconnexion {
    width: 100%;
    height: 48px;
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid #e54858;
    border-radius: 10px;

    background: rgba(229, 72, 88, 0.10);
    color: #ff5364;

    font: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.bouton-deconnexion svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.bouton-deconnexion:active {
    background: rgba(229, 72, 88, 0.18);
    transform: scale(0.99);
}

/* APPARENCE */

.carte-apparence {
    padding: 14px 16px;
}

.ligne-apparence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ligne-accent {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.entete-accent {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* COULEURS D'ACCENT */

.choix-couleurs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-items: center;
    row-gap: 12px;
    padding-left: 44px;
}

.pastille-accent {
    position: relative;

    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 0;

    border: 3px solid transparent;
    border-radius: 50%;

    box-shadow: none;
}

.pastille-accent.actif::after {
    content: "";

    position: absolute;
    inset: -6px;

    border: 2px solid var(--text);
    border-radius: 50%;
}

.accent-lavande {
    background: #b58cff;
}

.accent-bleu-nuit {
    background: #4776c5;
}

.accent-terracotta {
    background: #d98570;
}

.accent-bleu-petrole {
    background: #35b8ca;
}

.accent-bordeaux-rose {
    background: #df4e7b;
}

.accent-champagne {
    background: #f2c987;
}

.accent-rose-poudre {
    background: #d98fae;
}

.accent-peche {
    background: #f7b9a8;
}

.accent-bleu-brume {
    background: #88afcb;
}

.accent-sauge {
    background: #91b69c;
}

.accent-sable {
    background: #b9aa96;
}

.accent-prune {
    background: #84547d;
}


/* LIGNES DE MENU */

.ligne-reglages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    width: 100%;
    min-height: 74px;
    padding: 11px 16px;

    border: 0;

    background: transparent;
    color: var(--text);

    text-align: left;
}

.ligne-reglages:active {
    background: var(--surface-hover);
}

.chevron-reglages {
    flex: 0 0 auto;

    color: var(--text-secondary);

    font-size: 27px;
    font-weight: 300;
    line-height: 1;
}


/* SÉPARATEURS */

.separateur-reglages {
    height: 1px;
    margin: 0 18px;

    background: var(--border);
}

.icone-ligne-reglages {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;

    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ADMINISTRATION */

.carte-administration {
    border-color: var(--accent-border);
    background:
        linear-gradient(var(--accent-soft),
            var(--accent-soft)),
        var(--surface);
}

/* VERSION */

.version-reglages {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;
    padding: 0 18px;

    color: var(--text);
}

.version-reglages strong {
    font-size: 15px;
}

.version-reglages span {
    color: var(--text-secondary);
    font-size: 14px;
}


/* PETITS ÉCRANS */

@media (max-width: 380px) {

    .ligne-apparence {
        align-items: flex-start;
        flex-direction: column;
    }

    .choix-couleurs {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        justify-items: center;
        padding-left: 0;
        row-gap: 12px;
    }

    .pastille-accent {
        width: 34px;
        height: 34px;
    }
}

.form-ajout-jeu {
    display: none;
}

.form-ajout-jeu label {
    display: block;
    margin: 18px 0px 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-ajout-jeu input,
.form-ajout-jeu select,
.form-ajout-jeu textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgb(51, 65, 85);
    border-radius: 12px;
    background: rgb(17, 28, 41);
    color: white;
    font: inherit;
}

.form-ajout-jeu textarea {
    resize: vertical;
}

.ligne-formulaire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.actions-ajout-jeu {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.actions-ajout-jeu button {
    flex: 1 1 0%;
}

.capture-ajout-jeu {
    display: none;
}

#cameraAjout {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progression-capture {
    text-align: center;
    margin: 18px 0px;
    color: rgb(203, 213, 225);
    font-weight: 700;
}

.capture-ajout-jeu .actions-formulaire-proposition .bouton-principal,
.capture-ajout-jeu .actions-formulaire-proposition .bouton-secondaire {
    width: 100%;
    margin-top: 0;
}

#authPreferences .actions-formulaire-proposition {
    margin-top: 20px;
}

.consigne-capture {
    margin: 16px 0;
    padding: 13px 17px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.titre-etape-capture {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

#texteCaptureProposition,
#texteCaptureJeu {
    margin: 8px 0 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.conseil-capture {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);

    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.camera-ajout-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

#cameraAjout,
#cameraProposition {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.guide-boite {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.guide-boite-cadre {
    width: 72%;
    aspect-ratio: 1.35 / 1;
    border: 2px dashed rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.08);
}

.carte input {
    width: 100%;
    padding: 14px;
    margin: 8px 0px 14px;
    border: 1px solid rgb(51, 65, 85);
    border-radius: 12px;
    background: rgb(17, 28, 41);
    color: white;
    font: inherit;
}

/* Jeu personnel */

.option-jeu-personnel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    width: 100%;
    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid var(--border);
    cursor: pointer;
}

.texte-option-personnel {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.texte-option-personnel strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.texte-option-personnel small {
    color: var(--text-secondary);
    font-size: 12px;
}

.switch-personnel {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
}

.switch-personnel input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-personnel-visuel {
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    transition: 0.2s ease;
}

.switch-personnel-visuel::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: 0.2s ease;
}

.switch-personnel input:checked+.switch-personnel-visuel {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.switch-personnel input:checked+.switch-personnel-visuel::after {
    transform: translateX(20px);
    background: var(--accent);
}

.carte-formulaire-proposition>.option-jeu-personnel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    width: 100%;
}

/* DÉCOUVRIR ET LUDOTHÈQUE */

.decouvrir-header,
.reglages-header {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.decouvrir-header {
    padding-right: 52px;
}

.decouvrir-header h1,
.reglages-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.decouvrir-header p,
.reglages-header p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.6;
}

.bouton-recherche-decouvrir {
    position: absolute;
    top: 0;
    right: 0;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--surface);
    color: var(--text);
}

.bouton-recherche-decouvrir svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bouton-recherche-decouvrir.masque {
    display: none;
}

#categoriesDecouvrir {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 7px;
    margin-bottom: 17px;
    scrollbar-width: none;
}

#categoriesDecouvrir::-webkit-scrollbar {
    display: none;
}

.entete-decouvrir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 1px 12px;
}

.entete-decouvrir h2 {
    margin: 0px;
    font-size: 17px;
}

#compteurDecouvrir {
    font-size: 12px;
    opacity: 0.55;
}

#listeDecouvrir,
#listeLudotheque {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compteur-categorie-decouvrir {
    margin-left: 4px;
    opacity: 0.55;
    font-size: 11px;
}

.visuel-categorie {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: rgb(24, 33, 43);
}

.image-categorie {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ecran-decouvrir,
.ecran-ludotheque,
.ecran-reglages {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 28px 20px calc(110px + env(safe-area-inset-bottom, 0px));
}

.carte-decouvrir,
.carte-ludotheque {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
}

.carte-decouvrir:hover,
.carte-ludotheque:hover {
    background: var(--surface-hover);
}

.carte-decouvrir .visuel-categorie,
.carte-ludotheque .visuel-categorie {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.contenu-jeu {
    min-width: 0px;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nom-jeu-decouvrir,
.carte-ludotheque .carte-titre {
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.infos-decouvrir,
.details-ludotheque {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 1;
    line-height: 1.5;
}

.coeur-decouvrir {
    flex: 0 0 auto;
    padding: 0px;
    border: 0px;
    background: transparent;
    line-height: 1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    font-size: 27px;
    color: var(--text-secondary);
}

.coeur-decouvrir.actif,
.action-jeu {
    color: var(--accent-ink);
}

.action-jeu {
    width: 24px;
    text-align: center;
}

#categoriesLudotheque,
#categoriesDecouvrir {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 16px 0px;
    padding: 3px 0px 8px;
}

.categorie-decouvrir {
    flex: 0 0 auto;
    border: 0px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    cursor: pointer;
    min-height: 36px;
    background: var(--surface-2);
    color: var(--text-secondary);
}

.categorie-decouvrir.active {
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--accent-border);
}

.filtre-categorie {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    border: 0px;
    border-radius: 999px;
    padding: 7px 11px;
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 12px;
}

.filtre-categorie small {
    opacity: 0.7;
}

.filtre-categorie.active {
    background: var(--accent-soft);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--accent-border);
    font-weight: 700;
}

.recherche-decouvrir {
    position: absolute;
    z-index: 5;

    top: 0;
    right: 0;
    left: auto;

    display: flex;
    align-items: center;
    gap: 6px;

    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 22px;

    background: transparent;

    opacity: 0;
    pointer-events: none;

    transition:
        width 0.25s ease,
        opacity 0.15s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.recherche-decouvrir.ouverte {
    width: min(250px, calc(100vw - 114px));
    padding: 0 6px 0 14px;

    border-color: var(--accent-border);
    background: var(--surface);

    opacity: 1;
    pointer-events: auto;
}

.recherche-decouvrir>span {
    display: none;
}

.recherche-decouvrir input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    box-shadow: none;

    color: var(--text);
    font-size: 14px;
}

.recherche-decouvrir input::-webkit-search-cancel-button {
    display: none;
}

.fermer-recherche-decouvrir {
    flex: 0 0 38px;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--text-secondary);

    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}

.fermer-recherche-decouvrir:active {
    background: var(--surface-hover);
}

#ecranLudotheque .recherche-decouvrir input {
    background: transparent;
    border: 0px;
    color: var(--text);
    padding: 0px;
}

.bouton-secondaire {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%;
    margin-top: 12px;
    border-width: 1px;
    border-style: solid;
    border-image: none;
    border-radius: 18px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.mise-en-place {
    background: var(--surface);
    border-color: var(--border);
}

.etape {
    color: var(--text);
}

.logo span {
    color: var(--accent-ink);
}

#boutonVideo,
.numero-etape {
    background: var(--accent);
    color: rgb(20, 32, 42);
    box-shadow: none;
}

.form-ajout-jeu input,
.form-ajout-jeu select,
.form-ajout-jeu textarea,
.carte input {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.progression-capture,
#compteurLudotheque {
    color: var(--text-secondary);
}

.texte-capture-jeu {
    margin: 4px 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

/* Découvrir — lignes compactes, catégories et recherche sans compteurs. */
#compteurDecouvrir {
    display: none;
}

:is(#ecranDecouvrir, #ecranLudotheque) .carte-decouvrir {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 14px;
    padding: 12px;
}

:is(#ecranDecouvrir, #ecranLudotheque) .carte-decouvrir>.visuel-categorie {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    min-width: 0;
}

:is(#ecranDecouvrir, #ecranLudotheque) .ligne-nom-decouvrir {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 8px;
    margin: 0;
}

:is(#ecranDecouvrir, #ecranLudotheque) .nom-jeu-decouvrir {
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

:is(#ecranDecouvrir, #ecranLudotheque) .badge-categorie-liste {
    display: inline-block;
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
}

:is(#ecranDecouvrir, #ecranLudotheque) .infos-decouvrir {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--text-secondary);
    opacity: 1;
    font-size: 14px;
    line-height: 1.4;
}

:is(#ecranDecouvrir, #ecranLudotheque) .details-ligne-jeu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
    max-width: 100%;
}

:is(#ecranDecouvrir, #ecranLudotheque) .details-ligne-jeu>.infos-decouvrir {
    flex: 0 0 auto;
}

:is(#ecranDecouvrir, #ecranLudotheque) .infos-decouvrir>span {
    white-space: nowrap;
}

:is(#ecranDecouvrir, #ecranLudotheque) .infos-decouvrir>span {
    display: flex;
    align-items: center;
    gap: 5px;
}

:is(#ecranDecouvrir, #ecranLudotheque) svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:is(#ecranDecouvrir, #ecranLudotheque) .coeur-decouvrir {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-ink);
}

:is(#ecranDecouvrir, #ecranLudotheque) .coeur-decouvrir svg {
    width: 24px;
    height: 24px;
}

:is(#ecranDecouvrir, #ecranLudotheque) .coeur-decouvrir.actif svg {
    fill: currentColor;
}

:is(#ecranDecouvrir, #ecranLudotheque) .coeur-decouvrir:disabled {
    opacity: .5;
    cursor: wait;
}

#ecranDecouvrir .categorie-decouvrir {
    min-height: 31px;
    padding: 0 12px;

    border: 1px solid var(--categorie-fond, var(--accent-border));
    background: transparent;
    color: var(--categorie-fond, var(--text-secondary));

    font-size: 15px;
    font-weight: 600;

    opacity: 1;
    box-shadow: none;
}

#ecranDecouvrir .categorie-decouvrir.active {
    background: var(--categorie-fond, var(--accent));
    border-color: var(--categorie-fond, var(--accent));
    color: var(--categorie-texte, #ffffff);
}

#ecranDecouvrir .categorie-decouvrir.filtre-tous {
    color: var(--accent);
    border-color: var(--accent);
}

#ecranDecouvrir .categorie-decouvrir.filtre-tous.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

@media (max-width: 380px) {

    #ecranDecouvrir,
    #ecranLudotheque,
    #ecranReglages {
        padding-left: 12px;
        padding-right: 12px;
    }

    :is(#ecranDecouvrir, #ecranLudotheque) .carte-decouvrir {
        gap: 8px;
        padding: 10px;
    }
}

/* LUDOTHÈQUE */

.ludotheque-header {
    position: relative;

    width: 100%;
    max-width: 560px;

    margin-bottom: 18px;
    padding-right: 52px;

    box-sizing: border-box;
}

.ludotheque-header h1 {
    margin: 0;
    font-size: 28px;
}

.ludotheque-header #compteurLudotheque {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.6;
}


/* RECHERCHE */

.bouton-recherche-ludotheque {
    position: absolute;
    top: 0;
    right: 0;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--surface);
    color: var(--text);
}

.bouton-recherche-ludotheque svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bouton-recherche-ludotheque.masque {
    display: none;
}

.recherche-ludotheque {
    position: absolute;
    z-index: 5;

    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    gap: 6px;

    width: 44px;
    height: 44px;
    padding: 0;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 22px;

    background: transparent;

    opacity: 0;
    pointer-events: none;

    transition:
        width 0.25s ease,
        opacity 0.15s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.recherche-ludotheque.ouverte {
    width: min(250px, calc(100vw - 114px));
    padding: 0 6px 0 14px;

    border-color: var(--accent-border);
    background: var(--surface);

    opacity: 1;
    pointer-events: auto;
}

.recherche-ludotheque input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    box-shadow: none;

    color: var(--text);
    font-size: 14px;
}

.recherche-ludotheque input::-webkit-search-cancel-button {
    display: none;
}

.fermer-recherche-ludotheque {
    flex: 0 0 38px;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--text-secondary);

    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}


/* ON JOUE À QUOI ? */

.on-joue-a-quoi {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 120px;

    margin: 0 0 22px;
    padding: 20px;

    overflow: hidden;

    border: 1px solid var(--accent-border);
    border-radius: 22px;

    background:
        radial-gradient(circle at 90% 20%,
            var(--accent-soft),
            transparent 45%),
        var(--surface);

    color: var(--text);
    text-align: left;

    box-shadow: var(--shadow-card);
}

.on-joue-contenu {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 75%;
}

.on-joue-contenu strong {
    margin-bottom: 6px;

    color: var(--accent-ink);
    font-size: 21px;
    font-weight: 800;
}

.on-joue-contenu>span {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

.on-joue-action {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 14px;

    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 750;
}

.on-joue-action span {
    font-size: 22px;
    line-height: 1;
}

.on-joue-des {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 210px;
    width: 210px;
    height: 130px;

    color: var(--accent);
}

.illustration-des {
    display: block;

    width: 210px;
    height: 130px;

    overflow: visible;

    transform: scale(1.35);
    transform-origin: center;
}


/* DÉS */

.illustration-des .de rect {
    fill: var(--surface-2);
    stroke: currentColor;
    stroke-width: 2;
}

.illustration-des .de circle {
    fill: currentColor;
}

.illustration-des .de-principal {
    filter: drop-shadow(0 0 8px var(--accent-soft));
}

.illustration-des .de-arriere {
    opacity: 0.82;
}


/* PETITS TRAITS */

.illustration-des .des-etincelles path,
.illustration-des .des-mouvement {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
}

.illustration-des .des-etincelles {
    opacity: 0.9;
}

.illustration-des .des-mouvement {
    opacity: 0.45;
}

/* ÉCRAN DE CHOIX — ON JOUE À QUOI ? */

.ecran-on-joue {
    display: none;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 20px calc(110px + env(safe-area-inset-bottom, 0px));
}


/* EN-TÊTE */

.on-joue-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}

.retour-on-joue {
    display: grid;
    place-items: center;
    flex: 0 0 44px;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid var(--border-strong);
    border-radius: 50%;

    background: var(--surface);
    color: var(--text);
}

.retour-on-joue svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.on-joue-header h1 {
    margin: 1px 0 4px;
    font-size: 26px;
    line-height: 1.2;
}

.on-joue-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
}

/* ======================================================
   CRITÈRES — ON JOUE À QUOI ?
   ====================================================== */

.on-joue-criteres {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.critere-on-joue {
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);
}

.critere-titre {
    margin-bottom: 13px;

    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}


/* ------------------------------------------------------
   PASTILLES
   ------------------------------------------------------ */

.choix-on-joue {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.choix-pill {
    height: 31px;
    min-height: 31px;
    padding: 0 12px;

    border: 1px solid var(--border-strong);
    border-radius: 999px;

    background: var(--surface-2);
    color: var(--text-secondary);

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.12s ease;
}

.choix-pill:active {
    transform: scale(0.96);
}


/* SÉLECTION */

.choix-pill.actif {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-contrast);
}


/* ------------------------------------------------------
   CATÉGORIE
   ------------------------------------------------------ */

.choix-categorie-on-joue {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.choix-categorie-on-joue .choix-pill {
    flex: 0 0 auto;
}

.choisir-categorie-on-joue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    flex: 1 1 auto;
    min-width: 0;
    height: 31px;
    min-height: 31px;
    padding-top: 0;
    padding-bottom: 0;


    border: 1px solid var(--border-strong);
    border-radius: 999px;

    background: var(--surface-2);
    color: var(--text);

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;
    cursor: pointer;
}

.choisir-categorie-on-joue>span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.choisir-categorie-on-joue>span:last-child {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;
    width: 24px;
    height: 24px;

    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;

    transform: translateY(-1px);
}

/* ======================================================
   PANNEAU CATÉGORIES
   ====================================================== */

.overlay-categories-on-joue {
    position: fixed;
    inset: 0;
    z-index: 2000;
}


/* FOND ASSOMBRI */

.fond-categories-on-joue {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.62);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* PANNEAU */

.panneau-categories-on-joue {
    position: absolute;

    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: min(600px, calc(100% - 24px));
    max-height: min(70vh, 600px);

    padding:
        20px 20px calc(24px + env(safe-area-inset-bottom, 0px));

    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;

    background: var(--surface);

    box-shadow:
        0 -12px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {

    .panneau-categories-on-joue {
        width: 100%;
        max-height: 75vh;

        border-right: 0;
        border-left: 0;

        border-radius: 22px 22px 0 0;
    }
}

/* EN-TÊTE */

.entete-categories-on-joue {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
}

.entete-categories-on-joue strong {
    display: block;

    color: var(--text);
    font-size: 18px;
}

.entete-categories-on-joue span {
    display: block;
    margin-top: 3px;

    color: var(--text-secondary);
    font-size: 13px;
}

#fermerCategoriesOnJoue {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface-2);
    color: var(--text);
}

#fermerCategoriesOnJoue svg {
    display: block;
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}


/* CATÉGORIES */

.liste-categories-on-joue {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.categorie-option-on-joue {
    min-height: 42px;
    padding: 9px 14px;

    border: 1px solid;
    border-radius: 999px;

    background: transparent;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.categorie-option-on-joue.actif {
    box-shadow: inset 0 0 0 1px currentColor;
}

@media (max-width: 380px) {

    .ecran-on-joue {
        padding-left: 12px;
        padding-right: 12px;
    }

    .critere-on-joue {
        padding: 14px;
    }

    .choix-pill {
        padding-left: 12px;
        padding-right: 12px;
    }

    .choix-categorie-on-joue {
        flex-wrap: wrap;
    }

    .choisir-categorie-on-joue {
        flex-basis: 100%;
    }
}

/* ------------------------------------------------------
   BOUTON FINAL
   ------------------------------------------------------ */

.choisir-jeu-on-joue {
    margin-top: 22px;
}

/* =====================================================
   ON JOUE À QUOI ? — RÉSULTAT
===================================================== */

.resultat-on-joue {
    margin-top: 18px;

    opacity: 0;
    transform: translateY(12px) scale(.98);

    transition:
        opacity .28s ease,
        transform .28s ease;
}

.resultat-on-joue.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.resultat-on-joue-carte {
    position: relative;
    overflow: hidden;

    padding: 24px 18px 18px;

    border: 1px solid var(--accent-border);
    border-radius: 24px;

    background:
        radial-gradient(circle at 50% 32%,
            var(--accent-soft),
            transparent 48%),
        var(--surface);

    text-align: center;
}


/* LudiqIA a choisi */

.resultat-on-joue-intro {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-bottom: 12px;

    color: var(--accent-ink, var(--accent));

    font-size: 17px;
    font-weight: 700;
}

.resultat-baguette {
    color: var(--accent);
    font-size: 24px;
}


/* Illustration centrale */

.resultat-on-joue-visuel {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 150px;
    margin: 4px 0 8px;
}

.resultat-on-joue-image-categorie {
    display: block;

    width: 145px;
    height: 145px;

    object-fit: contain;

    -webkit-mask-image:
        radial-gradient(ellipse at center,
            #000 52%,
            transparent 78%);

    mask-image:
        radial-gradient(ellipse at center,
            #000 52%,
            transparent 78%);
}


.on-joue-illustration {
    position: relative;
    flex: 0 0 145px;
    width: 145px;
    height: 120px;
}

.on-joue-cartes {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 100px;
    height: 100px;

    transform: translate(-50%, -50%);
}

.on-joue-carte {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 61px;
    height: 86px;

    border: 1px solid var(--accent-border);
    border-radius: 10px;

    background:
        linear-gradient(145deg,
            var(--accent-soft),
            var(--surface-2));

    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.on-joue-carte-gauche {
    transform:
        translate(-72%, -48%) rotate(-14deg);
}

.on-joue-carte-droite {
    transform:
        translate(-28%, -48%) rotate(14deg);
}

.on-joue-carte-centre {
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border-color: var(--accent);

    background:
        linear-gradient(145deg,
            var(--accent),
            var(--accent-soft));
}

.on-joue-carte-centre span {
    color: var(--accent-contrast);
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.on-joue-etincelle {
    position: absolute;

    color: var(--accent);
    pointer-events: none;
}

.on-joue-etincelle-1 {
    left: 7px;
    top: 26px;

    font-size: 15px;
}

.on-joue-etincelle-2 {
    right: 7px;
    top: 13px;

    font-size: 11px;
}


/* Nom du jeu */

#resultatOnJoueNom {
    margin: 4px 0 16px;

    color: var(--text);

    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}


/* Informations */

.resultat-on-joue-infos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}


.resultat-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 6px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface-2);

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 600;
}


.resultat-categorie {
    font-weight: 700;
}


/* Nombre de jeux compatibles */

.resultat-on-joue-nombre {
    margin: 17px 0 18px;

    color: var(--text-secondary);

    font-size: 13px;
}

/* BOUTON DE CHOIX */

.choisir-jeu-on-joue {
    margin-top: 22px;
}

/* COLLECTION VIDE */

.message-ludotheque-vide {
    margin: 30px 0;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}



/*reglage */

.gestion-jeux {
    display: none;
}

.gestion-jeux-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.gestion-jeux-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.gestion-jeux-header p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.retour-gestion-jeux {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
}

.retour-gestion-jeux svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.selection-gestion-jeu {
    display: none;
}

.recherche-gestion-jeu {
    margin-bottom: 18px;
}

.recherche-gestion-jeu input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.recherche-gestion-jeu input::placeholder {
    color: var(--text-secondary);
}

.recherche-gestion-jeu input:focus {
    border-color: var(--accent-border);
}

.liste-gestion-jeu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.jeu-gestion-ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: 100%;
    min-width: 0;
    min-height: 76px;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
    color: var(--text);
    text-align: left;
}

.jeu-gestion-ligne>div:first-child {
    min-width: 0;
}

.jeu-gestion-ligne strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 15px;
    font-weight: 600;
}

.jeu-gestion-ligne .jeu-gestion-categorie {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    margin-top: 6px;
    padding: 3px 8px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.jeu-gestion-details {
    display: block;
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.jeu-gestion-auteur {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.jeu-gestion-ligne-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    min-width: 0;
}

.jeu-gestion-ligne-details .jeu-gestion-categorie,
.jeu-gestion-ligne-details .jeu-gestion-details {
    margin-top: 0;
}

.jeu-gestion-ligne-details .jeu-gestion-details {
    white-space: nowrap;
}

.jeu-gestion-categorie[data-categorie="Adresse"] {
    background: #32b3cf;
    color: #e0f7fb;
}

.jeu-gestion-categorie[data-categorie="Ambiance"] {
    background: #d95698;
    color: #fde7f2;
}

.jeu-gestion-categorie[data-categorie="Cartes"] {
    background: #d2aa48;
    color: #fff3cf;
}

.jeu-gestion-categorie[data-categorie="Coopératif"] {
    background: #48b979;
    color: #e0f8e9;
}

.jeu-gestion-categorie[data-categorie="Déduction"] {
    background: #8065d8;
    color: #f0eaff;
}

.jeu-gestion-categorie[data-categorie="Enquête / Escape"] {
    background: #d76054;
    color: #ffe6e2;
}

.jeu-gestion-categorie[data-categorie="Famille"] {
    background: #58ae70;
    color: #e7f7e9;
}

.jeu-gestion-categorie[data-categorie="Enfants"] {
    background: #d8789e;
    color: #fde7ef;
}

.jeu-gestion-categorie[data-categorie="Quiz"] {
    background: #427fd2;
    color: #e5efff;
}

.jeu-gestion-categorie[data-categorie="Réflexion / Abstrait"] {
    background: #7967d0;
    color: #eeeaff;
}

.jeu-gestion-categorie[data-categorie="Stratégie"] {
    background: #397dcc;
    color: #e4efff;
}

.jeu-gestion-categorie[data-categorie="Bluff / Rôles cachés"] {
    background: #d16f45;
    color: #ffeadf;
}

.jeu-gestion-categorie[data-categorie="Autre"] {
    background: #7d8998;
    color: #edf0f3;
}

.jeu-gestion-chevron {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.jeu-gestion-chevron svg {
    display: block;
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Mobile */

@media (max-width: 520px) {

    .liste-gestion-jeu {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   PROPOSER UN JEU
   ====================================================== */

.formulaire-proposition-jeu {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.carte-formulaire-proposition {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.entete-carte-proposition {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.icone-carte-proposition {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
}

.icone-carte-proposition svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.entete-carte-proposition h3 {
    margin: 0;
    color: var(--accent);
    font-size: 18px;
    line-height: 1.2;
}

.entete-carte-proposition p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.select-proposition {
    position: relative;
}

.select-proposition select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.chevron-select {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.champ-proposition {
    min-width: 0;
}

.champ-proposition+.champ-proposition {
    margin-top: 15px;
}

.champ-proposition label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.champ-proposition label span {
    color: var(--accent);
}

.champ-proposition input,
.champ-proposition select,
.champ-proposition textarea {
    width: 100%;
    font: inherit;
}

/* Supprime les flèches des champs numériques */
.champ-proposition input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.champ-proposition input[type="number"]::-webkit-inner-spin-button,
.champ-proposition input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.champ-proposition select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    padding-right: 15px;
    cursor: pointer;
}

.champ-proposition textarea {
    resize: vertical;
    line-height: 1.45;
}

.compteur-contact {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: right;
}

.ligne-partie-proposition {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.ligne-partie-proposition .champ-proposition+.champ-proposition {
    margin-top: 0;
}

.actions-formulaire-proposition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 2px;
}

.actions-formulaire-proposition .bouton-principal,
.actions-formulaire-proposition .bouton-secondaire {
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border-radius: 12px;
    box-shadow: none;
    font-weight: 700;
}

/* ANNULER */
.actions-formulaire-proposition .bouton-secondaire {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

/* CONTINUER */
.actions-formulaire-proposition .bouton-principal {
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent);
}

.actions-formulaire-proposition .bouton-principal:hover {
    background: var(--accent-soft);
}

.actions-contact {
    margin-top: 14px;
}

#boutonEnvoyerContact {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;

    border: 1px solid var(--accent-border);
    border-radius: 14px;

    background: var(--accent-soft);
    color: var(--accent-ink, var(--accent));

    box-shadow: none;

    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

#boutonEnvoyerContact:active {
    transform: scale(0.98);
}

/* PETITS ÉCRANS */

@media (max-width: 380px) {

    .carte-formulaire-proposition {
        padding: 15px;
        border-radius: 16px;
    }

    .entete-carte-proposition {
        margin-bottom: 17px;
    }

    .icone-carte-proposition {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .entete-carte-proposition h3 {
        font-size: 17px;
    }

    .ligne-partie-proposition {
        gap: 7px;
    }

    .ligne-partie-proposition input {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.utilisateur-gestion-ligne {
    min-height: 96px;
}

.utilisateur-gestion-infos {
    min-width: 0;
}

.utilisateur-gestion-email {
    display: block;

    margin-top: 3px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
}

.utilisateur-gestion-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 8px;
}

.badge-utilisateur-role,
.badge-utilisateur-statut {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    padding: 4px 10px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.badge-utilisateur-role.admin {
    background: var(--accent-soft);
    color: var(--accent);
}

.badge-utilisateur-role.utilisateur {
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-secondary);
}

.badge-utilisateur-statut.actif {
    background: rgba(72, 185, 121, 0.16);
    color: #48b979;
}

.badge-utilisateur-statut.inactif {
    background: rgba(215, 96, 84, 0.16);
    color: #d76054;
}

.valeur-utilisateur {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface-soft);
    color: var(--text);

    font-size: 14px;
}

.valeur-utilisateur-secondaire {
    color: var(--text-secondary);
}

.option-compte-actif {
    margin-top: 18px;
}

/* =====================================================
   AUTHENTIFICATION
===================================================== */

.ecran-authentification {
    display: none;

    width: min(100%, 480px);
    min-height: 100vh;

    margin: 0 auto;
    padding:
        calc(38px + env(safe-area-inset-top, 0px)) 20px 40px;
}

.auth-logo {
    text-align: center;
    color: var(--text);
    font-family: "Trebuchet MS", "Arial Rounded MT Bold", sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.auth-logo span {
    color: var(--accent-ink);
}

.auth-slogan {
    margin: 5px 0 38px;

    text-align: center;

    color: var(--text-secondary);
    font-size: 14px;
}

.auth-contenu {
    display: none;
}

.auth-entete {
    margin-bottom: 20px;
}

.auth-entete h1 {
    margin: 0;

    color: var(--text);
    font-size: 24px;
    font-weight: 750;
}

.auth-entete p {
    margin: 5px 0 0;

    color: var(--text-secondary);
    font-size: 14px;
}

.auth-carte {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--surface);
}

.auth-carte .champ-proposition+.champ-proposition {
    margin-top: 16px;
}

.auth-bouton-principal {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;

    border: 1px solid var(--accent-border);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink, var(--accent));

    box-shadow: none;

    font-size: 15px;
    font-weight: 700;
}

.auth-bouton-principal:active {
    transform: scale(0.98);
}

.auth-lien {
    padding: 0;

    border: 0;
    background: none;

    color: var(--accent);
    font: inherit;
    font-weight: 650;

    cursor: pointer;
}

.auth-mot-de-passe-oublie {
    display: block;

    margin: 12px 0 0 auto;

    font-size: 13px;
}

.auth-changement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 22px;

    color: var(--text-secondary);
    font-size: 14px;
}

.auth-confidentialite {
    margin: 18px 0 0;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.auth-confidentialite .auth-lien {
    display: inline;

    font-size: inherit;
}

.categories-preferences {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.preference-categorie {
    padding: 8px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface-soft);
    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.preference-categorie:active {
    transform: scale(0.97);
}

.preference-categorie.selectionnee {
    border-color: transparent;
}

.preference-categorie.selectionnee[data-categorie="Adresse"] {
    background: #32b3cf;
    color: #e0f7fb;
}

.preference-categorie.selectionnee[data-categorie="Ambiance"] {
    background: #d95698;
    color: #fde7f2;
}

.preference-categorie.selectionnee[data-categorie="Cartes"] {
    background: #d2aa48;
    color: #fff3cf;
}

.preference-categorie.selectionnee[data-categorie="Coopératif"],
.preference-categorie.selectionnee[data-categorie="Famille"] {
    background: #48b979;
    color: #e0f8e9;
}

.preference-categorie.selectionnee[data-categorie="Déduction"] {
    background: #8065d8;
    color: #f0eaff;
}

.preference-categorie.selectionnee[data-categorie="Enquête / Escape"] {
    background: #d76054;
    color: #ffe6e2;
}

.preference-categorie.selectionnee[data-categorie="Enfants"] {
    background: #d8789e;
    color: #fde7ef;
}

.preference-categorie.selectionnee[data-categorie="Quiz"] {
    background: #427fd2;
    color: #e5efff;
}

.preference-categorie.selectionnee[data-categorie="Réflexion / Abstrait"] {
    background: #7967d0;
    color: #eeeaff;
}

.preference-categorie.selectionnee[data-categorie="Stratégie"] {
    background: #397dcc;
    color: #e4efff;
}

.preference-categorie.selectionnee[data-categorie="Bluff / Rôles cachés"] {
    background: #d16f45;
    color: #ffeadf;
}

.auth-passer {
    display: block;
    margin: 16px auto 0;

    color: var(--text-secondary);
    font-size: 14px;
}

.politique-confidentialite {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.politique-confidentialite h2 {
    margin: 24px 0 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 750;
}

.politique-confidentialite h2:first-child {
    margin-top: 0;
}

.politique-confidentialite p {
    margin: 0 0 12px;
}

.politique-confidentialite ul {
    margin: 8px 0 16px;
    padding-left: 20px;
}

.politique-confidentialite li {
    margin: 4px 0;
}

/* ==================================================
   PAGES D'INFORMATIONS LUDIQIA
================================================== */

.texte-page-informations {
    margin: 0;
    color: var(--texte-secondaire);
    font-size: 14px;
    line-height: 1.6;
}

.texte-page-informations+.texte-page-informations {
    margin-top: 16px;
}

.lien-contact-ludiqia {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    text-decoration: none;
}

.ligne-info-ludiqia {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
    font-size: 14px;
}

.ligne-info-ludiqia+.ligne-info-ludiqia {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ligne-info-ludiqia span {
    color: var(--texte-secondaire);
    font-size: 13px;
}

.ligne-info-ludiqia strong {
    color: var(--texte-principal);
    font-weight: 600;
}

.slogan-a-propos {
    margin-top: 20px;
    color: var(--accent-ink, var(--accent));
    font-weight: 700;
    text-align: center;
}

/* ==================================================
   PROFIL UTILISATEUR - RÉGLAGES
================================================== */

.carte-profil-reglages {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    min-height: 82px;

    display: flex;
    align-items: center;
    gap: 14px;

    margin: 18px 0 26px;
    padding: 15px 16px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;

    background: #101e2a;
    color: inherit;

    font: inherit;
    text-align: left;
    cursor: pointer;
}

.avatar-profil-reglages {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--accent-border);
    border-radius: 50%;

    background: var(--accent-soft);
    color: var(--accent-ink, var(--accent));

    font-size: 18px;
    font-weight: 800;
}

.identite-profil-reglages {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.identite-profil-reglages strong {
    display: block;

    overflow: hidden;

    color: #fff;

    font-size: 17px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.identite-profil-reglages span {
    display: block;

    overflow: hidden;

    color: var(--texte-secondaire);

    font-size: 13px;
    font-weight: 400;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron-profil-reglages {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-left: auto;

    color: var(--texte-secondaire);
}