/* ============================================
   HERO SECTION - ÉLECTRICIEN PRO
   ============================================ */

.hero {
    position: relative;
    min-height: 65vh;
    /* Réduit de 80vh à 65vh */
    display: flex;
    align-items: center;
    padding-top: 40px;
    /* Réduit de 60px à 40px */
    overflow: visible;
}

/* Arrière-plan avec circuit électrique */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.hero__circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L90 10 L90 90' stroke='rgba(0, 255, 255, 0.5)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero__gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 85, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Contenu */
.hero__content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 50%;
    padding-right: var(--space-8);
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    background: linear-gradient(135deg, var(--color-electric-blue-glow), transparent);
    border: 1px solid var(--color-electric-blue);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    animation: fadeInDown 0.8s ease forwards;
}

.hero__badge-icon {
    color: var(--color-electric-blue);
    animation: pulse 2s ease-in-out infinite;
}

.hero__badge-text {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-electric-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Titre */
.hero__title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-4);
    font-size: clamp(3.5rem, 6vw, 5.5rem) !important;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    text-shadow: 0 0 40px rgba(0, 168, 255, 0.15);
}

@media (min-width: 1025px) {
    .hero .container {
        align-items: flex-start;
        padding-top: var(--space-6);
        /* Réduit de space-12 à space-6 */
    }

    .hero__title {
        max-width: 100%;
        margin-top: 0;
    }

    .hero__content {
        margin-top: 0;
    }

    .hero__image {
        /* Décalage stable pour aligner visuellement avec le titre */
        margin-top: 48px;
        transform: scale(0.95);
    }

    .hero__image-wrapper {
        animation: none;
    }
}

.hero__title-line {
    display: block;
}

.hero__title-line--accent {
    background: linear-gradient(135deg, var(--color-electric-blue), var(--color-neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__title-line--sub {
    font-size: 0.5em;
    /* relative to parent size */
    color: var(--color-neon-green);
    font-weight: var(--font-semibold);
    margin-top: var(--space-2);
}

/* Description */
.hero__description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

@media (min-width: 1025px) {
    .hero__description {
        max-width: 100%;
    }
}

/* CTAs */
.hero__ctas {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero__cta-primary {
    position: relative;
    overflow: hidden;
}

.hero__cta-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.hero__cta-primary:hover::before {
    transform: rotate(45deg) translateY(100%);
}

.hero__cta-primary {
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero__cta-primary:hover {
    box-shadow: 0 0 50px rgba(0, 168, 255, 0.5);
    transform: translateY(-2px);
}

.hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: 2px solid var(--color-electric-blue);
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-electric-blue);
    background: transparent;
    transition: var(--transition-all);
}

.hero__cta-secondary:hover {
    background: var(--color-electric-blue);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--color-electric-blue-glow);
}

.hero__cta-phone {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-neon-yellow);
    transition: var(--transition-all);
}

.hero__cta-phone:hover {
    color: var(--color-neon-yellow);
    text-shadow: 0 0 20px var(--color-neon-yellow-glow);
    transform: scale(1.05);
}

/* Preuve sociale */
.hero__social-proof {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero__stars {
    display: flex;
    gap: 2px;
    color: var(--color-neon-yellow);
}

.hero__rating {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.hero__rating span {
    color: var(--text-muted);
    font-weight: var(--font-normal);
}

/* Container spécificité hero */
.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* Image/Illustration */
.hero__image {
    display: block;
    width: 45%;
    max-width: 600px;
    z-index: 1;
    position: relative;
    align-self: flex-start;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
}

@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero__content {
        padding-right: 0;
        margin-bottom: var(--space-8);
    }

    .hero__title {
        justify-content: center;
    }

    .hero__image {
        display: block;
        width: 100%;
        /* Image prend toute la largeur sur mobile */
        max-width: 500px;
        /* Limite raisonnable */
        margin: 0 auto;
        /* Centrer */
        opacity: 0;
        animation: fadeInUp 1s ease 0.8s forwards;
        /* Animation légèrement retardée */
    }
}

.hero__image-wrapper {
    position: relative;
    animation: none;
    display: grid;
    grid-template-columns: 1fr;
}

.hero__slider-img {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 2s ease;
    object-fit: cover;
}

.hero__slider-img.active {
    opacity: 1;
    z-index: 1;
}

@keyframes float {

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

    50% {
        transform: translateY(20px);
        /* Descente au lieu de montée */
    }
}

.hero__image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;

}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 1;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__scroll-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.hero__scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: var(--space-2);
}

.hero__scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--color-electric-blue);
    border-radius: var(--radius-full);
    animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll--hidden {
    opacity: 0 !important;
    pointer-events: none;
    transform: translate(-50%, 10px);
}

@keyframes scroll-bounce {

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

    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__content {
        text-align: center;
        max-width: 100%;
        padding-right: 0;
    }

    .hero__title {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        max-width: 100%;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero__ctas {
        justify-content: center;
    }

    .hero__social-proof {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero__ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero__ctas .btn {
        width: 100%;
    }
}

/* Hide social proof as requested */
.hero__social-proof {
    display: none !important;
}

/* Harmonisation verticale globale (visible sur toutes tailles d'écran) */
.hero#accueil {
    align-items: flex-start !important;
    padding-top: 80px !important;
    padding-bottom: 18px !important;
    min-height: auto !important;
}

@media (max-width: 1024px) {
    .hero#accueil {
        align-items: flex-start !important;
        padding-top: 64px !important;
        padding-bottom: 12px !important;
        min-height: auto !important;
    }
}

/* Fix prioritaire: aligner l'image de droite avec le titre (desktop) */
@media (min-width: 1025px) {
    .hero#accueil .container {
        align-items: flex-start !important;
    }

    .hero#accueil .hero__content {
        margin-top: 24px !important;
    }

    .hero#accueil .hero__image {
        align-self: flex-start !important;
        margin-top: 56px !important;
        transform: scale(0.95);
    }

    .hero#accueil .hero__image-wrapper {
        animation: none !important;
    }
}