/* ═══════════════════════════════════════════════════════════════
   CÔTÉ AVENTURE — HERO ACCUEIL
   Tous les sélecteurs sont préfixés .ca-hero-* pour ne pas
   entrer en conflit avec Kadence Blocks ou les autres pages.

   Spécificité boostée avec .ca-hero (parent) + !important sur
   les propriétés que Kadence aurait tendance à écraser.
═══════════════════════════════════════════════════════════════ */

.ca-hero {
    /* Variables locales — ne polluent pas le reste du site */
    --ca-forest:    #3B5E4A;
    --ca-forest-dk: #2A4335;
    --ca-forest-lt: #EBF3EC;
    --ca-gold:      #F4C26A;
    --ca-cream:     #F5F0E8;
    --ca-rust:      #C4511A;
    --ca-text:      #2A3F30;
    --ca-muted:     rgba(245, 240, 232, .74);
    --ca-white:     #FFFFFF;

    /* Reset défensif contre Kadence */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--ca-forest);
    font-family: 'Quicksand', sans-serif;
    position: relative;
}

/* Force la police Google même si elle n'est pas encore chargée */
.ca-hero,
.ca-hero * {
    box-sizing: border-box;
}

/* Charger les polices via @import (en complément du PHP) */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Quicksand:wght@400;600;700&display=swap');

/* ─────── GRID PRINCIPALE 50/50 ─────── */
.ca-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* ─────── COLONNE GAUCHE ─────── */
.ca-hero-left {
    background: var(--ca-forest);
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Lignes de carnet en arrière-plan */
.ca-hero-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 31px,
        rgba(255, 255, 255, .035) 31px,
        rgba(255, 255, 255, .035) 32px
    );
    pointer-events: none;
    z-index: 1;
}

/* Marge "rouge" verticale */
.ca-hero-left::after {
    content: '';
    position: absolute;
    left: 36px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 100, 80, .18);
    pointer-events: none;
    z-index: 1;
}

/* Blobs décoratifs */
.ca-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}
.ca-hero-blob-1 {
    width: 360px;
    height: 360px;
    background: rgba(244, 194, 106, .1);
    bottom: -90px;
    right: -70px;
}
.ca-hero-blob-2 {
    width: 200px;
    height: 200px;
    background: rgba(91, 158, 201, .09);
    top: -40px;
    left: 60px;
}

/* Tous les éléments enfants au-dessus des décorations */
.ca-hero-left > *:not(.ca-hero-blob) {
    position: relative;
    z-index: 2;
}

/* Eyebrow */
.ca-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ca-gold);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.ca-hero-eyebrow-line {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--ca-gold);
    border-radius: 2px;
}

/* Titre H1 — on écrase la spécificité Kadence */
.ca-hero .ca-hero-title {
    font-family: 'Baloo 2', cursive !important;
    font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
    font-weight: 800 !important;
    color: var(--ca-cream) !important;
    line-height: 1.15 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
}
.ca-hero .ca-hero-title mark {
    background: var(--ca-gold);
    color: var(--ca-forest-dk);
    padding: 1px 10px;
    border-radius: 6px;
    font-style: normal;
}

/* Sous-titre */
.ca-hero .ca-hero-sub {
    font-size: .95rem !important;
    color: var(--ca-muted) !important;
    line-height: 1.75 !important;
    max-width: 440px;
    margin: 0 0 26px 0 !important;
}

/* ─────── BARRE DE RECHERCHE ─────── */
.ca-hero-search {
    display: flex;
    align-items: center;
    background: var(--ca-white);
    border-radius: 50px;
    padding: 6px 6px 6px 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
    max-width: 540px;
    gap: 8px;
}
.ca-hero-search-icon {
    font-size: 1.1rem;
    color: var(--ca-forest);
    flex-shrink: 0;
}
.ca-hero-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: .92rem !important;
    color: var(--ca-text) !important;
    padding: 12px 4px !important;
    min-width: 0;
    box-shadow: none !important;
}
.ca-hero-search-input::placeholder {
    color: #9AA89C;
}
.ca-hero-search-btn {
    background: var(--ca-forest-dk) !important;
    color: var(--ca-cream) !important;
    border: none !important;
    padding: 12px 22px !important;
    border-radius: 50px !important;
    font-family: 'Baloo 2', cursive !important;
    font-weight: 700 !important;
    font-size: .88rem !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.ca-hero-search-btn:hover {
    background: var(--ca-forest) !important;
}

/* ─────── QUICK FILTERS ─────── */
.ca-hero-quickfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    max-width: 540px;
}
.ca-qf {
    background: rgba(245, 240, 232, .08) !important;
    border: 1.5px solid rgba(245, 240, 232, .18) !important;
    color: rgba(245, 240, 232, .88) !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all .2s !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
    backdrop-filter: blur(6px);
}
.ca-qf:hover {
    background: rgba(244, 194, 106, .15) !important;
    border-color: var(--ca-gold) !important;
    color: var(--ca-gold) !important;
    transform: translateY(-2px);
}
.ca-qf.is-active {
    background: var(--ca-gold) !important;
    border-color: var(--ca-gold) !important;
    color: var(--ca-forest-dk) !important;
}

/* ─────── STATS ─────── */
.ca-hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.ca-hero-stat strong {
    display: block;
    font-family: 'Baloo 2', cursive !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: var(--ca-gold) !important;
    line-height: 1 !important;
    margin-bottom: 4px;
}
.ca-hero-stat span {
    font-size: .72rem !important;
    color: rgba(245, 240, 232, .5) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ─────── COLONNE DROITE : PHOTO ─────── */
.ca-hero-right {
    position: relative;
    overflow: hidden;
    background: var(--ca-forest);
}
.ca-hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
/* Léger dégradé pour la jonction visuelle avec la colonne gauche */
.ca-hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(59, 94, 74, .35) 0%,
        rgba(59, 94, 74, 0) 25%,
        rgba(59, 94, 74, 0) 100%
    );
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   ZONE CONTENU SOUS LE HERO (shortcodes WP Grid Builder)
   On lui donne de l'air et on respecte les containers Kadence
═══════════════════════════════════════════════════════════════ */
.ca-front-content {
    padding: 40px 0;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* Tablette */
@media (max-width: 1100px) {
    .ca-hero-left {
        padding: 52px 40px;
    }
    .ca-hero-search {
        flex-wrap: wrap;
    }
    .ca-hero-search-input {
        min-width: 200px;
    }
}

/* Mobile : on passe en colonne, photo au-dessus */
@media (max-width: 860px) {
    .ca-hero-grid {
        grid-template-columns: 1fr;
    }
    .ca-hero-right {
        min-height: 220px;
        order: -1; /* photo en premier sur mobile */
    }
    .ca-hero-left {
        padding: 40px 28px;
    }
    .ca-hero .ca-hero-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    }
    .ca-hero-search {
        padding: 5px 5px 5px 16px;
    }
    .ca-hero-search-btn {
        padding: 10px 16px !important;
        font-size: .82rem !important;
    }
    .ca-hero-stats {
        gap: 22px;
    }
    .ca-hero-stat strong {
        font-size: 1.3rem !important;
    }
}

/* Petit mobile : barre de recherche en 2 lignes */
@media (max-width: 520px) {
    .ca-hero-search {
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, .95);
        border-radius: 16px;
        padding: 8px;
        gap: 6px;
    }
    .ca-hero-search-input {
        padding: 10px 14px !important;
        background: rgba(0, 0, 0, .03) !important;
        border-radius: 50px !important;
    }
    .ca-hero-search-icon {
        display: none;
    }
    .ca-hero-search-btn {
        width: 100%;
        justify-content: center;
    }
    .ca-hero-quickfilters {
        gap: 6px;
    }
    .ca-qf {
        padding: 7px 12px !important;
        font-size: .76rem !important;
    }
}
