/*
 * style.css — Styles composants et mise en page
 * Dépend de : utils.css (chargé avant)
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════════════════════════════════════
   VARIABLES
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
    --white: #fff;
    --cream: #eedcba;
    --gold: #bba25c;
    --beige: #f6f6f5;
    --gres: #dbd7d2;
    --fb: #fcfbfa;

    /* Palette bleue — NOTE : grey0 supprimé (identique à grey1) */
    --grey1: #13427a;
    --grey2: #2f609a;
    --grey3: #445988;
    --grey4: #516ba2;
    --blue: #164a88;
    --darkBlue: #012c69;

    /* Variables utilisées dans ce fichier mais jamais déclarées (reprise du site précédent) */
    --muted: #7a7d88;                       /* textes secondaires */
    --red-dk: var(--blue);                  /* survol des boutons bleus */
    --c-primary: var(--darkBlue);           /* cases à cocher */
    --c-primary-10: rgba(1, 44, 105, .1);
    --c-primary-20: rgba(1, 44, 105, .2);
    --grey7: #f4f5f8;                       /* fond des listes de fichiers */
    --lightFont: #fcfcfc;
    --t-fast: .15s;                         /* durées et courbes des transitions */
    --t-base: .3s;
    --e-in: cubic-bezier(.4, 0, 1, 1);
    --e-out: cubic-bezier(0, 0, .2, 1);

    /* Couleurs fonctionnelles */
    --bg-color: #fff;
    --bg-negative: #fff;
    --primaryColor: #4a4d5a;
    --secondaryColor: #444444;
    --tertiaryColor: #929292;
    --darkFont: #4a4d5a;
    --negativeFont: #dbdbdb;
    --active: #ababab;
    --headerLinks: #545454;
    --h1: #445988;
    --h1w: 400;
    --fw: 600 !important;
    --panel: #164a88;
    --shadows: #8aa4c3;
    --grade1: transparent;
    --grade2: transparent;
    --border: 1px dotted rgb(194, 194, 194);
    --noBorder: 1px solid #f8f8f8;
    --bg-hamb: #444444;
    --backExtra: #fbfbfb url(../images/main/ground.jpg) no-repeat;

    /* Assets SVG */
    --logo: url(../images/societe/intesa-grey.svg);
    --icoMail: url("../images/icones/mail-dark.svg") no-repeat left center;
    --icoUser: url("../images/icons/user.svg") no-repeat left center;
}

/* ── Classes couleur ─────────────────────────────────────────────────────── */

.white {
    color: var(--white) !important;
}

.bkg-white {
    background: var(--white) !important;
}

.grey1 {
    color: var(--grey1);
}

.bkg-grey1 {
    background: var(--grey1) !important;
}

.grey2 {
    color: var(--grey2);
}

.bkg-grey2 {
    background: var(--grey2) !important;
}

.grey3 {
    color: var(--grey3);
}

.bkg-grey3 {
    background: var(--grey3) !important;
}

.grey4 {
    color: var(--grey4);
}

.bkg-grey4 {
    background: var(--grey4) !important;
}

.cream {
    color: var(--cream) !important;
}

.beige {
    color: var(--beige) !important;
}

.gold {
    color: var(--gold) !important;
}

.blue {
    color: var(--blue) !important;
}

.bkg-blue {
    background: var(--blue) !important;
}

.bkg-darkBlue {
    background: var(--darkBlue) !important;
}

.bgfd {
    background: #fdfcfa;
}

.bgfa {
    background: #faf7f2;
}

.polar {
    background: rgba(0, 10, 28, 0.8);
}

.bg-negative {
    background: var(--bg-negative);
}

.darkFont {
    color: var(--darkFont) !important;
}

.lightFont {
    color: #fcfcfc !important;
}

.negativeFont {
    color: var(--negativeFont) !important;
}

.grade1 {
    background: var(--grade1);
}

.grade2 {
    background: var(--grade2);
}

/* ══════════════════════════════════════════════════════════════════════════════
   STRUCTURE GÉNÉRALE
   ══════════════════════════════════════════════════════════════════════════════ */

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 3rem;
    -webkit-font-smoothing: antialiased;
    color: var(--primaryColor);
    background-color: var(--bg-color);
}

#page {
    min-height: calc(100vh - 120px);
}

section {
    padding-top: 30px;
}

section.largePad {
    padding: 70px 0;
}

section.topSection {
    padding-top: 0;
}

section.fullSection {
    width: 100%;
    overflow-x: hidden;
}

section.fullSection>div,
section.fullSection>img {
    max-width: 100% !important;
}

h1,
h2,
h3 {
    font-weight: normal;
}

.h2 {
    font-size: 3.5rem;
}

.h3 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.8rem;
}

.topContent {
    width: 100%;
    margin-top: 5rem;
    padding-bottom: 6rem;
}

.topContent.grid {
    width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 5rem auto 0 auto;
}

.tagline,
.shadow {
    width: 700px !important;
    height: 100%;
}

.tagline {
    position: relative;
    font-size: 7rem;
    line-height: 12rem;
    font-weight: 300;
    text-align: center;
    z-index: 1;
}

.shadow {
    position: absolute;
    top: 4rem;
    left: -4rem;
    background: #2f609a;
}

.topContent div.text {
    padding: 5% 0 5% 5%;
}

.h1 {
    margin-top: 0;
    text-align: center;
    font-size: 3rem;
    font-weight: var(--h1w);
    color: var(--h1);
}

.ulAdv {
    font-size: 2rem;
}

.ulAdv li {
    margin-bottom: 2.2rem;
}

#ulGestion {
    width: 270px;
}

.checkList {
    display: inline-block;
    padding-right: 3%;
    color: var(--gold);
}

.pageTitle {
    height: 120px;
    line-height: 120px;
    font-size: 4rem;
}

.headline {
    margin-bottom: 3rem;
    font-size: 3rem;
    line-height: 4.5rem;
    font-weight: 300;
}

.parag {
    margin-bottom: 1.2rem;
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.button {
    width: 250px;
    height: 45px;
    line-height: 45px;
    padding: 0 16px;
    text-align: center;
    cursor: pointer;
    font-size: 1.7rem;
    border: none;
    border-radius: 24px;
    background: #233352;
    color: #fff;
}

.button.form {
    margin-top: 3rem;
    font-size: 2rem;
}

.button.blue {
    background: #002060;
}

.button:hover {
    color: #2d3253;
    background: #e6e4e0;
    cursor: pointer;
}

.button.light {
    background: #e6e4e0;
    color: inherit;
}

/* ── Décorations ─────────────────────────────────────────────────────────── */

.triangle,
.iconMail,
#emails li {
    position: relative;
}

#emails li {
    padding-bottom: 8px;
    cursor: pointer;
    text-decoration: underline;
}

.triangle::after {
    content: "\25B6";
    position: absolute;
    margin-left: 6px;
    font-size: 1.4rem;
    color: #4273a8;
    text-decoration: none;
}

.iconMail:before,
#emails li:before {
    content: "\2709";
    position: absolute;
    top: 0;
    font-size: 3rem;
    text-decoration: none;
}

.iconMail,
#emails li:before {
    padding-left: 35px;
}

.iconMail:before {
    left: 0;
    color: #4273a8;
}

#emails li:before {
    left: -80px;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HEADER — #siteHeader
   ══════════════════════════════════════════════════════════════════════════════ */

#siteHeader {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

#headerInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 130px;
    padding: 0 3%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo */
#siteLogo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

#siteLogo img {
    height: 110px;
    width: auto;
    display: block;
}

/* Nav desktop */
#siteHeader nav {
    height: auto;
}

#mainNav {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#mainNav a {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--headerLinks);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}

#mainNav a:hover,
#mainNav a[aria-current="page"] {
    color: var(--darkBlue);
    font-weight: 700;
}

/* Actions droite */
#headerActions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

#monEspace {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--headerLinks);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s;
}

#monEspace svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

#monEspace:hover {
    color: var(--darkBlue);
}

/* Hamburger */
#hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--bg-hamb);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

#hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

#hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay mobile */
#mobileOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 28, .5);
    z-index: 900;
}

#mobileOverlay.open {
    display: block;
}

/* Panneau mobile */
#mobilePanel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 90vw);
    height: 100%;
    background: var(--white);
    z-index: 1000;
    padding: 80px 5vw 10vh 5vw;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
}

#mobilePanel.open {
    transform: translateX(0);
}

#mobilePanelClose {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

#mobilePanelClose:hover {
    border-color: var(--darkBlue);
    color: var(--darkBlue);
}

/* Liste nav mobile */
#mobileNav {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobileNav li a {
    display: block;
    height: 56px;
    line-height: 56px;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--headerLinks);
    text-decoration: none;
    text-align: right;
    border-bottom: 1px solid #e8e8e8;
    transition: color .15s;
}

#mobileNav li:last-child a {
    border-bottom: none;
}

#mobileNav li a:hover,
#mobileNav li a[aria-current="page"] {
    color: var(--darkBlue);
    font-weight: 700;
}

/* Séparateur entre liens communs et liens mobile-only */
.mobileNav-separator {
    height: 1px;
    background: #ddd;
    margin: 12px 0;
    list-style: none;
}

/* Footer logo — conservé */
#footerLogo {
    width: 200px;
    height: 130px;
    background: url(../images/societe/logo-intesa-white.svg);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}


/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════════ */

#foot {
    padding: 36px 20px 32px;
}

/* Logo centré, puis une ligne de liens alignés et séparés par un point doré */
#footContent {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

#footLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
}

#footLinks a {
    letter-spacing: .06em;
    text-decoration: none;
    text-underline-offset: 5px;
}

#footLinks a + a::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 22px;
    border-radius: 50%;
    background: #bba25c;
    vertical-align: middle;
}

/* Souligné au survol (le gras décalait les liens voisins) */
#footLinks a:hover,
#footLinks a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

footer li {
    list-style: disc;
    padding-bottom: 0.5rem;
}

#footContent a,
#footContent p {
    font-size: 1.6rem;
}

#footContent li a {
    padding-right: 30px;
}


#mentions {
    padding: 3% 10% 5% 10%;
}

#mentions>div {
    max-width: 1200px;
    margin: auto;
    padding: 2% 5% 5% 5%;
}

#mentions h2 {
    margin-top: 4rem;
}

#adrMentions {
    min-width: 300px;
    margin: 10px 0 50px 0;
}

#mediation {
    width: 600px;
    padding: 5%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FORMULAIRES
   ══════════════════════════════════════════════════════════════════════════════ */

form,
fieldset,
button {
    border: none;
}

input,
select,
label,
textarea {
    vertical-align: middle;
    font-family: inherit;
}

input,
select {
    font-size: 100%;
    margin: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="phone"] {
    width: 100%;
    height: 35px;
    padding: 0 8px;
    border: none;
}

input[type="submit"] {
    border: none;
}

input[type="button"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Placeholders */
input::placeholder,
textarea::placeholder {
    font-family: arial;
    color: #96989b !important;
    font-weight: normal;
    opacity: 1;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: transparent !important;
}

/* Spinners numériques */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Validation */
input.failed,
div.failed,
textarea.failed {
    border: 2px solid #e37d00 !important;
}

.input.failed {
    color: #e37d00 !important;
}

/* ── Formulaires contextuels ────────────────────────────────────────────── */

.modalForm {
    width: 600px;
    margin: 20px auto 50px auto;
    padding: 20px 30px 50px 30px;
}

#formContact {
    padding: 30px 50px 60px 50px !important;
    border-radius: 8px;
}

.modalForm input {
    margin: 5px 0 12px 0;
}

.modalForm textarea,
#formAlert textarea {
    min-height: 200px;
}

.rgpd {
    padding: 20px 0 10px 0;
    font-size: 1.7rem;
}

/* Select custom */
.custom-select {
    position: relative;
    margin-bottom: 50px;
    font-family: Arial;
    color: #505050;
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: #f0f3f8;
    color: rgb(34, 35, 37);
}

.select-selected::after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: rgb(36, 35, 35) transparent transparent transparent;
}

.select-selected.select-arrow-active::after {
    border-color: transparent transparent #fff transparent;
    top: 7px;
}

.select-items div,
.select-selected {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-color: transparent transparent rgba(224, 220, 213, .1) transparent;
    cursor: pointer;
}

.select-items div {
    background-color: #2d3253;
    color: #fff;
}

.select-items {
    position: absolute;
    background-color: #fff !important;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

.select-hide {
    display: none;
}

.select-items div:hover {
    background-color: #515786;
    color: #fff;
}

.same-as-selected {
    background-color: #262a45;
    color: #fff;
}

.closeform {
    top: 10px;
    right: 10px;
}

/* Formulaire contact fiche */
.contactField {
    margin-bottom: 18px;
}

.contactField label {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--primaryColor);
    margin-bottom: 6px;
}

.contactField input,
.contactField textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    background: #fcfbfa;
    transition: border-color .15s;
}

.contactField input:focus,
.contactField textarea:focus {
    outline: none;
    border-color: var(--darkBlue);
}

.contactField textarea {
    min-height: 110px;
    resize: vertical;
}

#contactFicheSubmit,
#contactPageSubmit {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 13px;
    background: var(--darkBlue);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 2rem;
    transition: background .15s;
}

#contactFicheSubmit:hover,
#contactPageSubmit:hover {
    background: var(--red-dk);
}

#contactFicheSubmit:disabled,
#contactPageSubmit:disabled {
    opacity: .5;
    cursor: default;
}

#contactFicheConfirm {
    padding: 24px 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MODALES, OVERLAYS, PANNEAUX
   ══════════════════════════════════════════════════════════════════════════════ */

.cPanel {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(3000px);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
    background: rgba(0, 10, 28, 0.8);
    overflow: scroll;
    z-index: 10000;
}

.cPanel.active {
    transform: translateX(0);
    opacity: 1;
}

#contactForm {
    width: 50%;
    display: block;
    min-height: 100%;
    margin: 0 0 0 auto;
    padding: 12vh 5vw 10vh 5vw;
    background: #fff;
}

.modal {
    position: fixed;
    top: 0;
    right: -100vw;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    transition: right 0.5s ease;
    overflow-y: scroll;
    overflow-x: hidden;
    background: #e4e5e7 url(../images/main/extranet-syndic-2.jpg) no-repeat center center;
    background-size: cover;
}

.modal.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in;
    background: rgba(60, 60, 70, 0.7);
}

.overlay.load {
    opacity: 1;
    z-index: 10000;
}

.modalCard {
    max-width: 500px;
    height: 360px;
    padding: 50px 60px;
    background: #fff;
    border-radius: 6px;
}

.close {
    width: 48px !important;
    height: 48px;
    top: 22px;
    right: 22px;
    background: url("../images/icons/cross.svg") no-repeat center center;
    background-size: 22px auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.close.light {
    background: url("../images/icons/cross-w.svg") no-repeat center center;
    background-size: 22px auto;
}

.close:hover {
    transform: rotate(90deg);
    cursor: pointer;
}

/* Overlay / panneau latéral générique */
#panelOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1500;
}

#panelOverlay.open {
    display: block;
}

.sidePanel {
    position: fixed;
    top: 0;
    right: 0;
    width: 560px;
    max-width: 100vw;
    height: 100%;
    background: var(--white);
    z-index: 1501;
    padding: 32px 28px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .12);
}

.sidePanel.open {
    transform: translateX(0);
}

.panelHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.panelTitle {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--darkBlue);
}

.panelClose {
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    transition: color .15s;
}

.panelClose:hover {
    color: var(--darkBlue);
}

/* Spinner */
.spinner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 70, 0.7);
}

.spinner.run {
    display: flex;
}

.fancy-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 15rem;
    border-radius: 100%;
    background: rgba(60, 60, 70, 0.7);
}

.fancy-spinner>div {
    position: absolute;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
}

.fancy-spinner>div.ring {
    border: 0.5rem solid transparent;
    animation: 2s infinite alternate fancy;
}

.fancy-spinner>div.ring:first-child {
    border-left-color: #ffb443;
    border-right-color: #154773;
}

.fancy-spinner>div.ring:nth-child(2) {
    border-top-color: #1070c4;
    border-bottom-color: #f5f4ee;
    animation-delay: 1s;
}

.fancy-spinner>div.dot {
    width: 1rem;
    height: 1rem;
    background: #c8c8c8;
}

@keyframes fancy {
    to {
        transform: rotate(360deg) scale(0.5);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ACCUEIL
   ══════════════════════════════════════════════════════════════════════════════ */

#services {
    margin-top: 40px !important;
    padding: 90px 0 40px 0;
    overflow: hidden;
}

#intesaTagline {
    max-width: 1600px;
    margin: 0 auto 80px auto;
    padding: 0 3%;
    font-size: 2.5rem;
    line-height: 4.5rem;
}

#mainTitle {
    font-size: 8rem;
    line-height: 11rem;
}

.accent {
    color: var(--gold);
    padding-right: 0.5rem;
}

.video {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

div.agences {
    height: calc(100vh - 340px);
}

#clip-marseille,
.clipAgences {
    width: 100%;
}

#clip-marseille {
    overflow: hidden;
}

.immobilier-marseille {
    width: 100%;
    position: relative;
    top: calc(100vw / 21.2 * -1);
}

#homePic {
    display: none;
}

#topCont {
    height: 45vh;
}

#topLeft {
    background: #f8f8f8;
}

#cab {
    margin-bottom: 4rem;
}

#homeServ {
    width: 94vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 30px;
    margin: auto;
}

#homeServ h2 {
    position: relative;
    top: -70px;
    font-size: 2.6rem;
}

#homeServ>a {
    height: calc(100vw / 2.5);
}

.services {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    transition: transform 1s ease;
}

.services:hover {
    transform: scale(0.95);
}

#servLoc {
    background: url("../images/main/appartement-a-louer.jpg") no-repeat center center;
}

#servSynd {
    background: url("../images/main/copro-5.jpg") no-repeat center center;
}

#servVente {
    background: url("../images/main/maison-en-vente.jpg") no-repeat center center;
}

#sign {
    text-align: right;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PAGES SERVICES (syndic, gestion, transaction)
   ══════════════════════════════════════════════════════════════════════════════ */

.topServices {
    width: 100%;
    height: calc(100vh - 380px);
}

.topServices>div:first-child,
.blueBox {
    width: 650px;
    padding: 36px 50px 50px 50px;
}

.topServices>div:first-child {
    text-align: center;
}

.topServices>div:last-child {
    flex-grow: 1;
    text-align: center;
}

.slogan {
    margin: 0 auto;
    padding: 0;
    font-size: 6rem;
    font-weight: 400;
    line-height: 9.5rem;
    text-align: center;
    color: #fff;
}

.end {
    position: absolute;
    bottom: 10%;
}

#topSyndic {
    background: url(../images/main/pano-roy-espagne.jpg) no-repeat left center;
    background-size: cover;
}

#topContrat {
    background: url(../images/main/topSyndic4.jpg) no-repeat left center;
    background-size: cover;
}

#topGestion {
    background: url(../images/main/topGestion1.jpg) no-repeat right center;
    background-size: cover;
}

#topTransaction {
    background: url(../images/main/topTransaction1.jpg) no-repeat left center;
    background-size: cover;
}

#topRecrut {
    background: url(../images/main/recrut.jpg) no-repeat right center;
    background-size: cover;
}

#transac1,
#imgSyndic2 {
    position: relative;
    left: 10%;
}

.panel {
    color: var(--primaryColor);
    background: var(--panel);
}

.serviceContent {
    position: relative;
    padding: 0% 7% 3% 3%;
}

.serviceContent div {
    padding-left: 40px;
}

.tmv {
    border-color: var(--grey1) !important;
}

.tb1,
.tb2 {
    border-color: var(--grey2) !important;
}

.tb3,
.tb4 {
    border-color: var(--grey1) !important;
}

/* Triangles décoratifs */
.triangle-tl,
.triangle-tr,
.triangle-br,
.triangle-bl {
    width: 0;
    height: 0;
    position: absolute;
    padding: 0 !important;
}

.triangle-tl {
    top: 0;
    left: 0;
    border-top: 100px solid;
    border-right: 100px solid transparent !important;
}

.triangle-tr {
    top: 0;
    right: 0;
    border-top: 100px solid;
    border-left: 100px solid transparent !important;
}

.triangle-br {
    bottom: 0;
    right: 0;
    border-bottom: 100px solid;
    border-left: 100px solid transparent !important;
}

.triangle-bl {
    bottom: 0;
    left: 0;
    border-right: 100px solid transparent !important;
    border-bottom: 100px solid;
}

/* ── Syndic ──────────────────────────────────────────────────────────────── */

#cegc {
    width: 300px;
    margin-top: 30px;
}

#mandatSynd {
    height: 600px;
    background: url(../images/main/mandat-syndic-2.jpg) no-repeat center top;
    background-size: cover;
}

#imgSyndic2 {
    margin-right: auto !important;
}

#devisCopro h2 {
    padding-top: 60px;
    font-size: 2.5rem;
}

#mandatSyndic {
    margin: 0 auto;
    padding: 8rem 0 6rem 0;
    font-size: 3rem;
}

#devisCopro {
    width: 100%;
}

#devisCopro>div {
    padding-top: 30px;
}

/* ── Gestion locative ────────────────────────────────────────────────────── */

#mandatGer {
    height: 500px;
    background: #faf9f6 url(../images/main/mandat-gestion.jpg) no-repeat center center;
    background-size: cover;
}

#mandatHeadline,
#transacHeadline,
#contratHeadline {
    font-size: 3.5rem;
    line-height: 5rem;
    font-weight: 300;
}

#mandatHeadline,
#contratHeadline {
    max-width: 800px;
    margin: auto;
}

#mandats h3 {
    font-weight: 500;
}

#mandatRight {
    background: url(../images/main/salon-maison.jpg) no-repeat center center;
    background-size: cover;
}

#mandatLeft {
    background: url(../images/main/cuisine-maison.jpg) no-repeat center center;
    background-size: cover;
}

/* ── Transaction ─────────────────────────────────────────────────────────── */

#transacHeadline {
    width: 60rem;
    margin: auto;
}

#transButtons {
    width: 430px;
}

#transButtons button {
    width: 200px !important;
}

/* ── Estimation ──────────────────────────────────────────────────────────── */

#estimez>div {
    margin: auto;
}

#formEstim {
    max-width: 860px;
    margin: 0 auto 100px auto;
    padding: 2% 3% 5% 3%;
}

#formEstim h3 {
    margin-bottom: 30px;
    font-size: 3rem;
    color: #232f47;
}

#formEstim ul {
    padding: 0;
}

#formEstim input {
    font-size: 1.8rem;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    color: #4a5279 !important;
}

#formEstim input[type="text"] {
    margin-bottom: 12px;
}

#formEstim input:focus,
#formEstim textarea:focus {
    box-shadow: none !important;
    border: 1px solid #673ab7;
    outline-width: 0;
}

#formEstim textarea {
    width: 100%;
    min-height: 120px !important;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #d3d3d3;
}

#formEstim label {
    font-size: 1.7rem;
    font-weight: 500;
    display: inline-block;
    color: #4a5279;
}

#cp {
    margin-right: 12px;
}

.topLabel {
    padding: 12px 0 6px 0 !important;
}

.shortInput {
    width: 58px !important;
}

.shortInputLabel {
    width: 235px;
    display: inline-block;
}

.dateInput {
    width: 160px !important;
}

#logements,
.cp {
    width: 80px !important;
}

.formNav {
    bottom: 10px;
    left: 0;
    right: 0;
}

#receive {
    display: block;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ANNONCES — LISTE / MOTEUR
   ══════════════════════════════════════════════════════════════════════════════ */

#adsHead {
    margin-top: 28px;
    text-align: center;
}

#annoncesTitle {
    font-size: clamp(2.4rem, 3.5vw, 3.8rem);
    font-weight: 300;
    color: var(--darkBlue);
    line-height: 1.15;
    margin: 0 0 10px;
}

#adsLinks a:first-child {
    margin-right: 3rem;
}

/* Toggle liste/carte */
#viewToggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .03em;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    color: #555;
    background: var(--white);
    cursor: pointer;
    transition: all .15s;
}

.toggle-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.toggle-btn.active,
.toggle-btn:hover {
    background: #e9e5dc;
    border-color: #e9e5dc;
}

/* Bouton alerte */
.btnAlerte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1.5px solid #e9e5dc;
    border-radius: 6px;
    background: #6b1b23;
    color: var(--white);
    cursor: pointer;
    transition: all .15s;
}

.btnAlerte svg {
    width: 15px;
    height: 15px;
}

.btnAlerte:hover {
    background: #9b9e8f;
}

/* Moteur de recherche */
#engine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 24px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

#engineTypes {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

#budget {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.4rem;
}

.budgetLabel {
    font-weight: 600;
}

.rangeWrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

#maxPrice {
    font-weight: 700;
    min-width: 80px;
}

/* Range slider */
.range {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    width: 180px;
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--darkBlue);
    border: 2px solid var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: transform .15s;
}

.range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--darkBlue);
    border: 2px solid var(--white);
    cursor: pointer;
}

.range::-moz-range-track {
    height: 4px;
    border-radius: 4px;
    background: var(--border);
}

/* Checkboxes animées */
.engineBox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.checkbox__symbol {
    display: inline-flex;
    margin-right: 0.6em;
    border: 1.5px solid var(--c-primary);
    position: relative;
    border-radius: 0.15em;
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
    transition: box-shadow var(--t-base) var(--e-out), background-color var(--t-base);
    box-shadow: 0 0 0 0 var(--c-primary-10);
}

.checkbox__symbol::after {
    content: '';
    position: absolute;
    top: 0.4em;
    left: 0.4em;
    width: 0.25em;
    height: 0.25em;
    background-color: var(--c-primary-20);
    opacity: 0;
    border-radius: 3em;
    transform: scale(1);
    transform-origin: 50% 50%;
}

.icon-checkbox {
    width: 1em;
    height: 1em;
    margin: auto;
    fill: none;
    stroke-width: 3;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    color: var(--c-primary);
    display: inline-block;
}

.icon-checkbox path {
    transition: stroke-dashoffset var(--t-fast) var(--e-in);
    stroke-dasharray: 30px, 31px;
    stroke-dashoffset: 31px;
}

.checkbox__textwrapper {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
    transition: color .2s;
}

.checkbox__trigger:checked+.checkbox__symbol {
    background-color: var(--c-primary-10);
}

.checkbox__trigger:checked+.checkbox__symbol::after {
    animation: ripple-engine 1.5s var(--e-out);
}

.checkbox__trigger:checked+.checkbox__symbol .icon-checkbox path {
    transition: stroke-dashoffset var(--t-base) var(--e-out);
    stroke-dashoffset: 0px;
}

.checkbox__trigger:checked~.checkbox__textwrapper {
    color: var(--c-primary);
    font-weight: 600;
}

.checkbox__trigger:focus+.checkbox__symbol {
    box-shadow: 0 0 0 0.25em var(--c-primary-20);
}

@keyframes ripple-engine {
    from {
        transform: scale(0);
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: scale(20);
    }
}

/* Grille annonces */
#annoncesSection {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

#gridAnnonces {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 62px;
}

.annonce {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
    transition: box-shadow .3s ease;
}

.annonce:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .11);
}

.annonce-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.annonce-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f2f2f2;
    box-shadow: -2px 3px 10px 7px rgba(228, 228, 228, .9);
}

.annonce-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.annonce-link:hover .annonce-photo img {
    transform: scale(1.03);
}

.annonce-etiquette {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--white);
    color: var(--darkBlue);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 1;
}

.annonce-body {
    padding: 20px 10px 12px;
    border-top: 1px solid #ede9e3;
}

.annonce-titre {
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 400;
    color: var(--darkBlue);
    line-height: 1.25;
}

.annonce-lieu {
    margin-top: 4px;
    font-size: 1.8rem;
    font-weight: 400;
}

.annonce-specs {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #555;
    display: flex;
    gap: 20px;
    align-items: center;
}

.annonce-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.annonce-spec svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gold);
}

.annonce-prix {
    margin: 0;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CARTE (Leaflet)
   ══════════════════════════════════════════════════════════════════════════════ */

#mapLayout {
    display: flex;
    height: calc(80vh - 24px);
    margin-bottom: 24px;
}

#mapList {
    width: 460px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #e8e8e8;
    height: 100%;
    padding: 0 4rem;
    background: var(--white);
}

#mapContainer {
    flex: 1;
    height: calc(80vh - 24px);
}

.mapCard {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ede9e3;
    transition: background .15s;
    position: relative;
}

.mapCard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background .15s;
    z-index: 1;
}

.mapCard:hover,
.mapCard.highlighted {
    background: #faf8f5;
}

.mapCard-photo {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #ede9e3;
    flex-shrink: 0;
}

.mapCard-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.mapCard:hover .mapCard-photo img {
    transform: scale(1.04);
}

.mapCard-etiquette {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--darkBlue);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 2;
}

.mapCard-etiquette--sold {
    background: var(--primaryColor);
}

.mapCard-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mapCard-prix {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--darkBlue);
}

.mapCard-titre {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.mapCard-specs {
    margin: 2px 0 0;
    font-size: 1.3rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mapCard-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mapCard-spec svg {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

.mapCard-lieu {
    margin: 0;
    font-size: 1.2rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mapCard-lieu svg {
    width: 10px;
    height: 10px;
    color: var(--gold);
}

.mapCard-trans {
    font-size: 1.1rem;
    color: #bbb;
    font-style: italic;
}

.mapCard-nogeo {
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
}

.btn-liste-flottant {
    display: none;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--darkBlue);
    color: var(--white);
    text-decoration: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

/* Marqueurs */
.price-marker {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--white);
    color: var(--darkBlue);
    border: 1.5px solid var(--darkBlue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.price-marker.active {
    background: var(--darkBlue);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

/* Popup */
.price-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    border: none;
}

.price-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
    height: 260px !important;
    padding: 1rem;
}

.price-popup .leaflet-popup-close-button {
    top: 14px !important;
    right: 14px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, .92) !important;
    border-radius: 50% !important;
    color: #333 !important;
    font-size: 16px !important;
    line-height: 28px !important;
    text-align: center;
    padding: 0 !important;
}

.popup-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity .15s;
}

.popup-card:hover {
    opacity: .93;
}

.popup-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.popup-no-img {
    background: #ede9e3;
    height: 160px;
}

.popup-info {
    padding: 12px 14px 14px;
    background: var(--white);
}

.popup-type {
    margin: 0 0 2px !important;
    font-size: 1.3rem;
    font-weight: 600;
}

.popup-ville {
    margin: 0 0 8px !important;
    font-size: 1.2rem;
    color: #999;
}

.popup-prix {
    margin: 0 !important;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--darkBlue);
}

/* ══════════════════════════════════════════════════════════════════════════════
   FICHE BIEN
   ══════════════════════════════════════════════════════════════════════════════ */

/* Fil d'ariane */
#breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

#breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #888;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

#breadcrumb li::after {
    content: '›';
    color: #ccc;
    font-size: 14px;
}

#breadcrumb li:last-child::after {
    content: none;
}

#breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color .15s;
}

#breadcrumb a:hover {
    color: var(--darkBlue);
}

#breadcrumb li[aria-current="page"] {
    color: var(--darkBlue);
    font-weight: 600;
}

.breadcrumbBack {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.breadcrumbBack:hover {
    border-color: var(--darkBlue);
    background: #f5f5f5;
}

.backArrow {
    display: block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Bandeau photos */
#photoBandeau {
    max-width: 1500px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

#photoGrid {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 600px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.photoMain {
    grid-column: 1;
    grid-row: 1 / 3;
}

.photoSec1 {
    grid-column: 2;
    grid-row: 1;
}

.photoSec2 {
    grid-column: 3;
    grid-row: 1;
}

.photoSec3 {
    grid-column: 2;
    grid-row: 2;
}

.photoSec4 {
    grid-column: 3;
    grid-row: 2;
}

.photoCell {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
}

.photoCell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

.photoCell:hover img {
    transform: scale(1.04);
}

.photoWatermark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%;
    background: linear-gradient(to top, rgba(0, 0, 0, .35) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 10px 14px;
    pointer-events: none;
}

.photoWatermark span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.photoStatut {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: var(--darkBlue);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
}

#photoShowAll {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    background: rgba(255, 255, 255, .92);
    color: var(--darkBlue);
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
    border-radius: 3px;
    transition: background .15s;
}

#photoShowAll:hover {
    background: var(--white);
}

#photoBandeauAgence {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
}

#bandeauAgenceImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Corps fiche */
#cardTitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

#ficheSection1 {
    padding: 40px 24px 0;
    max-width: 1200px;
    margin: 0 auto;
}

#ficheBody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Onglets */
#ficheTabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
}

.ficheTab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.ficheTab:hover {
    color: var(--darkBlue);
}

.ficheTab.active {
    color: var(--darkBlue);
    border-bottom-color: var(--darkBlue);
}

.ficheTabContent {
    display: none;
}

.ficheTabContent.active {
    display: block;
}

/* Lignes caractéristiques */
.ficheRow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ficheRow:last-child {
    border-bottom: none;
}

.ficheRow span:last-child {
    margin-left: auto;
    font-weight: 600;
    color: var(--darkBlue);
    white-space: nowrap;
}

.ficheRow--bold {
    font-weight: 600;
    color: var(--darkBlue);
}

.ficheRow--sub {
    padding-left: 24px;
    color: var(--muted);
}

.ficheSubNote {
    font-size: 11px;
    color: #aaa;
}

/* Icônes fiche */
.ficheIcon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .6;
}

.ficheIcon--surf {
    background-image: url('/assets/images/icons/surf.svg');
}

.ficheIcon--door {
    background-image: url('/assets/images/icons/door.svg');
}

.ficheIcon--bed {
    background-image: url('/assets/images/icons/bed.svg');
}

.ficheIcon--balcony {
    background-image: url('/assets/images/icons/balcony.svg');
}

.ficheIcon--terrace {
    background-image: url('/assets/images/icons/terrace.svg');
}

.ficheIcon--kitchen {
    background-image: url('/assets/images/icons/kitchen.svg');
}

.ficheIcon--sdb {
    background-image: url('/assets/images/icons/sdb.svg');
}

.ficheIcon--sde {
    background-image: url('/assets/images/icons/sde.svg');
}

.ficheIcon--wc {
    background-image: url('/assets/images/icons/wc.svg');
}

.ficheIcon--parking {
    background-image: url('/assets/images/icons/parking.svg');
}

.ficheIcon--box {
    background-image: url('/assets/images/icons/box.svg');
}

.ficheIcon--pool {
    background-image: url('/assets/images/icons/pool.svg');
}

.ficheIcon--elevator {
    background-image: url('/assets/images/icons/elevator.svg');
}

.ficheIcon--stairs {
    background-image: url('/assets/images/icons/stairs.svg');
}

.ficheIcon--furniture {
    background-image: url('/assets/images/icons/furniture.svg');
}

.ficheIcon--heating {
    background-image: url('/assets/images/icons/heating.svg');
}

.ficheIcon--room {
    background-image: url('/assets/images/icons/room.svg');
}

/* Carte localiser */
#tabLocaliser #cardmap {
    width: 100%;
    height: 360px;
    border-radius: 4px;
    overflow: hidden;
}

/* Colonne droite fiche */
.ficheRightTitle {
    font-weight: 600;
    margin: 0 0 16px;
}

#ficheDesc {
    margin-bottom: 20px;
    text-align: justify;
}

.ficheDispo {
    font-weight: 600;
    margin-bottom: 16px;
}

.ficheGeorisques {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ficheGeorisques a {
    color: #888;
}

/* Prix */
#fichePrix {
    background: #f9f8f6;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px 24px;
}

.fichePrixRow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.fichePrixRow:last-child {
    border-bottom: none;
}

.fichePrixRow strong {
    font-size: 15px;
    color: var(--darkBlue);
    white-space: nowrap;
}

.fichePrixNote {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Section 2 : DPE + Copropriété */
#ficheSection2 {
    padding: 40px 24px 48px;
    max-width: 1200px;
    margin: 40px auto 0;
    border-top: 1px solid #eee;
}

#ficheBody2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ficheSection2Title {
    font-weight: 600;
    margin: 0 0 20px;
}

/* DPE — aperçu */
.ficheDpeRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ficheDpePreview {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.ficheDpeLetter {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-radius: 6px;
    text-align: center;
}

.ficheDpeLabel {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 8px;
}

.ficheDpeVal {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.ficheDpeNum {
    font-size: 10px;
    margin-top: 6px;
    opacity: .8;
}

.ficheDpeLetter--A {
    background: #00b050;
    color: var(--white);
}

.ficheDpeLetter--B {
    background: #92d050;
    color: var(--white);
}

.ficheDpeLetter--C {
    background: #ffff00;
    color: #333;
}

.ficheDpeLetter--D {
    background: #ffc000;
    color: var(--white);
}

.ficheDpeLetter--E {
    background: #ff8000;
    color: var(--white);
}

.ficheDpeLetter--F {
    background: #ff0000;
    color: var(--white);
}

.ficheDpeLetter--G {
    background: #c00000;
    color: var(--white);
}

.ficheDpeDetail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 7px 16px;
    background: none;
    border: 1.5px solid var(--darkBlue);
    color: var(--darkBlue);
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    border-radius: 3px;
    transition: background .15s, color .15s;
}

.ficheDpeDetail:hover {
    background: var(--darkBlue);
    color: var(--white);
}

.ficheDpeNote {
    color: var(--muted);
    margin: 8px 0 0;
}

/* DPE — diagramme barres */
.dpeSubTitle {
    font-weight: 600;
    color: #333;
    margin: 16px 0 8px;
}

.dpeBar {
    display: flex;
    gap: 4px;
}

.dpeBarItem {
    flex: 1;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    border-radius: 4px;
    opacity: .45;
    transition: opacity .2s, transform .2s;
}

.dpeBarItem--active {
    opacity: 1;
    transform: scaleY(1.15);
}

.dpeBarPointer {
    display: flex;
    gap: 4px;
    min-height: 40px;
    align-items: flex-start;
    margin-top: 2px;
}

.dpeBarCell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dpeArrow {
    color: #333;
    line-height: 1;
}

.dpeVal {
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.dpeUnit {
    color: #999;
    font-size: 10px;
}

/* DPE — panneau détaillé */
.dpePanelTitle {
    font-weight: 600;
    color: var(--darkBlue);
    margin: 16px 0 4px;
}

.dpePanelSub {
    font-size: 11px;
    color: #999;
    margin: 0 0 8px;
    font-style: italic;
}

.dpePanelNote {
    color: var(--muted);
    margin-top: 8px;
}

.dpePanelIntro {
    font-size: 13px;
    font-weight: 600;
    color: var(--darkBlue);
    margin: 20px 0 12px;
}

.dpeScale {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.dpeScaleRow {
    display: flex;
    align-items: center;
}

.dpeScaleBar {
    height: 32px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 700;
    white-space: nowrap;
    max-width: 250px;
    transition: height .15s;
}

.dpeScaleBar--active {
    height: 38px;
    opacity: 1;
    position: relative;
    overflow: visible;
}

.dpeScaleBar--active::after {
    content: '';
    position: absolute;
    right: calc(-1 * var(--trait-width, 0px));
    top: 50%;
    transform: translateY(-50%);
    width: var(--trait-width, 0px);
    height: 2px;
    background: var(--dpe-color, #999);
    z-index: 1;
}

.dpeScaleTag {
    font-size: 10px;
    font-weight: 400;
    margin-left: 8px;
    opacity: .9;
}

.dpeScaleDetail {
    position: absolute;
    right: 1rem;
    width: 220px;
    display: flex;
    flex-direction: column;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    gap: 3px;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    z-index: 10;
}

.dpeScaleDetail strong {
    color: var(--darkBlue);
}

/* Copropriété */
.ficheCoproRow {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ficheCoproRow:last-child {
    border-bottom: none;
}

.ficheCoproRow--split {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ficheCoproRow--split span:last-child {
    font-weight: 600;
    color: var(--darkBlue);
}

.ficheCoproRow--alert {
    color: #c0392b;
    font-weight: 600;
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#lbMain {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 48px 80px 16px;
    box-sizing: border-box;
    overflow: hidden;
}

#lbImg {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
}

#lbCounter {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    letter-spacing: .06em;
}

#lbClose,
#lbPrev,
#lbNext {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: opacity .15s;
    z-index: 10;
    line-height: 1;
}

#lbClose:hover,
#lbPrev:hover,
#lbNext:hover {
    opacity: .6;
}

#lbClose {
    top: 16px;
    right: 20px;
    font-size: 24px;
}

#lbPrev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    padding: 0 16px;
}

#lbNext {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    padding: 0 16px;
}

#lbThumbs {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
    flex-shrink: 0;
    width: 100%;
}

.lbThumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    overflow: hidden;
    cursor: pointer;
    opacity: .45;
    transition: opacity .2s;
    border: 2px solid transparent;
    border-radius: 2px;
}

.lbThumb:hover {
    opacity: .75;
}

.lbThumb.active {
    opacity: 1;
    border-color: var(--white);
}

.lbThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bouton contact */
.btnContact {
    margin: auto;
    padding: 12px 28px;
    background: var(--darkBlue);
    color: var(--white);
    border: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: opacity .15s;
    white-space: nowrap;
}

.btnContact:hover {
    opacity: .85;
}

#contactPanelRef {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.btnContactSticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 16px;
    background: var(--darkBlue);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Alerte */
#alerteSection {
    padding: 2rem;
    background: url("../images/pages/alert.jpg") no-repeat center center;
    background-size: cover;
}

#alerteWrap {
    width: 500px;
    height: 600px;
    margin: auto;
    padding: 2rem;
    border-radius: 6px;
    background: var(--white);
}

/* ══════════════════════════════════════════════════════════════════════════════
   AGENCES
   ══════════════════════════════════════════════════════════════════════════════ */

#agences {
    padding: 0 3% 5% 3%;
}

#agences>div {
    width: 45%;
    padding: 0 3% 2% 3%;
    border-radius: 6px;
}

.agenceView {
    padding-top: 10px;
}

#agMars {
    background: #faf9f6 url(../images/main/agence-intesa-marseille.jpg) no-repeat center center;
    background-size: cover;
}

#agCiot {
    background: #faf9f6 url(../images/main/agence-intesa-ciotat.jpg) no-repeat center center;
    background-size: cover;
}

#agAub {
    background: #faf9f6 url(../images/main/agence-intesa-aubagne1.jpg) no-repeat center center;
    background-size: cover;
}

#horaires {
    margin-top: 5rem;
}

#photoAgence {
    margin-top: 4rem;
}

.coordAg {
    padding: 1rem 0 2rem 0;
}

#phoneAg,
.mailAg {
    padding-left: 40px;
}

.mailAg {
    background: url(../images/icons/mail.svg) no-repeat left center;
    background-size: 28px auto;
}

#mailAg {
    margin-left: 6rem;
}

#phoneAg {
    background: url(../images/icons/telephone.svg) no-repeat left center;
    background-size: 28px auto;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RECRUTEMENT
   ══════════════════════════════════════════════════════════════════════════════ */

.form {
    max-width: 720px;
    min-width: 300px;
    margin: 5rem auto;
    padding: 4rem 5rem 6rem 4rem;
    line-height: 24px;
    border-radius: 4px;
}

.form input,
.form textarea {
    width: 100%;
    background: transparent;
}

.form input {
    height: 35px;
    line-height: 35px;
    margin-bottom: 12px;
    border-style: none none dotted none;
    border-color: rgb(189, 184, 184);
}

.form textarea {
    min-height: 200px;
    line-height: 26px;
    padding: 1rem;
}

.form input[type="submit"] {
    background: var(--grey2);
    color: #fff;
}

.custom-file-upload {
    margin: 4rem 0 3rem 0;
}

.custom-file-upload input[type="file"] {
    display: none;
}

.custom-file-upload label {
    padding: 8px 12px 8px 42px;
    color: #fff;
    background: var(--blue) url("../images/icons/attachment-w.svg") no-repeat 6px center;
    background-size: 28px auto;
    border-radius: 4px;
    cursor: pointer;
}

.uploaded {
    padding: 0 0 6px 32px;
    font-size: 1.8rem;
    background: url("../images/icons/uploaded.svg") no-repeat left center;
    background-size: 24px auto;
}

#fileList {
    margin-bottom: 60px;
}

#fileList li {
    height: 38px;
    line-height: 38px;
    margin-bottom: 10px;
    font-size: 1.6rem;
    background: linear-gradient(to right, #fff 36px, var(--grey7) 36px);
}

.warning {
    color: rgb(223, 71, 11);
}

.delete-btn {
    width: 24px;
    height: 24px;
    position: relative;
    top: 2px;
    margin-right: 26px;
    background: #fff url("../images/icons/trash.svg") no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
}

.success {
    padding-left: 36px;
    background: url(../images/icons/checked.svg) no-repeat left center;
    background-size: 24px 24px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   EXTRANET / ESPACE CLIENT
   ══════════════════════════════════════════════════════════════════════════════ */

#extraback {
    height: calc(100vh - 120px);
    padding-left: 34vw;
    color: var(--lightFont);
    background: var(--backExtra);
    background-position: right 70vw top;
    background-size: cover;
}

#extranet {
    width: 500px;
}

#extranet h1 {
    font-weight: 600 !important;
}

#firstCo {
    margin: 20px auto 10px auto;
    padding: 30px 0;
    border-width: 1px 0 1px 0;
    border-style: dotted;
    border-color: #66718d;
}

#extraform {
    width: 400px;
    margin: 20px auto;
    padding: 50px;
    border-radius: 8px;
}

#extraform input[type="text"],
#extraform input[type="password"] {
    width: 100%;
    height: 40px;
    margin-bottom: 24px;
    padding-left: 8px;
    font-size: 2rem;
    background: transparent;
    border-bottom: 1px dotted #66718d;
}

.log:before,
.pwd:before {
    position: absolute;
    width: 26px;
    height: 26px;
    left: -46px;
}

.log:before {
    content: url("../images/icons/username.svg");
    top: 10px;
}

.pwd:before {
    content: url("../images/icons/padlock.svg");
    top: 8px;
}

#connect {
    font-size: 2rem;
    border: none !important;
}

#projects {
    padding: 50px 5% 0 5%;
}

#projects>h3 {
    padding: 50px 0 20px 0;
}

#projvente {
    background: url(../images/main/gest-18.jpg) no-repeat left center;
    background-size: cover;
}

#projloc {
    background: url(../images/main/gest-17.jpg) no-repeat left center;
    background-size: cover;
}

#projects>div {
    width: 45%;
}

.projects>div:last-child {
    width: 50%;
}

.projects>div>div {
    width: 450px;
}

.projects li {
    padding: 0 0 8px 30px;
}

.contacts {
    height: 40px;
    line-height: 40px;
    padding: 0 20px 0 60px;
    background: #1c5b80 url(../images/icons/contact.svg) no-repeat 5px center;
    background-size: 42px 100%;
    border-radius: 3px;
}

.proContacts {
    margin-top: 4rem;
    padding: 2rem 4rem;
    color: #fff !important;
}

.proContacts h2 {
    font-size: 4rem;
}

.proContacts p {
    font-size: 3rem;
    font-weight: 300;
}

.proContacts>div {
    margin: 4rem 0;
}

#logilink {
    padding-right: 60px;
    background: url("../images/icons/logilink.svg") no-repeat right center;
    background-size: 50px;
}

/* ── Loader animation ────────────────────────────────────────────────────── */

.loader {
    box-sizing: border-box;
    display: inline-block;
    width: 50px;
    height: 80px;
    border-top: 5px solid #fff;
    border-bottom: 5px solid #fff;
    position: relative;
    background: linear-gradient(#ff3d00 30px, transparent 0) no-repeat;
    background-size: 2px 40px;
    background-position: 50% 0px;
    animation: spinx 5s linear infinite;
}

.loader:before,
.loader:after {
    content: "";
    width: 40px;
    left: 50%;
    height: 35px;
    position: absolute;
    top: 0;
    transform: translatex(-50%);
    background: rgba(255, 255, 255, .4);
    border-radius: 0 0 20px 20px;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: 0 0px;
    animation: lqt 5s linear infinite;
}

.loader:after {
    top: auto;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    animation: lqb 5s linear infinite;
}

/* ================================================================
   BANDEAU COOKIES RGPD
   ================================================================ */

#cookieBanner {
    display: none;
    /* affiché par JS si pas de choix mémorisé */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--darkBlue);
    color: var(--white);
    padding: 16px 32px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .2);
}

#cookieText {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

#cookieText a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#cookieActions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

#cookieRefuse,
#cookieAccept {
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity .15s;
}

#cookieRefuse {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .5);
    color: var(--white);
}

#cookieAccept {
    background: var(--white);
    border: 1.5px solid var(--white);
    color: var(--darkBlue);
}

#cookieRefuse:hover,
#cookieAccept:hover {
    opacity: .8;
}

@media (max-width: 600px) {
    #cookieBanner {
        padding: 16px 20px;
    }

    #cookieActions {
        width: 100%;
        justify-content: flex-end;
    }
}

@keyframes lqt {

    0%,
    100% {
        background-image: linear-gradient(#ff3d00 40px, transparent 0);
        background-position: 0% 0px;
    }

    50% {
        background-position: 0% 40px;
    }

    50.1% {
        background-position: 0% -40px;
    }
}

@keyframes lqb {
    0% {
        background-image: linear-gradient(#ff3d00 40px, transparent 0);
        background-position: 0 40px;
    }

    100% {
        background-position: 0 -40px;
    }
}

@keyframes spinx {

    0%,
    49% {
        transform: rotate(0deg);
        background-position: 50% 36px;
    }

    51%,
    98% {
        transform: rotate(180deg);
        background-position: 50% 4px;
    }

    100% {
        transform: rotate(360deg);
        background-position: 50% 36px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Nouveau header : responsive ─────────────────────────────────────────── */
@media screen and (max-width: 1200px) {
    #mainNav {
        display: none;
    }

    #hamburger {
        display: flex;
    }

    #monEspace span {
        display: none;
    }

    #monEspace svg {
        width: 26px;
        height: 26px;
    }
}

/* ── Grille annonces mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    #gridAnnonces {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #annoncesSection {
        padding: 20px 16px;
    }

    #breadcrumb {
        padding: 10px 16px;
    }

    #lbMain {
        padding: 48px 48px 0;
    }

    #lbPrev,
    #lbNext {
        font-size: 36px;
        padding: 0 8px;
    }

    .lbThumb {
        width: 54px;
        height: 40px;
    }

    .btnContact {
        display: none;
    }

    .btnContactSticky {
        display: block;
    }

    .sidePanel {
        width: 100%;
    }
}

/* ── Carte : liste cachée en dessous de 1260px ───────────────────────────── */
@media (max-width: 1260px) {
    #mapList {
        display: none;
    }

    #mapContainer {
        width: 100%;
        flex: 1;
    }

    .btn-liste-flottant {
        display: block;
    }
}

/* ── Photos fiche ────────────────────────────────────────────────────────── */
@media (max-width: 1536px) {
    #photoGrid {
        grid-template-columns: 3fr 1fr;
    }

    .photoSec3,
    .photoSec4 {
        display: none;
    }
}

@media (max-width: 1200px) {
    #photoBandeau {
        padding: 0;
    }

    #photoGrid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        height: auto;
        aspect-ratio: 3/2;
        border-radius: 0;
    }

    .photoSec1,
    .photoSec2,
    .photoSec3,
    .photoSec4 {
        display: none;
    }

    .photoMain {
        grid-row: 1;
    }
}

/* ── Fiche bien : 1 colonne sous 900px ───────────────────────────────────── */
@media (max-width: 900px) {

    #ficheBody,
    #ficheBody2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #ficheSection2 {
        border-top: none;
    }
}

/* ── Breakpoints globaux ─────────────────────────────────────────────────── */
@media screen and (orientation: landscape) {
    #clip-marseille {
        height: calc((9 / 16) * 100vw - 300px);
    }
}

@media screen and (orientation: landscape) and (aspect-ratio: 16/10) {
    #clip-marseille {
        height: calc((10 / 16) * 100vw - 220px);
    }
}

@media screen and (orientation: portrait) {
    div.agences {
        height: auto;
    }

    div.agences img {
        width: auto;
        height: calc(100vw / 2);
    }

    #clip-marseille {
        height: calc((9 / 16) * 100vw - 100px);
    }

    .immobilier-marseille {
        top: calc(100vw / 21.6 * -1);
    }

    #servGest {
        padding: 30px 0;
    }

    #photoAgence {
        margin: 2rem 0;
    }
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    .immobilier-marseille {
        top: calc(100vw / 20.8 * -1);
    }
}

@media screen and (orientation: portrait) and (max-width: 600px) {
    .immobilier-marseille {
        top: calc(100vw / 21.4 * -1);
    }

    #clip-marseille {
        height: calc((9 / 16) * 100vw - 70px);
    }
}

@media screen and (max-width: 1600px) {
    .topContent.grid {
        width: 90%;
    }
}

@media screen and (max-width: 1440px) {
    .topContent.grid {
        grid-template-columns: 500px auto;
        margin: 5rem auto 0;
    }

    .tagline,
    .shadow {
        width: 500px !important;
    }

    .tagline {
        font-size: 5rem;
        line-height: 8rem;
    }
}

@media screen and (max-width: 1366px) {
    .tagline {
        padding: 0 3%;
    }
}

@media screen and (max-width: 1280px) {
    .topContent {
        flex-direction: column;
        align-items: center;
        margin: auto;
    }

    .topContent.grid {
        grid-template-columns: repeat(1, 1fr);
        margin: 5rem auto 0;
        padding-bottom: 0;
    }

    .tagline,
    .shadow {
        width: 90% !important;
        margin: auto;
        padding: 5%;
    }

    #homeServ h2 {
        font-size: 2.2rem;
    }

    div.text {
        margin-top: 50px;
    }

    #agences {
        flex-direction: column;
        align-items: center;
    }

    #agences>div {
        width: 700px;
    }

    #photoAgence {
        margin-right: 0;
    }
}

@media screen and (max-width: 1200px) {
    #mainTitle {
        font-size: 6rem;
        line-height: 9rem;
    }
}

@media screen and (max-width: 1080px) {
    .grid2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid2>div {
        width: 100%;
    }

    #servGest h2 {
        font-size: 3.5rem;
    }

    #mandatRight {
        display: none;
    }

    #mandatLeft {
        height: 80vw;
    }

    #contactForm {
        width: 75%;
        min-width: 500px;
    }
}

@media screen and (max-width: 900px),
(orientation: portrait) {
    #services {
        margin-top: 0 !important;
        padding-bottom: 0;
    }

    .topServices {
        align-items: stretch;
        flex-direction: column;
        height: calc(100vw / 1.6);
    }

    #homeServ {
        grid-template-columns: repeat(1, 1fr);
        gap: 100px 30px;
        margin: auto;
    }

    #homeServ>a {
        height: calc(100vw / 2);
    }

    #homeServ>a:nth-child(1) {
        order: 1;
    }

    #homeServ>a:nth-child(3) {
        order: 2;
    }

    #sign {
        text-align: center;
    }

    #mandatHeadline,
    #transacHeadline,
    #contratHeadline {
        max-width: 90%;
        font-size: 3rem;
        line-height: 4rem;
    }

    #homeVid {
        display: none;
    }

    #homePic {
        display: block;
    }
}

@media screen and (max-width: 900px) {
    .topServices>div:first-child {
        width: 100%;
    }

    #footContent {
        max-width: 95%;
    }

    .tagline {
        width: 90% !important;
        margin-left: 5%;
    }

    #intesaTagline {
        font-size: 2rem !important;
        line-height: 3.5rem;
    }

    .shadow {
        width: 90% !important;
        left: 2.5%;
    }

    #extraback {
        padding-left: 0;
        background: #fbfbfb;
    }

    #extranet {
        width: 96%;
        margin: auto;
    }
}

@media screen and (max-width: 768px) {
    #mainTitle {
        font-size: 4rem;
        line-height: 7rem;
    }

    .tagline {
        font-size: 3rem;
        line-height: 5rem;
    }

    #agences>div {
        width: 90%;
    }

    .coordAg {
        flex-direction: column;
    }

    .coordAg>p {
        width: 200px;
        padding-left: 50px !important;
    }

    #mailAg {
        margin: 2rem 0 30px 0;
        background-position: 4px center !important;
    }

    .form {
        max-width: 96%;
    }

    #transacHeadline {
        font-size: 3rem;
    }
}

@media screen and (max-width: 680px) {
    #footerLogo {
        width: 130px;
        aspect-ratio: 1 / 0.7;
        height: auto;
    }

    /* Sur mobile, les liens restent visibles (mentions légales obligatoires) */
    #footContent a {
        font-size: 1.3rem;
    }

    /* En colonne, sans séparateur : évite une ligne orpheline commençant par un point */
    #footLinks {
        flex-direction: column;
        gap: 12px;
    }

    #footLinks a + a::before {
        display: none;
    }

    .slogan {
        font-size: 4rem;
        line-height: 7.5rem;
    }

    .modalForm {
        width: 100%;
    }

    #formContact {
        padding: 60px 5% !important;
    }

    .triangle-tl,
    .triangle-tr,
    .triangle-br,
    .triangle-bl {
        display: none;
    }

    #mandatHeadline,
    #transacHeadline,
    #contratHeadline {
        max-width: 90%;
        font-size: 2.5rem;
        line-height: 4rem;
    }
}

@media screen and (max-width: 600px) {
    .tagline {
        padding: 8% 5%;
        font-size: 2.5rem;
        line-height: 4rem;
    }
}

@media screen and (max-width: 500px) {
    .h1 {
        font-size: 2.2rem;
        font-weight: 600;
    }

    h2 {
        font-size: 2rem;
        font-weight: 600;
    }

    section.largePad {
        padding: 40px 0;
    }

    #clip-marseille {
        height: calc((9 / 16) * 100vw - 40px);
    }

    .form {
        margin-top: 2rem;
        padding: 4rem 2rem 6rem 2rem;
    }

    #contactForm {
        width: 100%;
        min-width: unset;
        padding: 8vh 2vw 6vh 2vw;
    }

    .topContent.grid {
        width: 96%;
    }

    #topRecrut>div:first-child {
        height: 100%;
        padding: 36px 20px 50px 20px;
    }

    .slogan {
        font-size: 3rem;
        line-height: 5rem;
    }

    #transacHeadline {
        width: 94%;
        font-size: 2.5rem;
    }

    #extraform {
        width: 96%;
        margin-top: 0;
    }
}

@media screen and (max-width: 420px) {

    body,
    .ulAdv {
        font-size: 1.8rem;
    }

    #transButtons {
        flex-direction: column;
    }
}

@media screen and (max-width: 380px) {
    #firstCo {
        font-size: 2.2rem;
    }
}