/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --col-bg: #FDFBF7;
    --col-text: #4A4A4A;
    --col-accent: #2C5F58; /* Vert Saône */
    --col-accent-deep: #1a3a35;
    --col-gold: #C2A878;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-signature: 'Brittany Signature', cursive, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body { font-family: var(--font-body); background-color: var(--col-bg); color: var(--col-text); line-height: 1.8; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--col-accent); }
a { text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* =========================================
   2. NAVIGATION & HEADER (Universel)
   ========================================= */
header { 
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; 
    background: rgba(253, 251, 247, 0.96); border-bottom: 1px solid rgba(44, 95, 88, 0.1); 
    backdrop-filter: blur(5px);
}
.navbar { max-width: 1300px; margin: auto; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 40px; }

.logo { font-family: var(--font-signature); color: var(--col-accent); font-size: 2.2rem; white-space: nowrap; }

.menu { list-style: none; display: flex; gap: 25px; align-items: center; }
.menu a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--col-text); font-weight: 700; }
.menu a:hover { color: var(--col-accent); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.nav-btn-res { 
    border: 1px solid var(--col-accent); padding: 8px 20px; border-radius: 50px; 
    color: var(--col-accent) !important; font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase;
}
.nav-btn-res:hover { background: var(--col-accent); color: white !important; }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 2rem; color: var(--col-accent); cursor: pointer; }

/* =========================================
   3. HERO & SECTIONS
   ========================================= */
.hero { height: 100vh; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero.jpg') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero h1 { color: white; font-size: 4rem; font-weight: 700; line-height: 1.1; }
.subtitle { display: block; text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem; margin-bottom: 20px; }

section { padding: 100px 20px; }
.container-text { max-width: 900px; margin: auto; text-align: center; }
.container-split { max-width: 1200px; margin: auto; display: flex; gap: 80px; align-items: center; }
.container-split > div { flex: 1; min-width: 0; }

h2 { font-size: 3rem; margin-bottom: 25px; font-weight: 700; }
.lead { font-size: 1.3rem; font-style: italic; color: var(--col-accent); margin-bottom: 20px; }
.decorative-line { display: block; width: 120px; height: 2px; background: var(--col-gold); margin: 0 auto 30px; }

.btn { display: inline-block; padding: 16px 40px; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; font-weight: 700; cursor: pointer; border: none; transition: 0.3s; }
.btn-filled { background: var(--col-gold); color: white; }
.btn-filled:hover { background: var(--col-accent); transform: translateY(-2px); }

/* =========================================
   4. GUINGUETTE & VUE AÉRIENNE (Version Bureau)
   ========================================= */
.guinguette-image img { 
    height: auto; max-height: 550px; width: 100%; object-fit: contain;
    box-shadow: 20px 20px 0 var(--col-bg), 20px 20px 0 1px var(--col-gold); 
}

.guinguette-features { display: flex; gap: 30px; margin-top: 30px; align-items: flex-start; }
.guinguette-features .feature { flex: 1; }

.mini-plats { list-style: none; margin-top: 20px; text-align: left; }
.mini-plats li { padding: 8px 0; border-bottom: 1px dotted var(--col-gold); }

/* Effet Fixe (Parallaxe) pour Ordinateur */
.vue-aerienne { 
    height: 60vh; 
    background: url('images/vue_aerienne.jpg') center/cover no-repeat fixed; 
}

/* =========================================
   5. LA TABLE
   ========================================= */
.image-wrapper { position: relative; box-shadow: -20px 20px 0 #fff, -20px 20px 0 1px var(--col-gold); overflow: hidden; }
.image-wrapper img { height: auto; max-height: 550px; width: 100%; object-fit: contain; }

/* =========================================
   6. PRODUCTEURS (Version Bureau Alternée)
   ========================================= */
.river-timeline { position: relative; max-width: 1000px; margin: 60px auto 0; padding: 20px 0; }
.central-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--col-gold); transform: translateX(-50%); }
.timeline-item { display: flex; align-items: center; width: 100%; margin-bottom: 60px; position: relative; z-index: 2; }

/* Alternance Gauche / Droite */
.timeline-item.left { justify-content: flex-end; padding-right: 50%; }
.timeline-item.right { justify-content: flex-start; padding-left: 50%; }

.timeline-point { width: 16px; height: 16px; background: var(--col-gold); border: 3px solid var(--col-bg); border-radius: 50%; position: absolute; left: 50%; transform: translateX(-50%); }
.timeline-content { background: white; padding: 25px 30px; border: 1px solid rgba(44, 95, 88, 0.1); box-shadow: 0 10px 25px rgba(0,0,0,0.05); max-width: 350px; width: 100%; margin: 0 40px; }
.timeline-content h3 { font-family: var(--font-heading); font-size: 1.5rem; margin: 5px 0; font-weight: 700; }
.prod-type { font-size: 0.7rem; text-transform: uppercase; color: var(--col-gold); font-weight: 700; letter-spacing: 1px; }

/* =========================================
   7. CAVE & CONTACT
   ========================================= */
.cave-section { background-color: var(--col-bg); padding-top: 50px; }
.cave-container { position: relative; margin-top: 50px; padding: 40px 0; }
.glass-watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 250px; color: var(--col-accent-deep); opacity: 0.08; z-index: 0; pointer-events: none; }
.domains-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 50px; max-width: 1000px; margin: 0 auto; }
.domain-name { font-family: var(--font-heading); font-size: 1.2rem; color: var(--col-text); padding: 10px; border-bottom: 1px solid rgba(194, 168, 120, 0.2); }

.reservation-contact { padding: 0; background: var(--col-accent); color: white; }
.split-layout { display: flex; flex-wrap: wrap; }
.info-box, .booking-box { flex: 1; padding: 80px 50px; min-width: 300px; }
.info-box { background: #244E48; text-align: left; }
.map-container { margin-top: 30px; background: white; padding: 5px; border: 1px solid var(--col-gold); }
.booking-box { text-align: left; }
.bronze-title { color: var(--col-gold) !important; margin-bottom: 20px; }
.booking-box .phone { font-size: 2rem; color: var(--col-gold); font-family: var(--font-heading); margin-bottom: 10px; }

/* =========================================
   8. MEDIA QUERIES (Optimisations Mobile)
   ========================================= */
@media (max-width: 992px) {
    .domains-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-right { gap: 20px; }
}

@media (max-width: 768px) {
    /* Header Mobile : On garde Logo + Bouton Réserver visible */
    .mobile-menu-toggle { display: block; }
    .menu { 
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; 
        width: 100%; background: white; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    }
    .menu.active { display: flex; }
    .menu li { margin: 10px 0; border-bottom: 1px solid #eee; width: 100%; text-align: center; padding-bottom: 10px; }
    
    .logo { font-size: 1.5rem; }
    .nav-btn-res { padding: 6px 12px; font-size: 0.75rem; background: var(--col-accent); color: white !important; }

    /* Sections */
    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 50px 20px; }
    .container-split { flex-direction: column; text-align: center; gap: 30px; }
    
    .guinguette-features { flex-direction: column; align-items: center; }
    .guinguette-image img, .image-wrapper img { max-height: 300px; box-shadow: 10px 10px 0 var(--col-gold); }

    /* Vue Aérienne Mobile : On enlève le fixed et on ajuste la taille */
    .vue-aerienne {
        height: 250px !important;
        background-attachment: scroll !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-color: var(--col-bg);
    }

    /* Producteurs Mobile : Tout aligné à gauche */
    .central-line { left: 20px; transform: none; }
    .timeline-point { left: 20px; transform: translateX(-50%); }
    .timeline-item { padding-left: 50px !important; padding-right: 0 !important; justify-content: flex-start !important; }
    .timeline-content { margin: 0; max-width: 100%; text-align: left !important; }

    /* Footer & Phone */
    .info-box, .booking-box { padding: 30px 20px; }
    .booking-box .phone { font-size: 1.5rem; color: var(--col-gold) !important; }
    a[href^="tel"] { color: inherit !important; text-decoration: none !important; }
    .domains-grid { grid-template-columns: 1fr; gap: 15px; }
    .glass-watermark { width: 120px; opacity: 0.05; }
}

/* =========================================
   9. FOOTER & POPUP
   ========================================= */
footer { padding: 50px; text-align: center; font-size: 0.8rem; color: #888; }
.popup-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 46, 43, 0.9); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.popup-image-content { background: var(--col-bg); padding: 15px; max-width: 600px; width: 90%; border: 1px solid var(--col-gold); box-shadow: 0 30px 60px rgba(0,0,0,0.5); text-align: center; }
.popup-main-img { width: 100%; max-height: 70vh; object-fit: contain; }