/* =============================================================================
   PEKIN GROUP — Styles personnalisés (non-Tailwind)
   Modèle : immotest/index.html
============================================================================= */

/* ── Typographie ──────────────────────────────────────────────────────────── */
/*
 * Display (titres) : Cormorant Garamond — serif élégant, prestige immobilier
 * Corps            : Plus Jakarta Sans  — lisible, moderne, interface UI
 */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Surtitre (ex: "Sélection exclusive", "Simple & rapide") */
.main-nav,
.pekin-nav-menu li > a,
.filter-btn,
.search-group-title,
.footer-nav a,
.footer-policies a {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Cartes propriété ─────────────────────────────────────────────────────── */
.property-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.country-flag { width: 24px; height: 16px; display: inline-block; margin-right: 8px; border: 1px solid #e5e7eb; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.overlay-content {
    position: absolute;
    /* Aligne le bord gauche avec le contenu du navbar (left_navbar + padding_interne) */
    left: calc(12.5% + 1.5rem); /* lg : px-6 */
    bottom: 15%;
    right: auto;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 560px;
    z-index: 20;
}
@media (max-width: 1279px) {
    .overlay-content { left: calc(7.5% + 1rem); } /* tablette : px-4 */
}
@media (max-width: 767px) {
    .overlay-content { left: calc(6% + 1rem); bottom: 12%; }
}
@media (max-width: 479px) {
    .overlay-content { left: calc(4% + 1rem); }
}
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-indicators { position: absolute; bottom: 10%; left: 10%; display: flex; gap: 10px; z-index: 20; }
.indicator { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background-color 0.3s ease; }
.indicator.active { width: 28px !important; background: rgba(255,255,255,0.95) !important; border-radius: 9999px; }
.property-info {
    position: absolute; top: 15%; left: 10%;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    border-radius: 12px; padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); max-width: 280px; z-index: 20;
}
.search-widget {
    position: absolute; top: 50%; right: 10%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
    border-radius: 15px; padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); width: 100%; max-width: 450px; z-index: 20;
}
@media (max-width: 1024px) {
    .property-info { position: static; margin: 20px auto; max-width: 600px; }
    .search-widget { position: static; transform: none; margin: 20px auto; max-width: 600px; }
}
@media (max-width: 768px) {
    .slide-indicators { bottom: 5%; left: 50%; transform: translateX(-50%); }
}
.search-input {
    width: 100%; padding: 16px 50px 16px 20px;
    border-radius: 50px; border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-size: 16px; outline: none;
}
.search-button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: #1e40af; border: none; border-radius: 50%; width: 40px; height: 40px;
    color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.search-container { position: relative; width: 100%; max-width: 450px; }

/* ── Logo navbar ──────────────────────────────────────────────────────────── */
/* Respecte les dimensions du modèle : height:clamp(2rem,4.5vw,3rem), width:auto */
#logo {
    height: clamp(2rem, 4.5vw, 3rem);
    width: auto;
    display: block;
}

/* ── HEADER FLOTTANT ─────────────────────────────────────────────────────── */
.main-nav {
    position: fixed; top: 1rem;
    left: 12.5%; right: 12.5%;
    border-radius: 1rem;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 50;
    transition: top .35s ease, left .4s ease, right .4s ease,
                border-radius .4s ease, box-shadow .4s ease, background .4s ease;
}
/* ── Auto-hide mobile : masque le navbar quand on scrolle vers le bas ─────── */
/* -6rem (-96px) suffit toujours : le nav mesure 4.5rem (72px), même avec admin bar */
@media (max-width: 1023px) {
    .main-nav.nav-hidden { top: -6rem; }
}
.main-nav.scrolled {
    top: 0; left: 0; right: 0; border-radius: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: none; border-left: none; border-right: none;
    border-bottom: 1px solid rgba(229,231,235,0.8);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
@media (max-width: 1279px) { .main-nav:not(.scrolled) { left: 7.5%; right: 7.5%; } }
@media (max-width: 767px)  { .main-nav:not(.scrolled) { left: 6%; right: 6%; top: .75rem; } }
@media (max-width: 479px)  { .main-nav:not(.scrolled) { left: 4%; right: 4%; top: .5rem; } }

/* ── Nav links ────────────────────────────────────────────────────────────── */
.nav-link { border: 1px solid transparent; transition: border-color .2s, background .2s, color .2s; text-decoration: none; display: inline-flex; align-items: center; }
.nav-link:hover, .nav-link:focus { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.8); outline: none; }
.nav-link.active, .current-menu-item > .nav-link { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.9); font-weight: 600; }

/* ── Walker menu ──────────────────────────────────────────────────────────── */
.pekin-nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.pekin-nav-menu li { position: relative; }
.pekin-nav-menu li > a { display: flex; align-items: center; gap: .25rem; padding: .5rem .75rem; font-size: .875rem; border-radius: .5rem; color: #0b1019; text-decoration: none; }
.pekin-nav-menu .sub-menu {
    position: absolute; top: 100%; left: 0; margin-top: .5rem;
    min-width: 12rem; background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
    border: 1px solid #f3f4f6; border-radius: .75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    opacity: 0; visibility: hidden; transform: translateY(-.5rem);
    transition: all .25s ease; z-index: 50; padding: .25rem 0; list-style: none;
}
.pekin-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pekin-nav-menu .sub-menu a { padding: .625rem 1rem; display: block; font-size: .875rem; color: #374151; }
.pekin-nav-menu .sub-menu a:hover { background: #eff6ff; }

/* ── Filtres catalogue ────────────────────────────────────────────────────── */
.filter-btn {
    padding: .3rem .85rem; border-radius: 9999px; font-size: .8rem; font-weight: 500;
    border: 1px solid #e5e7eb; background: white; color: #6b7280;
    cursor: pointer; transition: all .15s ease;
}
.filter-btn:hover { border-color: #0b1019; color: #0b1019; }
.filter-btn.active { background: #0b1019; color: white; border-color: #0b1019; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.page-btn {
    width: 2.25rem; height: 2.25rem; border-radius: .5rem;
    border: 1px solid #e5e7eb; background: white;
    font-size: .875rem; font-weight: 500; color: #374151;
    cursor: pointer; transition: all .15s ease;
    display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: #0b1019; color: #0b1019; }
.page-btn.active { background: #0b1019; color: white; border-color: #0b1019; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Recherches populaires ────────────────────────────────────────────────── */
.search-group-title {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #9ca3af; margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid #e5e7eb;
}
.search-link {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: #6b7280; padding: .45rem 0;
    border-bottom: 1px solid #eef0f3; text-decoration: none;
    transition: color .15s, padding-left .15s;
}
.search-link:last-child { border-bottom: none; }
.search-link::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; transition: background .15s, transform .15s; }
.search-link:hover { color: #0b1019; padding-left: 4px; }
.search-link:hover::before { background: #0b1019; transform: scale(1.5); }

/* ── Process (CCM) ────────────────────────────────────────────────────────── */
.process-step { counter-increment: step; }

/* ── Admin bar offset ─────────────────────────────────────────────────────── */
/* WP admin bar : 32px desktop, 46px mobile (≤ 782px) */
body.admin-bar .main-nav                        { top: calc(1rem + 32px); }
body.admin-bar .main-nav.scrolled               { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .main-nav                    { top: calc(1rem + 46px); }
    body.admin-bar .main-nav.scrolled           { top: 46px; }
}
@media screen and (max-width: 767px) {
    body.admin-bar .main-nav:not(.scrolled)     { top: calc(.75rem + 46px); }
}
@media screen and (max-width: 479px) {
    body.admin-bar .main-nav:not(.scrolled)     { top: calc(.5rem + 46px); }
}

/* ── Footer menus ─────────────────────────────────────────────────────────── */
.footer-nav a { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: #9ca3af; text-decoration: none; transition: color .15s; padding: .375rem 0; }
.footer-nav a:hover { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }

/* Politiques — séparateurs entre les items */
.footer-policies { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.footer-policies li:not(:last-child)::after { content: "•"; color: #374151; margin-left: 1rem; }
.footer-policies a { font-size: .875rem; color: #6b7280; text-decoration: none; transition: color .15s; }
.footer-policies a:hover { color: #fff; }

/* ── Scrollbar hide ───────────────────────────────────────────────────────── */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
