/* =========================================
   BLOC "STOCK LIMITÉ"
========================================= */

.stock-alert {
    width: calc(100% - 32px);
    max-width: 900px;

    margin: 20px auto;
    padding: 16px 20px 14px;

    box-sizing: border-box;

    background: #fffaf3;

    border: 3px dashed #d88900;
    border-radius: 20px;

    text-align: center;

    overflow: hidden;
}


/* =========================================
   MESSAGE
========================================= */

.stock-message {
    margin: 0 0 14px 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.45;

    color: black;

    /* Clignotement du texte */
    animation: stockTextBlink 1.1s ease-in-out infinite;
}


/* =========================================
   CHIFFRE DU STOCK
========================================= */

.stock-number {
    color: #ff8800;

    font-weight: 900;
}


/* =========================================
   CONTENEUR DU TRAIT
========================================= */

.stock-progress {
    width: 82%;
    height: 7px;

    margin: 0 auto;

    border-radius: 10px;

    overflow: hidden;
}


/* =========================================
   TRAIT ANIMÉ
========================================= */

.stock-progress-bar {
    width: 100%;
    height: 100%;

    margin: 0;

    border-radius: 10px;

    background: #f17d73;

    /*
       Le trait reste parfaitement fixe.
       Il disparaît et réapparaît simplement.
    */
    animation: stockLineBlink 1.1s ease-in-out infinite;
}


/* =========================================
   ANIMATION DU TEXTE
========================================= */

@keyframes stockTextBlink {

    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }

    100% {
        opacity: 1;
    }

}


/* =========================================
   ANIMATION DU TRAIT
========================================= */

@keyframes stockLineBlink {

    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

}


/* =========================================
   VERSION MOBILE
========================================= */

@media (max-width: 600px) {

    .stock-alert {
        width: calc(100% - 24px);

        margin: 18px auto;

        padding: 28px 18px 22px;

        border-width: 3px;

        border-radius: 18px;
    }


    .stock-message {
        font-size: 21px;

        line-height: 1.5;

        margin-bottom: 22px;
    }


    .stock-progress {
        width: 82%;

        height: 6px;
    }

}


/* =========================================
   TRÈS PETITS ÉCRANS
========================================= */

@media (max-width: 380px) {

    .stock-alert {
        padding: 25px 14px 20px;
    }


    .stock-message {
        font-size: 19px;

        line-height: 1.45;
    }


    .stock-progress {
        width: 80%;

        height: 6px;
    }

}