/* Qualité Son — styles partagés (prolonge l'identité de l'index d'origine) */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
}

.tech-grid {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(10, 92, 54, 0.12) 0px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(10, 92, 54, 0.12) 0px, transparent 1px);
    background-size: 30px 30px;
}

.gradient-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
    border-radius: 0.5rem;
}

.gradient-border::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #0ec47c, #0a5c36);
    border-radius: 0.5rem;
    z-index: -1;
}

.hover-scale {
    transition: transform 0.3s ease-in-out;
}

.hover-scale:hover {
    transform: translateY(-5px);
}

.glow-text {
    text-shadow: 0 0 5px rgba(14, 196, 124, 0.7);
}

.pulse-animation {
    animation: qs-pulse 2s infinite;
}

@keyframes qs-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 196, 124, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(14, 196, 124, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 196, 124, 0);
    }
}

/* Révélation discrète au scroll */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .pulse-animation {
        animation: none;
    }
}

/* Dropdown navigation (desktop) : visible au survol ET au focus clavier */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
}

.group:hover .nav-dropdown,
.nav-dropdown:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
