/* ✅ Conteneur global */
.container-fluid {
    max-width: 95%;
}

.navbar {
    padding: 12px 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 45px;
    margin-left: 0px;
}

.navbar-nav .nav-link {
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #d4edda !important;
}

/* ✅ Titres */
.form-title, .list-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    margin-top: 15px;
}

/* ✅ Style des cartes Bootstrap */
.expedition-card {
    border-radius: 12px !important;
    padding: 10px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    border-left: 5px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* ✅ Ajouté pour le badge */
    min-height: 120px; /* ✅ Hauteur minimale ajustée */
    max-height: 140px; /* ✅ Hauteur max ajustable */
    overflow: hidden;
}

/* ✅ Animation au survol */
.expedition-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ✅ Couleurs des cartes */
.expedition-creation {
    background: linear-gradient(135deg, #af7d5c, #f8be60);
    border-left: 5px solid #000000;
    color: white;
}

.expedition-a-imprimer {
    background: linear-gradient(135deg, #f7c948, #f5b042);
    border-left: 5px solid #d69e2e;
    color: #664d03;
}

.expedition-imprime {
    background: linear-gradient(135deg, #4a90e2, #3b78d3);
    border-left: 5px solid #2c6bb4;
    color: white;
}

.expedition-pret-expedition {
    background: linear-gradient(135deg, #5cb85c, #45a045);
    border-left: 5px solid #367c37;
    color: white;
}
.expedition-expedie {
    background: linear-gradient(135deg, #6c757d, #5a6268); /* Gris */
    border-left: 5px solid #495057;
    color: white;
}


/* ✅ Ajustement du texte */
.expedition-card .card-title {
    font-size: 0.9rem; /* 🔽 Taille augmentée pour lisibilité */
    font-weight: bold;
    white-space: normal;
    word-wrap: break-word; /* ✅ Forcer le passage à la ligne */
    overflow: hidden;
    line-height: 1.2;
    transition: all 0.3s ease-in-out;
}

.expedition-card .card-text {
    font-size: 0.8rem;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    line-height: 1.2;
}

/* ✅ Organisation du contenu */
.expedition-card .info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ✅ Ajustement pour un affichage en 2 colonnes */
.list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ✅ Style des badges (placé en bas à droite) */
.badge-status {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    position: absolute; /* ✅ Permet de fixer le badge */
    bottom: 5px; /* ✅ Aligné en bas */
    right: 5px; /* ✅ Aligné à droite */
}

/* ✅ Enlever le soulignement des liens */
.expedition-link {
    text-decoration: none !important; /* Supprime le soulignement */
    color: inherit; /* Utilise la couleur par défaut du texte */
    display: block; /* Assure que toute la carte est cliquable */
}

/* ✅ Empêche l'effet de focus bleu sur mobile et navigateur */
.expedition-link:focus, 
.expedition-link:active {
    outline: none !important; /* Supprime l'effet de focus */
    box-shadow: none !important; /* Supprime tout effet de clic */
}

/* ✅ Optionnel : Éviter que la carte change de style en hover */
.expedition-link:hover .expedition-card {
    text-decoration: none; /* Empêche le soulignement */
    color: inherit; /* Empêche un changement de couleur */
}

/* ✅ Conteneur du formulaire */
.form-container {
    background-color: #cacbcc;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* ✅ Titres */
.form-title, .list-title {
    font-size: 1.7rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    margin-top: 15px;
}

/* ✅ Style des champs du formulaire */
.form-control {
    border-radius: 8px;
    font-size: 1rem;
    padding: 10px;
}

/* ✅ Bouton de soumission */
.btn-submit {
    background-color: #28a745;
    color: white;
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    width: 100%;
}

.btn-submit:hover {
    background-color: #218838;
}



/* ✅ Responsive */
@media (max-width: 768px) {
    .expedition-card {
        margin-bottom: 15px;
        min-height: 130px; /* ✅ Ajustement sur mobile */
    }
}

@media (max-width: 576px) {
    .form-container,
    .expedition-card {
        padding: 12px;
    }

    .navbar {
        padding: 8px 12px;
    }

    .form-title, .list-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 8px;
    }

    .btn-submit {
        font-size: 0.95rem;
        padding: 8px;
    }
}
@media (max-width: 576px) {
    .badge-status {
        font-size: 0.65rem;
        padding: 4px 8px;
        bottom: 4px;
        right: 4px;
    }

    .expedition-card .card-title {
        font-size: 0.8rem;
    }

    .expedition-card .card-text {
        font-size: 0.7rem;
    }
}
