/* ==========================================================================
   CHARTE GRAPHIQUE - VARIABLE COMPTE BUSINESS
   ========================================================================== */
:root {
    /* Vos variables de couleurs de référence */
    --primary: #0B1D3A;     /* Bleu profond (Identité & Titres) */
    --secondary: #F2F4F7;   /* Gris neutre clair (Fonds d'écran) */
    --info: #127BFF;        /* Bleu d'accentuation (Focalisation & Liens) */
    --warning: #FF8A00;     /* Orange d'action (Boutons CTA & Étape active) */
    --success: #16C47F;     /* Vert de validation (Étapes validées & Succès) */
    --danger: #E53935;      /* Rouge d'erreur (Champs invalides) */
    --white: #FFFFFF;       /* Blanc pur (Fonds de cartes & Conteneurs) */
    --dark: #1A1A1A;        /* Noir atténué (Texte principal) */

    /* Variables structurelles adaptées au Mobile-First */
    --input-height: 48px;
    --border-radius-custom: 12px;
}

/* ==========================================================================
   STRUCTURE GLOBALE & TYPOGRAPHIE
   ========================================================================== */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--secondary);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

/* En-tête de marque */
.brand-header {
    background-color: var(--primary);
    padding: 24px 16px;
    text-align: center;
    border-bottom: 4px solid var(--warning);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.brand-logo {
    max-height: 48px;
    object-fit: contain;
}

/* Conteneur principal (Remplace l'écart de Falcon par un positionnement surélevé) */
.card-registration {
    margin-top: -32px;
    border-radius: 20px;
    border: none;
    background-color: var(--white);
    box-shadow: 0 12px 30px rgba(11, 29, 58, 0.06);
}

/* ==========================================================================
   COMPOSANT WIZARD / PROGRESSION PAR ÉTAPES (Surcharges Falcon)
   ========================================================================== */
.nav-wizard {
    margin-bottom: 2rem;
}

.nav-wizard .nav-link {
    border: 2px solid #E3E6ED;
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 10px 16px;
    margin: 0 4px;
    transition: all 0.25s ease-in-out;
}

/* Étape active : Priorité à la couleur Warning */
.nav-wizard .nav-link.active {
    background-color: var(--warning) !important;
    border-color: var(--warning) !important;
    color: var(--white) !important;
}

/* Étape franchie avec succès : Changement vers la couleur Success */
.nav-wizard .nav-link.done {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    color: var(--white) !important;
}

/* ==========================================================================
   FORMULAIRES & SAISIE (MOBILE-FIRST)
   ========================================================================== */
.form-label {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    height: var(--input-height);
    border-radius: var(--border-radius-custom);
    border: 1px solid #DCE1E9;
    color: var(--dark);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus de champ actif */
.form-control:focus {
    border-color: var(--info);
    color: var(--dark);
    box-shadow: 0 0 0 4px rgba(18, 123, 255, 0.12);
}

/* ==========================================================================
   ZONE DE TÉLÉVERSEMENT LOGO / IMAGES
   ========================================================================== */
.upload-zone {
    border: 2px dashed #DCE1E9;
    background-color: var(--secondary);
    border-radius: var(--border-radius-custom);
    padding: 2rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-zone:hover, .upload-zone:focus-within {
    border-color: var(--info);
    background-color: rgba(18, 123, 255, 0.02);
}

/* ==========================================================================
   SYSTÈME DE VALIDATION (ALERTES ERREURS)
   ========================================================================== */
.form-control.is-invalid {
    border-color: var(--danger) !important;
    background-image: none; /* Supprime l'icône par défaut de Bootstrap si encombrante sur mobile */
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.15) !important;
}

.invalid-feedback-custom {
    display: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--danger);
    margin-top: 6px;
    padding-left: 4px;
}

.form-control.is-invalid ~ .invalid-feedback-custom {
    display: block;
}

/* ==========================================================================
   BOUTONS ET INTERACTIONS TACTILES
   ========================================================================== */
.btn-djema-next {
    background-color: var(--warning);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    height: var(--input-height);
    border-radius: var(--border-radius-custom);
    padding: 0 32px;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-djema-next:hover, .btn-djema-next:focus {
    background-color: #E07A00; /* Version assombrie pour l'interaction bureau */
    color: var(--white);
}

.btn-djema-next:active {
    transform: scale(0.97); /* Effet d'enfoncement au clic tactile */
}

.btn-djema-prev {
    background-color: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    height: var(--input-height);
    padding: 0 16px;
    transition: opacity 0.2s ease;
}

.btn-djema-prev:active {
    opacity: 0.6;
}

/* Utilitaires de couleur de texte personnalisés */
.text-primary-custom {
    color: var(--primary) !important;
}

/* ==========================================================================
   ADAPTATIONS POUR PETITS ÉCRANS (SMARTPHONES)
   ========================================================================== */
@media (max-width: 576px) {
    .nav-wizard .nav-link {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .card-registration {
        border-radius: 16px;
    }
    
    .btn-djema-next {
        width: auto;
        min-width: 130px;
    }
}


    .product-list-wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .product-list-item {
        border: none;
        border-radius: 12px;
        background-color: var(--white);
        box-shadow: 0 4px 15px rgba(11, 29, 58, 0.03);
        overflow: hidden;
        display: flex;
        align-items: center;
        padding: 12px;
        position: relative;
    }

    .product-img {
        width: 65px;
        height: 65px;
        object-fit: cover;
        border-radius: 8px;
        background-color: var(--secondary);
    }

    .product-info {
        flex: 1;
        padding-left: 14px;
    }

    .product-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 2px;
    }

    .product-stock {
        font-size: 0.75rem;
        color: #748194;
        margin-bottom: 4px;
    }

    .product-price {
        font-weight: 700;
        color: var(--primary);
        font-size: 1rem;
    }
