/* ============================================================
   THEME GLOBAL
   ============================================================ */

body {
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 90%;
    margin: auto;
    padding-bottom: 40px;
}

header {
    text-align: center;
    padding: 20px 0;
}

.logo {
    width: 180px;
    margin-bottom: 10px;
}

h1, h2 {
    color: #ffe600;
    margin-bottom: 10px;
}

a {
    color: #ffe600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
    background: #111;
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
}

.section h2 {
    border-left: 4px solid #ffcc00;
    padding-left: 8px;
}

/* ============================================================
   TABLEAUX
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #111;
}

th, td {
    border: 1px solid #333;
    padding: 8px;
    text-align: center;
}

th {
    background: #222;
    color: #ffe600;
}

tr:nth-child(even) {
    background: #181818;
}

tr:hover {
    background: #222;
}

/* Dates expirées */
.expired {
    background: #660000 !important;
    color: #fff !important;
    font-weight: bold;
}

/* Icônes travaux */
.travaux-icons {
    font-size: 1.2rem;
}

/* Types de véhicules */
.type-auto {
    color: #00ccff;
    font-weight: bold;
}

.type-moto {
    color: #ff00ff;
    font-weight: bold;
}

.type-autres {
    color: #cccccc;
    font-weight: bold;
}

/* ============================================================
   FORMULAIRES
   ============================================================ */

form {
    background: #111;
    padding: 20px;
    border-radius: 6px;
}

label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

textarea {
    resize: vertical;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin: 4px;
}

.btn-primary {
    background: #ff0000;
    color: #fff;
}

.btn-primary:hover {
    background: #cc0000;
}

.btn-secondary {
    background: #444;
    color: #fff;
}

.btn-secondary:hover {
    background: #666;
}

.btn-danger {
    background: #990000;
    color: #fff;
}

.btn-danger:hover {
    background: #cc0000;
}

/* Bouton prolongation (adhérents) */
.btn-prolonger {
    display: block;
    margin-top: 5px;
    padding: 5px 8px;
    background: #ffe600;
    color: #000;
    font-weight: bold;
    border-radius: 4px;
}

.btn-prolonger:hover {
    background: #ffea33;
}

/* ============================================================
   TOP ACTIONS
   ============================================================ */

.top-actions {
    margin: 20px 0;
    text-align: center;
}

/* ============================================================
   IMPRESSION
   ============================================================ */

@media print {

    body {
        background: #fff;
        color: #000;
    }

    .page-wrapper {
        width: 100%;
    }

    header img {
        width: 150px;
    }

    .btn,
    .top-actions,
    .btn-prolonger {
        display: none !important;
    }

    table {
        border: 1px solid #000;
    }

    th, td {
        border: 1px solid #000;
        color: #000 !important;
        background: #fff !important;
    }

    .expired {
        background: #ffcccc !important;
        color: #000 !important;
    }
}
