/*
Theme Name: LNDB
Author: Pierre Husson
Version: 1.0
Description: Thème personnalisé pour Le Nid de la Buèges
*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* ===== RESET ET BASE ===== */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #b8835d;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #cccccc;
    text-decoration: none;
}

/* Typographie des titres H1 pour toutes les pages (identique à la home) */
body:not(.home) h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}


/* ===== EN-TÊTE ET TITRE ===== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

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

.site-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* ===== MENU TOGGLE (MOBILE) ===== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
}

/* ===== MENU PRINCIPAL ===== */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation ul li a {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #cccccc;
}

.main-navigation ul li.current-menu-item a {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
}

/* ===== SECTION HERO ===== */
.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
}

.hero-content,
.hero-content2 {
    position: absolute;
    top: 40%;
    transform: translateY(-30%);
    color: white;
    max-width: 600px;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    padding: 20px;
}

.hero-content {
    left: 5%;
    padding: 40px;
}

.hero-content2 {
    right: 5%;
}

.hero-content h1,
.hero-content2 h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #704628;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid white;
}

.button:hover {
    background-color: #341a0e;
    border-color: #cccccc;
}

/* Séparateur blanc */
hr.separateur-blanc {
    border: 0;
    height: 1px;
    background: #fff;
    background-image: none;
    margin: 2rem auto;
    width: 90%;
}

/* Page Title Styling */
main.page h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight:bold;
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: #ffffff;
}

/* Introductory Text Styling */
main.page > p {
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    margin-left: auto;
    margin-right: 2.5rem;
    max-width: 800px;
    line-height: 1.8;
    color: #b5afaf;
}

/* General Page Layout */
main.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}


/* ===== BLOCS DE FONCTIONNALITÉS ===== */
.feature-blocks {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.feature-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.feature-title {
    flex: 0 0 20%;
    padding: 0 1rem;
    text-align: left;
}

.feature-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature-title .subtitle {
    font-size: 1rem;
    color: #b5afaf;
    margin: 0;
}

.feature-text {
    flex: 0 0 60%;
    margin-top: 5%;
    padding: 0 1rem;
    text-align: left;
}

.feature-text p {
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    max-width: 90%;
}

/* ===== PAGES TEXTE (Mentions légales, CGV, etc.) ===== */
.page-text-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.page-text-content h1,
.page-text-content h2,
.page-text-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-text-content h1 {
    font-size: 2rem;
    margin-top: 2rem;
}

.page-text-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    border-bottom: 1px solid #b8835d;
    padding-bottom: 0.5rem;
}

.page-text-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    color: #b8835d;
}

.page-text-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.page-text-content ul {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-text-content li {
    margin-bottom: 0.5rem;
}


/* CONTACT FORM */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.button {
    background-color: #704628;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.success-message {
    color: #4CAF50;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.error-message {
    color: #f44336;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
}


/* Modula Gallery Container */
.modula-gallery {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

/* Modula Gallery Items */
.modula-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.modula-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Modula Figure Captions */
.modula-item figcaption {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #b5afaf;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: 0;
}

/* Introduction Text Styling */
.modula-gallery + .wp-block-paragraph.has-text-align-center {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.8;
    color: #b5afaf;
}

/* Page Title */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem 0;
    color: #ffffff;
}


/* ===== FOOTER ===== */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 1rem;
    font-family: 'Open Sans', sans-serif;
}

/* Upper Block: Testimonials and Map */
.footer-upper {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer-testimonials {
    flex: 1;
    min-width: 300px;
    margin: auto;

}

.testimonial-container {
    position: relative;
    height: 150px; /* Fixed height to accommodate testimonials */
    min-height: 150px; /* Ensure minimum height */
    margin-bottom: 1rem; /* Additional spacing if needed */
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: left;
}

.testimonial:first-child {
    opacity: 1;
}

.testimonial p {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.footer-map {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: 1px solid #333333;
}

.footer-map small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #cccccc;
}

.footer-map a {
    color: #cccccc;
    text-decoration: underline;
}

/* Lower Block: Address and Legal */
.footer-lower {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333333;
    text-align: center;
}

.footer-contact p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.footer-links a {
    display: inline-block;
    margin: 0 1rem;
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #cccccc;
}

.footer-social {
    margin: 1rem 0;
}

.footer-social a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-social a:hover {
    color: #cccccc;
}

.footer-legal {
    margin-top: 1rem;
    font-size: 0.8rem;
}

.footer-legal a {
    color: #ffffff;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #cccccc;
}

.resa-left {
    text-align:left;
}

/* Alignement global des textes pour toutes les pages */
body.page .entry-content,
body.page .entry-content p,
body.page .entry-content ul,
body.page .entry-content ol,
body.page .entry-content h1,
body.page .entry-content h2,
body.page .entry-content h3,
body.page .entry-content h4,
body.page .entry-content h5,
body.page .entry-content h6 {
    text-align: left !important;
    color: #ffffff !important; /* Couleur définie dans votre thème */
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Style spécifique pour les listes */
body.page .entry-content ul,
body.page .entry-content ol {
    padding-left: 20px;
}

/* Style pour les titres */
body.page .entry-content h1,
body.page .entry-content h2,
body.page .entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Style pour les paragraphes */
body.page .entry-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Style pour le bloc des règles de prix */
.regles-prix, #prix_total_container {
    text-align: left !important;
    margin-left: auto;
    margin-right: 2.5rem;
    max-width: 800px;
}

.regles-prix ul {
    padding-left: 20px;
}

/* Style pour les images dans le contenu */
body.page .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/*  CSS global pour aligner les textes des pages redactionnelles */
/* Alignement global des textes pour toutes les pages */
body,
body p,
body ul,
body ol,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body li,
body div {
    text-align: left !important;
}
#stripe_payment_link_container {
    text-align:center !important;
}
/* Alignement spécifique pour les contenus WordPress */
.entry-content,
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content li,
.entry-content div {
    text-align: left !important;
    color: inherit !important;
}

/* Alignement pour les titres dans les blocs WordPress */
.wp-block-heading {
    text-align: left !important;
}

/* Alignement pour les paragraphes dans les blocs WordPress */
.wp-block-paragraph {
    text-align: left !important;
}

/* Alignement pour les listes dans les blocs WordPress */
.wp-block-list,
.wp-block-list li {
    text-align: left !important;
}

/* Alignement pour les blocs de groupe */
.wp-block-group,
.wp-block-group p,
.wp-block-group ul,
.wp-block-group ol,
.wp-block-group li {
    text-align: left !important;
}

/* Alignement pour les colonnes */
.wp-block-column,
.wp-block-columns p,
.wp-block-columns ul,
.wp-block-columns ol,
.wp-block-columns li {
    text-align: left !important;
}

/* Alignement pour les blocs de texte riche */
.wp-block-html,
.wp-block-freeform {
    text-align: left !important;
}

/* Alignement pour les blocs de Booking Calendar */
.wpbc_r_captcha,
.wpbc_r_captcha p,
.wpbc_r_captcha label {
    text-align: left !important;
}

/* Alignement pour les blocs de tarifs */
.regles-prix,
.regles-prix ul,
.regles-prix li {
    text-align: left !important;
}


/* ===== VERSION MOBILE ===== */
@media (max-width: 767px) {
    .site-header {
        flex-wrap: wrap;
        padding: 1rem;
        margin: 1rem 0;
    }

    .site-logo-title {
        width: 100%;
        justify-content: center;
    }

    .site-title {
        text-align: center;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        left: 1rem;
    }

    .main-navigation {
        width: 100%;
        order: 3;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation ul li {
        margin: 0.5rem 0;
    }

    .hero-content,
    .hero-content2 {
        left: 0;
        margin: 5%;
    }

    .footer-upper {
        flex-direction: column;
    }

    .footer-testimonials {
        margin-bottom: 4rem;
    }

    .footer-lower {
        text-align: center;
    }

    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* ===== VERSION DESKTOP ===== */
@media (min-width: 768px) {
    .site-header {
        margin: 2rem 0;
    }

    .main-navigation ul {
        display: flex;
        justify-content: center;
    }

    .main-navigation ul li {
        margin: 0 1rem;
        position: relative;
    }

    .menu-toggle {
        display: none;
    }

    .hero-section {
        height: 100vh;
    }

    .hero-content h1,
    .hero-content2 h1 {
        font-size: 2rem;
    }

    .hero-content p,
    .hero-content2 p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .feature-block {
        flex-direction: row;
        align-items: flex-start;
    }

    .feature-text {
        display: flex;
        align-items: center;
    }

    .feature-text p {
        max-width: 100%;
    }
}
