/* ==========================================================================
   FICHIER : style.css (Version Complète avec Effet Parallaxe Fixe)
   ========================================================================== */

:root {
    --primary: #14222e;
    --primary-2: #1d3142;
    --accent: #b8955d;
    --accent-2: #d6b47b;
    --light: #f8f6f2;
    --white: #ffffff;
    --text: #2e3440;
    --text-soft: #667085;
    --border: rgba(20, 34, 46, 0.08);
    --shadow-sm: 0 10px 30px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 18px 50px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 24px 70px rgba(16, 24, 40, 0.14);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --transition: all 0.28s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: #fcfbf9;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* ===== HEADER ===== */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(20, 34, 46, 0.06);
}

.navbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-modern a {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-top {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.logo-bottom {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-bottom em {
    font-style: normal;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-menu a {
    position: relative;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.header-cta {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-white, .btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary, .btn-nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(20, 34, 46, 0.18);
}

.btn-primary:hover, .btn-nav-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: rgba(20, 34, 46, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 149, 93, 0.35);
    color: var(--accent);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    background: #f3f4f6;
}

.btn-light {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-light:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===== HERO (Modifié pour l'effet fixe et centrage) ===== */
.hero-home,
.page-hero,
.hero-small {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    
    /* Effet de glissement (Parallaxe) */
    background-attachment: fixed;
    /* Centrage de l'image */
    background-position: center !important;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-home,
.page-hero {
    min-height: 78vh;
    padding: 110px 20px;
}

.hero-small {
    min-height: 42vh;
    padding: 100px 20px 70px;
    background-image: 
        linear-gradient(135deg, rgba(14, 24, 32, 0.82), rgba(36, 54, 72, 0.58)),
        url('../img/hero-bg.jpg');
}

.hero-home {
    background-image: 
        linear-gradient(135deg, rgba(14, 24, 32, 0.82), rgba(36, 54, 72, 0.55)),
        url('../img/hero-bg.jpg');
}

.page-hero-gites {
    background-image: 
        linear-gradient(135deg, rgba(14, 24, 32, 0.82), rgba(36, 54, 72, 0.55)),
        url('../img/gite1_1.jpg');
}

.hero-overlay,
.page-hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-content,
.page-hero-content,
.hero-small .container {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-home h1,
.page-hero h1,
.hero-small h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 18px;
}

.hero-home p,
.page-hero p,
.hero-small p {
    color: rgba(255,255,255,0.9);
    font-size: 1.08rem;
    max-width: 760px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== GENERIC SECTIONS ===== */
.section-spacing {
    padding: 90px 0;
}

.pt-0 {
    padding-top: 0;
}

.section-soft {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f6f2 100%);
}

.centered {
    text-align: center;
}

.section-title {
    margin-bottom: 18px;
}

.section-title span {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 14px;
}

.section-title hr {
    width: 82px;
    height: 3px;
    border: none;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    margin: 0 auto;
    border-radius: 999px;
}

/* ===== INTRODUCTION ===== */
.home-intro {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f6f2 100%);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 34px;
    align-items: start;
    margin-top: 48px;
}

.intro-text p,
.gites-intro-box p {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 18px;
}

.intro-highlight-card,
.gites-intro-box,
.contact-form,
.contact-info,
.calendar-container,
.booking-form,
.info-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(20, 34, 46, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.intro-highlight-card,
.gites-intro-box {
    padding: 30px;
}

.highlight-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(20, 34, 46, 0.08);
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-item strong {
    display: block;
    color: var(--primary);
    font-size: 1.08rem;
    margin-bottom: 5px;
}

.highlight-item span {
    color: var(--text-soft);
}

/* ===== CARDS & GRIDS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.card-modern {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-modern .card-img {
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.card-modern .card-body {
    padding: 30px;
}

.card-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.74rem;
    font-weight: 700;
}

.card-modern h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 12px;
}

.card-modern p {
    color: #525866;
    margin-bottom: 18px;
}

.card-features {
    margin-bottom: 24px;
}

.card-features li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: #3f4753;
}

.card-features li::before,
.location-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== WELLNESS SECTION ===== */
.wellness-section {
    background: linear-gradient(135deg, #f4efe7 0%, #fcfbf9 100%);
}

.wellness-box {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    background: var(--white);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.wellness-text span,
.cta-box span {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
}

.wellness-text h2,
.cta-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 16px;
}

.wellness-text p {
    color: #555f6d;
    margin-bottom: 24px;
}

.wellness-features {
    display: grid;
    gap: 18px;
}

.wellness-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9f5 100%);
    border: 1px solid rgba(184, 149, 93, 0.14);
    border-radius: 20px;
    padding: 24px;
}

.wellness-card h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

/* ===== LOCATION ===== */
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.location-card {
    background: var(--white);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.location-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-family: 'Playfair Display', serif;
}

.location-card ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    color: #555f6d;
}

/* ===== CTA BOX ===== */
.cta-modern {
    background: linear-gradient(135deg, var(--primary) 0%, #213647 100%);
    padding: 100px 0;
}

.cta-box {
    text-align: center;
    color: var(--white);
    max-width: 820px;
    margin: 0 auto;
}

.cta-box h2 {
    color: var(--white);
}

.cta-box p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,0.88);
}

/* ===== GITES LIST ===== */
.modern-gites-list {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.gite-card-modern {
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    gap: 32px;
    align-items: stretch;
    background: rgba(255,255,255,0.96);
    padding: 24px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.gite-card-modern.reverse .gite-image { order: 2; }
.gite-card-modern.reverse .gite-info { order: 1; }

.modern-slider {
    position: relative;
    min-height: 440px;
    border-radius: 22px;
    overflow: hidden;
    background: #eef2f6;
}

.modern-slider .slide {
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modern-slider .slide.active { opacity: 1; }

.modern-slider .prev,
.modern-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    cursor: pointer;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}
.modern-slider .prev { left: 16px; }
.modern-slider .next { right: 16px; }

.dots-container {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.58); cursor: pointer;
}
.dot.active { background: var(--white); }

.modern-gite-info { display: flex; flex-direction: column; justify-content: center; }

.modern-gite-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 14px;
}

.gite-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.feature-box {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(180deg, #fffdf9 0%, #f8f4ec 100%);
    border: 1px solid rgba(184, 149, 93, 0.14);
    border-radius: 16px; padding: 14px 16px; color: #3f4753;
}

.gite-price strong { font-size: 1.8rem; color: var(--primary); }

/* ===== CONTACT & RESERVATION ===== */
.contact-grid, .reservation-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}

.contact-form, .contact-info, .calendar-container, .booking-form { padding: 30px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px;
    border: 1px solid rgba(20, 34, 46, 0.12); transition: var(--transition);
}

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.day {
    min-height: 54px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; border: 1px solid #edf1f5; cursor: pointer; transition: var(--transition);
}
.day.available { background: #f4fbf5; color: #237a3b; }
.day.booked { background: #fff1f1; color: #c43c3c; text-decoration: line-through; cursor: not-allowed; }

/* ===== FOOTER ===== */
.footer-modern {
    background: linear-gradient(135deg, #12202c 0%, #1b2f3d 100%);
    color: rgba(255,255,255,0.84); padding-top: 72px;
}

.footer-content { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 28px; padding-bottom: 40px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.08); transition: var(--transition);
}
.social-icons a:hover { background: var(--accent); }

/* ===== GALLERY TABS ===== */
.gallery-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn {
    padding: 10px 15px; border: 1px solid var(--accent); background: transparent;
    color: var(--primary); border-radius: var(--radius-sm); cursor: pointer;
    font-weight: 600; transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--accent); color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .gite-card-modern, .intro-grid, .wellness-box, .grid-2, .location-grid, .contact-grid, .reservation-grid, .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    /* Désactivation de l'effet fixe sur mobile pour éviter les bugs Safari/iOS */
    .hero-home, .page-hero, .hero-small {
        background-attachment: scroll;
    }
}

@media (max-width: 992px) {
    .header-cta { display: none; }
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute; top: 86px; left: 0; right: 0;
        background: rgba(255,255,255,0.98); display: none;
        flex-direction: column; padding: 20px; gap: 16px;
    }
    .nav-menu.active { display: flex; }
    .hero-home h1, .page-hero h1, .hero-small h1 { font-size: 2.9rem; }
}

@media (max-width: 576px) {
    .section-spacing { padding: 65px 0; }
    .hero-home h1, .page-hero h1, .hero-small h1 { font-size: 2.2rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}