/* ============================================================
   🎨 VARIABLES & BASE
============================================================ */
:root {
    --card-bg: #1a2332;
    --card-border: rgba(56, 189, 248, 0.3);
    --accent-blue: #38bdf8;
    --accent-green: #00ff88;
    --text-main: #f1f5f9;
    --text-muted: #64748b;
    --chip-gold: linear-gradient(135deg, #fcd34d 0%, #b45309 100%);
}

/* ============================================================
   CONTAINER PRINCIPAL
============================================================ */
.id-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
    margin: 10px auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #f1f5f9;

}


.id-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.id-desc {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* ============================================================
   LA CARTE (RECTANGULAIRE)
============================================================ */
.id-card {
    position: relative;
    width: 120%;
    /* Ratio rectangulaire standard ID-1 */
    aspect-ratio: 1.3 / 1; 
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    backdrop-filter: blur(6px);
}


/* Header */
.id-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.id-uid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #38bdf8;
    letter-spacing: 1px;
}

.id-header i {
    color: #38bdf8;
    font-size: 18px;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

/* Corps de la carte */
.id-body {
    display: flex;
    gap: 8px;
    flex: 1;
}

.id-gender {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: -2px;
}



/* Photo et Badge */
.id-photo {
    position: relative;
    width: 90px;
    height: 110px;
}

.id-photo img {
    width: 85px;
    height: 105px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: #020617;
}



.id-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Informations */
.id-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.id-line label, .id-row label {
    display: block;
    font-size: 8px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    opacity: 0.7;
}

.id-line div, .id-row div {
    font-size: 12px;
    font-weight: 600;
    color: #f8fafc;
}

.id-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.id-line:first-child div {
    font-size: 15px;
    font-weight: 800;
}




.mono {
    font-family: 'JetBrains Mono', monospace;
    color: #cbd5e1 !important;
}

/* Pays & Drapeau */
.country {
    display: flex;
    align-items: center;
    gap: 6px;
}

.country img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

/* Footer */
.id-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-icons {
    display: flex;
    gap: 12px;
    color: #475569;
}

.brand {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    opacity: 0.15;
    letter-spacing: 3px;
}





/* ============================================================
   BOUTON D'ACTION
============================================================ */
.btn-login {
    width: 100%;
    margin-top: 25px;
    background: #00ff88; /* Couleur exacte de l'image */
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.btn-login:active {
    transform: scale(0.97);
}



.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
    filter: brightness(1.1);
}

.btn-login i {
    font-size: 18px;
}


/* Scanlines */
.id-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(56, 189, 248, 0.02) 50%, transparent 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* Shine */
.id-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(56,189,248,0.15), transparent);
    animation: shine 6s infinite;
}