@import "https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";

/* ===== POLICES ===== */
@font-face {
    font-family: "SpriteGraffiti";
    src: url(SpriteGraffitiShadow.ttf)format("truetype")
}

/* ===== ÉLÉMENTS DE BASE ===== */
body {
    background: linear-gradient(135deg, #8b1a1a 0%, #6b1515 100%);
    font-family: 'Roboto', Arial, sans-serif;
    text-align: center;
    overflow-x: hidden;
    overflow: scroll;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
    /* Cache la barre de défilement */
}

body,
footer a {
    color: #fff
}

img {
    user-select: none !important;
    -webkit-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* ===== TYPOGRAPHIE ===== */
*,
h2 {
    font-weight: 800
}

#filtre,
*,
h2,
h3,
header {
    font-family: "Roboto", sans-serif
}

h1 {
    color: #fff;
    font-size: 140px;
    text-shadow:
        4px 4px 0px #000,
        8px 8px 0px rgba(0, 0, 0, 0.3),
        12px 12px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    max-width: 500px;
    margin: 20px auto;
    animation: graffitiAppear 1.5s ease-out;
    position: relative;
}

h2 {
    font-size: 18px
}

h2,
h3 {
    color: #000;
    margin-top: 5px
}

h3 {
    font-weight: 600;
    font-size: 23px
}

a,
h6 {
    font-size: 15px
}

a,
h6,
h6 a:hover {
    color: #000;
    font-weight: 100
}

p,
span {
    color: #a51e1e
}

header,
p {
    font-size: 16px;
    color: #000
}

#filtre,
header {
    font-weight: 800
}

header {
    margin-top: 50px
}

.texteGraffiti {
    font-family: "SpriteGraffiti"
}

.petitTexte {
    color: #fff;
    position: relative;
    top: -25px;
    font-size: 18px
}

.reponseRappeur,
button,
p {
    font-family: "Roboto", sans-serif;
    font-weight: 800
}

.reponseRappeur {
    color: #000;
    font-size: 18px;
    display: grid;
    align-items: center;
    top: 50%;
    transform: translateY(10%)
}

.texteRegle {
    font-size: 14px;
    text-align: left;
    margin: 0 !important;
}

.texteRegle a {
    font-weight: 600;
}

.texteUpdate {
    color: #008080 !important;
    text-decoration: none;
    font-size: 14px;
}

/* ===== CONTAINERS ===== */
.container,
.containerReponseHier {
    background-color: #fff;
    border: 4px solid #5a0f0f;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(90, 15, 15, 0.2);
    transition: all 0.3s ease;
}

.containerReponseHier {
    padding: 10px;
    max-width: 300px;
}

.containerFooter {
    background-color: #fff;
    border-radius: 15px;
    padding: 8px;
    width: 90%;
    border: 4px solid #5a0f0f;
    margin: 20px auto;
    max-width: 430px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.containerRejouer {
    background-color: #fff;
    border: 4px solid #5a0f0f;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.containerClassique {
    border: 4px solid #5a0f0f;
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    width: 1000px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== BOUTONS ===== */
button {
    background-color: #5a0f0f;
    color: #fff;
    padding: 10px 20px;
    border: 0;
    border-radius: 5px;
    cursor: pointer
}

button:hover {
    background-color: #400b0b
}

.button {
    max-width: 250px;
    width: 90%;
    padding: 15px 25px;
    margin: 20px auto;
    align-items: center;
    font-size: 20px;
    border: 4px solid #5a0f0f;
    background: linear-gradient(135deg, #5a0f0f 0%, #400b0b 100%);
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.button:hover {
    border-color: #400b0b;
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#btnFermer,
#btnFermerInfo {
    max-width: 250px;
    width: 90%;
    padding: 15px 25px;
    margin: 20px auto;
    display: block;
    font-size: 20px;
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    color: #fff;
    border: 4px solid #5a0f0f;
    background: linear-gradient(135deg, #5a0f0f 0%, #400b0b 100%);
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#btnFermer:hover,
#btnFermerInfo:hover {
    border-color: #400b0b;
    background: linear-gradient(135deg, #400b0b 0%, #5a0f0f 100%);
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ===== IMAGES ===== */
.emoji {
    width: 80px;
    height: 80px;
    filter: drop-shadow(5px 5px 5px #888)
}

.album {
    width: 250px;
    height: 250px;
    filter: drop-shadow(5px 5px 5px #888) blur(11px);
}

.imageIndice {
    width: 40px;
    height: 40px
}

.imageAide,
.imageFooter,
.imageUpdate {
    cursor: pointer;
    margin: 10px
}

.imageAide {
    width: 40px;
    height: 40px;
    opacity: .6;
    transition: opacity .2s ease
}

.imageFooter,
.imageUpdate {
    width: 50px;
    height: 50px;
    transition: .2s linear
}

.rappeur-image {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    border-radius: 10px;
    border: 3px solid #000
}

.rappeur-image-reponse {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start
}

.listereponse,
.rappeur-image-rejouer,
.rappeur-image-reponse {
    border-radius: 10px;
    border: 3px solid #000
}

.rappeur-image-rejouer {
    width: 200px;
    height: 200px;
    justify-content: center;
    margin: 20px auto;
    transition: .2s linear
}

.rappeur-image-classique {
    width: 100%;
    height: 100%;
    border: 3px solid #000;
    border-radius: 10px;
    object-fit: cover
}

.image-container {
    width: 90px;
    height: 90px;
    position: relative;
    text-align: center
}

.image-text,
.popup {
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 90%
}

.image-text {
    position: absolute;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    color: #000
}

.image-container:hover .image-text {
    display: block
}

/* ===== FOOTER ===== */
.rowFooter {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rowFooter img {
    height: 35px;
    width: 35px;
}

footer {
    background-color: #2d2d2d;
    padding: 10px 0;
    position: fixed;
    bottom: 0
}

.dropdown-container,
footer {
    position: relative;
    width: 100%;
    text-align: center
}

footer p {
    margin: 0;
    font-size: .8rem
}

/* ===== LIENS ===== */
a:hover,
footer a {
    text-decoration: none
}

footer a:hover,
span {
    text-decoration: underline
}

.soulignement:hover,
h6 a:hover {
    text-decoration: underline
}

/* ===== CHAMP DE SAISIE ET DROPDOWN ===== */
.guess {
    font-size: 1.2rem;
    margin-bottom: 20px
}

.input-field .row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px
}

#filtre {
    padding: 10px;
    margin: 0 auto;
    background-color: #eee;
    border: 3px solid #b7b7b7;
    border-radius: 10px
}

#filtre,
.dropdown {
    width: 80%;
    max-width: 325px
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin: 0
}

.rappeur-item {
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid #000;
    cursor: pointer
}

.rappeur-item:hover {
    background-color: #cbcbcb
}

/* ===== LISTE DES RÉPONSES ===== */
.listereponse {
    width: 80%;
    max-width: 325px;
    padding: 15px;
    margin: 10px auto;
    display: flex;
    gap: 10px;
    background-color: #df5858;
    position: relative
}

.listereponse:hover {
    transform: scale(1.02)
}

.reponse-correcte.listereponse {
    background-color: #98e080
}

.reponse-correcte:hover {
    transform: scale(1.02) !important
}

.listeNomRappeur {
    display: grid;
    align-items: center;
    top: 50%;
    transform: translateY(30%)
}

/* ===== INDICES ===== */
.indice,
.viewIndice {
    background-color: #fff;
    border-radius: 10px;
    padding: 5px;
    width: 90%
}

.indice,
.viewIndice {
    border: 4px solid #5a0f0f
}

.indice {
    margin: 30px 10px 10px;
    max-width: 180px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center
}

.indice:hover {
    background-color: #dedede
}

.viewIndice {
    margin: auto;
    max-width: 300px;
    display: none
}

.textIndiceBloque {
    font-size: 10px;
    color: #434343
}

.textIndiceDebloque {
    font-size: 14px;
    color: #000
}

.indice p,
.viewIndice p,
body {
    margin: 0;
    padding: 0
}

/* ===== MODE CLASSIQUE ===== */
.square {
    border: 3px solid #000;
    background-color: #000;
    height: 90px;
    width: 90px;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    position: relative
}

.bonneReponseClassique {
    background-color: #98e080
}

.mauvaiseReponseClassique {
    background-color: #df5858
}


.partielleReponseClassique {
    background-color: #f3db45
}

.partielleReponseClassique:hover {
    background-color: #e4cf41
}

.bonneReponseClassique:hover {
    background-color: #87c872
}

.mauvaiseReponseClassique:hover {
    background-color: #bb4949
}

.square .fleche {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1
}

.square span {
    position: relative;
    z-index: 1
}

.infoClassique {
    height: 90px;
    width: 90px;
    position: relative;
    border-bottom: 6px solid #000
}

.texteInfoClassique {
    word-break: normal !important;
    color: #000;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%)
}

/* ===== POPUP ===== */
.popup {
    position: fixed;
    padding: 20px;
    box-shadow: 0 0 10px #00000080;
    z-index: 1000;
    max-height: 80%;
    overflow: auto;
    border: 8px solid #5a0f0f;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px
}

.paragrapheRegle {
    margin-top: 20px
}

/* ===== CANVAS ===== */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== EFFETS HOVER ===== */
.rappeur-image-rejouer:hover,
h1:hover {
    transform: scale(1.03) rotate(-1deg);
    text-shadow:
        5px 5px 0px #000,
        10px 10px 0px rgba(0, 0, 0, 0.4),
        15px 15px 30px rgba(0, 0, 0, 0.6);
}

.album:hover,
.emoji:hover {
    transform: scale(1.06) !important
}

.imageFooter:hover,
.imageUpdate:hover {
    transform: scale(1.03)
}

.imageAide:hover {
    opacity: 1
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1025px) {
    .mobile-gap {
        gap: 10px;
    }
}

@media (max-width:1025px) {
    h1 {
        font-size: 90px
    }

    .container {
        width: 95%
    }

    .emoji {
        width: 55px;
        height: 55px
    }

    .indice {
        max-width: 150px;
        margin: 0
    }

    .viewIndice {
        margin: 10px auto
    }

    .containerClassique {
        width: 90% !important;
        overflow-x: auto
    }

    .containerClassique,
    .input-field .row {
        display: flex;
        flex-wrap: nowrap
    }

    .texteInfoClassique {
        font-size: 12px !important
    }

    .image-container,
    .infoClassique,
    .square {
        height: 80px !important;
        width: 80px !important
    }
}