/*
 * ============================================================
 *  Theme Name:  BnB Astra Child
 *  Description: Child theme Astra pour le projet B&B
 *  Template:    astra
 *  Version:     1.0.0
 *  Author:      Aziz Ouergli
 * ============================================================
 */

/* ─── IMPORT GOOGLE FONTS ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ─── VARIABLES GLOBALES ──────────────────────────────────── */
:root {
    --color-primary:    #59553C;   /* Vert foncé Volare */
    --color-secondary:  #231F1E;   /* Brun foncé pour textes et header */
    --color-accent:     #D3CBBA;   /* Beige clair fond */
    --color-white:      #FFFFFF;
    --color-light:      #F8F4EF;
    --color-dark:       #231F1E;
    --color-gold:       #D3CBBA;   /* Beige pour accents */

    --font-heading: 'Marcellus', Georgia, serif;
    --font-body:    'Lato', Arial, sans-serif;

    --border-radius: 8px;
    --shadow:        0 4px 20px rgba(0,0,0,0.1);
    --transition:    all 0.3s ease;
}

/* ─── RESET & BASE ────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-secondary);
    background-color: var(--color-white);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── HEADER ──────────────────────────────────────────────── */
.site-header,
.ast-header-break-point .main-header-bar,
#masthead,
.main-header-bar {
    background-color: var(--color-secondary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.ast-site-identity .site-title a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary) !important;
}

/* ─── NAVIGATION ──────────────────────────────────────────── */
.main-header-menu .menu-item > a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent) !important;
    padding: 10px 16px !important;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a {
    color: var(--color-primary) !important;
}

/* Hide site title text — logo image only */
.ast-site-identity .site-title,
.ast-site-identity .ast-site-title,
.ast-site-identity .site-description {
    display: none !important;
}

/* ─── LANGUAGE SWITCHER (Polylang) ───────────────────────── */
/* Switcher items in the main nav */
.main-header-menu .pll-parent-menu-item > a,
.main-header-menu .lang-item > a,
.main-header-menu .pll-parent-menu-item > .menu-item > a {
    color: var(--color-accent) !important;  /* beige #D3CBBA */
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
    border: 1px solid rgba(211,203,186,0.35);
    border-radius: 4px;
    margin-left: 6px;
    transition: all 0.2s ease;
}
.main-header-menu .pll-parent-menu-item > a:hover,
.main-header-menu .lang-item > a:hover {
    background: rgba(211,203,186,0.15) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-white) !important;
}
/* Current language: slightly highlighted */
.main-header-menu .lang-item.current-lang > a {
    background: rgba(211,203,186,0.12) !important;
    border-color: rgba(211,203,186,0.5) !important;
}
/* Flag images */
.main-header-menu .pll-parent-menu-item img,
.main-header-menu .lang-item img {
    width: 16px !important;
    height: auto !important;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
}

/* ─── BOUTONS ─────────────────────────────────────────────── */
.ast-btn,
.wp-block-button__link,
.button,
input[type="submit"],
.elementor-button {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: none;
    border-radius: var(--border-radius);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.ast-btn:hover,
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
.elementor-button:hover {
    background-color: var(--color-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,111,71,0.3);
}

/* Bouton CTA principal "Book Now" */
.btn-book-now {
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold)) !important;
    font-size: 1rem !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
}

/* ─── HERO SECTION ────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 1;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    max-width: 800px;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* ─── ROOM CARDS ──────────────────────────────────────────── */
.room-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-card .room-card-body {
    padding: 24px;
}

.room-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.room-card .room-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 12px 0;
}

.room-card .room-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

.room-card .room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.room-card .feature-tag {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ─── SECTION STYLES ──────────────────────────────────────── */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 0 auto 1.5rem;
}

/* Sections alternées */
.section-light {
    background-color: var(--color-light);
    padding: 80px 0;
}

.section-white {
    background-color: var(--color-white);
    padding: 80px 0;
}

.section-dark {
    background-color: var(--color-secondary);
    padding: 80px 0;
    color: var(--color-white);
}

/* ─── SERVICES ICONS ──────────────────────────────────────── */
.service-item {
    text-align: center;
    padding: 30px 20px;
}

.service-item .service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.service-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-item p {
    font-size: 0.9rem;
    color: #777;
}

/* ─── BOOKING WIDGET MOTOPRESS ────────────────────────────── */
.mphb-search-form-wrap {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.mphb-search-form-wrap .mphb-datepick,
.mphb-search-form-wrap select,
.mphb-search-form-wrap input {
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
}

.mphb-search-form-wrap .mphb-datepick:focus,
.mphb-search-form-wrap select:focus,
.mphb-search-form-wrap input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.mphb-search-form-wrap .mphb-search-button {
    background: var(--color-primary) !important;
    border-radius: 50px !important;
    padding: 14px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

.site-footer h4 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 8px;
}

.site-footer a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }

    .room-card img {
        height: 200px;
    }

    .section-light,
    .section-white,
    .section-dark {
        padding: 50px 0;
    }

    .mphb-search-form-wrap {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .btn-book-now {
        width: 100%;
        text-align: center;
    }
}
