/* ============================================================
   guadeloupe-annonces.com — Thème "La Bleue Caraïbe" 2026
   Mobile-first · Sans Bootstrap · Responsive
   Identité : turquoise caraïbe + or soleil + corail chaud
   ============================================================ */

:root {
    /* Palette Guadeloupe — mer des Caraïbes, soleil tropical, fleurs de balisier */
    --brand:          #0284c7;   /* bleu caraïbe profond */
    --brand-dark:     #0c4a6e;   /* bleu nuit antillaise */
    --brand-light:    #e0f2fe;   /* écume de mer */
    --accent:         #f59e0b;   /* or du soleil */
    --accent-dark:    #b45309;
    --coral:          #f97316;   /* corail chaud */
    --coral-soft:     #fff7ed;

    --bg:             #f0f9ff;   /* ciel azur très clair */
    --bg-alt:         #e0f2fe;
    --surface:        #ffffff;
    --surface-alt:    #f8fbff;
    --border:         #bae6fd;
    --border-soft:    #e0f2fe;

    --text:           #0c2840;   /* bleu nuit profond */
    --text-soft:      #1e4460;
    --text-muted:     #4a7899;
    --text-on-brand:  #ffffff;
    --text-on-accent: #1c0a00;

    --success:        #059669;
    --danger:         #dc2626;
    --focus:          #06b6d4;

    /* Typographie — Nunito : arrondie, chaleureuse, moderne */
    --font-title: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.375rem;
    --fs-xl:   1.75rem;
    --fs-2xl:  2.25rem;

    --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;
    --sp-4: 1rem;     --sp-5: 1.5rem;  --sp-6: 2rem;
    --sp-7: 3rem;     --sp-8: 4rem;

    --radius-sm: 6px;
    --radius:    12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 6px rgba(2,132,199,0.10);
    --shadow:    0 4px 16px rgba(2,132,199,0.14);
    --shadow-lg: 0 12px 36px rgba(2,132,199,0.18);

    --header-h: 60px;
    --container-max: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; padding-bottom: 70px; /* espace tab bar mobile */
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img, svg, video, video { max-width: 100%; height: auto; display: block; }
iframe { border: 0; max-width: 100%; display: block; }  /* hauteur respecte attribut HTML */
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-title);
    line-height: 1.25;
    margin: 0 0 var(--sp-3);
    color: var(--brand-dark);
    font-weight: 700;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { margin: 0 0 var(--sp-3); }
ul,ol { padding-left: var(--sp-5); margin: 0 0 var(--sp-3); }

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand-dark); color: #fff;
    padding: var(--sp-2) var(--sp-4); z-index: 9999; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
.sr-only { position: absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 900;
    height: var(--header-h);
    background: linear-gradient(135deg, var(--brand) 0%, #0369a1 60%, var(--brand-dark) 100%);
    box-shadow: 0 2px 12px rgba(2,132,199,0.25);
    display: flex; align-items: center;
}
.site-header .container {
    display: flex; align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    width: 100%; max-width: var(--container-max);
    margin: 0 auto; padding: 0 var(--sp-4);
}
.site-logo {
    font-family: var(--font-title);
    font-size: 1.35rem; font-weight: 800;
    color: #fff; letter-spacing: -0.02em;
    white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.site-logo span { opacity: 0.7; font-weight: 600; font-size: .85em; }
.site-logo::before {
    content: '';
    display: inline-block; width: 32px; height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px; flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%230ea5e9' opacity='.5'/%3E%3Ctext x='16' y='20' text-anchor='middle' font-size='13' fill='white'%3E🏝%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}

/* Burger */
.nav-burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.15);
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    gap: 5px; padding: 0; flex-shrink: 0;
}
.nav-burger span {
    display: block; width: 22px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bouton "Passer une annonce" header */
.btn-header-cta {
    display: none;
    background: var(--accent); color: var(--text-on-accent);
    border: none; border-radius: var(--radius-pill);
    padding: var(--sp-2) var(--sp-4);
    font-weight: 700; font-size: var(--fs-sm);
    font-family: var(--font-title);
    cursor: pointer; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.btn-header-cta:hover { background: var(--accent-dark); color: #fff; }

/* Drawer overlay (mobile) */
.nav-drawer {
    position: fixed; inset: 0; z-index: 800;
    visibility: hidden; pointer-events: none;
}
.nav-drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(12,40,64,0.5); opacity: 0;
    transition: opacity .3s;
}
.nav-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(88vw, 360px);
    background: var(--surface);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.nav-open .nav-drawer { visibility: visible; pointer-events: auto; }
.nav-open .nav-drawer__backdrop { opacity: 1; }
.nav-open .nav-drawer__panel { transform: translateX(0); }

.nav-drawer__head {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    padding: var(--sp-5) var(--sp-5) var(--sp-4);
    color: #fff;
}
.nav-drawer__title { font-family: var(--font-title); font-size: 1.2rem; font-weight: 800; margin: 0 0 2px; }
.nav-drawer__sub { font-size: var(--fs-sm); opacity: 0.75; margin: 0; }
.nav-drawer__close {
    position: absolute; top: var(--sp-3); right: var(--sp-3);
    background: rgba(255,255,255,0.2); border: none;
    width: 36px; height: 36px; border-radius: 50%;
    color: #fff; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.nav-drawer__body { flex: 1; padding: var(--sp-3) 0; }
.nav-menu { list-style: none; padding: 0; margin: 0; }
.nav-menu__section {
    padding: var(--sp-3) var(--sp-5) var(--sp-1);
    font-size: var(--fs-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted);
}
.nav-menu a {
    display: flex; align-items: center; gap: var(--sp-3);
    padding: 12px var(--sp-5);
    color: var(--text); font-size: var(--fs-base);
    border-bottom: 1px solid var(--border-soft);
}
.nav-menu a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.nav-menu a .ico { width: 22px; text-align: center; font-size: 1.1em; }
.nav-cta-wrap { padding: var(--sp-4) var(--sp-5); }
.nav-cta {
    display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
    background: var(--accent); color: var(--text-on-accent);
    border-radius: var(--radius-pill); padding: 14px var(--sp-6);
    font-weight: 800; font-size: var(--fs-md);
    font-family: var(--font-title);
    box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.nav-cta:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* Bottom tab bar (mobile) */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 700;
    height: 60px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex; align-items: stretch;
    box-shadow: 0 -4px 16px rgba(2,132,199,0.12);
}
.bottom-nav__item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px; padding: 4px 0;
    color: var(--text-muted); font-size: var(--fs-xs);
    font-weight: 600; text-decoration: none;
    border: none; background: none; cursor: pointer;
}
.bottom-nav__item.is-active { color: var(--brand); }
.bottom-nav__item.is-cta {
    background: var(--accent);
    color: var(--text-on-accent);
    border-radius: var(--radius) var(--radius) 0 0;
    margin: 0 var(--sp-2);
}
.bottom-nav__ico { font-size: 1.3rem; }

/* ---------- Container & Layout ---------- */
.container {
    width: 100%; max-width: var(--container-max);
    margin: 0 auto; padding: 0 var(--sp-4);
}
main { padding-top: var(--sp-5); }

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}

/* Bandeau île de bienvenue */
.isle-banner {
    background: linear-gradient(135deg, var(--brand) 0%, #0284c7 50%, var(--coral) 100%);
    border-radius: var(--radius-lg);
    padding: var(--sp-6) var(--sp-5);
    color: #fff; text-align: center;
    margin-bottom: var(--sp-5);
    position: relative; overflow: hidden;
}
.isle-banner::before {
    content: '';
    position: absolute; bottom: -20px; left: -20px; right: -20px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,30 C200,0 400,60 600,30 C800,0 1000,60 1200,30 L1200,60 L0,60 Z' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}
.isle-banner h2 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.isle-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Cards annonces ---------- */
.section-title {
    font-family: var(--font-title);
    font-size: var(--fs-xl); color: var(--brand-dark);
    padding-bottom: var(--sp-3);
    border-bottom: 3px solid var(--brand);
    margin-bottom: var(--sp-4);
    display: flex; align-items: center; gap: var(--sp-2);
}
.section-title::before { content: '🌊'; }

.ann-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-4); }

.ann-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid var(--border-soft);
}
.ann-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.ann-card__media {
    display: block; position: relative;
    aspect-ratio: 16/9; overflow: hidden;
    background: var(--bg-alt);
}
.ann-card__media img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform .4s;
}
.ann-card:hover .ann-card__media img { transform: scale(1.05); }

.ann-card__body {
    padding: var(--sp-4);
    display: flex; flex-direction: column; gap: var(--sp-2);
}
.ann-card__title {
    font-family: var(--font-title); font-size: var(--fs-md); font-weight: 700;
    margin: 0; line-height: 1.3;
}
.ann-card__title a { color: var(--brand-dark); }
.ann-card__title a:hover { color: var(--brand); }
.ann-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.ann-meta span {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: var(--fs-sm); color: var(--text-muted);
}
.ann-card__desc { font-size: var(--fs-sm); color: var(--text-soft); margin: 0; line-height: 1.5; }

.ann-card__cta {
    align-self: flex-start; margin-top: auto;
    background: var(--brand-light); color: var(--brand);
    border: 1.5px solid var(--brand); border-radius: var(--radius-pill);
    padding: 6px 18px; font-size: var(--fs-sm); font-weight: 700;
}
.ann-card__cta:hover { background: var(--brand); color: #fff; }

/* Carte pub */
.ann-list-pub {
    list-style: none; text-align: center;
    padding: var(--sp-3); background: var(--coral-soft);
    border-radius: var(--radius-lg); border: 1px dashed var(--coral);
}
.ann-list-pub small {
    display: block; margin-bottom: var(--sp-2);
    font-size: var(--fs-xs); text-transform: uppercase;
    letter-spacing: .08em; color: var(--coral);
}

/* ---------- Sidebar ---------- */
.sidebar {}
.sidebar-block {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.sidebar-block h2 {
    font-family: var(--font-title);
    font-size: var(--fs-md); color: var(--brand);
    border-bottom: 2px solid var(--brand-light);
    padding-bottom: var(--sp-2); margin-bottom: var(--sp-3);
}
.region-list { list-style: none; padding: 0; margin: 0; }
.region-list li a {
    display: block; padding: 8px 0;
    color: var(--text-soft); font-size: var(--fs-sm);
    border-bottom: 1px solid var(--border-soft);
}
.region-list li a:hover { color: var(--brand); text-decoration: none; padding-left: 6px; }

/* Chips catégories */
.cat-chips {
    display: flex; flex-wrap: wrap; gap: var(--sp-2);
    list-style: none; padding: 0; margin: 0 0 var(--sp-4);
}
.cat-chips a {
    background: var(--brand-light); color: var(--brand);
    border-radius: var(--radius-pill);
    padding: 6px 14px; font-size: var(--fs-sm); font-weight: 600;
    white-space: nowrap; border: 1.5px solid var(--border);
}
.cat-chips a:hover { background: var(--brand); color: #fff; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex; flex-wrap: wrap; gap: var(--sp-2);
    justify-content: center; padding: var(--sp-5) 0;
}
.pagination a, .pagination .is-current {
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm); font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--brand); background: var(--surface);
}
.pagination a:hover { background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }
.pagination .is-current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Page détail ---------- */
.detail { padding: var(--sp-5) 0; }
.detail-grid {
    display: grid; grid-template-columns: 1fr;
    gap: var(--sp-5);
}
.detail-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.detail-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-title {
    font-family: var(--font-title); font-size: var(--fs-2xl);
    color: var(--brand-dark); margin: var(--sp-4) 0 var(--sp-3);
}
.detail-meta {
    display: flex; flex-wrap: wrap; gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}
.meta-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--brand-light); color: var(--brand);
    border-radius: var(--radius-pill); padding: 5px 14px;
    font-size: var(--fs-sm); font-weight: 600;
}
.detail-desc {
    background: var(--surface);
    border-radius: var(--radius-lg); border: 1px solid var(--border-soft);
    padding: var(--sp-5); line-height: 1.7;
    white-space: pre-line;
}
.detail-warn {
    background: #fefce8; border: 1px solid #fde047;
    border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-sm); color: #713f12; margin-bottom: var(--sp-4);
}
.detail-phone {
    background: var(--brand); color: #fff;
    border-radius: var(--radius-lg); padding: var(--sp-4);
    text-align: center; margin-top: var(--sp-4);
}
.detail-phone .phone-number { font-size: var(--fs-xl); font-weight: 800; letter-spacing: .05em; }
.hashtag-list { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:var(--sp-2); margin-top:var(--sp-4); }
.hashtag {
    background: var(--bg-alt); color: var(--text-muted);
    border-radius: var(--radius-pill); padding: 4px 12px;
    font-size: var(--fs-sm);
}
.hashtag:hover { background: var(--brand-light); color: var(--brand); }

/* Annonces similaires */
.similar-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:var(--sp-3); }
.similar-card {
    display: flex; gap: var(--sp-3);
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border-soft); overflow:hidden;
    box-shadow: var(--shadow-sm);
}
.similar-card img { width:80px; height:80px; object-fit:cover; flex-shrink:0; }
.similar-card__body { padding: var(--sp-2) var(--sp-3); flex:1; min-width:0; }
.similar-card__title { font-weight:700; font-size:var(--fs-sm); color:var(--brand-dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.similar-card__loc { font-size:var(--fs-xs); color:var(--text-muted); }

/* ---------- Formulaires (saisie) ---------- */
.text-page { max-width: 800px; margin: 0 auto; padding: var(--sp-5) 0; }
.text-page h1 {
    font-family: var(--font-title); color: var(--brand-dark);
    margin-bottom: var(--sp-5);
}
.cat-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:var(--sp-2); }
.cat-list a {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: var(--sp-4);
    color: var(--text); font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.cat-list a::after { content: '→'; color: var(--brand); }
.cat-list a:hover { background: var(--brand-light); border-color: var(--brand); text-decoration: none; }
.notice { background: var(--brand-light); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }
.iframe-host { background: var(--surface); border-radius: var(--radius-lg); padding: var(--sp-4); box-shadow: var(--shadow-sm); }

/* ---------- Page vide ---------- */
.empty-state {
    text-align: center; padding: var(--sp-8) var(--sp-4);
    background: var(--surface); border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}
.empty-state h4 { font-family: var(--font-title); color: var(--brand-dark); font-size: var(--fs-lg); margin-bottom: var(--sp-3); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    background: var(--brand); color: #fff;
    border: none; border-radius: var(--radius-pill);
    padding: 10px 24px; font-weight: 700; font-size: var(--fs-base);
    cursor: pointer; text-decoration: none;
    font-family: var(--font-title);
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 3px 10px rgba(2,132,199,.2);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255,255,255,0.8);
    padding: var(--sp-7) 0 var(--sp-5);
    margin-top: var(--sp-7);
}
.footer-grid {
    display: grid; grid-template-columns: 1fr;
    gap: var(--sp-5); margin-bottom: var(--sp-5);
}
.footer-col h3 {
    font-family: var(--font-title); color: #fff;
    font-size: var(--fs-md); margin-bottom: var(--sp-3);
}
.footer-col a { color: rgba(255,255,255,0.7); display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li a { display:block; padding: 4px 0; font-size: var(--fs-sm); color: rgba(255,255,255,0.7); }
.footer-links li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--sp-4);
    font-size: var(--fs-sm); color: rgba(255,255,255,0.5);
    text-align: center;
}
.footer-island-links { display:flex; flex-wrap:wrap; gap:var(--sp-2); justify-content:center; margin-bottom:var(--sp-3); }
.footer-island-links a { color: var(--accent); font-weight:600; font-size:var(--fs-sm); }

/* ---------- Responsive ≥ 768px ---------- */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .bottom-nav { display: none; }
    .btn-header-cta { display: inline-flex; }

    .layout { grid-template-columns: 1fr 300px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr 1fr; }

    .ann-card { flex-direction: row; }
    .ann-card__media { width: 240px; flex-shrink: 0; aspect-ratio: unset; }
    h1 { font-size: calc(var(--fs-2xl) * 1.1); }
}

@media (min-width: 1024px) {
    .nav-burger { display: none; }
    .nav-drawer { display: none; }
    /* Desktop nav inline */
    .desktop-nav {
        display: flex; align-items: center; gap: var(--sp-4);
    }
    .desktop-nav a {
        color: rgba(255,255,255,0.9); font-weight: 600; font-size: var(--fs-sm);
        white-space: nowrap;
    }
    .desktop-nav a:hover { color: var(--accent); text-decoration: none; }
}
@media (max-width: 1023px) {
    .desktop-nav { display: none; }
}
