@charset "UTF-8";

/* STYLE CYBERSÉCURITÉ - Tout en vert fluo sur fond sombre */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background: linear-gradient(135deg, #0a0f0f 0%, #1a2a2a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
}

/* Effet de grille binaire */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 0, 0.03) 2px, rgba(0, 255, 0, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

.container {
    background: rgba(10, 20, 20, 0.95);
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 15px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3),
                inset 0 0 20px rgba(0, 255, 0, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    margin: 5px auto;
}

/* Effet de scan line */
.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    border-radius: 13px;
}

h1 {
    color: #00ff00;
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 8px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
h2 {
    color: #00ff00;
    text-align: center;
    font-size: 17px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 8px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-conducteur {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 30, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 20px;
    padding: 5px 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #00ff00;
}

.badge-conducteur span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.select-group {
    margin: 10px 0;
    padding: 12px;
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 8px;
}

.icon-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: #00ff00;
}

.icon-label span {
    font-size: 16px;
    filter: drop-shadow(0 0 5px #00ff00);
}

label {
    color: #00ff00;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

select, input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    color: #00ff00;
    font-size: 14px;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

select option {
    background: #0a0f0f;
    color: #00ff00;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group > div {
    width: 100%;
}

.compensation-section {
    background: rgba(0, 30, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
}

.compensation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #00ff00;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 5px;
}

.compensation-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.compensation-input-group input {
    flex: 2;
    margin-bottom: 0;
    min-width: 100px;
}

.compensation-input-group span {
    color: #00ff00;
    font-size: 14px;
}

.compensation-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #00ff00;
    opacity: 0.8;
}

button {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 15px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.result {
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.result h2 {
    color: #00ff00;
    font-size: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item {
    color: #00ff00;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px dotted rgba(0, 255, 0, 0.3);
    padding-bottom: 3px;
    font-size: 11px;
    color: #00ff00;
}

.detail-header span {
    font-size: 14px;
    color: #00ff00;
}

.detail-item .value {
    font-size: 14px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    word-break: break-word;
}

.paiement-section {
    grid-column: span 2;
    background: rgba(0, 40, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 12px;
    margin: 5px 0;
}

.paiement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.paiement-row:last-child {
    border-bottom: none;
}

.paiement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #00ff00;
}

.paiement-montant {
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
    color: #00ff00;
}

.recap-box {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.recap-ligne {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
    color: #00ff00;
}

.recap-ligne:last-child {
    margin-bottom: 0;
}

.recap-ligne span:last-child {
    font-weight: bold;
    color: #00ff00;
}

.btn-modifier-peage {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
    width: 100%;
}

/* Style pour le bouton SOLUTION - orange fluo */
.btn-solution {
    background: transparent;
    border: 2px solid #ffaa00;
    color: #ffaa00;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    text-shadow: 0 0 5px #ffaa00;
}

.btn-solution:hover {
    background: rgba(255, 170, 0, 0.1);
    box-shadow: 0 0 20px #ffaa00;
    transform: scale(1.02);
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px #ffaa00; }
    50% { box-shadow: 0 0 20px #ffaa00; }
    100% { box-shadow: 0 0 5px #ffaa00; }
}

/* Section solution - orange fluo */
.solution-section {
    background: rgba(30, 20, 0, 0.9);
    border: 2px solid #ffaa00;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.3);
}

.solution-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffaa00;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ffaa00;
    padding-bottom: 8px;
    text-shadow: 0 0 5px #ffaa00;
}

.solution-content {
    color: #ffaa00;
    font-size: 13px;
    margin-bottom: 15px;
}

.solution-passager {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid #ffaa00;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    color: #ffaa00;
}

.solution-passager-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffaa00;
}

.solution-passager-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #ffaa00;
    opacity: 0.9;
}

.solution-total {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid #ffaa00;
    margin-top: 10px;
    padding-top: 10px;
    text-align: center;
    font-weight: bold;
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.btn-fermer-solution {
    background: transparent;
    border: 1px solid #ffaa00;
    color: #ffaa00;
    padding: 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.btn-fermer-solution:hover {
    background: rgba(255, 170, 0, 0.2);
    box-shadow: 0 0 15px #ffaa00;
}

.highlight {
    color: #ffaa00;
    font-weight: bold;
    text-shadow: 0 0 8px #ffaa00;
}

.wero-badge {
    background: #ffaa00;
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.peage-edit-section {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 30, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 8px;
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.edit-actions button {
    margin: 0;
    padding: 8px;
    font-size: 13px;
    flex: 1;
}

.btn-annuler {
    border-color: #ff0000 !important;
    color: #ff0000 !important;
}

.btn-annuler:hover {
    background: rgba(255, 0, 0, 0.1) !important;
    box-shadow: 0 0 15px #ff0000 !important;
}

.alert-message {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 8px;
    margin-top: 8px;
    text-align: center;
    border-radius: 5px;
    display: none;
    font-size: 12px;
    text-shadow: 0 0 5px #ff0000;
}

.alert-message.show {
    display: block;
}

.data-stream {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    color: #00ff00;
    font-size: 10px;
    margin-top: 15px;
    opacity: 0.5;
    border-top: 1px solid #00ff00;
    padding-top: 10px;
}

.data-stream span {
    animation: blink 2s infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #00ff00;
}

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

/* Petits Écrans */
@media (max-width: 380px) {
    .result-details {
        grid-template-columns: 1fr;
    }
    .paiement-section {
        grid-column: span 1;
    }
}

/* Style pour la section malus */
.malus-section {
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid #ffaa00;
    border-radius: 8px;
    animation: pulseMalus 2s infinite;
}

@keyframes pulseMalus {
    0% { box-shadow: 0 0 5px rgba(255, 170, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 170, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 170, 0, 0.3); }
}

.malus-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #ffaa00;
}

.malus-section input[type="checkbox"]:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #ffaa00);
}

.malus-section label {
    cursor: pointer;
    user-select: none;
}

.malus-section label:hover {
    text-shadow: 0 0 5px #ffaa00;
}

/* Style pour la case à cocher - FORTEMENT VISIBLE */
.malus-section input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    margin: 0 10px 0 0 !important;
    cursor: pointer !important;
    accent-color: #ffaa00 !important;
    transform: scale(1.2);
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    background: transparent !important;
    border: 2px solid #ffaa00 !important;
    border-radius: 4px !important;
}

/* Style pour le label associé */
.malus-section label {
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #ffaa00 !important;
    font-size: 14px !important;
    user-select: none !important;
}

/* Effet de survol */
.malus-section label:hover input[type="checkbox"] {
    box-shadow: 0 0 15px #ffaa00 !important;
    border-color: #ffaa00 !important;
}

/* Style quand la case est cochée */
.malus-section input[type="checkbox"]:checked {
    background-color: #ffaa00 !important;
    box-shadow: 0 0 15px #ffaa00 !important;
}

/* Conteneur de la section malus */
.malus-section {
    margin: 15px 0 !important;
    padding: 15px !important;
    background: rgba(255, 170, 0, 0.15) !important;
    border: 2px solid #ffaa00 !important;
    border-radius: 8px !important;
    animation: pulseMalus 2s infinite !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Styles pour le bouton de détails usure */
.btn-details-usure {
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    width: auto;
}

.btn-details-usure:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px #00ff00;
}

.details-usure {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 30, 0, 0.5);
    border-left: 2px solid #00ff00;
    border-radius: 4px;
    font-size: 10px;
    color: #88ff88;
    display: none;
}

.details-usure.show {
    display: block;
}

.details-usure p {
    margin: 3px 0;
    font-family: 'Courier New', monospace;
}

.conducteur-wero-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #00ff00;
    font-size: 12px;
    font-weight: bold;
    color: #00ff00;
}

.solution-passager-header .highlight {
    font-size: 14px;
}

.btn-facturette {
    background: transparent;
    border: 2px solid #00ffaa;
    color: #00ffaa;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #00ffaa;
}

.btn-facturette:hover {
    background: rgba(0, 255, 170, 0.1);
    box-shadow: 0 0 20px #00ffaa;
    transform: scale(1.02);
}



