/* ================================================
   RESET & BASE
   ================================================ */
body {
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
    padding: 0;
    font-family: 'Jost', sans-serif;
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 200;
}

/* ================================================
   NAVBAR — DESKTOP (référence)
   ================================================ */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(20px, 1.8vw, 28px);
    font-weight: 400;
    color: white;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.logo-line {
    display: none;
}

/* Sur fond clair (footer) */
.footer-logo .logo-text {
    color: #2C2418;
}



.hamburger {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(24px, 2.5vw, 48px) clamp(40px, 3.5vw, 80px);
    position: relative;
    z-index: 2;
}

.nav-bar {
    list-style: none;
    display: flex;
    gap: clamp(4px, 1.2vw, 24px);
    margin: 0;
    padding: 0;
    align-items: center;
}

nav > ul > li > a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    border: clamp(2px, 0.07vw, 4px) solid transparent;
    padding: clamp(15px, 1vw, 32px);
    transition: border-color 0.3s;
    white-space: nowrap;
    display: block;
}

nav > ul > li > a:hover {
    border-color: white;
}

.categorie {
    position: relative;
    padding-bottom: 0;
}

.categorie::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    top: 100%;
    height: 22px;
}

.souscategorie {
    position: absolute;
    top: calc(100% + 22px);
    left: 0;
    background-color: white;
    padding: 4px 10px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    min-width: 190px;
}

.souscategorie.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.categorie:hover .souscategorie {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.souscategorie a {
    color: black;
    text-transform: none;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    padding: 0 10px;
    white-space: nowrap;
    display: block;
    text-decoration: none;
}

.souscategorie li {
    padding: 16px 0;
}

.souscategorie li:last-child {
    border-bottom: none;
}

/* ================================================
   HERO
   ================================================ */
.hero {
    height: 100vh;
    position: relative;
    background-image: url("Images/maison-profil.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(120,80,30,0.32) 0%, rgba(120,80,30,0.1) 55%, transparent 80%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.titre-hero {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 300;
    color: white;
    text-shadow: 0 2px 28px rgba(80,45,10,0.75), 0 1px 8px rgba(80,45,10,0.45);
    margin: 0;
}

.hero-label {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: white;
    margin: 0;
    text-shadow: 0 1px 18px rgba(80,45,10,0.8), 0 1px 5px rgba(80,45,10,0.5);
}

.hero-sub {
    font-family: 'Jost', sans-serif;
    font-size: clamp(13px, 0.9vw, 15px);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 0 1px 16px rgba(80,45,10,0.7);
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 12px;
    background-color: #f2e6db;
    color: #222;
    font-size: clamp(16px, 1.5vw, 24px);
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #e0d1c0;
}

/* ================================================
   TYPOGRAPHIE COMMUNE
   ================================================ */
.label {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #B8965A;
    margin-bottom: 0.7rem;
}

.section-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 400;
    color: #2C2B28;
    margin: 0;
}

.trait {
    width: 44px;
    height: 1px;
    background: #B8965A;
    margin: 12px 0 1.6rem;
}

.trait-center {
    margin: 12px auto 1.6rem;
}

/* ================================================
   NOM DU LIEU
   ================================================ */
.nomlieu-outer {
    background: #FDF0E6;
}

.nomlieu {
    display: flex;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 112px);
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.nomlieu-text {
    flex: 1;
}

.nomlieu-text p {
    font-family: 'Jost', sans-serif;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.85;
    font-weight: 300;
    color: #7A7169;
}

.nomlieu > img {
    flex: 0 0 400px;
    height: 320px;
    object-fit: cover;
    border-radius: 4px;
}

/* ================================================
   PLAN INTERACTIF
   ================================================ */
.plan-maison {
    padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 112px);
    background: white;
}

.plan-intro {
    text-align: center;
    margin-bottom: 32px;
}

.plan-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.plan-img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.point {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-decoration: none;
    color: inherit;
}

.point-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #B8965A;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(184,150,90,0.4);
    transition: transform 0.2s;
}

.point-dot-gray {
    background: #7A7169;
    box-shadow: 0 0 0 2px rgba(122,113,105,0.3);
}

.point-dot-private {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8C4A4A;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(140,74,74,0.3);
}

.legend-dot-private {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8C4A4A;
    border: 1.5px solid white;
    box-shadow: 0 0 0 1.5px rgba(140,74,74,0.3);
    flex-shrink: 0;
    display: inline-block;
}

.point:hover .point-dot,
.point:focus .point-dot {
    transform: scale(1.4);
}

.point:hover {
    z-index: 20;
}

.info-point {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid rgba(184,150,90,0.25);
    width: 200px;
    display: none;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(44,37,32,0.12);
}

.info-point-left {
    left: auto;
    right: 0;
    transform: none;
}

.point:hover .info-point,
.point:focus-within .info-point,
.point:focus .info-point {
    display: block;
}

.point.info-bottom .info-point {
    bottom: auto;
    top: 24px;
}

.info-point > img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.info-text {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #7A7169;
    font-weight: 300;
    line-height: 1.5;
}

.info-label {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B8965A;
}

.info-text strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 400;
    color: #2C2B28;
}

.info-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B8965A;
    border-bottom: 1px solid rgba(184,150,90,0.4);
    padding-bottom: 1px;
    font-weight: 400;
}

.plan-legend {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #7A7169;
    letter-spacing: 0.05em;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #B8965A;
    border: 1.5px solid white;
    box-shadow: 0 0 0 1.5px rgba(184,150,90,0.4);
    flex-shrink: 0;
}

.legend-dot-gray {
    background: #7A7169;
    box-shadow: 0 0 0 1.5px rgba(122,113,105,0.3);
}

/* Positions des points */
.buron      { top: 55%; left: 20%; }
.salon      { top: 55%; left: 74%; }
.capucine   { top: 36%; left: 37%; }
.prunelia   { top: 36%; left: 56%; }
.fees       { top: 90%; left: 90%; }
.proprietaire { top: 55%; left: 50%; }
.mezzanine  { top: 36%; left: 82%; }

/* Ajustements cartes qui débordent */
.buron .info-point      { left: 0; transform: none; }
.salon .info-point      { left: auto; right: 0; transform: none; }
.mezzanine .info-point  { left: auto; right: 0; transform: none; }
.fees .info-point       { left: auto; right: 0; transform: none; }

/* ================================================
   LA NATURE
   ================================================ */
.lanature-outer {
    background: #FDF0E6;
}

.lanature {
    display: flex;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
    padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 112px);
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.lanature > img {
    flex: 0 0 400px;
    height: 340px;
    object-fit: cover;
    border-radius: 4px;
}

.lanature-text {
    flex: 1;
}

.lanature-text p {
    font-family: 'Jost', sans-serif;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.85;
    font-weight: 300;
    color: #7A7169;
    margin-bottom: 1rem;
}

/* ================================================
   PANORAMA
   ================================================ */
.panorama {
    width: 100%;
    height: 45vh;
    object-fit: cover;
    display: block;
}

/* ================================================
   PRÉSENTATION
   ================================================ */
.presentation {
    padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 112px);
    background: white;
}

.presentation-inner {
    display: flex;
    gap: clamp(40px, 6vw, 100px);
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.presentation-photo {
    flex: 0 0 280px;
}

.presentation-photo img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.presentation-texte {
    flex: 1;
    border-left: 1px solid rgba(184,150,90,0.2);
    padding-left: clamp(32px, 4vw, 60px);
}

.citation {
    margin-bottom: 1.6rem;
}

.citation p {
    font-family: 'Jost', sans-serif;
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.9;
    font-weight: 300;
    color: #7A7169;
    font-style: italic;
    margin-bottom: 1rem;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(24px, 2vw, 36px);
    color: #2C2B28;
    display: block;
    margin-top: 1rem;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background-color: #D4C5B0;
    color: #2C2520;
    padding: clamp(48px, 5vw, 88px) clamp(32px, 5vw, 88px) clamp(24px, 3vw, 48px);
}

.footer-top {
    text-align: center;
    margin-bottom: clamp(28px, 3vw, 52px);
    padding-bottom: clamp(20px, 2vw, 36px);
    border-bottom: 1px solid rgba(44,37,32,0.12);
}

.footer-logo {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(28px, 3vw, 48px);
    color: #2C2520;
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(44,37,32,0.55);
    font-weight: 400;
    font-family: 'Jost', sans-serif;
    margin: 0;
    padding: 0;
}

.ligne-footer {
    display: flex;
    gap: clamp(28px, 4vw, 80px);
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.item-list { min-width: 240px; }

.item-list h3 {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(44,37,32,0.55);
    margin-bottom: 1.4rem;
}

.item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.95rem;
}

.item img {
    width: 15px;
    height: 15px;
    opacity: 0.5;
    filter: brightness(0);
    flex-shrink: 0;
}

.item a {
    color: rgba(44,37,32,0.75);
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Jost', sans-serif;
    transition: color 0.2s;
}

.item a:hover { color: #2C2520; }

.footer-links { margin-top: 1.8rem; }

.btn-footer {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: #2C2520;
    border: 1px solid rgba(44,37,32,0.4);
    padding: 10px 20px;
    transition: border-color 0.3s;
    background: transparent;
}

.btn-footer:hover { border-color: #2C2520; }

.carte {
    flex: 1;
    min-width: 280px;
    max-width: 560px;
    height: 360px;
    border: none;
    opacity: 0.88;
}

.footer-bottom {
    margin-top: clamp(28px, 3vw, 48px);
    padding-top: clamp(14px, 1.5vw, 22px);
    border-top: 1px solid rgba(44,37,32,0.12);
    text-align: center;
}

.footer-bottom p {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(44,37,32,0.38);
    font-weight: 400;
    font-family: 'Jost', sans-serif;
}

/* Carte visible au tap mobile */
.point.touch-open .info-point {
    display: block !important;
}

/* Caché sur desktop, visible sur mobile */
.plan-links-mobile {
    display: none;
}

/* ================================================
   MOBILE — max 1100px
   ================================================ */
@media (max-width: 1100px) {
/* --- Hero --- */
    .hero {
        height: 100dvh;
        background-position: center center;
    }

    .hero-content {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 92%;
        padding: 0 16px;
        box-sizing: border-box;
        gap: 6px;
    }

    .titre-hero {
        font-size: clamp(32px, 9vw, 52px);
    }

    .btn {
        font-size: 1rem;
        padding: 11px 20px;
        margin-top: 14px;
    }

    /* --- Navbar mobile --- */
    nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        height: 64px;
        position: relative;
    }

    .logo {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        transition: opacity 0.15s;
    }

    .logo.logo-hidden {
        visibility: hidden;
        opacity: 0;
    }

    .logo-text {
        font-size: 22px;
        letter-spacing: 0.03em;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: static;
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(255,255,255,0.18);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255,255,255,0.4);
        border-radius: 8px;
        color: white;
        cursor: pointer;
        z-index: 1001;
        line-height: 1;
        transition: background 0.2s;
        flex-shrink: 0;
    }

    .hamburger:hover {
        background: rgba(255,255,255,0.3);
    }

    .nav-bar {
        position: fixed;
        display: none;
        flex-direction: column;
        top: 0;
        left: 0;
        right: 0;
        gap: 0;
        padding: 72px 0 24px;
        margin: 0;
        background-color: #FAF6F1;
        overflow-y: auto;
        max-height: 100dvh;
        box-shadow: 0 8px 40px rgba(0,0,0,0.14);
        z-index: 998;
    }

    .nav-bar.show { display: flex; }

    .nav-bar > li {
        border-bottom: 1px solid rgba(184,150,90,0.18);
        padding: 0;
    }

    .nav-bar > li:last-child { border-bottom: none; }

    nav > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 28px;
        color: #2C2520;
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        font-family: 'Raleway', sans-serif;
        border: none;
        transition: color 0.2s, background 0.2s;
    }

    nav > ul > li > a:hover {
        border: none;
        color: #B8965A;
        background: rgba(184,150,90,0.07);
    }

    .categorie > a::after {
        content: "+";
        font-size: 1.2em;
        font-weight: 300;
        color: rgba(184,150,90,0.7);
        padding-left: 12px;
        display: inline-block;
    }

    .categorie > a.open::after { content: "−"; }
    .categorie:hover > a::after { transform: none; }
    .categorie { padding-bottom: 0; }
    .categorie::after { display: none; }

    .souscategorie {
        position: static;
        visibility: visible;
        opacity: 1;
        pointer-events: none;
        box-shadow: none;
        background-color: rgba(184,150,90,0.05);
        border-top: 1px solid rgba(184,150,90,0.12);
        padding: 0;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .souscategorie.show {
        pointer-events: auto;
        max-height: 300px;
    }

    .categorie:hover .souscategorie { max-height: 0; pointer-events: none; }
    .categorie:hover .souscategorie.show { max-height: 300px; pointer-events: auto; }

    .souscategorie li { padding: 0; }
    .souscategorie li:last-child { border-bottom: none; }

    .souscategorie a {
        display: block;
        padding: 13px 28px 13px 44px;
        font-size: 0.78rem;
        font-weight: 400;
        letter-spacing: 0.06em;
        color: rgba(44,37,32,0.6);
        font-family: 'Raleway', sans-serif;
        text-transform: none;
        transition: color 0.2s;
    }

    .souscategorie a:hover { color: #B8965A; }

    /* --- Nom du lieu --- */
    .nomlieu {
        flex-direction: column;
        padding: 36px 20px;
        gap: 28px;
    }

    .nomlieu > img {
        flex: none;
        width: 100%;
        height: 260px;
    }

    /* --- Plan interactif --- */
    .plan-maison {
        padding: 36px 20px;
    }

    /* Sur mobile le plan reste visible mais on cache les tooltips
       et on remplace par une liste de liens en dessous */
    .plan-wrap {
        margin-bottom: 8px;
    }

    .info-point {
        display: none !important; /* tooltips inutilisables au touch */
    }

    /* Liste de liens sous le plan sur mobile */
    .plan-links-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        border: 1px solid rgba(184,150,90,0.2);
    }

    /* Liste de liens sous le plan (remplace les tooltips inutilisables au tactile) */
    .plan-links-mobile {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
        border: 1px solid rgba(184,150,90,0.2);
    }

    /* --- La nature --- */
    .lanature {
        flex-direction: column;
        padding: 36px 20px;
        gap: 28px;
    }

    .lanature > img {
        flex: none;
        width: 100%;
        height: 240px;
    }

    /* --- Panorama --- */
    .panorama {
        height: 30vh;
    }

    /* --- Présentation --- */
    .presentation {
        padding: 36px 20px;
    }

    .presentation-inner {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .presentation-photo {
        flex: none;
    }

    .presentation-photo img {
        width: 220px;
        height: 220px;
    }

    .presentation-texte {
        border-left: none;
        border-top: 1px solid rgba(184,150,90,0.2);
        padding-left: 0;
        padding-top: 28px;
        width: 100%;
        box-sizing: border-box;
    }

    /* --- Footer --- */
    .footer {
        padding: 32px 20px 20px;
    }

    .ligne-footer {
        flex-direction: column;
        gap: 28px;
        align-items: flex-start;
    }

    .item-list {
        min-width: 0;
        width: 100%;
    }

    .carte {
        width: 100%;
        max-width: 100%;
        height: 260px;
        box-sizing: border-box;
    }
}

/* ================================================
   MOBILE — max 480px
   ================================================ */
@media (max-width: 480px) {

    .titre-hero { font-size: clamp(28px, 9vw, 40px); }
    .hero-content { width: 95%; }
    nav { padding: 16px; }
    .hamburger { top: 16px; right: 16px; }

    .nomlieu { padding: 28px 16px; }
    .plan-maison { padding: 28px 16px; }
    .lanature { padding: 28px 16px; }
    .presentation { padding: 28px 16px; }

    .presentation-photo img {
        width: 180px;
        height: 180px;
    }

    .panorama { height: 24vh; }
}