/* Elorion Theme v2.1 — Design System + Dynamic */

/* ─── Material Symbols Rounded — Filled par defaut ──── */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
/* Outlined (non-filled) quand besoin */
.material-symbols-rounded.outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ─── Selection ─────────────────────────────────────── */
::selection {
    background: rgba(255, 109, 17, 0.2);
}

/* ─── Gradient text utility ─────────────────────────── */
.text-gradient-elo {
    background: linear-gradient(135deg, #ff6d11, #ff423c, #fc1cc7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Blob shapes ───────────────────────────────────── */
.blob-elo {
    background: linear-gradient(135deg, #ff6d11, #fc1cc7, #bf4a94);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 8s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* ─── Smooth scroll ─────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ─── Scroll reveal animations ──────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade"] {
    opacity: 0;
    transform: none;
    transition: opacity 0.6s ease;
}
[data-animate="fade"].animate-in {
    opacity: 1;
}

[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="slide-left"].animate-in {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="slide-right"].animate-in {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="scale"] {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate="scale"].animate-in {
    opacity: 1;
    transform: scale(1);
}

[data-animate="zoom"] {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="zoom"].animate-in {
    opacity: 1;
    transform: scale(1);
}

/* ─── Counter animation ─────────────────────────────── */
.counter-value {
    display: inline-block;
    min-width: 2ch;
}

/* ─── Marquee / logo scroll ─────────────────────────── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logo-marquee {
    animation: marquee 40s linear infinite;
}
.logo-marquee:hover {
    animation-play-state: paused;
}

/* ─── Floating elements ─────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}
.animate-float-slow {
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* ─── Pulse ring ────────────────────────────────────── */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid currentColor;
    animation: pulse-ring 2s ease-out infinite;
}

/* ─── Shimmer animation ────────────────────────────── */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.animate-shimmer {
    animation: shimmer 4s ease-in-out infinite;
}

/* ─── Gradient border card ──────────────────────────── */
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}
.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #ff6d11, #fc1cc7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-gradient-border:hover::before {
    opacity: 1;
}

/* ─── Decorative line ───────────────────────────────── */
.deco-line {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(135deg, #ff6d11, #fc1cc7);
}

/* ─── FAQ accordion ─────────────────────────────────── */
details summary::-webkit-details-marker {
    display: none;
}
details summary {
    list-style: none;
}

/* ─── Custom scrollbar ──────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
    background: #cfcfd0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #949497;
}

/* ─── Sticky CTA mobile ────────────────────────────── */
#sticky-cta-mobile {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
#sticky-cta-mobile.visible {
    transform: translateY(0);
}

/* ─── Metric card hover ─────────────────────────────── */
.metric-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(33, 33, 64, 0.1);
}

/* ─── Icon container with glow ──────────────────────── */
.icon-glow {
    position: relative;
}
.icon-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.3;
    filter: blur(10px);
    z-index: -1;
    transition: opacity 0.3s ease;
}
.group:hover .icon-glow::after {
    opacity: 0.5;
}

/* ─── Asymmetric section clip ───────────────────────── */
.clip-diagonal {
    clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

/* ─── Mega menu dropdowns ──────────────────────────── */
.mega-panel {
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
[data-menu]:hover .mega-panel {
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0);
}

/* Keep panel open when moving from trigger to dropdown */
[data-menu] .mega-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

/* ─── Menu icon gradient hover ─────────────────────── */
.group\/item:hover .menu-icon-hover {
    background: linear-gradient(135deg, #ff6d11, #fc1cc7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Grid wireframe background (CSS pure, remplace SVG 639KB) ── */
.grid-wireframe {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ─── Number highlight ──────────────────────────────── */
.number-highlight {
    position: relative;
    display: inline-block;
}
.number-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 40%;
    background: rgba(255, 109, 17, 0.15);
    border-radius: 4px;
    z-index: -1;
}
