/* =========================================================
   APOYO — identité visuelle
   Encre chaude + papier crème + tomate/soleil, bordures franches
   et ombres décalées (néo-brutalisme doux).
   ========================================================= */

:root {
    --ink: #16130F;
    --ink-2: #3A342D;
    --muted: #6F665B;
    --line: #E6D9C4;
    --paper: #FFF8EE;
    --paper-2: #F7EBD8;
    --white: #FFFFFF;

    --tomato: #FF5B2E;
    --tomato-d: #E8471B;
    --sun: #FFC93C;
    --mint: #3DDC97;
    --lilac: #B9A7FF;
    --sky: #7CC6FE;
    --pink: #FF8FB1;

    --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 26px;
    --r-xl: 40px;
    --bw: 2px;
    --border: var(--bw) solid var(--ink);
    --shadow-sm: 2px 2px 0 var(--ink);
    --shadow: 4px 4px 0 var(--ink);
    --shadow-lg: 8px 8px 0 var(--ink);

    --header-h: 72px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); } /* ancres : jamais sous l’en-tête fixe */
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.02; margin: 0 0 .4em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Les éléments animés au scroll sont masqués seulement si JS + GSAP tournent */
.js.gsap-ready [data-reveal] { opacity: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }
.container--mid { max-width: 1120px; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head p { max-width: 460px; color: var(--ink-2); margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em;
    padding: 6px 12px; border: var(--border); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.title-xl { font-size: clamp(44px, 8vw, 112px); font-weight: 800; letter-spacing: -.045em; line-height: .92; }
.title-l { font-size: clamp(36px, 5.6vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.title-m { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 560px; }
.muted { color: var(--muted); }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
    content: ''; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .38em; z-index: -1;
    background: var(--sun); border-radius: 6px; transform: rotate(-1.2deg);
}

/* ---------- Boutons ---------- */
.btn {
    --bg: var(--white); --fg: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border: var(--border); border-radius: 999px;
    background: var(--bg); color: var(--fg);
    font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: -.01em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    box-shadow: var(--shadow);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn--primary { --bg: var(--tomato); --fg: var(--white); }
.btn--primary:hover { --bg: var(--tomato-d); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); box-shadow: 4px 4px 0 var(--tomato); }
.btn--ink:hover { box-shadow: 5px 5px 0 var(--tomato); }
.btn--sun { --bg: var(--sun); }
.btn--mint { --bg: var(--mint); }
.btn--ghost { --bg: transparent; box-shadow: none; }
.btn--ghost:hover { --bg: var(--white); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 9px 15px; font-size: 14px; box-shadow: var(--shadow-sm); }
.btn--sm:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { padding: 18px 30px; font-size: 18px; }
.btn--block { width: 100%; }
.btn i { font-size: 1.15em; }

.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
    border: var(--border); border-radius: 50%; background: var(--white); cursor: pointer;
    box-shadow: var(--shadow-sm); transition: transform .15s var(--ease);
}
.icon-btn:hover { transform: translate(-1px, -1px); }
.icon-btn i { font-size: 20px; }

/* ---------- Tags, chips, badges ---------- */
.kind {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border: var(--border); border-radius: 999px;
    font-family: var(--font-display); font-weight: 700; font-size: 12.5px; line-height: 1; white-space: nowrap;
    background: var(--white); color: var(--ink); /* jamais hérité (ex. ligne de méta en gris) */
}
.kind--pret { background: var(--mint); }
.kind--location { background: var(--sun); }
.kind--service { background: var(--lilac); }
.kind--demande { background: var(--tomato); color: var(--white); }

.chip {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    padding: 8px 14px; border: var(--border); border-radius: 999px; background: var(--white);
    font-weight: 600; font-size: 14px; line-height: 1.1; cursor: pointer; user-select: none; text-decoration: none;
    transition: background .15s, transform .15s var(--ease), box-shadow .15s;
}
.chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip i { font-size: 17px; }
.chip.is-active, input:checked + .chip { background: var(--ink); color: var(--paper); }
.chip-input { position: absolute; opacity: 0; pointer-events: none; }
input:focus-visible + .chip { outline: 3px solid var(--tomato); outline-offset: 2px; }

.count-badge {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--tomato); color: var(--white); border: 2px solid var(--ink); border-radius: 999px;
    font-size: 11px; font-weight: 800; line-height: 1;
}
.plus-seal { color: var(--tomato); }
.pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 700; border: var(--border); background: var(--white);
}
.pill--sun { background: var(--sun); } .pill--mint { background: var(--mint); } .pill--sky { background: var(--sky); }
.pill--lilac { background: var(--lilac); } .pill--muted { background: var(--paper-2); color: var(--muted); border-color: var(--line); }
.pill--tomato { background: var(--tomato); color: var(--white); }

.avatar {
    --av: var(--sun);
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%; border: var(--border);
    background: var(--av); color: var(--ink);
    font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.02em;
}
.avatar--xs { width: 24px; height: 24px; font-size: 10px; border-width: 1.5px; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--lg { width: 72px; height: 72px; font-size: 26px; box-shadow: var(--shadow); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; align-content: start; }
.field > label, .label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.counter-hint { display: block; margin-top: 6px; transition: color .2s; }
.counter-hint [data-counter-min]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: 1px; transition: background .2s; }
.counter-hint.is-ok [data-counter-min] { color: var(--ink); }
.counter-hint.is-ok [data-counter-min]::before { background: var(--mint); border-color: var(--ink); }
.counter-hint.is-near [data-counter-out] { color: var(--tomato-d); font-weight: 700; }
.field .error, .form-error { font-size: 13.5px; color: var(--tomato-d); font-weight: 600; }
.input, .select, .textarea {
    width: 100%; padding: 13px 16px;
    border: var(--border); border-radius: var(--r); background: var(--white);
    font-size: 16px; line-height: 1.35;
    transition: box-shadow .15s, transform .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: var(--shadow); transform: translate(-1px, -1px); }
textarea, .textarea { resize: none; }
.textarea { min-height: 140px; max-height: 420px; field-sizing: content; } /* grandit avec le texte (Chrome, Safari) */
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.has-error .input, .has-error .textarea { border-color: var(--tomato); background: #FFF1EC; }
.input-group { position: relative; }
.input-group > i { position: absolute; z-index: 2; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; pointer-events: none; }
.input-group > .input { padding-left: 46px; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 46px; }
.input-suffix span { position: absolute; z-index: 2; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: start; }
.select { height: calc(1.35em + 26px + 2 * var(--bw)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--tomato); margin-top: 2px; flex: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    /* Fond plein : un en-tête translucide laisse transparaître le contenu en dessous */
    background: var(--paper);
    border-bottom: var(--bw) solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--ink) 8%, transparent); }
/* Pages "application" (carte, messagerie) : filet toujours visible, sans double trait */
.page-explorer .site-header, .page-messages .site-header, body:has(.auth) .site-header { border-bottom-color: var(--ink); }
.page-explorer .explorer, .page-messages .inbox { border-top: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; transition: transform .5s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-14deg) scale(1.06); }
.brand-zone {
    display: inline-flex; align-items: center; gap: 3px; align-self: center;
    margin-left: 2px; padding: 4px 9px 4px 6px; border: var(--border); border-radius: 999px;
    background: var(--sun); box-shadow: var(--shadow-sm); transform: rotate(-4deg);
    font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1; letter-spacing: -.01em;
    transition: transform .3s var(--ease);
}
.brand-zone i { font-size: 13px; color: var(--tomato); }
.brand:hover .brand-zone { transform: rotate(3deg) translateY(-1px); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.06em; line-height: 1; padding-bottom: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 13px; border-radius: 999px; text-decoration: none;
    font-weight: 600; font-size: 15px; transition: background .15s;
}
.nav-link i { font-size: 19px; }
.nav-link:hover { background: var(--paper-2); }
.nav-link.is-active { background: var(--ink); color: var(--paper); }
.nav-link .count-badge { position: absolute; top: 0; right: -2px; }
/* Fond de survol partagé qui glisse d'un lien à l'autre (assets/js/app.js) ; l'actif garde son fond sombre */
.nav-pill { display: none; }
@media (min-width: 881px) {
    .main-nav.has-pill { position: relative; }
    .main-nav.has-pill .nav-pill {
        display: block; position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0; pointer-events: none;
        border-radius: 999px; background: var(--paper-2); opacity: 0;
        transition: translate .45s var(--ease), width .45s var(--ease), height .45s var(--ease), opacity .2s;
    }
    .main-nav.has-pill .nav-pill.is-on { opacity: 1; }
    .main-nav.has-pill .nav-link { z-index: 1; }
    .main-nav.has-pill .nav-link:not(.is-active):hover { background: transparent; }
}
.nav-user { padding: 5px 13px 5px 5px; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }
/* Rien ne se compresse ni ne passe à la ligne : logo intact, libellés sur une ligne, pseudo tronqué */
.brand-wrap, .logo-mark, .nav-cta { flex: none; }
.nav-link, .nav-cta { white-space: nowrap; }
@media (min-width: 881px) { .nav-user span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; } }
/* Largeurs intermédiaires : pictos seuls (libellé en infobulle et pour les lecteurs d'écran) */
/* (membre connecté seulement : le menu visiteur, plus court, garde ses libellés) */
@media (min-width: 881px) and (max-width: 1100px) {
    .main-nav:has(.nav-user) { gap: 2px; }
    .main-nav:has(.nav-user) .nav-link:not(.nav-user) { padding: 10px; }
    .main-nav:has(.nav-user) .nav-link:not(.nav-user) i { font-size: 23px; } /* pictos seuls : un peu plus grands */
    .main-nav:has(.nav-user) .nav-link > span:not(.avatar) {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .nav-user { padding: 5px; }
}

@media (max-width: 880px) {
    .nav-toggle {
        display: grid; place-content: center; gap: 6px;
        width: 46px; height: 46px; border: var(--border); border-radius: 50%; background: var(--white); cursor: pointer;
        box-shadow: var(--shadow-sm); z-index: 2;
    }
    .nav-toggle span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
    .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 6px;
        padding: 16px var(--gutter) 24px;
        background: var(--paper); border-bottom: var(--border);
        transform: translateY(-110%); visibility: hidden;
        transition: transform .4s var(--ease), visibility .4s;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .nav-link { font-size: 18px; padding: 13px 16px; }
    .nav-link .count-badge { position: static; margin-left: auto; }
    .nav-cta { margin: 10px 0 0; justify-content: center; padding: 15px; font-size: 17px; }
}

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 300; top: calc(var(--header-h) + 12px); right: 16px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px;
    background: var(--white); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow);
    font-weight: 600; font-size: 15px;
}
.toast > i { font-size: 22px; flex: none; }
.toast--success > i { color: #13a86a; } .toast--error > i { color: var(--tomato); } .toast--info > i { color: #2a8bd8; }
.toast--success { background: #EBFFF5; } .toast--error { background: #FFF0EB; }
.toast-link { display: block; margin-top: 4px; font-weight: 700; color: var(--tomato-d); }
.suggest li.is-off a { color: var(--tomato-d); font-weight: 700; }
.toast-close { margin-left: auto; border: 0; background: none; cursor: pointer; padding: 4px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 80px 0 0; overflow: hidden; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.footer-claim { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: .95; letter-spacing: -.04em; margin-bottom: 28px; }
.footer-claim em { font-style: normal; color: var(--sun); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--paper); opacity: .8; text-decoration: none; padding: 5px 0; }
.footer-cols a:hover { opacity: 1; color: var(--sun); }
/* Grand mot-logo plein, jambages coupés net par le bas de page */
.footer-word {
    display: flex; justify-content: center;
    font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; line-height: .8;
    font-size: clamp(72px, 13vw, 190px); color: var(--tomato);
    margin: 40px 0 .06em; user-select: none;
}
.footer-word span { display: inline-block; cursor: default; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 56px; padding-top: 20px; border-top: 1.5px solid color-mix(in srgb, var(--paper) 15%, transparent);
    font-size: 14px; color: color-mix(in srgb, var(--paper) 70%, transparent);
}
.footer-bottom .ph-heart, .footer-bottom .ph-map-pin { color: var(--tomato); display: inline; }
.footer-bottom a { color: var(--sun); }
.site-footer .btn--sun { box-shadow: 4px 4px 0 var(--tomato); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* =========================================================
   ACCUEIL
   ========================================================= */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-title { margin-bottom: 28px; }
/* Marge compensée : le masque de l'intro ne rogne ni jambages, ni accents, ni apostrophes */
.hero-line { display: block; padding: .14em .1em .2em; margin: -.14em -.1em -.12em; }
.gsap-ready .hero-line:not(.hero-line--pop) { overflow: hidden; }
.hero-line > span { display: inline-block; }
.js .swap-word:not(:first-child) { opacity: 0; }
.swap {
    position: relative; display: inline-block; vertical-align: bottom;
    height: 1.02em; overflow: hidden; border-radius: .22em;
    background: var(--tomato); color: var(--white);
    border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
    padding: 0 .14em; margin: 0 .04em; transform: rotate(-2deg);
    transition: background .3s;
}
.swap-word { display: inline-block; white-space: nowrap; line-height: .98; }
.js .swap-word { position: absolute; left: .14em; top: 0; }
.js .swap-word:first-child { position: relative; left: 0; }
.no-js .swap-word:not(:first-child) { display: none; }

.hero-search {
    display: flex; align-items: center; gap: 8px; max-width: 580px;
    padding: 8px; background: var(--white); border: var(--border); border-radius: 999px; box-shadow: var(--shadow-lg);
}
.hero-search i { font-size: 24px; margin-left: 14px; flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding: 10px 4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-weight: 600; font-size: 15px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { font-size: 20px; color: var(--tomato); }

/* Radar de quartier */
.radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-left: auto; }
.radar-ring {
    position: absolute; inset: 0; margin: auto; border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent);
}
.radar-ring:nth-child(1) { width: 100%; height: 100%; background: radial-gradient(circle, color-mix(in srgb, var(--sun) 40%, transparent), transparent 70%); }
.radar-ring:nth-child(2) { width: 68%; height: 68%; }
.radar-ring:nth-child(3) { width: 36%; height: 36%; border-style: solid; border-color: var(--ink); background: var(--white); }
.radar-pulse { position: absolute; inset: 0; margin: auto; width: 36%; height: 36%; border-radius: 50%; border: 3px solid var(--tomato); opacity: 0; }
.radar-me {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    display: grid; place-items: center; text-align: center; gap: 2px;
    font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.radar-me .logo-mark { width: 54px; height: 54px; }
.radar-pin {
    position: absolute; display: grid; place-items: center;
    width: 54px; height: 54px; border-radius: 50% 50% 50% 4px;
    border: var(--border); box-shadow: var(--shadow-sm);
    background: var(--c, var(--sun)); transform: rotate(-45deg);
}
.radar-pin i { transform: rotate(45deg); font-size: 24px; }
.radar-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px 10px 10px; background: var(--white); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow);
    font-size: 14px; line-height: 1.25; white-space: nowrap;
}
.radar-card b { font-family: var(--font-display); font-size: 15px; display: block; }
.radar-card .avatar { width: 36px; height: 36px; font-size: 13px; }
.radar-card small { color: var(--muted); font-weight: 600; }

/* Bandeau défilant */
.marquee { background: var(--ink); color: var(--paper); border-block: var(--border); overflow: hidden; padding: 20px 0; transform: rotate(-1.5deg); margin: 0 -20px; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
    font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 52px); letter-spacing: -.03em; white-space: nowrap;
}
.marquee-item i { color: var(--sun); font-size: .8em; }
/* Pas de text-stroke : la police variable a des contours qui se chevauchent */
.marquee-item .o { color: var(--tomato); }

/* Zone de lancement (Caen) + liste d'attente */
/* Survol par translate (propriété distincte de transform, que l'intro GSAP anime) */
.eyebrow--zone { text-decoration: none; background: var(--sun); transition: translate .2s var(--ease), rotate .2s var(--ease); }
/* Bloc à part entière : la marge sous l'étiquette ne dépend plus de la ligne de texte */
.hero-copy > .eyebrow { display: flex; width: fit-content; max-width: 100%; margin-bottom: clamp(30px, 4vw, 40px); white-space: nowrap; }
@media (max-width: 560px) { .eyebrow-extra { display: none; } }
.eyebrow--zone:hover { translate: -1px -1px; rotate: -1deg; }
.zone-section { padding-bottom: 0; }
.zone-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.zone-card {
    position: relative; overflow: hidden;
    padding: clamp(28px, 5vw, 56px); border: var(--border); border-radius: var(--r-xl);
    background: var(--mint); box-shadow: var(--shadow-lg);
}
.zone-card .eyebrow { background: var(--white); }
.zone-card .lead { color: var(--ink); max-width: 520px; }
.zone-stamp {
    position: absolute; right: clamp(16px, 4vw, 44px); top: clamp(16px, 4vw, 40px);
    width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50% 50% 50% 6px;
    background: var(--tomato); border: 3px solid var(--ink); box-shadow: var(--shadow); transform: rotate(-45deg);
}
.zone-stamp i { transform: rotate(45deg); font-size: 44px; color: var(--white); }
.zone-places { list-style: none; padding: 0; margin: 4px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.zone-places li {
    padding: 6px 12px; border: var(--border); border-radius: 999px; background: var(--white);
    font-weight: 600; font-size: 14px; line-height: 1.1;
}
.zone-places li:first-child { background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 800; }
.zone-places .zone-more { background: transparent; border-style: dashed; color: var(--ink-2); }
/* Accueil multi-villes : nos villes */
.city-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.city-list a {
    display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 14px 16px;
    border: var(--border); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
    transition: translate .15s, box-shadow .15s;
}
.city-list a:hover { translate: -2px -2px; box-shadow: var(--shadow); }
.city-list b { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.1; }
.city-list small { grid-column: 1; color: var(--muted); font-size: 13px; }
.city-list i { grid-column: 2; grid-row: 1 / 3; font-size: 20px; transition: translate .15s; }
.city-list a:hover i { translate: 3px 0; }
.city-list .is-current a { background: var(--sun); }
.city-list .is-current small { color: var(--ink); }
.waitlist {
    display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 40px);
    border: var(--border); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-lg);
}
.waitlist-icon { font-size: 30px; width: 60px; height: 60px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--lilac); margin-bottom: 18px; }
.waitlist h3 { font-size: 30px; }
.waitlist > p { color: var(--ink-2); }
.waitlist small { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.waitlist .btn { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Liste d'attente : choix d'une grande ville */
.suggest-wrap { position: relative; }
.suggest-wrap > i { position: absolute; left: 15px; top: 50%; translate: 0 -50%; z-index: 1; font-size: 19px; color: var(--tomato); pointer-events: none; }
.suggest-wrap > .input { padding-left: 44px; }
.suggest--cities { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.suggest--cities li.is-open i { background: var(--mint); }
.suggest--cities li.is-open small { color: var(--ink); font-weight: 700; }
.field-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.waitlist .field-hint { text-align: left; margin-top: 7px; }
.waitlist .suggest small { margin-top: 1px; text-align: left; font-size: 12.5px; }
@media (max-width: 900px) {
    .zone-grid { grid-template-columns: 1fr; }
    .zone-stamp { width: 64px; height: 64px; }
    .zone-stamp i { font-size: 30px; }
}

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
    position: relative; padding: 30px 26px 28px; border: var(--border); border-radius: var(--r-lg);
    background: var(--c, var(--white)); box-shadow: var(--shadow-lg);
}
.step-num {
    font-family: var(--font-display); font-weight: 800; font-size: 88px; line-height: .8; letter-spacing: -.01em;
    color: var(--white); text-shadow: 4px 4px 0 var(--ink); margin-bottom: 26px; display: block;
}
.step h3 { font-size: 28px; }
.step p { color: var(--ink-2); margin: 0; }
.step-icon { position: absolute; top: 24px; right: 24px; width: 56px; height: 56px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--white); font-size: 26px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Catégories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat {
    display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
    min-height: 150px; padding: 18px; text-decoration: none;
    border: var(--border); border-radius: var(--r-lg); background: var(--white);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.cat i { font-size: 34px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; border: var(--border); background: var(--c); transition: background .25s; }
.cat span { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; }
.cat:hover { background: var(--c); transform: translate(-3px, -3px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.cat:hover i { background: var(--white); }
.cat:hover i::before { transform: rotate(-14deg) scale(1.12); }

/* Bloc confiance */
.trust { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.trust .title-l em { font-style: normal; color: var(--sun); }
.trust p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.trust-list { display: grid; gap: 14px; }
.trust-item { display: flex; gap: 16px; padding: 18px; border: 2px solid color-mix(in srgb, var(--paper) 25%, transparent); border-radius: var(--r); }
.trust-item i { font-size: 28px; color: var(--ink); background: var(--c, var(--sun)); width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.trust-item b { font-family: var(--font-display); font-size: 19px; display: block; margin-bottom: 2px; color: var(--paper); }
.trust-item p { margin: 0; font-size: 15px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 32px 28px; border: var(--border); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg);
}
.plan--hot { background: var(--sun); }
.plan--dark { background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--tomato); }
.plan-badge { position: absolute; top: -16px; right: 24px; transform: rotate(4deg); color: var(--ink); }
.plan h3 { font-size: 26px; display: flex; align-items: center; gap: 8px; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 60px; letter-spacing: -.05em; line-height: 1; margin: 6px 0 4px; }
.plan-price small { font-size: 18px; letter-spacing: 0; font-weight: 600; }
.plan-note { font-size: 14px; font-weight: 600; opacity: .75; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.plan li i { font-size: 20px; flex: none; margin-top: 1px; }
.plan--dark li i { color: var(--sun); }

/* Appel final */
.cta-final {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(48px, 8vw, 100px) var(--gutter);
    background: var(--tomato); color: var(--white); border: var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.cta-final h2 { color: var(--white); }
.cta-final .lead { color: color-mix(in srgb, var(--white) 88%, transparent); margin: 0 auto 32px; }
.cta-final .blob { position: absolute; border-radius: 50%; border: var(--border); }
.cta-final .btn { --bg: var(--white); --fg: var(--ink); }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .radar { max-width: 420px; margin: 20px auto 0; }
}
@media (max-width: 520px) {
    .radar { width: 84%; }
    .radar-card { font-size: 12px; padding: 7px 10px 7px 7px; }
    .radar-card .avatar { width: 28px; height: 28px; }
    .radar-card b { font-size: 13px; }
    .radar-pin { width: 42px; height: 42px; }
    .radar-pin i { font-size: 19px; }
    .hero-search { flex-wrap: wrap; border-radius: var(--r-lg); padding: 10px; }
    .hero-search .btn { width: 100%; }
}

/* =========================================================
   CARTES D'ANNONCE
   ========================================================= */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.lcard {
    --c: var(--sun);
    display: flex; flex-direction: column; text-decoration: none;
    border: var(--border); border-radius: var(--r-lg); background: var(--white); overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.lcard:hover, .lcard.is-hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.lcard-media {
    position: relative; aspect-ratio: 4/3; display: grid; place-items: center;
    background: var(--c); border-bottom: var(--border); overflow: hidden;
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px);
    background-size: 14px 14px;
}
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lcard:hover .lcard-media img { transform: scale(1.05); }
.lcard-media > i {
    font-size: 54px; width: 96px; height: 96px; display: grid; place-items: center;
    background: var(--white); border: var(--border); border-radius: 50%; box-shadow: var(--shadow);
    /* le rond reste fixe (pas de transform : évite les jointures de rendu), seul le pictogramme bouge */
}
.lcard-media > i::before, .cat i::before { display: inline-block; transition: transform .4s var(--ease); }
.lcard:hover .lcard-media > i::before { transform: rotate(-14deg) scale(1.12); }
.lcard-media .kind { position: absolute; top: 12px; left: 12px; }
.lcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.lcard-title { font-size: 19px; line-height: 1.15; letter-spacing: -.02em; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lcard-meta { margin: 0; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lcard-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; margin-top: auto; padding-top: 8px; }
.lcard-price { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.15; min-width: 0; }
.lcard-user { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* Variante horizontale (liste explorateur) */
.lcard--row { flex-direction: row; border-radius: var(--r); }
.lcard--row .lcard-media { aspect-ratio: auto; width: 120px; flex: none; border-bottom: 0; border-right: var(--border); }
.lcard--row .lcard-media > i { width: 60px; height: 60px; font-size: 30px; box-shadow: var(--shadow-sm); }
.lcard--row .lcard-media .kind { top: auto; bottom: 8px; left: 50%; translate: -50% 0; font-size: 11px; padding: 4px 7px; }
/* Sans photo : icône et pastille de type empilées et centrées */
.lcard--row .lcard-media:has(> i) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; }
.lcard--row .lcard-media:has(> i) .kind { position: static; translate: none; }
/* Avec photo : même colonne que sans photo ; la photo remplit le cadre sans imposer sa hauteur à la carte */
.lcard--row .lcard-media > img { position: absolute; inset: 0; }
.lcard--row .lcard-title { font-size: 17px; }
.lcard--row .lcard-body { padding: 12px 14px; }
.lcard--row:hover, .lcard--row.is-hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }

.empty {
    text-align: center; padding: 48px 24px; border: 2px dashed var(--ink); border-radius: var(--r-lg); background: var(--white);
}
.empty > i { font-size: 48px; display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--sun); border: var(--border); margin-bottom: 14px; }
.empty h3 { font-size: 24px; }
.empty p { color: var(--muted); max-width: 360px; margin: 0 auto 18px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* =========================================================
   EXPLORER
   ========================================================= */
.page-explorer { overflow: hidden; }
.explorer { display: grid; grid-template-columns: minmax(360px, 460px) 1fr; height: calc(100dvh - var(--header-h)); border-top: var(--border); }
.explorer-panel { display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-right: var(--border); }
.explorer-filters { padding: 18px 18px 14px; border-bottom: var(--border); display: grid; gap: 12px; }
.kind-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
/* Défilement horizontal signalé par un fondu sur les bords (classes posées par JS selon la position) */
.cat-scroll {
    --fade-l: 0px; --fade-r: 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
    position: relative; cursor: grab; user-select: none;
}
.cat-scroll.is-dragging, .cat-scroll.is-dragging .chip { cursor: grabbing; }
.cat-scroll.is-dragging .chip { transform: none; box-shadow: none; }
.cat-scroll.at-start { --fade-l: 0px; }
.cat-scroll:not(.at-start) { --fade-l: 36px; }
.cat-scroll.at-end { --fade-r: 0px; }
.kind-tabs .chip, .cat-scroll .chip, .radius-tabs .chip { white-space: nowrap; }
.radius-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.radius-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.radius-label i { font-size: 18px; color: var(--tomato); }
.radius-tabs { display: inline-flex; padding: 0 2px 2px 0; gap: 3px; border: 0; border-radius: 999px; background: transparent; }
.radius-tabs .chip { background: transparent; border-color: transparent; padding: 5px 9px; font-size: 13px; }
.radius-tabs .chip { color: var(--ink-2); transition: color .15s; }
.radius-tabs .chip:hover { box-shadow: none; transform: none; background: transparent; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.radius-tabs input:checked + .chip:hover { text-decoration: none; }
.radius-tabs input:checked + .chip { background: var(--sun); color: var(--ink); border-color: var(--ink); }
/* Pastille glissante (activée par JS) : elle remplace le fond de l'option cochée */
.radius-tabs { position: relative; }
.radius-tabs label { position: relative; z-index: 1; }
.radius-thumb { display: none; }
.radius-tabs.has-thumb .radius-thumb {
    display: block; position: absolute; z-index: 0; top: 0; bottom: 0; box-shadow: var(--shadow-sm); left: 0; width: 0;
    background: var(--sun); border: var(--border); border-radius: 999px; pointer-events: none;
}
.radius-tabs.has-thumb input:checked + .chip { background: transparent; border-color: transparent; font-weight: 800; }
.kind-tabs::-webkit-scrollbar, .cat-scroll::-webkit-scrollbar { display: none; }
.kind-tabs .chip { justify-content: center; padding: 8px 11px; font-size: 13.5px; }
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 4px; }
.cat-scroll .chip { font-size: 13px; padding: 7px 11px; }
.explorer-count { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.explorer-count b { color: var(--ink); font-family: var(--font-display); font-size: 18px; }
.explorer-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 24px; display: flex; flex-direction: column; gap: 12px; }
.explorer-list > * { flex: none; }
.explorer.is-loading .explorer-list { opacity: .55; transition: opacity .2s; }
.explorer-map { position: relative; min-height: 0; }
.explorer-map #map { position: absolute; inset: 0; }
.map-tools { position: absolute; z-index: 5; top: 16px; left: 16px; right: 16px; display: flex; gap: 10px; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-search { position: relative; flex: 1; max-width: 420px; }
.map-search .input { box-shadow: var(--shadow); padding-left: 46px; }
.map-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; z-index: 2; pointer-events: none; }
.map-redo { position: absolute; z-index: 5; bottom: 24px; left: 50%; translate: -50% 0; }
.lcard-meta b { color: var(--ink); font-weight: 700; }
.view-switch { display: none; }

@media (max-width: 860px) {
    .explorer { grid-template-columns: 1fr; position: relative; }
    .explorer-panel { position: absolute; inset: 0; z-index: 6; border-right: 0; transform: translateX(-100%); transition: transform .4s var(--ease); }
    .explorer.show-list .explorer-panel { transform: none; }
    .view-switch {
        display: inline-flex; position: fixed; z-index: 20; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0;
    }
    .map-tools { top: 12px; left: 12px; right: 12px; }
    .map-redo { bottom: auto; top: 74px; }
}

/* Popups & pins MapLibre */
.pin-wrap { cursor: pointer; }
.pin {
    --c: var(--sun);
    position: relative; display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
    background: var(--c); border: var(--border); box-shadow: 2px 2px 0 var(--ink);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.pin i { transform: rotate(45deg); font-size: 20px; color: var(--ink); }
.pin--demande { background: var(--tomato); }
.pin--demande i { color: var(--white); }
.pin-wrap.is-active .pin, .pin-wrap:hover .pin { transform: rotate(-45deg) scale(1.22); box-shadow: 4px 4px 0 var(--ink); z-index: 2; }
.pin-wrap.is-active { z-index: 10; }
.pin-home {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
    background: var(--tomato); color: var(--white); border: 3px solid var(--ink); box-shadow: var(--shadow-sm); font-size: 24px;
}
.me-dot { width: 20px; height: 20px; border-radius: 50%; background: #2a8bd8; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--ink), 0 0 0 10px rgba(42, 139, 216, .2); }

.maplibregl-popup-content {
    padding: 0; border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; font-family: var(--font-body);
}
.maplibregl-popup-tip { border-top-color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
.maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 20px; z-index: 2; background: var(--white); border-radius: 0 0 0 10px; }
.popup-card { display: flex; gap: 12px; padding: 10px 34px 10px 10px; text-decoration: none; width: 290px; align-items: flex-start; } /* vignette calée en haut, sur le badge */
.popup-media { width: 64px; height: 64px; flex: none; border-radius: 12px; border: var(--border); background: var(--c); display: grid; place-items: center; overflow: hidden; }
.popup-media img { width: 100%; height: 100%; object-fit: cover; }
.popup-media i { font-size: 28px; }
.popup-card b { font-family: var(--font-display); font-size: 16px; line-height: 1.15; display: block; margin: 4px 0 2px; }
.popup-card small { color: var(--muted); font-weight: 600; }
.popup-card .kind { font-size: 11px; padding: 3px 7px; }

.maplibregl-ctrl-group { border: var(--border) !important; border-radius: 12px !important; box-shadow: var(--shadow-sm) !important; overflow: hidden; }
.maplibregl-ctrl-group button + button { border-top: 1.5px solid var(--ink) !important; }

/* Suggestions de géocodage */
.suggest {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
    list-style: none; margin: 0; padding: 6px; background: var(--white); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow);
}
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.suggest li i { font-size: 18px; color: var(--tomato); }
.suggest li small { color: var(--muted); display: block; font-size: 12.5px; }
.suggest li.is-active, .suggest li:hover { background: var(--paper-2); }
.suggest li.is-off { cursor: default; color: var(--muted); background: none; }
.suggest li.is-off i { color: var(--muted); }

/* =========================================================
   FICHE ANNONCE
   ========================================================= */
.listing-page { padding: 32px 0 96px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.listing-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.listing-hero {
    --c: var(--sun);
    position: relative; aspect-ratio: 4/3; /* même cadre que les cartes : le recadrage 4:3 est ce qui s’affiche */ border: var(--border); border-radius: var(--r-xl); overflow: hidden;
    background: var(--c); display: grid; place-items: center; box-shadow: var(--shadow-lg);
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1.2px, transparent 1.2px); background-size: 18px 18px;
}
.listing-hero img { width: 100%; height: 100%; object-fit: cover; }
.listing-hero > i { font-size: 110px; width: 190px; height: 190px; display: grid; place-items: center; background: var(--white); border: 3px solid var(--ink); border-radius: 50%; box-shadow: var(--shadow-lg); }
.listing-hero .kind { position: absolute; top: 18px; left: 18px; font-size: 15px; padding: 8px 14px; }
.listing-title { font-size: clamp(32px, 4.5vw, 54px); font-weight: 800; letter-spacing: -.04em; margin: 28px 0 12px; }
.listing-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.listing-desc { font-size: 17px; white-space: pre-line; color: var(--ink-2); }
.listing-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.box { border: var(--border); border-radius: var(--r-lg); background: var(--white); padding: 22px; }
.box--shadow { box-shadow: var(--shadow-lg); }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.deposit-line { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 15px; padding: 10px 12px; background: var(--paper); border-radius: var(--r-sm); border: 1.5px dashed var(--ink); }
.deposit-line i { font-size: 20px; color: var(--tomato); }
.owner { display: flex; align-items: center; gap: 14px; }
.owner b { font-family: var(--font-display); font-size: 20px; display: block; }
.owner small { color: var(--muted); font-weight: 600; }
.mini-map { height: 300px; box-shadow: var(--shadow-lg); border: var(--border); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.mini-map-note { position: absolute; z-index: 3; left: 10px; top: 10px; background: var(--white); border: var(--border); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 861px) {
    /* Ordinateur : les trois actions sur une ligne, à largeur égale */
    .owner-actions { flex-wrap: nowrap; }
    .owner-actions > * { flex: 1 1 0; min-width: 0; }
    .owner-actions .btn { width: 100%; justify-content: center; white-space: nowrap; padding-inline: 10px; }
}
@media (max-width: 920px) {
    .listing-grid { grid-template-columns: 1fr; }
    .listing-side { position: static; }
}

/* =========================================================
   PUBLIER
   ========================================================= */
.publish { padding: 40px 0 96px; }
.publish-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; flex-wrap: wrap; }
.quota {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    background: var(--white); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 600;
}
.quota-dots { display: flex; gap: 5px; }
.quota-dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.quota-dots span.is-used { background: var(--tomato); }
.quota--plus { background: var(--sun); }
.form-step { border: var(--border); border-radius: var(--r-lg); background: var(--white); padding: clamp(20px, 3vw, 32px); margin-bottom: 22px; }
.form-step-title { display: flex; align-items: center; gap: 12px; font-size: 24px; margin-bottom: 20px; }
.form-step-title .num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 17px; flex: none; }
.kind-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kind-card { position: relative; }
.kind-card input { position: absolute; opacity: 0; }
.kind-card label {
    display: flex; flex-direction: column; gap: 8px; height: 100%;
    padding: 18px 16px; border: var(--border); border-radius: var(--r); cursor: pointer; background: var(--paper);
    transition: transform .15s var(--ease), box-shadow .15s, background .15s;
}
.kind-card label i { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: var(--border); background: var(--white); }
.kind-card label b { font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.kind-card label small { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.kind-card label:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.kind-card input:checked + label { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.kind-card input:focus-visible + label { outline: 3px solid var(--tomato); outline-offset: 3px; }
.kind-card[data-kind="pret"] input:checked + label { background: var(--mint); }
.kind-card[data-kind="location"] input:checked + label { background: var(--sun); }
.kind-card[data-kind="service"] input:checked + label { background: var(--lilac); }
.kind-card[data-kind="demande"] input:checked + label { background: var(--tomato); color: var(--white); }
.kind-card[data-kind="demande"] input:checked + label small { color: var(--white); }
.kind-card[data-kind="demande"] input:checked + label i { color: var(--ink); }
.kind-card.is-locked label { opacity: .5; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-drop {
    position: relative; display: grid; place-items: center; text-align: center; gap: 6px;
    min-height: 190px; padding: 24px; border: 2px dashed var(--ink); border-radius: var(--r); background: var(--paper);
    cursor: pointer; overflow: hidden; transition: background .2s;
}
.photo-drop:hover, .photo-drop.is-drag { background: color-mix(in srgb, var(--sun) 35%, var(--paper)); }
.photo-drop i { font-size: 40px; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Avec une photo : aperçu au format affiché sur le site (4:3), tel qu’il sera publié */
.photo-drop:has(img) { aspect-ratio: 4/3; min-height: 0; max-width: 460px; }
.photo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.photo-tools[hidden] { display: none; }
.photo-tools .hint { font-size: 13px; }

/* Fenêtre de recadrage (Cropper.js) */
.modal--crop { width: min(720px, calc(100vw - 24px)); overflow: hidden; }
/* Zone au même format que le cadre : un peu de photo déborde tout autour (assombri), pas l'image entière */
.crop-stage { aspect-ratio: 4/3; width: min(100%, calc(62vh * 4 / 3)); margin: 0 auto; background: var(--ink); overflow: hidden; } /* overflow : une photo haute ne l'étire plus */
.crop-stage img { display: block; max-width: 100%; }
.crop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-top: var(--border); }
.crop-bar .crop-tools { display: flex; gap: 6px; }
.crop-bar [data-ok] { margin-left: auto; }
.modal--crop .cropper-modal { background: var(--ink); opacity: .55; }
.modal--crop .cropper-view-box { border-radius: 4px; }
.crop-hint { width: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.modal--crop .cropper-view-box { outline: 2px solid var(--sun); outline-color: var(--sun); }
.modal--crop .cropper-line, .modal--crop .cropper-point { background-color: var(--sun); }
.pick-map { height: 360px; border: var(--border); border-radius: var(--r); overflow: hidden; position: relative; }
.pick-map-hint { position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--paper); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; pointer-events: none; }
.privacy-note { display: flex; gap: 12px; padding: 14px 16px; background: color-mix(in srgb, var(--mint) 30%, var(--white)); border: var(--border); border-radius: var(--r); font-size: 14.5px; margin-top: 14px; }
.privacy-note i { font-size: 24px; flex: none; }
.paywall {
    display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
    padding: 20px 22px; margin-bottom: 22px; border: var(--border); border-radius: var(--r-lg); background: var(--sun); box-shadow: var(--shadow);
}
.paywall > i { font-size: 34px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: var(--border); }
.paywall b { font-family: var(--font-display); font-size: 20px; display: block; }
.paywall p { margin: 0; font-size: 15px; }
.publish-submit { display: flex; justify-content: flex-end; gap: 12px; align-items: center; flex-wrap: wrap; }
.is-hidden { display: none !important; }
@media (max-width: 860px) {
    .kind-cards { grid-template-columns: 1fr 1fr; }
    .paywall { grid-template-columns: 1fr; text-align: left; }
}

/* =========================================================
   AUTH
   ========================================================= */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - var(--header-h)); }
.auth-art {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(32px, 5vw, 64px); background: var(--tomato); color: var(--white); border-right: var(--border);
}
.auth-art .title-l { color: var(--white); position: relative; z-index: 2; }
.auth-art p { position: relative; z-index: 2; font-size: 18px; max-width: 420px; }
.auth-art .bubble { position: absolute; border: 3px solid var(--ink); border-radius: 50%; }
.auth-form { display: grid; place-items: center; padding: 48px var(--gutter); background: var(--paper-2); } /* se détache de l’en-tête */
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 44px; font-weight: 800; letter-spacing: -.04em; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 15px; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth-art { min-height: 220px; border-right: 0; border-bottom: var(--border); }
}

/* =========================================================
   COMPTE
   ========================================================= */
.account { padding: 40px 0 96px; }
.account-head { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.account-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; margin: 0; }
.account-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { border: var(--border); border-radius: var(--r); padding: 16px 18px; background: var(--c, var(--white)); }
.stat b { font-family: var(--font-display); font-size: 38px; font-weight: 800; letter-spacing: -.04em; display: block; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.mylist { display: grid; gap: 12px; }
.myitem {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
    padding: 12px; border: var(--border); border-radius: var(--r); background: var(--white);
}
.myitem.is-paused { background: var(--paper-2); }
.myitem.is-paused .myitem-thumb { filter: grayscale(1); }
.myitem-thumb { width: 64px; height: 64px; border-radius: 12px; border: var(--border); background: var(--c); display: grid; place-items: center; overflow: hidden; }
.myitem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.myitem-thumb i { font-size: 28px; }
.myitem h3 { font-size: 18px; margin: 0 0 4px; }
.myitem h3 a { text-decoration: none; }
.myitem-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.myitem-actions { display: flex; gap: 6px; }
.myitem-actions form { margin: 0; }
.myitem-actions .icon-btn { width: 38px; height: 38px; }
.myitem-actions .icon-btn i { font-size: 18px; }
@media (max-width: 920px) { .account-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .myitem { grid-template-columns: 52px 1fr; }
    .myitem-thumb { width: 52px; height: 52px; }
    .myitem-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .stat b { font-size: 28px; }
}

/* =========================================================
   MESSAGES
   ========================================================= */
.page-messages { overflow: hidden; }
.inbox { display: grid; grid-template-columns: 360px 1fr; height: calc(100dvh - var(--header-h)); border-top: var(--border); }
.inbox-list { border-right: var(--border); overflow-y: auto; background: var(--paper); }
.inbox-list h1 { font-size: 30px; font-weight: 800; padding: 22px 20px 10px; margin: 0; }
.conv { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; text-decoration: none; border-bottom: 1.5px solid var(--line); transition: background .15s; }
.conv:hover { background: var(--paper-2); }
.conv.is-active { background: var(--sun); }
.conv b { font-family: var(--font-display); font-size: 16px; display: block; }
.conv small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .conv-listing { color: var(--ink-2); font-weight: 600; }
.conv.is-unread b::after { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); margin-left: 6px; border: 1.5px solid var(--ink); }
.conv-time { font-size: 12px; color: var(--muted); align-self: start; }
.thread { display: flex; flex-direction: column; min-height: 0; background: var(--white); }
.thread-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: var(--border); background: var(--paper); }
.thread-head b { font-family: var(--font-display); font-size: 19px; display: block; line-height: 1.1; }
.thread-head a { text-decoration: none; }
.thread-head small { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.thread-head .btn { margin-left: auto; }
.thread-back { display: none; }
.thread-body {
    flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 10px;
    background-image: radial-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px); background-size: 18px 18px;
}
.bubble-msg { max-width: min(76%, 520px); padding: 11px 15px; border: var(--border); border-radius: 20px 20px 20px 6px; background: var(--paper); align-self: flex-start; white-space: pre-line; overflow-wrap: anywhere; }
.bubble-msg.is-mine { align-self: flex-end; background: var(--tomato); color: var(--white); border-radius: 20px 20px 6px 20px; }
.bubble-msg time { display: block; font-size: 11.5px; opacity: .7; margin-top: 4px; text-align: right; }
.sys-msg { align-self: center; display: inline-flex; gap: 8px; align-items: center; text-align: center; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--line); max-width: 92%; }
.sys-msg i { color: var(--tomato); font-size: 16px; flex: none; }
.day-sep { align-self: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 0; }
.thread-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: var(--border); background: var(--paper); }
.thread-form .textarea { min-height: 50px; max-height: 160px; border-radius: 22px; resize: none; padding: 13px 18px; }
.thread-form .icon-btn { width: 50px; height: 50px; background: var(--tomato); color: var(--white); }
.thread-empty { flex: 1; display: grid; place-items: center; padding: 24px; }

/* Carte d'accord */
.deal {
    align-self: center; width: min(100%, 440px);
    border: var(--border); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); overflow: hidden;
}
.deal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: var(--border); background: var(--paper); }
.deal-head b { font-family: var(--font-display); font-size: 17px; display: flex; align-items: center; gap: 8px; }
.deal-head b i { font-size: 22px; color: var(--tomato); }
.deal-body { padding: 14px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deal-cell small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.deal-cell b { font-family: var(--font-display); font-size: 18px; }
.deal-note { grid-column: 1 / -1; font-size: 14.5px; padding: 10px 12px; background: var(--paper); border-radius: var(--r-sm); margin: 0; }
.deal-actions { display: flex; gap: 8px; padding: 0 16px 14px; flex-wrap: wrap; }
.deal-actions form { margin: 0; }
.deal-foot { padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.deal.is-closed { opacity: .65; box-shadow: none; }

/* Fenêtre modale */
.modal { border: var(--border); border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); background: var(--white); color: var(--ink); }
.modal::backdrop { background: rgba(22, 19, 15, .45); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: var(--border); background: var(--sun); }
.modal-head h2 { font-size: 24px; margin: 0; }
.modal-body { padding: 22px; }
.modal-body .info { font-size: 14px; color: var(--ink-2); background: var(--paper); padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 18px; display: flex; gap: 10px; }
.modal-body .info i { font-size: 20px; color: var(--tomato); flex: none; }

@media (max-width: 860px) {
    .inbox { grid-template-columns: 1fr; }
    .inbox.has-thread .inbox-list { display: none; }
    .inbox:not(.has-thread) .thread { display: none; }
    .thread-back { display: inline-grid; }
    .thread-head .btn span { display: none; }
    .bubble-msg { max-width: 88%; }
}

/* =========================================================
   PREMIUM
   ========================================================= */
.premium-hero { padding: clamp(48px, 8vw, 96px) 0 48px; text-align: center; }
.premium-hero .lead { margin: 0 auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1.5px solid var(--line); }
.compare th { font-family: var(--font-display); font-size: 17px; background: var(--paper); }
.compare tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 140px; }
.compare i { font-size: 22px; }
.compare .yes { color: #13a86a; } .compare .no { color: var(--muted); opacity: .5; }
.faq { display: grid; gap: 12px; }
.faq details { border: var(--border); border-radius: var(--r); background: var(--white); padding: 0 20px; }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 26px; line-height: .8; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound .title-xl { color: var(--tomato); text-shadow: 6px 6px 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   NOTES & AVIS
   ========================================================= */
:root { --star: #F2A900; }
.stars { display: inline-flex; gap: 1px; color: var(--star); font-size: 18px; line-height: 1; vertical-align: middle; }
.stars .is-empty { color: var(--line); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.rating > i { color: var(--star); font-size: 16px; }
.rating b { color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.rating small { color: var(--muted); font-size: 12.5px; }
.rating--new { padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--lilac); color: var(--ink); font-size: 12px; font-weight: 700; }
.rating--new > i { color: var(--ink); font-size: 13px; }
.rating--mini { gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.rating--mini > i { font-size: 13px; }
.thread-head .rating { font-family: var(--font-body); font-size: 13px; vertical-align: middle; }

/* Propriétaire cliquable sur la fiche annonce */
.owner--link { text-decoration: none; border-radius: var(--r); margin: -8px; padding: 8px; transition: background .15s; }
.owner--link:hover { background: var(--paper); }
.owner--link .rating { margin: 2px 0; }
.owner-go { margin-left: auto; font-size: 20px; transition: transform .2s var(--ease); }
.owner--link:hover .owner-go { transform: translateX(3px); }

/* Sélecteur d'étoiles (ordre inversé pour colorer les étoiles précédentes au survol) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; font-size: 32px; line-height: 1; color: var(--line); transition: color .12s; display: inline-block; }
.star-input label i { display: block; -webkit-text-stroke: 0; filter: drop-shadow(1.5px 1.5px 0 var(--ink)); }
.star-input input:checked ~ label { color: var(--star); }
/* Au survol, l'aperçu remplace la note choisie */
.star-input:hover label { color: var(--line); }
.star-input:hover label:hover, .star-input:hover label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--tomato); outline-offset: 2px; border-radius: 6px; }
.star-word { order: -1; margin-left: 10px; font-family: var(--font-display); font-weight: 800; font-size: 16px; min-width: 80px; }

/* Bloc d'avis dans la carte d'accord */
.deal-review { border-top: 1.5px dashed var(--line); padding: 14px 16px; display: grid; gap: 12px; background: color-mix(in srgb, var(--sun) 14%, var(--white)); }
.review-form { display: grid; gap: 10px; justify-items: start; }
.review-form .textarea { min-height: 64px; }
.review-form small, .review-done small { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.review-done { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.review-done p { width: 100%; margin: 0; font-weight: 400; font-style: italic; color: var(--ink-2); }

/* Échanges à noter (compte) */
.todo-list { display: grid; gap: 8px; }
.todo-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--white); border: var(--border); border-radius: var(--r-sm); text-decoration: none; }
.todo-list a:hover { box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
.todo-list b { display: block; font-family: var(--font-display); }
.todo-list small { color: var(--muted); font-size: 13px; }

/* Profil public */
.member { padding: 40px 0 96px; }
.avatar--xl { width: 112px; height: 112px; font-size: 40px; border-width: 3px; box-shadow: var(--shadow-lg); }
.member-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; margin-bottom: 48px; } /* alignés en haut : un nom long ne décale plus avatar et compteurs */
.member-id h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; margin: 0 0 6px; }
.member-id p { margin: 0 0 10px; }
.member-bio { max-width: 520px; color: var(--ink-2); }
.member-stats { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 12px; }
.member-stats .stat { display: grid; gap: 4px; align-content: start; }
.member-stats .stars { font-size: 15px; }
.member-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.rating-bars { display: grid; gap: 6px; margin-bottom: 22px; max-width: 420px; }
.rating-bar { display: grid; grid-template-columns: 44px 1fr 28px; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 700; }
.rating-bar i { color: var(--star); }
.rating-track { height: 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.rating-track span { display: block; height: 100%; background: var(--star); border-right: 1.5px solid var(--ink); }
.review-list { display: grid; gap: 12px; }
.review { padding: 16px 18px; border: var(--border); border-radius: var(--r); background: var(--white); }
.review header { display: flex; align-items: center; gap: 10px; }
.review header > div { min-width: 0; flex: 1; }
.review header b a { text-decoration: none; font-family: var(--font-display); }
.review header small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review p { margin: 10px 0 0; color: var(--ink-2); }
@media (max-width: 960px) {
    .member-head { grid-template-columns: auto 1fr; }
    .member-stats { grid-column: 1 / -1; }
    .member-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .member-head { grid-template-columns: 1fr; text-align: left; }
    .avatar--xl { width: 84px; height: 84px; font-size: 30px; }
    .member-stats { grid-template-columns: repeat(3, 1fr); }
    .member-stats .stat b { font-size: 26px; }
}
/* Étoiles posées sur la vignette jaune du profil : encre pour le contraste */
.member-stats .stars { color: var(--ink); }
.member-stats .stars .is-empty { color: color-mix(in srgb, var(--ink) 25%, transparent); }

/* Modale de confirmation (remplace confirm / alert) */
.modal--confirm { width: min(420px, calc(100vw - 32px)); }
.confirm-body { padding: 28px 26px 24px; text-align: center; }
.confirm-icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 50%; border: var(--border); background: var(--sun); box-shadow: var(--shadow); font-size: 30px;
}
.modal--danger .confirm-icon { background: var(--tomato); color: var(--white); }
.confirm-body h2 { font-size: 26px; margin: 0 0 8px; }
.confirm-body p { color: var(--ink-2); margin: 0 auto 22px; max-width: 320px; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.confirm-actions .btn { min-width: 130px; }

/* Suggestions : quartiers & communes en tête */
.suggest li.is-local i { color: var(--ink); background: var(--sun); border: 1.5px solid var(--ink); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 15px; flex: none; }
.suggest li.is-local + li:not(.is-local) { border-top: 1.5px dashed var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 12px; }
.sector-pill {
    display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px 10px 3px 7px;
    border: var(--border); border-radius: 999px; background: var(--sun); box-shadow: var(--shadow-sm);
    font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1.1;
}
.sector-pill[hidden] { display: none; }
.sector-pill i { color: var(--tomato); font-size: 14px; }
/* Liste de suggestions longue (ex. tous les quartiers de Caen) : défilement */
.suggest { max-height: min(380px, 55vh); overflow-y: auto; overscroll-behavior: contain; }

/* Mode secteur (quartier / commune avec contour) */
.sector-pill.is-sector { background: var(--ink); color: var(--paper); padding-right: 4px; }
.sector-pill.is-sector i { color: var(--sun); }
.sector-x {
    display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px;
    border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
}
.sector-x i { color: var(--ink) !important; font-size: 11px !important; }
.sector-x:hover { background: var(--tomato); }
.sector-x:hover i { color: var(--white) !important; }
/* Rayon inactif pendant le mode secteur */
.radius-tabs.is-off .radius-thumb { opacity: 0; }
.radius-tabs.is-off input:checked + .chip { font-weight: 600; color: var(--ink-2); }

/* Masques SplitText : marge pour ne pas rogner les lettres pendant l'animation */

/* =========================================================
   EXPLORER MOBILE : barre commune + vues plein écran + filtres en panneau
   ========================================================= */
.filters-btn, .sheet-head, .sheet-foot, .sheet-label, .sheet-backdrop { display: none; }

@media (max-width: 860px) {
    /* Barre commune (recherche de lieu, filtres, localisation) au-dessus de la carte ET de la liste */
    .map-tools { z-index: 8; }
    .map-search { max-width: none; }
    .filters-btn { display: inline-grid; position: relative; background: var(--sun); }
    .filters-btn .count-badge { position: absolute; top: -7px; right: -7px; }
    .filters-btn .count-badge[hidden] { display: none; }

    /* Liste plein écran (masquée par visibilité, sans transform : le panneau de filtres y est en position fixe) */
    .explorer-panel {
        /* visibilité seule (pas d'opacité ni de transform) : le panneau de filtres, enfant de la liste, doit rester affichable */
        transform: none; visibility: hidden; pointer-events: none; padding-top: 76px;
    }
    .explorer.show-list .explorer-panel { visibility: visible; pointer-events: auto; }
    .explorer-panel .explorer-list { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } /* place pour le bouton flottant */
    .explorer-panel .explorer-count { padding-top: 4px; }

    /* Filtres : panneau qui monte du bas */
    .explorer-filters {
        position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
        max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
        padding: 0 18px; gap: 14px;
        background: var(--paper); border: var(--border); border-bottom: 0; border-radius: 26px 26px 0 0;
        box-shadow: 0 -10px 30px rgba(22, 19, 15, .18);
        transform: translateY(105%); visibility: hidden; pointer-events: none; opacity: 1;
        transition: transform .38s var(--ease), visibility .38s;
    }
    .explorer.filters-open .explorer-filters { transform: none; visibility: visible; pointer-events: auto; }
    .sheet-head {
        display: flex; align-items: center; justify-content: space-between;
        position: sticky; top: 0; z-index: 2; padding: 20px 0 8px; background: var(--paper);
    }
    .sheet-head::before {
        content: ''; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px;
        border-radius: 999px; background: var(--line);
    }
    .sheet-head b { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
    .sheet-label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: -6px; }
    .sheet-foot {
        display: flex; gap: 10px; align-items: center;
        position: sticky; bottom: 0; z-index: 2; margin: 4px -18px 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
        background: var(--paper); border-top: 1.5px dashed var(--line);
    }
    .sheet-foot .btn--primary { flex: 1; }
    .sheet-backdrop {
        display: block; position: fixed; inset: 0; z-index: 55;
        background: rgba(22, 19, 15, .45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
        opacity: 0; transition: opacity .3s;
    }
    .sheet-backdrop[hidden] { display: none; }
    .explorer.filters-open .sheet-backdrop { opacity: 1; }

    /* Dans le panneau : catégories en grille (plus de défilement horizontal) */
    .explorer-filters .cat-scroll {
        flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; cursor: default;
        -webkit-mask-image: none; mask-image: none;
    }
    .explorer-filters .kind-tabs { margin: 0; padding: 0; }
}

/* Élargissement autour d'un secteur : « Caen · +1 km · +3 km… » */
.radius-zero { display: none; }
.radius-tabs.is-sector .radius-zero { display: inline-flex; }
.radius-tabs.is-sector .chip { gap: 0; padding-left: 8px; padding-right: 8px; } /* « +1 km » collé, 6 choix sur une ligne */
.radius-tabs.is-sector label:not(.radius-zero) .chip::before { content: '+'; }

/* Compte : adresse par défaut */
.home-search { display: flex; gap: 8px; align-items: center; }
.home-search .icon-btn { width: 48px; height: 48px; }
.home-map { position: relative; height: 200px; border: var(--border); border-radius: var(--r); overflow: hidden; }
.home-map .pick-map-hint[hidden] { display: none; }
.location-note { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 14px; padding: 10px 14px; border: var(--border); border-radius: var(--r-sm); background: color-mix(in srgb, var(--mint) 25%, var(--white)); font-size: 14.5px; }
.location-note i { font-size: 18px; flex: none; margin-top: 2px; }
.location-note a { font-weight: 700; color: var(--ink); white-space: nowrap; }
.location-note--tip { background: color-mix(in srgb, var(--sun) 25%, var(--white)); }

/* Suggestions par groupes (liste proposée au focus) */
.suggest .suggest-head {
    position: sticky; top: -6px; z-index: 1; cursor: default; margin: 2px -6px 0; padding: 10px 18px 6px;
    background: var(--white); border-bottom: 1.5px dashed var(--line); border-radius: 0;
    font-family: var(--font-display); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.suggest .suggest-head:hover { background: var(--white); }
.suggest .suggest-head:first-child { margin-top: -6px; border-radius: var(--r) var(--r) 0 0; }
.suggest li.is-local + li.suggest-head { margin-top: 6px; padding-top: 10px; border-top: 0; border-radius: 0; }

/* Sélecteur de ville (à la Citymapper) */
.brand-wrap { display: flex; align-items: center; gap: 8px; }
.zone-switch { position: relative; }
button.brand-zone { cursor: pointer; color: var(--ink); }
.zone-caret { font-size: 10px !important; color: var(--ink) !important; margin-left: 2px; transition: transform .2s var(--ease); }
.zone-switch.is-open .zone-caret { transform: rotate(180deg); }
.zone-menu {
    position: absolute; z-index: 120; top: calc(100% + 10px); left: -6px; min-width: 260px;
    display: grid; gap: 4px; padding: 10px;
    background: var(--white); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow);
}
.zone-menu[hidden] { display: none; }
.zone-menu > b { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 2px 8px 4px; }
.zone-opt, .zone-soon { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.zone-opt i:first-child { color: var(--tomato); font-size: 18px; }
.zone-opt span { flex: 1; font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.zone-opt small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.zone-opt:hover, .zone-soon:hover { background: var(--paper-2); }
.zone-opt.is-current { background: color-mix(in srgb, var(--sun) 30%, var(--white)); }
.zone-check { font-size: 16px; }
.zone-soon { margin-top: 4px; border-top: 1.5px dashed var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 560px) {
    .zone-menu { position: fixed; left: 16px; right: 16px; top: calc(var(--header-h) - 4px); min-width: 0; }
}

/* =========================================================
   ANNONCE EN PANNEAU (depuis l'explorateur)
   ========================================================= */
.lo { position: fixed; inset: 0; z-index: 150; }
.lo[hidden] { display: none; }
.lo-backdrop { position: absolute; inset: 0; background: rgba(22, 19, 15, .4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.lo-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(700px, 100%);
    overflow-y: auto; overscroll-behavior: contain; outline: none;
    background: var(--paper); border-left: var(--border); box-shadow: -12px 0 40px rgba(22, 19, 15, .22);
}
.lo-close { position: sticky; top: 14px; float: right; z-index: 5; margin: 14px 14px 0 0; }
.lo-body { transition: opacity .2s; }
.lo-body.is-swapping { opacity: .45; }
.lo-body .listing-page { padding: 22px 0 64px; }
.lo-body .container { padding: 0 26px; }
.lo-body .listing-grid { grid-template-columns: 1fr; gap: 22px; }
.lo-body .listing-side { position: static; }
.lo-body .listing-title { font-size: clamp(28px, 4vw, 40px); margin-top: 22px; }
.lo-body .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lo-loading { display: grid; place-items: center; height: 70vh; }
.lo-spinner { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--tomato); border-radius: 50%; animation: lo-spin .8s linear infinite; }
@keyframes lo-spin { to { transform: rotate(360deg); } }
html.lo-open { overflow: hidden; }
@media (max-width: 860px) {
    .lo-panel { width: 100%; border-left: 0; }
    .lo-body .container { padding: 0 16px; }
    .lo-body .grid-cards { grid-template-columns: 1fr; }
}

/* Titre d'accueil sur mobile : un peu plus d'interligne, et de l'air autour de la pastille */
@media (max-width: 760px) {
    .hero-title { line-height: 1.04; }
    .hero-line--pop { margin: .1em 0 .16em; }
}

/* Firefox : la surface WebGL des cartes ignore parfois l'arrondi du parent → découpe explicite
   (sur le conteneur interne, pour ne pas rogner l'ombre portée du cadre) */
/* (sur la surface de la carte elle-même : son conteneur interne a une hauteur nulle) */
.mini-map canvas.maplibregl-canvas { clip-path: inset(0 round calc(var(--r-lg) - 2px)); }
.pick-map canvas.maplibregl-canvas,
.home-map canvas.maplibregl-canvas { clip-path: inset(0 round calc(var(--r) - 2px)); }
.mini-map, .pick-map, .home-map { isolation: isolate; }

/* Ordinateur : la liste reste visible, la carte reste cliquable autour du panneau.
   Écran moyen : panneau aligné à droite. */
@media (min-width: 861px) {
    .lo { inset: var(--header-h) 0 0 0; z-index: 90; pointer-events: none; }
    /* Voile flouté sur tout ce que le panneau recouvre (liste comprise si elle est chevauchée) */
    .lo-backdrop { pointer-events: auto; }
    .lo-panel { pointer-events: auto; left: auto; right: 0; width: min(640px, 62vw); box-shadow: -14px 0 34px rgba(22, 19, 15, .16); }
    html.lo-open { overflow: auto; }
}
/* Écran large : panneau juste à droite de la colonne liste (460 px) ; seule la carte est voilée, la liste reste nette */
@media (min-width: 1400px) {
    .lo-panel { left: 460px; right: auto; width: min(680px, calc(100vw - 460px - 320px)); border-left: 0; border-right: var(--border); box-shadow: 14px 0 34px rgba(22, 19, 15, .16); }
}

/* Bulle de la carte : appel explicite à ouvrir l'annonce */
.popup-card { transition: background .15s; }
.popup-card:hover { background: var(--paper); }
.popup-cta {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 4px 10px;
    border: var(--border); border-radius: 999px; background: var(--tomato); color: var(--white);
    font-family: var(--font-display); font-weight: 700; font-size: 12.5px; line-height: 1.2;
    box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s;
}
.popup-cta i { font-size: 13px; transition: transform .2s var(--ease); }
.popup-card:hover .popup-cta { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.popup-card:hover .popup-cta i { transform: translateX(3px); }
/* Marqueur de l'annonce ouverte dans le panneau */
.pin-wrap.is-open { z-index: 20; }
.pin-wrap.is-open .pin { transform: rotate(-45deg) scale(1.32); box-shadow: 4px 4px 0 var(--ink); outline: 3px solid var(--white); outline-offset: 1px; }

/* =========================================================
   PAGES VILLE ET SECTEUR (référencement local)
   ========================================================= */
.city-hero { padding: 36px 0 clamp(48px, 7vw, 80px); }
.city-hero .crumbs { margin-bottom: 18px; }
.city-hero .eyebrow { display: flex; width: fit-content; margin-bottom: 22px; }
.city-hero .lead { margin-bottom: 22px; }
.city-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.city-stats .pill { font-size: 14px; padding: 6px 12px; }
.city-stats b { font-family: var(--font-display); font-weight: 800; }
.city-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sector-links { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.sector-links a {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px; text-decoration: none;
    border: var(--border); border-radius: var(--r-sm); background: var(--white); font-weight: 600;
    transition: transform .15s var(--ease), box-shadow .15s, background .15s;
}
.sector-links a i { color: var(--tomato); font-size: 18px; flex: none; }
.sector-links a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* une ligne : nom complet en infobulle */
.sector-links a:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--sun) 25%, var(--white)); }
.sector-links--communes a i { color: var(--ink-2); }
.sector-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.sector-map { height: 340px; border: var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); isolation: isolate; }
.sector-map canvas.maplibregl-canvas { clip-path: inset(0 round calc(var(--r-lg) - 2px)); }
@media (max-width: 900px) {
    .sector-grid { grid-template-columns: 1fr; }
    .sector-map { height: 260px; }
}

/* =========================================================
   APPELS DES VOISINS
   ========================================================= */
.count-badge--sun { background: var(--sun); color: var(--ink); }
.calls-head { margin-bottom: 26px; }
.calls-head .lead { max-width: 600px; }
.calls-setup { margin: 0 0 26px; }
.calls-radius {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 26px; padding: 14px 16px;
    border: var(--border); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm);
}
.calls-radius .label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 700; }
.calls-radius-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.calls-radius-opts label { position: relative; }
.calls-radius-opts .chip { padding: 6px 12px; font-size: 13.5px; }

.calls { display: grid; gap: 16px; }
.call {
    display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 18px; overflow: hidden;
    border: var(--border); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm);
}
.call.is-new { box-shadow: var(--shadow); border-color: var(--ink); background: color-mix(in srgb, var(--sun) 12%, var(--white)); }
.call.is-answered { background: var(--paper); }
.call-icon {
    width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden;
    border: var(--border); border-radius: 16px; background: var(--c); color: var(--ink);
}
.call-icon i { font-size: 32px; }
.call-icon img { width: 100%; height: 100%; object-fit: cover; }
.call-main { min-width: 0; }
.call-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }
.call-top b { color: var(--ink); }
.call-new { font-size: 11px; padding: 3px 9px; }
.call-title { font-size: 21px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.call-title a { color: var(--ink); text-decoration: none; }
.call-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.call-desc { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; }
.call-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 14px; font-size: 14px; }
.call-meta .lcard-user { margin: 0; }
.call-budget { font-family: var(--font-display); font-weight: 800; }
.call-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.call-actions form { margin: 0; }
.call-actions[hidden] { display: none; }
.call-done { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.call-done i { color: var(--mint); font-size: 20px; filter: drop-shadow(1px 1px 0 var(--ink)); }
.call-reply { margin-top: 4px; }
.call-reply .textarea { min-height: 96px; font-size: 15px; }
.call-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.chip--sm { padding: 5px 10px; font-size: 13px; }
[data-quick-reply].is-used { background: var(--paper-2); color: var(--muted); }
.call-reply-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.call-reply-foot .hint { color: var(--muted); font-size: 13px; flex: 1 1 220px; }
@media (max-width: 600px) {
    .call { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .call-icon { width: 56px; height: 56px; border-radius: 14px; }
    .call-icon i { font-size: 24px; }
    .call-reply-foot .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   PARRAINAGE
   ========================================================= */
.pillar-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; vertical-align: middle;
    border: var(--border); border-radius: 999px; background: var(--mint); color: var(--ink);
    font-family: var(--font-display); font-weight: 800; font-size: 12.5px; line-height: 1.2; white-space: nowrap;
}
.pillar-badge i { font-size: 14px; }
.invite-link { margin-bottom: 22px; }
.invite-link .label { display: block; margin-bottom: 8px; font-weight: 700; }
.invite-copy { display: flex; gap: 10px; }
.invite-copy .input { flex: 1; min-width: 0; font-weight: 600; background: var(--paper); }
.invite-copy .btn { flex: none; }
.invite-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.invite-share [hidden] { display: none; }
.invite-stats { margin-bottom: 18px; }
.pillar-progress { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pillar-progress > div:nth-child(2) { flex: 1 1 260px; }
.pillar-progress p { margin: 2px 0 0; font-size: 14.5px; }
.pillar-progress .pillar-badge { font-size: 22px; padding: 10px; border-radius: 50%; }
.pillar-progress .pillar-badge i { font-size: 26px; }
.referral-item { grid-template-columns: auto 1fr auto; align-items: center; }
.referral-item h3 { margin: 0; }
.referral-item .pill { white-space: nowrap; }
.invite-rules { margin-top: 26px; font-size: 13.5px; }
@media (max-width: 600px) {
    .invite-copy { flex-direction: column; }
    .referral-item { grid-template-columns: auto 1fr; }
    .referral-item .pill { grid-column: 1 / -1; justify-self: start; }
}

/* Page d'invitation (/i/<code>) */
.invite-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.invite-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.invite-title { font-size: clamp(44px, 6.5vw, 92px); margin: 14px 0 18px; }
.invite-hero .lead { max-width: 560px; margin-bottom: 26px; }
.invite-card { padding: 26px; border: var(--border); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-lg); rotate: 1.5deg; }
.invite-from { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1.5px dashed var(--line); }
.invite-from b { display: block; font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.invite-from small { color: var(--muted); }
.invite-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.invite-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.invite-perks i { flex: none; font-size: 20px; width: 36px; height: 36px; display: grid; place-items: center; border: var(--border); border-radius: 50%; background: var(--sun); }
@media (max-width: 860px) { .invite-grid { grid-template-columns: 1fr; } .invite-card { rotate: 0deg; } }

/* Affiche A4 à imprimer */
.poster-page { background: var(--paper-2); padding: 24px 16px 60px; }
.poster-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 210mm; margin: 0 auto 18px; padding: 12px 16px;
    border: var(--border); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm); font-size: 14.5px;
}
.poster-bar span { flex: 1 1 300px; }
.poster {
    width: 210mm; min-height: 297mm; max-width: 100%; margin: 0 auto; padding: 16mm 15mm 0; box-sizing: border-box;
    display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.poster-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.06em; }
.poster-brand .logo-mark { width: 46px; height: 46px; }
.poster-title { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: .98; letter-spacing: -.045em; margin: 10mm 0 6mm; }
.poster-pop { display: inline-block; padding: 0 .18em .06em; border: 3px solid var(--ink); border-radius: .2em; background: var(--tomato); color: var(--white); box-shadow: 5px 5px 0 var(--ink); rotate: -2deg; }
.poster-lead { font-size: 19px; line-height: 1.45; max-width: 150mm; margin: 0 0 7mm; }
.poster-examples { list-style: none; padding: 0; margin: 0 0 9mm; display: flex; flex-wrap: wrap; gap: 8px; }
.poster-examples li { padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); font-weight: 700; font-size: 15px; }
.poster-examples li:nth-child(2) { background: var(--mint); }
.poster-examples li:nth-child(3) { background: var(--lilac); }
.poster-join { display: flex; align-items: center; gap: 9mm; padding: 7mm; border: 3px solid var(--ink); border-radius: 22px; background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.poster-qr { flex: none; width: 220px; height: 220px; }
.poster-qr img, .poster-qr canvas { display: block; width: 220px; height: 220px; }
.poster-join b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 8px; }
.poster-join p { margin: 0 0 8px; font-size: 15.5px; }
.poster-url { font-weight: 800; font-size: 17px !important; word-break: break-all; }
.poster-strips { display: grid; grid-template-columns: repeat(8, 1fr); margin: 10mm -15mm 0; border-top: 2px dashed var(--ink); } /* ligne de découpe */
.poster-join { margin-bottom: auto; }
.poster-strips div {
    height: 46mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    border-right: 2px dashed var(--ink); writing-mode: vertical-rl; rotate: 180deg; /* tourné : ce trait passe à gauche */
    font-size: 11px; font-weight: 700;
}
.poster-strips div:first-child { border-right: 0; }
.poster-strips b { font-family: var(--font-display); font-size: 17px; color: var(--tomato); }
@page { size: A4 portrait; margin: 0; }
@media print {
    .poster-page { background: none; padding: 0; }
    .poster-bar { display: none; }
    .poster { border: 0; width: 210mm; height: 297mm; overflow: hidden; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.invite-promo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: var(--lilac); transition: translate .15s, box-shadow .15s; }
.invite-promo:hover { translate: -2px -2px; }
.invite-promo > i:first-child { font-size: 30px; color: var(--tomato); flex: none; }
.invite-promo span { flex: 1; }
.invite-promo b { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.invite-promo small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }

/* Croix des champs de lieu / d'adresse (Apoyo.geocoder) */
.geo-clear {
    position: absolute; right: 9px; top: 50%; translate: 0 -50%; z-index: 3;
    width: 30px; height: 30px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
    transition: background .15s, color .15s;
}
.geo-clear:hover { background: var(--paper-2); color: var(--ink); }
.geo-clear i { font-size: 16px; }
.input:placeholder-shown + .geo-clear { display: none; }
.input:has(+ .geo-clear) { padding-right: 44px; }

/* Champs mot de passe : bouton œil (assets/js/app.js) */
.pass-wrap { position: relative; display: block; }
.pass-wrap > .input { padding-right: 48px; }
.pass-toggle {
    position: absolute; right: 8px; top: 50%; translate: 0 -50%; z-index: 2;
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
    transition: background .15s, color .15s;
}
.pass-toggle:hover, .pass-toggle:focus-visible { background: var(--paper-2); color: var(--ink); }
.pass-toggle i { font-size: 19px; }
/* Œil natif d'Edge en double : masqué */
.pass-wrap input::-ms-reveal, .pass-wrap input::-ms-clear { display: none; }
