* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0b0f19;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

#logo {
    position: absolute;
    top: 30px;
    left: 40px;
    max-width: 80px;
    max-height: 80px;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

#phraseChoix {
    position: absolute;
    top: 35px;
    width: 100%;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Conteneur principal ajusté pour éviter le rognage des bords */
#Jeux {
    display: flex;
    width: 120vw;
    height: 100vh;
    margin-left: -10vw;
}

/* Structure de base de chaque bande diagonale */
.titleAndGame {
    position: relative;
    transform: skewX(-14deg);
    overflow: hidden;
    border-right: 3px solid rgba(255, 255, 255, 0.15);
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
    filter: brightness(0.6) saturate(0.8);
}

/* TAILLES INITIALES : Les jeux des bords sont plus larges au repos */
#Jeu1 {
    flex: 1.4;
    background: linear-gradient(135deg, #1e0a38 0%, #4c1d95 100%);
}

#Jeu2 {
    flex: 1;
    background: linear-gradient(135deg, #3f0713 0%, #9f1239 100%);
}

#Jeu3 {
    flex: 1.4;
    background: linear-gradient(135deg, #0f172a 0%, rgba(34, 68, 119, 1) 100%);
}

/* Extension massive du jeu survolé */
.titleAndGame:hover {
    flex: 8 !important; /* Priorité sur le flex initial */
    filter: brightness(1) saturate(1.1);
    border-right-color: rgba(255, 255, 255, 0.6);
    z-index: 5;
}

/* Contenu redressé à l'intérieur de la bande */
.band-content {
    position: absolute;
    inset: 0;
    transform: skewX(14deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* PADDING SPÉCIFIQUE pour décaler le contenu des bords loin de la découpe */
#Jeu1 .band-content {
    padding-left: 8vw;
    padding-right: 2vw;
}

#Jeu2 .band-content {
    padding-left: 2vw;
    padding-right: 2vw;
}

#Jeu3 .band-content {
    padding-left: 2vw;
    padding-right: 8vw;
}

/* Titres */
.title {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease, color 0.4s ease;
}

.titleAndGame:hover .title {
    transform: scale(1.08);
}

/* Images : taille d'origine 400x240 préservée */
.jeu-img {
    width: 400px;
    height: 240px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

#imageJeu1 { background-image: url("./juke-box.png"); }
#imageJeu2 { background-image: url("./fast-tap.png"); }
#imageJeu3 { background-image: url("./combis/combis/COMBI.png"); }

.titleAndGame:hover .jeu-img {
    transform: scale(1.05);
    border-color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* Descriptions & Boutons */
.descriptionJeu {
    max-width: 480px;
    font-size: 1rem;
    line-height: 1.5;
    color: #f1f5f9;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.titleAndGame:hover .descriptionJeu {
    opacity: 1;
    transform: translateY(0);
}

.btn-jouer {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 36px;
    background-color: #ffffff;
    color: #0b0f19;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, background-color 0.2s ease, box-shadow 0.2s ease;
}

.titleAndGame:hover .btn-jouer {
    opacity: 1;
    transform: translateY(0);
}

.btn-jouer:hover {
    background-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

.guy {
    z-index: 20;
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 25px;
    background-color: #38bdf8;
}