/* ══════════════════════════════════════════════════════════
   Page Recherche — paulove-recherche.css
   Palette : lien #961c00, bouton #444→#222 (btn-primary site)
   ══════════════════════════════════════════════════════════ */

/* ── Alerte CSRF ─────────────────────────────────────────── */
.recherche-alert {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    border-radius: 6px;
    padding: 12px 20px;
    margin: 10px 0 24px;
    text-align: left;
    font-size: 15px;
}

/* ── Barre de recherche ──────────────────────────────────── */
.recherche-form {
    margin: 28px auto 32px;
    max-width: 900px;
}
.recherche-searchbar {
    display: flex;
    width: 100%;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
}
.recherche-input {
    flex: 1;
    width: 100%;
    height: 72px !important;
    min-height: 72px !important;
    border: none !important;
    padding: 0 24px !important;
    font-size: 22px !important;
    line-height: 72px;
    color: #333;
    outline: none;
    background: #fff;
    min-width: 0;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.recherche-input::placeholder { color: #aaa; }
.recherche-btn-submit {
    flex-shrink: 0;
    height: 72px !important;
    min-height: 72px !important;
    border: none !important;
    background-color: #333;
    background-image: linear-gradient(to bottom, #444, #222);
    color: #fff;
    padding: 0 34px !important;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    transition: background-color .2s;
    box-sizing: border-box;
    vertical-align: top;
    border-radius: 0 !important;
}
.recherche-btn-submit:hover {
    background-image: none;
    background-color: #111;
}

/* ── Barre de comptage ───────────────────────────────────── */
.recherche-count-bar {
    text-align: left;
    margin: 0 auto 20px;
    max-width: 900px;
    padding: 10px 16px;
    background: #f9f9f9;
    border-left: 4px solid #961c00;
    border-radius: 0 4px 4px 0;
    font-size: 15px;
    color: #555;
}
.recherche-count-num   { font-size: 22px; font-weight: bold; color: #222; }
.recherche-count-label { color: #555; }
.recherche-count-page  { font-style: italic; color: #888; font-size: 14px; }
.recherche-count-zero  { color: #888; font-style: italic; }

/* ── Cartes résultats ────────────────────────────────────── */
.recherche-results { margin-top: 6px; max-width: 900px; margin-left: auto; margin-right: auto; }

.recherche-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 18px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e4e4e4;
    /* Hover : uniquement box-shadow — garanti cross-browser */
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
    transition: box-shadow .25s ease;
    text-align: left;
}
.recherche-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
}

/* ── Vignette + zoom fancybox ────────────────────────────── */
.recherche-card-img-wrap {
    flex-shrink: 0;
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.recherche-card-img {
    height: 130px;
    width: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: transform .25s ease, opacity .25s ease;
}
.recherche-card:hover .recherche-card-img {
    transform: scale(1.06);
    opacity: .9;
}
.recherche-card-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: rgba(150,28,0,.0);
    transition: background .25s ease;
    pointer-events: none;
    border-radius: 6px;
}
.recherche-card:hover .recherche-card-zoom {
    background: rgba(150,28,0,.38);
}

/* ── Corps ───────────────────────────────────────────────── */
.recherche-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Titre */
.recherche-card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
.recherche-card-title a          { color: #961c00; text-decoration: none; }
.recherche-card-title a:visited  { color: #961c00; }
.recherche-card-title a:hover    { color: #5e1100; text-decoration: none; }

/* Tags */
.recherche-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.recherche-tag {
    display: inline-block;
    border-radius: 20px;
    font-size: 12px;
    padding: 3px 11px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .18s, color .18s, border-color .18s;
}
.recherche-tag:visited { text-decoration: none; }
.recherche-tag:hover   { text-decoration: none; }

.recherche-tag-type          { background:#fdf0ee; color:#961c00; border-color:#e8c4bb; }
.recherche-tag-type:visited  { color: #961c00; }
.recherche-tag-type:hover    { background-color:#961c00; color:#fff; border-color:#961c00; }

.recherche-tag-taille         { background:#f0f0f0; color:#444; border-color:#d0d0d0; }
.recherche-tag-taille:visited { color: #444; }
.recherche-tag-taille:hover   { background-color:#333; color:#fff; border-color:#333; }

/* Détails (liste) */
.recherche-card-details {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.recherche-detail-label {
    display: inline-block;
    min-width: 52px;
    font-weight: 600;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.recherche-detail-desc {
    color: #777;
    font-style: italic;
}
.recherche-galerie-link          { color: #961c00; text-decoration: none; }
.recherche-galerie-link:visited  { color: #961c00; }
.recherche-galerie-link:hover    { color: #5e1100; text-decoration: none; }

/* Lien CTA */
.recherche-card-link          { display: inline-block; color: #961c00; font-size: 14px; font-weight: bold; text-decoration: none; margin-top: 4px; }
.recherche-card-link:visited  { color: #961c00; }
.recherche-card-link:hover    { color: #5e1100; text-decoration: none; }

/* ── Pagination ──────────────────────────────────────────── */
.recherche-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px auto 10px;
    max-width: 900px;
    align-items: center;
}
.recherche-page-form { display: inline; margin: 0; padding: 0; }
.recherche-page {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 10px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}
.recherche-page:visited { color: #333; }
.recherche-page:hover   { background-color:#333; border-color:#333; color:#fff; text-decoration:none; }
.recherche-page-active  { background-color:#961c00; border-color:#961c00; color:#fff; cursor:default; font-weight:bold; }
button.recherche-page   { font-family: inherit; line-height: 36px; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .recherche-searchbar {
        flex-direction: column;
        border-radius: 8px;
        overflow: visible;
    }
    .recherche-input         { border-radius: 8px 8px 0 0; border-bottom: 1px solid #eee; }
    .recherche-btn-submit    { border-radius: 0 0 8px 8px; padding: 12px; width: 100%; font-size: 16px; }
    .recherche-card          { flex-direction: column; gap: 12px; }
    .recherche-card-img      { height: 90px; }
    .recherche-card-img-wrap { align-self: flex-start; }
}
