/* Page suivi */
  
body {
    background-color: #f8f9fa;
}
.bg-suivi{
    background-color: #1f1f2e;
}

.form-suivi {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 30px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.suivi-title {
    font-size: 24px;
    color: #f8f9fa;
    text-align: center;

}

.tracking-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map {
    width: 100%; 
    height: 320px;
    border-radius: 10px;
    border: 2px solid  #007bff;
}

.suivre{
    background-color: #ff4800;
    font-size: 20px;
    border-radius: 30px;
}

/* progression colis */
.step {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
height: auto; /* Hauteur automatique au lieu de fixe */
min-height: 350px; /* Hauteur minimale pour maintenir l'apparence */
width: 380px;
border: 2px solid #007bff;
border-radius: 15px;
padding: 5px;
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Ombre légère */ 
margin-top: 15px;
transition: all 0.3s ease;
}

/* Conteneur des steps pour aligner les hauteurs */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch; /* Force tous les éléments à s'étirer sur la même hauteur */
}

/* Pour forcer la même hauteur sur tous les steps */
.step {
    flex: 1;
    min-width: 350px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligne le contenu en haut */
}

/* Assurer que le contenu s'étend sur toute la hauteur disponible */
.step > div:last-child {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.circle-number {
width: 50px;
height: 50px;
background-color: #007bff;
color: white;
border-radius: 50%;
text-align: center;
line-height: 50px;
font-weight: bold;
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
margin-top: 13px;
font-size: 40px;
transition: all 0.3s ease;
}

.progression-title {
font-size: 20px;
font-weight: 800;
color: #ff4800;
}

.step div span {
display: flex;
align-items: center;
gap: 8px; 
margin: 5px 0;
}

span i {
color: #4cb610;
}

img.img-fluid {
max-height: 120px;
margin-bottom: 2px;
margin-top: 38px;
}

.row .col {
text-align: center;
}

#whatsapp-gif {
position: fixed;
top: -100px; /* Caché en haut au départ */
right: 20px; /* Position à droite */
transition: top 1s ease-in-out;
z-index: 1000;
}

#whatsapp-gif.show {
top: 80vh; /* Position visible en bas de l'écran */
animation: action 0.5s infinite alternate;
}



/* Affichage Téléphone */

@media screen and (max-width: 768px) {

    .suivre{
        background-color: #ff4800;
        font-size: 20px;
        padding: 15px !important;
    }

    /* Conteneur général */
    .mt-4 {
        padding: 10px;
    }

    /* Titre principal */
    h4 {
        font-size: 1.2rem;
    }

    /* Suppression de l'affichage en colonnes */
    .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Étapes de progression */
    .col {
        margin-bottom: 20px;
        width: 100%;
    }

    /* Étape individuelle */
    .step {
        text-align: center;
        max-width: 90%;
    }

    .step {
        height: auto !important; /* Force la hauteur automatique sur mobile */
        min-height: 270px;
    }
    
    /* Conteneur des steps sur mobile */
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .steps-container .step {
        min-width: 90%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* Images des étapes */
    .step img {
        width: 70px;
        height: auto;
        margin-top: 30px;
    }

    /* Numéros des cercles */
    .circle-number {
        font-size: 1.8rem;
        width: 30px;
        height: 30px;
        line-height: 30px;
        border-radius: 50%;
        background-color: #007bff;
        color: white;
        display: inline-block;
        margin-top: 13px;
    }

    /* Titres de progression */
    .progression-title {
        font-size: 1.2rem;
        font-weight: bold;
    }

    /* Icônes et descriptions */
    .step span {
        display: block;
        font-size: 0.9rem;
        margin-top: 3px;
    }

    /* Alignement des icônes et texte */
    .fa-circle-check {
        margin-right: 3px;
    }

    .notif-chat {
        display: flex;
        justify-content: space-between;
        gap: 10px; /* Ajoute un espace entre les boutons */
    }

    .frais {
        color: #ff0000;
        text-align: center;
        font-size: 12px;
    }

}

.retirer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}

.retirer img {
width: 50%;
}

.retirer-legacy {
color: #ff4800;
}

.frais {
    font-size: 19px;
    color: #ff0000;
    text-align: center;
}

/* Animation de clignotement pour l'icône d'avertissement */
.frais .fa-exclamation-triangle {
    font-size: 20px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Styles pour la barre de progression */
.progress-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0 0;
    padding: 0;
}

.progress-bar-container {
    position: relative;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin: 40px 0 30px 0;
    width: 100%;
    overflow: visible;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(.4,2,.6,1);
    left: 0;
    top: 0;
    z-index: 1;
}

.progress-percentage-circle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
    transition: left 0.5s cubic-bezier(.4,2,.6,1);
    border: 4px solid #fff;
}

.progress-step-indicator {
    display: none;
    position: absolute;
    left: 0;
    top: 60px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 120px;
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
}

.progress-step-indicator span {
    display: block;
}

#progress-step-icon {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 5px;
}

#progress-step-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    white-space: nowrap;
}

.step.completed {
    border-color: #4cb610;
}

.step.active {
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0,123,255,0.3);
}

.step .circle-number {
    transition: all 0.3s ease;
}

.step.completed .circle-number {
    background-color: #4cb610;
}

.step.active .circle-number {
    background-color: #007bff;
    transform: translateX(-50%) scale(1.1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 0;
    width: 100%;
    margin-bottom: 55px;
}

.progress-step {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 4px solid #0080ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    margin-top: -5px;
}

.progress-step.active,
.progress-step.completed {
    border-color: #007bff;
    background-color: #007bff;
}

.progress-step i {
    color: #ff4800;
    font-size: 18px;
}

.progress-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    font-size: 18px;
    color: #6c757d;
    transition: color 0.3s ease;
    width: 90px;
    max-width: 100px;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
    word-break: break-word;
    overflow-wrap: break-word;
}

.progress-step.active .progress-label,
.progress-step.completed .progress-label {
    color: #007bff;
    font-weight: 600;
}

.progress-percentage {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .progress-bar-container {
        margin: 30px 0 20px 0;
        height: 6px;
    }
    .progress-step {
        width: 28px;
        height: 28px;
        margin-top: -16px;
    }
    .progress-label {
        font-size: 12px;
        top: 34px;
        width: 60px;
        max-width: 70px;
    }
    
    .progress-percentage-circle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

.progress-steps .progress-label {
    display: none !important;
}