/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    --color-bg: #FBF9F6; /* Blanc albâtre */
    --color-text: #36302C; /* Brun/Gris profond */
    --color-muted: #807770; /* Brun grisé pour texte secondaire */
    --color-accent: #8C7A6B; /* Taupe / Bois cendré */
    --color-secondary: #B4A89C; /* Taupe clair */
    --color-cards: #FFFFFF; /* Fond blanc pour les cartes */
    --color-border: #E8E5E1; /* Bordure douce */
    --color-booking: #003B95;
    --color-lbc: #FF6E14;
    --color-airbnb: #FF5A5F;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --transition: 0.3s ease;
    --border-radius: 12px;
}

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

body {
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    color: var(--color-text); 
    font-weight: 600;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 1s forwards ease-out; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   A. HERO SECTION
   ========================================= */
.hero-alpine {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.4) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.badge {
    background: var(--color-secondary);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.btn-hero {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: #A34E2D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 88, 51, 0.3);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* =========================================
   BARRE DE RÉASSURANCE
   ========================================= */
.trust-bar {
    display: flex; justify-content: center; align-items: center; gap: 2rem;
    background: var(--color-cards); padding: 1.5rem 2rem; box-shadow: var(--shadow-soft);
    position: relative; z-index: 10; margin-top: -3rem; border-radius: var(--border-radius);
    width: 90%; max-width: 1000px; margin-left: auto; margin-right: auto;
    flex-wrap: wrap;
    border: 1px solid var(--color-border);
}

.trust-item {
    display: flex; align-items: center; gap: 0.8rem;
}

.trust-icon { font-size: 1.5rem; }
.trust-item strong { font-size: 1.05rem; font-weight: 600; color: var(--color-text); }

@media (max-width: 768px) {
    .trust-bar {
        gap: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   B. PRÉSENTATION DES ESPACES
   ========================================= */
.spaces-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.spaces-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.space-card {
    background: var(--color-cards);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.space-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.space-img {
    height: 250px;
    overflow: hidden;
}

.space-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.space-card:hover .space-img img {
    transform: scale(1.05);
}

.space-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.space-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.space-content p {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.space-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.space-tags span {
    background: var(--color-bg);
    color: var(--color-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .space-card {
        flex-direction: row;
        height: auto;
    }
    .space-img {
        width: 40%;
        height: auto;
        min-height: 100%;
    }
    .space-content {
        width: 60%;
    }
}

/* =========================================
   C. GALERIE PHOTOS INTERACTIVE
   ========================================= */
.gallery-section {
    padding: 5rem 0;
    background: var(--color-cards);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-soft);
}

.gallery-item.hidden {
    display: none;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item {
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   C. AMENITIES
   ========================================= */
.amenities-section {
    padding: 5rem 0;
    background: var(--color-bg);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.amenity-card {
    background: var(--color-cards);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.amenity-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.amenity-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.amenity-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* =========================================
   D. HUB DE RÉSERVATION
   ========================================= */
.hub-section {
    padding: 5rem 0;
    background: var(--color-cards);
    border-top: 1px solid var(--color-border);
}

.hub-container {
    max-width: 800px;
    text-align: center;
}

.hub-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hub-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    text-align: left;
}

.hub-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.hub-action-content strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hub-action-content span {
    color: var(--color-muted);
    font-size: 1rem;
    display: block;
}

.arrow {
    font-size: 1.8rem;
    color: var(--color-muted);
    transition: var(--transition);
}

.hub-action:hover .arrow {
    transform: translateX(5px);
}

/* LBC Hover specific */
.lbc-action:hover {
    border-color: var(--color-accent);
}

@media (max-width: 768px) {
    .hub-action {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .btn-hub {
        width: 100%;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.alpine-footer {
    padding: 5rem 0 3rem;
    background: linear-gradient(to bottom, var(--color-cards) 0%, var(--color-accent) 100%);
    color: #ffffff;
    text-align: center;
    font-size: 0.95rem;
}

.alpine-footer p {
    color: #ffffff;
}

.alpine-footer strong {
    color: #ffffff;
}

.alpine-footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* =========================================
   VILLAGE DE BELLE PLAGNE
   ========================================= */
.village-section {
    padding: 4rem 0 1rem;
    background: var(--color-bg);
}
.village-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.village-text {
    flex: 1;
}
.village-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}
.village-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}
.village-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.village-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform var(--transition);
}
.village-image:hover img {
    transform: scale(1.03);
}
@media (max-width: 900px) {
    .village-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

/* =========================================
   CARTE DE LOCALISATION
   ========================================= */
.map-section {
    padding: 5rem 0 1rem;
    background: var(--color-bg);
}
.map-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.map-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}
.map-header p {
    color: var(--color-muted);
    font-size: 1.1rem;
}
.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

/* =========================================
   CAROUSEL ESPACES
   ========================================= */
.space-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 3;
    padding: 0 10px;
    pointer-events: none;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: #ffffff;
}

.carousel-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
