/* ============================================================
   HERO IMPROVEMENTS — Conversion Optimized
   ============================================================ */

/* ----------------------------------------------------------
   KEYFRAMES
   ---------------------------------------------------------- */

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroBadgePop {
    0%   { opacity: 0; transform: scale(0.7) translateY(-10px); }
    80%  { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(205, 127, 50, 0.55); }
    60%       { box-shadow: 0 0 0 16px rgba(205, 127, 50, 0); }
}

@keyframes heroKenBurns {
    0%   { transform: scale(1)    translateX(0px); }
    100% { transform: scale(1.08) translateX(-20px); }
}

@keyframes shimmerSlide {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ----------------------------------------------------------
   HOMEPAGE HERO — background Ken Burns
   ---------------------------------------------------------- */

.hero-bg {
    animation: heroKenBurns 20s ease-in-out infinite alternate;
    will-change: transform;
}

/* ----------------------------------------------------------
   HOMEPAGE HERO — staggered entrance
   ---------------------------------------------------------- */

.hero-available-dot { animation: heroFadeInUp 0.6s ease 0.05s both; }
.hero-rating-badge  { animation: heroBadgePop  0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both; }
.hero-tag           { animation: heroFadeInUp 0.7s ease 0.25s both; }
.hero-heading       { animation: heroFadeInUp 0.9s ease 0.40s both; }
.hero-text          { animation: heroFadeInUp 0.7s ease 0.60s both; }
.hero-ctas          { animation: heroFadeInUp 0.7s ease 0.80s both; }
.hero-trust-strip   { animation: heroFadeInUp 0.6s ease 1.00s both; }

/* ----------------------------------------------------------
   AVAILABILITY DOT (homepage hero)
   ---------------------------------------------------------- */

.hero-available-dot {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 1rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.available-dot {
    width: 9px;
    height: 9px;
    background: #4ade80;
    border-radius: 50%;
    animation: dotBlink 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   RATING BADGE (homepage hero)
   ---------------------------------------------------------- */

.hero-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 18px;
    margin-bottom: 1.4rem;
}

.hero-rating-badge .rating-stars {
    color: #F5C842;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.hero-rating-badge span:last-child {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
}

/* ----------------------------------------------------------
   CTA PRIMARY — pulse + shimmer on hover
   ---------------------------------------------------------- */

.cta-primary {
    animation: ctaPulse 2.8s ease-in-out 2s infinite;
    position: relative;
    overflow: hidden;
    border-radius: 4px !important;
}

.cta-primary:hover {
    animation: none;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 70%
    );
    background-size: 250% auto;
    opacity: 0;
    transition: opacity 0.25s;
}

.cta-primary:hover::before {
    opacity: 1;
    animation: shimmerSlide 0.55s ease forwards;
}

/* ----------------------------------------------------------
   PHONE CTA (homepage hero)
   ---------------------------------------------------------- */

.cta-phone-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.1rem 1.8rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.cta-phone-hero i {
    color: var(--primary-bronze);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.cta-phone-hero:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   TRUST STRIP (homepage hero)
   ---------------------------------------------------------- */

.hero-trust-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-strip span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.hero-trust-strip i {
    color: #4ade80;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   SUB-PAGE HEROES — global improvements
   ---------------------------------------------------------- */

.services-hero {
    height: 78vh;
    min-height: 580px;
}

/* Full-width background with better gradient overlay */
.services-hero-bg {
    width: 100%;
    left: 0;
}

.services-hero-bg::after {
    background: linear-gradient(
        108deg,
        rgba(13, 27, 42, 0.97) 0%,
        rgba(13, 27, 42, 0.82) 42%,
        rgba(13, 27, 42, 0.45) 100%
    );
}

/* Reduce excessive left padding */
.services-hero-content {
    padding-left: 80px;
    max-width: 780px;
}

/* Staggered entrance for sub-page hero content */
.services-hero-content .breadcrumb        { animation: heroFadeInUp 0.5s ease 0.10s both; }
.services-hero-content h1                 { animation: heroFadeInUp 0.8s ease 0.25s both; }
.services-hero-content .red-line-small    { animation: slideInLeft  0.5s ease 0.42s both; }
.services-hero-content > p               { animation: heroFadeInUp 0.6s ease 0.52s both; }
.hero-action-strip                        { animation: heroFadeInUp 0.6s ease 0.70s both; }
.hero-badge-strip                         { animation: heroFadeInUp 0.5s ease 0.90s both; }

/* ----------------------------------------------------------
   HERO ACTION STRIP (sub-pages)
   ---------------------------------------------------------- */

.hero-action-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-bronze);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: ctaPulse 2.8s ease-in-out 1.5s infinite;
    position: relative;
    overflow: hidden;
}

.hero-btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    background-size: 250% auto;
    opacity: 0;
    transition: opacity 0.25s;
}

.hero-btn-cta:hover {
    background: var(--primary-bronze-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(205, 127, 50, 0.45);
    animation: none;
}

.hero-btn-cta:hover::before {
    opacity: 1;
    animation: shimmerSlide 0.55s ease forwards;
}

.hero-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 22px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.hero-btn-phone i {
    color: var(--primary-bronze);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hero-btn-phone:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   HERO BADGE STRIP (sub-pages)
   ---------------------------------------------------------- */

.hero-badge-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-badge-item::before {
    content: '✓';
    color: #4ade80;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ----------------------------------------------------------
   CONTACT HERO — max conversion focus
   ---------------------------------------------------------- */

.contact-hero-cta-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2rem;
}

.contact-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 17px 30px;
    background: var(--primary-bronze);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: fit-content;
    animation: ctaPulse 2.8s ease-in-out 1.5s infinite;
}

.contact-hero-phone i {
    font-size: 1.1rem;
}

.contact-hero-phone:hover {
    background: var(--primary-bronze-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.45);
    animation: none;
}

.contact-hero-devis {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.07);
}

.contact-hero-devis:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.contact-hero-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.contact-hero-guarantee .available-dot {
    width: 8px;
    height: 8px;
}

/* ----------------------------------------------------------
   FEATURE BAR IMPROVEMENTS (homepage)
   ---------------------------------------------------------- */

.feature-item-hero {
    transition: all 0.3s ease;
    cursor: default;
    padding: 0.5rem;
    border-radius: 8px;
}

.feature-item-hero:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.feature-icon-hero {
    transition: all 0.3s ease;
}

.feature-item-hero:hover .feature-icon-hero {
    background: rgba(205, 127, 50, 0.2);
    border-color: var(--primary-bronze-light);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .services-hero-content {
        padding-left: 50px;
    }
}

@media (max-width: 768px) {
    .hero-available-dot {
        font-size: 0.65rem;
    }

    .hero-rating-badge {
        font-size: 0.73rem;
        padding: 7px 14px;
    }

    .hero-trust-strip {
        gap: 12px;
    }

    .hero-trust-strip span {
        font-size: 0.71rem;
    }

    .cta-phone-hero {
        font-size: 0.8rem;
        padding: 0.9rem 1.4rem;
    }

    .services-hero {
        height: 68vh;
        min-height: 500px;
    }

    .services-hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-action-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-btn-cta,
    .hero-btn-phone {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .contact-hero-phone {
        font-size: 0.9rem;
        padding: 14px 22px;
    }

    .contact-hero-devis {
        font-size: 0.78rem;
    }
}
