/* ============================================================
   Styles de la page par ville — city.php
   Lot C, étape 9.
   Ce fichier est chargé APRÈS home.css dont il hérite toutes
   les classes (.hp-wrap, .sector-grid, .gallery-grid, .faq-*,
   #section-cta, .site-footer, etc.).
   ============================================================ */

/* ---- Fil d'Ariane ---- */
.city-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--studio-city-muted, #9ca3af);
    margin-bottom: 1rem;
}
.city-breadcrumb a {
    color: var(--studio-city-muted, #9ca3af);
    text-decoration: none;
}
.city-breadcrumb a:hover {
    color: var(--studio-accent, #f97316);
}

/* ---- Hero ville ---- */
.city-hero {
    padding: calc(var(--header-h, 60px) + 2.5rem) 0 3rem;
    background: var(--studio-bg, #fff);
    border-bottom: 1px solid var(--studio-city-border, #f3f4f6);
}

.city-hero__h1 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--studio-text, #1f2937);
    margin: 0 0 .75rem;
    max-width: 22ch;
}

.city-hero__sub {
    font-size: 1.1rem;
    color: var(--studio-city-sub, #6b7280);
    margin: 0 0 1.75rem;
    max-width: 52ch;
    line-height: 1.6;
}

.city-hero__cta {
    display: inline-flex;
    align-items: center;
    font-size: .95rem;
    font-weight: 600;
    padding: .7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
}

/* ---- Présentation ---- */
.city-intro {
    padding: 3rem 0 2rem;
    background: var(--studio-city-surface, #fafafa);
    border-bottom: 1px solid var(--studio-city-border, #f3f4f6);
}

.city-intro__text {
    font-size: 1.05rem;
    color: var(--studio-city-text, #1f2937);
    line-height: 1.75;
    max-width: 70ch;
    margin: 0;
}

/* ---- Arguments ---- */
.city-args {
    padding: 3rem 0;
}

/* Réduit la grille à 3 colonnes max pour les arguments (home.css définit 4) */
.city-args .sector-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---- Galerie ---- */
.city-gallery {
    padding: 3rem 0;
    background: var(--studio-city-surface, #fafafa);
    border-top: 1px solid var(--studio-city-border, #f3f4f6);
    border-bottom: 1px solid var(--studio-city-border, #f3f4f6);
}

/* ---- FAQ ---- */
.city-faq {
    padding: 3rem 0;
}

/* ---- Liens vers les pages villes (sur index.php) ---- */
.city-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--studio-city-border, #f3f4f6);
}

.city-links__label {
    font-size: .82rem;
    color: var(--studio-city-muted, #9ca3af);
    margin: 0;
    white-space: nowrap;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .85rem;
    border: 1px solid var(--studio-city-pill-border, #e5e7eb);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--studio-text-alt, #3f3f46);
    text-decoration: none;
    background: var(--studio-card-bg, #ffffff);
    transition: border-color .15s, color .15s;
}

.city-pill:hover {
    border-color: var(--studio-accent, #f97316);
    color: var(--studio-accent, #f97316);
}

/* ============================================================
   Carte des réalisations (étape 11)
   Chargée uniquement si has_city_map est vrai — coût nul sinon.
   ============================================================ */
.city-map-section {
    padding: var(--space-16, 4rem) 0;
    background: var(--studio-city-map-bg, #f9fafb);
}

.city-map-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

#city-map {
    height: 340px;
    width: 100%;
    display: block;
    background: #f2efe9;
}

/* Neutralise mix-blend-mode: plus-lighter de Leaflet (leaflet.css:63) qui produit
   un dégradé sombre sur les tuiles vides ou en cours de chargement.
   Scoped à #city-map pour ne pas toucher aux autres images du site. */
#city-map img.leaflet-tile {
    mix-blend-mode: normal;
}

@media (min-width: 640px) { #city-map { height: 420px; } }
@media (min-width: 1024px) { #city-map { height: 480px; } }

/* Overlay mobile : touch-action:pan-y → un doigt scrolle la page,
   pas la carte. Un tap retire l'overlay. */
.city-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    touch-action: pan-y;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-map-overlay__hint {
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    pointer-events: none;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}
