:root {
    --primary: #ff2a5f;
    --bg: #11070d;
    --panel-bg: #1e0d16;
    --text: #fce4ec;
    --wait: #555;
    --fake: #ffaa00;
    --go: #00e676;
    --error: #ff1744;
    --gold: #ffd700;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

body.curseur-coeur, body.curseur-coeur * {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text y='24' font-size='24'>💖</text></svg>") 16 16, auto !important;
}

.nav-haute {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.bouton-nav {
    background: rgba(255, 42, 95, 0.2);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.bouton-nav:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.conteneur {
    display: flex;
    width: 100%;
    height: 100%;
}

.panneau-gauche {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.panneau-droit {
    width: 0;
    background-color: var(--panel-bg);
    border-left: 2px solid rgba(255, 42, 95, 0.2);
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.panneau-droit.active {
    width: 450px;
    opacity: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--primary);
}

p.sous-titre {
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 650px;
}

#bouton-stimulus {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    transition: transform 0.1s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    user-select: none;
    position: relative;
}

#bouton-stimulus:active {
    transform: scale(0.95);
}

.etat-depart {
    background: var(--primary);
}

.etat-attente {
    background: var(--wait);
    cursor: not-allowed !important;
}

.etat-feinte {
    background: var(--fake);
}

.etat-go {
    background: var(--go);
    box-shadow: 0 0 40px var(--go);
}

.etat-erreur {
    background: var(--error) !important;
    box-shadow: 0 0 40px var(--error);
}

@keyframes secousse {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-15px);
    }
    50% {
        transform: translateX(15px);
    }
    75% {
        transform: translateX(-15px);
    }
    100% {
        transform: translateX(0);
    }
}

.secousse {
    animation: secousse 0.4s;
}

.statistiques {
    margin-top: 30px;
    font-size: 1.2rem;
    height: 30px;
}

.conteneur-progression {
    width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

#barre-progression {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s;
}

.carte-profil {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 80%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.photo-profil {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 20px;
    background-color: #333;
}

.score-match {
    color: var(--go);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.desc-profil {
    font-style: italic;
    opacity: 0.9;
    margin: 20px 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.etiquettes span {
    display: inline-block;
    background: rgba(255, 42, 95, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 2px;
}

.superposition-fenetre {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.contenu-fenetre {
    background: var(--panel-bg);
    border: 1px solid var(--primary);
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

.badge-records {
    background: rgba(255, 42, 95, 0.15);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text);
}

.badge-records span {
    color: var(--primary);
}

.bouton-fermer {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
}

.bouton-fermer:hover {
    opacity: 1;
    color: var(--primary);
}

.grille-catalogue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.element-catalogue {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.element-catalogue img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.element-catalogue h4 {
    margin: 5px 0;
    font-size: 0.8rem;
}

.element-catalogue p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.badge-rateau {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
}

.liste-succes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.element-succes {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border-left: 5px solid #555;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.element-succes.debloque {
    opacity: 1;
    filter: grayscale(0%);
    border-left-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.icone-succes {
    font-size: 2.5rem;
    margin-right: 20px;
}

.info-succes h4 {
    margin: 0 0 5px 0;
    color: var(--gold);
}

.info-succes p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.msg-vide {
    text-align: center;
    opacity: 0.5;
    font-style: italic;
    margin-top: 40px;
}

.grille-boutique {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.element-boutique {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #444;
    transition: 0.3s;
}

.element-boutique.achete {
    border-color: var(--primary);
}

.element-boutique.equipe {
    background: rgba(255, 42, 95, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.3);
}

.icone-boutique {
    font-size: 3rem;
    margin-bottom: 15px;
}

.element-boutique h4 {
    margin: 0 0 10px 0;
    color: white;
}

.bouton-boutique {
    background: var(--wait);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: transform 0.2s, background 0.2s;
}

.bouton-boutique.acheter {
    background: var(--gold);
    color: black;
}

.bouton-boutique.equiper {
    background: var(--primary);
}

.bouton-boutique.desequiper {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.bouton-boutique:hover {
    transform: scale(1.05);
}

.particule-trainee {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 1.2rem;
    animation: fadeout 0.5s ease-out forwards;
}

@keyframes fadeout {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.4) translateY(20px);
    }
}

.particule-bouton {
    position: fixed;
    pointer-events: none;
    z-index: 50;
    font-size: 1.5rem;
    animation: flyout 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes flyout {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .panneau-gauche {
        padding: 100px 20px 20px 20px;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .nav-haute {
        flex-wrap: wrap;
        gap: 8px;
        top: 15px;
        left: 15px;
        max-width: 95vw;
    }

    .bouton-nav {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .panneau-droit {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 20;
    }

    .panneau-droit.active {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    p.sous-titre {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    #bouton-stimulus {
        width: 160px;
        height: 160px;
        font-size: 1.2rem;
    }

    .conteneur-progression {
        width: 100%;
        max-width: 300px;
    }

    .statistiques {
        font-size: 1rem;
        margin-top: 20px;
    }

    .contenu-fenetre {
        width: calc(100% - 40px);
        margin: 0 20px;
        box-sizing: border-box;
        padding: 20px;
        max-height: 90vh;
    }

    .badge-records {
        font-size: 0.75rem;
        padding: 5px 10px;
        gap: 8px;
    }

    .grille-boutique, 
    .grille-catalogue {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .element-boutique {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .element-boutique p {
        height: auto !important;
        min-height: 50px;
    }

    .element-boutique h4 {
        font-size: 0.9rem;
    }

    .icone-boutique {
        font-size: 2.5rem;
    }

    .icone-succes {
        font-size: 2rem;
        margin-right: 15px;
    }

    .info-succes h4 {
        font-size: 0.9rem;
    }

    .info-succes p {
        font-size: 0.8rem;
    }

    .carte-profil {
        width: calc(100% - 40px);
        margin: 0 20px;
        box-sizing: border-box;
        padding: 20px;
    }

    .photo-profil {
        width: 120px;
        height: 120px;
    }
}