:root {
    --success: #05b40e;
    --progress: #33AFFF;
    --echec: #e93508;
}

* {
    box-sizing: border-box;
}


/* passer body (et tous les éléments de largeur fixe) en largeur automatique */

body {
    width: auto;
    margin: 0;
    padding: 0;
}


/* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

img,
table,
td,
blockquote,
code,
pre,
textarea,
input,
iframe,
object,
embed,
video {
    max-width: 100%;
}


/* conserver le ratio des images */

img {
    height: auto;
}

table {
    margin-left: auto;
    margin-right: auto;
    padding: 3px;
}

th,
td {
    border: 1px solid red;
    border-collapse: collapse;
    padding: 10px;
}


/* gestion des mots longs */

textarea,
code,
pre,
samp {
    -webkit-hyphens: auto;
    /* césure propre */
    -moz-hyphens: auto;
    hyphens: auto;
    word-wrap: break-word;
    /* passage à la ligne forcé */
}

code,
pre,
samp {
    white-space: pre-wrap;
    /* passage à la ligne spécifique pour les éléments à châsse fixe */
}


/* Passer à une seule colonne (à appliquer aux éléments multi-colonnes) */

.element1,
.element2 {
    float: none;
    width: auto;
}


/* masquer/afficher les éléments  */

.u-mobile {
    display: block;
    display: revert !important;
    /* affichage des éléments */
}

.u-no-mobile {
    display: none !important;
    /* masquage des éléments */
}


/* Un message personnalisé */

body:before {
    /*content: "Nous vérifions votre paiement Airtel Money.";*/
    display: block;
    text-align: center;
    font-style: italic;
    color: #777;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#error,
#ticket {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#progress {
    width: 95%;
    border: 1px solid #aaa;
    /*height: 60px;*/
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#progress .bar {
    background-color: var(--progress);
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

#message {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#msg_verif {
    font-style: italic;
    color: #777;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progressbar-wrapper {
    background-color: #dfe6e9;
    color: white;
    border-radius: 15px;
    width: 100%;
}

.progressbar {
    background-color: var(--progress);
    color: white;
    padding: 1rem;
    text-align: right;
    font-size: 20px;
    border-radius: 15px;
}

.progressbar[title="downloading"] {
    background-color: var(--progress);
}

.progressbar[title="succes"] {
    background-color: var(--success);
}

.progressbar[title="echec"] {
    background-color: var(--echec);
}


/* Ajout de style supplémentaire avec bouton d'impression pdf */

.buttons {
    background-color: blue;
    /* Couleur de fond */
    color: white;
    /* Couleur du texte */
    border: none;
    /* Pas de bordure */
    border-radius: 50%;
    /* Forme circulaire */
    width: 80px;
    /* Largeur */
    height: 80px;
    /* Hauteur */
    font-size: 20px;
    /* Taille du texte */
    position: fixed;
    /* Position fixe */
    bottom: 20px;
    /* En bas du viewport */
    right: 20px;
    /* À droite du viewport */
}

.btnTicket {
    /*position: fixed;*/
    /* Position fixe */
    bottom: 20px;
    /* En bas du viewport */
    /*right: 20px;*/
    /* À droite du viewport */
    display: inline-block;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    background-image: url("https://desthin.net/v1/img/btn.png");
    background-size: cover;
    border: none;
    font-size: 0;
    /* pas de texte visible par défaut */
}

div.bas-droite {
    position: fixed;
    right: 20px;
    bottom: 20px;
    border: none;
}

div.bas-gauche {
    position: fixed;
    left: 20px;
    bottom: 20px;
    border: none;
}

.btnTicket:hover {
    cursor: pointer;
    transform: scale(1.1);
    font-size: 16px;
    /* texte visible et plus grand au survol */
}

.btnTicket:hover::after {
    content: "Achetez un ticket";
    position: absolute;
    top: -20px;
    left: -10px;
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 5px;
}

div.msg {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 20px;
    border: 1px solid black;
    color: yellow;
    background-color: black;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

div.centre {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

div.moyen-centre {
    position: fixed;
    top: 25%;
    transform: translateY(-50%);
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
}

.hide {
    visibility: hidden;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}