
        .badge {
            position: relative;
            font-family: 'Arial', sans-serif;
            margin: 0;

            left: 0;
            margin-left: 5px;
            right: 0;
            margin: auto;
            margin-top: 28px;

            width: 350px;
            height: 220px;
            background: linear-gradient(145deg, #f8f4e5, #e8e0d0);
            border-radius: 10px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            border: 2px solid #e8e0d0;
            color: white;
            padding: 15px;
        }

        .badge::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(145deg, #0a1a2f, #1e3a5f);
            z-index: 1;
        }

        .badge-header {
            text-align: center;
            margin-bottom: 15px;
            position: relative;
            z-index: 2;
        }

        .badge-header h1 {
            font-size: 18px;
            margin: 0;
            letter-spacing: 2px;
            font-weight: bold;
            color: #1e3a5f;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            background: linear-gradient(145deg, #f8f4e5, #e8e0d0);
            border-radius: 5px;
        }

        .badge-header p {
            font-size: 10px;
            margin: 5px 0 0;
            color: #a0c4d8;
            text-transform: uppercase;
        }

        .badge-body {
            display: flex;
            position: relative;
            z-index: 2;
        }

        .badge-photo {
            width: 80px;
            height: 100px;
            background: #ccc;
            border: 2px solid #1e3a5f;
            margin-right: 15px;
            background-image: url('img/cadre80x100.png');
            background-size: cover;
        }

        .badge-info {
            flex: 1;
        }

        .badge-info h2 {
            font-size: 16px;
            margin: 0 0 5px;
            color: #1e3a5f;
        }

        .badge-info p {
            font-size: 12px;
            margin: 3px 0;
            color: #1e3a5f;
        }

        .badge-footer {
            margin-top: 10px;
            text-align: center;
            position: relative;
        }

        .badge-footer .barcode {
            height: 30px;
            width: 230px;
            background: repeating-linear-gradient(
                90deg,
                #000,
                #000 2px,
                #fff 2px,
                #fff 4px
            );
            margin: 5px 0;
            border-radius: 3px;
            border: none;
            border-left:4px solid black ;
        }

        .badge-footer p {
            font-size: 8px;
            color: #6b8cae;
            margin: 0;
        }

       /* seal push */
       .pos_seal{
            top: 180px;
            left: 260px;
        }

        .pos_seal2{
            top: 180px;
            left: 315px;
            background: #d4af37;
        }

        .seal {
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        background: #1e3a5f;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 10px;
        font-weight: bold;
        color: #e8e0d0;
        border: 2px solid #f8f4e5;
        /* Effets de bouton */
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        user-select: none; /* Empêche la sélection de texte */
        pointer-events: auto;
    }

    .seal2 {
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        background: #1e3a5f;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 10px;
        font-weight: bold;
        color: #e8e0d0;
        border: 2px solid #f8f4e5;
        /* Effets de bouton */
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        user-select: none; /* Empêche la sélection de texte */
        pointer-events: auto;
    }

    /* Effet au survol*/
    .seal:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        background: black; /* Jaune plus clair*/
    }

    .seal2:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        background: black; /* Jaune plus clair*/
    }

    /* Effet lors du clic */
    .seal:active {
        transform: scale(0.95);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        border-color: black;
    }

    .seal2:active {
        transform: scale(0.95);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        border-color: black;
    }

    .badge.seal-active {
        filter: brightness(1.1);
    }

    /* Animation de validation (optionnelle) */
    @keyframes validated {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
        50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
        100% { transform: scale(1); }
    }

    .seal.validated {
        animation: validated 0.5s ease;
    }

    .seal2.validated {
        animation: validated 0.5s ease;
    }

        /* Style pour l'empreinte digitale */
        .fingerprint {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            width: 60px;
            height: 70px;
            background-image: url('img/fingerprint.png');
            background-size: contain;
            background-repeat: no-repeat;
            opacity: 0.8;
            z-index: 3;
            overflow: hidden;
        }

        /* Animation de scan */
        .fingerprint::before {
            content: "";
            position: absolute;
            top: -10px;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, transparent, rgba(30, 58, 95, 0.8), transparent);
            box-shadow: 0 0 10px rgba(30, 58, 95, 0.7);
            animation: scan 2s linear infinite;
        }

        @keyframes scan {
            0% {
                transform: translateY(-10px);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(80px);
                opacity: 0;
            }
        }

        .myid{
                position: absolute;
                top: 21px;
                left: 118px;
                background: none;
        }

        .myname{
                position: absolute;
                top: 37px;
                left: 133px;
                width: 135px;
                height: 14px;
                border: none;
                background: none;
                overflow: hidden;
                white-space: nowrap; /* Empêche le texte de se découper */
                text-overflow: ellipsis; /* Ajoute "..." si le texte dépasse (optionnel) */
                padding: 0px;
        }

        .timein{
                position: absolute;
                top: 54px;
                left: 155px;
                background: none;
        }

        .timeout{
                position: absolute;
                top: 70.4px;
                left: 150px;
                background: none;
            }

        .localtoday{
                position: absolute;
                top: 87px;
                left: 138px;
                background: none;
            }

        .lblfonction {
                position: absolute;
                display: flex;
                top: 4.5px;
                left: 43px;
                width: auto;
                max-width: 180px;
                height: 21px;
                font-size: 18px;
                color: black;
                font-family: Arial;
                font-weight: bold;
                background-color: whitesmoke;
                padding: 0; /* Correction : `none` n'est pas valide, utilisez `0` */
                text-align: left;
                overflow: hidden;
                white-space: nowrap; /* Empêche le texte de se découper */
                text-overflow: ellipsis; /* Ajoute "..." si le texte dépasse (optionnel) */
        }

        .lblfonction2{
                position: absolute;
                top: 6px;
                left: 10px;
                width: auto;
                height: auto;
                background-color: red;
                font-size: 18px;
                color: black;
                font-family: Arial;
                font-weight: bold;
                background: transparent;
                padding: none;
                text-align: center;
            }

        .clilogo{
                position: absolute;
                top: 0px;
                left: 0px;
                width: 82px;
                height: 30px;
                background-color: red;
                font-size: 18px;
                color: black;
                font-family: Arial;
                font-weight: bold;
                background: transparent;
                padding: none;
                text-align: center;
                border: none;

        }

        .lblconn{
                position: absolute;
                bottom: 0px;
                left: 0px;
                width: 450px;
                height: 8px;
                background-color: red;
                font-size: 9px;
                color: black;
                font-family: Arial;
                background: linear-gradient(145deg, #0a1a2f, #1e3a5f);
                padding: none;
                text-align: center;
                border: none;
                border-radius: ;

        }

        .timezone{
                position: absolute;
                margin-top: 80px;
                left: 12px;
                color: white;
                border: none;
                z-index: 1;
                font-size: 15px;
                background-color: #1a4d5e;
        }
