/**
 * LaserMS3D Tracker - Page suivi client (responsive)
 */
.laserms3d-tracker-wrapper {
    max-width: 420px;
    margin: 1.5rem auto;
    padding: 1.25rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.laserms3d-tracker-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: #1e293b;
}

.laserms3d-tracker-order {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d9488;
    margin: 0 0 1.25rem;
}

.laserms3d-tracker-error {
    color: #dc2626;
}

/* Texte étape actuelle au-dessus de la barre */
.laserms3d-tracker-step-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d9488;
    margin: 0 0 0.75rem;
    text-align: center;
}

/* Barre de progression épaisse et visible */
.laserms3d-tracker-progress {
    margin-bottom: 1.5rem;
}

.laserms3d-tracker-bar-container {
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.laserms3d-tracker-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 15px;
    transition: width 0.4s ease;
}

.laserms3d-tracker-steps-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(90px, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.laserms3d-tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.laserms3d-tracker-step.done .laserms3d-tracker-label,
.laserms3d-tracker-step.active .laserms3d-tracker-label {
    color: #0d9488;
    font-weight: 600;
}

.laserms3d-tracker-label {
    font-size: 0.8rem;
}

/* Rétrocompatibilité (anciens dots/lines masqués si barre utilisée) */
.laserms3d-tracker-dot,
.laserms3d-tracker-line {
    display: none;
}

.laserms3d-tracker-alert-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #0d9488;
    background: #fff;
    color: #0d9488;
    border-radius: 10px;
    cursor: pointer;
}

.laserms3d-tracker-alert-btn:hover {
    background: #f0fdfa;
}

.laserms3d-tracker-alert-btn.active {
    background: #0d9488;
    color: #fff;
}

.laserms3d-tracker-alert-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.75rem 0 0;
}

.laserms3d-tracker-heure-estimee {
    font-size: 0.95rem;
    color: #0d9488;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.laserms3d-tracker-estimation-mention {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
    margin: 0 0 1rem;
}

.laserms3d-tracker-flash {
    animation: laserms3d-flash 0.6s ease-out;
}

@keyframes laserms3d-flash {
    0% { background-color: transparent; }
    30% { background-color: rgba(13, 148, 136, 0.25); }
    100% { background-color: transparent; }
}

.laserms3d-tracker-prete-pulse {
    animation: laserms3d-prete-pulse 0.5s ease-out;
    font-weight: 700;
    color: #059669;
}

@keyframes laserms3d-prete-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@media (max-width: 480px) {
    .laserms3d-tracker-wrapper {
        margin: 1rem auto;
        padding: 1rem;
    }

    .laserms3d-tracker-step-label {
        font-size: 1rem;
    }

    .laserms3d-tracker-bar-container {
        height: 28px;
    }
}
