/* =====================================================
   COMPLEXIMO – style.css (version nettoyée)
   Ordre : reset > header > menu > contenu > annonces > footer > responsive
   ===================================================== */

/* =====================================================
   RESET
   ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #333;
}

:focus-visible {
    outline: 3px solid #c6a55c;
    outline-offset: 2px;
}

/* =====================================================
   HEADER
   ===================================================== */

header {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 30px 5vw;
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url('interieur.jpg') no-repeat center center;
    background-size: cover;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* OPTIONNEL : fond vert foncé comme la page "vendre".
   Pour l'activer, remplacez la règle "background" ci-dessus par :
   background: linear-gradient(115deg, rgba(8,38,28,.91), rgba(20,80,60,.82)), url('interieur.jpg') center 45% / cover no-repeat;
*/

header > * {
    position: relative;
    z-index: 2;
}

header .logo {
    margin: 0 auto 15px;
    max-width: 200px;
    width: 100%;
}

header .logo img {
    height: 120px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

header .info-block {
    background: transparent;
    padding: 25px;
    max-width: 900px;
    margin: 0 auto;
}

header h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

header .hero-sub {
    font-size: 22px;
    margin: 0 0 20px 0;
    font-weight: 400;
    opacity: 0.95;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* =====================================================
   BOUTONS DU HEADER (style identique à la page "vendre")
   ===================================================== */

header .contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0 0;
    font-size: 18px;
}

header .cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 80px;
}

/* Appeler : doré */
header .contact a.btn-call {
    display: inline-block;
    background: #c6a55c;
    color: #172d24;
    border: 1px solid #c6a55c;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    white-space: nowrap;
    transition: background 0.3s ease;
}

/* Email : transparent, contour doré */
header .contact a.btn-mail {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    border: 1px solid #c6a55c;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    white-space: nowrap;
    transition: background 0.3s ease;
}

/* Estimation : doré */
header .cta-buttons a {
    display: inline-block;
    background: #c6a55c;
    color: #18372b;
    border: 1px solid #c6a55c;
    padding: 10px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    width: auto;
    transition: background 0.3s ease;
}

header .contact a.btn-call:hover,
header .cta-buttons a:hover {
    background: #d8bd7e;
}

header .contact a.btn-mail:hover {
    background: rgba(198, 165, 92, 0.2);
}

/* =====================================================
   MENU
   ===================================================== */

.menu-toggle {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10000;
    cursor: pointer;
    border: 0;
    background: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 6px 0;
}

.main-menu {
    display: flex;
    gap: 30px;
    position: absolute;
    z-index: 9999;
    right: 25px;
    bottom: 20px;
}

.main-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.main-menu a:hover {
    text-decoration: underline;
}

/* =====================================================
   MAIN
   ===================================================== */

main {
    width: 100%;
    max-width: none;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

/* =====================================================
   SECTEURS
   ===================================================== */

.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.secteur-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.secteur-card {
    background: #245B8A;
    color: #ffffff;
    border: 1px solid #c6a55c;
    border-radius: 18px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
}

.secteur-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border-color: #e0c27a;
}

.secteur-icon {
    font-size: 42px;
    margin-bottom: 15px;
    color: #c6a55c;
}

.secteur-card h3,
.secteur-card .secteur-titre {
    display: block;
    font-size: 21px;
    margin: 8px 0;
    letter-spacing: 1px;
    font-weight: 600;
}

.secteur-desc {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: .9;
}

/* =====================================================
   TEXTES DE PRESENTATION
   ===================================================== */

.presentation-agence,
.faq-seo {
    width: calc(100% - 40px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.presentation-agence p,
.faq-seo p {
    line-height: 1.7;
    text-align: left;
}

.presentation-agence h1,
.presentation-agence h2 {
    text-align: center;
}

.seo-texte {
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 25px auto;
    line-height: 1.7;
    text-align: left;
}

.seo-intro {
    max-width: 850px;
    margin: 10px auto 20px;
    text-align: center;
    color: white;
    font-size: 16px;
    line-height: 1.6;
}

/* =====================================================
   ANNONCES : GRILLE, CARTES, STATUTS
   ===================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 16px;
    justify-items: stretch;
}

.card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    position: relative;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.card h3 a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
}

.card h3 a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.card p {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

.infos-annonce {
    font-size: 15px;
    color: #333;
    margin: 8px 0;
}

.infos-annonce span {
    margin-left: 4px;
}

.lieu-annonce {
    color: #14503c !important;
    font-weight: 600;
    margin: 8px 0;
}

.cta {
    display: inline-block;
    padding: 10px 15px;
    background: #245B8A;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

.cta:hover {
    background: #0f3a28;
}

.statut-annonce {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.statut-a-vendre { background: #14503c; }
.statut-en-cours { background: #9a6a00; }
.statut-vendu    { background: #8b1e1e; }

.card-bien-vendu { opacity: 0.78; }
.card-bien-vendu img { filter: grayscale(45%); }
.card-bien-vendu .cta { background: #777777; }

/* =====================================================
   CARROUSEL DES ANNONCES
   ===================================================== */

.annonces-carousel-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 25px auto 40px;
    padding: 0 50px;
    overflow: hidden;
}

.annonces-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 24px;
    margin: 0;
    padding: 15px 5px 25px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.annonces-carousel::-webkit-scrollbar {
    display: none;
}

.annonces-carousel > .card {
    flex: 0 0 320px !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #c6a55c;
    border-radius: 50%;
    background: #14503c;
    color: #ffffff;
    font-size: 23px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.carousel-arrow:hover {
    background: #c6a55c;
    color: #14503c;
}

.carousel-prev { left: 2px; }
.carousel-next { right: 2px; }

.onglet-annonces {
    text-align: center;
    margin: 25px auto;
}

.onglet-annonces a {
    display: inline-block;
    background: #245B8A;
    color: white;
    padding: 13px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.onglet-annonces a span {
    margin-left: 8px;
    font-size: 20px;
}

.onglet-annonces a:hover {
    background: #c6a55c;
    color: white;
}

/* =====================================================
   IMMOBILIER PAR ARRONDISSEMENT
   ===================================================== */

.home-arrondissements {
    max-width: 1200px;
    margin: 45px auto 35px;
    padding: 0 20px;
    text-align: center;
}

.home-arrondissements-header h2 {
    margin-bottom: 8px;
    color: #14503c;
}

.home-arrondissements-header p {
    margin-bottom: 25px;
    color: #68716c;
}

.home-arrondissements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 850px;
    margin: 0 auto;
}

.home-arrondissements-grid a {
    display: block;
    padding: 13px 15px;
    background: #f7f6f1;
    border: 1px solid #e2dfd4;
    border-radius: 4px;
    color: #14503c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.home-arrondissements-grid a:hover {
    background: #14503c;
    color: white;
    border-color: #14503c;
}

/* =====================================================
   ACTUALITES
   ===================================================== */

.home-actualites {
    max-width: 1200px;
    margin: 55px auto;
    padding: 0 20px;
}

.home-actualites-header {
    text-align: center;
    margin-bottom: 30px;
}

.home-actualites-header h2 {
    color: #14503c;
    font-size: 30px;
    margin: 0 0 10px;
}

.home-actualites-header p {
    color: #68716c;
    margin: 0;
}

.home-actualites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-actualite-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 23px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.home-actualite-date {
    color: #8d7134;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.home-actualite-card h3 {
    color: #14503c;
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.home-actualite-source {
    color: #68716c;
    font-size: 13px;
    margin-bottom: 16px;
}

.home-actualite-card a {
    color: #14503c;
    font-weight: 600;
    text-decoration: none;
}

.home-actualite-card a:hover {
    color: #8d7134;
}

.home-actualites-button {
    text-align: center;
    margin-top: 30px;
}

.home-actualites-button a {
    display: inline-block;
    padding: 12px 24px;
    background: #14503c;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.home-actualites-button a:hover {
    background: #c6a55c;
}

/* =====================================================
   PRIX DU MARCHE
   ===================================================== */

.prix-marche {
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 40px auto;
    padding: 30px 25px;
    background: #f7f6f1;
    border: 1px solid #e2dfd4;
    border-radius: 8px;
}

.prix-marche h2 {
    text-align: center;
    color: #14503c;
    margin-top: 0;
}

.prix-marche p {
    line-height: 1.7;
    text-align: left;
}

.prix-marche-tableau {
    overflow-x: auto;
    margin: 20px 0;
}

.prix-marche table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.prix-marche caption {
    padding: 8px 0;
    font-weight: 600;
    color: #14503c;
    text-align: left;
}

.prix-marche th,
.prix-marche td {
    padding: 10px 14px;
    border: 1px solid #e2dfd4;
    text-align: left;
}

.prix-marche th {
    background: #14503c;
    color: #fff;
}

.prix-marche td:last-child,
.prix-marche th:last-child {
    text-align: right;
    white-space: nowrap;
}

.prix-marche a {
    color: #14503c;
    font-weight: 600;
}

.prix-marche-note,
.prix-marche-maj {
    font-size: 14px;
    color: #555;
}

/* =====================================================
   FAQ
   ===================================================== */

.faq-seo {
    margin: 50px auto 40px;
    padding: 35px 25px;
    background: #f7f7f7;
    border-radius: 8px;
}

.faq-seo h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #14503c;
}

.faq-item {
    margin-bottom: 25px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    margin-bottom: 8px;
    color: #14503c;
    font-size: 18px;
}

.faq-item p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.faq-item ul {
    margin: 0 0 12px;
    padding-left: 22px;
    line-height: 1.6;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer {
    background: #14503c;
    color: #fff;
    padding: 60px 20px 40px;
    font-size: 15px;
    width: 100%;
}

.footer-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-column h4,
.footer-column .footer-titre {
    display: block;
    font-size: 19px;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
}

.footer-column h4::after,
.footer-column .footer-titre::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 0.8;
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-column img {
    height: 65px;
    max-width: 100%;
    margin-bottom: 25px;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    opacity: 0.9;
}

.copyright a {
    color: #fff;
}

.mentions-legales {
    text-align: center;
    margin-top: 15px;
}

/* Éléments conservés au cas où d'autres pages les utilisent */

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 25px;
}

.social-icons a {
    font-size: 28px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
}

.newsletter form {
    display: flex;
    margin-top: 20px;
    gap: 0;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 15px;
}

.newsletter button {
    padding: 14px 24px;
    background: #fff;
    color: #14503c;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

.back-to-top {
    display: inline-block;
    margin-top: 20px;
    background: #ffffff;
    color: #14503c;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* =====================================================
   RESPONSIVE (toujours à la fin du fichier)
   ===================================================== */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 800px) {

    .home-actualites-grid {
        grid-template-columns: 1fr;
    }

    .home-actualites-header h2 {
        font-size: 25px;
    }
}

@media (max-width: 768px) {

    header {
        padding: 20px 15px;
    }

    header .logo img {
        height: 65px;
    }

    header h1 {
        font-size: 28px;
    }

    header .hero-sub {
        font-size: 19px;
    }

    header .contact {
        font-size: 16px;
    }

    header .cta-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }

    header .cta-buttons a {
        padding: 8px 16px;
        font-size: 14px;
        width: 90%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 90px;
        right: 25px;
        bottom: auto;
        background: rgba(0,0,0,0.95);
        padding: 20px;
        border-radius: 10px;
        flex-direction: column;
        gap: 15px;
    }

    .main-menu.active {
        display: flex;
    }

    .secteur-card {
        padding: 35px 20px;
        min-width: 90%;
    }

    .secteur-card h3,
.secteur-card .secteur-titre {
        font-size: 22px;
    }
}

@media (max-width: 600px) {

    header .contact {
        flex-direction: column;
        align-items: center;
    }

    header .contact a {
        width: 80%;
        text-align: center;
    }

    main {
        padding: 15px;
    }

    .secteurs-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .card {
        max-width: 100%;
    }

    .annonces-carousel-wrapper {
        padding: 0 8px;
    }

    .annonces-carousel > .card {
        flex: 0 0 82% !important;
        width: 82% !important;
        min-width: 82% !important;
        max-width: 82% !important;
    }

    /* Téléphone : pas de flèches, on fait glisser */
    .carousel-arrow {
        display: none !important;
    }

    .home-arrondissements {
        margin-top: 35px;
        padding: 0 15px;
    }

    .home-arrondissements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-arrondissements-grid a {
        padding: 12px 8px;
        font-size: 14px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-column h4::after,
.footer-column .footer-titre::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column img {
        height: 60px;
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input[type="email"] {
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .newsletter button {
        border-radius: 6px;
    }
}


/* =====================================================
   NOUVEAU HEADER : barre du haut + bandeau d'accueil
   (les anciennes règles "header ..." plus haut ne servent
    plus qu'aux pages qui n'ont pas encore été migrées)
   ===================================================== */

header.site-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    text-align: left;
    color: #fff;
    text-shadow: none;
}

/* ----- Barre du haut ----- */

.topbar {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 5vw;
    background: #14503c;
    border-bottom: 3px solid #c6a55c;
}

.brand {
    display: block;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    height: 56px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.site-nav > a,
.nav-outils-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    font-family: inherit;
    padding: 8px 2px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.site-nav > a:hover,
.nav-outils-btn:hover,
.nav-item-outils.open .nav-outils-btn {
    border-bottom-color: #c6a55c;
}

.nav-outils-btn::after {
    content: " \25BE";
    font-size: 12px;
}

.nav-item-outils {
    position: relative;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    padding: 8px 0;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 100;
}

.nav-item-outils.open .nav-submenu {
    display: block;
}

.site-nav .nav-submenu a {
    display: block;
    padding: 10px 18px;
    color: #14503c;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.site-nav .nav-submenu a:hover {
    background: #f7f6f1;
}

.topbar-tel {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c6a55c;
    color: #172d24;
    padding: 9px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.topbar-tel:hover {
    background: #d8bd7e;
}

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    padding: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px 0;
    background: #ffffff;
}

/* ----- Bandeau d'accueil ----- */

.hero {
    padding: 64px 5vw 72px;
    text-align: center;
    color: #ffffff;
    background:
        linear-gradient(115deg, rgba(8,38,28,.88), rgba(20,80,60,.72)),
        url('interieur.jpg') center / cover no-repeat;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 14px;
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1.2;
    letter-spacing: 0;
    text-shadow: none;
    color: #ffffff;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
    color: #ffffff;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-or,
.btn-contour {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #c6a55c;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-or {
    background: #c6a55c;
    color: #172d24;
}

.btn-or:hover {
    background: #d8bd7e;
}

.btn-contour {
    background: transparent;
    color: #ffffff;
}

.btn-contour:hover {
    background: rgba(198,165,92,0.25);
}

/* Ordinateur : le sous-menu s'ouvre aussi au survol */
@media (min-width: 1025px) and (hover: hover) {
    .nav-item-outils:hover .nav-submenu {
        display: block;
    }
}

/* Tablette et téléphone : menu déroulant */
@media (max-width: 1024px) {

    .topbar-tel {
        margin-left: auto;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 8px 5vw 16px;
        background: #0f3a28;
        box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav > a,
    .nav-outils-btn {
        width: 100%;
        padding: 14px 0;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        padding: 0;
        background: rgba(255,255,255,0.06);
        border-radius: 0;
        box-shadow: none;
    }

    .site-nav .nav-submenu a {
        color: #ffffff;
        padding: 12px 16px;
    }

    .site-nav .nav-submenu a:hover {
        background: rgba(255,255,255,0.1);
    }
}

@media (max-width: 600px) {

    .brand img {
        height: 46px;
    }

    .tel-num {
        display: none;
    }

    .topbar-tel {
        padding: 10px 14px;
        font-size: 17px;
    }

    .hero {
        padding: 40px 5vw 48px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-or,
    .btn-contour {
        width: 85%;
        text-align: center;
    }
}

/* =====================================================
   SOCLE COMMUN À TOUTES LES PAGES (étape 1 de la refonte)
   Utilisé par les futurs modèles : arrondissement, annonce, service
   ===================================================== */

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 10px 16px;
    background: #c6a55c;
    color: #172d24;
    font-weight: bold;
}
.skip-link:focus { left: 0; }

/* Page en cours dans le menu */
.site-nav > a[aria-current="page"],
.nav-outils-btn[aria-current="true"] {
    border-bottom-color: #c6a55c;
}
.site-nav .nav-submenu a[aria-current="page"] {
    background: #f7f6f1;
}

/* Bandeau compact des pages intérieures (titre + fil d'Ariane) */
.page-head {
    padding: 36px 5vw 40px;
    color: #ffffff;
    background:
        linear-gradient(115deg, rgba(8,38,28,.90), rgba(20,80,60,.78)),
        url('interieur.jpg') center / cover no-repeat;
}
.page-head h1 {
    max-width: 1100px;
    margin: 0 auto 10px;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: none;
    color: #ffffff;
}
.page-head .page-intro {
    max-width: 1100px;
    margin: 0 auto;
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.6;
    color: #ffffff;
}

.breadcrumb {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px 0;
    font-size: 14px;
    color: #5b665f;
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcrumb li + li::before {
    content: "\203A";
    margin-right: 6px;
    color: #c6a55c;
}
.breadcrumb a { color: #14503c; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #5b665f; }

/* Fil d'Ariane sur le bandeau vert */
.page-head .breadcrumb {
    max-width: 1100px;
    padding: 0;
    margin-bottom: 14px;
    color: #ffffff;
}
.page-head .breadcrumb a { color: #ffffff; text-decoration: underline; }
.page-head .breadcrumb [aria-current="page"] { color: #e9dfc4; }

/* Contenu courant */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 5vw 56px;
    color: #172d24;
    line-height: 1.7;
    font-size: 17px;
}
.page-content h2 {
    margin: 40px 0 14px;
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.3;
    color: #14503c;
}
.page-content h3 {
    margin: 26px 0 10px;
    font-size: 20px;
    color: #14503c;
}
.page-content p,
.page-content ul,
.page-content ol { margin: 0 0 16px; }
.page-content ul,
.page-content ol { padding-left: 22px; }
.page-content a { color: #14503c; text-decoration: underline; }
.page-content a:hover { color: #8d7134; }

.page-content table {
    width: 100%;
    margin: 0 0 24px;
    border-collapse: collapse;
    font-size: 16px;
}
.page-content th,
.page-content td {
    padding: 10px 12px;
    border: 1px solid #e2dccb;
    text-align: left;
    vertical-align: top;
}
.page-content th { background: #14503c; color: #ffffff; }
.page-content tbody tr:nth-child(even) { background: #f7f6f1; }

/* Cartes de liens (secteurs, services, à lire aussi) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 0 0 24px;
}
.cards-grid a {
    display: block;
    padding: 18px 20px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-left: 4px solid #c6a55c;
    border-radius: 6px;
    color: #14503c;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}
.cards-grid a:hover { background: #efe9d8; }
.cards-grid a span {
    display: block;
    margin-top: 4px;
    font-weight: normal;
    font-size: 15px;
    color: #4a5a52;
}

/* Bandeau d'appel à l'action */
.cta-band {
    margin: 40px 0 0;
    padding: 28px 24px;
    text-align: center;
    background: #14503c;
    border-radius: 8px;
    color: #ffffff;
}
.cta-band h2,
.cta-band h3 { margin: 0 0 10px; color: #ffffff; }
.cta-band p { margin: 0 0 18px; color: #ffffff; }
.page-content .cta-band a.btn-or { color: #172d24; text-decoration: none; }
.page-content .cta-band a.btn-contour { color: #ffffff; text-decoration: none; }

/* Questions fréquentes (balises <details>, sans JavaScript) */
.faq details {
    margin: 0 0 10px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-radius: 6px;
}
.faq summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: bold;
    color: #14503c;
}
.faq details > :not(summary) { padding: 0 18px; }
.faq details[open] { padding-bottom: 10px; }

@media (max-width: 600px) {
    .page-head { padding: 26px 5vw 30px; }
    .page-content { padding: 28px 5vw 44px; font-size: 16px; }
    .page-content table { display: block; overflow-x: auto; }
}

/* =====================================================
   MODÈLE « SERVICE » (Vendre, Acheter, Louer, Estimation…)
   ===================================================== */

.page-content .eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8d7134;
}

.page-content .section-intro-left { max-width: 860px; }

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 20px;
    margin: 0 0 24px;
}
.service-card {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 18px;
    background: #ffffff;
    border: 1px solid #e2dccb;
    border-top: 4px solid #c6a55c;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.service-card h3 { margin: 0 0 10px; font-size: 19px; }
.service-card p { flex: 1; margin: 0 0 14px; font-size: 16px; }
.service-card a { font-weight: bold; text-decoration: none; }
.service-card a:hover { text-decoration: underline; }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 22px 0 8px;
    counter-reset: etape;
}
.step {
    position: relative;
    padding: 20px 20px 18px 64px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-radius: 8px;
    counter-increment: etape;
}
.step::before {
    content: counter(etape);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #14503c;
    color: #ffffff;
    font-weight: bold;
}
.step strong { display: block; margin-bottom: 4px; color: #14503c; }

.action-link {
    display: inline-block;
    margin: 4px 0 0;
    padding: 12px 24px;
    background: #14503c;
    border-radius: 5px;
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: none !important;
    transition: background 0.3s ease;
}
.action-link:hover { background: #0f3a2b; }

/* =====================================================
   MODÈLE « ANNONCE » (fiche d'un bien)
   ===================================================== */

.annonce-sous-titre {
    margin: 0 0 22px;
    padding: 10px 14px;
    background: #f7f6f1;
    border-left: 4px solid #c6a55c;
    border-radius: 0 6px 6px 0;
    font-size: 15px;
    color: #4a5a52;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}
.gallery a { display: block; overflow: hidden; border-radius: 8px; }
.gallery img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery a:hover img { transform: scale(1.04); }

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}
.facts > div {
    padding: 16px 18px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-radius: 8px;
}
.facts dt {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b665f;
}
.facts dd { margin: 0; font-size: 17px; font-weight: bold; color: #14503c; }
.facts dd.prix { font-size: 24px; }
.facts dd small { display: block; font-weight: normal; font-size: 14px; color: #4a5a52; }

.annonce-texte p { max-width: 860px; }

/* =====================================================
   MODÈLE « ARRONDISSEMENT / QUARTIER »
   (la page porte la classe page-arrondissement sur <body>)
   ===================================================== */

body.page-arrondissement { background: #f5f5f2; }

.page-arrondissement main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 40px;
    padding: 30px 25px 55px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,.10);
    color: #222;
    line-height: 1.6;
}
.page-arrondissement .seo-intro {
    max-width: 850px;
    margin: 0 auto 28px;
    text-align: center;
    color: #555;
    font-size: 17px;
}
.page-arrondissement .seo-intro a { color: #14503c; font-weight: bold; }

.page-arrondissement .section-intro {
    max-width: 900px;
    margin: 10px auto 35px;
    text-align: center;
}
.page-arrondissement .section-intro h2,
.page-arrondissement .content-section h2 {
    margin: 0 0 15px;
    color: #14503c;
    text-align: center;
    font-size: 30px;
    line-height: 1.25;
}
.page-arrondissement .section-intro h2::after,
.page-arrondissement .content-section h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 2px;
    margin: 12px auto 0;
    background: #c6a55c;
}
.page-arrondissement .section-intro p { font-size: 17px; color: #555; }
.page-arrondissement main a { color: #14503c; }
.page-arrondissement main a:hover { color: #8d7134; }

.page-arrondissement .quartiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.page-arrondissement .quartier-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    padding: 28px 22px;
    background: #252525;
    color: #ffffff;
    border: 2px solid #c6a55c;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
    transition: transform .2s, box-shadow .2s;
}
.page-arrondissement .quartier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.page-arrondissement .quartier-card h3 { margin: 0 0 10px; color: #c6a55c; font-size: 22px; }
.page-arrondissement .quartier-card p { margin: 0 0 12px; color: #f1f1ec; font-size: 15px; }
.page-arrondissement main a.quartier-card-link {
    display: inline-block;
    align-self: flex-start;
    padding: 9px 14px;
    color: #ffffff;
    border: 1px solid #c6a55c;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}
.page-arrondissement main a.quartier-card-link:hover { background: #c6a55c; color: #172d24; }

.page-arrondissement .content-section { margin: 55px 0; }
.page-arrondissement .content-section > p,
.page-arrondissement .content-card {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}
.page-arrondissement .content-card {
    padding: 28px 32px;
    background: #f7f7f4;
    border-left: 4px solid #c6a55c;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 18px rgba(0,0,0,.07);
}
.page-arrondissement .content-card p:last-child { margin-bottom: 0; }
.page-arrondissement .source-note { font-size: 14px; color: #5b665f; }

.page-arrondissement .atouts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.page-arrondissement .atout-card {
    padding: 25px 22px;
    background: #ffffff;
    border: 1px solid #e1e1dc;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.09);
}
.page-arrondissement .atout-card h3 { margin: 0 0 12px; color: #14503c; font-size: 19px; }
.page-arrondissement .atout-card p { margin: 0; color: #555; font-size: 15px; }

.page-arrondissement .cta-section {
    margin: 60px 0;
    padding: 40px 30px;
    background: #14503c;
    color: #ffffff;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.page-arrondissement .cta-section h2 { margin: 0 0 15px; color: #ffffff; font-size: 30px; }
.page-arrondissement .cta-section h2::after { display: none; }
.page-arrondissement .cta-section p { max-width: 800px; margin: 0 auto 15px; color: #ffffff; }
.page-arrondissement .cta-immobilier {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0 15px;
}
.page-arrondissement main a.btn-primary,
.page-arrondissement main a.btn-secondary {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 7px;
    font-weight: bold;
    text-decoration: none;
    transition: background .3s ease;
}
.page-arrondissement main a.btn-primary { background: #c6a55c; color: #172d24; }
.page-arrondissement main a.btn-primary:hover { background: #d8bd7e; color: #172d24; }
.page-arrondissement main a.btn-secondary { background: #ffffff; color: #14503c; }
.page-arrondissement main a.btn-secondary:hover { background: #f1ead6; color: #14503c; }
.page-arrondissement .contact-compleximo a { color: #ffffff; }

.page-arrondissement .faq-seo {
    max-width: 920px;
    margin: 55px auto 30px;
    padding: 35px 30px;
    background: #f7f7f7;
    border-radius: 8px;
}
.page-arrondissement .faq-seo h2 { margin: 0 0 30px; text-align: center; color: #14503c; }
.page-arrondissement .faq-item { margin-bottom: 25px; }
.page-arrondissement .faq-item:last-child { margin-bottom: 0; }
.page-arrondissement .faq-item h3 { margin: 0 0 8px; color: #14503c; font-size: 18px; }
.page-arrondissement .faq-item p { margin: 0; color: #333; }

.page-arrondissement .liens-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 1000px;
    margin: 25px auto 0;
}
.page-arrondissement .liens-grid a {
    display: block;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transition: transform .3s ease, border-color .3s ease;
}
.page-arrondissement .liens-grid a:hover { transform: translateY(-4px); border-color: #c6a55c; color: #333; }
.page-arrondissement .liens-grid span { display: block; margin-bottom: 5px; color: #14503c; font-weight: bold; font-size: 18px; }

@media (max-width: 1000px) {
    .page-arrondissement .quartiers-grid,
    .page-arrondissement .atouts-grid,
    .page-arrondissement .liens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .page-arrondissement main { padding: 25px 15px 45px; border-radius: 0; }
}
@media (max-width: 600px) {
    .page-arrondissement .quartiers-grid,
    .page-arrondissement .atouts-grid,
    .page-arrondissement .liens-grid { grid-template-columns: 1fr; }
    .page-arrondissement .quartier-card { min-height: auto; }
    .page-arrondissement .content-card { padding: 22px 20px; }
    .page-arrondissement .faq-seo { padding: 28px 20px; }
    .page-arrondissement .cta-section { padding: 30px 18px; }
    .page-arrondissement .section-intro h2,
    .page-arrondissement .content-section h2 { font-size: 25px; }
}

/* Espacement entre les grandes sections d'une page de service */
.page-content > section { margin-bottom: 40px; }
.page-content .note-info {
    margin: 0 0 20px;
    padding: 14px 18px;
    background: #f7f6f1;
    border-left: 4px solid #c6a55c;
    border-radius: 0 6px 6px 0;
    font-size: 15px;
    color: #4a5a52;
}

/* =====================================================
   FORMULAIRES (contact, estimation)
   ===================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: start;
}
.contact-layout h2,
.form-page h2 { margin-top: 0; }

.coordonnees { margin: 0 0 20px; }
.coordonnees > div {
    padding: 14px 0;
    border-bottom: 1px solid #e2dccb;
}
.coordonnees dt {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8d7134;
}
.coordonnees dd { margin: 0; font-size: 18px; }

.form-page { max-width: 760px; margin: 0 auto 40px; }

.form-site {
    padding: 26px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-radius: 10px;
}
.form-site label {
    display: block;
    margin: 0 0 6px;
    font-weight: bold;
    color: #14503c;
    font-size: 15px;
}
.form-site input[type="text"],
.form-site input[type="email"],
.form-site input[type="tel"],
.form-site select,
.form-site textarea {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 11px 12px;
    background: #ffffff;
    border: 1px solid #bfb8a3;
    border-radius: 6px;
    font: inherit;
    font-size: 16px;
    color: #172d24;
    box-sizing: border-box;
}
.form-site textarea { resize: vertical; min-height: 130px; }
.form-site input:focus,
.form-site select:focus,
.form-site textarea:focus {
    outline: 3px solid rgba(198,165,92,0.55);
    border-color: #c6a55c;
}
.form-ligne {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.requis { color: #b3261e; }
.champ-piege {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.form-bouton {
    cursor: pointer;
    font-family: inherit;
}
.form-note { margin: 14px 0 0; font-size: 14px; color: #4a5a52; }
.form-message {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: bold;
}
.form-succes { background: #e3f1e8; color: #14503c; border: 1px solid #b7d9c3; }
.form-erreur { background: #fbe9e7; color: #8c1d18; border: 1px solid #f0c2bd; }

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
    .form-ligne { grid-template-columns: 1fr; }
    .form-site { padding: 18px; }
}

/* Variantes rencontrées sur certaines pages de quartier */
.page-arrondissement .quartier-number {
    display: inline-block;
    margin-bottom: 8px;
    color: #c6a55c;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .08em;
}
.page-arrondissement main a.quartier-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    color: #ffffff;
    border: 1px solid #c6a55c;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}
.page-arrondissement main a.quartier-link:hover { background: #c6a55c; color: #102f24; }
.page-arrondissement .quartiers-section,
.page-arrondissement .liens-section,
.page-arrondissement .services-section { margin: 55px 0; }
.page-arrondissement .quartiers-section > h2,
.page-arrondissement .liens-section > h2,
.page-arrondissement .services-section > h2 {
    margin: 0 0 25px;
    color: #14503c;
    text-align: center;
    font-size: 30px;
    line-height: 1.25;
}
.page-arrondissement .quartiers-section > h2::after,
.page-arrondissement .liens-section > h2::after,
.page-arrondissement .services-section > h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 2px;
    margin: 12px auto 0;
    background: #c6a55c;
}
.page-arrondissement .header-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.page-arrondissement .lien-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.07);
}
.page-arrondissement .lien-card strong { color: #14503c; }
.page-arrondissement .cta-contact { margin-top: 25px; }

/* Éléments des pages de fiche et de service migrées */
.page-content .criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 20px 0 8px;
}
.page-content .criteria-item {
    padding: 16px 18px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-left: 4px solid #c6a55c;
    border-radius: 6px;
}
.page-content .criteria-item strong { color: #14503c; }
.page-content .encadre {
    margin: 20px 0;
    padding: 14px 18px;
    background: #f7f6f1;
    border-left: 4px solid #14503c;
    border-radius: 0 6px 6px 0;
}
.page-content .table-scroll { overflow-x: auto; }
.page-content .formule {
    margin: 12px 0;
    padding: 12px 16px;
    background: #f7f6f1;
    border-radius: 6px;
    font-family: "Courier New", monospace;
    overflow-x: auto;
}
.page-content .liens-utiles { list-style: none; padding: 0; }
.page-content .liens-utiles li { margin: 8px 0; padding-left: 18px; position: relative; }
.page-content .liens-utiles li::before { content: "\203A"; position: absolute; left: 0; color: #c6a55c; font-weight: bold; }

/* =====================================================
   PAGES ÉQUIPE, TARIFS, CONSEILS (éléments propres)
   ===================================================== */

.page-content .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 28px 0;
}
.page-content .team-card {
    padding: 30px 22px;
    background: #ffffff;
    border: 1px solid #e2dccb;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.page-content .team-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #14503c;
    color: #c6a55c;
    font-size: 27px;
    font-weight: bold;
}
.page-content .team-card h3 { margin: 0 0 10px; font-size: 21px; }
.page-content .team-card p { margin: 0; color: #4a5a52; }
.page-content .presentation {
    margin-top: 40px;
    padding: 30px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-radius: 12px;
    text-align: center;
}
.page-content .presentation h2 { margin-top: 0; }

.page-content .tarifs-section { max-width: 1000px; margin: 0 auto 40px; }
.page-content .tarifs-intro { max-width: 850px; margin: 0 auto 26px; text-align: center; }
.page-content .tableau-tarifs-wrapper {
    overflow-x: auto;
    margin: 26px 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.07);
}
.page-content .tableau-tarifs { margin: 0; background: #ffffff; }
.page-content .tableau-tarifs caption { padding: 0 0 12px; text-align: left; font-size: 14px; color: #4a5a52; }
.page-content .tableau-tarifs td:last-child { color: #14503c; font-size: 18px; }
.page-content .tableau-tarifs td:last-child span { display: block; margin-top: 3px; font-size: 13px; font-weight: normal; color: #4a5a52; }
.page-content .tarifs-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 28px;
}
.page-content .tarif-note {
    padding: 18px 20px;
    background: #f7f6f1;
    border-left: 4px solid #c6a55c;
    border-radius: 0 8px 8px 0;
}
.page-content .tarif-note strong { color: #14503c; }
.page-content .tarif-note p { margin: 8px 0 0; font-size: 15px; color: #4a5a52; }

.page-content .advice-grid,
.page-content .topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.page-content a.advice-link {
    display: block;
    padding: 16px 18px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-left: 4px solid #c6a55c;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background .2s ease;
}
.page-content a.advice-link:hover { background: #efe9d8; color: #14503c; }
.page-content .topic-block { margin-top: 40px; }
.page-content .topic-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2dccb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.page-content .topic-card h3 { margin-top: 0; }
.page-content .topic-card p { color: #4a5a52; margin-bottom: 14px; }
.page-content .topic-card a { font-weight: bold; text-decoration: none; border-bottom: 2px solid #c6a55c; }
.page-content .guides {
    margin-top: 40px;
    padding: 28px;
    background: #f7f6f1;
    border: 1px solid #e2dccb;
    border-radius: 12px;
}
.page-content .guides h2 { margin-top: 0; text-align: center; }
.page-content .guide-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.page-content a.guide-button {
    display: block;
    padding: 14px 18px;
    background: #14503c;
    border-radius: 7px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease;
}
.page-content a.guide-button:hover { background: #0f3a2b; color: #ffffff; }

/* =====================================================
   CATALOGUES (résidentiel, tertiaire, prestige, complexe)
   ===================================================== */

.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}
.page-content .categories-nav a {
    padding: 9px 20px;
    border: 1px solid #14503c;
    border-radius: 999px;
    color: #14503c;
    font-weight: bold;
    text-decoration: none;
    transition: background .2s ease;
}
.page-content .categories-nav a:hover { background: #f1ead6; }
.page-content .categories-nav a[aria-current="page"] { background: #14503c; color: #ffffff; }

.biens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 0 0 30px;
}
.bien-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2dccb;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.bien-card img { display: block; width: 100%; height: 190px; object-fit: cover; background: #e9e5d6; }
.bien-card-corps { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.bien-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.bien-card p { flex: 1; margin: 0 0 14px; font-size: 15px; color: #4a5a52; }
.page-content a.bien-lien {
    align-self: flex-start;
    padding: 9px 16px;
    background: #14503c;
    border-radius: 5px;
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
}
.page-content a.bien-lien:hover { background: #0f3a2b; color: #ffffff; }
.bien-vendu { background: #8c1d18; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-right: 6px; vertical-align: middle; }

/* ---------- Pages dynamiques d'annonces (annoncesacheteretlouer, biens-vendus, annonce) ---------- */
body.page-annonces .page-content { max-width: 1180px; }
.annonces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin: 28px 0 40px; }
.annonce-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e1d0; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(20,80,60,.07); }
.annonce-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.annonce-card h3 a { color: var(--vert, #14503c); text-decoration: none; }
.annonce-card h3 a:hover { text-decoration: underline; }
.annonce-card p { margin: 0 0 10px; font-size: 15px; }
.annonce-card > img { display: block; width: 100%; border-radius: 8px; margin-bottom: 8px; }
.annonce-card video { width: 100%; border-radius: 8px; margin: 8px 0; }
.annonce-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 10px; }
.annonce-actions a { display: block; text-align: center; padding: 10px 14px; border-radius: 8px; background: var(--vert, #14503c); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.annonce-actions a:hover { background: #0f3f30; }
.annonce-supprimer { position: absolute; top: 10px; right: 10px; z-index: 5; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; background: rgba(200,0,0,.8); color: #fff; text-decoration: none; }
.slider img { display: none; width: 100%; border-radius: 8px; }
.slider img.active { display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 12px; }
.thumbs img { width: 58px; height: 44px; object-fit: cover; cursor: pointer; border: 2px solid transparent; border-radius: 5px; }
.thumbs img.active { border-color: var(--vert, #14503c); }
.annonces-vide { grid-column: 1 / -1; text-align: center; color: #667; font-size: 18px; margin: 30px 0; }
#map { width: 100%; height: 520px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,.1); margin: 24px 0 36px; }
@media (max-width: 600px) { #map { height: 340px; } }
.custom-marker-div { background-size: cover; background-position: center; width: 80px; height: 80px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,.4); position: relative; cursor: pointer; }
.custom-marker-div::after { content: attr(data-price); position: absolute; bottom: 0; left: 0; right: 0; background: rgba(20,80,60,.92); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 0; text-align: center; border-radius: 0 0 9px 9px; }
.annonce-detail { max-width: 900px; margin: 0 auto; }
.annonce-detail .annonce-resume { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; padding: 0; list-style: none; }
.annonce-detail .annonce-description { white-space: pre-line; line-height: 1.7; margin-top: 24px; }
.annonce-detail .bouton-visite { display: inline-block; margin-top: 26px; padding: 14px 24px; border-radius: 8px; background: var(--vert, #14503c); color: #fff; text-decoration: none; font-weight: 700; }
.annonce-detail .bouton-visite:hover { background: #0f3f30; }

/* ---------- Actualités / journal ---------- */
body.page-actus .filters{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0 32px}
body.page-actus .filters a{border:1px solid #d8d8cf;border-radius:30px;padding:7px 15px;text-decoration:none;color:#14503c;font-size:14px}
body.page-actus .filters a:hover{background:#14503c;color:white}
body.page-actus .featured{display:grid;grid-template-columns:1.1fr 1fr;gap:0;background:#f7f6f1;border-radius:12px;overflow:hidden;margin-bottom:38px;border:1px solid #e8e6dd}
body.page-actus .featured-visual{min-height:300px;background:linear-gradient(135deg,#1d5c45,#102f24);display:flex;align-items:center;justify-content:center;color:#f1dfb5;text-align:center;padding:25px;font-size:22px;font-weight:bold}
body.page-actus .featured-copy{padding:clamp(24px,4vw,44px)}
body.page-actus .tag{display:inline-block;background:#e9e2cf;color:#5e4a20;border-radius:3px;padding:3px 9px;font-size:12px;font-weight:bold}
body.page-actus .article-date{font-size:13px;color:#68716c;margin:10px 0}
body.page-actus .featured h3{font-size:26px;line-height:1.25;color:#14503c;margin:12px 0}
body.page-actus .read-more{display:inline-block;color:#14503c;font-weight:bold;text-decoration:none;border-bottom:2px solid #c6a55c;padding-bottom:3px;margin-top:8px}
body.page-actus .articles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
body.page-actus .article-card{border:1px solid #e5e6e0;border-radius:10px;overflow:hidden;background:#fff;display:flex;flex-direction:column;box-shadow:0 4px 16px rgba(0,0,0,.045)}
body.page-actus .article-art{height:145px;background:linear-gradient(135deg,#174b38,#b99b54);display:flex;align-items:center;justify-content:center;color:#fff;font-size:19px;font-weight:bold;text-align:center;padding:18px}
body.page-actus .article-body{padding:22px;display:flex;flex-direction:column;flex:1}
body.page-actus .article-body h3{font-size:20px;line-height:1.3;color:#14503c;margin:12px 0 8px}
body.page-actus .article-body p{margin:0;color:#555}
body.page-actus .article-body .read-more{align-self:flex-start;margin-top:auto;padding-top:18px}
@media(max-width:800px){body.page-actus .featured{grid-template-columns:1fr}body.page-actus .featured-visual{min-height:180px}body.page-actus .articles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.page-actus .articles{grid-template-columns:1fr}}
body.page-actus .compleximo-articles{
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}
body.page-actus .compleximo-articles h2{
    text-align: center;
    color: #14503c;
    margin-bottom: 30px;
}
body.page-actus .compleximo-articles-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
body.page-actus .compleximo-article{
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
}
body.page-actus .compleximo-article-date{
    color: #c6a55c;
    font-size: 13px;
    margin-bottom: 8px;
}
body.page-actus .compleximo-article h3{
    color: #14503c;
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 10px;
}
body.page-actus .compleximo-article-source{
    color: #777;
    font-size: 13px;
    margin-bottom: 15px;
}
body.page-actus .compleximo-article a{
    color: #14503c;
    font-weight: 600;
    text-decoration: none;
}
body.page-actus .compleximo-article a:hover{
    color: #c6a55c;
}
@media (max-width: 800px) {body.page-actus .compleximo-articles-grid {
        grid-template-columns: 1fr;
    }}

/* ---------- Simulateur de financement ---------- */
body.page-simulateur #simulator { max-width: 1000px; margin: 0 auto; }
body.page-simulateur .tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 22px; }
body.page-simulateur .tab-button { flex: 1 1 180px; min-width: 150px; padding: 13px 16px; border: 1px solid #d8d4c4; border-radius: 8px; background: #f3f1e8; color: #14503c; font: inherit; font-weight: 700; cursor: pointer; }
body.page-simulateur .tab-button:hover { background: #e9e5d6; }
body.page-simulateur .tab-button.active { background: #14503c; border-color: #14503c; color: #fff; }
body.page-simulateur .tab-content { display: none; padding: 26px 22px; background: #faf9f4; border: 1px solid #e6e1d0; border-radius: 12px; }
body.page-simulateur .tab-content.active { display: block; }
body.page-simulateur .tab-content h3 { margin-top: 0; color: #14503c; }
body.page-simulateur form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
body.page-simulateur form > div { display: flex; flex-direction: column; }
body.page-simulateur label { font-weight: 700; margin: 10px 0 6px; font-size: 15px; }
body.page-simulateur input, body.page-simulateur select { width: 100%; padding: 11px 12px; font: inherit; border: 1px solid #c9c5b3; border-radius: 6px; background: #fff; }
body.page-simulateur button.calculate { grid-column: 1 / -1; margin-top: 10px; padding: 15px; border: 0; border-radius: 8px; background: #14503c; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
body.page-simulateur button.calculate:hover { background: #0f3f30; }
body.page-simulateur [id^="results"] { margin-top: 26px; padding: 22px; background: #eef5f1; border-left: 5px solid #14503c; border-radius: 10px; }
body.page-simulateur [id^="results"]:empty { display: none; }
body.page-simulateur canvas { max-width: 100%; margin-top: 24px; }
/* ---------- Mentions légales ---------- */
.page-legal { max-width: 860px; }
.page-legal h2 { margin-top: 34px; }

/* ---------- Utilitaires accueil (remplacent des styles en ligne) ---------- */
.titre-centre, .texte-centre { text-align: center; }
.annonce-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.carte-maps { border: 0; border-radius: 8px; }

.home-guides ul { list-style: none; margin: 18px auto 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.home-guides li { padding: 12px 16px; background: #faf9f4; border-left: 4px solid #c6a55c; border-radius: 6px; }
.home-guides a { color: #14503c; font-weight: 600; text-decoration: none; }
.home-guides a:hover { text-decoration: underline; }

.contact-photo { margin: 24px 0 0; }
.contact-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.contact-photo figcaption { margin-top: 8px; font-size: 14px; color: #4a5a52; text-align: center; }

/* ---------- Observatoire des prix ---------- */
.obs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 22px; }
.obs-kpi { padding: 18px 16px; background: #f7f6f1; border: 1px solid #e2dccb; border-top: 4px solid #c6a55c; border-radius: 8px; text-align: center; }
.obs-kpi-val { display: block; font-size: 26px; font-weight: 700; color: #14503c; line-height: 1.2; }
.obs-kpi-lib { display: block; margin-top: 6px; font-size: 14px; color: #4a5a52; }
.obs-graph { margin: 0 0 26px; }
.obs-graph svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.obs-graph figcaption { margin-top: 6px; font-size: 14px; color: #4a5a52; text-align: center; }
.page-content .obs-caption { padding: 0 0 8px; text-align: left; font-size: 14px; color: #4a5a52; caption-side: top; }
.page-content .etude-cas { margin: 0 0 30px; padding: 22px 24px; background: #f7f6f1; border: 1px solid #e2dccb; border-left: 4px solid #c6a55c; border-radius: 8px; }
.page-content .etude-cas h2 { margin-top: 0; }
.page-content .etude-meta { margin: 0 0 12px; font-size: 15px; color: #4a5a52; }

/* Fiche quartier (Lyon 2e) */
.fiche-quartier .atout-card ul { margin: 0; padding-left: 18px; color: #555; font-size: 15px; }
.fiche-quartier .atout-card li { margin-bottom: 8px; }
.fiche-quartier .atout-card p { margin: 0; }
.fq-ref { font-size: 11px; color: #8a6f2a; }
.fq-sources { margin-top: 18px; font-size: 14px; color: #4a5a52; }
.fq-sources summary { cursor: pointer; font-weight: 600; color: #14503c; }
.fq-sources ol { margin: 10px 0; padding-left: 20px; }
.fq-apercu { padding: 10px 14px; background: #fff7e0; border: 1px solid #c6a55c; border-radius: 6px; font-size: 14px; }
