/* ========================
   RESET MODERNE
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fb;
    color: #333;
}

/* ========================
   HEADER (NAVBAR)
======================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #0f89cb;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.navbare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #17418a;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

/* ========================
   MAIN CONTENT (CORPS)
======================== */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* ========================
   FORMULAIRE (CORPS)
======================== */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.input-group {
    position: relative;
}

.input-group input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    width: 350px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.2);
}

/* ========================
   SUGGESTIONS
======================== */
.suggestions {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: #17418a;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

.suggestions .item {
    padding: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.suggestions .item:hover {
    background: #db3832;
}

/* ========================
   BUTTON
======================== */
button {
    padding: 10px 50px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* ========================
   TABLE
======================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

thead {
    background: #115780;
    color: white;
}

th, td {
    padding: 12px 10px;
    text-align: left;
}

th {
    font-size: 14px;
    text-transform: uppercase;
}

tbody tr {
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

tbody tr:hover {
    background: #f9fbff;
}

/* ========================
   ACTION BUTTON
======================== */
.btn-add-photo {
    display: inline-block;
    padding: 6px 10px;
    background: #0d47a1;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-add-photo:hover {
    background: black;
    color: yellow;
}

/* ========================
   MESSAGE
======================== */
#result td {
    text-align: left;
    font-weight: bold;
}

/* ========================
   FOOTER
======================== */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #6b7280;
}

/* ========================
   RESPONSIVE (INCHANGÉ)
======================== */
@media (max-width: 768px) {

    body {
        padding: 0;
        margin: 0;
        font-family: Century Gothic;
        font-size: 12px;
    }

    .container {
        padding: 0;
        width: 100%;
    }

    h2 {
        font-size: 18px;
        padding: 10px;
    }

    .navbare {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
       .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .input-group input {
        width: 100%;
        margin-bottom: 8px;
    }

    button {
        width: 100%;
    }

    table {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        width: 100%;
        background: white;
        margin: 0;
        padding: 10px;
        border-bottom: 8px solid #f5f7fb;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #1976d2;
        flex: 1;
        text-align: left;
    }

    .mmm {
        color: #0d47a1;
        margin-left: -15%;
    }

    tbody td span,
    tbody td a {
        flex: 1;
        text-align: right;
    }

    .btn-add-photo {
        width: 100%;
        text-align: center;
        margin-top: 5px;
        padding: 10px;
    }

    .mkd {
        text-align: justify;
        margin-left: 5%;
        margin-right: 5%;
    }
}