/* =========================================================================
   FG STRATEGIES — pages « Programme neuf <ville> » (programme-neuf-ville.php)
   À charger après fgs-biens.css et fgs-programmes.css : mêmes couleurs, polices et cartes que le catalogue.
   Rythme des fonds : blanc (résidences), beige (vivre à…), blanc (repères), anthracite (interlocuteur), blanc (FAQ).
   ========================================================================= */

.page-ville main h2 { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.01em; }

/* ---------- Résidences ---------- */
.ville-residences { padding-block: clamp(2.4rem, 5vw, 3.6rem) 1rem; }
.ville-entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.2rem; }
.ville-resume { margin: 0; color: var(--ardoise); font-size: 1rem; }
.ville-resume strong { color: var(--anthracite); font-family: var(--titre); font-weight: 800; }
.ville-quartiers { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.ville-quartiers .quartier { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--ligne); background: #fff; color: var(--anthracite); border-radius: 999px; padding: .45rem .95rem; font: inherit; font-size: .9rem; cursor: pointer; }
.ville-quartiers .quartier span { font-family: var(--titre); font-weight: 700; font-size: .75rem; color: var(--ardoise); }
.ville-quartiers .quartier:hover { border-color: var(--rouge); }
.ville-quartiers .quartier[aria-pressed="true"] { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.ville-quartiers .quartier[aria-pressed="true"] span { color: #ff8a73; }
.page-ville .carte[hidden] { display: none; }
.ville-catalogue { margin: 1.4rem 0 0; font-size: .92rem; }
.ville-catalogue a { color: var(--rouge-texte); text-underline-offset: .2em; }

/* ---------- Vivre à… (texte + carte) ---------- */
.ville-vivre { background: #faf7f3; border-block: 1px solid #efe9e4; margin-top: clamp(2.4rem, 5vw, 3.6rem); padding-block: clamp(2.6rem, 6vw, 4.4rem); }
.ville-vivre-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.ville-vivre-texte h2 { max-width: 24ch; margin-bottom: 1.2rem; }
.ville-vivre-texte p { max-width: 62ch; margin: 0 0 1rem; font-size: 1.04rem; line-height: 1.75; color: #4a4646; }
.ville-vivre-texte p:first-of-type { font-size: 1.14rem; color: var(--anthracite); }
.ville-carte { margin: 0; position: sticky; top: 92px; }
.ville-carte-fond { height: clamp(300px, 44vw, 440px); border-radius: 18px; overflow: hidden; background: #e9e6e3; border: 1px solid var(--ligne); z-index: 0; }
.ville-carte figcaption { margin-top: .6rem; font-size: .82rem; color: var(--ardoise); }
.zone-programme span { display: block; width: 34px; height: 34px; border-radius: 50%; background: rgba(201, 52, 30, .28); border: 2px solid var(--rouge-texte); box-shadow: 0 0 0 6px rgba(201, 52, 30, .12); }
.zone-programme span::after { content: ""; position: absolute; left: 13px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge-texte); }
.bulle-ville { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--anthracite); font-family: "Lexend", sans-serif; }
.bulle-ville strong { font-family: var(--titre); font-size: .95rem; }
.bulle-ville span { font-size: .8rem; color: var(--ardoise); }
.bulle-ville b { margin-top: .3rem; color: var(--rouge-texte); font-size: .82rem; }

/* ---------- Repères (module A) ---------- */
.ville-reperes { padding-block: clamp(2.6rem, 6vw, 4.4rem) 1rem; }
.ville-reperes h2 { margin-bottom: 1.8rem; max-width: 30ch; }
.ville-reperes-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.6rem, 4vw, 3.2rem); }
.ville-repere { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: auto 1fr; align-content: start; column-gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--ligne); }
.ville-repere i { grid-row: span 2; color: var(--rouge); font-size: 1.35rem; padding-top: .15rem; }
.ville-repere h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .45rem; }
.ville-repere p { margin: 0; color: #4a4646; line-height: 1.7; max-width: 60ch; }
.reperes-liens { margin: 1rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--ligne); color: var(--ardoise); font-size: .95rem; }
.reperes-liens a { color: var(--rouge-texte); text-underline-offset: .2em; }

/* ---------- Un seul interlocuteur (module B) ---------- */
.ville-interlocuteur { background: var(--anthracite); color: #ddd6d3; margin-top: clamp(2.4rem, 5vw, 3.6rem); padding-block: clamp(2.8rem, 6vw, 4.4rem); position: relative; overflow: hidden; }
.ville-interlocuteur::after { content: ""; position: absolute; right: -7rem; bottom: -7rem; width: 22rem; height: 22rem; border-radius: 50%; border: 3.5rem solid rgba(232, 65, 40, .16); pointer-events: none; }
.ville-interlocuteur-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; position: relative; z-index: 1; }
.ville-interlocuteur h2 { color: #fff; margin-bottom: 1rem; max-width: 20ch; }
.ville-interlocuteur p { margin: 0 0 .9rem; line-height: 1.7; max-width: 52ch; }
.ville-interlocuteur .ville-lieux { color: #fff; font-weight: 500; }
.ville-boutons { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.ville-coche { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ville-coche li { position: relative; padding: 1rem 1.1rem 1rem 3rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; color: #fff; line-height: 1.5; }
.ville-coche li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 1.1rem; top: 1.05rem; color: #ff8a73; }
.ville-coche a { color: #fff; text-decoration-color: var(--rouge); text-underline-offset: .2em; }

/* ---------- FAQ ---------- */
.ville-faq { padding-block: clamp(2.6rem, 6vw, 4.4rem) 1rem; max-width: 52rem; }
.ville-faq h2 { margin-bottom: 1.2rem; }
.ville-faq details { border-bottom: 1px solid var(--ligne); }
.ville-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-family: var(--titre); font-weight: 700; font-size: 1.02rem; color: var(--anthracite); }
.ville-faq summary::-webkit-details-marker { display: none; }
.ville-faq summary::after { content: "+"; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--ligne); display: grid; place-items: center; color: var(--rouge-texte); font-size: 1.15rem; transition: transform .2s; }
.ville-faq details[open] summary::after { transform: rotate(45deg); }
.ville-faq details p { margin: 0 0 1.2rem; color: #4a4646; line-height: 1.75; max-width: 64ch; }
.ville-faq summary:focus-visible { outline: 2px solid var(--rouge); outline-offset: 4px; border-radius: 4px; }

/* ---------- Autres communes et mise à jour ---------- */
.ville-suite { padding-block: 1.6rem clamp(2.4rem, 5vw, 3.6rem); }
.ville-autres { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .9rem; color: var(--ardoise); }
.ville-autres a { border: 1px solid var(--ligne); border-radius: 999px; padding: .35rem .9rem; color: var(--anthracite); text-decoration: none; font-size: .9rem; }
.ville-autres a:hover { border-color: var(--rouge); color: var(--rouge-texte); }
.ville-maj { margin: 0; font-size: .82rem; color: var(--ardoise); }

@media (max-width: 900px) {
    .ville-vivre-grille, .ville-interlocuteur-grille, .ville-reperes-grille { grid-template-columns: 1fr; }
    .ville-carte { position: static; }
}
@media (prefers-reduced-motion: reduce) { .ville-faq summary::after { transition: none; } }

/* Bouton secondaire sur fond anthracite */
.page-ville .btn-clair { border: 2px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.page-ville .btn-clair:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.ville-coche strong { color: #fff; font-weight: 600; }
.ville-interlocuteur h2 { max-width: 24ch; }
