/* Page Suivi de Commande */
.tracking-hero {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.tracking-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tracking-hero p {
    font-size: 18px;
    opacity: 0.95;
}

.tracking-container {
    max-width: 800px;
    margin: -40px auto 80px;
    padding: 0 20px;
}

.tracking-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.tracking-form {
    padding: 40px;
}

.tracking-form h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #111827;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.btn-track {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Zone de résultat */
.tracking-result {
    display: none;
    padding: 40px;
    background: #f9fafb;
}

.order-header {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.order-header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
}

.order-info-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.order-number-display {
    font-family: 'Courier New', monospace;
    color: #D4AF37;
    font-size: 24px;
}

/* Timeline de suivi */
.tracking-timeline {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #B8941F 100%);
    transition: width 1s ease;
    border-radius: 10px;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-step.active .step-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.timeline-step.completed .step-icon {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.timeline-step.active .step-label {
    color: #D4AF37;
    font-weight: 700;
}

.step-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Countdown */
.delivery-countdown {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 16px;
    margin-bottom: 32px;
}

.countdown-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.countdown-time {
    font-size: 48px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}

.countdown-label {
    font-size: 16px;
    color: #92400e;
    font-weight: 600;
}

/* Informations coursier */
.courier-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.courier-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.courier-details h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
}

.courier-phone {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

@media (max-width: 768px) {
    .tracking-hero h1 {
        font-size: 28px;
    }
    
    .timeline-steps {
        flex-direction: column;
        gap: 24px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .order-header-grid {
        grid-template-columns: 1fr;
    }
}
