/* ========================================
   STYLES - CRÉATION DE TICKET
   ======================================== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1a202c;
}

.ticket-form-container {
    max-width: 56rem;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
}

/* INDICATEUR D'ÉTAPES */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.step.completed .step-circle {
    background: #10b981;
    color: #ffffff;
}

.step-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.5rem;
}

.step.active ~ .step-line {
    background: #2563eb;
}

/* ÉTAPES DU FORMULAIRE */
.form-step {
    animation: fadeIn 0.4s ease-out;
}

.form-step.hidden {
    display: none;
}

.form-step h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

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

/* ÉTAPE 1: GRILLE DE TYPES */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.type-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-card:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.type-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.type-card p {
    font-size: 0.875rem;
    color: #64748b;
}

/* ÉTAPE 2: LISTE D'URGENCE */
.urgence-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.urgence-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.urgence-card:hover {
    border-color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.urgence-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.urgence-content {
    flex: 1;
}

.urgence-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.urgence-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.urgence-time {
    display: inline-block;
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 600;
}

/* ÉTAPE 3: FORMULAIRE */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

/* UPLOAD DE FICHIERS */
.file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-upload p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.file-upload span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.file-item-name {
    font-size: 0.875rem;
    color: #1a202c;
}

.file-item-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 1.25rem;
}

/* SUGGESTIONS D'ARTICLES */
.suggestions-box {
    background: #dbeafe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1.5rem;
}

.suggestions-box h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

.suggestions-box a {
    display: block;
    color: #1e40af;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.suggestions-box a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* ACTIONS DU FORMULAIRE */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-back {
    padding: 0.75rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1a202c;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f8fafc;
}

/* ÉTAPE 4: CONFIRMATION */
.confirmation-content {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.check-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.confirmation-content > p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.ticket-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 1rem 0 1.5rem;
}

.next-steps {
    background: #dbeafe;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: left;
    margin: 1.5rem 0;
}

.next-steps h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    color: #1e40af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ticket-form-container {
        padding: 1.5rem;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }

    .steps-indicator {
        padding: 0;
    }

    .step-label {
        display: none;
    }

    .form-actions {
        flex-direction: column;
    }
}