/* ===================================================================
   WebFIX — Premium Design System (Neon Pink & Deep Purple)
   =================================================================== */

/* --- Design Tokens --- */
:root {
    /* Color Palette - Ambiance Néon/Cyberpunk */
    --bg-primary: #090310; /* Violet très profond, quasi noir */
    --bg-secondary: #140924; /* Violet sombre pour les sections */
    --bg-tertiary: #22103a; /* Violet un peu plus clair pour les survols */
    --bg-card: rgba(20, 9, 36, 0.7); /* Cartes translucides */
    --bg-card-hover: rgba(34, 16, 58, 0.85);

    --accent-primary: #ec4899;       /* Rose vif/Néon */
    --accent-bright: #f472b6;        /* Rose clair (pour les hovers/glow) */
    --accent-glow: rgba(236, 72, 153, 0.4); /* Lueur rose */
    --accent-subtle: rgba(168, 85, 247, 0.15); /* Lueur violette subtile */
    --accent-gradient: linear-gradient(135deg, #a855f7, #ec4899); /* Dégradé Violet vers Rose */

    --text-primary: #fdf4ff;         /* Blanc légèrement teinté rose/violet */
    --text-secondary: #e8d8f8;       /* Gris-violet clair */
    --text-muted: #b6a3cc;           /* Violet désaturé */
    
    --border-color: rgba(232, 216, 248, 0.08); /* Bordures très discrètes */
    --border-accent: rgba(236, 72, 153, 0.3); /* Rose transparent */

    /* Spacing & Layout */
    --section-padding: 100px 20px;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.w-100 { width: 100%; }

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.text-muted { color: var(--text-muted); }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-padding { padding: var(--section-padding); }
.bg-section-alt { background-color: var(--bg-secondary); }
.mt-4 { margin-top: 2rem; }

/* Grid Layouts */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s;
}

/* --- Navbar --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(9, 3, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
}

.nav-brand .brand-icon {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-bright);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-bright);
}

.large-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.glow-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

/* --- Hero Section --- */
#hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(236, 72, 153, 0.15); 
    color: var(--accent-bright);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--border-accent);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Services Section --- */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    transform: translateZ(20px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transform: translateZ(10px);
}

.service-card p {
    color: var(--text-secondary);
    transform: translateZ(5px);
}

/* --- Avis Clients (Testimonials) --- */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.testimonial-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px var(--accent-subtle);
}

.testimonial-card .stars {
    color: var(--accent-bright);
    margin-bottom: 20px;
    font-size: 1.2rem;
    transform: translateZ(15px);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 30px;
    transform: translateZ(10px);
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateZ(5px);
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.author-info h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Tarifs (Pricing) --- */
.pricing-grid {
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--accent-primary);
}

.pricing-card.popular {
    border: 2px solid var(--accent-primary);
    background: var(--bg-tertiary);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.4);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-bright);
    margin-bottom: 10px;
}

.pricing-header .price span {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
}

.pricing-features li i {
    margin-top: 4px;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: var(--text-muted);
}

/* --- Contact Section --- */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 250px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent-primary);
}

.contact-card i {
    margin-bottom: 16px;
}

.contact-card h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-secondary);
}

/* --- Footer --- */
footer {
    background: #06020a; /* Encore plus sombre que bg-primary */
    border-top: 1px solid var(--border-color);
    padding: 80px 20px 20px;
}

.footer-content {
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
}

.footer-links-col h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col a {
    color: var(--text-secondary);
}

.footer-links-col a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* --- Scroll To Top --- */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .contact-cards { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; max-width: 400px; }
    
    .footer-content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand p { margin: 16px auto; }
    .footer-logo, .social-links { justify-content: center; }
}