/*
Theme Name: Les Galopins
Theme URI: 
Author: DeepMind
Author URI: 
Description: Thème WordPress pour l'Auberge Les Galopins - Chalet Chic.
Version: 1.0.0
Text Domain: lesgalopins
*/

:root {
    --primary-color: #839B89;
    --primary-dark: #6D8271;
    --text-color: #2B332D;
    --text-light: #FDFBF7;
    --bg-color: #FAF8F5;
    --bg-dark: #3A473D;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-accent: 'Kalam', cursive;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --shadow-soft: 0 10px 40px rgba(58, 71, 61, 0.06);
    --shadow-hover: 0 15px 50px rgba(58, 71, 61, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4a4e4a;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Glassmorphism Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: var(--bg-color);
}

#navbar.scrolled {
    background: #FFFFFF;
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

#navbar.scrolled .logo, #navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px; /* Ajuster selon le rendu souhaité */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    mix-blend-mode: multiply; /* Détourage parfait du fond blanc */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(127, 145, 131, 0.2);
}

.btn-secondary {
    font-family: var(--font-body);
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(127, 145, 131, 0.2);
}

/* Sections */
.section {
    padding: 6rem 5%;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(43, 51, 45, 0.5), rgba(70, 60, 50, 0.6)), url('./assets/auberge_exterieur.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: var(--text-light);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.6s;
    margin-bottom: 3rem;
}

.hero .btn-primary {
    background-color: var(--bg-color);
    color: var(--primary-dark) !important;
    border-color: var(--bg-color);
}

.hero .btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--primary-dark) !important;
}

/* Cards Grid (Chambres) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-content {
    padding: 3rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    flex: 1; /* Pushes the button to the bottom */
}

.play-btn {
    position: absolute;
    top: 35%; /* Centered vertically relative to the video, roughly */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(43, 51, 45, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(253, 251, 247, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    pointer-events: none;
}

.card:hover .play-btn {
    background: rgba(43, 51, 45, 0.6);
    transform: translate(-50%, -50%) scale(1.05);
}

.card img, .card video {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card video {
    pointer-events: none; /* Prevent interaction and controls on mobile */
}

.play-btn {
    position: absolute;
    top: 175px; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(4px);
    transition: var(--transition);
    pointer-events: none;
    animation: pulsePlay 2s infinite;
    z-index: 10;
}
.play-btn svg {
    margin-left: 4px;
}
.card.is-playing .play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}
@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.card:hover img, .card:hover video {
    transform: scale(1.03);
}

.card-content {
    padding: 3rem 2.5rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--text-color);
}

/* Menu Section */
.menu-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.menu-section h2 {
    color: var(--text-light);
}

.menu-section p {
    color: #b5c0b8; /* Lighter sage accent */
}

.menu-flex {
    display: flex;
    justify-content: center;
}

.menu-content {
    flex: 0 1 800px;
    background: #fff;
    padding: 5rem 4rem;
    margin: 0;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(131, 155, 137, 0.2);
}

.menu-content h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.menu-content p {
    color: #4a4e4a;
    font-size: 1.3rem;
    line-height: 1.6;
}

.menu-items {
    margin-top: 3.5rem;
}

.menu-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(131, 155, 137, 0.4);
}

.menu-item-last {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Avis Section */
.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.avis-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(131, 155, 137, 0.1);
    transition: var(--transition);
}

.avis-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    letter-spacing: 5px;
}

.avis-card p {
    font-style: italic;
    color: #4a4e4a;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.avis-card h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 5rem 4rem;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #b5c0b8; /* Lighter sage accent */
}

.contact-form, .contact-form-wrapper .wpforms-form {
    flex: 1.5;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-form input, .contact-form textarea,
.contact-form-wrapper .wpforms-form input, 
.contact-form-wrapper .wpforms-form textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    background: transparent;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus,
.contact-form-wrapper .wpforms-form input:focus, 
.contact-form-wrapper .wpforms-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 1s;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

#navbar.scrolled .hamburger span {
    background-color: var(--text-color);
}

@media (max-width: 900px) {
    .menu-flex {
        flex-direction: column;
    }
    
    .menu-content {
        margin-left: 0;
        margin-top: 0; /* Fixed negative overlap */
        padding: 4rem 2rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }
    
    .contact-box {
        padding: 3rem 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important; /* Fixes iOS zoom bug on fixed backgrounds with inline styles */
    }
    
    .hero-content {
        padding-top: 60px; /* Compensation for fixed navbar */
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .pre-title {
        font-size: 0.85rem !important;
    }
    
    .contact-box {
        padding: 2.5rem 1.5rem !important;
    }
    
    .contact-box h2 {
        font-size: 2.2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .coord-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .coord-item span:first-child {
        width: auto !important;
    }
    
    .cards-grid, .avis-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links a {
        color: var(--text-color);
        margin: 15px 0;
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
