:root {
    /* Palette BTP : brun cuivre (facon flyer "Domaines d'activites") */
    --indigo: #3a2013;
    --indigo-fonce: #241206;
    --or: #c9702c;
    --or-fonce: #8c4f21;

    /* Alias conserves pour compatibilite (anciens noms de variables) */
    --brun-fonce: #3a2013;
    --orange: #c9702c;
    --orange-fonce: #3a2013;
    --creme: #f7f1e8;
    --blanc: #ffffff;
    --texte: #2a1b10;
    --gris: #6b5d50;
    --bordure: #e8dfd3;
    --surface: #ffffff;
    --ombre: rgba(58, 32, 19, .14);
    --hero-brun: #2a1b10;
    --hero-orange-fonce: #3a2013;
    --hero-orange: #52301c;
}

:root[data-theme="sombre"] {
    --indigo: #e4a97a;
    --indigo-fonce: #f0c79e;
    --or: #e0863f;
    --or-fonce: #f0a868;

    --brun-fonce: #f0c79e;
    --orange: #e0863f;
    --orange-fonce: #f0c79e;
    --creme: #1a120b;
    --blanc: #241a11;
    --texte: #f3e9dd;
    --gris: #c7b6a5;
    --bordure: #3a2a1c;
    --surface: #241a11;
    --ombre: rgba(0, 0, 0, .5);
    --hero-brun: #1a120b;
    --hero-orange-fonce: #2e1d10;
    --hero-orange: #3f2917;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Mulish', 'Segoe UI', Arial, sans-serif;
    color: var(--texte);
    background: var(--creme);
    line-height: 1.55;
    transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4,
.section-title h2,
.hero h1 {
    font-family: 'Archivo', 'Segoe UI', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -.01em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barre utilitaire (facon HorizonTP) */
.barre-utilitaire {
    background: var(--indigo-fonce);
    color: #fff;
    font-size: .82rem;
}
:root[data-theme="sombre"] .barre-utilitaire { background: #0d0805; }
.barre-utilitaire .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
.barre-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.barre-utilitaire a { color: #fff; opacity: .92; }
.barre-utilitaire a:hover { opacity: 1; color: var(--or); }
.barre-whatsapp { display: inline-flex; align-items: center; }
.barre-whatsapp:hover { color: #25D366 !important; opacity: 1; }
.contact-infos .btn-whatsapp { margin-top: 6px; }
.barre-reseaux { display: flex; gap: 8px; }
.barre-reseaux a {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
}
.barre-reseaux a:hover { background: var(--or); border-color: var(--or); color: var(--indigo-fonce); }
.barre-reseaux a svg { width: 13px; height: 13px; fill: currentColor; }

/* Header */
.site-header {
    background: var(--blanc);
    border-bottom: 1px solid var(--bordure);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--indigo);
}
.logo-badge {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 22%;
    box-shadow: 0 2px 8px var(--ombre);
    display: flex;
    overflow: hidden;
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo span.sub {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--or-fonce);
    letter-spacing: 1.5px;
}
nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
nav.main-nav a {
    font-weight: 700;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--texte);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
    color: var(--or-fonce);
    border-bottom-color: var(--or);
}

/* Menu deroulant "Nos services" */
.nav-deroulant { position: relative; }
.nav-caret {
    display: inline-block;
    width: 0; height: 0;
    margin-left: 5px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    transition: transform .2s;
}
.nav-deroulant:hover .nav-caret,
.nav-deroulant:focus-within .nav-caret { transform: rotate(180deg); }
.main-nav .sous-menu {
    display: block;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 232px;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-top: 3px solid var(--or);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 40px rgba(58, 32, 19,.16);
    list-style: none;
    margin: 0;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 120;
}
.nav-deroulant:hover .sous-menu,
.nav-deroulant:focus-within .sous-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-nav .sous-menu li { display: block; }
.main-nav .sous-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--texte);
}
.main-nav .sous-menu a:hover,
.main-nav .sous-menu a.active {
    background: var(--creme);
    color: var(--or-fonce);
    border-bottom-color: transparent;
}

/* Hero */
.hero {
    position: relative;
    color: #fff;
    background: var(--hero-brun);
    overflow: hidden;
    isolation: isolate;
}
.hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(26,18,11,.92) 0%, rgba(26,18,11,.75) 45%, rgba(26,18,11,.35) 100%),
        url("../uploads/hero-chantier.jpg") center / cover no-repeat;
    z-index: -2;
}
.hero-panneau {
    position: relative;
    background: linear-gradient(100deg, rgba(26,18,11,.96) 60%, rgba(26,18,11,0) 100%);
    padding: 96px 0 118px;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
@media (max-width: 720px) {
    .hero-panneau { clip-path: none; background: rgba(26,18,11,.9); padding: 70px 0 90px; }
}
.hero-panneau .container { max-width: 780px; margin-left: max(20px, calc((100vw - 1140px) / 2)); }
.hero-eyebrow {
    display: inline-block;
    color: var(--or);
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: .82rem;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.12;
    margin: 0 0 16px;
    border-left: 5px solid var(--or);
    padding-left: 20px;
    max-width: 620px;
}
.hero p {
    font-size: 1.08rem;
    max-width: 540px;
    margin: 0 0 28px;
    color: #e8dcd0;
    padding-left: 25px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-left: 25px; }

/* Barre de recherche qui chevauche le hero */
.recherche-barre { position: relative; margin-top: -66px; z-index: 5; }
@media (max-width: 720px) { .recherche-barre { margin-top: -50px; } }

/* Widget de recherche (facon portail immo) */
.recherche-widget {
    background: var(--blanc);
    border-radius: 14px;
    border-top: 4px solid var(--or);
    box-shadow: 0 24px 60px rgba(58,32,19,.28);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    overflow: hidden;
}
.recherche-onglets { display: flex; gap: 4px; padding: 8px 8px 0; }
.recherche-onglets .onglet {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: .98rem;
    color: var(--gris);
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: background .18s, color .18s;
}
.recherche-onglets .onglet:hover { color: var(--orange-fonce); }
.recherche-onglets .onglet.actif { background: var(--creme); color: var(--orange-fonce); }
.recherche-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 18px 18px 20px;
    background: var(--creme);
}
.recherche-champ { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.recherche-champ.recherche-lieu { flex: 1.6; }
.recherche-champ label { font-size: .78rem; font-weight: 600; color: var(--gris); }
.recherche-champ input {
    padding: 12px 12px;
    border: 1px solid var(--bordure);
    border-radius: 10px;
    font-size: .95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--texte);
    width: 100%;
}
.recherche-champ input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.recherche-submit { padding: 12px 24px; border-radius: 10px; white-space: nowrap; }
.btn {
    display: inline-block;
    background: var(--or);
    color: #241206;
    padding: 13px 28px;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s, transform .1s;
}
.btn:hover { background: var(--or-fonce); }
.btn:active { transform: translateY(1px); }
.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 11px 26px;
}
.btn-outline:hover { background: #fff; color: var(--indigo); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-fonce); }
.btn-small { padding: 8px 18px; font-size: .8rem; }
.btn-danger { background: #b3261e; color: #fff; }
.btn-danger:hover { background: #8f1e17; }

/* Sections generales */
section { padding: 68px 0; }
.section-title {
    text-align: center;
    margin-bottom: 44px;
}
.section-title h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--texte);
    margin: 0 0 10px;
}
.section-title h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    background: var(--or);
    border-radius: 2px;
    margin: 12px auto 0;
}
.section-title p { color: var(--gris); margin: 0; }
.bandeau {
    background: var(--indigo);
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .12em;
}
:root[data-theme="sombre"] .bandeau { background: #241206; }
@media (max-width: 720px) {
    .bandeau { font-size: .74rem; letter-spacing: .05em; padding: 12px 16px; line-height: 1.7; }
}

/* Filtres */
.filtres {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 34px;
    box-shadow: 0 6px 20px rgba(58,36,22,.06);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}
.filtres .champ { display: flex; flex-direction: column; gap: 5px; }
.filtres label { font-size: .8rem; color: var(--gris); font-weight: 600; }
.filtres select, .filtres input {
    padding: 10px 12px;
    border: 1px solid var(--bordure);
    border-radius: 10px;
    font-size: .95rem;
}
.filtres .btn-small { padding: 11px 20px; border-radius: 10px; }

/* Grille de biens */
.grille-biens {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}
.carte-bien {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.carte-bien:hover { box-shadow: 0 14px 32px rgba(58,36,22,.14); transform: translateY(-4px); }
.carte-bien .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.carte-bien .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.carte-bien:hover .img-wrap img { transform: scale(1.05); }
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--indigo);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    z-index: 2;
}
.badge.statut-loue, .badge.statut-vendu { background: #b3261e; }
.carte-prix {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--blanc);
    color: var(--brun-fonce);
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    z-index: 2;
}
.carte-prix small { font-weight: 500; color: var(--gris); font-size: .78rem; }
.carte-bien .contenu { padding: 16px 18px 18px; }
.carte-bien h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--texte); }
.carte-bien .ville {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gris);
    font-size: .9rem;
    margin-bottom: 12px;
}
.carte-bien .ville .pin {
    width: 14px;
    height: 14px;
    flex: none;
    background: var(--orange);
    -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.carte-bien .prix { font-weight: 700; color: var(--orange-fonce); font-size: 1.15rem; margin-bottom: 10px; }
.carte-bien .caracteristiques {
    display: flex;
    gap: 14px;
    font-size: .82rem;
    color: var(--gris);
    border-top: 1px solid var(--bordure);
    padding-top: 12px;
}

.aucun-resultat {
    text-align: center;
    color: var(--gris);
    padding: 40px 0;
}

/* Fiche detail */
.fil-ariane { font-size: .85rem; color: var(--gris); margin-bottom: 20px; }
.fil-ariane a { color: var(--orange-fonce); }
.detail-bien { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.galerie-principale { border-radius: 8px; overflow: hidden; margin-bottom: 10px; aspect-ratio: 4/3; }
.galerie-principale img { width: 100%; height: 100%; object-fit: cover; }
.galerie-miniatures { display: flex; gap: 8px; flex-wrap: wrap; }
.galerie-miniatures img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; border: 2px solid var(--bordure); }
.detail-infos h1 { color: var(--orange-fonce); margin-top: 0; }
.detail-prix { font-size: 1.7rem; font-weight: 700; color: var(--orange-fonce); margin: 8px 0 18px; }
.liste-carac { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.liste-carac li { background: var(--blanc); border: 1px solid var(--bordure); border-radius: 6px; padding: 10px 12px; font-size: .9rem; }
.liste-carac li strong { display: block; color: var(--orange-fonce); }
.description-bien { grid-column: 1 / -1; margin-top: 10px; }
.description-bien h2 { color: var(--orange-fonce); font-size: 1.3rem; }

/* Formulaires */
.form-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 8px;
    padding: 30px;
    max-width: 620px;
    margin: 0 auto;
}
.form-groupe { margin-bottom: 18px; }
.form-groupe label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-groupe input, .form-groupe select, .form-groupe textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bordure);
    border-radius: 5px;
    font-size: .95rem;
    font-family: inherit;
}
.form-groupe textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alerte { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: .9rem; }
.alerte-succes { background: #e4f3e6; color: #24632c; border: 1px solid #bfe3c4; }
.alerte-erreur { background: #fbe6e2; color: #8b2f1f; border: 1px solid #f2c3b8; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-infos ul { list-style: none; padding: 0; }
.contact-infos li { margin-bottom: 16px; }
.contact-infos strong { display: block; color: var(--orange-fonce); }

/* Footer */
footer.site-footer {
    background: var(--indigo-fonce);
    color: #e8dcd0;
    padding: 56px 0 22px;
    margin-top: 0;
}
:root[data-theme="sombre"] footer.site-footer { background: #0d0805; }
footer.site-footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr 1.5fr;
    gap: 40px;
}
footer.site-footer h4 {
    color: var(--or);
    margin: 0 0 14px;
    font-size: 1rem;
    letter-spacing: .03em;
}
.footer-col p { margin: 0 0 9px; font-size: .92rem; }
.footer-marque p { color: #c9b8a8; line-height: 1.6; }
footer.site-footer a:hover { color: var(--or); }

.footer-reseaux { display: flex; gap: 10px; margin-top: 16px; }
.footer-reseaux a {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
}
.footer-reseaux a:hover { background: var(--or); border-color: var(--or); color: var(--indigo-fonce); }
.footer-reseaux a svg { width: 16px; height: 16px; fill: currentColor; }

.carte-footer-lien {
    display: block;
    position: relative;
    border-radius: 12px;
    transition: box-shadow .2s;
}
.carte-footer-lien:hover,
.carte-footer-lien:focus-visible { box-shadow: 0 0 0 2px var(--or); }
.footer-agence #carte-footer {
    height: 180px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    background: #2e1d10;
    z-index: 0;
    pointer-events: none; /* la carte est decorative : le clic est capte par le lien parent vers Google Maps */
}
.footer-adresse {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px !important;
    font-size: .9rem;
}
.footer-adresse span { color: #dcc9b8; }

footer.site-footer .copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .85rem;
    color: #a89484;
}

@media (max-width: 960px) {
    footer.site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    footer.site-footer .container { grid-template-columns: 1fr; gap: 30px; }
}

/* Admin */
.admin-body { background: var(--creme); min-height: 100vh; }
.admin-header {
    background: var(--brun-fonce);
    color: var(--blanc);
    padding: 14px 0;
}
.admin-header .container { display: flex; justify-content: space-between; align-items: center; }
.admin-header a { color: #f1e9df; }
.admin-header nav a { margin-left: 20px; font-weight: 600; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }
.admin-titre { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--blanc); }
table.admin-table th, table.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bordure);
    text-align: left;
    font-size: .9rem;
}
table.admin-table th { background: var(--creme); color: var(--orange-fonce); }
.actions-cell { display: flex; gap: 8px; }
.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Toggle theme */
.toggle-theme {
    background: none;
    border: 1px solid var(--bordure);
    color: var(--texte);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-theme:hover { border-color: var(--orange); }
:root[data-theme="sombre"] .icone-lune { display: none; }
:root:not([data-theme="sombre"]) .icone-soleil { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.16, 1, .3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Animation des images (zoom doux + fondu a l'apparition) */
.anim-media { overflow: hidden; }
.anim-media > img,
.anim-media.equipe-image::before,
.anim-media.equipe-image {
    transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), opacity .8s ease, filter .8s ease;
}
.anim-media > img {
    transform: scale(1.16);
    opacity: 0;
    filter: blur(6px);
    will-change: transform;
}
.anim-media.visible > img {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
}
/* Conteneurs image sans balise <img> directe (fond CSS) */
.anim-media.equipe-image { transform: scale(1.12); }
.anim-media.equipe-image.visible { transform: scale(1); }

/* Effet de balayage pour les vignettes de cartes */
.carte-bien .img-wrap,
.carte-real-img { clip-path: inset(0 0 0 0); }
.carte-bien.reveal:not(.visible) .img-wrap,
.carte-real.reveal:not(.visible) .carte-real-img { clip-path: inset(0 0 100% 0); }
.carte-bien.reveal .img-wrap,
.carte-real.reveal .carte-real-img { transition: clip-path .85s cubic-bezier(.7, 0, .2, 1); }

/* Cascade dans les grilles */
.grille-biens .carte-bien,
.grille-real .carte-real,
.etapes .etape,
.grille-real .carte-real { transition-property: opacity, transform; }

/* Ken Burns sur l'image du hero */
.hero-media { overflow: hidden; background: #1a120b; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: -4%;
    background: url("../uploads/hero-chantier.jpg") center / cover no-repeat;
    animation: kenburns 26s ease-in-out infinite alternate;
    z-index: 0;
}
.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(26, 18, 11, .92) 0%, rgba(26, 18, 11, .75) 45%, rgba(26, 18, 11, .35) 100%);
}
@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.13) translate(-2%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .anim-media, .anim-media > img,
    .carte-bien .img-wrap, .carte-real-img { transition: none !important; }
    .reveal, .anim-media, .anim-media > img { opacity: 1 !important; transform: none !important; filter: none !important; }
    .carte-bien .img-wrap, .carte-real-img { clip-path: none !important; }
    .hero-media::after { animation: none !important; }
}

/* Bouton favori */
.btn-favori {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gris);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    border: none;
    cursor: pointer;
    z-index: 2;
}
.btn-favori:hover { color: var(--orange); }
.btn-favori.actif { color: var(--orange); }
.btn-favori.actif::before { content: '\2665'; }
.btn-favori:not(.actif)::before { content: '\2661'; }
.btn-favori-grand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--bordure);
    color: var(--texte);
    padding: 11px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.btn-favori-grand.actif { color: var(--orange-fonce); border-color: var(--orange); }
.btn-favori-grand.actif::before { content: '\2665'; }
.btn-favori-grand:not(.actif)::before { content: '\2661'; }

/* Bouton whatsapp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 11px 20px;
    border-radius: 4px;
    font-weight: 600;
}
.btn-whatsapp:hover { background: #1ebe5b; }
.whatsapp-flottant {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 90;
}

/* Carrousel fiche bien */
.galerie-principale { position: relative; }
.galerie-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
}
.galerie-nav:hover { background: rgba(0,0,0,.7); }
#galerie-precedent { left: 12px; }
#galerie-suivant { right: 12px; }
.galerie-miniatures img { cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.galerie-miniatures img.actif, .galerie-miniatures img:hover { opacity: 1; border-color: var(--orange); }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,7,4,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.lightbox-image { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox-fermer, .lightbox-precedent, .lightbox-suivant {
    position: absolute;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
}
.lightbox-fermer { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.4rem; }
.lightbox-precedent, .lightbox-suivant { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1.2rem; }
.lightbox-precedent { left: 20px; }
.lightbox-suivant { right: 20px; }
.lightbox-fermer:hover, .lightbox-precedent:hover, .lightbox-suivant:hover { background: rgba(255,255,255,.25); }

/* Carte */
.carte-bien-localisation { border-radius: 8px; overflow: hidden; margin-top: 16px; border: 1px solid var(--bordure); }
#carte-bien { height: 280px; width: 100%; }

/* Filtres avances */
.filtres select, .filtres input { background: var(--surface); color: var(--texte); }

/* Favoris page */
.favoris-vide { text-align: center; padding: 60px 0; color: var(--gris); }

/* Banniere de page (facon HorizonTP) */
.page-banniere {
    position: relative;
    padding: 84px 0;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(26,18,11,.78), rgba(26,18,11,.82)),
        var(--banniere-img, linear-gradient(120deg, var(--indigo), var(--indigo-fonce))) center / cover no-repeat;
}
.page-banniere h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 0 0 12px;
}
.fil-ariane-clair { color: #e8dcd0; justify-content: center; display: flex; gap: 8px; }
.fil-ariane-clair a { color: var(--or); }
.fil-ariane-clair span { opacity: .6; }

/* Section "Qui sommes-nous ?" (facon HorizonTP) */
.section-apropos { background: var(--creme); }
.section-apropos-page .container { grid-template-columns: 1fr 1fr; }
.section-apropos-page .apropos-texte h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 8px 0 20px; }
.apropos-visuel { position: relative; }
.apropos-image-droite {
    clip-path: polygon(0 0, 100% 0, 100% 87%, 87% 100%, 0 100%);
    aspect-ratio: 4 / 3.6;
}
.apropos-stat {
    position: absolute;
    right: -12px;
    bottom: -28px;
    background: var(--blanc);
    box-shadow: 0 20px 48px rgba(58, 32, 19,.22);
    border-radius: 14px;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    text-align: right;
}
.apropos-stat-chiffre { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--indigo); }
.apropos-stat-label { color: var(--gris); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 860px) {
    .apropos-stat { position: static; margin-top: 18px; text-align: left; align-self: flex-start; }
}

/* Section "Nos valeurs" */
.section-valeurs { background: var(--blanc); }
.section-valeurs .container {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}
.valeurs-image img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; border-radius: 18px; }
.valeurs-texte h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 16px; }
.valeurs-texte > p { color: var(--gris); margin: 0 0 20px; }
.valeurs-liste { list-style: none; padding: 0; margin: 0 0 26px; }
.valeurs-liste li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--gris);
}
.valeurs-liste li::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 4px solid var(--or);
}
.valeurs-liste strong { color: var(--texte); }
@media (max-width: 860px) {
    .section-valeurs .container { grid-template-columns: 1fr; gap: 30px; }
}

/* Page "Nos services" */
.services-ancres {
    background: var(--blanc);
    border-bottom: 1px solid var(--bordure);
    position: sticky;
    top: 70px;
    z-index: 90;
}
.services-ancres .container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.services-ancres a {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--indigo);
    padding: 7px 14px;
    border: 1px solid var(--bordure);
    border-radius: 999px;
    transition: background .18s, color .18s, border-color .18s;
}
.services-ancres a:hover {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}
.service-bloc { padding: 72px 0; scroll-margin-top: 128px; }
.service-bloc-inverse { background: var(--creme); }
.service-bloc .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.service-bloc-inverse .service-image { order: 2; }
.service-image img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    border-radius: 16px;
}
.service-num {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--or-fonce);
    letter-spacing: .1em;
}
.service-texte h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 6px 0 14px;
    color: var(--texte);
}
.service-texte > p { color: var(--gris); margin: 0 0 18px; }
.service-points { list-style: none; padding: 0; margin: 0 0 24px; }
.service-points li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--texte);
}
.service-points li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 3px solid var(--or);
}
@media (max-width: 860px) {
    .service-bloc .container { grid-template-columns: 1fr; gap: 28px; }
    .service-bloc-inverse .service-image { order: 0; }
    .services-ancres { position: static; }
}

/* Page "Nos realisations" */
.real-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 38px;
}
.real-filtre {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--indigo);
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
}
.real-filtre:hover { border-color: var(--indigo); }
.real-filtre.actif {
    background: var(--indigo);
    color: #fff;
    border-color: var(--indigo);
}
.grille-real {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.carte-real {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
}
.carte-real:hover { box-shadow: 0 16px 36px rgba(58, 32, 19,.16); transform: translateY(-4px); }
.carte-real.cache { display: none; }
.carte-real-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.carte-real-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.carte-real:hover .carte-real-img img { transform: scale(1.06); }
.carte-real-cat {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--or);
    color: #241206;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 999px;
}
.carte-real-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,18,11,.42);
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0;
    transition: opacity .2s;
}
.carte-real:hover .carte-real-zoom { opacity: 1; }
.carte-real-contenu { padding: 18px 20px 20px; }
.carte-real-contenu h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--texte); }
.carte-real-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    color: var(--gris);
    font-size: .88rem;
}
.carte-real-meta .pin {
    width: 13px; height: 13px; flex: none;
    background: var(--or);
    -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.carte-real-desc { margin: 0; color: var(--gris); font-size: .9rem; }

.section-conseillers-services {
    background: linear-gradient(135deg, var(--hero-brun), var(--indigo));
    color: #fff;
    text-align: center;
    padding: 64px 0;
}
.section-conseillers-services h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.section-conseillers-services p { color: #e8dcd0; margin: 0 0 24px; }

/* Formulaire "Parlez-nous de votre projet" (envoi direct sur WhatsApp) */
.form-projet-whatsapp {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.form-projet-whatsapp input,
.form-projet-whatsapp textarea {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    font-family: inherit;
    font-size: .95rem;
    color: var(--texte);
    background: #fff;
    resize: vertical;
}
.form-projet-whatsapp input:focus,
.form-projet-whatsapp textarea:focus { outline: 2px solid var(--or); outline-offset: 1px; }
.form-projet-whatsapp .btn { align-self: center; border: none; cursor: pointer; font-size: .95rem; }

/* Bande de chiffres cles */
.section-chiffres { background: var(--indigo); padding: 54px 0; }
.section-chiffres .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.chiffre-valeur { display: block; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--or); }
.chiffre-label { color: #e8dcd0; font-size: .9rem; }
@media (max-width: 720px) {
    .section-chiffres .container { grid-template-columns: 1fr 1fr; }
}
.section-apropos .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.apropos-image {
    position: relative;
    aspect-ratio: 4 / 3.4;
    clip-path: polygon(13% 0, 100% 0, 100% 87%, 87% 100%, 0 100%, 0 13%);
    background: var(--indigo);
}
.apropos-image img { width: 100%; height: 100%; object-fit: cover; }
.apropos-texte h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 0 0 20px;
    color: var(--texte);
}
.apropos-texte p { color: var(--gris); margin: 0 0 16px; }
.apropos-texte .btn { margin-top: 12px; }
@media (max-width: 860px) {
    .section-apropos .container { grid-template-columns: 1fr; gap: 30px; }
}

/* Section "Pourquoi nous choisir ?" (facon HorizonTP) */
.section-pourquoi {
    position: relative;
    background:
        linear-gradient(rgba(247,241,232,.92), rgba(247,241,232,.92)),
        url("../uploads/villa_principale.jpg") center / cover fixed no-repeat;
}
:root[data-theme="sombre"] .section-pourquoi {
    background:
        linear-gradient(rgba(26,18,11,.93), rgba(26,18,11,.93)),
        url("../uploads/villa_principale.jpg") center / cover fixed no-repeat;
}
.section-pourquoi .container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.pourquoi-texte h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 0 0 20px;
    color: var(--texte);
}
.pourquoi-texte p { color: var(--gris); margin: 0 0 16px; }
.pourquoi-texte .btn { margin-top: 14px; }
.pourquoi-image {
    transform: rotate(-2.5deg);
    box-shadow: 0 26px 60px rgba(58, 32, 19,.28);
    border: 6px solid var(--blanc);
    overflow: hidden;
}
.pourquoi-image img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) {
    .section-pourquoi .container { grid-template-columns: 1fr; gap: 34px; }
    .section-pourquoi { background-attachment: scroll; }
    .pourquoi-image { transform: none; }
}

/* Bande "Notre equipe est a votre ecoute" (facon HorizonTP) */
.section-equipe {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 440px;
    align-items: stretch;
}
.equipe-image {
    position: relative;
    background: url("../uploads/villa_principale.jpg") center / cover no-repeat;
}
.equipe-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(58,32,19,.78), rgba(82,48,28,.62));
    mix-blend-mode: multiply;
}
.equipe-contenu {
    background: #170f08;
    display: flex;
    align-items: center;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -9%;
    padding: 56px clamp(24px, 6vw, 90px);
}
.equipe-inner { max-width: 540px; }
.equipe-inner h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.14;
    margin: 0 0 18px;
}
.equipe-inner p { color: #d6c7b8; margin: 0 0 26px; }
@media (max-width: 860px) {
    .section-equipe { grid-template-columns: 1fr; }
    .equipe-image { min-height: 220px; }
    .equipe-contenu { clip-path: none; margin-left: 0; padding: 44px 24px; }
}

/* Bandeau clients qui defilent */
.section-clients { background: var(--blanc); padding: 44px 0 52px; overflow: hidden; }
.clients-titre {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gris);
    margin: 0 0 30px;
}
.clients-piste { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-rail {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: defile-clients 34s linear infinite;
}
.section-clients:hover .clients-rail { animation-play-state: paused; }
.client-logo {
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: .04em;
    color: var(--indigo);
    opacity: .38;
    white-space: nowrap;
    transition: opacity .2s;
}
.client-logo:hover { opacity: .8; }
@keyframes defile-clients {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .clients-rail { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* Section "Une expertise reconnue" + FAQ */
.section-expertise { background: var(--creme); }
.section-expertise .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.expertise-gauche h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 22px; color: var(--texte); }
.expertise-images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.expertise-images img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: 46% 46% 46% 46% / 54% 54% 54% 54%;
}
.expertise-gauche p { color: var(--gris); margin: 0 0 22px; }
.faq-item {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 22px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--texte);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-icone {
    flex: none;
    width: 22px;
    height: 22px;
    position: relative;
}
.faq-icone::before, .faq-icone::after {
    content: "";
    position: absolute;
    background: var(--indigo);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.faq-icone::before { top: 10px; left: 2px; right: 2px; height: 3px; }
.faq-icone::after { left: 10px; top: 2px; bottom: 2px; width: 3px; }
.faq-item.ouvert .faq-icone::after { transform: rotate(90deg); opacity: 0; }
.faq-reponse {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-item.ouvert .faq-reponse { max-height: 260px; }
.faq-reponse p { margin: 0; padding: 0 22px 20px; color: var(--gris); font-size: .95rem; }
@media (max-width: 860px) {
    .section-expertise .container { grid-template-columns: 1fr; gap: 34px; }
}

/* Section "Comment ca marche" */
.section-etapes { background: var(--blanc); }
.etapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.etape {
    position: relative;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 6px;
    padding: 30px 24px 26px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.etape::before {
    content: "";
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 4px;
    background: var(--indigo);
    border-radius: 0 0 3px 3px;
}
.etape:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(58, 32, 19,.12); }
.etape-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--indigo);
    color: var(--or);
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.etape h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--texte); }
.etape p { margin: 0; color: var(--gris); font-size: .92rem; }

/* Section conseillers */
.section-conseillers .container {
    background: linear-gradient(135deg, var(--hero-brun), var(--hero-orange-fonce));
    color: #fff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.section-conseillers h2 { margin: 0 0 6px; font-size: 1.6rem; }
.section-conseillers p { margin: 0; color: #f1e9df; max-width: 520px; }
.section-conseillers .btn { background: var(--blanc); color: var(--orange-fonce); }
.section-conseillers .btn:hover { background: #f1e5da; }

/* Bouton menu mobile */
.nav-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--bordure);
    border-radius: 8px;
    background: var(--blanc);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--indigo);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.site-header.nav-ouvert .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-ouvert .nav-burger span:nth-child(2) { opacity: 0; }
.site-header.nav-ouvert .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
    .nav-burger { display: flex; }
    nav.main-nav a { font-size: .95rem; letter-spacing: .02em; }
    nav.main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanc);
        border-top: 1px solid var(--bordure);
        box-shadow: 0 22px 44px rgba(58, 32, 19, .14);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        display: none;
    }
    .site-header.nav-ouvert nav.main-nav { display: block; }
    nav.main-nav ul { flex-direction: column; gap: 0; padding: 8px; }
    nav.main-nav li { width: 100%; }
    nav.main-nav a {
        display: block;
        padding: 12px 14px;
        border-bottom: none;
        border-radius: 6px;
    }
    nav.main-nav a:hover,
    nav.main-nav a.active {
        border-bottom: none;
        background: var(--creme);
    }
    .nav-caret { float: right; }
    .main-nav .sous-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 6px 14px;
        min-width: 0;
    }
    .main-nav .sous-menu a { padding: 9px 14px; font-size: .85rem; }
}

@media (max-width: 860px) {
    .detail-bien, .contact-grille { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .recherche-form { flex-direction: column; align-items: stretch; }
    .recherche-champ { flex: none; }
    .hero h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
    .barre-contact a:not(.barre-whatsapp) + a { display: none; } /* garde tel + whatsapp */
    .barre-utilitaire { font-size: .78rem; }
}

/* Accessibilite : lien d'evitement + focus visible */
.lien-evitement {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--indigo);
    color: #fff;
    padding: 10px 16px;
    z-index: 999;
    border-radius: 0 0 8px 0;
}
.lien-evitement:focus { left: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--or);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Champ piege (honeypot) */
.champ-piege {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Bandeau cookies */
.cookie-banniere {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--indigo-fonce);
    color: #f0e6d8;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 16px 44px rgba(0,0,0,.35);
    z-index: 95;
}
.cookie-banniere p { margin: 0; font-size: .88rem; }
.cookie-banniere a { color: var(--or); text-decoration: underline; }
.cookie-banniere .btn { flex: none; }
@media (max-width: 560px) { .cookie-banniere { flex-direction: column; align-items: stretch; text-align: center; } }

/* Pied de page : bas */
.footer-bas {
    max-width: 1140px;
    margin: 34px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .85rem;
    color: #a89484;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: var(--or); }

/* Pages de texte (mentions legales, confidentialite) */
.page-texte { max-width: 780px; }
.page-texte h2 { font-size: 1.25rem; color: var(--indigo); margin: 30px 0 10px; }
.page-texte p, .page-texte li { color: var(--texte); line-height: 1.7; }
.page-texte ul { padding-left: 20px; }
.page-texte .note {
    background: var(--creme);
    border-left: 3px solid var(--or);
    padding: 10px 14px;
    font-size: .9rem;
    color: var(--gris);
}

/* Admin : stats, recherche, pagination */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.admin-stats .stat {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 12px;
    padding: 18px 20px;
}
.admin-stats .stat-alerte { border-color: var(--or); }
.admin-stats .stat-n { display: block; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--indigo); }
.admin-stats .stat-l { color: var(--gris); font-size: .85rem; }
.admin-recherche { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-recherche input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--bordure); border-radius: 8px; }
.admin-pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.admin-pagination a {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bordure);
    border-radius: 6px;
    font-weight: 600;
    color: var(--indigo);
}
.admin-pagination a.actif { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.admin-header nav a.actif { color: var(--or); }
.admin-table .actions-cell form { display: inline; }

/* Biens similaires (fiche) */
.biens-similaires { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--bordure); }
.biens-similaires h2 { font-size: 1.5rem; color: var(--indigo); margin: 0 0 24px; }
.btn-partager { cursor: pointer; }
