/* Configuration Générale */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-bg: #f0fdf4;
    --success-border: #22c55e;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-color);
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Titres */
h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Sections et Cartes */
.section {
    background: var(--card-bg);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

/* Formulaire */
.question {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Bouton */
button {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 20px;
}

button:hover {
    background-color: #1a252f;
}

button:active {
    transform: scale(0.98);
}

/* Boîte de Statut et Lien de retour */
#statusBox {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--success-bg);
    border-left: 5px solid var(--success-border);
    border-radius: 8px;
    color: #166534;
}

#statusBox b {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 1.2rem;
}

#consultLink {
    word-break: break-all;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

#consultLink:hover {
    text-decoration: underline;
}

/* Tableaux de résultats */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f8fafc;
    color: var(--primary-color);
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    body {
        margin: 20px auto;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 20px;
    }
}

.results-card {
    border-top: 4px solid #3498db;
    background: #fdfdfd;
    animation: fadeIn 0.5s ease-in;
}

.profile-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    background: #eef2f7;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

