/**
 * Annuaire BTP — Styles
 * Fichier : annuaire.css
 * À placer dans : artifast-theme/assets/css/annuaire.css
 * À enqueue dans functions.php
 */

/* ─────────────────────────────────────
   VARIABLES & RESET
───────────────────────────────────── */
:root {
    --ann-navy:   #0D2137;
    --ann-orange: #F97316;
    --ann-orange-light: #FFF0E6;
    --ann-orange-dark:  #C45A0A;
    --ann-border: #E5E7EB;
    --ann-text:   #1F2937;
    --ann-muted:  #6B7280;
    --ann-bg:     #F9FAFB;
    --ann-white:  #ffffff;
    --ann-radius: 12px;
    --ann-radius-sm: 8px;
}

.ann-archive-wrap,
.ann-single-wrap {
    font-family: 'Outfit', 'Nunito', sans-serif;
    color: var(--ann-text);
}

/* ─────────────────────────────────────
   CONTAINER
───────────────────────────────────── */
.ann-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ─────────────────────────────────────
   HEADER ARCHIVE
───────────────────────────────────── */
.ann-header {
    background: var(--ann-navy);
    padding: 48px 24px 40px;
}
.ann-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.ann-title {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
}
.ann-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 24px;
}
.ann-search-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
}
.ann-search-form input[type="text"] {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--ann-radius-sm);
    padding: 10px 16px;
    color: #fff;
    font-size: 15px;
    outline: none;
}
.ann-search-form input[type="text"]::placeholder {
    color: rgba(255,255,255,0.45);
}
.ann-search-form input[type="text"]:focus {
    border-color: var(--ann-orange);
}

/* ─────────────────────────────────────
   BOUTONS
───────────────────────────────────── */
.btn-ann-orange {
    display: inline-block;
    background: var(--ann-orange);
    color: #fff;
    border: none;
    border-radius: var(--ann-radius-sm);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-ann-orange:hover { background: #e8650d; }

.btn-ann-outline {
    display: inline-block;
    background: transparent;
    color: var(--ann-orange);
    border: 1.5px solid var(--ann-orange);
    border-radius: var(--ann-radius-sm);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-ann-outline:hover { background: var(--ann-orange-light); }

.btn-ann-full {
    display: block;
    text-align: center;
    margin-top: 10px;
}

/* ─────────────────────────────────────
   FILTRES PILLS
───────────────────────────────────── */
.ann-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.ann-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--ann-border);
    background: var(--ann-white);
    color: var(--ann-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.ann-pill:hover { border-color: var(--ann-orange); color: var(--ann-orange); }
.ann-pill.active {
    background: var(--ann-orange);
    border-color: var(--ann-orange);
    color: #fff;
}

/* ─────────────────────────────────────
   GRILLE ARCHIVE
───────────────────────────────────── */
.ann-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
@media (max-width: 900px) { .ann-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ann-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────
   CARD ARCHIVE
───────────────────────────────────── */
.ann-card {
    background: var(--ann-white);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ann-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.ann-card-top { display: flex; align-items: center; gap: 12px; }
.ann-logo-placeholder,
.ann-logo-img {
    width: 48px; height: 48px;
    border-radius: var(--ann-radius-sm);
    flex-shrink: 0;
    overflow: hidden;
}
.ann-logo-placeholder {
    background: var(--ann-orange-light);
    color: var(--ann-orange-dark);
    font-weight: 600;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(249,115,22,0.2);
}
.ann-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.ann-card-name { font-size: 15px; font-weight: 600; color: var(--ann-text); margin: 0 0 4px; }
.ann-badge {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    padding: 2px 10px; border-radius: 10px;
    background: var(--ann-orange-light); color: var(--ann-orange-dark);
}
.ann-card-desc { font-size: 13px; color: var(--ann-muted); line-height: 1.5; margin: 0; }
.ann-card-meta { display: flex; flex-direction: column; gap: 5px; }
.ann-meta-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--ann-muted);
}
.ann-meta-row svg { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }
.ann-card-footer {
    border-top: 1px solid var(--ann-border);
    padding-top: 12px;
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto;
}
.ann-card-loc { font-size: 12px; color: var(--ann-muted); }
.ann-btn-voir {
    font-size: 13px; font-weight: 600;
    color: var(--ann-orange); text-decoration: none;
}
.ann-btn-voir:hover { color: var(--ann-orange-dark); }

/* ─────────────────────────────────────
   EMPTY + PAGINATION
───────────────────────────────────── */
.ann-empty {
    text-align: center; padding: 60px 20px;
    color: var(--ann-muted); font-size: 16px;
}
.ann-pagination {
    text-align: center; margin: 20px 0;
}
.ann-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px; margin: 0 2px;
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-sm);
    color: var(--ann-text); text-decoration: none; font-size: 14px;
}
.ann-pagination .page-numbers.current,
.ann-pagination .page-numbers:hover {
    background: var(--ann-orange); border-color: var(--ann-orange); color: #fff;
}

/* ─────────────────────────────────────
   SINGLE — BREADCRUMB
───────────────────────────────────── */
.ann-single-wrap { background: var(--ann-bg); min-height: 60vh; }
.ann-breadcrumb {
    font-size: 13px; color: var(--ann-muted);
    margin-bottom: 20px;
}
.ann-breadcrumb a { color: var(--ann-muted); text-decoration: none; }
.ann-breadcrumb a:hover { color: var(--ann-orange); }
.ann-breadcrumb span { color: var(--ann-text); font-weight: 500; }

/* ─────────────────────────────────────
   SINGLE — CARTE
───────────────────────────────────── */
.ann-single-card {
    background: var(--ann-white);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius);
    overflow: hidden;
}

/* Banner */
.ann-single-banner {
    background: var(--ann-navy);
    padding: 28px;
    display: flex; align-items: center; gap: 20px;
}
.ann-single-logo-placeholder,
.ann-single-logo-img {
    width: 80px; height: 80px;
    border-radius: var(--ann-radius);
    flex-shrink: 0; overflow: hidden;
}
.ann-single-logo-placeholder {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 24px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.ann-single-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.ann-single-header-info h1 {
    font-size: 22px; font-weight: 600;
    color: #fff; margin: 0 0 4px;
}
.ann-siret { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0 0 8px; }
.ann-badge-big {
    display: inline-block;
    background: var(--ann-orange); color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: 12px;
}

/* Body split */
.ann-single-body {
    display: grid;
    grid-template-columns: 1fr 300px;
}
@media (max-width: 768px) { .ann-single-body { grid-template-columns: 1fr; } }

.ann-single-main {
    padding: 24px 28px;
    border-right: 1px solid var(--ann-border);
}
@media (max-width: 768px) { .ann-single-main { border-right: none; border-bottom: 1px solid var(--ann-border); } }

.ann-info-block { margin-bottom: 24px; }
.ann-info-block h3 {
    font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--ann-muted);
    margin: 0 0 10px;
}
.ann-info-block p { font-size: 15px; color: var(--ann-text); line-height: 1.6; margin: 0; }
.ann-content { font-size: 15px; color: var(--ann-text); line-height: 1.7; }

.ann-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ann-tag {
    font-size: 13px; padding: 5px 12px;
    border-radius: 20px; border: 1px solid var(--ann-border);
    background: var(--ann-bg); color: var(--ann-text);
}

/* Sidebar */
.ann-single-sidebar { padding: 24px 20px; }
.ann-sidebar-title {
    font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--ann-muted); margin: 0 0 14px;
}
.ann-contact-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.ann-contact-row { display: flex; align-items: center; gap: 10px; }
.ann-contact-icon {
    width: 36px; height: 36px; border-radius: var(--ann-radius-sm);
    background: var(--ann-orange-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ann-contact-icon svg { width: 16px; height: 16px; }
.ann-contact-label { font-size: 11px; color: var(--ann-muted); }
.ann-contact-val {
    font-size: 14px; font-weight: 600; color: var(--ann-text);
    text-decoration: none;
}
.ann-contact-val:hover { color: var(--ann-orange); }

/* Map placeholder (sans GPS) */
.ann-map-placeholder {
    margin-top: 16px;
    background: var(--ann-bg);
    border: 1px solid var(--ann-border);
    border-radius: var(--ann-radius-sm);
    height: 120px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    font-size: 12px; color: var(--ann-muted); text-align: center;
}
