/* SECTION HERO */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 50%, #fff9f0 100%);
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* CONTENU TEXTE HERO */
.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 54px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-size: 16px;
    padding: 16px 36px;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ILLUSTRATION HERO */
.hero-illustration {
    animation: fadeInRight 1s ease-out 0.2s both;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(6px 6px 20px rgba(0, 0, 0, 0.12));
}

/* ANIMATIONS SVG */
.service-badge {
    animation: bounceIn 0.8s ease-out;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-badge:hover rect {
    filter: brightness(1.1);
}

.service-badge:hover {
    transform: scale(1.1);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.service-badge:nth-child(2) {
    animation-delay: 0.2s;
}

.service-badge:nth-child(3) {
    animation-delay: 0.4s;
}

.service-badge:nth-child(4) {
    animation-delay: 0.6s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-svg {
        max-width: 300px;
    }

    .hero {
        min-height: 500px;
        padding: 60px 0;
    }
}

/* Container de l'illustration */
.hero-illustration {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Pluie binaire */
#binary-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15; /* Très léger pour ne pas gêner la lecture */
    mask-image: linear-gradient(to left, rgba(0,0,0,1), transparent);
}

/* Grille de tuiles (Style Image de référence) */
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    width: 100%;
}

.grid-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-3d);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

.card-orange {
    background: var(--secondary-orange);
    color: white;
    grid-row: 1 / 2;
}

.card-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.card-image {
    grid-row: 1 / 3;
    padding: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-team {
    grid-column: 1 / 2;
    background: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-blue);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
