/* Hero accueil — centré, design cohérent */

.yam-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.yam-hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.yam-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: yamHeroKenBurns 18s ease-in-out infinite;
}

.yam-hero__slide:nth-child(1) { animation-delay: 0s; }
.yam-hero__slide:nth-child(2) { animation-delay: 6s; }
.yam-hero__slide:nth-child(3) { animation-delay: 12s; }

@keyframes yamHeroKenBurns {
    0% { opacity: 0; transform: scale(1.06); }
    4% { opacity: 1; }
    30% { opacity: 1; transform: scale(1); }
    33% { opacity: 0; }
    100% { opacity: 0; transform: scale(1.04); }
}

.yam-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 70% at 50% 45%, rgba(25, 18, 10, 0.55) 0%, rgba(15, 10, 6, 0.85) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    pointer-events: none;
}

.yam-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 5.5rem 15px 6rem;
}

/* ——— Panneau central (léger décalage droite = centrage visuel écran) ——— */
.yam-hero__inner > .row > [class*="col-"] {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .yam-hero__inner > .row > [class*="col-"] {
        transform: translateX(clamp(1.25rem, 4vw, 3.5rem));
    }
}

.yam-hero__panel {
    text-align: center;
    margin: 0 auto;
    max-width: 820px;
    padding: 2.25rem 2.5rem 2.5rem;
    border-radius: 24px;
    background: rgba(18, 14, 10, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

/* Badge + vidéo centrés */
.yam-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.75rem;
}

.yam-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: #d78731;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(215, 135, 49, 0.45);
}

.yam-hero__video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.yam-hero__video:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff !important;
}

.yam-hero__video i {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #d78731;
    font-size: 0.75rem;
}

/* Titre */
.yam-hero__title {
    font-size: clamp(1.75rem, 4.5vw, 2.85rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.yam-hero__title .hero-animated-text--center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.5rem;
    overflow: visible;
    white-space: normal;
}

.yam-hero__title .hero-line {
    display: inline-block;
    white-space: nowrap;
}

.yam-hero__title .hero-line--accent {
    color: #f5b84a;
}

.yam-hero__tagline {
    display: block;
    font-weight: 500;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0.25rem;
}

/* Texte descriptif */
.yam-hero__lead {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    margin: 1.5rem auto 2rem;
    max-width: 620px;
    padding: 1.15rem 1.5rem;
    border-top: 3px solid #d78731;
    border-bottom: 3px solid #d78731;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

/* Boutons propres (sans fancy-btn du thème) */
.yam-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.yam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 0.9rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.yam-btn--primary {
    background: #d78731;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(215, 135, 49, 0.5);
}

.yam-btn--primary:hover {
    background: #e8942e;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(215, 135, 49, 0.55);
}

.yam-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.yam-btn--outline:hover {
    background: #fff;
    color: #5c3d1e !important;
    transform: translateY(-2px);
}

/* Indicateurs slider — centrés */
.yam-hero__dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.yam-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.yam-hero__dot:nth-child(1) { animation: yamHeroDot1 18s infinite; }
.yam-hero__dot:nth-child(2) { animation: yamHeroDot2 18s infinite; }
.yam-hero__dot:nth-child(3) { animation: yamHeroDot3 18s infinite; }

@keyframes yamHeroDot1 {
    0%, 32% { background: #fff; transform: scale(1.2); }
    33%, 100% { background: rgba(255, 255, 255, 0.35); transform: scale(1); }
}
@keyframes yamHeroDot2 {
    0%, 32% { background: rgba(255, 255, 255, 0.35); }
    33%, 65% { background: #fff; transform: scale(1.2); }
    66%, 100% { background: rgba(255, 255, 255, 0.35); transform: scale(1); }
}
@keyframes yamHeroDot3 {
    0%, 65% { background: rgba(255, 255, 255, 0.35); }
    66%, 99% { background: #fff; transform: scale(1.2); }
    100% { background: rgba(255, 255, 255, 0.35); transform: scale(1); }
}

.yam-hero__scroll {
    position: absolute;
    bottom: 1.75rem;
    right: 2rem;
    z-index: 3;
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 13px;
}

.yam-hero__scroll::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: yamScrollBounce 2s ease-in-out infinite;
}

@keyframes yamScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.4; }
}

/* Bandeau qualités */
.yam-hero + .fancy-top-features-area {
    margin-top: 0;
    padding: 2.5rem 0;
    background: #f7f8fa;
}

.page-accueil .fancy-top-features-area .fancy-top-features-content {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    width: 100% !important;
    box-shadow: none;
}

.page-accueil .fancy-top-features-area .single-top-feature {
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
    .yam-hero__inner > .row > [class*="col-"] {
        transform: none;
    }

    .yam-hero__panel {
        padding: 1.75rem 1.25rem 2rem;
    }

    .yam-hero__meta {
        flex-direction: column;
    }

    .yam-hero__meta .yam-hero__badge,
    .yam-hero__meta .yam-hero__video {
        width: 100%;
        max-width: 280px;
    }

    .yam-btn {
        width: 100%;
        max-width: 280px;
    }

    .yam-hero__scroll {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yam-hero__slide { animation: none; opacity: 0; }
    .yam-hero__slide:first-child { opacity: 1; }
    .yam-hero__dot { animation: none !important; }
}
