@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'Montserrat Alternates', sans-serif !important;
    padding: 0;
    height: 100%;
}

/* ── HEADER ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent;
    z-index: 9999;
    transition: background 0.3s;
}

.btn-hero-primary,
.btn-hero-outline {
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}
.header.scrolled {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.logo { display: flex; flex-direction: column; }
.nom  { font-size: 18px; color: white; }
.metier { font-size: 20px; font-weight: 700; color: white; }

/* NAV DESKTOP */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-desktop a,
.nav-desktop button {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-family: 'Montserrat Alternates', sans-serif;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-desktop a:hover,
.nav-desktop button:hover { opacity: 0.7; }

/* BURGER */
.burger-btn { display: none; }

/* MENU PLEIN ÉCRAN */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #22333B;
    z-index: 10000;
    overflow: hidden;
    transition: height 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-menu.open { height: 100vh; }

.fullscreen-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s 0.2s, transform 0.3s 0.2s;
}

.fullscreen-menu.open .fullscreen-nav {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-nav a,
.fullscreen-nav button {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 32px;
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 700;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s, transform 0.2s;
}

.fullscreen-nav a:hover,
.fullscreen-nav button:hover {
    color: #c9a98d;
    transform: translateX(8px);
}

/* ── FOOTER ── */
.footer {
    background-color: #22333B;
    color: white;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.footer a { margin: 10px; color: white; text-decoration: none; font-size: 14px; }
.footer a:hover { text-decoration: underline; }

/* ── HERO ── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 60px;
    box-sizing: border-box;
}

.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-content { position: relative; z-index: 3; margin: 0; }

.hero h1, .hero-content h1 {
    position: relative;
    z-index: 3;
    color: white;
    font-size: 52px;
    font-weight: 700;
    max-width: 800px;
    margin: 0;
    line-height: 1.2;
}

.hero-sub {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 0;
}

.hero-btns { display: flex; gap: 12px; margin-top: 20px; }

.btn-hero-primary {
    padding: 12px 28px;
    background: white;
    color: #22333B;
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-hero-primary:hover { opacity: 0.85; color: #22333B; }

.btn-hero-outline {
    padding: 12px 28px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.6);
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.btn-hero-outline:hover { border-color: white; color: white; }

/* ── BANNIÈRE ANNONCES ── */
.banniere-annonces img { width: 100%; height: 500px; object-fit: cover; }
.titre-banniere { font-size: 50px; font-weight: 700; }

/* ── MAG LABEL ── */
.mag-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    display: block;
}
.mag-label.light { color: rgba(255,255,255,0.7); }
.mag-label.dark  { color: #5f7f6f; }

/* ── PARCOURS ── */
.mag-parcours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    border-bottom: 2px solid black;
}

.mag-parcours-text {
    background: #5f7f6f;
    color: white;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 2px solid black;
    box-sizing: border-box;
}

.mag-parcours-text h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    color: white;
}

.mag-parcours-text p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.mag-parcours-img {
    overflow: hidden;
}

.mag-parcours-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── APPROCHE ── */
.mag-approche {
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 560px;
    border-bottom: 2px solid black;
}

.mag-approche-img {
    position: relative;
    overflow: hidden;
    border-right: 2px solid black;
}

.mag-approche-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mag-approche-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(34,51,59,0.9));
    padding: 48px 40px 36px;
}

.mag-approche-overlay h2 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0 0;
}

.mag-approche-text {
    background: #c9a98d;
    padding: 56px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.mag-approche-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #3d2a1a;
    margin-bottom: 16px;
}

.btn-mag {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    background: #22333B;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat Alternates', sans-serif;
    transition: opacity 0.2s;
    align-self: flex-start;
}
.btn-mag:hover { opacity: 0.82; color: white; }

/* ── ANNONCES ── */
.annonces {
    padding: 40px;
    background: #eee;
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-track-outer { overflow: hidden; width: 100%; }

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

.carousel-track .bien-card {
    min-width: calc((100% - 48px) / 3);
    background: white;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid #111;
    flex-shrink: 0;
    text-align: center;
}

.carousel-track .bien-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-track .bien-card .card-body { padding: 16px; }

.bien-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.carousel-track .bien-card h2 {
    font-size: 15px;
    margin: 0 0 6px;
    color: #22333B;
}

.bien-prix { font-size: 14px; margin: 4px 0; }
.bien-ville { font-size: 13px; color: #777; margin: 2px 0; }

.badge-custom {
    background-color: #5b6f5b;
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
}

.carousel-btn {
    background: none;
    color: #2c3e50;
    border: none;
    font-size: 40px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 8px;
    line-height: 1;
    transition: opacity 0.2s;
    font-family: 'Montserrat Alternates', sans-serif;
}
.carousel-btn:hover { opacity: 0.5; }
.carousel-btn:disabled { opacity: 0.2; cursor: default; }

.btn-annonces {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 20px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* ── ENGAGEMENTS ── */
.mag-engagements {
    background: #f5f3ef;
    padding: 64px 40px;
    border-bottom: 2px solid black;
}

.mag-eng-header { text-align: center; margin-bottom: 48px; }

.mag-eng-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #22333B;
    margin: 8px 0 0;
}

.mag-eng-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 2px solid black;
}

.mag-eng-card {
    display: flex;
    flex-direction: column;
    border-right: 2px solid black;
    background: white;
}
.mag-eng-card:last-child { border-right: none; }

.mag-eng-img {
    height: 220px;
    overflow: hidden;
    border-bottom: 2px solid black;
}

.mag-eng-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.mag-eng-card:hover .mag-eng-img img { transform: scale(1.04); }

.mag-eng-body { padding: 28px 24px; flex: 1; }

.mag-eng-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #22333B;
    margin: 0 0 12px;
}

.mag-eng-body p { font-size: 13px; line-height: 1.7; color: #555; margin: 0; }

/* ── BANDEAU CTA ── */
.mag-cta { background: #22333B; padding: 80px 40px; text-align: center; }
.mag-cta-inner { max-width: 600px; margin: 0 auto; }
.mag-cta h2 { color: white; font-size: 32px; font-weight: 700; margin: 0 0 16px; }
.mag-cta p  { color: rgba(255,255,255,0.65); font-size: 15px; margin-bottom: 32px; }
.mag-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mag-cta .btn-hero-outline { border-color: rgba(255,255,255,0.5); }

/* ── DIVERS ── */
.filtre-select { width: 180px; padding: 4px 8px; font-size: 14px; }
.banniere img { width: 100%; height: 500px; object-fit: cover; }
.titre-banniere { font-size: 50px; font-weight: 700; }
.tag { background: #5b6f5b; color: white; padding: 3px 8px; border-radius: 3px; font-size: 12px; margin-right: 5px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .banniere-annonces img {
        height: 180px;
    }

    .titre-banniere {
        font-size: 28px !important;
    }
    .carousel-track {
        gap: 16px;
    }

    .carousel-track .bien-card-link,
    .carousel-track > a {
        min-width: calc(100% - 32px);
        flex-shrink: 0;
    }

    .burger-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 10002;
    }

    .burger-btn span {
        display: block;
        width: 28px;
        height: 2px;
        background: white;
        transition: transform 0.3s, opacity 0.3s;
        transform-origin: center;
    }

    .burger-btn.open #b1 { transform: translateY(8px) rotate(45deg); }
    .burger-btn.open #b2 { opacity: 0; }
    .burger-btn.open #b3 { transform: translateY(-8px) rotate(-45deg); }

    .header { padding: 16px 20px; }
    .hero { padding: 30px; }
    .hero h1, .hero-content h1 { font-size: 30px; }

    .mag-parcours { grid-template-columns: 1fr; }
    .mag-parcours-text { padding: 40px 28px; }
    .mag-parcours-text h2 { font-size: 26px; }
    .mag-parcours-img { height: 280px; }

    .mag-approche { grid-template-columns: 1fr; }
    .mag-approche-img { height: 300px; }
    .mag-approche-text { padding: 36px 28px; }

    .carousel-track .bien-card { min-width: calc(100% - 24px); }

    .mag-eng-grid { grid-template-columns: 1fr; }
    .mag-eng-card { border-right: none; border-bottom: 2px solid black; }
    .mag-eng-card:last-child { border-bottom: none; }

    .mag-cta { padding: 48px 24px; }
    .mag-cta h2 { font-size: 24px; }

    .annonces { padding: 28px 16px; }
}

/* ── ANNONCES ACCUEIL — grille 3 colonnes centrée ── */
.accueil-biens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 24px auto 0;
    padding: 0 40px;
}

.bien-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bien-card-link .bien-card {
    background: white;
    border: 2px solid #111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
    height: 100%;
}
.carousel-track .bien-card-link,
.carousel-track > a {
    min-width: calc((100% - 48px) / 3);
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.bien-card-link .bien-card:hover {
    border-color: #5f7f6f;
    transform: translateY(-3px);
}

.bien-card-link .bien-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.bien-card-link .bien-card .card-body {
    padding: 16px;
    text-align: center;
    flex: 1;
}

.bien-card-link .bien-card h2 {
    font-size: 15px;
    margin: 8px 0 6px;
    color: #22333B;
}

@media (max-width: 900px) {
    .accueil-biens-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .accueil-biens-grid { grid-template-columns: 1fr; padding: 0 16px; }
}
