/* ============================================================
   Hero de la page d accueil
   Extrait de templates/partials/hero_section.html.twig
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────── */
.iz-hero {
    position: relative;
    height: calc(100vh - 72px);
    min-height: 640px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Background */
.iz-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.iz-hero__bg-foundation {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 52%, rgba(25, 94, 255, .07) 52.1% 52.25%, transparent 52.35%),
        radial-gradient(ellipse 55% 72% at 87% 38%, rgba(15, 87, 255, .3), transparent 68%),
        radial-gradient(circle at 64% 78%, rgba(0, 199, 235, .09), transparent 22%),
        linear-gradient(135deg, #060a13 0%, #0a1120 46%, #07101f 100%);
}

/* Photo d'ambiance posee sur le fond degrade.
   Elle reste volontairement en retrait : le titre blanc doit garder son
   contraste, c'est __bg-overlay juste en dessous qui s'en charge. */
.iz-hero__bg-photo {
    position: absolute;
    inset: 0;
    background: url('/header.webp') center / cover no-repeat;
    opacity: .48;
    filter: saturate(.8) contrast(1.05);
}

/* C'est l'element LCP de l'accueil. Sur mobile la version 1792 px n'apporte
   rien de visible sous une opacite de .48 : on sert 35 Ko au lieu de 84.
   Le preload correspondant, dans home/index.html.twig, porte le meme
   media pour que le navigateur n'en telecharge qu'une seule. */
@media (max-width: 900px) {
    .iz-hero__bg-photo {
        background-image: url('/header-900.webp');
    }
}

.iz-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 9, 17, .88) 0%, rgba(5, 9, 17, .58) 55%, rgba(5, 9, 17, .3) 100%),
        linear-gradient(to top, rgba(5, 9, 17, .75) 0%, transparent 45%);
}

.iz-hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(127, 164, 226, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 164, 226, .055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent 0, #000 40%, #000 100%);
}

.iz-hero__bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}

.iz-hero__bg-glow--1 {
    width: 520px;
    height: 520px;
    background: rgba(21, 87, 255, .16);
    top: -22%;
    right: 4%;
}

.iz-hero__bg-glow--2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 205, 255, .08);
    bottom: 2%;
    left: 34%;
}

@keyframes glowDrift1 {
    from { transform: translate(0, 0); }
    to { transform: translate(-40px, 40px); }
}

@keyframes glowDrift2 {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, -30px); }
}


/* Container */
.iz-hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex: 1;
    padding-top: 40px;
    /* Leave room for the services strip (height ~100px) + a small margin */
    padding-bottom: 120px;
}

.iz-hero__content {
    max-width: 780px;
}

/* Badge */
.iz-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

/* Title */
.iz-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    /* Slightly smaller so it fits in the viewport height */
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.iz-hero__title-highlight { color: rgba(255,255,255,0.7); }

.iz-hero__title-gradient {
    background: #1557FF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.iz-hero__subtitle {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 580px;
}

/* CTAs */
.iz-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.iz-hero__cta-primary {
    background: #1557FF;
    border: none;
    color: #fff;
    box-shadow: 0 8px 32px rgba(21, 87, 255, 0.4);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.iz-hero__cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 48px rgba(21, 87, 255, 0.5);
    color: #fff;
    background: #0046EE;
}

.iz-hero__cta-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
    padding: 13px 32px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.iz-hero__cta-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    transform: translateY(-3px);
}

/* Stats */
.iz-hero__stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    max-width: fit-content;
}

.iz-hero__stat {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.iz-hero__stat:first-child { padding-left: 0; }

.iz-hero__stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff, #b8caff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iz-hero__stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    white-space: nowrap;
}

.iz-hero__stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Services Strip — anchored at the very bottom of the hero viewport */
.iz-hero__services {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.iz-hero__services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.iz-hero__service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    color: #0A0E1A;
    text-decoration: none;
    text-align: center;
    border-right: 1px solid rgba(10, 14, 26, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.iz-hero__service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1557FF;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.iz-hero__service-card:hover::before { transform: scaleX(1); }

.iz-hero__service-card:hover {
    background: rgba(255,255,255,1);
    color: #1557FF;
    box-shadow: 0 -8px 24px rgba(21, 87, 255, 0.1);
}

.iz-hero__service-card:last-child { border-right: none; }

.iz-hero__service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(21, 87, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1557FF;
    transition: all 0.3s ease;
}

.iz-hero__service-card:hover .iz-hero__service-icon {
    background: #1557FF;
    color: #fff;
    transform: scale(1.1);
}

.iz-hero__service-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.iz-hero__service-arrow {
    font-size: 0.65rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    color: #1557FF;
}

.iz-hero__service-card:hover .iz-hero__service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* CTA Banner */
.iz-hero__cta-banner {
    background: linear-gradient(135deg, #0F1829 0%, #1C2333 100%);
    border-bottom: 1px solid rgba(21, 87, 255, 0.2);
    padding: 18px 0;
    position: relative;
    z-index: 5;
}

.iz-hero__cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(21, 87, 255, 0.08) 50%, transparent 100%);
}

.iz-hero__cta-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.iz-hero__cta-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1557FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    animation: glowPulse 3s ease-in-out infinite;
}

.iz-hero__cta-banner-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.iz-hero__cta-banner-text strong { color: #fff; }

.iz-hero__cta-banner-btn {
    background: rgba(21, 87, 255, 0.2);
    border: 1px solid rgba(21, 87, 255, 0.4);
    color: #fff;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.iz-hero__cta-banner-btn:hover {
    background: rgba(21, 87, 255, 0.4);
    color: #fff;
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1280px) {
    .iz-hero { height: calc(100vh - 72px); }
}

@media (max-width: 1024px) {
    .iz-hero__services-grid { grid-template-columns: repeat(3, 1fr); }
    .iz-hero__container { padding-bottom: 210px; }
    .iz-hero { height: auto; min-height: calc(100vh - 72px); }
}

@media (max-width: 768px) {
    .iz-hero { height: auto; min-height: calc(100vh - 64px); }
    .iz-hero__services-grid { grid-template-columns: repeat(3, 1fr); }
    .iz-hero__stat { padding: 0 14px; }
    .iz-hero__container { padding-bottom: 230px; }
}

@media (max-width: 576px) {
    .iz-hero__services-grid { grid-template-columns: repeat(2, 1fr); }
    .iz-hero__container { padding-top: 32px; padding-bottom: 290px; }
    .iz-hero__stats {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        max-width: 100%;
    }
    .iz-hero__stat { padding: 0; }
    .iz-hero__stat-divider { width: 50px; height: 1px; }
    .iz-hero__ctas { flex-direction: column; }
    .iz-hero__ctas .btn { width: 100%; text-align: center; justify-content: center; }
}
