/* annonceclasser — page d'accueil 2026 (styles dédiés, aucun impact sur les pages internes) */
:root {
    --hc-brand: #0a8dd0;
    --hc-brand-dark: #0772a8;
    --hc-brand-light: #e8f6fe;
    --hc-ink: #0f172a;
    --hc-muted: #64748b;
    --hc-line: #e2e8f0;
    --hc-bg: #f5f8fb;
    --hc-card: #ffffff;
    --hc-radius: 16px;
    --hc-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --hc-shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.hc-body {
    margin: 0;
    color: var(--hc-ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.hc-body img { max-width: 100%; }
.hc-body a { color: inherit; text-decoration: none; }
.hc-body h1, .hc-body h2, .hc-body h3, .hc-body p, .hc-body dl, .hc-body dd, .hc-body ul { margin: 0; }
.hc-body ul { padding: 0; list-style: none; }
.hc-body button, .hc-body input, .hc-body summary { font: inherit; }
.hc-body :focus-visible { outline: 3px solid rgba(10, 141, 208, .45); outline-offset: 2px; }

.hc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hc-icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: 0 0 auto; }
.hc-icon-sm { width: 1em; height: 1em; }

.hc-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hc-btn-primary { background: var(--hc-brand); color: #fff; box-shadow: 0 4px 14px rgba(10, 141, 208, .28); }
.hc-btn-primary:hover { background: var(--hc-brand-dark); box-shadow: 0 6px 18px rgba(10, 141, 208, .34); }
.hc-btn-light { background: #fff; color: var(--hc-brand-dark); }
.hc-btn-light:hover { background: #eaf8ff; }

/* ---------- En-tête ---------- */
.hc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--hc-line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.hc-header-in { display: flex; align-items: center; height: 68px; gap: 16px; }
.hc-logo { display: flex; align-items: center; flex: 0 0 auto; }
.hc-logo img { height: 27px; width: auto; }

.hc-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; color: #334155; white-space: nowrap; }
.hc-nav a { padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.hc-nav a:hover { color: var(--hc-brand-dark); border-color: var(--hc-brand); }
.hc-nav-all { color: var(--hc-brand-dark) !important; }

.hc-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; margin-left: auto; }
.hc-login { font-size: 14px; color: #475569; white-space: nowrap; }
.hc-login:hover { color: var(--hc-brand-dark); }

.hc-burger { display: none; position: relative; }
.hc-burger summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 1px solid var(--hc-line);
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
}
.hc-burger summary::-webkit-details-marker { display: none; }
.hc-burger summary span { display: block; height: 2px; border-radius: 2px; background: #334155; }
.hc-burger[open] summary { border-color: var(--hc-brand); }
.hc-burger-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - 40px));
    max-height: 70vh;
    overflow: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 14px;
    box-shadow: var(--hc-shadow);
    z-index: 60;
}
.hc-burger-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    color: #334155;
}
.hc-burger-panel a:hover { background: var(--hc-brand-light); color: var(--hc-brand-dark); }
.hc-burger-panel em { font-style: normal; font-size: 12px; color: var(--hc-muted); }

/* ---------- Hero ---------- */
.hc-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 88% -20%, rgba(0, 175, 240, .5), transparent 62%),
        radial-gradient(720px 420px at 4% 115%, rgba(56, 189, 248, .28), transparent 60%),
        linear-gradient(135deg, #062a44 0%, #0a4d75 48%, #0a8dd0 100%);
}
.hc-hero-in { padding-top: 68px; padding-bottom: 64px; max-width: 1200px; }
.hc-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hc-hero h1 { max-width: 780px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.hc-hero h1 span { color: #8fe6ff; }
.hc-hero-sub { max-width: 680px; margin-top: 16px !important; font-size: 16px; color: rgba(255, 255, 255, .82); }

.hc-hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 820px;
    margin-top: 28px;
    padding: 8px 8px 8px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(2, 20, 35, .28);
    color: var(--hc-muted);
}
.hc-hero-search .hc-icon { width: 22px; height: 22px; color: #94a3b8; }
.hc-hero-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--hc-ink);
    font-size: 16px;
    outline: none;
}
.hc-hero-search .hc-btn { height: 48px; padding: 0 26px; font-size: 15px; }

.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hc-chips a {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 13px;
    transition: background .18s ease;
}
.hc-chips a:hover { background: rgba(255, 255, 255, .24); }

.hc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 820px; margin-top: 36px !important; }
.hc-stats > div { padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, .22); }
.hc-stats dt { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.hc-stats dd { font-size: 12.5px; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Sections ---------- */
.hc-section { padding: 56px 0; }
.hc-section-alt { background: var(--hc-bg); border-top: 1px solid var(--hc-line); border-bottom: 1px solid var(--hc-line); }
.hc-sec-head { margin-bottom: 26px; }
.hc-sec-head h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.hc-sec-head p { margin-top: 6px !important; font-size: 14px; color: var(--hc-muted); }
.hc-sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hc-more { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; padding-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--hc-brand-dark); }
.hc-more:hover { color: var(--hc-brand); }

/* ---------- Catégories ---------- */
.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hc-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-radius: 14px;
    box-shadow: var(--hc-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hc-cat:hover { transform: translateY(-2px); border-color: #bfe3f5; box-shadow: var(--hc-shadow); }
.hc-cat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--hc-brand-light);
    color: var(--hc-brand-dark);
}
.hc-cat-ico .hc-icon { width: 24px; height: 24px; }
.hc-cat-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.hc-cat-txt strong { font-size: 15px; line-height: 1.3; text-transform: capitalize; }
.hc-cat-txt small { margin-top: 2px; font-size: 12px; color: var(--hc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-cat-count { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12.5px; font-weight: 600; }

/* ---------- Annonces ---------- */
.hc-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.hc-ad {
    background: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    overflow: hidden;
    box-shadow: var(--hc-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.hc-ad:hover { transform: translateY(-3px); box-shadow: var(--hc-shadow); }
.hc-ad-link { display: flex; flex-direction: column; height: 100%; }
.hc-ad-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eef6fb 0%, #dcecf7 100%); overflow: hidden; }
.hc-ad-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #7fb6d4; }
.hc-ad-fallback .hc-icon { width: 40px; height: 40px; }
.hc-ad-fallback em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #8aa9bd; }
.hc-ad-media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hc-ad:hover .hc-ad-media img { transform: scale(1.04); }
.hc-ad-price {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    color: var(--hc-ink);
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
}
.hc-ad-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 14px 16px 16px; }
.hc-ad-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
}
.hc-ad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto !important; font-size: 12.5px; color: var(--hc-muted); }
.hc-ad-cat { padding: 3px 8px; border-radius: 6px; background: var(--hc-brand-light); color: var(--hc-brand-dark); font-weight: 600; }
.hc-ad-loc { display: inline-flex; align-items: center; gap: 3px; }

.hc-empty { padding: 48px 20px; text-align: center; background: #fff; border: 1px dashed var(--hc-line); border-radius: var(--hc-radius); }
.hc-empty p { margin-bottom: 18px !important; color: var(--hc-muted); }

/* ---------- Régions ---------- */
.hc-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hc-region {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--hc-line);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color .18s ease, background .18s ease;
}
.hc-region:hover { border-color: #bfe3f5; background: var(--hc-brand-light); }
.hc-region .hc-icon { color: var(--hc-brand); }
.hc-region span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-region em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--hc-muted); }

/* ---------- Bandeau CTA ---------- */
.hc-cta { padding: 40px 0; background: linear-gradient(120deg, var(--hc-brand) 0%, #0b6fb0 100%); color: #fff; }
.hc-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hc-cta h2 { font-size: 24px; line-height: 1.25; }
.hc-cta p { margin-top: 6px !important; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.hc-cta .hc-btn { flex: 0 0 auto; height: 48px; padding: 0 22px; font-size: 15px; }

/* ---------- Pied de page ---------- */
.hc-footer { padding: 52px 0 24px; background: #0b1626; color: #c7d2de; }
.hc-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 36px; }
.hc-footer-brand img { height: 27px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.hc-footer-brand p { max-width: 360px; margin-top: 14px !important; font-size: 13px; line-height: 1.7; color: #8fa1b5; }
.hc-footer-col h3 { margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; }
.hc-footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.hc-footer-col li a { font-size: 13px; color: #9fb0c3; }
.hc-footer-col li a:hover { color: #fff; }
.hc-footer-col[aria-label="Régions"] ul { display: block; columns: 2; column-gap: 20px; }
.hc-footer-col[aria-label="Régions"] li { margin-bottom: 8px; break-inside: avoid; }
.hc-footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hc-footer-bottom p { font-size: 12.5px; color: #7d8ea2; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hc-nav { display: none; }
    .hc-burger { display: block; }
}
@media (max-width: 900px) {
    .hc-actions .hc-login { display: none; }
    .hc-footer-grid { grid-template-columns: 1fr 1fr; }
    .hc-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .hc-header-in { height: 60px; gap: 12px; }
    .hc-actions .hc-btn { height: 38px; padding: 0 14px; font-size: 13px; }
    .hc-hero-in { padding-top: 44px; padding-bottom: 44px; }
    .hc-hero-sub { font-size: 15px; }
    .hc-hero-search { flex-wrap: wrap; padding: 12px; gap: 8px; }
    .hc-hero-search .hc-icon { display: none; }
    .hc-hero-search input { flex: 1 1 100%; height: 40px; padding: 0 4px; }
    .hc-hero-search .hc-btn { width: 100%; }
    .hc-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
    .hc-stats dt { font-size: 22px; }
    .hc-section { padding: 40px 0; }
    .hc-sec-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hc-cats { grid-template-columns: 1fr; }
    .hc-ads { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .hc-ad-body { padding: 12px; }
    .hc-ad-title { font-size: 14px; }
    .hc-ad-cat { display: none; }
    .hc-cta-in { flex-direction: column; align-items: flex-start; }
    .hc-cta .hc-btn { width: 100%; }
    .hc-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .hc-footer-col[aria-label="Régions"] ul { columns: 2; }
}
@media (max-width: 420px) {
    .hc-actions .hc-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-body * { transition: none !important; animation: none !important; }
}
