body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    padding: 20px;
    margin: 0;
}

h1 {
    text-align: center;
    color: #333;
}

/* La Tirelire */
.piggy-bank {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    background: #ffeb3b;
    padding: 15px 30px;
    border-radius: 50px;
    width: max-content;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 3px solid #fbc02d;
    color: #333;
}

#total-gains {
    color: #d32f2f;
}

/* La Montagne */
.mountain-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1; 
    margin: 20px auto;
    background: #e0f7fa;
    border-radius: 10px;
    border: 2px solid #b2ebf2;
    overflow: hidden;
}

.diagonal-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 141.4%;
    height: 4px;
    background-color: #ff5722;
    transform-origin: bottom left;
    transform: rotate(-45deg); 
}

/* Les Chiens */
.dog {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    bottom: 0%; 
    left: 0%;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); 
    z-index: 10;
}

#dog1 { margin-left: -15px; margin-bottom: 15px; border-color: #ffc107; }
#dog2 { margin-left: 0px; margin-bottom: 0px; border-color: #4caf50; z-index: 11; }
#dog3 { margin-left: 15px; margin-bottom: -15px; border-color: #2196f3; }

/* Les tickets */
.tickets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.ticket {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 320px;
}

.ticket h3 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket h3 span {
    font-size: 16px;
    background: #eee;
    padding: 4px 8px;
    border-radius: 6px;
    color: #333;
}

.ticket label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.ticket input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Fenêtre de célébration (Pop-up) */
#celebration {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#celebration.hidden {
    display: none !important;
}

.celebration-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.dog-head-big {
    width: 120px; 
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    background-size: cover;
    background-position: center;
    border: 6px solid gold;
    box-shadow: 0 0 20px gold;
    animation: bounce 0.8s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-25px); }
}

.win-amount {
    font-size: 36px;
    color: #4caf50;
    font-weight: bold;
    margin: 15px 0;
}

button {
    background-color: #ff5722;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
button:hover { background-color: #e64a19; }