/* ==========================================================================
   1. VARIABLES GLOBALES & CHARTE GRAPHIQUE (OLED DARK)
   ========================================================================== */
:root {
    --bg-dark: #0e1014;
    --card-dark: #1a1d23;
    --input-bg: #252830;
    --pompier-red: #e63946;
    --pompier-green: #34c759;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --nav-height: 75px;
}

/* ==========================================================================
   2. CONFIGURATION DE BASE & LAYOUT MOBILE
   ========================================================================== */
body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.mobile-app {
    width: 100%;
    max-width: 414px; /* Largeur standard type iPhone */
    min-height: 100vh;
    padding: 20px;
    padding-bottom: calc(var(--nav-height) + 30px); /* Laisse de l'espace pour la nav barre fixe */
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   3. EN-TÊTE (HEADER) & ICONES SUPÉRIEURES
   ========================================================================== */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px 0;
    margin-bottom: 20px;
}

.header-titles {
    text-align: center;
}

.header-titles h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.header-titles h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pompier-red);
    margin: -5px 0 0 0;
    text-transform: uppercase;
}

.btn-config {
    position: absolute;
    right: 0;
    top: 5px;
    color: var(--text-white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-config:hover {
    color: var(--pompier-red);
}

/* ==========================================================================
   4. COMPOSANTS VISUELS (IMAGES & BIENVENUE)
   ========================================================================== */
.hero-image {
    width: 100%;
    height: 190px;
    border-radius: 4px; /* Léger arrondi selon la maquette */
    object-fit: cover;
    margin-bottom: 30px;
}

.welcome-block {
    text-align: center;
    margin-bottom: 25px;
}

.welcome-block h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.welcome-block p {
    font-size: 1.1rem;
    color: var(--text-white);
    margin: 8px 0 0 0;
}

/* ==========================================================================
   5. FORMULAIRES & ENTRÉES (INPUTS / SELECTS)
   ========================================================================== */
.form-group {
    position: relative;
    margin-bottom: 15px;
}

.form-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--text-white);
}

.input-field {
    width: 100%;
    background-color: var(--input-bg);
    border: none;
    border-radius: 12px;
    padding: 18px 18px 18px 55px;
    color: var(--text-white);
    font-size: 1.1rem;
    box-sizing: border-box;
}

.select-field {
    width: 100%;
    background-color: var(--input-bg);
    border: none;
    border-radius: 12px;
    padding: 18px;
    color: var(--text-white);
    font-size: 1.1rem;
    appearance: none; /* Masque la flèche par défaut du navigateur */
    margin-bottom: 10px;
}

/* Boutons d'action principaux */
.btn-commencer {
    background-color: var(--pompier-red);
    color: white;
    border: none;
    border-radius: 12px;
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.2s;
}

.btn-commencer:active {
    opacity: 0.8;
}

/* ==========================================================================
   6. ANCIEN RECAP BOX & EN-COURS (ACCUEIL INDEX)
   ========================================================================== */
.recap-card {
    background-color: var(--card-dark);
    border-radius: 20px;
    padding: 25px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #1f232b;
}

.recap-text span {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.recap-text h4 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
}

.recap-text p {
    color: var(--text-gray);
    margin: 5px 0 0 0;
}

.progress-circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 6px solid #252830;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
}

/* ==========================================================================
   7. DESIGN DE LA LISTE DES VÉHICULES (MAQUETTE NETTE CORRIGÉE)
   ========================================================================== */
.vehicule-card {
    background-color: #161920; /* Légèrement éclairci pour détacher du fond noir */
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: inherit;
    border: 1px solid #262b35; /* Bordure plus claire et visible pour marquer le contour */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Ombre pour donner du relief */
    box-sizing: border-box;
}

/* Conteneur image + son badge */
.vehicule-img-container {
    width: 110px;
    height: 85px;
    position: relative;
    flex-shrink: 0;
    margin-right: 15px;
}

.vehicule-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Badge Numéro Rouge (01, 02...) */
.vehicule-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background-color: var(--pompier-red);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Bloc d'informations textuelles */
.vehicule-infos {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px; /* Espace équilibré entre le titre et le statut (vu qu'il n'y a plus de description) */
}

.vehicule-infos h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

/* Statut du contrôle */
.vehicule-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #48bb78;
    font-weight: 500;
    line-height: 1.3;
}

.vehicule-status i {
    font-size: 1rem;
}

.vehicule-status span {
    color: #a0aec0;
}

/* Zone des boutons d'actions intégrée à droite de la carte */
.vehicule-actions-zone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 10px;
    flex-shrink: 0;
    border-left: 1px solid #262b35; /* Séparateur subtil */
}

.action-btn {
    font-size: 1.2rem;
    transition: transform 0.1s, color 0.2s;
    padding: 5px;
}

.action-btn.edit {
    color: var(--text-gray);
}

.action-btn.edit:hover {
    color: var(--text-white);
}

.action-btn.delete {
    color: var(--pompier-red);
}

.action-btn.delete:hover {
    color: #ff5260;
}

/* ==========================================================================
   8. BARRE DE NAVIGATION INFÉRIEURE FIXE (BOTTOM NAV BAR)
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: #0b0d10;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #1a1d23;
    z-index: 1000;
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-gray);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--pompier-red);
}