body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #e3ecfc 0%, #fdf6fa 100%);
    color: #2b2c34;
    min-height: 100vh;
    padding: 0;
}

h1 {
    margin: 30px 0 18px 0;
    font-size: 2.2em;
    color: #3a7be1;
    letter-spacing: 1px;
    text-align: center;
}

div {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

button {
    background: linear-gradient(90deg,#3a7be1 70%,#88e0ef 100%);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px #2266bb22;
    font-weight: 600;
    letter-spacing: .05em;
    font-size: 1em;
    cursor: pointer;
    transition: background .18s, box-shadow .18s, transform .14s;
}
button:hover {
    background: linear-gradient(90deg,#316cc7 70%,#6edaf5 100%);
    box-shadow: 0 6px 22px #397fd344;
    transform: translateY(-2px) scale(1.05);
}

input[type="text"], select, textarea, input[type="number"] {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid #b4d2fa;
    background: #f7faff;
    font-size: 1em;
    transition: border .18s;
    margin-bottom: 8px;
    box-shadow: 0 1px 5px #c2d7fa22;
    outline: none;
    min-width: 160px;
}
input[type="text"]:focus, select:focus, textarea:focus, input[type="number"]:focus {
    border: 1.5px solid #3a7be1;
    background: #eaf3ff;
}

form {
    background: #fff;
    margin: 35px auto;
    max-width: 390px;
    border-radius: 20px;
    box-shadow: 0 4px 30px #3a7be11c;
    padding: 34px 30px 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

label {
    font-size: 1em;
    font-weight: 500;
    color: #3a7be1;
    margin-bottom: 3px;
}
textarea {
    min-height: 48px;
    max-width: 100%;
}

#search {
    display: block;
    margin: 0 auto 22px auto;
    width: 320px;
    font-size: 1.06em;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 98%;
    margin: 0 auto 30px auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 22px #3a7be11a;
}

th, td {
    padding: 16px 12px;
    text-align: left;
    font-size: 1.08em;
}

th {
    background: #3a7be1;
    color: #fff;
    font-weight: 700;
    letter-spacing: .05em;
    border: none;
}

tr {
    transition: background .14s;
}
tr:nth-child(even) {
    background: #f3f7fe;
}
tr:hover {
    background: #eaf1fc;
}

td {
    vertical-align: middle;
    color: #232323;
    border-bottom: 1px solid #e3e8f4;
}

td:last-child, th:last-child {
    text-align: center;
}

a {
    text-decoration: none;
    color: #3a7be1;
    font-size: 1.19em;
    margin: 0 7px;
    transition: color .14s, transform .12s;
}
a:hover {
    color: #f56ca4;
    transform: scale(1.18);
}

/* État couleurs */
td[data-etat="Bon"]    { color: #1ba96b; font-weight: 600; }
td[data-etat="HS"]     { color: #e12c2c; font-weight: 600; }
td[data-etat="En réparation"] { color: #e18a2c; font-weight: 600; }

/* Responsive mobile */
@media (max-width: 750px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    table {
        border-radius: 14px;
        box-shadow: 0 2px 14px #2e54c62a;
    }
    thead tr {
        display: none;
    }
    tr {
        margin-bottom: 12px;
        box-shadow: 0 1px 8px #2266bb14;
        border-radius: 10px;
        background: #fff;
        padding: 8px;
    }
    td {
        border: none;
        padding: 9px 16px;
        position: relative;
        font-size: 1em;
    }
    td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #3a7be1;
        display: block;
        margin-bottom: 4px;
        font-size: .95em;
    }
}
