/* FLASHSITE AGENCY - STYLES PRINCIPAUX 
    Optimisé pour : Performance, SEO visuel et UX Artisans/Travaux
    Version : Launch Promo Feb 2026
*/

:root {
    /* Palette de base */
    --color-fuchsia: #F900BF;
    --color-fuchsia-glow: #ff52d9;
    --color-cyan: #00F5FF; 
    --color-gold: #FFD700;
    --color-dark-bg: #050505;
    --color-dark-card: #0a0a0a;
    --color-border: #202020;
    
    /* Typographies */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Utilities */
    --transition-fast: 0.2s ease;
    --transition-standard: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-dark-bg);
    color: #ffffff;
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Canvas Particles Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

/* --- TYPOGRAPHIE --- */
.font-display { font-family: var(--font-display); }
.text-neon { color: var(--color-fuchsia); text-shadow: 0 0 10px rgba(249, 0, 191, 0.3); }
.text-cyan { color: var(--color-cyan); }
.text-gradient {
    background: linear-gradient(to right, #fff, var(--color-fuchsia));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- COMPOSANTS UI --- */

/* Badge Promotionnel */
.promo-badge {
    background: linear-gradient(45deg, var(--color-fuchsia), #8e00ff);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(249, 0, 191, 0.4);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-standard);
}
.glass-card:hover {
    border-color: rgba(249, 0, 191, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition-standard);
    cursor: pointer;
    text-decoration: none;
    gap: 10px;
}

.btn-neon {
    background-color: var(--color-fuchsia);
    color: white;
    box-shadow: 0 0 20px rgba(249, 0, 191, 0.4);
}
.btn-neon:hover {
    background-color: var(--color-fuchsia-glow);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(249, 0, 191, 0.6);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: white;
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--color-fuchsia);
    background: rgba(249, 0, 191, 0.05);
}

/* --- SECTIONS SPÉCIFIQUES --- */

/* Header Uniforme */
.main-header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: height 0.3s ease;
}

/* --- CAROUSEL INFINI (Inspirations) --- */
.carousel-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Effet de fondu sur les côtés */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.carousel-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}
.carousel-track:hover {
    animation-play-state: paused;
}
.carousel-item {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0.8;
    transition: 0.3s;
}
/* Ancienne classe Portfolio Grid (gardée en secours si besoin, mais carrousel prioritaire) */
.portfolio-item {
    aspect-ratio: 16/10;
    background: var(--color-dark-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* Feature "Devis Automatisé" */
.feature-devis-box {
    border: 2px solid var(--color-cyan);
    background: rgba(0, 245, 255, 0.03);
    position: relative;
    overflow: hidden;
}
.feature-devis-box::before {
    content: "OPTION PHARE ARTISANS";
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--color-cyan);
    color: black;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 40px;
    transform: rotate(45deg);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion (FAQ) */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* Footer & Legal */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Formulaires */
.input-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: white;
    transition: var(--transition-fast);
    padding: 0.75rem 1rem;
    width: 100%;
    border-radius: 8px;
}
.input-dark:focus {
    outline: none;
    border-color: var(--color-fuchsia);
    box-shadow: 0 0 15px rgba(249, 0, 191, 0.1);
}

/* Responsivité Mobile */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2.5rem !important; }
}

/* Animation Glow */
.section-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(249,0,191,0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

/* Success Popup - Simple */
.success-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(249, 0, 191, 0.95);
    border: 1px solid #F900BF;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    font-weight: bold;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(249, 0, 191, 0.3);
}

.success-popup.show {
    opacity: 1;
    visibility: visible;
}