/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold:    #B8860B;
    --gold-l:  #D4A92A;
    --cream:   #FAF6EF;
    --brown:   #5C3D2E;
    --green:   #4A6741;
    --text:    #2E2E2E;
    --text-l:  #666;
    --white:   #FFFFFF;
    --shadow:  0 4px 24px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
}

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

a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(250,246,239,.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(184,134,11,.2);
    padding: .8rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold);
    letter-spacing: .05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links { display: flex; flex-wrap: nowrap; gap: 1.3rem; list-style: none; }

.nav-links a {
    display: inline-block;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brown);
    transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

/* ===== HERO ===== */
#accueil {
    height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #181D29 0%, #252B3A 40%, #343545 100%);
    position: relative; overflow: hidden;
    padding: 2rem;
}

.hero-photo {
    position: absolute; inset: 0;
    background: #181D29;
    display: flex; align-items: center; justify-content: center;
    opacity: .45;
}

.hero-photo span {
    color: rgba(255,255,255,.5);
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-content { position: relative; z-index: 1; color: var(--white); }

.hero-badge {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.5);
    padding: .35rem 1.2rem;
    border-radius: 2rem;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: rgba(255,255,255,.85);
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    margin-bottom: .5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.hero-content h1 em {
    font-style: italic;
    color: var(--gold-l);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 2.2rem;
    letter-spacing: .03em;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: .85rem 2.2rem;
    border-radius: .3rem;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: all .25s;
    cursor: pointer;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
}
.btn-gold:hover { background: var(--gold-l); border-color: var(--gold-l); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ===== LANG SWITCH ===== */
.lang-switch { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; }
.lang-btn {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--brown);
    transition: color .2s;
}
.lang-btn:hover { color: var(--gold); }
.lang-btn.lang-active { color: var(--gold); }

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--brown);
    margin-bottom: 1rem;
}

.section-divider {
    width: 3.5rem; height: 3px;
    background: var(--gold);
    margin: 1rem 0 2rem;
    border-radius: 2px;
}

.section-text { color: var(--text-l); max-width: 680px; font-size: 1.05rem; }

/* ===== ATOUTS (icons row) ===== */
.atouts {
    background: var(--brown);
    padding: 2.5rem 2rem;
}

.atouts-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.atout { color: var(--white); }
.atout-icon { font-size: 2rem; margin-bottom: .5rem; }
.atout-label { font-size: .85rem; letter-spacing: .04em; color: rgba(255,255,255,.8); }
.atout-val { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gold-l); }

/* ===== GITE ===== */
#gite { background: var(--white); }

.logement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

.photo-placeholder {
    border-radius: .6rem;
    overflow: hidden;
    background: #d5c9b8;
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: .5rem;
    color: #8a7a66;
}

.photo-placeholder span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.photo-placeholder .icon { font-size: 2.5rem; opacity: .5; }

.photo-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
}

.photo-grid-2 .photo-placeholder { aspect-ratio: 1/1; }

.logement-details { }
.logement-details h3 { font-size: 1.8rem; color: var(--brown); margin-bottom: .5rem; }
.logement-details .section-divider { margin: .8rem 0 1.2rem; }
.logement-details p { color: var(--text-l); margin-bottom: 1rem; font-size: 1rem; }

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .8rem;
    margin: 1.2rem 0;
}

.features-list li {
    font-size: .92rem;
    color: var(--text);
    display: flex; align-items: center; gap: .5rem;
}
.features-list li::before { content: "✓"; color: var(--green); font-weight: 700; }

.price-tag {
    display: inline-block;
    background: var(--cream);
    border: 1px solid var(--gold-l);
    border-radius: .4rem;
    padding: .7rem 1.3rem;
    margin-top: .8rem;
}
.price-tag .amount { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--gold); }
.price-tag .per { font-size: .82rem; color: var(--text-l); }
.price-tag .remise { font-size: .8rem; color: var(--text); font-weight: 600; margin-top: .2rem; }

/* ===== CHAMBRE ===== */
#chambre { background: var(--cream); }

.chambre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

/* ===== TABLE D'HÔTES ===== */
#tablehotes { background: var(--white); }

/* ===== PISCINE ===== */
#piscine { background: #1E3A5F; color: var(--white); }
#piscine .section-title { color: var(--white); }
#piscine .section-text { color: rgba(255,255,255,.75); }

.piscine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

.piscine-photo .photo-placeholder { background: #1a3356; color: rgba(255,255,255,.35); aspect-ratio: 16/9; }

.piscine-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: .5rem;
    padding: 1.2rem;
    text-align: center;
}
.stat-card .val { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold-l); }
.stat-card .lbl { font-size: .82rem; color: rgba(255,255,255,.65); letter-spacing: .04em; }

/* ===== REGION ===== */
#region { background: var(--white); }

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.region-card {
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--cream);
    transition: transform .25s;
}
.region-card:hover { transform: translateY(-4px); }

.region-card .photo-placeholder { aspect-ratio: 4/3; background: #c8b99a; }
.region-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.region-card-body { padding: 1.2rem; }
.region-card h4 { font-size: 1.1rem; color: var(--brown); margin-bottom: .4rem; }
.region-card p { font-size: .88rem; color: var(--text-l); }
.region-card .dist { font-size: .78rem; color: var(--gold); font-weight: 600; margin-top: .5rem; letter-spacing: .04em; }

/* ===== TARIFS ===== */
#tarifs { background: var(--cream); }

.tarifs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.tarif-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: .6rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tarif-header {
    background: var(--brown);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    min-height: 7.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tarif-header h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.tarif-header p { font-size: .88rem; color: rgba(255,255,255,.7); }

.tarif-price {
    text-align: center;
    padding: 1.8rem 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    min-height: 8.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tarif-price .amount { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--gold); }
.tarif-price .per { font-size: .9rem; color: var(--text-l); }

.tarif-includes {
    flex: 1 1 auto;
    list-style: none;
    padding: 1.2rem 1.8rem 1.8rem;
}
.tarif-includes li {
    padding: .45rem 0;
    font-size: .93rem;
    color: var(--text);
    display: flex; align-items: center; gap: .6rem;
    border-bottom: 1px solid #f0ede8;
}
.tarif-includes li:last-child { border-bottom: none; }
.tarif-includes li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

.tarif-remise {
    text-align: center;
    background: #f5f1ea;
    border-top: 1px solid #e8e0d5;
    padding: .9rem;
    font-size: .88rem;
    color: var(--text);
    font-weight: 600;
}

/* ===== CONTACT ===== */
#contact { background: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    margin-top: 2.5rem;
    align-items: start;
}

.contact-info h3 { font-size: 1.3rem; color: var(--brown); margin-bottom: 1rem; }

.contact-item {
    display: flex; gap: .9rem; align-items: flex-start;
    margin-bottom: 1.2rem;
}
.contact-item .icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.contact-item .label { font-size: .8rem; color: var(--text-l); text-transform: uppercase; letter-spacing: .06em; }
.contact-item .value { font-size: 1rem; color: var(--text); font-weight: 600; }
.contact-item a { color: var(--gold); }

.contact-map {
    margin-top: 1.5rem;
    border-radius: .5rem;
    overflow: hidden;
    border: 1px solid #ddd;
}

form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .83rem; font-weight: 600; color: var(--text); letter-spacing: .03em; }

input, select, textarea {
    padding: .75rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: .35rem;
    font-family: 'Open Sans', sans-serif;
    font-size: .95rem;
    color: var(--text);
    background: var(--cream);
    transition: border-color .2s;
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
}
textarea { resize: vertical; min-height: 130px; }

/* ===== FOOTER ===== */
footer {
    background: var(--brown);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 2rem;
    font-size: .85rem;
}
footer a { color: var(--gold-l); }
footer .footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: .4rem;
}

/* ===== WINE ROUTE ===== */
.wine-route {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--cream);
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    border-radius: 0 .5rem .5rem 0;
    margin-top: 2.5rem;
}
.wine-route-icon { font-size: 2.5rem; flex-shrink: 0; margin-top: .2rem; }
.wine-route h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--brown);
    margin-bottom: .5rem;
}
.wine-route p { color: var(--text-l); font-size: .95rem; line-height: 1.65; }

/* ===== VILLAGES ===== */
.subsection-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--brown);
    margin: .5rem 0 1.5rem;
}

.villages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ===== DISPONIBILITÉS ===== */
#disponibilites { background: var(--cream); }

#calendar {
    margin-top: 1rem;
    background: var(--white);
    border-radius: .5rem;
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 1rem 0 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: var(--text-l);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}
.legend-order {
    display: none;
}
@media (max-width: 640px) {
    .legend-order {
        display: block;
        text-align: center;
        font-size: .8rem;
        color: var(--text-l);
        font-style: italic;
        margin-top: .4rem;
    }
}

.avail-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 3px 3px;
}
.avail-bar {
    display: block;
    font-size: 0.6rem;
    padding: 1px 3px;
    border-radius: 2px;
    color: white;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}
.avail-bar.free   { background: #2E7D32; }
.avail-bar.booked { background: #c62828; }

@media (max-width: 640px) {
    .avail-bars { flex-direction: row; gap: 2px; padding: 1px 2px; }
    .avail-bar  { display: inline-block; width: 7px; height: 7px; border-radius: 50%; font-size: 0; padding: 0; line-height: 0; overflow: hidden; }
}

.calendar-note {
    text-align: center;
    margin-top: 1.2rem;
    font-size: .88rem;
    color: var(--text-l);
}
.calendar-note a { color: var(--gold); font-weight: 600; }

.tarif-table {
    width: 100%;
    border-collapse: collapse;
    margin: .6rem 0 .8rem;
    font-size: .88rem;
}
.tarif-table td {
    padding: .35rem .5rem;
    border-bottom: 1px solid #e8e0d5;
    color: var(--text-l);
}
.tarif-table td:last-child { text-align: right; color: var(--brown); }

/* FullCalendar overrides */
.fc .fc-button-primary {
    background-color: var(--brown) !important;
    border-color: var(--brown) !important;
}
.fc .fc-button-primary:hover {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
}
.fc .fc-day-today { background: rgba(184,134,11,.08) !important; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: .4rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    cursor: default;
}
.lightbox-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
    transition: opacity .2s;
    background: none;
    border: none;
    font-family: sans-serif;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
    position: absolute;
    bottom: 1.2rem;
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    letter-spacing: .06em;
    pointer-events: none;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 1.8rem;
    width: 3rem; height: 3rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.28); }
.lightbox-prev:disabled,
.lightbox-next:disabled { opacity: .15; cursor: default; }
img.zoomable { cursor: zoom-in; }

/* ===== HAMBURGER ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .3rem;
    margin-left: .8rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1300px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(250,246,239,.97);
        backdrop-filter: blur(6px);
        border-bottom: 1px solid rgba(184,134,11,.2);
        padding: .4rem 0;
        z-index: 99;
    }
    nav.open .nav-links { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: .85rem 2rem;
        border-bottom: 1px solid rgba(184,134,11,.08);
        font-size: .9rem;
    }
}

@media (max-width: 900px) {
    .logement-grid, .chambre-grid, .piscine-grid,
    .contact-grid, .tarifs-grid { grid-template-columns: 1fr; }
    .chambre-grid .photo-side { order: -1; }
    .region-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .villages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .region-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .features-list { grid-template-columns: 1fr; }
    .piscine-stats { grid-template-columns: 1fr 1fr; }
    section { padding: 3.5rem 1.2rem; }
    .wine-route { flex-direction: column; gap: 1rem; }
}
