/* ════════════════════════════════════════════════════════════════
   HERO — Styles du contenu CMS (champs `title` + `description`)
   ----------------------------------------------------------------
   Extrait des blocs <style> qui étaient embarqués dans le contenu
   hero (et donc dupliqués 2× dans la page). Sélecteurs scopés sous
   #home (la section hero) : rendu identique au live, mais plus
   aucun effet de bord global (anciennement : `*`, `html, body`,
   `video, iframe` s'appliquaient à toute la page).
   ════════════════════════════════════════════════════════════════ */

/* ── Réinitialisation (était globale dans le contenu) ──────────── */
#home * {
    margin: 0;
    box-sizing: border-box;
}

#home {
    width: 100%;
    overflow-x: hidden;
}

/* ══ BLOC title — « hero-section » ══ */

#home .hero-section {
    position: relative;
    width: 90%;
    margin: 0 auto;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    overflow: hidden;
    margin-left: -55px;
    margin-top: 20px;
}

#home .hero-video-target {
    display: none !important;
}

#home .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

#home .hero-container {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    font-family: 'Montserrat', 'Arial', sans-serif;
    color: #ffffff;
    text-align: left;
    width: 100%;
}

#home .hero-tagline-luxury {
    position: relative;
    display: flex;
    align-items: center;
    border-left: 5px solid #FF5500;
    padding: 15px 0 15px 45px;
    margin-bottom: 30px;
}

#home .luxury-quote {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 6.5rem;
    color: #FF5500;
    position: absolute;
    line-height: 1;
    user-select: none;
    z-index: -1;
}

#home .quote-left {
    top: -25px;
    left: 15px;
}

#home .quote-right {
    bottom: -65px;
    margin-left: 10px;
    display: inline-block;
    position: relative;
}

#home .tagline-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 140px;
}

#home .fixed-text {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 2px 0 0 0;
    line-height: 1.1;
    letter-spacing: 0px;
}

#home .hero-sub-insight,
#home .hero-sub-insight2 {
    font-size: clamp(18px, 1.2vw, 30px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: 0px;
}

@media (max-width: 768px) {
    #home .hero-section {
        width: 100% !important;
        transform: translateY(-67px) !important;
        background-image: none !important;
        padding: 40px 20px 40px 20px !important;
        min-height: 240px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        margin-left: 0px;
        margin-top: 0px;
    }

    #home .hero-video-target {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: auto !important;
        height: auto !important;
        transform: translate(-50%, -50%) !important;
        object-fit: cover !important;
        z-index: 1 !important;
        border-radius: 12px !important;
    }

    #home .hero-overlay {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0, 0, 0, 0.55) !important;
        z-index: 2 !important;
    }

    #home .hero-container {
        max-width: 100% !important;
        position: relative !important;
        z-index: 3 !important;
    }

    #home .hero-tagline-luxury {
        padding-left: 25px;
        margin-bottom: 25px;
        border-left-width: 4px;
    }

    #home .luxury-quote {
        font-size: 4.6rem;
    }

    #home .quote-left {
        top: -15px;
        left: 15px;
    }

    #home .quote-right {
        bottom: -45px;
        margin-left: 2px;
    }

    #home .tagline-content {
        height: 100px;
    }

    #home .fixed-text1 {
        font-size: clamp(28px, 5.5vw, 34px);
        white-space: nowrap;
        margin: 0px 0 0 0;
        font-weight: 900;
    }

    #home .speedkdo-br-mobile {
        display: none !important;
    }
}

/* ══ BLOC description — « speedkdo-hero-responsive-wrapper » ══ */

#home .speedkdo-hero-responsive-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#home .speedkdo-hero-responsive-wrapper {
    display: block;
    width: 100%;
}

#home .speedkdo-hero-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 0;
    background: transparent !important;
}

/* Fusion mobile : la carte citation (titre) joue déjà la vidéo du slider —
   la carte média native en dessous est un doublon, on la masque sous 768px
   (au-dessus, la vidéo de la carte citation est display:none et le slider
   reprend son rôle). */
#home .hero-grid-slider {
    display: none;
}

@media (min-width: 769px) {
    #home .hero-grid-slider {
        display: block;
    }
}

#home .speedkdo-hero-container {
    width: 100%;
    max-width: 1200px;
    font-family: 'Montserrat', 'Inter', -apple-system, sans-serif;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#home .speedkdo-hero-title {
    font-size: clamp(2.4rem, 3.8vw, 3.4rem);
    font-weight: 800;
    color: #ff5500 !important;
    line-height: 1.1;
    letter-spacing: -0.07em;
    white-space: nowrap !important;
}

#home .speedkdo-hero-subtext {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    letter-spacing: 0em;
    margin-top: -6px;
}

#home .speedkdo-hero-result {
    font-size: 1rem !important;
    font-weight: 100 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    max-width: 850px;
    letter-spacing: 0.02em;
    margin-top: 100px;
}

#home .speedkdo-br-pc {
    display: block !important;
}

@media (max-width: 768px) {
    #home .speedkdo-hero-responsive-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    #home .speedkdo-hero-block {
        padding: 20px 10px 25px !important;
        order: 2 !important;
        position: relative !important;
        z-index: 10 !important;
        margin-top: -47px;
    }

    /* Vidéo/iframes du hero passés en premier (anciennement global :
       `video, iframe` touchait toute la page) */
    #home .speedkdo-hero-block ~ video,
    #home .speedkdo-hero-block ~ div video,
    #home .speedkdo-hero-block ~ .elementor-background-video-container,
    #home video,
    #home iframe {
        order: 1 !important;
        position: relative !important;
        margin-top: 0px !important;
        z-index: 5 !important;
    }

    #home .speedkdo-hero-container {
        max-width: 100% !important;
        gap: 12px !important;
    }

    #home .speedkdo-hero-title {
        font-size: 2.65rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        letter-spacing: -0.07em;
    }

    #home .speedkdo-hero-subtext {
        color: #0d0e12 !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        line-height: 1.1 !important;
        max-width: 100% !important;
        margin-top: -25px;
        margin-bottom: -12px;
        letter-spacing: 0em;
    }

    #home .speedkdo-br-pc {
        display: none !important;
    }
}