/* assets/style.css */

/* ============================================================
   BASE
   ============================================================ */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #111;
    color: #eee;
}

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

a:hover {
    text-decoration: underline;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
    background: radial-gradient(circle at top, #333 0, #000 60%);
    border-bottom: 3px solid #ff0000;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 24px;
}

.header-logo span.bloc {
    color: #ffcc00;
}

.header-logo span.moteur {
    color: #ff0000;
}

/* ============================================================
   MENU STYLE 2 — NEON CYBERPUNK
   ============================================================ */

.header-nav {
    display: flex;
    gap: 12px;
}

.header-nav a {
    padding: 10px 18px;
    border-radius: 6px;
    background: #111;
    border: 2px solid #ff0000;
    color: #ffcc00;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    box-shadow: 0 0 8px #ff0000;
    transition: 0.2s;
}

.header-nav a:hover {
    background: #ff0000;
    color: #000;
    box-shadow: 0 0 12px #ffcc00;
    text-decoration: none;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px 40px;
}

.card {
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #ff0000;
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(90deg, #ff0000, #ffcc00);
    color: #000;
}

.btn-secondary {
    background: #333;
    color: #eee;
}

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

/* ============================================================
   FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #111;
    color: #eee;
}

label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: block;
}

/* ============================================================
   TABLES
   ============================================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th,
.table td {
    border: 1px solid #333;
    padding: 8px;
    font-size: 13px;
}

.table th {
    background: #222;
    text-transform: uppercase;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

.badge-admin {
    background: #ff0000;
    color: #fff;
}

.badge-lecteur {
    background: #ffcc00;
    color: #000;
}

.badge-inactif {
    background: #555;
    color: #ccc;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    color: #777;
    border-top: 1px solid #222;
    margin-top: 40px;
}

/* ============================================================
   FLATPICKR
   ============================================================ */

.flatpickr-calendar {
    background: #1a1a1a !important;
    color: #eee !important;
    border: 1px solid #ff0000 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(90deg, #ff0000, #ffcc00) !important;
    color: #000 !important;
}

.flatpickr-day:hover {
    background: #ffcc00 !important;
    color: #000 !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {

    /* HEADER */
    .header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    /* MENU → vertical */
    .header-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .header-nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 14px;
        margin: 4px 0;
    }

    /* MAIN */
    .main {
        margin: 10px auto;
        padding: 0 10px 20px;
    }

    /* CARD */
    .card {
        padding: 15px;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* BUTTONS */
    .btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 5px;
    }

    /* INPUTS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 14px;
        padding: 7px 8px;
    }

    /* TABLES → cartes */
    .table,
    .table thead,
    .table tbody,
    .table th,
    .table td,
    .table tr {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 12px;
        border: 1px solid #333;
        padding: 10px;
        border-radius: 6px;
        background: #1a1a1a;
    }

    .table th {
        background: none;
        border: none;
        font-weight: bold;
        padding: 0;
        margin-bottom: 5px;
    }

    .table td {
        border: none;
        padding: 4px 0;
        font-size: 14px;
    }

    .table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ffcc00;
        display: block;
        margin-bottom: 2px;
        text-transform: uppercase;
        font-size: 11px;
    }

    /* BADGES */
    .badge {
        font-size: 10px;
        padding: 2px 5px;
    }

    /* FOOTER */
    .footer {
        font-size: 11px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {

    .header-logo {
        font-size: 20px;
    }

    .card-title {
        font-size: 16px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .table tr {
        padding: 8px;
    }

    .table td {
        font-size: 13px;
    }
}
