/* ============================================
   EXFACERE - Main Stylesheet
   Import all CSS modules
   ============================================ */

/* Google Fonts - Already preloaded in HTML head for better performance */
\n
/* CSS Modules - Now loaded in parallel from HTML for better performance */

/* ============================================
   Page-Specific Styles
   ============================================ */

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--space-20);
}

/* Wave transition at bottom of hero - REMOVED to avoid dark bar
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--bg-primary) 100%);
    pointer-events: none;
    z-index: 1;
}
*/

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -150px;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Design Grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(92, 35, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 35, 217, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Floating Code Snippets */
.floating-code {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(92, 35, 217, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.6;
    pointer-events: none;
    white-space: nowrap;
}

.floating-code-1 {
    top: 20%;
    left: 8%;
    animation: floatCode 8s ease-in-out infinite;
}

.floating-code-2 {
    top: 35%;
    right: 10%;
    animation: floatCode 10s ease-in-out infinite reverse;
}

.floating-code-3 {
    bottom: 25%;
    left: 12%;
    animation: floatCode 9s ease-in-out infinite 1s;
}

@keyframes floatCode {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.code-tag {
    color: #7C4DFF;
}

.code-attr {
    color: #9D7BFF;
}

.code-string {
    color: #5C23D9;
}

.code-prop {
    color: #7C4DFF;
}

.code-value {
    color: #9D7BFF;
}

/* Browser Mockup */
.hero-browser {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(92, 35, 217, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.7;
    pointer-events: none;
    box-shadow: 0 20px 60px rgba(92, 35, 217, 0.2);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(30, 30, 30, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.browser-dots span:first-child {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:last-child {
    background: #28ca41;
}

.browser-url {
    flex: 1;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.browser-content {
    padding: 12px;
}

.browser-nav {
    height: 8px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, transparent 40%);
    border-radius: 4px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.browser-hero {
    height: 50px;
    background: linear-gradient(135deg, rgba(92, 35, 217, 0.3), rgba(124, 77, 255, 0.2));
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.browser-cards {
    display: flex;
    gap: 8px;
}

.browser-card {
    flex: 1;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Section Decorative Elements */
.section-decorated {
    position: relative;
    overflow: hidden;
}

.section-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Code Tags Decoration */
.decor-tag {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--accent-primary);
    opacity: 0.15;
    animation: floatDecor 12s ease-in-out infinite;
}

.decor-tag-1 {
    top: 15%;
    left: 5%;
}

.decor-tag-2 {
    bottom: 20%;
    right: 8%;
    animation-delay: -4s;
}

/* Arrow Decorations */
.decor-arrow {
    position: absolute;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.15;
    animation: floatDecor 10s ease-in-out infinite;
}

.decor-arrow-1 {
    top: 20%;
    right: 10%;
}

.decor-arrow-2 {
    bottom: 15%;
    left: 8%;
    animation-delay: -3s;
}

/* Quote Decorations */
.decor-quote {
    position: absolute;
    font-family: Georgia, serif;
    font-size: 10rem;
    color: var(--accent-primary);
    opacity: 0.12;
    line-height: 1;
    animation: floatDecor 14s ease-in-out infinite;
}

.decor-quote-1 {
    top: 10%;
    left: 5%;
}

/* Star Decorations */
.decor-star {
    position: absolute;
    font-size: 3rem;
    color: var(--accent-secondary);
    opacity: 0.18;
    animation: floatDecor 8s ease-in-out infinite reverse;
}

.decor-star-1 {
    bottom: 20%;
    right: 10%;
}

@keyframes floatDecor {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Code Decorations for Form */
.decor-code {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-primary);
    opacity: 0.18;
    animation: floatDecor 11s ease-in-out infinite;
}

.decor-code-1 {
    top: 25%;
    left: 8%;
}

.decor-code-2 {
    bottom: 30%;
    right: 6%;
    animation-delay: -5s;
}

/* Big Text Decorations */
.decor-text {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* Hero Section - "Lancez" - Plus visible et mieux positionné */
.decor-text-hero {
    top: 22%;
    left: -3%;
    font-size: 14vw;
    opacity: 0.7;
    -webkit-text-stroke: 1.5px rgba(92, 35, 217, 0.18);
    animation: floatBigTextLeft 25s ease-in-out infinite;
    transform: rotate(-4deg);
}

/* Form Section - "Soyez Exigeant" - Plus visible et centré */
.decor-text-form {
    top: 8%;
    right: -3%;
    font-size: 7vw;
    opacity: 1;
    -webkit-text-stroke: 2px rgba(92, 35, 217, 0.3);
    text-align: right;
    animation: floatBigTextRight 18s ease-in-out infinite;
    transform: rotate(2deg);
    background: linear-gradient(135deg, rgba(92, 35, 217, 0.12), rgba(124, 77, 255, 0.06));
    -webkit-background-clip: text;
    background-clip: text;
}

/* Offer Section - "99€" - Plus grand et visible */
.decor-text-offer {
    top: 55%;
    left: -5%;
    font-size: 24vw;
    opacity: 0.65;
    -webkit-text-stroke: 3px rgba(92, 35, 217, 0.22);
    transform: translateY(-50%) rotate(-6deg);
    animation: floatBigTextLeft 22s ease-in-out infinite;
}

/* Process Section - "24h" - Plus grand et plus visible */
.decor-text-process {
    bottom: 8%;
    right: -2%;
    font-size: 22vw;
    opacity: 0.6;
    -webkit-text-stroke: 2.5px rgba(124, 77, 255, 0.2);
    transform: rotate(4deg);
    animation: floatBigTextRight 20s ease-in-out infinite;
}

/* Portfolio Section - "Créez" - Mieux positionné */
.decor-text-portfolio {
    top: 12%;
    left: -4%;
    font-size: 16vw;
    opacity: 0.55;
    -webkit-text-stroke: 2px rgba(92, 35, 217, 0.15);
    transform: rotate(-3deg);
    animation: floatBigTextLeft 24s ease-in-out infinite reverse;
}

/* Testimonials Section - "Confiance" - Plus visible */
.decor-text-testimonials {
    bottom: 15%;
    left: -8%;
    font-size: 12vw;
    opacity: 0.5;
    -webkit-text-stroke: 2px rgba(157, 123, 255, 0.15);
    transform: rotate(-5deg);
    animation: floatBigTextLeft 26s ease-in-out infinite;
}

/* FAQ Section - "?" - Plus visible */
.decor-text-faq {
    top: 15%;
    right: -5%;
    font-size: 28vw;
    opacity: 0.45;
    -webkit-text-stroke: 3px rgba(92, 35, 217, 0.14);
    transform: rotate(8deg);
    animation: floatBigTextRight 30s ease-in-out infinite;
    font-family: Georgia, serif;
}

@keyframes floatBigTextLeft {

    0%,
    100% {
        transform: translateX(0) rotate(-3deg);
    }

    50% {
        transform: translateX(15px) rotate(-1deg);
    }
}

@keyframes floatBigTextRight {

    0%,
    100% {
        transform: translateX(0) rotate(3deg);
    }

    50% {
        transform: translateX(-15px) rotate(5deg);
    }
}

@media (max-width: 768px) {
    .decor-text-hero {
        font-size: 20vw;
        top: 12%;
        left: -5%;
    }

    .decor-text-form {
        font-size: 12vw;
        top: 8%;
        right: -8%;
    }

    .decor-text-offer {
        font-size: 30vw;
        left: -15%;
    }

    .decor-text-process {
        font-size: 25vw;
        right: -10%;
    }

    .decor-text-portfolio {
        font-size: 22vw;
        left: -10%;
    }

    .decor-text-testimonials {
        font-size: 15vw;
        left: -20%;
    }

    .decor-text-faq {
        font-size: 35vw;
        right: -15%;
    }
}

/* Hide heavy desktop decorations on mobile - for performance and overflow prevention */
@media (max-width: 1024px) {

    .floating-code,
    .hero-browser,
    .section-decor,
    .decor-tag,
    .decor-arrow,
    .decor-quote,
    .decor-star,
    .decor-code,
    .decor-text {
        display: none !important;
    }
}

/* Mobile Hero Decorations - ENABLED for visual richness */
.hero-mobile-decor {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {

    /* Enable mobile decorations */
    .hero-mobile-decor {
        display: block;
    }

    /* Mobile code symbols - floating text */
    .mobile-code-symbol {
        position: absolute;
        font-family: var(--font-mono), 'Courier New', monospace;
        font-size: 1.5rem;
        /* Fallback color in case CSS variable doesn't load */
        color: #7c4dff;
        color: var(--accent-primary, #7c4dff);
        opacity: 0.22;
        font-weight: bold;
        /* Prevent text selection and ensure decorative only */
        user-select: none;
        pointer-events: none;
    }

    .mobile-code-1 {
        top: 12%;
        left: 6%;
        font-size: 1.8rem;
    }

    .mobile-code-2 {
        top: 32%;
        right: 4%;
    }

    .mobile-code-3 {
        bottom: 38%;
        left: 4%;
    }

    .mobile-code-4 {
        bottom: 18%;
        right: 8%;
        font-size: 1.3rem;
    }

    /* Mobile floating dots - accent points */
    .mobile-dot {
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #7c4dff;
        background: var(--accent-primary, #7c4dff);
        opacity: 0.4;
        pointer-events: none;
    }

    .mobile-dot-1 {
        top: 18%;
        right: 12%;
        width: 10px;
        height: 10px;
    }

    .mobile-dot-2 {
        top: 48%;
        left: 2%;
        width: 6px;
        height: 6px;
    }

    .mobile-dot-3 {
        bottom: 22%;
        right: 18%;
    }

    /* Additional dots for more depth */
    .mobile-dot-4 {
        top: 65%;
        left: 15%;
        width: 5px;
        height: 5px;
        background: var(--accent-secondary);
        opacity: 0.35;
    }

    .mobile-dot-5 {
        top: 28%;
        left: 20%;
        width: 4px;
        height: 4px;
        opacity: 0.3;
    }

    .mobile-dot-6 {
        bottom: 45%;
        right: 6%;
        width: 6px;
        height: 6px;
        background: var(--accent-blue);
        opacity: 0.3;
    }

    /* Mobile rings - decorative circles */
    .mobile-ring {
        position: absolute;
        width: 60px;
        height: 60px;
        border: 1px solid #7c4dff;
        border: 1px solid var(--accent-primary, #7c4dff);
        border-radius: 50%;
        opacity: 0.18;
        pointer-events: none;
    }

    .mobile-ring-1 {
        top: 6%;
        right: 2%;
        width: 70px;
        height: 70px;
    }

    .mobile-ring-2 {
        bottom: 28%;
        left: 0;
        width: 50px;
        height: 50px;
    }

    /* Additional rings */
    .mobile-ring-3 {
        top: 55%;
        right: 0;
        width: 80px;
        height: 80px;
        border-color: var(--accent-secondary);
        opacity: 0.12;
    }

    .mobile-ring-4 {
        bottom: 8%;
        left: 25%;
        width: 35px;
        height: 35px;
        opacity: 0.15;
    }

    /* Mobile corner brackets */
    .mobile-bracket {
        position: absolute;
        font-family: var(--font-mono), 'Courier New', monospace;
        font-size: 3rem;
        color: #7c4dff;
        color: var(--accent-primary, #7c4dff);
        opacity: 0.12;
        font-weight: bold;
        user-select: none;
        pointer-events: none;
    }

    .mobile-bracket-1 {
        top: 4%;
        left: 4%;
        font-size: 3.5rem;
    }

    .mobile-bracket-2 {
        bottom: 8%;
        right: 4%;
    }

    /* Plus symbols - tech aesthetic */
    .mobile-plus {
        position: absolute;
        font-family: var(--font-mono), 'Courier New', monospace;
        font-size: 1.5rem;
        color: #10b981;
        color: var(--accent-secondary, #10b981);
        opacity: 0.2;
        font-weight: 300;
        user-select: none;
        pointer-events: none;
    }

    .mobile-plus-1 {
        top: 25%;
        right: 25%;
    }

    .mobile-plus-2 {
        bottom: 35%;
        left: 18%;
        font-size: 1.2rem;
    }

    .mobile-plus-3 {
        top: 70%;
        right: 30%;
        font-size: 1rem;
        opacity: 0.15;
    }

    /* Gradient lines - subtle accents */
    .mobile-line {
        position: absolute;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
        opacity: 0.15;
    }

    .mobile-line-1 {
        top: 40%;
        left: 0;
        width: 60px;
    }

    .mobile-line-2 {
        bottom: 55%;
        right: 0;
        width: 80px;
    }

    .mobile-line-3 {
        top: 75%;
        left: 10%;
        width: 50px;
        transform: rotate(45deg);
        opacity: 0.1;
    }

    /* Keep orbs on mobile but smaller */
    .orb {
        display: block !important;
        opacity: 0.2 !important;
        filter: blur(90px) !important;
    }

    .hero-orb-1 {
        width: 320px !important;
        height: 320px !important;
    }

    .hero-orb-2 {
        width: 280px !important;
        height: 280px !important;
    }

    .hero-orb-3 {
        width: 180px !important;
        height: 180px !important;
    }

    /* decor-text slightly more visible */
    .decor-text {
        opacity: 0.4 !important;
    }
}


/* Removed infinite mobile animations for performance */

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 2;
}

.hero-badge {
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-black);
    line-height: var(--leading-none);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(4rem, 8vw, 7rem);
    }
}

.hero-title .highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(var(--glow-strong));
}

/* Hero Title Wide variant */
.hero-title-wide {
    max-width: 900px;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

/* Hero Inline Stats */
.hero-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-8) 0;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-5) var(--space-8);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(124, 77, 255, 0.2);
}

.hero-stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-black);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.hero-stat-divider {
    width: 1px;
    background: var(--border-subtle);
    align-self: stretch;
    margin: var(--space-2) 0;
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-stat {
        padding: var(--space-4) var(--space-6);
        width: 100%;
        max-width: 280px;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-title-wide {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-primary);
    max-width: 550px;
    margin: 0 auto var(--space-4);
    line-height: var(--leading-relaxed);
}

.hero-subtitle-muted {
    color: var(--text-tertiary);
    font-size: var(--text-lg);
}

.hero-note {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    opacity: 0.7;
}

/* Hero Guarantee Badge */
.hero-guarantee {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    margin: var(--space-4) auto var(--space-6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--text-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: guaranteePulse 3s ease-in-out infinite;
}

.hero-guarantee svg {
    color: #10b981;
    flex-shrink: 0;
}

.hero-guarantee strong {
    color: #10b981;
}

@keyframes guaranteePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

@media (max-width: 640px) {
    .hero-guarantee {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
        gap: var(--space-1);
        flex-direction: column;
        text-align: center;
    }

    .hero-guarantee svg {
        margin-bottom: var(--space-1);
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    animation: float 3s infinite var(--ease-in-out);
    z-index: 0;
    pointer-events: none;
}

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .hero-scroll {
        display: none;
    }
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

/* === Offer Section === */