/**
 * SM4B Starter - Homepage Patterns Styles
 *
 * Styles extraits de chambredhotevosges-homepage.html
 * Chargé uniquement sur front-page.php
 *
 * @package SM4B_Starter
 */

/* ═══════════════════════════════════════════════════════════════
   FULL WIDTH & GUTENBERG OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

/* Force full width pour les sections */
.sm4b-hero,
.sm4b-usp,
.sm4b-section,
.sm4b-seasons,
.sm4b-map {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Reset pour Gutenberg group blocks */
.wp-block-group.sm4b-section {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.wp-block-group.sm4b-section > .wp-block-group__inner-container {
    max-width: none;
}

/* Placeholder vide caché */
.sm4b-placeholder:empty {
    display: none;
}

/* Section content container */
.sm4b-section__content {
    max-width: var(--sm4b-container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - Moteur de recherche proéminent
   ═══════════════════════════════════════════════════════════════ */
.sm4b-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--sm4b-color-primary);
}

.sm4b-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sm4b-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transform: scale(1.02);
}

/* Animation hero uniquement si pas de préférence reduced-motion (performance) */
@media (prefers-reduced-motion: no-preference) {
    .sm4b-hero__bg img {
        animation: heroZoom 20s ease-in-out infinite alternate;
    }
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

/* Overlays atmosphériques */
.sm4b-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg,
            rgba(26, 58, 47, 0.3) 0%,
            rgba(26, 58, 47, 0.1) 40%,
            rgba(26, 58, 47, 0.6) 100%
        ),
        radial-gradient(ellipse at 50% 120%,
            rgba(139, 105, 20, 0.15) 0%,
            transparent 60%
        );
}

/* Effet brume animé */
.sm4b-hero__mist {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    z-index: 3;
    background: linear-gradient(0deg,
        rgba(245, 242, 235, 0.85) 0%,
        rgba(245, 242, 235, 0.3) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.sm4b-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--sm4b-container-max);
    padding: 2rem;
    text-align: center;
    margin: -5vh auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sm4b-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: white;
    font-family: var(--sm4b-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sm4b-hero__badge svg {
    width: 16px;
    height: 16px;
    fill: var(--sm4b-color-accent);
}

.sm4b-hero__title {
    font-family: var(--sm4b-font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    color: white;
    line-height: 1.15;
    margin: 0 0 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.sm4b-hero__title em {
    font-style: italic;
    color: var(--sm4b-color-accent);
}

.sm4b-hero__subtitle {
    font-family: var(--sm4b-font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   MOTEUR DE RECHERCHE - Wrapper transparent, GSF gère le style
   ═══════════════════════════════════════════════════════════════ */
.sm4b-search {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Icônes dans les labels de recherche GSF */
.sm4b-search .gsf-search-bar-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sm4b-search .gsf-search-bar-label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

/* Icône Destination (pin/location) */
.sm4b-search .gsf-field-destination .gsf-search-bar-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a7c6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Icône Thématique (grid/category) */
.sm4b-search .gsf-field-thematic .gsf-search-bar-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a7c6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Icône Position (compass) */
.sm4b-search .gsf-field-position .gsf-search-bar-label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a7c6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E");
}

/* Bouton submit : retirer padding droit */
.sm4b-search .gsf-field-submit {
    padding-right: 0;
}

/* Tags populaires sous recherche */
.sm4b-search__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem 1.25rem;
    margin-top: 1.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sm4b-search__tags-label {
    font-family: var(--sm4b-font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sm4b-search__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: white;
    font-family: var(--sm4b-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--sm4b-transition);
}

.sm4b-search__tag:hover {
    color: var(--sm4b-color-accent);
    border-bottom-color: var(--sm4b-color-accent);
    text-shadow: 0 2px 12px rgba(196, 165, 90, 0.5);
}

.sm4b-search__tag-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* Placeholder pour bloc Gutenberg */
.sm4b-search__placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--sm4b-color-muted);
    font-family: var(--sm4b-font-body);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION USP - Barre de confiance
   ═══════════════════════════════════════════════════════════════ */
.sm4b-usp {
    background: white;
    border-bottom: 1px solid rgba(26, 58, 47, 0.06);
    padding: 1.35rem 2rem;
}

.sm4b-usp__container {
    max-width: var(--sm4b-container-max);
    margin: 0 auto;
}

.sm4b-usp__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 3.5rem;
}

.sm4b-usp__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sm4b-usp__icon {
    width: 36px;
    height: 36px;
    background: var(--sm4b-color-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sm4b-usp__icon svg {
    width: 18px;
    height: 18px;
    fill: var(--sm4b-color-primary);
}

.sm4b-usp__icon svg[viewBox="0 0 24 24"] {
    fill: none;
    stroke: var(--sm4b-color-primary);
    stroke-width: 2.5;
}

.sm4b-usp__text {
    font-family: var(--sm4b-font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--sm4b-color-primary);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS - Titre et conteneur
   ═══════════════════════════════════════════════════════════════ */
.sm4b-section {
    padding: var(--sm4b-section-padding) 2rem;
    background: white;
}

.sm4b-section--alt {
    background: var(--sm4b-color-cream);
}

.sm4b-section__header {
    max-width: var(--sm4b-container-max);
    margin: 0 auto 3rem;
    text-align: center;
}

.sm4b-section__eyebrow {
    display: inline-block;
    font-family: var(--sm4b-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sm4b-color-accent);
    margin-bottom: 0.75rem;
}

.sm4b-section__title {
    font-family: var(--sm4b-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--sm4b-color-primary);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.sm4b-section__subtitle {
    font-family: var(--sm4b-font-body);
    font-size: 1.1rem;
    color: var(--sm4b-color-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION SAISONS - Guide saisonnier
   ═══════════════════════════════════════════════════════════════ */
.sm4b-seasons {
    padding: var(--sm4b-section-padding) 2rem;
    background: white;
}

.sm4b-seasons__container {
    max-width: var(--sm4b-container-max);
    margin: 0 auto;
}

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

@media (max-width: 768px) {
    .sm4b-seasons__grid {
        grid-template-columns: 1fr;
    }
}

.sm4b-seasons__card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sm4b-seasons__card-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sm4b-seasons__card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sm4b-seasons__card:hover .sm4b-seasons__card-bg img {
    transform: scale(1.05);
}

.sm4b-seasons__card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(0deg,
        rgba(26, 58, 47, 0.95) 0%,
        rgba(26, 58, 47, 0.7) 40%,
        rgba(26, 58, 47, 0.2) 100%
    );
}

.sm4b-seasons__card--winter .sm4b-seasons__card-overlay {
    background: linear-gradient(0deg,
        rgba(30, 50, 70, 0.95) 0%,
        rgba(30, 50, 70, 0.7) 40%,
        rgba(30, 50, 70, 0.2) 100%
    );
}

.sm4b-seasons__card-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.sm4b-seasons__card-eyebrow {
    display: inline-block;
    font-family: var(--sm4b-font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sm4b-color-accent);
    margin-bottom: 0.5rem;
}

.sm4b-seasons__card-title {
    font-family: var(--sm4b-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: white;
    margin: 0 0 1rem;
}

.sm4b-seasons__card-text {
    font-family: var(--sm4b-font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

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

.sm4b-seasons__card-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-family: var(--sm4b-font-body);
    font-size: 0.8rem;
    color: white;
    text-decoration: none;
    transition: all var(--sm4b-transition);
}

.sm4b-seasons__card-tag:hover {
    background: white;
    color: var(--sm4b-color-primary);
}

.sm4b-seasons__cta {
    text-align: center;
    margin-top: 2.5rem;
    font-family: var(--sm4b-font-body);
    font-size: 0.95rem;
    color: var(--sm4b-color-muted);
}

.sm4b-seasons__cta a {
    color: var(--sm4b-color-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--sm4b-color-accent);
    transition: all var(--sm4b-transition);
}

.sm4b-seasons__cta a:hover {
    color: var(--sm4b-color-accent);
}

.sm4b-seasons__cta .arrow {
    margin-left: 0.25rem;
    display: inline-block;
    transition: transform var(--sm4b-transition);
}

.sm4b-seasons__cta a:hover .arrow {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION MAP - Carte interactive
   ═══════════════════════════════════════════════════════════════ */
.sm4b-map {
    padding: var(--sm4b-section-padding) 2rem;
    background: var(--sm4b-color-cream);
}

.sm4b-map__container {
    max-width: var(--sm4b-container-max);
    margin: 0 auto;
}

.sm4b-map__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sm4b-map__wrapper {
    background: white;
    border-radius: 20px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 58, 47, 0.06);
    color: var(--sm4b-color-muted);
    font-family: var(--sm4b-font-body);
    overflow: hidden;
}

/* Override pour le shortcode map GSF */
.sm4b-map__wrapper .gsf-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE HERO
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sm4b-hero {
        min-height: 100vh;
    }

    .sm4b-hero__content {
        margin-top: 0;
        padding: 1rem;
    }

    .sm4b-hero__badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .sm4b-search__tags {
        gap: 0.5rem 1rem;
    }

    .sm4b-search__tag {
        font-size: 0.85rem;
    }
}
