/**
 * Styles du formulaire d'inscription VDP
 * Base minimale - à compléter
 */

.vdp-inscription-form .btn{
    padding:0 25px!important;
    height: 40px;
}

.vdp-inscription-form .btn.hidden {
    display: none !important;
}

/* Container formulaire */
.vdp-inscription-form {
    width: 100%;
    padding: 20px;
    padding-bottom: 100px;
    position: relative;
}

/* Auth container */
.vdp-auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.vdp-auth-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.vdp-auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.vdp-auth-tab:hover {
    color: #333;
}

.vdp-auth-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.vdp-auth-panel {
    display: none;
}

.vdp-auth-panel.active {
    display: block;
}

.vdp-auth-link {
    text-align: center;
    margin-top: 15px;
}

.vdp-auth-link a {
    color: #666;
    font-size: 0.875rem;
}

/* Header formulaire */
.vdp-form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.vdp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.vdp-user-info {
    margin: 0;
    color: #666;
}

.vdp-form-header p {
    margin: 0;
    color: #666;
}

/* Statut du dossier */
.vdp-dossier-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.vdp-status-label {
    color: #666;
}

.vdp-status-value {
    font-weight: 700;
}

.vdp-status-draft {
    background: #fff3e0;
    border: 1px solid #ffb74d;
}

.vdp-status-draft .vdp-status-value {
    color: #e65100;
}

.vdp-status-submitted {
    background: #e3f2fd;
    border: 1px solid #64b5f6;
}

.vdp-status-submitted .vdp-status-value {
    color: #1565c0;
}

.vdp-status-accepted {
    background: #e8f5e9;
    border: 1px solid #81c784;
}

.vdp-status-accepted .vdp-status-value {
    color: #2e7d32;
}

.vdp-status-rejected {
    background: #ffebee;
    border: 1px solid #e57373;
}

.vdp-status-rejected .vdp-status-value {
    color: #c62828;
}

.vdp-intro-text {
    margin-top: 15px;
}

/* Étapes */
.vdp-form-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vdp-form-step {
    padding: 8px 16px;
    background: #eee;
    border-radius: 4px;
    font-size: 14px;
}

.vdp-form-step.active {
    background: #0073aa;
    color: #fff;
}

.vdp-form-step.completed {
    background: #46b450;
    color: #fff;
}

/* Sections */
.vdp-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vdp-form-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Champs */
.vdp-field {
    margin-bottom:15px;
}

.vdp-field label {
    display: block;
    margin-bottom:5px;
    font-weight: 600;
    color: #000;
}

.vdp-field input[type="text"],
.vdp-field input[type="email"],
.vdp-field input[type="tel"],
.vdp-field input[type="number"],
.vdp-field input[type="date"],
.vdp-field input[type="url"],
.vdp-field input[type="password"],
.vdp-field select,
.vdp-field textarea {
    width: 100%;
    padding:5px 8px;
    border: 2px solid var(--c-green-dark);
    border-radius: 4px;
    font-size:1rem;
}

.vdp-field textarea {
    min-height: 100px;
    resize: vertical;
}

.vdp-field .required {
    color: #dc3232;
}

.vdp-field .description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Erreurs */
.vdp-field.has-error input,
.vdp-field.has-error select,
.vdp-field.has-error textarea {
    border-color: #dc3232;
}

.vdp-field-error {
    color: #dc3232;
    font-size: 0.8125rem;
    margin-top: 5px;
}

/* Boutons */
.vdp-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
    z-index: 10;
    border-top: 1px solid #eee;
    margin-bottom: 0;
}

.vdp-form-actions.sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    max-width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.vdp-auto-save-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    font-size: 0.875rem;
}

.vdp-auto-save-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.vdp-auto-save-success {
    color: #46b450;
    font-weight: 500;
    animation: vdp-fade-in 0.3s ease-in;
}

@keyframes vdp-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vdp-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Upload fichiers */
.vdp-file-upload {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.vdp-file-upload:hover {
    border-color: #0073aa;
}

.vdp-file-upload.dragover {
    border-color: #0073aa;
    background: #f0f7fc;
}

/* Messages */
.vdp-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

/* Toast */
.vdp-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.vdp-toast {
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.vdp-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.vdp-toast-success {
    border-left: 4px solid #46b450;
    color: #155724;
}

.vdp-toast-error {
    border-left: 4px solid #dc3232;
    color: #721c24;
}

.vdp-toast-info {
    border-left: 4px solid #0073aa;
    color: #0073aa;
}

/* Loader */
.vdp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.vdp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: var(--c-green-dark, #2d5016);
    border-radius: 50%;
    animation: vdp-spin 0.8s linear infinite;
}

@keyframes vdp-spin {
    to { transform: rotate(360deg); }
}

/* Accordéon front */
.vdp-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.vdp-accordion-item {
    border-bottom: 1px solid #ddd;
}

.vdp-accordion-item:last-child {
    border-bottom: none;
}

.vdp-accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f9f9f9;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.vdp-accordion-header:hover {
    background: #f0f0f0;
}

.vdp-step-number {
    width: 28px;
    height: 28px;
    background: var(--c-green-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.vdp-accordion-item.completed .vdp-step-number {
    background: #46b450;
    color: #fff;
}

.vdp-step-title {
    flex: 1;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-secondary);
}

.vdp-step-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vdp-check-icon {
    width: 20px;
    height: 20px;
    color: #4CAF50;
}

/* Accordéon validé (sans erreur) */
.vdp-accordion-item.validated .vdp-accordion-header {
    background: #d4efc2;
}

.vdp-accordion-item.validated .vdp-accordion-header:hover {
    background: #c5e8ae;
}

.vdp-accordion-item.validated .vdp-step-status {
    opacity: 1;
}

/* Accordéon avec erreur */
.vdp-accordion-item.has-error .vdp-accordion-header {
    background: #ffebee;
}

.vdp-accordion-item.has-error .vdp-accordion-header:hover {
    background: #ffcdd2;
}

.vdp-accordion-item.has-error .vdp-step-number {
    background: #f44336;
}

.vdp-accordion-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.vdp-accordion-item.open .vdp-accordion-content {
    display: block;
}

/* Grille responsive */
.vdp-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.vdp-row > .vdp-field,
.vdp-row > .vdp-col {
    flex: 1;
    min-width: 0;
}

.vdp-row > .vdp-field {
    margin-bottom: 0;
}

.vdp-row-2 > .vdp-field,
.vdp-row-2 > .vdp-col { flex: 1 1 50%; }

.vdp-row-2 {
    gap: 48px;
}

.vdp-row-3 > .vdp-field,
.vdp-row-3 > .vdp-col { flex: 1 1 33.333%; }

@media (max-width: 768px) {
    .vdp-row {
        flex-direction: column;
        gap: 15px;
    }
    .vdp-row > .vdp-field,
    .vdp-row > .vdp-col {
        flex: none;
        width: 100%;
    }
}

/* Champs conditionnels */
.vdp-conditional {
    display: none;
}

.vdp-conditional.visible {
    display: block;
}

/* Radio group - Pastilles */
.vdp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vdp-radio-label {
    display: inline-block;
    padding: 8px 14px;
    background: var(--c-green);
    color: var(--c-green-dark);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.vdp-radio-label:hover {
    opacity: 0.85;
}

.vdp-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vdp-radio-label.checked,
.vdp-radio-label:has(input:checked) {
    background: var(--c-green-dark);
    color: #fff;
}

/* Hiérarchie : sous-choix décalés */
.vdp-radio-sub {
    margin:0 0 15px 5px;
    padding:10px 15px;
    border-left: 3px solid var(--c-green);
    background: #f9f9f9;
    border-radius: 15px;
}

.vdp-radio-sub .vdp-radio-label {
    font-size: 0.8125rem;
    padding: 6px 12px;
}

/* Explication étape */
.vdp-step-explanation {
    margin: 0 0 30px 0;
    padding: 15px;
    padding-bottom: 15px !important;
    background: #f9f9f9;
    font-size: 0.875rem;
    color: #555;
}

/* Section title */
.vdp-section-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-green-dark);
}

.vdp-info-text {
    margin: 0 0 20px 0;
    font-size: 0.8125rem;
    color: #666;
    font-style: italic;
}

/* Liste items modale (universel) */
.vdp-liste-items {
    margin-bottom: 15px;
}

.vdp-liste-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-left: 3px solid var(--c-green);
    border-radius: 4px;
}

.vdp-liste-item-nom {
    flex: 1;
    font-weight: 600;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.75rem;
}

/* Bouton copier infos étape 1 */
.btn-copy-step1 {
    display: inline-block;
    padding: 8px 16px;
    background: var(--c-green-dark);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s, opacity 0.2s;
}

.btn-copy-step1:hover {
    opacity: 0.9;
}

.btn-copy-step1:active {
    opacity: 0.8;
}

.btn-danger {
    background: #dc3545!important;
    padding:0 15px!important;
    color: #fff!important;
    border: none;
    font-size: 2rem;
}

.btn-danger::after {
    display: none;
}

.btn-danger:hover {
    background: #c82333!important;
}

/* Modale */
.vdp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vdp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.vdp-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.vdp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.vdp-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--c-green-dark);
}

.vdp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.vdp-modal-close:hover {
    color: #333;
}

.vdp-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.vdp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

/* Note (texte plus petit sous un champ) */
.vdp-note {
    font-size: 0.85em;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
    font-style: italic;
}

/* Titre de section dans une étape */
.vdp-field-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #333;
}

/* Texte d'introduction (un peu plus gros que les labels) */
.vdp-field-intro {
    font-size: 1.2em;
    margin: 20px 0 15px 0;
    color: #000;
}

/* ============================================
   Étape 8 : Upload de médias
   ============================================ */

/* Zone de dépôt */
.vdp-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.vdp-upload-zone.drag-over {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.vdp-upload-content {
    margin-bottom: 20px;
}

.vdp-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.vdp-upload-text {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 5px;
}

.vdp-upload-or {
    color: #999;
    margin: 10px 0;
}

.vdp-upload-btn {
    cursor: pointer;
    display: inline-block;
}

.vdp-upload-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vdp-upload-info {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
}

.vdp-upload-info p {
    margin: 3px 0;
}

.vdp-upload-counter {
    font-weight: 600;
    color: #333;
}

/* Zone de progression */
.vdp-upload-progress {
    margin-top: 15px;
}

.vdp-upload-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.vdp-upload-item.success {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.vdp-upload-item.error {
    border-color: #f44336;
    background: #ffebee;
}

.vdp-upload-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.vdp-upload-item-name {
    font-weight: 500;
    word-break: break-all;
    flex: 1;
}

.vdp-upload-item-size {
    color: #666;
    font-size: 0.85em;
}

.vdp-upload-error {
    color: #f44336;
    font-size: 0.85em;
    width: 100%;
}

.vdp-upload-item-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vdp-progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.vdp-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.2s ease;
}

.vdp-progress-percent {
    min-width: 40px;
    text-align: right;
    font-size: 0.85em;
    font-weight: 500;
}

/* Liste des médias */
.vdp-medias-title {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.vdp-medias-list {
    max-height: 500px;
    overflow-y: auto;
}

.vdp-no-medias {
    color: #999;
    font-style: italic;
}

.vdp-media-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
}

.vdp-media-item:hover {
    border-color: #ddd;
    background: #fafafa;
}

.vdp-media-preview {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.vdp-media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.vdp-media-icon {
    font-size: 24px;
}

.vdp-media-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vdp-media-name {
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vdp-media-size {
    font-size: 0.8em;
    color: #888;
}

.vdp-media-delete {
    flex-shrink: 0;
    padding: 5px 10px !important;
    min-width: auto !important;
}

.vdp-media-credits {
    width: 100%;
    padding: 4px 8px;
    font-size: 0.85em;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 4px;
}

.vdp-media-credits:focus {
    border-color: #4CAF50;
    outline: none;
}

.vdp-media-credits::placeholder {
    color: #aaa;
    font-style: italic;
}

/* ============================================
   Étape 9 : Checkboxes stylisées
   ============================================ */

.vdp-checkbox-group {
    margin-bottom: 20px;
}

.vdp-checkbox-styled .vdp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.vdp-checkbox-styled .vdp-checkbox-label:hover {
    border-color: #4CAF50;
    background: #f5f9f5;
}

.vdp-checkbox-styled input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vdp-checkbox-custom {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.vdp-checkbox-styled input[type="checkbox"]:checked + .vdp-checkbox-custom {
    background: #4CAF50;
    border-color: #4CAF50;
}

.vdp-checkbox-styled input[type="checkbox"]:checked + .vdp-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.vdp-checkbox-styled input[type="checkbox"]:focus + .vdp-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.vdp-checkbox-text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
}

.vdp-checkbox-text strong {
    color: #d32f2f;
}

.vdp-link {
    color: #1976D2;
    text-decoration: underline;
}

.vdp-link:hover {
    color: #0d47a1;
}

.vdp-final-message {
    font-size: 1.2em;
    font-weight: 600;
    color: #4CAF50;
    margin-top: 20px;
    text-align: center;
}


/* ======================= */
/* RESPONSIVE BREAK POINTS */
/* ======================= */
@media screen and (max-width:900px){
    .vdp-inscription-form {
        padding: 20px 0;
    }
}