/* Formulaire Ambassadeurs - Styles professionnels et attrayants */
/* NOUVELLE TYPOGRAPHIE : Corps de texte (Principal) : Archivo, Titres : Exo */

.amb-form {
    height: 100%;
    width: 100%;
    /* Mise à jour de la police principale */
    font-family: "Archivo", sans-serif;
    padding: 0;
    margin: 0;
}

.amb-form #container,
.amb-form #container_popup {
    background: linear-gradient(135deg, rgba(3, 3, 55, 0.95) 0%, rgba(10, 10, 80, 0.9) 100%);
    width: 100%;
    height: auto;
    margin: 0;
    position: relative;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.amb-form header {
    text-align: center;
    vertical-align: middle;
    line-height: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(255, 174, 0, 0.9) 0%, rgba(230, 156, 0, 0.9) 100%);
    font-size: 1.4rem;
    color: white;
    border-radius: 10px 10px 0 0;
    margin: -20px -20px 25px -20px;
    width: calc(100% + 40px);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 174, 0, 0.3);
    /* Nouvelle police pour le titre */
    font-family: "Exo", sans-serif;
}

.amb-form fieldset {
    border: 0 !important;
    text-align: center !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* Styles des champs de formulaire */
.amb-form input:not([type="file"]):not([type="submit"]),
.amb-form textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    padding: 15px !important;
    color: white !important;
    width: 95% !important;
    margin: 10px auto !important;
    display: block !important;
    /* Mise à jour de la police */
    font-family: "Archivo", sans-serif !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
}

/* Style spécifique pour le select - CORRIGÉ */
.amb-form select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    padding: 15px !important;
    color: white !important;
    width: 95% !important;
    margin: 10px auto !important;
    display: block !important;
    /* Mise à jour de la police */
    font-family: "Archivo", sans-serif !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffae00' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
}

/* Style pour les options du select - CORRECTION IMPORTANTE */
.amb-form select option {
    background: #081245 !important;
    color: white !important;
    padding: 12px !important;
    font-size: 14px !important;
    border: none !important;
    font-family: "Archivo", sans-serif !important;
}

/* Style pour le select au focus */
.amb-form select:focus {
    outline: none !important;
    border-color: rgba(255, 174, 0, 0.8) !important;
    background: rgba(255, 174, 0, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.2) !important;
    transform: translateY(-2px);
}

.amb-form input:focus,
.amb-form textarea:focus {
    outline: none !important;
    border-color: rgba(255, 174, 0, 0.8) !important;
    background: rgba(255, 174, 0, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.2) !important;
    transform: translateY(-2px);
}

.amb-form input.valid {
    border-color: #4CAF50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
}

.amb-form input.invalid {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.1) !important;
}

.amb-form ::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
}

/* Labels */
.amb-form label {
    color: white !important;
    /* Mise à jour de la police */
    font-family: "Archivo", sans-serif !important;
    display: block !important;
    margin: 20px 0 10px 0 !important;
    font-size: 15px !important;
    text-align: left !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Styles spécifiques pour les boutons radio d'expérience - AMÉLIORÉ */
.experience-radio-group {
    display: flex;
    gap: 15px;
    margin: 15px auto !important;
    width: 95% !important;
    justify-content: center;
}

.experience-radio-item {
    flex: 1;
    position: relative;
}

.experience-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.experience-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 18, 69, 0.3);
    border: 2px solid rgba(8, 18, 69, 0.5);
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: "Archivo", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    min-height: 50px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.experience-radio-label:hover {
    background: rgba(8, 18, 69, 0.5);
    border-color: rgba(255, 174, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.experience-radio-item input[type="radio"]:checked + .experience-radio-label {
    background: linear-gradient(135deg, rgba(8, 18, 69, 0.8) 0%, rgba(4, 9, 35, 0.9) 100%);
    border-color: rgba(255, 174, 0, 0.8);
    color: rgba(255, 174, 0, 0.9) !important;
    box-shadow: 0 0 0 2px rgba(255, 174, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.4);
    font-weight: 700 !important;
}

.experience-radio-item input[type="radio"]:checked + .experience-radio-label::before {
    content: "✓";
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
    color: rgba(255, 174, 0, 0.9);
}

/* Animation pour la sélection */
.experience-radio-item input[type="radio"]:checked + .experience-radio-label {
    animation: pulse-experience 0.5s ease;
}

@keyframes pulse-experience {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 174, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 174, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 174, 0, 0);
    }
}

/* Zone d'upload de fichiers améliorée */
.file-upload-area {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 15px auto;
    width: 95%;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: rgba(255, 174, 0, 0.5);
    background: rgba(255, 174, 0, 0.05);
}

.file-upload-area.dragover {
    border-color: rgba(255, 174, 0, 0.8);
    background: rgba(255, 174, 0, 0.1);
    transform: scale(1.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.upload-placeholder i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: rgba(255, 174, 0, 0.7);
}

.file-info {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    text-align: left;
}

.file-info strong {
    color: white;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.file-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Barre de progression */
.upload-progress {
    display: none;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 6px;
    position: relative;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 174, 0, 0.8), rgba(255, 174, 0, 1));
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.upload-success {
    display: none;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    padding: 8px 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.upload-success i {
    margin-right: 8px;
}

/* Section de confirmation de fichier uploadé */
.file-uploaded-confirmation {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    text-align: left;
}

.file-uploaded-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.file-uploaded-name {
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex: 1;
}

.file-uploaded-size {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-left: 10px;
}

.file-uploaded-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.change-file-btn {
    background: rgba(255, 174, 0, 0.2);
    border: 1px solid rgba(255, 174, 0, 0.5);
    color: rgba(255, 174, 0, 0.9);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.change-file-btn:hover {
    background: rgba(255, 174, 0, 0.3);
    transform: translateY(-1px);
}

.remove-file-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.remove-file-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-1px);
}

/* Bouton de soumission - CORRIGÉ */
.amb-form input[type="submit"] {
    background: linear-gradient(135deg, rgba(255, 174, 0, 1) 0%, rgba(230, 156, 0, 1) 100%) !important;
    border: 0 !important;
    display: block !important;
    width: 95% !important;
    margin: 30px auto 15px auto !important;
    color: white !important;
    padding: 16px 10px !important;
    cursor: pointer !important;
    border-radius: 50px !important;
    /* Nouvelle police pour le bouton de soumission */
    font-family: "Exo", sans-serif !important;
    font-size: 15px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 5px 15px rgba(255, 174, 0, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    min-height: 50px;
    line-height: 1.2 !important;
}

.amb-form input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 174, 0, 0.6);
}

.amb-form input[type="submit"]:active {
    transform: translateY(-1px);
}

.amb-form input[type="submit"].all-files-ready {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.amb-form input[type="submit"]:disabled {
    background: #666 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages d'erreur */
.error-message {
    color: #ff6b6b !important;
    font-size: 12px !important;
    margin: 5px 0 0 0 !important;
    display: none;
    text-align: left;
    width: 95%;
    margin-left: auto !important;
    margin-right: auto !important;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Message de succès */
.success-message {
    text-align: center;
    padding: 30px 20px;
    color: white;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
    /* Nouvelle police pour le titre de succès */
    font-family: "Exo", sans-serif;
}

.success-message p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.success-btn {
    background: linear-gradient(135deg, rgba(255, 174, 0, 1) 0%, rgba(230, 156, 0, 1) 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Nouvelle police pour le bouton de succès */
    font-family: "Exo", sans-serif;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 174, 0, 0.4);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personnalisée */
.hidden-bar .amb-form::-webkit-scrollbar {
    width: 8px;
}

.hidden-bar .amb-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hidden-bar .amb-form::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 174, 0, 0.8), rgba(230, 156, 0, 0.8));
    border-radius: 4px;
}

.hidden-bar .amb-form::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 174, 0, 1), rgba(230, 156, 0, 1));
}

/* Styles spécifiques pour la popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
}

.popup-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10000;
}

.close-popup:hover {
    color: #FFA500;
}

/* Adaptation du formulaire pour la pop-up */
.popup-content .amb-form {
    margin-top: 20px;
}

.popup-content #container_popup {
    padding: 0;
    box-shadow: none;
}

.popup-content header {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Media queries pour responsive */
@media all and (max-width: 768px) {
    .amb-form #container,
    .amb-form #container_popup {
        padding: 15px;
    }
    
    .amb-form header {
        font-size: 1.2rem;
        line-height: 2.5rem;
        height: 2.5rem;
        margin: -15px -15px 20px -15px;
        width: calc(100% + 30px);
    }
    
    .amb-form input[type="submit"] {
        width: 95% !important;
        padding: 14px 8px !important;
        font-size: 14px !important;
        letter-spacing: 0.3px !important;
    }
    
    .file-upload-area {
        padding: 15px;
    }
    
    .file-uploaded-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-uploaded-size {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .file-uploaded-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .amb-form select {
        padding: 12px !important;
        font-size: 14px !important;
        background-position: right 12px center !important;
        padding-right: 35px !important;
    }

    /* Responsive pour les boutons d'expérience */
    .experience-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .experience-radio-label {
        padding: 12px 15px !important;
        min-height: 45px;
        font-size: 13px !important;
    }
}

/* Reset des styles conflictuels */
.amb-form * {
    box-sizing: border-box !important;
}

/* Ajustements spécifiques pour la barre latérale */
.hidden-bar .amb-form {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.hidden-bar .amb-form #container {
    max-width: 100%;
}