/* ===========================================================================
   Indepro - Premium Layer
   Cursor custom, scroll progress, hero XXL, hover sophistiqué, transitions
   chorégraphiées. Charge après home.css.
   =========================================================================== */

/* === SCROLL PROGRESS BAR (collee sous le header sticky, gold) === */
.indepro-scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 2;
    pointer-events: none;
    transform: translateY(100%);
}
.indepro-scroll-progress__bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ebbb81, #f2c088, #ebbb81);
    background-size: 200% 100%;
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
    animation: indepro-shimmer 3s linear infinite;
    box-shadow: 0 1px 12px rgba(235, 187, 129, 0.35);
}
@keyframes indepro-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* CURSOR CUSTOM DESACTIVE - curseur OS standard, pas de masquage */

/* === HERO XXL TYPOGRAPHIE === */
.indepro-root .indepro-h1 {
    font-size: clamp(44px, 5.6vw, 88px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.025em !important;
    font-weight: 800 !important;
}
@media (max-width: 900px) {
    .indepro-root .indepro-h1 {
        font-size: clamp(36px, 9vw, 56px) !important;
        line-height: 1.05 !important;
    }
}

.indepro-root .indepro-h2 {
    font-size: clamp(34px, 4.2vw, 60px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em !important;
}

/* Titre "Webstratege freelance" en italique gold avec shimmer */
.indepro-root .indepro-gold.indepro-shimmer {
    background: linear-gradient(110deg,
        var(--gold) 0%,
        var(--gold2) 30%,
        #fff5e0 50%,
        var(--gold2) 70%,
        var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: indepro-gold-shimmer 6s ease-in-out infinite;
}
@keyframes indepro-gold-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === SPLITTING TEXT REVEAL (lettre par lettre) === */
.indepro-split-reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}
.indepro-split-reveal .indepro-char {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}
.indepro-split-reveal .indepro-word {
    display: inline-block;
    overflow: hidden;
}

/* === HERO PARALLAX SOURIS === */
.indepro-hero-photo {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.indepro-hero-photo-wrap {
    perspective: 1200px;
}

/* Halo dynamique autour de la photo qui pulse */
.indepro-hero-photo-halo {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center,
        rgba(235, 187, 129, 0.18) 0%,
        rgba(235, 187, 129, 0.08) 30%,
        transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: indepro-halo-pulse 4s ease-in-out infinite;
}
@keyframes indepro-halo-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* === BOUTONS PREMIUM (halo + magnetic) === */
.indepro-root .indepro-btn {
    position: relative;
    overflow: visible;
    transition: transform 0.4s var(--ease),
                background 0.4s var(--ease),
                color 0.4s var(--ease),
                box-shadow 0.4s var(--ease);
}
.indepro-root .indepro-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--gold), var(--gold2), transparent 50%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s var(--ease);
    filter: blur(8px);
}
.indepro-root .indepro-btn1:hover::before {
    opacity: 0.8;
}
.indepro-root .indepro-btn1:hover {
    box-shadow: 0 8px 32px rgba(235, 187, 129, 0.35);
}
.indepro-root .indepro-btn2 {
    position: relative;
}
.indepro-root .indepro-btn2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.5s var(--ease), left 0.5s var(--ease);
}
.indepro-root .indepro-btn2:hover::after {
    width: 100%;
    left: 0;
}

/* === LIENS NAV + FOOTER (underline animé) === */
.indepro-root a:not(.indepro-btn):not([class*="indepro-faq"]):not(.indepro-prog-tab) {
    position: relative;
    transition: color 0.3s var(--ease);
}

/* === MARQUEE PREMIUM === */
.indepro-root .indepro-marquee-wrap {
    border-top: 1px solid var(--bd);
    border-bottom: 1px solid var(--bd);
    background: linear-gradient(180deg, transparent, rgba(235, 187, 129, 0.02), transparent);
    transition: background 0.4s var(--ease);
}
.indepro-root .indepro-marquee-wrap:hover {
    background: linear-gradient(180deg, transparent, rgba(235, 187, 129, 0.08), transparent);
}
.indepro-root .indepro-marquee-track {
    transition: animation-duration 0.6s var(--ease);
}
.indepro-root .indepro-marquee-wrap:hover .indepro-marquee-track {
    animation-duration: 60s;
}
.indepro-root .indepro-marquee span {
    transition: color 0.3s var(--ease);
}
.indepro-root .indepro-marquee-wrap:hover .indepro-marquee span {
    color: var(--gold);
}

/* === SECTIONS REVEAL (fade + lift) === */
.indepro-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.indepro-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.indepro-fade-up--delay-1 { transition-delay: 0.1s; }
.indepro-fade-up--delay-2 { transition-delay: 0.2s; }
.indepro-fade-up--delay-3 { transition-delay: 0.3s; }

/* === SCROLLBAR (custom subtle) === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(235, 187, 129, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(235, 187, 129, 0.5);
}

/* Selection text */
::selection {
    background: rgba(235, 187, 129, 0.3);
    color: var(--text);
}

/* === HERO BACKGROUND DYNAMIQUE (gradient mesh qui suit la souris) === */
.indepro-mesh-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    background:
        radial-gradient(circle at var(--mesh-x, 50%) var(--mesh-y, 30%),
            rgba(235, 187, 129, 0.18) 0%,
            transparent 50%),
        radial-gradient(circle at calc(100% - var(--mesh-x, 50%)) calc(100% - var(--mesh-y, 30%)),
            rgba(201, 154, 91, 0.1) 0%,
            transparent 60%);
    transition: background 0.4s ease-out;
}

/* === FAQ ACCORDION MORPHING === */
.indepro-root .indepro-faq-q {
    position: relative;
    transition: padding-left 0.4s var(--ease), color 0.4s var(--ease);
}
.indepro-root .indepro-faq-q:hover {
    padding-left: 8px;
    color: var(--gold);
}
.indepro-root .indepro-faq-q::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
    transform: translateY(-50%);
}
.indepro-root .indepro-faq-q:hover::before {
    width: 12px;
}

/* === KPI COUNTERS GLOW === */
.indepro-root .indepro-kpi-n {
    position: relative;
    text-shadow: 0 0 30px rgba(235, 187, 129, 0.2);
    transition: text-shadow 0.5s var(--ease);
}
.indepro-kpis:hover .indepro-kpi-n {
    text-shadow: 0 0 40px rgba(235, 187, 129, 0.4);
}

/* === CTA CARD (section finale) === */
.indepro-root .indepro-cta-card {
    position: relative;
    overflow: hidden;
}
.indepro-root .indepro-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(235, 187, 129, 0.08) 60deg,
        transparent 120deg);
    animation: indepro-cta-rotate 8s linear infinite;
    pointer-events: none;
}
@keyframes indepro-cta-rotate {
    to { transform: rotate(360deg); }
}

/* === SCROLL CUE PULSE (déjà présent, on amplifie) === */
.indepro-root .indepro-scroll-cue {
    transition: opacity 0.4s var(--ease);
}

/* === IMAGES TRANSITIONS HOVER === */
.indepro-root .indepro-test-avatar,
.indepro-root .indepro-photo-card {
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.indepro-root .indepro-test-avatar:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* === STAGGERED REVEAL POUR LISTES === */
.indepro-stagger > * {
    opacity: 0;
    transform: translateY(20px);
}
.indepro-stagger.is-visible > * {
    animation: indepro-stagger-in 0.7s var(--ease) forwards;
}
.indepro-stagger.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.indepro-stagger.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.indepro-stagger.is-visible > *:nth-child(3) { animation-delay: 0.15s; }
.indepro-stagger.is-visible > *:nth-child(4) { animation-delay: 0.2s; }
.indepro-stagger.is-visible > *:nth-child(5) { animation-delay: 0.25s; }
.indepro-stagger.is-visible > *:nth-child(6) { animation-delay: 0.3s; }
@keyframes indepro-stagger-in {
    to { opacity: 1; transform: translateY(0); }
}

/* === REDUCED MOTION RESPECT === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .indepro-cursor, .indepro-cursor-ring {
        display: none !important;
    }
    html, body {
        cursor: auto !important;
    }
}

/* === SECTION COMM (Discord) - amélioration lisibilité === */
.indepro-root .indepro-comm {
    position: relative;
}

/* === ZOOM AVATARS TÉMOIGNAGES (effet hover) === */
.indepro-root .indepro-test-card,
.indepro-root .indepro-mod {
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.indepro-root .indepro-test-card:hover {
    transform: translateY(-6px);
}
