/* Fichier : assets/css/rider.css */

/* --- 1. CONFIGURATION GLOBALE --- */
:root {
    --wily-red: #B11226;
    --wily-yellow: #F59E0B;
    --wily-black: #1e293b;
    --wily-cream: #fffdf7;
    --white: #ffffff;
    --gray-soft: #f1f5f9;
    --gray-text: #64748b;
    --radius-card: 20px;
    --radius-btn: 12px;
}

/* LA RÈGLE MAGIQUE D'ALIGNEMENT */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--wily-cream);
    font-family: 'Outfit', sans-serif;
    color: var(--wily-black);
    font-size: 14px;
    /* Taille de base réduite */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 2. HEADER --- */
.header-mini {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--wily-cream);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-logo {
    font-weight: 800;
    font-size: 18px;
    color: var(--wily-red);
}

.app-logo span {
    color: var(--wily-yellow);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    background: var(--wily-black);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
}

.dot-online {
    width: 6px;
    height: 6px;
    background: var(--wily-yellow);
    border-radius: 50%;
    animation: blink 2s infinite;
}

/* --- 3. CARTE MISSION (Alignement Parfait) --- */
.mission-card {
    background: var(--white);
    margin: 15px 20px;
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.mission-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badges d'étape (Plus petits et couleurs Wily) */
.step-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
}

.badge-pickup {
    background: var(--gray-soft);
    color: var(--wily-black);
}

.badge-dropoff {
    background: #fffbeb;
    color: var(--wily-yellow);
    border: 1px solid #fcd34d;
}

.mission-body {
    padding: 20px;
    text-align: center;
}

/* Typographie réduite */
.label-small {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-text);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.title-big {
    font-size: 20px;
    font-weight: 800;
    color: var(--wily-black);
    margin-bottom: 4px;
    line-height: 1.2;
}

.address-row {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* --- 4. INFO BOXES (Largeur 100%) --- */
.info-box {
    width: 100%;
    /* Force la largeur */
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-money {
    background: var(--wily-black);
    color: var(--wily-yellow);
}

.box-alert {
    background: #fff7ed;
    color: #c2410c;
    border: 1px dashed #fdba74;
}

.box-success {
    background: #fffbeb;
    color: var(--wily-yellow);
    border: 1px solid #fcd34d;
}

/* --- 5. BOUTONS (Largeur 100% et Centrés) --- */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn {
    width: 100%;
    /* LE SECRET DE L'ALIGNEMENT */
    border: none;
    padding: 14px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:active {
    transform: scale(0.98);
}

/* Styles Wily */
.btn-primary {
    background: var(--wily-red);
    color: white;
    box-shadow: 0 4px 10px rgba(177, 18, 38, 0.2);
}

.btn-dark {
    background: var(--wily-black);
    color: white;
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--wily-black);
}

.btn-ghost {
    background: var(--gray-soft);
    color: var(--gray-text);
}

/* --- 6. RADAR --- */
.radar-container {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
}

.radar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--wily-yellow);
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--wily-red);
    font-size: 32px;
}

.radar-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--wily-red);
    opacity: 0.5;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}