/* Styles pour le formulaire de recrutement */
.recruitment-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recruitment-form .form-group {
    margin-bottom: 1.5rem;
}

.recruitment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.recruitment-form input[type="text"],
.recruitment-form input[type="email"],
.recruitment-form input[type="tel"],
.recruitment-form input[type="number"],
.recruitment-form select,
.recruitment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.recruitment-form input:focus,
.recruitment-form select:focus,
.recruitment-form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.recruitment-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.recruitment-form .form-row .form-group {
    flex: 1 0 calc(50% - 1.5rem);
    margin: 0 0.75rem 1.5rem;
}

@media (max-width: 576px) {
    .recruitment-form .form-row .form-group {
        flex: 1 0 100%;
        margin: 0 0 1.5rem 0;
    }
}

.recruitment-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.recruitment-form .checkbox-group input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.recruitment-form .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Styles pour les messages d'alerte */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: opacity 0.5s ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #e2f0fd;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Style pour le bouton de soumission */
.btn-primary {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a252f;
}

.btn-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Style pour le sélecteur de poste */
.recruitment-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Style pour les champs obligatoires */
.required-field::after {
    content: ' *';
    color: #e74c3c;
}

/* Style pour l'infobulle d'aide */
.help-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.help-tooltip .tooltip-content {
    visibility: hidden;
    width: 500px;
    max-width: 90vw;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    position: absolute;
    z-index: 1000;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e4e8;
}

.help-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.help-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Style pour l'image d'aide */
.discord-help-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
}

/* Style pour le texte sous l'image */
.discord-help-text {
    margin-top: 10px;
    font-size: 14px;
    color: #2c3e50;
    text-align: center;
}

.discord-help-text strong {
    color: #5865F2;
}

/* Style pour mobile */
@media (max-width: 768px) {
    .help-tooltip .tooltip-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 10000;
    }
    
    .help-tooltip .tooltip-content::after {
        display: none;
    }
}

/* Style pour le conteneur du champ Discord */
.discord-field {
    position: relative;
}

/* Style pour le préfixe du champ Discord */
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    color: #7f8c8d;
    pointer-events: none;
    font-weight: 500;
}

.input-with-prefix input[type="text"] {
    padding-left: 30px;
}

/* Style pour l'icône d'aide */
.fa-question-circle {
    color: #3498db;
    transition: color 0.2s;
}

.fa-question-circle:hover {
    color: #2980b9;
}

/* Animation de chargement */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}
