* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 4rem;
}

h1 {
    text-align: center;
    color: #c45824;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    text-align: center;
    margin-bottom: 1rem;
}

p {
    text-align: center;
    margin-bottom: 1rem;
}

.winner {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #c45824;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

label {
    font-weight: bold;
    color: #555;
}

input,
select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.75rem;
    background-color: #c45824;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

button:hover {
    background-color: #a34a1d;
}

.pronostics-list {
    margin-top: 2rem;
}

.pronostics-list h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.pronostic-card {
    background-color: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 4px solid #c45824;
}

.pronostic-card p {
    margin: 0.5rem 0;
    color: #555;
}

.back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #c45824;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2rem;
    transition: background-color 0.3s;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

.back-button:hover {
    background-color: #c45824;
}

.back-button.green {
    background-color: #c45824;
}

.back-button.green:hover {
    background-color: #a34a1d;
}

.pronostics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pronostic-card.detailed {
    position: relative;
    padding: 1.5rem;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pronostic-card.detailed h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.date-submission {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pronostic-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 400;
}

/* Styles pour la modale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.modal-content button {
    background-color: #c45824;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #c45824;
}

.delete-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.delete-button:hover {
    color: #cc0000;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.modal-buttons button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.modal-buttons button.delete {
    background-color: #ff4444;
    color: white;
}

.modal-buttons button.delete:hover {
    background-color: #cc0000;
}

.modal-buttons button:not(.delete) {
    background-color: #f5f5f5;
    color: #333;
}

.modal-buttons button:not(.delete):hover {
    background-color: #e0e0e0;
}

.top-bar {
    width: 100%;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.live-results-link {
    color: #c45824;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.live-results-link:hover {
    background-color: #f5f5f5;
}

.live-results-link.changing {
    animation: buttonChange 0.5s ease;
}

@keyframes buttonChange {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-card h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-value {
    font-size: 1.5rem;
    color: #c45824;
    font-weight: 500;
}

.stats-container {
    margin-top: 3rem;
}

.stats-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-card p {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

.gender-gauge-container {
    margin: 2rem 0;
    text-align: center;
}

.gender-gauge-container h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.gender-gauge {
    width: 100%;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.gender-gauge .gauge-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

.gender-gauge .gauge-fill:first-child {
    background-color: #ff69b4;
    /* Rose pour les filles */
}

.gender-gauge .gauge-fill:last-child {
    background-color: #1e90ff;
    /* Bleu pour les garçons */
}

.gauge-label {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0 1rem;
    white-space: nowrap;
}

.autre-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.autre-input:focus {
    outline: none;
    border-color: #c45824;
    box-shadow: 0 0 0 2px rgba(196, 88, 36, 0.2);
}

.pronostics-count {
    text-align: center;
    color: #333;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.month-selectors {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    perspective: 1000px;
}

.carousel-container {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border: 2px solid #c45824;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.carousel-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.carousel-item.selected {
    color: white;
    background-color: #c45824;
    font-weight: bold;
    transform: scale(1.1);
}

/* Effet de perspective pour les éléments non sélectionnés */
.carousel-item:not(.selected) {
    opacity: 0.6;
    transform: scale(0.9);
}

/* Style pour le conteneur du carrousel */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.carousel-container::before {
    top: 0;
}

.carousel-container::after {
    bottom: 0;
    transform: rotate(180deg);
}

/* Styles pour la jauge */
.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.gauge {
    width: 80%;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid #c45824;
}

.gauge-fill {
    height: 100%;
    width: 0%;
    background-color: #c45824;
    transition: width 0.3s ease;
}

.gauge-text {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Suppression des styles des carrousels */
.month-selectors,
.carousel-container,
.carousel,
.carousel-item {
    display: none;
}

/* Styles du digicode */
.digicode-container {
    max-width: 300px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #2c3e50;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.screen {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-text {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.key {
    background: #34495e;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.key:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.key:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.key.clear {
    background: #e74c3c;
    grid-column: span 3;
    padding: 0.8rem;
    font-size: 1rem;
}

.key.clear:hover {
    background: #c0392b;
}

.success-message {
    color: #e0e0e0;
    text-align: center;
    margin-top: 0.8rem;
    font-size: 1rem;
    display: none;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 0.8rem;
    font-size: 1rem;
    display: none;
}

/* Styles spécifiques pour la page hidden.html */
body.hidden-page {
    background-color: #121212;
    color: #e0e0e0;
}

.hidden-page .container {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.5s ease;
}

.hidden-page h1 {
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    text-align: center;
}

.hidden-page .top-bar {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.hidden-page .live-results-link {
    color: #e0e0e0;
    background-color: #2c2c2c;
}

.hidden-page .live-results-link:hover {
    color: #ffffff;
    background-color: #3c3c3c;
}

.hidden-page .subtitle {
    color: #e0e0e0;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.hidden-page .additional-message {
    color: #e0e0e0;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hidden-page .top-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hidden-page .checkboxes {
    display: flex;
    gap: 0.5rem;
}

.hidden-page .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.hidden-page .checkbox-label.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hidden-page .hidden-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.hidden-page .checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.2s;
}

.hidden-page .checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #e0e0e0;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hidden-page .hidden-checkbox:checked~.checkbox-custom {
    background-color: #3c3c3c;
}

.hidden-page .hidden-checkbox:checked~.checkbox-custom:after {
    display: block;
}

.hidden-page .checkbox-custom:hover {
    background-color: #3c3c3c;
}

.hidden-page .key {
    background: #34495e;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hidden-page .key:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.hidden-page .key:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden-page .key.clear {
    background: #e74c3c;
    grid-column: span 3;
    padding: 0.8rem;
    font-size: 1rem;
}

.hidden-page .key.clear:hover {
    background: #c0392b;
}

.hidden-page .key.worn-out {
    opacity: 0.6;
    background: #34495e;
    color: #b0b0b0;
    box-shadow: none;
}

.hidden-page .key.worn-out:hover {
    background: #34495e;
    transform: none;
}

.hidden-page .lines-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    overflow: hidden;
}

.hidden-page .vertical-line {
    position: absolute;
    bottom: 0;
    background-color: #e0e0e0;
    opacity: 0;
    animation: lineAppear 0.5s ease forwards, lineScroll 3s linear infinite;
    transform-origin: bottom;
}

@keyframes lineAppear {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 0.8;
    }
}

@keyframes lineScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.welcome-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #e0e0e0;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.welcome-message h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.welcome-message p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.return-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #2c2c2c;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid #444;
    margin-top: 1rem;
}

.return-button:hover {
    background-color: #3c3c3c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}