/* --- CSS DE BASE (Global & Navigation) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #0056b3; 
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-buttons a {
    margin-left: 15px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login {
    background-color: transparent;
    color: #333;
}

.btn-login:hover {
    background-color: #f1f1f1;
}

/* --- FORMULAIRE D'INSCRIPTION --- */
.signup-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 40px 20px; 
}

.form-card {
    background-color: white;
    width: 100%;
    max-width: 550px; /* Légèrement élargi pour les nouveaux champs */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.form-card h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #111;
}

.form-card p.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #0056b3;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* --- DESIGN DES BOÎTES POUR LE RÔLE --- */
.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0; /* On cache le rond par défaut du radio */
}

.card-content {
    display: block;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    background-color: #fafafa;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Ce qui se passe quand on sélectionne une boîte */
.radio-card input[type="radio"]:checked + .card-content {
    border-color: #0056b3;
    background-color: rgba(0, 86, 179, 0.05);
    color: #0056b3;
}

.radio-card:hover .card-content {
    border-color: #bbb;
}

/* --- BOUTON SUBMIT --- */
.btn-submit {
    width: 100%;
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #004494;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: #666;
}

.login-link a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-row, .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    .form-card {
        padding: 30px 20px;
    }
}