/* ==========================================================================
   EXPAT' IMMO — Pages Villes v1
   Design system identique à la homepage (même variables CSS)
   Charte : Teal #229FA8 · Dark #1a2b4a · Quicksand
   ========================================================================== */

/* ── Base partagée ───────────────────────────────────────────────────────── */
.page-ville { color: var(--dark, #1a2b4a); font-family: 'Quicksand', sans-serif; }
.page-ville .section          { padding: 80px 24px; }
.page-ville .section--gray    { background: var(--gray-light, #f5f6f7); }
.page-ville .section--warm    { background: var(--warm-bg, #faf9f7); }
.page-ville .section--dark    { background: linear-gradient(160deg, #1a2b4a 0%, #16344a 50%, #1b3d4a 100%); color: #fff; }
.page-ville .container        { max-width: 1140px; margin: 0 auto; }

/* Section label */
.page-ville .section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--teal, #229FA8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}
.page-ville .section-label::before {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--teal, #229FA8);
    border-radius: 2px;
    flex-shrink: 0;
}
.page-ville .section-label--light { color: #A4D5D5; }
.page-ville .section-label--light::before { background: #A4D5D5; }

/* Section title */
.page-ville .section-title {
    font-size: 2.2rem;
    color: var(--dark, #1a2b4a);
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}
.page-ville .section-title span { color: var(--teal, #229FA8); }
.page-ville .section-title--light { color: #fff; }
.page-ville .section-title--light span { color: #A4D5D5; }

/* Buttons */
.page-ville .btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .3s ease;
    border: 2px solid transparent;
}
.page-ville .btn-primary    { background: var(--teal, #229FA8); color: #fff; }
.page-ville .btn-primary:hover { background: #1b8089; transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.page-ville .btn-outline    { background: transparent; color: var(--teal, #229FA8); border-color: var(--teal, #229FA8); }
.page-ville .btn-outline:hover { background: var(--teal, #229FA8); color: #fff; }
.page-ville .btn-outline--light { color: #fff; border-color: rgba(255,255,255,.6); }
.page-ville .btn-outline--light:hover { background: #fff; color: #1a2b4a; border-color: #fff; }

/* ── HERO VILLE ──────────────────────────────────────────────────────────── */
.ville-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(160deg, #1a2b4a 0%, #1b3d4a 100%);
    overflow: hidden;
}
.ville-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}
.ville-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(26,43,74,.92) 0%,
        rgba(26,43,74,.65) 45%,
        rgba(34,159,168,.25) 100%
    );
}
.ville-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 24px;
}
.ville-hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.ville-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(34,159,168,.25);
    border: 1px solid rgba(164,213,213,.5);
    color: #A4D5D5;
}
.ville-badge--rendement {
    background: rgba(34,159,168,.4);
    border-color: #229FA8;
    color: #fff;
}
.ville-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.ville-hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.85);
    margin: 0 0 32px;
    font-weight: 500;
    max-width: 560px;
}
.ville-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Fil d'Ariane */
.ville-breadcrumb {
    font-size: .82rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ville-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.ville-breadcrumb a:hover { color: #A4D5D5; }
.ville-breadcrumb span { color: rgba(255,255,255,.4); }

/* ── STATS RAPIDES ───────────────────────────────────────────────────────── */
.ville-stats { background: var(--gray-light, #f5f6f7); padding: 60px 24px; }
.ville-stats-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ville-stat-card {
    background: linear-gradient(145deg, #229FA8 0%, #1b8a92 50%, #178088 100%);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ville-stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(34,159,168,.3); }
.ville-stat-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.ville-stat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.ville-stat-value { display: block; font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.ville-stat-label { display: block; font-size: .82rem; font-weight: 600; opacity: .9; line-height: 1.4; }

/* ── POURQUOI INVESTIR ICI ───────────────────────────────────────────────── */
.ville-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.ville-why-text .section-label { margin-bottom: 16px; }
.ville-why-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}
.ville-atouts { list-style: none; padding: 0; margin: 24px 0 32px; }
.ville-atouts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f2;
    font-size: .95rem;
    color: #444;
}
.ville-atouts li::before {
    content: '✓';
    color: #229FA8;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(34,159,168,.12);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ville-why-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,.12);
}
.ville-why-media img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.ville-why-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,.12);
}
.ville-why-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── RÉALISATIONS VILLE ──────────────────────────────────────────────────── */
.ville-projects { background: var(--gray-light, #f5f6f7); padding: 80px 24px; }
.ville-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.ville-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
/* 1 ou 2 cartes : les centrer / les agrandir sans laisser de trou */
.ville-projects-grid:has(.ville-project-card:only-child) {
    grid-template-columns: minmax(280px, 460px);
    justify-content: center;
}
.ville-projects-grid:has(.ville-project-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    max-width: 760px;
}
.ville-project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    text-decoration: none;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease;
    display: block;
}
.ville-project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.ville-project-img {
    width: 100%;
    height: 220px;
    background: #eef7f7;
    overflow: hidden;
    position: relative;
}
.ville-project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ville-project-card:hover .ville-project-img img { transform: scale(1.05); }
.ville-project-body { padding: 20px; }
.ville-project-body h3 { font-size: 1rem; font-weight: 700; color: #1a2b4a; margin: 0 0 8px; }
.ville-project-yield {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: #229FA8;
    background: rgba(34,159,168,.1);
    padding: 4px 10px;
    border-radius: 20px;
}
/* Cartes masquées (au-delà du PAGE_SIZE initial) */
.ville-project-card[data-hidden="true"] { display: none; }

/* Bouton "Afficher plus" */
.ville-projects-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.ville-projects-more.js-hidden { display: none; }

.ville-projects-empty {
    text-align: center;
    padding: 60px 24px;
    color: #888;
    font-size: .95rem;
}

/* ── GUIDE DE LA VILLE ───────────────────────────────────────────────────── */
.ville-guide { padding: 80px 24px; }
.ville-guide .section-label { display: block; margin-bottom: 8px; }
.ville-guide .section-title { margin-bottom: 40px; }

/* ── GUIDE SECTION (flat, sans onglets) ──────────────────────────────────── */
.guide-section { width: 100%; }

/* Metric cards */
.guide-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
.guide-metric-card {
    background: linear-gradient(135deg, #229FA8 0%, #1b8a91 100%);
    border-radius: 18px;
    padding: 26px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(34,159,168,.22);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.guide-metric-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(34,159,168,.32); }
.guide-metric-icon { font-size: 2rem; line-height: 1; display: block; }
.guide-metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    word-break: break-word;
}
.guide-metric-label {
    font-size: .7rem;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    line-height: 1.3;
}

/* 2-column highlights */
.guide-highlights {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: start;
}
/* Si la colonne investir est absente → la colonne ville prend toute la largeur */
.guide-col:only-child {
    grid-column: 1 / -1;
}
.guide-col {}
.guide-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(34,159,168,.18);
    display: flex;
    align-items: center;
    gap: 8px;
}
.guide-invest-intro {
    font-size: .92rem;
    line-height: 1.75;
    color: #556;
    margin-bottom: 16px;
}

/* Transport chips */
.guide-transports {
    background: #f8fffe;
    border: 1.5px solid rgba(34,159,168,.15);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 48px;
}
.guide-transports .guide-col-title { border-bottom-color: transparent; margin-bottom: 14px; }
.transport-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.transport-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 30px;
    background: #fff;
    border: 1.5px solid rgba(34,159,168,.25);
    font-size: .85rem;
    font-weight: 600;
    color: #1a2b4a;
    box-shadow: 0 1px 6px rgba(34,159,168,.07);
}

/* FAQ accordéon */
.guide-faq {
    border-top: 2px solid rgba(34,159,168,.15);
    padding-top: 8px;
}
.faq-item {
    border-bottom: 1px solid #e8f4f5;
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 700;
    color: #1a2b4a;
    font-size: .97rem;
    list-style: none;
    user-select: none;
    transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #229FA8;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .2s;
    line-height: 1;
}
.faq-item[open] summary { color: #229FA8; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer {
    padding: 0 0 20px;
    animation: fadeTabIn .2s ease;
}
.faq-answer p {
    font-size: .9rem;
    line-height: 1.75;
    color: #556;
    margin: 0;
}

@keyframes fadeTabIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CARDS FAITS INTÉRESSANTS ────────────────────────────────────────────── */
.fact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0fafa;
    border-left: 4px solid #229FA8;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 12px 0;
}
.fact-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.4; }
.fact-card p { margin: 0; font-size: .95rem; color: #334; line-height: 1.6; }


/* ── GEO CHIPS (stats géographiques de La ville) ────────────────────────── */
.geo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}
.geo-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(34,159,168,.1) 0%, rgba(34,159,168,.06) 100%);
    border: 1.5px solid rgba(34,159,168,.25);
    font-size: .85rem;
    font-weight: 600;
    color: #1a2b4a;
    line-height: 1.4;
}
.geo-chip-long {
    width: 100%;
    background: #f8fffe;
    border-color: rgba(34,159,168,.18);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 400;
    color: #334;
}

/* ── HERITAGE CARDS (patrimoine) ─────────────────────────────────────────── */
.heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.heritage-card {
    background: #fff;
    border: 1.5px solid #e8f4f5;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 12px rgba(34,159,168,.06);
    transition: box-shadow .2s, border-color .2s, transform .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.heritage-card:hover { border-color: #229FA8; box-shadow: 0 6px 24px rgba(34,159,168,.13); transform: translateY(-2px); }
.heritage-icon { font-size: 1.8rem; line-height: 1; }
.heritage-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0;
}
.heritage-card p {
    font-size: .85rem;
    color: #556;
    margin: 0;
    line-height: 1.55;
}

/* ── MARKET INDICATOR CARDS (H3 marché immo) ─────────────────────────────── */
.market-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 0;
}
.market-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fffe;
    border: 1.5px solid rgba(34,159,168,.18);
    border-radius: 12px;
    font-size: .88rem;
}
.market-icon { font-size: 1.2rem; flex-shrink: 0; }
.market-label {
    font-weight: 600;
    color: #1a2b4a;
    line-height: 1.4;
}

/* ── CARTE EXPAT-MAP ─────────────────────────────────────────────────────── */
.ville-map-section { padding: 0; background: #fff; }
.ville-map-header {
    padding: 60px 24px 40px;
    text-align: center;
}
.ville-map-header .section-label { display: block; margin-bottom: 8px; }
.ville-map-header .section-title { margin-bottom: 16px; }
.ville-map-intro {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* ── AUTRES VILLES (navigation) ─────────────────────────────────────────── */
.other-cities { padding: 60px 24px; background: var(--gray-light, #f5f6f7); }
.other-cities h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2b4a;
    margin-bottom: 24px;
}
.other-cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.other-city-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid rgba(34,159,168,.25);
    background: #fff;
    font-size: .88rem;
    font-weight: 600;
    color: #1a2b4a;
    text-decoration: none;
    transition: all .25s ease;
}
.other-city-chip:hover { border-color: #229FA8; background: rgba(34,159,168,.08); color: #229FA8; transform: translateY(-2px); }
.other-city-chip .chip-tag {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
}
.chip-tag--patrimoine { background: rgba(34,159,168,.15); color: #229FA8; }
.chip-tag--rendement  { background: rgba(34,100,74,.15);  color: #1b8a72; }
.chip-tag--equilibre  { background: rgba(74,74,159,.15);  color: #4a4a9f; }

/* ── CONTACT / BOOKING ───────────────────────────────────────────────────── */
.ville-contact {
    background: linear-gradient(160deg, #1a2b4a 0%, #16344a 50%, #1b3d4a 100%);
    padding: 80px 24px;
}
.ville-contact .container { max-width: 960px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ville-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ville-why-grid   { grid-template-columns: 1fr; gap: 40px; }
    .ville-guide-grid { grid-template-columns: 1fr; }
    .ville-info-card  { position: static; }
    .ville-projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-ville .section { padding: 60px 20px; }
    .ville-hero h1 { font-size: 2.2rem; }
    .ville-hero-sub { font-size: 1rem; }
    .ville-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ville-stat-value { font-size: 1.6rem; }
    .ville-projects-grid { grid-template-columns: 1fr; }
    .ville-projects-header { flex-direction: column; align-items: flex-start; }
    .page-ville .section-title { font-size: 1.8rem; }
    .guide-metrics { grid-template-columns: repeat(3, 1fr); }
    .guide-highlights { grid-template-columns: 1fr; gap: 32px; }
    .heritage-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .ville-hero h1 { font-size: 1.8rem; }
    .ville-stats-grid { grid-template-columns: 1fr 1fr; }
    .ville-hero-ctas { flex-direction: column; }
    .ville-hero-ctas .btn { text-align: center; }
    .guide-metrics { grid-template-columns: 1fr; }
    .heritage-grid { grid-template-columns: 1fr; }
}
