/* ==========================================================================
   STYLES SPÉCIFIQUES POUR LA PAGE D'INSCRIPTION
   ========================================================================== */

/* Progress Bar */
.registration-progress {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    height: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 25px;
}

.progress-text {
    font-family: var(--font-bold);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Registration Form */
.registration-form {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-background);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Form Sections */
.form-section {
    padding: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h3 {
    font-family: var(--font-bold);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Form Groups */
.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    font-style: italic;
}

/* Photo Format Info */
.photo-format-info {
    margin-bottom: 1rem;
}

.format-toggle {
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid rgba(225, 6, 0, 0.3);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.format-toggle:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: var(--primary-color);
}

.format-details {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.format-requirements { margin-bottom: 1.5rem; }
.format-requirements h6 { color: var(--primary-color); font-family: var(--font-bold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.5px; }
.format-requirements ul { list-style: none; padding: 0; margin: 0; }
.format-requirements li { padding: 0.5rem 0; color: var(--text-primary); font-size: 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.format-requirements li:last-child { border-bottom: none; }
.format-example { text-align: center; }
.format-example h6 { color: var(--primary-light); font-family: var(--font-bold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.5px; }
.example-photo { max-width: 120px; max-height: 150px; border-radius: 10px; border: 2px solid var(--primary-color); background: rgba(255, 255, 255, 0.1); padding: 5px; object-fit: contain; }

.image-editor { margin-top: 1rem; padding: 1rem; background: rgba(0, 0, 0, 0.3); border-radius: 10px; text-align: center; }
.image-editor canvas { border: 2px solid var(--primary-color); border-radius: 10px; cursor: crosshair; max-width: 100%; height: auto; }
.editor-controls { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.editor-controls button { background: var(--primary-color); color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-family: var(--font-bold); font-size: 0.9rem; transition: background 0.3s ease; }
.editor-controls button:hover { background: var(--primary-light); }
.file-upload-area { margin-bottom: 0.5rem; }
.file-upload-button { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; border: 2px dashed rgba(255, 255, 255, 0.3); border-radius: 10px; background: rgba(0, 0, 0, 0.2); cursor: pointer; transition: all 0.3s ease; font-family: var(--font-primary); }
.file-upload-button:hover { border-color: var(--primary-color); background: rgba(225, 6, 0, 0.1); }
.upload-icon { font-size: 1.2rem; }
.upload-text { font-weight: 500; }
.file-preview { margin-top: 1rem; text-align: center; }
.file-preview img { max-width: 120px; max-height: 120px; border-radius: 10px; border: 2px solid var(--primary-color); }

/* Pilots Section */
.pilots-container { padding: 2rem; background: rgba(225, 6, 0, 0.05); border-bottom: 1px solid var(--card-border); }
.pilots-title { font-family: var(--font-bold); font-size: 2rem; color: var(--primary-color); text-align: center; margin-bottom: 0.5rem; letter-spacing: 1px; }
.pilots-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; }
.pilots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; }

/* Pilot Sections */
.pilot-section { background: var(--card-background); backdrop-filter: blur(10px); border-radius: 15px; padding: 2rem; border: 1px solid rgba(225, 6, 0, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.pilot-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--primary-color); }
.pilot-badge { background: var(--primary-color); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-bold); font-weight: bold; font-size: 1.2rem; }
.pilot-header h4 { font-family: var(--font-bold); font-size: 1.3rem; color: var(--primary-color); margin: 0; letter-spacing: 0.5px; }
.pilot-subsection { margin-bottom: 2rem; padding: 1.5rem; background: rgba(0, 0, 0, 0.2); border-radius: 10px; border-left: 3px solid var(--primary-color); }
.pilot-subsection h5 { font-family: var(--font-bold); color: var(--primary-light); margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: 0.5px; }
.pilot-subsection:last-child { margin-bottom: 0; }

/* Conditions */
.conditions-list { max-width: 800px; margin: 0 auto; }
.condition-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; padding: 1rem; background: rgba(255, 255, 255, 0.05); border-radius: 10px; border-left: 3px solid var(--primary-color); }
.condition-item input[type="checkbox"] { accent-color: var(--primary-color); transform: scale(1.2); margin-top: 0.2rem; }
.condition-item label { color: var(--text-primary); font-family: var(--font-primary); font-size: 0.95rem; line-height: 1.4; cursor: pointer; }

/* Form Actions */
.form-actions { padding: 2rem; text-align: center; background: rgba(0, 0, 0, 0.2); }
.auth-btn { background: linear-gradient(45deg, var(--primary-color), var(--primary-light)) !important; color: white !important; border: none !important; padding: 1.2rem 3rem !important; border-radius: 50px !important; font-family: var(--font-bold) !important; font-size: 1.2rem !important; text-transform: uppercase !important; letter-spacing: 1px !important; cursor: pointer !important; transition: all 0.3s ease !important; box-shadow: 0 8px 25px rgba(225, 6, 0, 0.3) !important; }
.auth-btn:hover { transform: translateY(-3px) !important; box-shadow: 0 12px 35px rgba(225, 6, 0, 0.4) !important; }
.auth-btn:disabled { opacity: 0.6 !important; cursor: not-allowed !important; transform: none !important; }

/* Validation States */
.form-group.error input { border-color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
.form-group.success input { border-color: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
.error-text { color: #fca5a5; font-size: 0.8rem; margin-top: 0.3rem; display: block; }
.success-text { color: #86efac; font-size: 0.8rem; margin-top: 0.3rem; display: block; }

@media (max-width: 1024px) {
    .pilots-grid, .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .registration-form { margin: 0 1rem; }
    .form-section, .pilots-container, .form-actions { padding: 1.5rem; }
    .pilot-section { padding: 1.5rem; }
    .pilots-grid { grid-template-columns: 1fr; gap: 1rem; }
    .section-header h3 { font-size: 1.5rem; }
    .pilots-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .registration-form { border-radius: 10px; }
    .auth-btn { padding: 1rem 2rem !important; font-size: 1rem !important; }
    .pilot-header { flex-direction: column; text-align: center; gap: 0.5rem; }
    .condition-item { flex-direction: column; gap: 0.5rem; }
}

/* ==========================================================================
   STYLES POUR LA LISTE DÉROULANTE PERSONNALISÉE
   ========================================================================== */

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.custom-select-trigger::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.3);
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #1a1a2e;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-select-option:hover {
    background-color: rgba(225, 6, 0, 0.2);
    color: var(--text-primary);
}

.custom-select-option.selected {
    background-color: var(--primary-color);
    color: white;
    font-family: var(--font-bold);
}

/* Style pour la barre de défilement */
.custom-select-options::-webkit-scrollbar {
    width: 8px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-light);
}

/* ==========================================================================
   STYLE POUR LE TEXTE D'AIDE
   ========================================================================== */

.help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(59, 130, 246, 0.1); /* Bleu clair pour l'info */
    border-left: 3px solid #3b82f6; /* Bleu plus prononcé */
    border-radius: 5px;
    line-height: 1.5;
}

.help-text strong {
    color: #93c5fd; /* Bleu encore plus clair pour le nom */
    font-family: var(--font-bold);
}