/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.mt-5 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ===== Titres ===== */
h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(100, 100, 255, 0.3);
}

/* ===== Champ de recherche ===== */
.form-inline {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #7c6cf0;
    box-shadow: 0 0 20px rgba(124, 108, 240, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ===== Tableau des resultats ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    border: none !important;
}

table th {
    background: rgba(124, 108, 240, 0.3);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: left;
    border: none;
}

table th:first-child { border-radius: 12px 0 0 12px; }
table th:last-child { border-radius: 0 12px 12px 0; }

table td {
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    border: none;
    vertical-align: middle;
    transition: background 0.2s ease;
}

table tr:hover td {
    background: rgba(124, 108, 240, 0.12);
}

table td:first-child { border-radius: 12px 0 0 12px; }
table td:last-child { border-radius: 0 12px 12px 0; }

table td a {
    color: #d0ccff;
    text-decoration: none;
    transition: color 0.2s;
}

table td a:hover {
    color: #fff;
}

table td img {
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

/* ===== Boutons ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #7c6cf0, #5a4fd4);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 108, 240, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8e80f5, #6b5fe0);
    box-shadow: 0 6px 20px rgba(124, 108, 240, 0.5);
    transform: translateY(-1px);
}

.btn-default,
.btn-radius {
    background: rgba(255, 255, 255, 0.1);
    color: #d0ccff;
    border: 1px solid rgba(124, 108, 240, 0.3);
}

.btn-default:hover,
.btn-radius:hover {
    background: rgba(124, 108, 240, 0.2);
    color: #fff;
    border-color: rgba(124, 108, 240, 0.6);
    transform: translateY(-1px);
}

/* bouton en haut de rechercher.php */
a > button.btn {
    font-family: inherit;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a {
    background: rgba(255, 255, 255, 0.06);
    color: #c0bcff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination a:hover {
    background: rgba(124, 108, 240, 0.2);
    color: #fff;
    border-color: rgba(124, 108, 240, 0.4);
}

.pagination span.current {
    background: linear-gradient(135deg, #7c6cf0, #5a4fd4);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(124, 108, 240, 0.35);
}

/* ===== Formulaire de contact ===== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #c0bcff;
}

.form-group .form-control {
    border-radius: 12px;
    max-width: 100%;
}

.form-group textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

form .btn-primary {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0;
    padding: 14px;
    font-size: 1rem;
}

/* ===== Message "Aucun resultat" ===== */
p {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-top: 2rem;
}

/* ===== Page envoyer.php ===== */
center {
    display: block;
    text-align: center;
    color: #d0ccff;
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    body { padding: 10px; }

    .container { padding: 15px; }

    h1 { font-size: 1.3rem; }

    table th,
    table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    table td img {
        width: 40px !important;
        height: 40px !important;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
