/* ============================================
   HERITAGE ART - Service Landing Pages Premium
   Animations différenciées par style
   ============================================ */

/* === SERVICE HERO === */
.service-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.service-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.service-hero__image,
.service-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-hero__video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.service-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.service-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    color: #fff;
}

.service-hero__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero__icon svg {
    width: 100%;
    height: 100%;
}

.service-hero__title {
    font-family: var(--font-display, 'Inter', sans-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.service-hero__description {
    font-size: 1.25rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.service-hero__description p {
    margin: 0;
}

.service-hero__cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    animation: serviceScrollBounce 2s ease-in-out infinite;
}

.service-hero__scroll-line {
    width: 2px;
    height: 40px;
    border-radius: 1px;
}

@keyframes serviceScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === PRODUCTS CAROUSEL === */
.service-products-carousel {
    padding: 6rem 0;
    background: #fff;
}

.service-products-carousel__header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-products-carousel__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-products-carousel__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    scrollbar-width: none;
}

.service-products-carousel__track::-webkit-scrollbar {
    display: none;
}

.service-product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.service-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-product-card:hover .service-product-card__image img {
    transform: scale(1.08);
}

.service-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.service-product-card__placeholder svg {
    width: 48px;
    height: 48px;
}

.service-product-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.service-product-card__info {
    padding: 1.25rem;
}

.service-product-card__category {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.5rem;
}

.service-product-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--ha-blue-deep, #0A1628);
}

.service-product-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-product-card__cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-product-card:hover .service-product-card__cta {
    gap: 0.75rem;
}

.service-product-card:hover .service-product-card__cta svg {
    transform: translateX(4px);
}

.carousel-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--nav-color, #FF6B35);
    background: transparent;
    color: var(--nav-color, #FF6B35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--nav-color, #FF6B35);
    color: #fff;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
}

.service-products-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* === REALISATIONS SLIDER === */
.service-realisations-slider {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.service-realisations-slider__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.service-realisations-slider .container-premium {
    position: relative;
    z-index: 1;
}

.service-realisations-slider__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-titre--light,
.section-description--light {
    color: #fff;
}

.section-description--light {
    opacity: 0.8;
}

.service-realisations-slider__wrapper {
    position: relative;
}

.service-realisations-slider__track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    scrollbar-width: none;
}

.service-realisations-slider__track::-webkit-scrollbar {
    display: none;
}

.service-realisation-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}

.service-realisation-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.service-realisation-card__image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.service-realisation-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-realisation-card:hover .service-realisation-card__image img {
    transform: scale(1.1);
}

.service-realisation-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
}

.service-realisation-card__placeholder svg {
    width: 48px;
    height: 48px;
}

.service-realisation-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
}

.service-realisation-card__content {
    padding: 1.5rem;
}

.service-realisation-card__client {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.5rem;
}

.service-realisation-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--ha-blue-deep, #0A1628);
}

.service-realisation-card__result {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.service-realisation-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cta-color, #FF6B35);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-realisation-card__cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-realisation-card:hover .service-realisation-card__cta {
    gap: 0.75rem;
}

.service-realisation-card:hover .service-realisation-card__cta svg {
    transform: translateX(4px);
}

.service-realisations-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.slider-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--nav-color, #FF6B35);
    background: transparent;
    color: var(--nav-color, #FF6B35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--nav-color, #FF6B35);
    color: #fff;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
}

.service-realisations-slider__progress {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.service-realisations-slider__progress-bar {
    height: 100%;
    width: 33%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* === SERVICES SIBLINGS === */
.service-siblings {
    padding: 6rem 0;
    background: #f8f9fa;
}

.service-siblings__header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-siblings__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-sibling-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.service-sibling-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-sibling-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
    color: var(--ha-blue-deep, #0A1628);
    transition: all 0.3s ease;
}

.service-sibling-card:hover .service-sibling-card__icon {
    background: var(--ha-blue-deep, #0A1628);
    color: #fff;
}

.service-sibling-card__icon svg {
    width: 28px;
    height: 28px;
}

.service-sibling-card__title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--ha-blue-deep, #0A1628);
}

.service-sibling-card__arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-sibling-card:hover .service-sibling-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-sibling-card__arrow svg {
    width: 20px;
    height: 20px;
}

/* === CTA FINAL === */
.service-cta-final {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.service-cta-final__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.service-cta-final .container-premium {
    position: relative;
    z-index: 1;
}

.service-cta-final__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #fff;
}

.service-cta-final__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 2rem;
}

.service-cta-final__icon svg {
    width: 100%;
    height: 100%;
}

.service-cta-final__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.service-cta-final__subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.service-cta-final__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-cta-final__scroll-trigger {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
}

.service-cta-final__scroll-line {
    width: 100%;
    height: 0;
    animation: scrollLineGrow 2s ease-out forwards;
    animation-play-state: paused;
}

[data-scroll-trigger].is-visible .service-cta-final__scroll-line {
    animation-play-state: running;
}

@keyframes scrollLineGrow {
    to { height: 100%; }
}

/* === BUTTON VARIANTS === */
.btn-premium--accent {
    background: var(--btn-accent, #FF6B35);
    color: #fff;
    border: none;
}

.btn-premium--accent:hover {
    background: color-mix(in srgb, var(--btn-accent, #FF6B35) 85%, #000);
    transform: translateY(-2px);
}

.btn-premium--outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-premium--outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* === ANIMATION STYLES === */

/* Style Tech - slide latéral + glow */
.service-hero--style_tech .service-hero__content {
    animation: techSlideIn 1s ease-out;
}

.service-hero--style_tech .service-hero__icon {
    filter: drop-shadow(0 0 20px currentColor);
}

[data-animation="style_tech"] .service-product-card,
[data-animation="style_tech"] .service-realisation-card,
[data-animation="style_tech"] .service-sibling-card {
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

[data-animation="style_tech"] .service-product-card.is-visible,
[data-animation="style_tech"] .service-realisation-card.is-visible,
[data-animation="style_tech"] .service-sibling-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}

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

/* Style Luxe - zoom + blur reveal */
.service-hero--style_luxe .service-hero__content {
    animation: luxeZoomIn 1.2s ease-out;
}

.service-hero--style_luxe .service-hero__image {
    animation: luxeImageReveal 1.5s ease-out;
}

[data-animation="style_luxe"] .service-product-card,
[data-animation="style_luxe"] .service-realisation-card {
    transform: scale(0.9);
    opacity: 0;
    filter: blur(10px);
    transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
}

[data-animation="style_luxe"] .service-product-card.is-visible,
[data-animation="style_luxe"] .service-realisation-card.is-visible {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
}

@keyframes luxeZoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
        filter: blur(5px);
    }
    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes luxeImageReveal {
    from {
        transform: scale(1.1);
        filter: blur(10px);
    }
    to {
        transform: scale(1);
        filter: blur(0);
    }
}

/* Style Industriel - scroll horizontal */
.service-hero--style_industriel .service-hero__content {
    animation: industrielSlide 1s ease-out;
}

[data-animation="style_industriel"] .service-products-carousel__track,
[data-animation="style_industriel"] .service-realisations-slider__track {
    scroll-snap-type: none;
}

[data-animation="style_industriel"] .service-product-card,
[data-animation="style_industriel"] .service-realisation-card {
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

[data-animation="style_industriel"] .service-product-card.is-visible,
[data-animation="style_industriel"] .service-realisation-card.is-visible {
    transform: translateX(0);
    opacity: 1;
}

@keyframes industrielSlide {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Style Institutionnel - fade + lignes */
.service-hero--style_institutionnel .service-hero__content {
    animation: institutionnelFade 1s ease-out;
}

.service-hero--style_institutionnel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 1;
}

.service-hero--style_institutionnel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
    z-index: 1;
}

[data-animation="style_institutionnel"] .service-product-card,
[data-animation="style_institutionnel"] .service-realisation-card,
[data-animation="style_institutionnel"] .service-sibling-card {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

[data-animation="style_institutionnel"] .service-product-card.is-visible,
[data-animation="style_institutionnel"] .service-realisation-card.is-visible,
[data-animation="style_institutionnel"] .service-sibling-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .service-hero {
        min-height: 70vh;
    }
    
    .service-hero__title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .service-hero__description {
        font-size: 1.1rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .service-product-card {
        flex: 0 0 260px;
    }
    
    .service-realisation-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 576px) {
    .service-hero {
        min-height: 60vh;
    }
    
    .service-hero__icon {
        width: 60px;
        height: 60px;
    }
    
    .service-hero__cta {
        flex-direction: column;
        align-items: center;
    }
    
    .service-products-carousel,
    .service-realisations-slider,
    .service-siblings,
    .service-cta-final {
        padding: 4rem 0;
    }
    
    .service-product-card {
        flex: 0 0 240px;
    }
    
    .service-realisation-card {
        flex: 0 0 280px;
    }
    
    .service-cta-final__buttons {
        flex-direction: column;
        align-items: center;
    }
}
