/**
 * DossierEnseigne Public Styles
 */

:root {
    --de-blue: #1e3a8a;
    --de-blue-light: #3b82f6;
    --de-red: #dc2626;
    --de-green: #16a34a;
    --de-green-light: #22c55e;
    --de-orange: #f97316;
    --de-gray: #64748b;
    --de-gray-light: #f1f5f9;
    --de-gray-border: #e2e8f0;
}

.de-form-container *, .de-client-area * { box-sizing: border-box; }

.de-form-container, .de-client-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #1e293b;
}

.de-form-header, .de-client-header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--de-blue) 0%, var(--de-blue-light) 100%);
    padding: 30px;
    border-radius: 10px;
    color: white;
}

.de-logo { font-size: 28px; font-weight: bold; }
.de-logo-dossier { color: white; background: var(--de-blue); padding: 2px 8px; }
.de-logo-enseigne { color: var(--de-red); }
.de-logo-com { color: var(--de-orange); }
.de-tagline { margin-top: 10px; font-size: 14px; opacity: 0.9; }

.de-steps { display: flex; justify-content: center; gap: 5px; margin-bottom: 30px; flex-wrap: wrap; }
.de-step { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--de-gray-light); border-radius: 25px; font-size: 13px; color: var(--de-gray); transition: all 0.3s ease; }
.de-step.active { background: var(--de-blue); color: white; }
.de-step.completed { background: var(--de-green); color: white; }
.de-step-final.active { background: var(--de-green); }
.de-step-number { width: 24px; height: 24px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.de-section { padding: 25px; border-radius: 15px; margin-bottom: 20px; }
.de-section-blue { background: var(--de-blue); color: white; }
.de-section-green { background: #4a5568; color: white; }
.de-section-gray { background: #6b7280; color: white; }
.de-section-red { background: var(--de-red); color: white; }

.de-section-title { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.de-section-number { width: 40px; height: 40px; background: var(--de-red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; }
.de-section-subtitle { font-size: 16px; margin: 0 0 15px 0; font-weight: 600; }

.de-row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.de-field { flex: 1; min-width: 200px; }
.de-field-small { flex: 0 0 120px; min-width: 120px; }
.de-field-large { flex: 2; }
.de-field-full { flex: 0 0 100%; }

.de-field input, .de-field select, .de-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
    color: #1e293b;
}

.de-field input::placeholder, .de-field textarea::placeholder { color: #94a3b8; }
.de-field textarea { min-height: 80px; resize: vertical; }
.de-hint { display: block; font-size: 11px; margin-top: 5px; opacity: 0.8; color: var(--de-red); }

.de-radio-card { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 15px; background: rgba(255,255,255,0.1); border-radius: 8px; margin-bottom: 10px; }
.de-radio-card input { margin-top: 3px; transform: scale(1.2); }
.de-radio-label strong { display: block; font-size: 16px; }
.de-radio-label small { font-size: 12px; opacity: 0.8; }
.de-ou { text-align: center; font-size: 20px; font-weight: bold; color: var(--de-green-light); margin: 15px 0; }

.de-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; background: rgba(255,255,255,0.9); border-radius: 25px; cursor: pointer; color: #1e293b; font-size: 14px; }
.de-toggle input { width: auto; }
.de-toggle-large { padding: 12px 30px; font-size: 16px; }
.de-etou { color: var(--de-green-light); font-weight: bold; margin: 0 10px; }

.de-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.de-checkbox-grid label { display: flex; align-items: flex-start; gap: 10px; padding: 10px; background: rgba(255,255,255,0.1); border-radius: 6px; cursor: pointer; font-size: 13px; }
.de-checkbox-grid input { margin-top: 2px; }
.de-checkbox-grid small { display: block; font-size: 11px; opacity: 0.8; color: var(--de-red); }

.de-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.de-type-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; background: rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; transition: background 0.3s ease; }
.de-type-card:hover { background: rgba(255,255,255,0.2); }
.de-type-card input[type="checkbox"] { margin-bottom: 10px; transform: scale(1.5); }
.de-type-label { font-weight: bold; font-size: 12px; margin-bottom: 5px; }

.de-upload-zone { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.3); border-radius: 10px; margin: 10px 0; }
.de-upload-zone span { flex: 1; padding: 10px 15px; background: rgba(255,255,255,0.1); border-radius: 5px; }
.de-upload-btn { width: 40px; height: 40px; background: var(--de-green); border: none; border-radius: 50%; color: white; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.de-file-input { display: none; }

.de-uploaded-files { margin-top: 10px; }
.de-uploaded-file { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: rgba(255,255,255,0.1); border-radius: 5px; margin-bottom: 5px; font-size: 13px; }
.de-uploaded-file button { background: var(--de-red); border: none; color: white; padding: 3px 8px; border-radius: 3px; cursor: pointer; }

.de-dimensions-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.de-dimension { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.de-dimension label { width: 40px; height: 40px; background: var(--de-green); color: white; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; }
.de-dimension input[type="number"] { width: 80px; padding: 10px; border: none; border-radius: 5px; text-align: center; }

.de-section-finalisation { background: var(--de-green); }
.de-cgv-item { padding: 15px; margin-bottom: 10px; background: rgba(255,255,255,0.1); border-radius: 8px; }
.de-cgv-item label { display: flex; gap: 15px; cursor: pointer; line-height: 1.5; }
.de-cgv-item input { flex-shrink: 0; margin-top: 3px; transform: scale(1.3); }
.de-cgv-highlight { background: rgba(255,255,255,0.2); font-size: 18px; }
.de-cgv-item a { color: white; text-decoration: underline; }

.de-section-signature { background: white; padding: 20px; border-radius: 10px; }
.de-signature-area { display: flex; gap: 30px; flex-wrap: wrap; }
.de-signature-pad-container { flex: 1; min-width: 300px; position: relative; }
.de-signature-pad-container p { color: var(--de-gray); margin-bottom: 10px; }
.de-signature-pad { width: 100%; height: 150px; border: 2px solid var(--de-gray-border); border-radius: 8px; background: white; }
.de-signature-clear { position: absolute; top: 40px; right: 10px; background: var(--de-gray-light); border: 1px solid var(--de-gray-border); width: 30px; height: 30px; border-radius: 5px; cursor: pointer; }

.de-section-payment { background: white; padding: 25px; border-radius: 10px; border: 2px solid var(--de-gray-border); }
.de-price-summary { margin: 20px 0; }
.de-price-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--de-gray-border); }
.de-price-total { font-size: 20px; font-weight: bold; color: var(--de-red); border-bottom: none; border-top: 2px solid var(--de-blue); margin-top: 10px; padding-top: 15px; }
.de-payment-methods { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.de-payment-option { flex: 1; min-width: 200px; padding: 20px; border: 2px solid var(--de-gray-border); border-radius: 10px; cursor: pointer; display: flex; align-items: center; gap: 15px; transition: border-color 0.3s; }
.de-payment-option:has(input:checked) { border-color: var(--de-blue); background: rgba(30, 58, 138, 0.05); }
.de-payment-option input { transform: scale(1.3); }
.de-payment-label { display: flex; align-items: center; gap: 10px; }

.de-btn { padding: 15px 40px; border: none; border-radius: 30px; font-size: 16px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.de-btn-next, .de-btn-submit { background: var(--de-green); color: white; }
.de-btn-next:hover, .de-btn-submit:hover { background: #15803d; }
.de-btn-prev { background: var(--de-gray-light); color: var(--de-gray); }
.de-btn-primary { background: var(--de-blue); color: white; }
.de-btn-secondary { background: white; color: var(--de-blue); border: 2px solid var(--de-blue); }
.de-btn-warning { background: var(--de-orange); color: white; }
.de-btn-small { padding: 8px 20px; font-size: 14px; }
.de-form-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; }

.de-btn-add-enseigne, .de-btn-add-face { display: flex; align-items: center; gap: 10px; width: 100%; padding: 20px; background: var(--de-blue); color: white; border: none; border-radius: 10px; font-size: 16px; cursor: pointer; margin: 20px 0; }
.de-btn-add-enseigne span, .de-btn-add-face span { width: 30px; height: 30px; background: var(--de-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }

.de-loading { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; color: white; }
.de-loading-spinner { width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.de-alert { padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; }
.de-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.de-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.de-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.de-status-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.de-status-badge.status-blue { background: #dbeafe; color: #1e40af; }
.de-status-badge.status-red { background: #fee2e2; color: #991b1b; }
.de-status-badge.status-orange { background: #ffedd5; color: #9a3412; }
.de-status-badge.status-green { background: #dcfce7; color: #166534; }

.de-client-login { max-width: 400px; margin: 0 auto; background: white; padding: 30px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); text-align: center; }
.de-login-form { text-align: left; margin: 20px 0; }
.de-login-form .de-field { margin-bottom: 15px; }
.de-login-form label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--de-gray); }
.de-login-form input { width: 100%; padding: 12px; border: 2px solid var(--de-gray-border); border-radius: 8px; }
.de-login-form .de-btn { width: 100%; }

.de-dossiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.de-dossier-card { background: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow: hidden; position: relative; }
.de-dossier-card-header { padding: 15px; background: var(--de-gray-light); display: flex; justify-content: space-between; align-items: center; }
.de-dossier-card-body { padding: 15px; }
.de-dossier-card-body p { margin: 5px 0; font-size: 14px; }
.de-dossier-card-footer { padding: 15px; border-top: 1px solid var(--de-gray-border); }

.de-downloads-section { padding: 25px; border-bottom: 1px solid var(--de-gray-border); }
.de-download-card { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--de-gray-light); border-radius: 10px; text-decoration: none; color: inherit; margin-bottom: 10px; }
.de-download-card:hover { background: #e2e8f0; }
.de-download-final { background: #dcfce7; }
.de-download-icon { font-size: 30px; }

.de-info-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 25px; }
.de-info-card { padding: 15px; background: var(--de-gray-light); border-radius: 10px; }
.de-info-card h4 { margin: 0 0 10px; color: var(--de-blue); }
.de-paid { color: var(--de-green); font-weight: 600; }
.de-unpaid { color: var(--de-red); font-weight: 600; }

.de-timeline { padding: 25px; }
.de-timeline-item { padding: 15px; border-left: 3px solid var(--de-blue); margin-left: 10px; margin-bottom: 10px; background: var(--de-gray-light); border-radius: 0 8px 8px 0; }

@media (max-width: 768px) {
    .de-steps { gap: 3px; }
    .de-step { padding: 8px 12px; font-size: 11px; }
    .de-step-label { display: none; }
    .de-row { flex-direction: column; }
    .de-field { min-width: 100%; }
    .de-field-small { flex: 0 0 100%; }
    .de-form-actions { flex-direction: column; }
    .de-btn { width: 100%; text-align: center; }
}
