* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b111e; /* Fond ultra sombre extérieur pour faire ressortir l'app */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Simulation d'un écran de téléphone portable aux couleurs de l'UTT */
.app-container {
    width: 100%;
    height: 100vh;
    background-color: #094068; /* Bleu UTT principal */
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    overflow: hidden;
    position: relative;
}

.screen {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 30px;
    text-align: center;
}

.screen.active {
    display: flex;
    justify-content: space-around;
}

#home-logo {
    max-width: 150px;
    height: auto;
    margin-top: 100px;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.ensemble-accueil {
    margin-bottom: 120px;
}

h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 30px;
}

.highlight {
    color: #FED216;
}

button {
    background-color: #FED216; /* Jaune UTT pour l'action principale */
    color: #094068; /* Texte en bleu foncé UTT pour un contraste parfait */
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    width: 100%;
}

button:active {
    transform: scale(0.95);
}

/* Zone du Quiz */
#progress {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-weight: 600;
}

.card-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card {
    background-color: #0a385c;
    border: 2px solid #1263a0;
    color: #ffffff;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    font-size: 1.4rem;
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
    user-select: none;
    cursor: grab;
}

.card:active {
    cursor: grabbing;
}

/* Animations de Swipe déclenchées par les boutons ou le clavier */
.swipe-left {
    transform: translateX(-200px) rotate(-15deg) !important;
    opacity: 0 !important;
}

.swipe-right {
    transform: translateX(200px) rotate(15deg) !important;
    opacity: 0 !important;
}

.controls {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 25px;
}

/* Couleurs claires et distinctes pour le choix du jeu */
.btn-pass { 
    background-color: #861c25; 
    color: white;
}
.btn-smash { 
    background-color: #166838; 
    color: white;
}

.hint {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-top: 15px;
}

/* Résultats */
#top-branch {
    font-size: 4.5rem;
    font-weight: bold;
    color: #FED216; /* Gagnant en Jaune UTT */
    margin: 5px 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#branch-profile {
    font-style: italic;
    color: #f1f5f9;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Fiche Alumni style UTT */
.alumni-card {
    background: linear-gradient(135deg, #073354 0%, #052740 100%);
    border: 1px solid #1263a0;
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    width: 100%;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.alumni-card h3 {
    font-size: 0.85rem;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.alumni-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alumni-details {
    flex: 1;
    padding-right: 10px;
}

#alumni-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #ffffff;
}

#alumni-job {
    font-size: 1rem;
    color: #FED216; /* Métier mis en avant en jaune */
    margin-top: 2px;
}

#alumni-logo {
    height: 90px;
    width: 90px;
    object-fit: contain;
    background-color: #ffffff;
    padding: 6px;
    border-radius: 8px;
}

hr {
    width: 100%;
    border: 0;
    height: 1px;
    background: #1263a0;
    margin: 20px 0;
}

#scores-list {
    list-style: none;
    width: 100%;
    text-align: left;
    margin-bottom: 25px;
    overflow-y: auto;
}

#scores-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1263a0;
    color: #f8fafc;
}

#scores-list li strong {
    color: #FED216;
}

#restart-btn {
    background-color: #ffffff;
    color: #094068;
}