/* Structure générale */
body {
    background: linear-gradient(135deg, #000, #2b0c50, #000080);
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

/* En-tête */
header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1rem;
    color: #fff;
}

/* Zone de saisie */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 1rem;
}

.input-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

input[type="text"] {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

button {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #4c4cfc;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 250px;
    text-align: center;
}

button:hover {
    background-color: #3a3afc;
    transform: scale(1.03);
}

/* Résultats */
.result-container {
    text-align: center;
    margin-top: 30px;
    padding: 0 1rem;
}

.user-input,
.result {
    font-size: 1.1rem;
    margin: 8px 0;
}

.result span {
    font-weight: bold;
}

.feedback-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.feedback-button {
    background-color: #4c4cfc;
    color: #fff;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 250px; /* fixée */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-button:hover {
    background-color: #3a3afc;
    transform: scale(1.03);
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.popup {
    background: #333;
    border: 1px solid #555;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.popup select {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #fff;
    color: #000;
    width: 100%;
    margin-bottom: 10px;
}

.popup button {
    padding: 10px 16px;
    font-size: 1rem;
    margin: 8px auto;
    border-radius: 8px;
    background-color: #4c4cfc;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 250px;
    text-align: center;
}

.popup button:hover {
    background-color: #3a3afc;
}

/* Pied de page */
footer {
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
}

.info-container {
    margin-top: 40px;
}

.info-text {
    font-size: 0.9rem;
    color: #bbb;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* Icônes */
.svg-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.svg-icon-large {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin: 0 4px;
}

/* Responsive desktop */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .input-container form {
        flex-direction: row;
    }

    .input-container input[type="text"] {
        width: 100%;
    }

    .feedback-buttons {
        flex-direction: row;
    }

    .feedback-button {
        width: 250px;
    }

    button {
        width: auto;
    }
}
