/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-blue: #1070c4;
    --light-blue: #e6f2ff;
    --dark-blue: #002244;
    --pink: #e91e63;
    --dark-pink: #c2185b;
    --light-gray: #f5f5f5;
    --gray: #ddd;
    --dark-gray: #777;
    --border-radius: 4px;
    --box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    margin-top: 30px;
}

.logo img {
    height: 25px;
}

header h1 {
    font-size: 1.8rem;
    color: var(--main-blue);
}

/* Formulaires */
.login-form, .form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
}

h2 {
    margin-bottom: 48px;
    text-align: center;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--main-blue);
    box-shadow: 0 0 0 3px rgba(16, 112, 196, 0.2);
    outline: none;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:active {
    transform: translateY(1px);
}

.primary {
    background-color: var(--main-blue);
    color: #fff;
}

.primary:hover {
    background-color: var(--dark-blue);
}

.secondary {
    background-color: #eee;
    color: #333;
}

.secondary:hover {
    background-color: #ddd;
}

.danger {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

.danger:hover {
    background-color: #dee2e6;
    color: #343a40;
}

.btn-small.danger {
    background-color: #e9ecef;
    color: #1070c4;
    border: none;
}

.btn-small.danger:hover {
    background-color: #dee2e6;
    color: #1070c4;
}

.pink-btn {
    background-color: var(--pink);
    color: white;
    font-size: 1.2em;
    padding: 14px 28px;
}

.pink-btn:hover {
    background-color: var(--dark-pink);
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px; /* Ajoute un espace entre les boutons */
}

/* Liens de mot de passe */
.password-links {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 20px;
}

.password-links .link {
    color: var(--main-blue);
    text-decoration: none;
    font-size: 14px;
}

.password-links .link:hover {
    text-decoration: underline;
}

/* Bouton pleine largeur */
.full-width {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: var(--dark-gray);
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid var(--gray);
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Éléments spécifiques au formulaire par étapes */
.step-container {
    display: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.step-container.active {
    display: block;
}

.step-container h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray);
    color: var(--main-blue);
    font-weight: 600;
}

.steps-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    color: var(--dark-gray);
    font-weight: 600;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 16px;
    height: 2px;
    background-color: var(--gray);
}

.step.active {
    background-color: var(--main-blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(16, 112, 196, 0.2);
}

.step.completed {
    background-color: #4CAF50;
    color: #fff;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background-color: var(--main-blue);
}

/* Style pour les options radio et checkbox */
.radio-group, .checkbox-group {
    margin-bottom: 25px;
}

.radio-option, .checkbox-option {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

.radio-option:hover, .checkbox-option:hover {
    background-color: var(--light-blue);
}

/* Styles personnalisés pour les cases à cocher et boutons radio */
input[type="radio"], 
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    margin-top: 2px;
    border: 2px solid var(--gray);
    outline: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    border-color: var(--main-blue);
    background-color: var(--main-blue);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    line-height: 1;
}

.radio-option label, .checkbox-option label {
    margin-left: 10px;
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
}

/* Style pour les options imbriquées */
.nested-options {
    margin-left: 32px;
    margin-top: 10px;
    padding: 10px 0;
    border-left: 2px solid var(--light-blue);
    padding-left: 15px;
}

/* Amélioration du champ conditionnel */
.conditional-input {
    margin-top: 8px;
    margin-left: 32px;
    max-width: 300px;
}

/* Formulaire de row avec plusieurs champs */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

/* Style pour le formulaire de feedback */
.feedback-form {
    background-color: #f9f9f9;
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.feedback-form h4 {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 10px;
    color: var(--main-blue);
}

/* Styles pour le résumé de commande */
.summary-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

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

.small-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

/* Style spécifique aux candidats */
.candidate-form {
    background-color: #f9f9f9;
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.candidate-form h4 {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 10px;
    color: var(--main-blue);
}

/* Checkbox-inline - pour les aligner horizontalement */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.checkbox-inline label {
    margin-bottom: 0;
}

/* Informations statiques */
.static-info {
    background-color: var(--light-blue);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 4px solid var(--main-blue);
}

/* Message d'erreur pour validation */
.error-message {
    color: #d32f2f;
    font-size: 0.85em;
    margin-top: 5px;
}

input.error, select.error, textarea.error {
    border-color: #d32f2f;
}

/* Page de confirmation */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #4CAF50;
    color: white;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.confirmation-details {
    margin-top: 30px;
}

.summary-table {
    border: none;
    width: 100%;
}

.summary-table th, .summary-table td {
    padding: 12px;
    border: none;
    border-bottom: 1px solid #eee;
}

.summary-table th {
    width: 40%;
    font-weight: 600;
    color: #555;
    background-color: transparent;
}

.next-steps {
    margin-top: 40px;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 10px;
}

.confirmation-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .step {
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }
    
    .step:not(:last-child)::after {
        width: 10px;
    }
    
    .radio-option, .checkbox-option {
        padding: 8px;
    }
    
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .confirmation-actions .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}