/* ============================================
   Dating Platform - PHP Version
   Modern responsive CSS (no Tailwind needed)
   ============================================ */

:root {
    --primary: #000000;
    --secondary: #e00203;
    --bg: #ffffff;
    --bg-alt: #f4f4f5;
    --bg-card: #ffffff;
    --text: #18181b;
    --text-muted: #71717a;
    --border: #e4e4e7;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 85%;
}

[data-color-mode="dark"] {
    --bg: #09090b;
    --bg-alt: #18181b;
    --bg-card: #18181b;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --border: #3f3f46;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.5), 0 4px 6px -4px rgba(0,0,0,.4);
}

[data-color-mode="dark"] .map-panel {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

[data-color-mode="dark"] .profile-menu-logout:hover {
    background: rgba(220, 38, 38, .15) !important;
}

[data-color-mode="dark"] .filter-btn {
    color: var(--text);
    background: #27272a;
}

[data-color-mode="dark"] .filter-btn:hover,
[data-color-mode="dark"] .filter-btn.active {
    color: #ffffff;
}

[data-color-mode="dark"] .profile-card {
    background: #27272a;
    border: 1px solid #3f3f46;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

[data-color-mode="dark"] .profile-card:hover {
    border-color: #52525b;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}

[data-color-mode="dark"] .profile-card-media {
    background: #18181b;
}

/* Dark mode — --primary sert au header/footer (souvent noir), pas au texte sur fond sombre */
[data-color-mode="dark"] .home-intro-toggle {
    color: var(--secondary);
}
[data-color-mode="dark"] .home-intro-toggle:hover {
    text-decoration: underline;
    opacity: 1;
}
[data-color-mode="dark"] .profile-tag-link {
    color: var(--secondary);
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 10%, var(--bg-card));
}
[data-color-mode="dark"] .profile-tag-link:hover {
    background: var(--secondary);
    color: #fff;
    opacity: 1;
}
[data-color-mode="dark"] #profileModal .modal-escort-phone {
    color: var(--secondary);
}
[data-color-mode="dark"] #profileModal .modal-escort-service,
[data-color-mode="dark"] #profileModal .modal-escort-service-link {
    background: color-mix(in srgb, var(--secondary) 12%, var(--bg-card));
}
[data-color-mode="dark"] .btn-voir-plus {
    color: var(--text);
    border-color: color-mix(in srgb, var(--secondary) 45%, var(--border));
}
[data-color-mode="dark"] .btn-voir-plus:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}
[data-color-mode="dark"] .link-chip {
    color: var(--text);
    border-color: var(--border);
    background: var(--bg-alt);
}
[data-color-mode="dark"] .link-chip:hover {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 12%, var(--bg-card));
    color: var(--secondary);
    opacity: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--secondary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .container { max-width: var(--max-width); } }

/* Header */
.site-header {
    background: var(--primary);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-lg);
}
/* Variant header 2 : version compacte (hauteur réduite, logo plus discret) */
.tpl-header-2 .site-header { padding: 8px 0; }
.tpl-header-2 .header-logo { font-size: clamp(0.9rem, 3vw, 1.05rem); }
.site-header .container:not(.header-inner) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-header > .header-inner.container {
    display: grid;
    flex-wrap: nowrap;
}
.header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.header-logo {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    font-weight: 700;
    color: white;
    line-height: 1.25;
    max-width: 100%;
    min-width: 0;
}
.header-logo:hover { opacity: 1; color: var(--secondary); }
.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-nav-desktop { display: none; }
.site-header .header-nav-desktop { display: none; }
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.12);
    cursor: pointer;
}
.header-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.header-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.is-open span:nth-child(2) { opacity: 0; }
.header-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity .25s, visibility .25s;
}
.header-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.header-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow: hidden;
}
.header-drawer-overlay.active .header-drawer { transform: translateX(0); }
.header-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: #fff;
}
.header-drawer-head strong { font-size: 1.05rem; }
.header-drawer-close {
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.header-drawer-search {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.header-drawer-search .search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .95rem;
}
.header-drawer-search .search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.header-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}
.header-drawer-section {
    border-bottom: 1px solid var(--border);
}
.header-drawer-section.is-hidden { display: none; }
.header-drawer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    text-align: left;
}
.header-drawer-toggle:hover {
    background: var(--bg-alt);
    opacity: 1;
}
.header-drawer-chevron {
    flex-shrink: 0;
    font-size: .7rem;
    color: var(--text-muted);
    transition: transform .2s ease;
}
.header-drawer-section.is-open .header-drawer-chevron {
    transform: rotate(180deg);
}
.header-drawer-panel {
    display: none;
    padding: 0 16px 14px;
}
.header-drawer-section.is-open .header-drawer-panel {
    display: block;
}
.header-drawer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}
.header-drawer-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 20px;
    background: var(--bg-alt);
    color: var(--text) !important;
    font-size: .88rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.header-drawer-link:hover {
    background: var(--secondary);
    color: #fff !important;
    opacity: 1;
}
.header-drawer-link.is-hidden { display: none; }
.header-drawer-more { font-weight: 600; border: 1px dashed var(--border); background: var(--bg-card); }

.header-drawer-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
}
.header-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: filter .2s, transform .15s;
    box-sizing: border-box;
}
.header-drawer-cta:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.header-drawer-cta-primary {
    background: var(--secondary);
    color: #fff !important;
    border: 2px solid var(--secondary);
}
.header-drawer-cta-primary:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

@media (min-width: 992px) {
    .site-header { padding: 18px 0; }
    .tpl-header-2 .site-header { padding: 10px 0; }
    .tpl-header-2 .header-logo { font-size: clamp(1.05rem, 1.3vw, 1.4rem); }
    .site-header > .header-inner.container {
        display: grid;
        max-width: min(1600px, 100%);
        padding-left: 24px;
        padding-right: 24px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 20px;
        align-items: center;
    }
    .header-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        text-align: left;
        font-size: clamp(1.15rem, 1.5vw, 1.65rem);
        max-width: none;
        white-space: nowrap;
    }
    .header-nav-desktop {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .header-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        flex-shrink: 0;
    }
    .header-hamburger { display: none; }
    .header-auth-btn,
    .header-profile { display: flex; }

    .header-nav-group { position: relative; flex: 0 1 auto; }
    .header-nav-toggle,
    .header-nav-link {
        color: #fff;
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.22);
        font-size: .98rem;
        padding: 11px 18px;
        border-radius: 10px;
        cursor: pointer;
        text-decoration: none;
        font-family: inherit;
        font-weight: 600;
        white-space: nowrap;
        line-height: 1.2;
        transition: background .2s, border-color .2s, transform .15s;
    }
    .header-nav-toggle::after {
        content: ' ▾';
        font-size: .85em;
        opacity: .85;
    }
    .header-nav-toggle:hover,
    .header-nav-link:hover {
        background: rgba(255,255,255,.2);
        border-color: rgba(255,255,255,.35);
        color: #fff;
        opacity: 1;
        transform: translateY(-1px);
    }
    .header-nav-group.open .header-nav-toggle {
        background: rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.4);
        color: #fff;
    }
    .header-nav-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        width: min(680px, calc(100vw - 48px));
        min-width: 320px;
        max-height: min(460px, 70vh);
        overflow-y: auto;
        background: var(--bg-card);
        border-radius: 14px;
        box-shadow: 0 16px 48px rgba(0,0,0,.18);
        padding: 16px;
        z-index: 50;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .header-nav-group.open .header-nav-dropdown {
        display: grid;
    }
    .header-nav-dropdown a {
        display: block;
        padding: 11px 14px;
        border-radius: 8px;
        color: var(--text) !important;
        font-size: .98rem;
        font-weight: 500;
        line-height: 1.35;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .header-nav-dropdown a:hover {
        background: var(--bg-alt);
        opacity: 1;
        color: var(--secondary) !important;
    }
    .header-nav-more {
        grid-column: 1 / -1;
        border-top: 1px solid var(--border);
        margin-top: 6px;
        padding-top: 12px !important;
        font-weight: 700;
        font-size: 1rem !important;
        color: var(--secondary) !important;
        text-align: center;
    }

    .site-header .btn-header.header-auth-btn {
        padding: 13px 30px !important;
        font-size: 1.05rem !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        min-height: 48px;
        white-space: nowrap;
    }
    .header-profile .profile-btn {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    .header-profile .profile-btn svg {
        width: 26px;
        height: 26px;
    }
}

@media (min-width: 1200px) {
    .header-nav-dropdown {
        width: min(760px, calc(100vw - 64px));
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .header-auth-btn,
    .header-profile { display: none; }
    .site-header .header-nav-desktop,
    .site-header .header-nav-dropdown {
        display: none !important;
    }
}

.site-header .logo { font-size: 1.5rem; font-weight: 700; color: white; }
.site-header .logo:hover { opacity: 1; color: var(--secondary); }
.btn-header { background: var(--secondary) !important; color: white !important; padding: 8px 20px !important; border-radius: var(--radius-sm) !important; font-weight: 600; }
.btn-header:hover { filter: brightness(1.1); }

/* Header chat CTA (logged-in users, non-dashboard pages) */
.header-chat-cta {
    background: var(--primary);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.2);
}
.header-chat-cta-inner {
    padding: 10px 0 12px;
    text-align: center;
}
.header-chat-cta-online {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.header-chat-cta-button {
    display: inline-block;
    width: min(640px, 100%);
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 7px;
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .95rem;
    padding: 10px 14px;
    background: transparent;
}
.header-chat-cta-button:hover {
    opacity: 1;
    background: rgba(255,255,255,.12);
}
.header-chat-cta-note {
    margin-top: 8px;
    font-size: .88rem;
    font-weight: 600;
}
.header-guest-cta {
    display: none;
    background: var(--primary);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.2);
}
.header-guest-cta-inner {
    padding: 8px 0 12px;
    text-align: center;
}
.header-guest-cta-online {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.08;
}
.header-guest-cta-button {
    display: inline-block;
    width: min(680px, 100%);
    border: 2px solid rgba(255,255,255,.92);
    border-radius: 7px;
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    padding: 12px 16px;
    background: transparent;
}
.header-guest-cta-button:hover {
    opacity: 1;
    background: rgba(255,255,255,.12);
}
.header-guest-cta-note {
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
}
.mobile-public-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    z-index: 160;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-public-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}
.mobile-public-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: .65rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    border-radius: 12px;
    position: relative;
}
.mobile-public-nav a svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}
.mobile-public-nav a.active {
    color: var(--secondary);
}
.mobile-public-nav a.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 3px;
    background: var(--secondary);
}
@media (max-width: 640px) {
    .header-chat-cta-online { font-size: .95rem; }
    .header-chat-cta-button { font-size: .86rem; padding: 9px 10px; }
    .header-chat-cta-note { font-size: .8rem; }
    .header-guest-cta-online { font-size: 1.12rem; }
    .header-guest-cta-button { font-size: .95rem; padding: 10px 12px; }
    .header-guest-cta-note { font-size: .82rem; }
}

/* Profile dropdown */
.profile-dropdown { position: relative; }
.profile-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
    color: white; cursor: pointer; transition: all .2s;
}
.profile-btn:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); }
.profile-btn svg { pointer-events: none; }

.profile-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--bg-card); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.15);
    min-width: 240px; overflow: hidden; z-index: 200;
    border: 1px solid var(--border);
    animation: menuFadeIn .15s ease;
}
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.profile-dropdown.open .profile-menu { display: block; }
.profile-dropdown.open .profile-btn { background: var(--secondary); border-color: var(--secondary); }

.profile-menu-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-weight: 600; font-size: .9rem; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; color: var(--text) !important; font-size: .9rem;
    transition: background .15s;
}
.profile-menu a:hover { background: var(--bg-alt); opacity: 1; }
.profile-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.profile-menu-logout { color: #dc2626 !important; }
.profile-menu-logout:hover { background: #fef2f2 !important; }

/* Ville Map */
.ville-map-panel { margin-bottom: 20px; position: relative; z-index: 1; }
.ville-map-card {
    background: var(--bg-card); border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08); border: 1px solid var(--border);
}
.ville-map-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.ville-map-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--secondary); color: white; font-size: .8rem;
    font-weight: 600; padding: 4px 12px; border-radius: 20px;
}
.ville-map-container {
    width: 100%; height: 400px; position: relative; background: #f0f0f0;
}
.ville-map-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 12px; color: var(--text-muted); font-size: .9rem;
}
.ville-map-spinner {
    width: 32px; height: 32px; border: 3px solid var(--border);
    border-top-color: var(--secondary); border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Map profile markers */
.custom-profile-marker { background: none !important; border: none !important; }
.map-profile-marker {
    width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
    border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,.3);
    background-size: cover; background-position: center; cursor: pointer;
    transition: transform .2s;
}
.map-profile-marker:hover { transform: scale(1.15); }

@media (max-width: 768px) {
    .ville-map-container { height: 300px; }
}

/* Modal carousel */
.modal-carousel {
    position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden;
    background: #000; border-radius: var(--radius) var(--radius) 0 0;
    flex-shrink: 0;
}
.modal-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
    pointer-events: none;
}
.modal-slide.active { opacity: 1; pointer-events: auto; }
.modal-slide .modal-image {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.modal-image-mirror {
    transform: scaleX(-1) rotate(180deg); filter: blur(20px) !important;
}
.modal-image-zoom {
    transform: scale(1.5); transform-origin: center; filter: blur(20px) !important;
}
/* CTA overlay on blurred slides */
.modal-cta-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: rgba(0,0,0,.35);
    z-index: 10; padding: 20px; text-align: center;
}
.modal-cta-overlay p {
    color: white; font-size: 1.15rem; font-weight: 600; margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5); max-width: 280px;
}
.btn-cta-overlay {
    display: inline-block; color: white !important; font-size: .95rem; font-weight: 600;
    padding: 12px 28px; border-radius: 10px; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: opacity .2s, transform .2s;
}
.btn-cta-overlay:hover { opacity: .9; transform: scale(1.03); color: white !important; }

/* Carousel navigation */
.modal-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
    background: rgba(0,0,0,.5); color: white; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: background .2s;
    line-height: 1;
}
.modal-nav:hover { background: rgba(0,0,0,.7); }
.modal-nav-prev { left: 10px; }
.modal-nav-next { right: 10px; }
.modal-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 20;
}
.modal-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.5); transition: all .2s; padding: 0;
}
.modal-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* Hero / Page header */
.page-header { text-align: center; padding: 48px 0 32px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; }

/* Sections */
.section { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
@media (min-width: 640px) { .section { padding: 32px; } }
.section h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 20px; color: var(--text); }

/* Profile Grid */
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 640px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .profile-grid { grid-template-columns: repeat(4, 1fr); } }

.profile-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}
.profile-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }

.profile-card-media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-alt);
}

.profile-card .profile-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    vertical-align: top;
}
.profile-card .profile-image.blurred { filter: blur(var(--blur-amount, 16px)); }

.profile-card .profile-info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.profile-card .profile-headline {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--secondary);
}

.profile-card .profile-bio {
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-card .profile-bio-name {
    font-weight: 700;
    color: var(--text);
}

.profile-card .profile-bio-age {
    font-weight: 400;
    color: var(--text-muted);
}

.profile-card .profile-location-line {
    margin-top: auto;
    padding-top: 4px;
    font-size: .82rem;
    line-height: 1.4;
}

.profile-card .profile-location-label {
    font-weight: 700;
    color: var(--text);
}

.profile-card .profile-location-value {
    color: var(--text-muted);
    text-decoration: none;
}

a.profile-location-value:hover {
    color: var(--secondary);
    text-decoration: underline;
    opacity: 1;
}

.profile-card .profile-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 600;
}

.profile-card .profile-age-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 600;
}

/* 1 seul tag max sur la carte : pas de pile de chips */
.profile-card .profile-tags {
    margin-top: 6px;
}

/* Profile Popup/Modal */
#profileModal.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 1000; align-items: center; justify-content: center;
    padding: 20px;
}
#profileModal.modal-overlay.active { display: flex; }

#profileModal .profile-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

#profileModal .modal-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#profileModal .modal-media-col {
    flex-shrink: 0;
}

#profileModal .modal-info-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
}

#profileModal .modal-close {
    position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.5); color: white;
    border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 30;
}

#profileModal .modal-carousel {
    border-radius: var(--radius) var(--radius) 0 0;
}

#profileModal .modal-body { padding: 24px; flex: 1; min-height: 0; overflow-y: auto; }
#profileModal .modal-header-block { margin-bottom: 16px; }
#profileModal .modal-headline {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
#profileModal .modal-headline-cat-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
#profileModal .modal-headline-cat-link:hover {
    opacity: 0.85;
}
#profileModal .modal-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
#profileModal .modal-display-name {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
#profileModal .modal-display-name .modal-age {
    font-weight: 600;
    color: var(--text-muted);
}
#profileModal .modal-fav-star {
    display: none;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
    background: var(--bg-card);
    transition: background .2s, color .2s, transform .15s;
}
#profileModal .modal-fav-star:hover,
#profileModal .modal-fav-star:active {
    background: var(--secondary);
    color: #fff;
    opacity: 1;
    transform: scale(1.05);
}
#profileModal .modal-body .modal-meta { color: var(--secondary); margin-bottom: 0; display: block; text-decoration: none; font-size: .95rem; font-weight: 500; }
#profileModal .modal-body a.modal-meta:hover { text-decoration: underline; opacity: 1; }
#profileModal .modal-bio-wrap {
    background: linear-gradient(135deg, var(--bg-alt) 0%, transparent 100%);
    border-left: 3px solid var(--secondary);
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    margin-bottom: 18px;
}
#profileModal .modal-body .modal-bio {
    line-height: 1.75;
    margin: 0;
    font-size: .95rem;
    color: var(--text);
}
#profileModal .modal-tags-block { margin-bottom: 0; }
#profileModal .modal-tags-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 0 0 8px;
}
#profileModal .modal-tags-label--passions { margin-top: 14px; }
#profileModal .modal-body .modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}
#profileModal .modal-body .modal-tag {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.3;
}
#profileModal .modal-tag--info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}
#profileModal .modal-tag--passion {
    background: color-mix(in srgb, var(--secondary) 12%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--secondary) 35%, transparent);
    color: var(--text);
}
#profileModal .modal-actions {
    display: flex; gap: 12px; flex-shrink: 0;
    padding: 16px 24px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
#profileModal .modal-actions .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 1.02rem;
    min-height: 50px;
}

/* Barre CTA sticky mobile (escort/BDSM) : cachée sur desktop, où le CTA inline suffit */
#profileModal .modal-actions--mobile { display: none; }

@media (min-width: 769px) {
    #profileModal .profile-modal-content {
        max-width: min(920px, 94vw);
        width: 100%;
        max-height: min(88vh, 720px);
        height: min(88vh, 720px);
    }

    #profileModal .modal-layout {
        flex-direction: row;
        align-items: stretch;
        height: 100%;
        max-height: min(88vh, 720px);
    }

    #profileModal .modal-media-col {
        flex: 0 0 44%;
        max-width: 400px;
        min-width: 300px;
        display: flex;
        flex-direction: column;
    }

    #profileModal .modal-carousel {
        flex: 1;
        width: 100%;
        aspect-ratio: unset;
        min-height: 100%;
        height: 100%;
        max-height: min(88vh, 720px);
        border-radius: var(--radius) 0 0 var(--radius);
    }

    #profileModal .modal-info-col {
        flex: 1;
        border-left: 1px solid var(--border);
    }

    #profileModal .modal-body {
        padding: 28px 28px 16px;
    }

    #profileModal .modal-actions {
        flex-direction: column;
        gap: 10px;
        padding: 16px 28px 28px;
        margin-top: auto;
    }

    #profileModal .modal-actions .modal-contact-btn,
    #profileModal .modal-actions .modal-fav-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 16px 24px;
        font-size: 1.05rem;
        min-height: 52px;
    }
}

@media (max-width: 768px) {
    #profileModal.modal-overlay { padding: 12px; align-items: flex-end; }
    #profileModal .profile-modal-content {
        max-height: calc(100vh - 24px - env(safe-area-inset-bottom, 0px));
        border-radius: var(--radius) var(--radius) 0 0;
    }
    /* Photo non figée : la popup entière défile d'un bloc (la photo part avec
       le scroll), seul le CTA inscription reste sticky en bas. */
    #profileModal .modal-layout {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    #profileModal .modal-info-col {
        flex: none;
        min-height: auto;
        overflow: visible;
    }
    #profileModal .modal-body {
        flex: none;
        min-height: auto;
        overflow-y: visible;
    }
    #profileModal .modal-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
    }
    /* Escort/BDSM : le CTA inline du contenu est remplacé par la barre sticky.
       Spécificité (1,2,0) : bat les display:block déclarés plus bas dans le fichier. */
    #profileModal .modal-actions--mobile { display: flex; }
    #profileModal .modal-layout .modal-escort-cta,
    #profileModal .modal-layout .modal-bdsm-cta { display: none; }
    #profileModal .modal-body { padding: 16px; }
    #profileModal .modal-actions {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    }
    #profileModal .modal-actions .modal-contact-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 14px 20px;
        font-size: 1rem;
    }
    #profileModal .modal-actions .modal-fav-btn {
        display: none;
    }
    #profileModal .modal-fav-star {
        display: flex;
    }
    #profileModal .modal-nav { width: 38px; height: 38px; }
    #profileModal .modal-nav-prev { left: 8px; }
    #profileModal .modal-nav-next { right: 8px; }
}

/* Modal 2 — Escort */
#profileModal .profile-modal-content--escort { max-width: min(980px, 96vw); }
#profileModal .modal-escort-header { margin-bottom: 14px; }
#profileModal .modal-escort-title { margin: 0 0 6px; font-size: 1.35rem; font-weight: 700; }
#profileModal .modal-escort-location { margin: 0; color: var(--secondary); font-weight: 600; font-size: .95rem; }
#profileModal .modal-escort-location-link { color: inherit; text-decoration: none; }
#profileModal .modal-escort-location-link:hover { text-decoration: underline; }
#profileModal .modal-escort-phone-line { margin: 6px 0 0; }
#profileModal .modal-escort-phone { color: var(--secondary); font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; letter-spacing: .3px; }
#profileModal .modal-escort-phone:hover { text-decoration: underline; }
#profileModal .modal-escort-box {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--bg-alt);
}
#profileModal .modal-escort-box h4 {
    margin: 0 0 10px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}
#profileModal .modal-escort-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
#profileModal .modal-escort-grid-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    line-height: 1.3;
}
#profileModal .modal-escort-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: .85rem;
}
#profileModal .modal-escort-service {
    padding: 6px 12px;
    border: 1px solid var(--tag-accent, var(--secondary));
    border-radius: 999px;
    font-size: .8rem;
    color: var(--tag-accent, var(--secondary));
    background: color-mix(in srgb, var(--tag-accent, var(--secondary)) 8%, var(--bg-card));
}
#profileModal .modal-escort-lang {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: .8rem;
}
#profileModal .modal-escort-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0 14px;
    padding: 14px 18px;
    background: var(--secondary);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}
#profileModal .modal-escort-bio { margin: 0; line-height: 1.65; font-size: .92rem; }

/* Modal 3 — BDSM */
#profileModal .profile-modal-content--bdsm {
    max-width: min(920px, 96vw);
    background: #121212;
    color: #f5f5f5;
    border: 1px solid #c41e3a;
    box-shadow: 0 0 0 1px rgba(196, 30, 58, .35), 0 12px 40px rgba(0, 0, 0, .55);
    /* Popup toujours sombre : neutralise les variables du thème clair du site. */
    --bg: #121212;
    --bg-alt: #1c1c1c;
    --bg-card: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #a1a1aa;
    --border: #3f3f46;
}
#profileModal .profile-modal-content--bdsm .modal-close { background: rgba(255,255,255,.15); }
#profileModal .modal-bdsm-header { margin-bottom: 14px; }
#profileModal .modal-bdsm-title { margin: 0 0 6px; font-size: 1.3rem; }
#profileModal .modal-bdsm-location { margin: 0 0 4px; color: #ccc; font-size: .92rem; }
#profileModal .modal-bdsm-email { margin: 0; color: #ff4d6d; font-size: .9rem; font-weight: 600; }
#profileModal .modal-bdsm-box {
    border: 1px solid rgba(196, 30, 58, .55);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .03);
}
#profileModal .modal-bdsm-box h4 {
    margin: 0 0 10px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #bbb;
}
#profileModal .modal-bdsm-practices { display: flex; flex-wrap: wrap; gap: 8px; }
#profileModal .modal-bdsm-practice {
    padding: 6px 12px;
    border: 1px solid var(--tag-accent, #c41e3a);
    border-radius: 999px;
    font-size: .8rem;
    color: #fff;
    background: color-mix(in srgb, var(--tag-accent, #c41e3a) 12%, transparent);
}
#profileModal .modal-bdsm-practice-link,
#profileModal .modal-escort-service-link {
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    opacity: 1;
}
#profileModal .modal-bdsm-practice-link:hover,
#profileModal .modal-escort-service-link:hover {
    opacity: 1;
}
#profileModal .modal-bdsm-practice-link:hover,
#profileModal .modal-escort-service-link:hover {
    background: var(--tag-accent, #c41e3a);
    color: #fff;
}
#profileModal .modal-escort-service-link:hover {
    background: var(--tag-accent, var(--secondary));
}
#profileModal .modal-escort-languages { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.profile-tag-link {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--tag-accent, var(--secondary));
    border-radius: 999px;
    font-size: .72rem;
    color: var(--tag-accent, var(--secondary));
    text-decoration: none;
    line-height: 1.3;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.profile-tag-link:hover {
    background: var(--tag-accent, var(--secondary));
    color: #fff;
    opacity: 1;
}

/* ============ TAG FAMILIES ============ */
/* Les classes .tag-family--X restent posées sur les tags (cartes et popups) mais
   sans override de couleur : tous les tags suivent l'accent du site via le
   fallback var(--tag-accent, var(--secondary)). */

/* Passions cliquables (popup dating) */
#profileModal .modal-body a.modal-tag-link {
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--tag-accent, var(--secondary)) 45%, transparent);
    background: color-mix(in srgb, var(--tag-accent, var(--secondary)) 12%, var(--bg-card));
    color: var(--text);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
#profileModal .modal-body a.modal-tag-link:hover {
    background: var(--tag-accent, var(--secondary));
    border-color: var(--tag-accent, var(--secondary));
    color: #fff;
    opacity: 1;
}

/* Liens catégories (toutes popups) : chips pleines, distinctes des tags */
#profileModal .modal-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#profileModal .modal-cat-link {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    background: var(--secondary);
    color: #fff;
    transition: filter .15s ease, transform .15s ease;
}
#profileModal .modal-cat-link:hover {
    filter: brightness(1.12);
    opacity: 1;
    transform: translateY(-1px);
}
#profileModal .modal-bdsm-about {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
#profileModal .modal-bdsm-about-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: .82rem;
}
#profileModal .modal-bdsm-about-item strong { display: block; font-size: .72rem; color: #aaa; text-transform: uppercase; }
/* Spécificité > "#profileModal .modal-body .modal-bio" : la bio BDSM reste
   claire même si le site est en thème light (popup toujours sombre). */
#profileModal .modal-bdsm-bio,
#profileModal .profile-modal-content--bdsm .modal-body .modal-bio { margin: 0; line-height: 1.65; color: #ddd; font-size: .9rem; white-space: pre-wrap; }
#profileModal .modal-layout--bdsm .modal-body {
    padding-bottom: 20px;
}
#profileModal .modal-bdsm-box--bio {
    margin-bottom: 14px;
}
#profileModal .modal-bdsm-cta {
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 14px 18px;
    text-align: center;
    background: #ff7a00;
    color: #111;
    font-weight: 700;
    border-radius: 0;
    text-decoration: none;
    border-top: 1px solid rgba(196, 30, 58, .35);
    box-sizing: border-box;
    width: 100%;
}
@media (min-width: 769px) {
    #profileModal .modal-layout--bdsm { flex-direction: row; }
    #profileModal .modal-layout--bdsm .modal-info-col { flex: 1; border-right: 1px solid rgba(196,30,58,.35); }
    #profileModal .modal-layout--bdsm .modal-media-col { flex: 0 0 46%; max-width: 420px; }
    #profileModal .modal-layout--escort .modal-media-col { flex: 0 0 42%; }
}

/* Generic modal shell (settings, etc.) */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 1000; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--bg-card); border-radius: var(--radius); max-width: 600px; width: 100%;
    max-height: 90vh; overflow: hidden; position: relative;
    display: flex; flex-direction: column;
}
.modal-close {
    position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.5); color: white;
    border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10;
}
.modal-body { padding: 24px; flex: 1; min-height: 0; overflow-y: auto; }
.modal-body h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: .95rem; border: none; cursor: pointer; transition: all .2s;
    text-decoration: none;
}
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { filter: brightness(1.1); color: white; opacity: 1; }
.btn-secondary { background: var(--bg-alt); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn-outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-weight: 500;
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); opacity: 1; }
.btn-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; color: #7f1d1d; opacity: 1; }

.profile-settings-trigger {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}
.profile-settings-open {
    font-size: .85rem;
    gap: 6px;
}
.profile-settings-modal { max-width: 440px; }
.profile-settings-modal .modal-close {
    background: var(--bg-alt);
    color: var(--text);
}
.profile-settings-email {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0 0 20px;
}
.profile-settings-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.profile-settings-section:first-of-type {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
}
.profile-settings-section h4 {
    font-size: 1rem;
    margin: 0 0 12px;
}
.profile-settings-section p {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0 0 12px;
}
.profile-settings-danger h4 { color: #991b1b; }
.profile-settings-form .btn { margin-top: 4px; }
.profile-settings-overlay { z-index: 1100; }

/* Search */
.search-box { position: relative; margin-bottom: 20px; }
.search-input {
    width: 100%; padding: 12px 16px 12px 44px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1rem; outline: none; transition: border-color .2s;
    background: var(--bg-card);
    color: var(--text);
}
.search-input:focus { border-color: var(--secondary); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Region/Ville links grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.link-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .88rem;
    color: var(--text);
    transition: all .2s;
    text-decoration: none;
    line-height: 1.3;
}
.link-tag::before {
    content: '›';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--secondary, #e00203);
    transition: all .2s;
}
.link-tag:hover {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 5%, var(--bg-card, #fff));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.link-tag:hover::before {
    background: var(--secondary);
    color: #fff;
}
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .link-tag {
        padding: 8px 8px;
        font-size: .78rem;
        min-width: 0;
        gap: 6px;
        word-break: break-word;
    }
    .link-tag::before {
        width: 18px;
        height: 18px;
        font-size: .75rem;
        border-radius: 5px;
    }
}

/* Tag internal linking chips */
.tag-links-section .links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.link-chip {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    transition: all .2s;
}
.link-chip:hover {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 8%, var(--bg-card));
    color: var(--secondary);
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: .9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { margin: 0 8px; }

/* SEO Text */
.seo-text { color: var(--text-muted); line-height: 1.8; }
.home-intro-text {
    max-width: 820px;
    margin: 16px auto 0;
    text-align: center;
}
.home-intro-body {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
}
.home-intro-text.is-collapsed .home-intro-body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 4;
}
.home-intro-toggle {
    display: none;
    margin: 10px auto 0;
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.home-intro-toggle:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .home-intro-text.is-collapsed .home-intro-body {
        -webkit-line-clamp: 2;
    }
}
.seo-text-preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.seo-text-full { display: none; }
.seo-text-full.show { display: block; }
.seo-toggle { color: var(--secondary); cursor: pointer; font-weight: 600; margin-top: 8px; display: inline-block; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #1a1a2e);
    color: white; border-radius: var(--radius); padding: 48px 32px;
    text-align: center; margin-bottom: 24px;
}
.cta-section h2 { color: white; font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 24px; }

/* Footer */
.site-footer {
    background: var(--primary); color: rgba(255,255,255,.7);
    padding: 48px 0 24px; margin-top: 48px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h3 { color: white; font-size: 1rem; margin-bottom: 16px; }
.footer-col-brand .footer-tagline {
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    line-height: 1.6;
    margin: 0;
}
.footer-col a { display: block; color: rgba(255,255,255,.6); margin-bottom: 8px; font-size: .9rem; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .85rem; }

.footer-toggle {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 16px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: default;
    pointer-events: none;
}
.footer-chevron { display: none; }
.footer-col-accordion .footer-panel { display: block; }

@media (max-width: 768px) {
    .site-footer {
        padding: 28px 0 20px;
        margin-top: 32px;
    }
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
        text-align: center;
    }
    .footer-col-brand {
        padding: 0 16px 18px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .footer-col-brand h3 {
        margin-bottom: 10px;
    }
    .footer-col-brand .footer-tagline {
        max-width: 320px;
        margin: 0 auto;
    }
    .footer-col-accordion {
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .footer-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 16px;
        margin: 0;
        cursor: pointer;
        pointer-events: auto;
        text-align: center;
        font-size: .95rem;
    }
    .footer-chevron {
        display: inline-block;
        font-size: .65rem;
        opacity: .75;
        transition: transform .2s ease;
    }
    .footer-col-accordion.is-open .footer-chevron {
        transform: rotate(180deg);
    }
    .footer-col-accordion .footer-panel {
        display: none;
        padding: 0 20px 16px;
    }
    .footer-col-accordion.is-open .footer-panel {
        display: block;
    }
    .footer-col a {
        text-align: center;
        margin-bottom: 10px;
    }
    .footer-bottom {
        padding-top: 18px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Trust Badges — 5 max, one row (desktop) / carousel peek (mobile) */
.trust-badges {
    background: transparent;
    padding: 32px 0;
}
.trust-carousel {
    position: relative;
}
.trust-carousel-btn {
    display: none;
}
.trust-carousel-viewport {
    overflow: visible;
}
.trust-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(8px, 1.5vw, 24px);
    text-align: center;
    width: 100%;
}
.trust-item {
    flex: 1 1 0;
    min-width: 0;
    padding: clamp(8px, 1.2vw, 16px);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.trust-icon {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    margin-bottom: clamp(4px, 0.8vw, 8px);
    line-height: 1;
}
.trust-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: clamp(0.7rem, 1.5vw, 0.95rem);
    line-height: 1.25;
}
.trust-desc {
    font-size: clamp(0.62rem, 1.25vw, 0.85rem);
    color: var(--text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 768px) {
    .trust-badges {
        padding: 20px 0;
    }
    .trust-badges .container {
        padding-left: 0;
        padding-right: 0;
    }
    .trust-carousel {
        display: flex;
        align-items: center;
        gap: 2px;
    }
    .trust-carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: var(--bg-card);
        color: var(--text);
        font-size: 1.1rem;
        line-height: 1;
        cursor: pointer;
        z-index: 2;
    }
    .trust-carousel-btn:active {
        opacity: 0.85;
    }
    .trust-carousel-viewport {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .trust-carousel-viewport::-webkit-scrollbar {
        display: none;
    }
    .trust-grid {
        justify-content: flex-start;
        gap: 10px;
        padding: 4px calc((100vw - 56px) * 0.1);
        width: max-content;
        min-width: 100%;
    }
    .trust-item {
        flex: 0 0 calc((100vw - 56px) * 0.8);
        max-width: calc((100vw - 56px) * 0.8);
        scroll-snap-align: center;
        padding: 14px 12px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        transform: scale(0.88);
        opacity: 0.72;
        transform-origin: center center;
    }
    .trust-item.is-active {
        transform: scale(1);
        opacity: 1;
        box-shadow: none;
    }
}

.footer-signup-cta {
    padding: 32px 16px;
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.footer-signup-cta h2 {
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    margin: 0 0 10px;
    line-height: 1.3;
}
.footer-signup-cta p {
    color: var(--text-muted);
    margin: 0 0 18px;
    font-size: .95rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.footer-signup-cta .btn {
    min-width: min(100%, 280px);
}

/* Age Gate */
.age-gate {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.85); z-index: 9999;
    align-items: center; justify-content: center;
}
.age-gate.active { display: flex; }
.age-gate-content {
    background: var(--bg-card); border-radius: var(--radius); padding: 48px 32px;
    text-align: center; max-width: 480px; width: 90%;
}
.age-gate-content h2 { font-size: 1.8rem; margin-bottom: 16px; }
.age-gate-content p { color: var(--text-muted); margin-bottom: 24px; }
.age-gate-buttons { display: flex; gap: 16px; justify-content: center; }

@media (max-width: 640px) {
    .age-gate-content { padding: 28px 18px; width: calc(100% - 28px); }
    .age-gate-content h2 { font-size: 1.35rem; }
    .age-gate-buttons { flex-direction: column; }
    .age-gate-buttons .btn { width: 100%; }
    .btn-lg { padding: 12px 18px; font-size: 1rem; }
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 1rem; outline: none; transition: border-color .2s;
    font-family: var(--font);
    background: var(--bg-card);
    color: var(--text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--secondary); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error { color: #dc2626; font-size: .85rem; margin-top: 4px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-btn {
    padding: 6px 16px; border-radius: 20px; border: 2px solid var(--border);
    background: var(--bg-card); color: var(--text); cursor: pointer; font-size: .9rem; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--secondary); background: var(--secondary); color: white; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: .9rem;
}
.pagination a:hover { background: var(--bg-alt); }
.pagination .active { background: var(--secondary); color: white; border-color: var(--secondary); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--secondary); color: white;
    width: 44px; height: 44px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-lg); z-index: 90;
    border: none; font-size: 1.2rem;
}
.back-to-top.visible { display: flex; }

/* Alert/Messages */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; min-height: 70vh; }
.dashboard-sidebar { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; }
.dashboard-sidebar .sidebar-title { font-size: 1.1rem; margin-bottom: 16px; padding: 0 16px; }
.dashboard-sidebar a { display: block; padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 4px; color: var(--text); font-size: .95rem; }
.dashboard-sidebar a:hover, .dashboard-sidebar a.active { background: var(--bg-alt); color: var(--secondary); opacity: 1; }
.dashboard-sidebar .sidebar-admin { display: block; }
.dashboard-content { min-width: 0; }

/* Mobile bottom nav */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card); z-index: 150;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
}
.mobile-bottom-nav-inner {
    display: flex; justify-content: space-around; align-items: center;
    max-width: 500px; margin: 0 auto;
}
.mobile-bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 12px; color: var(--text-muted); font-size: .65rem;
    font-weight: 600; text-decoration: none; transition: all .2s;
    border-radius: 12px; position: relative;
}
.mobile-bottom-nav a svg { width: 24px; height: 24px; stroke-width: 1.8; }
.mobile-bottom-nav a.active { color: var(--secondary); }
.mobile-bottom-nav a.active::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; border-radius: 3px; background: var(--secondary);
}

@media (max-width: 768px) {
    .header-guest-cta { display: block; }
    .profile-menu {
        position: fixed;
        left: 10px;
        right: 10px;
        top: 74px;
        min-width: 0;
        max-width: none;
    }
    .mobile-public-nav { display: block; }
    .dashboard-layout { grid-template-columns: 1fr; padding-bottom: 80px; }
    .dashboard-sidebar { display: none; }
    .mobile-bottom-nav { display: block; }
    .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* Scrolling regions / villes bar — manual swipe on mobile, auto marquee desktop only */
.scrolling-bar {
    background: var(--bg-alt);
    padding: 12px 0;
}
.scrolling-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.scrolling-viewport::-webkit-scrollbar {
    display: none;
}
.scrolling-track {
    display: flex;
    width: max-content;
}
.scrolling-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0;
}
.scrolling-group a {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .85rem;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
}
.scrolling-group a:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    opacity: 1;
}

@media (max-width: 768px) {
    .scrolling-viewport {
        scroll-snap-type: x proximity;
    }
    .scrolling-group a {
        scroll-snap-align: start;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
    .scrolling-viewport {
        overflow: hidden;
    }
    .scrolling-track {
        will-change: transform;
        animation: scrolling-marquee 35s linear infinite;
    }
    .scrolling-bar.is-paused .scrolling-track {
        animation-play-state: paused;
    }
}

@keyframes scrolling-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Login form */
.login-card { max-width: 440px; margin: 60px auto; }

/* Responsive */
@media (max-width: 640px) {
    .page-header { padding: 32px 0 20px; }
    .page-header h1 { font-size: 1.8rem; }
    .section { padding: 16px; border-radius: 12px; }
    .profile-grid { gap: 10px; }
    .site-header nav { gap: 8px; }
}

/* Section header with button */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 0; }

/* Map toggle button */
.btn-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: all .2s;
    white-space: nowrap;
}
.btn-map-toggle:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}
.btn-map-toggle.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Map panel (hidden by default, shown on toggle) */
.map-panel {
    overflow: hidden;
    transition: all .3s ease;
    margin-bottom: 16px;
    border-radius: var(--radius-sm, 12px);
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    padding: 12px 8px;
}
.map-panel:empty { display: none; padding: 0; background: none; }

/* Collapsible links grid (1 row by default) */
.links-grid-collapsed {
    max-height: 50px;
    overflow: hidden;
    position: relative;
    transition: max-height .3s ease;
}
.links-grid-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--bg, #fff));
    pointer-events: none;
}
.links-grid-expanded {
    max-height: none !important;
    overflow: visible;
}
.links-grid-expanded::after {
    display: none;
}

/* Voir plus button */
.btn-voir-plus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .2s;
}
.btn-voir-plus:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ============ SIGNUP POPUP ============ */
.signup-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6); z-index: 2000;
    align-items: center; justify-content: center; padding: 20px;
}
.signup-overlay.active { display: flex; }

.signup-popup {
    background: var(--bg-card); border-radius: var(--radius); max-width: 440px; width: 100%;
    position: relative; overflow: hidden;
    animation: signupSlideIn .3s ease;
}
@keyframes signupSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.signup-close {
    position: absolute; top: 12px; right: 12px; background: var(--bg-alt);
    border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    z-index: 10; color: var(--text-muted); transition: all .2s;
}
.signup-close:hover { background: var(--border); color: var(--text); }

.signup-header {
    text-align: center; padding: 32px 32px 0;
}
.signup-header h2 {
    font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.signup-header p {
    color: var(--text-muted); font-size: .95rem; margin: 0;
}

.signup-body { padding: 24px 32px 32px; }

.signup-step { display: none; }
.signup-step.active { display: block; animation: signupFadeStep .3s ease; }
@keyframes signupFadeStep {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.signup-email-display {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-alt); padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 20px; font-size: .9rem; color: var(--text);
}
.signup-email-display span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signup-email-edit {
    background: none; border: none; color: var(--secondary); cursor: pointer;
    font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.signup-email-edit:hover { text-decoration: underline; }

.signup-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--text-muted); font-size: .85rem;
}
.signup-divider::before, .signup-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.signup-footer {
    text-align: center; padding: 0 32px 24px;
    color: var(--text-muted); font-size: .9rem;
}
.signup-footer a { font-weight: 600; }

@media (max-width: 640px) {
    .signup-overlay { padding: 12px; }
    .signup-popup { max-height: 90vh; overflow-y: auto; }
    .signup-header { padding: 22px 18px 0; }
    .signup-body { padding: 18px 18px 22px; }
    .signup-footer { padding: 0 18px 18px; }
}

.signup-alert {
    padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
    font-size: .9rem; background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5;
}

.signup-steps-indicator {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 4px;
}
.signup-step-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border);
    transition: all .3s;
}
.signup-step-dot.active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.p-4 { padding: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.hidden { display: none; }
.bg-gradient { background: linear-gradient(to bottom, var(--bg-alt), var(--bg)); }

/* ============ INFO DUO (FAQ + Local Businesses side by side) ============ */
.info-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.info-duo-col {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.info-duo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin: 0;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    color: var(--text-color);
}
.info-duo-title svg { flex-shrink: 0; opacity: .7; }

/* Accordion */
.accordion { }
.accordion-item {
    border-bottom: 1px solid var(--border);
}
.accordion-item:last-child { border-bottom: none; }
.accordion-item summary { list-style: none; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    color: var(--text-color);
    transition: background .2s;
    gap: 8px;
    user-select: none;
    position: relative;
}
.accordion-header::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform .25s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.accordion-item[open] > .accordion-header::after {
    transform: rotate(-135deg);
}
.accordion-header:hover {
    background: var(--bg-alt);
}
.accordion-badge {
    font-size: .75rem;
    font-weight: 700;
    background: var(--secondary, #e00203);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 4px;
    margin-right: 8px;
    flex-shrink: 0;
}
.accordion-body {
    padding: 4px 20px 16px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    animation: accordionSlide .25s ease;
}
@keyframes accordionSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Business items inside accordion */
.biz-item {
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.biz-item:last-child { border-bottom: none; }
.biz-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-color);
}
.biz-addr {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.biz-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .82rem;
    color: var(--secondary, #e00203);
    margin-top: 3px;
    font-weight: 500;
}
.biz-phone svg { opacity: .7; }
.biz-phone a { color: var(--secondary); text-decoration: none; font-weight: 500; }
.biz-phone a:hover { text-decoration: underline; opacity: 1; }
.biz-phone-hidden .biz-phone-cta { font-style: italic; color: var(--secondary); font-size: .82rem; }
.biz-phone-hidden .biz-phone-cta:hover { text-decoration: underline; opacity: 1; }

/* ============ WEATHER WIDGET (ville) ============ */
.weather-card { padding: 16px 20px; }
.weather-status, .weather-error { color: var(--text-muted); font-size: .92rem; }
.weather-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 10px 12px;
    border-radius: 12px;
}
.weather-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.weather-city { font-weight: 800; font-size: 1.05rem; }
.weather-label { color: var(--text-muted); font-size: .9rem; text-align: right; }
.weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.weather-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
}
.weather-k { color: var(--text-muted); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.weather-v { font-size: 1.05rem; font-weight: 800; margin-top: 2px; }
.weather-foot { margin-top: 10px; color: var(--text-muted); font-size: .78rem; }

@media (max-width: 640px) {
    .weather-card { padding: 14px 16px; }
    .weather-grid { grid-template-columns: 1fr; }
    .weather-label { text-align: left; }
}

/* Hidden from users, visible to search engines */
.seo-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

@media (max-width: 768px) {
    .info-duo {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============ Prelinker embed (mode inscription externe) ============ */
.prelinker-embed {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.prelinker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    padding: 32px 0;
    font-size: 0.95rem;
}
.prelinker-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--secondary, var(--primary));
    border-radius: 50%;
    animation: prelinker-spin 0.8s linear infinite;
}
@keyframes prelinker-spin { to { transform: rotate(360deg); } }

/* Champs du formulaire injecté — quel que soit son markup distant */
.prelinker-embed form { display: block; }
.prelinker-embed label,
.prelinker-embed legend {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin: 12px 0 6px;
}
.prelinker-embed input[type="text"],
.prelinker-embed input[type="email"],
.prelinker-embed input[type="password"],
.prelinker-embed input[type="number"],
.prelinker-embed input[type="tel"],
.prelinker-embed select,
.prelinker-embed textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 10px;
    appearance: auto;
}
.prelinker-embed input:focus,
.prelinker-embed select:focus,
.prelinker-embed textarea:focus {
    border-color: var(--secondary, var(--primary));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary, var(--primary)) 18%, transparent);
}
.prelinker-embed input[type="radio"],
.prelinker-embed input[type="checkbox"] {
    width: auto;
    margin: 0 6px 0 0;
    accent-color: var(--secondary, var(--primary));
}
.prelinker-embed input[type="submit"],
.prelinker-embed button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--secondary, var(--primary));
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}
.prelinker-embed input[type="submit"]:hover,
.prelinker-embed button:hover { filter: brightness(1.08); }
.prelinker-embed input[type="submit"]:active,
.prelinker-embed button:active { transform: scale(0.99); }
.prelinker-embed img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prelinker-embed a { color: var(--secondary, var(--primary)); }
.prelinker-embed table { width: 100%; }
@media (max-width: 560px) {
    .prelinker-embed { padding: 20px 14px; border-radius: var(--radius-sm); }
}

/* Prelinker : polish du markup distant (icônes flottantes, espacement) */
.prelinker-embed [class*="ptprelinker-icon"],
.prelinker-embed i[class*="icon"] {
    display: none !important;
}
.prelinker-embed > div,
.prelinker-embed form > div {
    margin: 0;
}
.prelinker-embed select {
    cursor: pointer;
    color: var(--text);
}
.prelinker-embed select:invalid,
.prelinker-embed select option[value=""] {
    color: var(--text-muted);
}
.prelinker-embed fieldset {
    border: none;
    padding: 0;
    margin: 0 0 6px;
}
.prelinker-embed legend { padding: 0; }
.prelinker-embed p { margin: 6px 0; color: var(--text-muted); font-size: 0.88rem; }
.prelinker-embed [style*="display: none"] + br,
.prelinker-embed br { display: none; }
