/* =========================================================================
   FG STRATEGIES — compléments pour les pages Programmes neufs
   S'ajoute à fgs-biens.css (charte, en-tête, cartes, fiche) : à charger après.
   ========================================================================= */

/* ---------- Onglets « Programmes neufs | Biens individuels à vendre » ---------- */
.onglets-immo { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--ligne); }
.onglets-immo a {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .75rem 1.2rem; border-radius: 999px; border: 2px solid var(--ligne);
    background: #fff; color: var(--anthracite); text-decoration: none;
    font-family: var(--titre); font-weight: 700; font-size: .9rem;
    transition: border-color .25s var(--ease), color .25s var(--ease);
}
.onglets-immo a:hover { border-color: var(--rouge); color: var(--rouge-texte); }
.onglets-immo a[aria-current="page"] { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.onglets-immo a span { background: var(--sable); color: var(--anthracite); border-radius: 999px; padding: .05rem .55rem; font-size: .78rem; }
.onglets-immo a[aria-current="page"] span { background: var(--rouge); color: #fff; }

/* ---------- Cartes programme ---------- */
.carte-programme .carte-prix { justify-content: flex-start; flex-wrap: wrap; }
.a-partir { font-size: .8rem; color: var(--ardoise); font-weight: 400; }
.carte-programme .carte-specs span { display: inline-flex; align-items: center; }
.carte-programme .carte-photo img { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Fiche programme ---------- */
.fiche-entete .sous-titre { color: var(--ardoise); font-size: 1rem; margin: .5rem 0 0; }
.page-fiche .reperes { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.page-fiche .repere strong { font-size: 1rem; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.contact-carte .prix .a-partir { display: block; font-size: .85rem; font-family: var(--texte); font-weight: 400; margin-bottom: .2rem; }

.lots-filtres { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.lots-table-wrap { overflow-x: auto; border: 1px solid var(--ligne); border-radius: 12px; }
.lots-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lots-table th { text-align: left; background: var(--sable); font-family: var(--titre); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ardoise); padding: .7rem .8rem; }
.lots-table td { padding: .7rem .8rem; border-top: 1px solid var(--ligne); vertical-align: middle; }
.lots-table tbody tr:hover td { background: #fcfaf9; }
.lots-table .lot-prix { font-family: var(--titre); font-weight: 800; color: var(--anthracite); white-space: nowrap; }
.lien-lot { font-size: .85rem; white-space: nowrap; }
@media (max-width: 640px) {
    .lots-table thead { display: none; }
    .lots-table, .lots-table tbody, .lots-table tr, .lots-table td { display: block; width: 100%; }
    .lots-table tr { border-top: 1px solid var(--ligne); padding: .6rem .2rem; }
    .lots-table td { border: 0; padding: .15rem .6rem; display: flex; justify-content: space-between; gap: 1rem; }
    .lots-table td[data-label]::before { content: attr(data-label); color: var(--ardoise); font-size: .82rem; }
    .lots-table-wrap { border-radius: 12px; }
}

.description ul { padding-left: 1.2rem; margin: 0 0 1em; }
.description li { margin: .2rem 0; }
.titre-section { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; margin-bottom: 1.2rem; }

/* ---------- Encart « Acheter dans le neuf » (liste) ---------- */
.neuf-atouts { margin: 3.5rem 0 1rem; }
.neuf-atouts > h2 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; margin-bottom: 1.4rem; }
.neuf-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.neuf-grille > div { background: var(--sable); border-radius: var(--rayon); padding: 1.3rem; }
.neuf-grille i { color: var(--rouge); font-size: 1.3rem; }
.neuf-grille h3 { font-size: 1rem; margin: .7rem 0 .4rem; }
.neuf-grille p { font-size: .92rem; color: var(--ardoise); margin: 0; }

/* ---------- Renvoi croisé (pages Hektor et liste) ---------- */
.renvoi-neuf {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: var(--sable); border-left: 4px solid var(--rouge); border-radius: 0;
    padding: 1rem 1.2rem; margin: 1.2rem 0;
}
.renvoi-neuf i { color: var(--rouge); font-size: 1.3rem; }
.renvoi-neuf p { margin: 0; flex: 1 1 260px; }
.renvoi-neuf a.btn { flex: 0 0 auto; }

@media print {
    .onglets-immo, .lots-filtres, .lien-lot, .neuf-atouts, .renvoi-neuf { display: none !important; }
}
.description .intertitre { margin: 1.2em 0 .4em; color: var(--anthracite); }
.sous-titre-section { font-size: 1.05rem; font-weight: 700; color: var(--anthracite); margin: 1.6rem 0 .9rem; }
.lien-groupe { margin: .9rem 0 0; font-weight: 500; }
.lien-groupe a { text-decoration: none; }

/* ---------- Formulaire de demande (fgs-demande.js) ---------- */
.fgd-fond { position: fixed; inset: 0; z-index: 200; background: rgba(33, 33, 33, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.fgd-fond[hidden] { display: none !important; }
.fgd-boite { position: relative; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre-forte); width: min(640px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.8rem 1.8rem 1.4rem; }
.fgd-fermer { position: absolute; top: .8rem; right: .8rem; background: var(--sable); border: 0; border-radius: 50%; width: 2.3rem; height: 2.3rem; color: var(--anthracite); }
.fgd-surtitre { color: var(--rouge-texte); font-family: var(--titre); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .3rem; }
.fgd-boite h2 { font-size: 1.35rem; font-weight: 800; margin: 0 2.4rem .4rem 0; }
.fgd-contexte { color: var(--ardoise); font-size: .9rem; margin: 0 0 1.1rem; }
.fgd-grille { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.fgd-grille label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 500; color: var(--anthracite); }
.fgd-grille label[hidden] { display: none; }
.fgd-large { grid-column: 1 / -1; }
.fgd-grille input, .fgd-grille select, .fgd-grille textarea { font: inherit; font-size: .95rem; border: 1px solid var(--ligne); border-radius: 10px; padding: .65rem .75rem; background: #fff; color: var(--encre); width: 100%; }
.fgd-grille input:focus, .fgd-grille select:focus, .fgd-grille textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: transparent; }
.fgd-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fgd-consentement { display: block; font-size: .82rem; color: var(--ardoise); margin: 1rem 0 .8rem; line-height: 1.5; }
.fgd-consentement input { margin-right: .4rem; vertical-align: -2px; }
.fgd-erreur { background: #fdecec; color: #8e3737; border-radius: 10px; padding: .6rem .8rem; font-size: .88rem; }
.fgd-note { font-size: .78rem; color: var(--ardoise); text-align: center; margin: .7rem 0 0; }
.fgd-merci { text-align: center; padding: .6rem 0; }
.fgd-merci > i { color: var(--vert); font-size: 2.6rem; }
.fgd-merci h2 { margin: .8rem auto .6rem; }
.fgd-merci .btn { margin: .4rem .3rem 0; }
@media (max-width: 560px) { .fgd-grille { grid-template-columns: 1fr; } .fgd-boite { padding: 1.4rem 1.1rem 1.1rem; } }
@media print { .fgd-fond { display: none !important; } }

.prix-direct { font-size: .85rem; color: var(--vert); font-weight: 500; margin: -.2rem 0 .3rem; }
.prix-direct i { margin-right: .3rem; }
