/* ============================================
   HERO SLIDER STYLES
   ============================================ */

.hero-slider {
    position: relative;
    background-image: url('../images/products/esetimg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
    min-height: 280px;
    /* Reduit au minimum pour eviter tout scroll */
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(24, 56, 132, 0.85), rgba(24, 56, 132, 0.7));
    z-index: 1;
}

.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Reduit de 100px pour garder l'aspect compact */
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 2;
}

/* Bottom gradient restored */
.hero-slider-track {
    position: relative;
    z-index: 3;
    display: flex;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    height: 100%;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    padding: 20px 0;
    /* Ultra compact */
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

.hero-slide-content {
    text-align: left;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.hero-slide.active .hero-slide-content {
    transform: translateY(0);
}

.hero-slide-image {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.9) translateX(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}

.hero-slide.active .hero-slide-image {
    transform: scale(1) translateX(0);
    opacity: 1;
}

.hero-slide-image img {
    width: 100%;
    max-width: 250px;
    /* Reduit drasticement */
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
    opacity: 0.85;
    transform: perspective(1000px) rotateY(-8deg);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-slide.active .hero-slide-image img {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-slide.active h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
    animation: slideInDown 0.8s ease;
}

.hero-slide.active p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInUp 0.8s ease;
}

.cta-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Typing Animation Classes */
.typing-effect {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
}

.typing-ghost {
    visibility: hidden;
    white-space: nowrap;
    display: block;
}

.typing-actual {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid transparent;
}

.hero-slide.active .typing-actual {
    animation: typing 3.5s steps(35, end) forwards, blink 0.5s step-end 7;
    /* 0.5s * 7 cycles = 3.5s. Ends exactly when typing ends. */
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #ffffff
    }
}

.hero-slide.active .cta-buttons {
    animation: fadeIn 1s ease 2.8s both;
    margin-top: 12px;
    /* Tightened */
}

/* Typography Refinements */
.hero-subtitle-tag {
    display: inline-block;
    background: rgba(217, 113, 14, 0.15);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    /* Reduit */
    border-left: 2px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.hero-slide h1 {
    font-size: 1.7em !important;
    line-height: 1.1;
    margin-bottom: 8px !important;
}

.hero-slide h1 .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(217, 113, 14, 0.15);
}

.hero-slide p {
    font-size: 0.82em !important;
    max-width: 420px;
    line-height: 1.35;
    margin-bottom: 12px !important;
    color: rgba(255, 255, 255, 0.8);
}

/* Floating Animation for Images */
.animate-float img {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Boutons personnalisés pour le slider (#179aa5) */
.hero-slider .btn-primary {
    background-color: #179aa5;
    border-color: #179aa5;
    color: #ffffff;
}

.hero-slider .btn-primary:hover {
    background-color: #127a83;
    border-color: #127a83;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(23, 154, 165, 0.4);
}

.hero-slider .btn-outline {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #179aa5;
}

.hero-slider .btn-outline:hover {
    background-color: #f0f0f0;
    color: #179aa5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Alignement standard pour toutes les slides */
.hero-slider-track .hero-slide h1 {
    margin-top: 0;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slider Controls */
.hero-prev,
.hero-next {
    display: none;
    /* Hidden as per user request */
}

/* Slider Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    /* Remonté pour être bien visible sur le slider */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background-color: #ffffff;
    /* Blanc pur pour contraster sur l'orange */
    border-color: #ffffff;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* End of global styles - Mobile rules moved to responsive.css for better site-wide consistency */