/* Styles pour la page postuler.php */

/* Bannière */
.postuler-banner {
    background: linear-gradient(rgba(0, 45, 114, 0.8), rgba(0, 45, 114, 0.9)), url('../images/banner-postuler.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.postuler-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.postuler-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Fil d'ariane (breadcrumb) */
.breadcrumb {
    margin: 20px 0 30px;
    font-size: 0.95rem;
    color: #555;
}

.breadcrumb a {
    color: var(--westif-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--westif-orange);
}

/* Section formulaire principale */
.postuler-form-section {
    padding: 60px 0;
}
/* Résumé de l'offre */
.offre-recap {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.offre-recap h2 {
    color: var(--westif-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.offre-recap-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.offre-recap-item {
    display: flex;
    align-items: center;
    color: #555;
    flex: 1;
    min-width: 200px;
}

.offre-recap-item i {
    color: var(--westif-orange);
    margin-right: 10px;
    font-size: 1.1rem;
}
/* Conteneur du formulaire */
.postuler-form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.postuler-form-container h2 {
    color: var(--westif-blue);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Structure en grille pour le formulaire */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--westif-blue);
    box-shadow: 0 0 0 2px rgba(0, 45, 114, 0.1);
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}
/* Upload de fichier personnalisé */
.file-upload {
    position: relative;
    margin-top: 5px;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.file-upload-btn {
    background-color: var(--westif-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-upload-btn:hover {
    background-color: var(--westif-dark-blue);
}

.file-upload-info {
    margin-left: 15px;
    color: #666;
    font-size: 0.95rem;
}

/* Case à cocher de consentement */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.consent-checkbox input {
    margin-top: 5px;
    margin-right: 10px;
}

.consent-checkbox label {
    font-size: 0.95rem;
    line-height: 1.5;
}
/* Actions du formulaire */
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.submit-button {
    background-color: var(--westif-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--westif-dark-blue);
}

.cancel-button {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

/* Messages d'alerte */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.alert i {
    font-size: 24px;
    margin-right: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.form-success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.secondary-button {
    background-color: transparent;
    color: var(--westif-blue);
    border: 2px solid var(--westif-blue);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: var(--westif-light-blue);
}
/* Styles responsifs */
@media (max-width: 992px) {
    .postuler-banner h1 {
        font-size: 2.3rem;
    }
    
    .offre-recap h2 {
        font-size: 1.6rem;
    }
    
    .postuler-form-container h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .postuler-banner {
        padding: 60px 0;
    }
    
    .postuler-banner h1 {
        font-size: 2rem;
    }
    
    .postuler-banner p {
        font-size: 1.1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .offre-recap-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .offre-recap-item {
        min-width: auto;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .submit-button, .cancel-button {
        width: 100%;
        text-align: center;
    }
    
    .form-success-actions {
        flex-direction: column;
    }
    
    .secondary-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .postuler-banner h1 {
        font-size: 1.7rem;
    }
    
    .postuler-form-section {
        padding: 40px 0;
    }
    
    .offre-recap, .postuler-form-container {
        padding: 20px 15px;
    }
    
    .alert {
        padding: 15px;
    }
    
    .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-upload-info {
        margin-left: 0;
        margin-top: 10px;
    }
}
