
/* Styles pour les zones de dépôt de fichiers */
.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 150px;
    margin-bottom: 1rem;
}

.file-drop-area:hover, .file-drop-area.is-active {
    border-color: #6c757d;
    background-color: #e9ecef;
}

.file-drop-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.file-drop-message {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 0.5rem;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Styles pour la prévisualisation de fichier */
.file-preview {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    display: none;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.file-preview.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: slideInUp 0.4s ease-out;
}

.file-preview:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #f85f1c;
}

.file-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f85f1c, #f04e23);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.file-preview:hover::before {
    transform: scaleX(1);
}

.file-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f85f1c, #f04e23);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.file-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

.file-icon i {
    color: white;
    font-size: 1.5rem;
    z-index: 1;
    position: relative;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.file-size {
    font-weight: 500;
}

.file-type {
    background: #e9ecef;
    color: #6c757d;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.file-remove:hover {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-remove:active {
    transform: scale(0.95) rotate(-5deg);
}

.file-remove i {
    font-size: 0.875rem;
}

/* Progress bar pour upload */
.file-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f85f1c, #f04e23);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.file-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShimmer 1.5s infinite;
}

/* Variantes pour différents types de fichiers */
.file-preview.pdf .file-icon {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.file-preview.doc .file-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.file-preview.image .file-icon {
    background: linear-gradient(135deg, #059669, #047857);
}

.file-preview.zip .file-icon {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

/* États spéciaux */
.file-preview.uploading {
    pointer-events: none;
}

.file-preview.uploading .file-icon {
    animation: pulse 1.5s infinite;
}

.file-preview.error {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.file-preview.error .file-icon {
    background: linear-gradient(135deg, #dc3545, #dc2626);
}

.file-preview.success {
    border-color: #10b981;
}

.file-preview.success .file-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Animations supplémentaires */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive pour la prévisualisation de fichier */
@media (max-width: 576px) {
    .file-preview {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .file-icon {
        width: 40px;
        height: 40px;
    }
    
    .file-icon i {
        font-size: 1.25rem;
    }
    
    .file-name {
        font-size: 0.9rem;
    }
    
    .file-details {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}

/* Styles pour les messages d'erreur */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 85%;
    color: #333;
    background-color: rgba(248, 95, 28, 0.1);
    border-left: 3px solid #f85f1c;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
    animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour le bouton de soumission */
.btn-submit {
    margin-top: 1.5rem;
}

/* Styles pour les alertes */
.alert {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.5rem;
    position: relative;
    animation: fadeIn 0.5s ease;
}

.alert-success {
    background-color: rgba(248, 95, 28, 0.1);
    border-left: 5px solid #f85f1c;
    color: #333;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 5px solid #f85f1c;
    color: #721c24;
}

.alert-heading {
    color: inherit;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.alert-success .alert-heading::before {
    content: '✓';
    display: inline-block;
    margin-right: 10px;
    background-color: #f85f1c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
}

.alert-danger .alert-heading::before {
    content: '!';
    display: inline-block;
    margin-right: 10px;
    background-color: #f85f1c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

.alert ul {
    padding-left: 1.5rem;
}

.alert ul li {
    margin-bottom: 0.5rem;
}

.alert ul li:last-child {
    margin-bottom: 0;
}

.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour le champ honeypot */
.honeypot {
    display: none;
    visibility: hidden;
    height: 0;
}

/* Styles pour l'accessibilité */
.form-control:focus, .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(248, 95, 28, 0.25);
    border-color: #f85f1c;
}

/* Styles pour les champs valides et invalides */
.form-control.is-invalid {
    border-color: #f85f1c;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23f85f1c' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f85f1c' stroke='none'/%3e%3c/svg%3e");
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control.is-valid {
    border-color: #f85f1c;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23f85f1c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive */
@media (max-width: 767.98px) {
    .container {
        padding: 1rem;
    }
    
    .file-drop-area {
        padding: 1.5rem;
        min-height: 120px;
    }
}

.header-bloc-img-fiche-poste {
  margin-top: 90px;
  width: 1920px;
}

h1 {
  color: #FFFFFF;
  font-family: Formata;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 49px;
  text-transform: none;
  position: absolute;
  top: 160px;
}

.btn-submit {
  border-radius: 3px;
  border: 1px solid #f85f1c;
  background: #f85f1c;
  color: #fff;
  font-weight: bold;
  text-transform: none;
  line-height: 49px;
}


.btn-submit:hover {
  background-color: #f04f231c;
  border: 1px solid #f85f1c;
  color: #f04e23 !important;
}

/* Styles pour le message de validation */
.success-container {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    max-width: 800px !important;
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 auto !important;
    animation: slideInUp 0.6s ease-out !important;
}

.success-icon {
  width: 80px !important;
  height: 80px !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1.5rem auto !important;
  animation: bounceIn 0.8s ease-out 0.3s both !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3) !important;
}

.success-icon i {
    font-size: 2.5rem !important;
    color: white !important;
    animation: rotateIn 0.4s ease-out 0.6s both !important;
}

.success-title {
    color: #333 !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    animation: fadeInUp 0.5s ease-out 0.4s both !important;
    position: relative !important;
    top: auto !important;
}

.success-message {
    color: #6c757d !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    animation: fadeInUp 0.5s ease-out 0.6s both !important;
}

.success-details {
    background: #ecf1e2 !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    margin-bottom: 2rem !important;
    border-left: 4px solid #17890b !important;
    animation: fadeInUp 0.5s ease-out 0.8s both !important;
}

.success-details p {
    margin: 0 !important;
    color: #495057 !important;
    font-size: 0.95rem !important;
}

/* Animations pour le message de validation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* Responsive pour le message de validation */
@media (max-width: 576px) {
    .success-container {
        padding: 2rem 1.5rem !important;
        margin: 1rem !important;
    }
    
    .success-title {
        font-size: 1.75rem !important;
    }
    
    .success-message {
        font-size: 1rem !important;
    }
    
    .success-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .success-icon i {
        font-size: 2rem !important;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}