/* =============================================
   DEXDISTRICT — Style principal v2
   Esthétique : Dark + vibrant (bolt.new inspired)
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:            #0a0a0f;
    --bg-2:          #0f0f18;
    --bg-3:          #13131f;
    --surface:       #16162a;
    --surface-2:     #1c1c33;
    --border:        rgba(130, 100, 255, 0.15);
    --border-bright: rgba(130, 100, 255, 0.4);

    --purple:        #7c3aed;
    --purple-light:  #a78bfa;
    --blue:          #3b82f6;
    --blue-light:    #93c5fd;
    --cyan:          #06b6d4;
    --cyan-light:    #67e8f9;

    --grad-main:  linear-gradient(135deg, #7c3aed, #3b82f6);
    --grad-text:  linear-gradient(90deg, #a78bfa, #60a5fa, #22d3ee);
    --grad-card:  linear-gradient(145deg, rgba(124,58,237,0.07), rgba(59,130,246,0.05));

    --white:      #f0eeff;
    --white-dim:  rgba(240,238,255,0.55);
    --white-faint:rgba(240,238,255,0.09);

    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* =============================================
   HEADER
   ============================================= */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

header.scrolled {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3em;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 3px;
}

.logo-bracket {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-name { color: var(--white); }

nav { display: flex; gap: 36px; }

nav a {
    font-size: 0.87em;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--white-dim);
    transition: color 0.2s;
}

nav a:hover { color: var(--white); }

.nav-cta {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--white);
    background: var(--grad-main);
    padding: 10px 22px;
    border-radius: 8px;
    transition: opacity 0.25s, transform 0.2s;
    letter-spacing: 0.02em;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* =============================================
   HERO
   ============================================= */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 60px 80px;
    position: relative;
    overflow: hidden;
    gap: 40px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 40%, black 20%, transparent 100%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -150px; left: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 7s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    bottom: -200px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.14) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 7s 3.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.2); opacity: 0.6; }
}

.hero-content {
    flex: 1;
    max-width: 680px;
    z-index: 1;
    animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
    font-size: 0.8em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-label::before {
    content: '';
    display: inline-block;
    width: 28px; height: 1px;
    background: var(--grad-main);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3em, 6vw, 5.2em);
    font-weight: 800;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 28px;
}

.hero-accent {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 1em;
    color: var(--white-dim);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-description strong { color: var(--white); font-weight: 500; }

.btn-primary {
    display: inline-block;
    background: var(--grad-main);
    color: white;
    font-family: var(--font-display);
    font-size: 0.92em;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 16px 36px;
    border-radius: 8px;
    transition: opacity 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 0 30px rgba(124,58,237,0.3);
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(124,58,237,0.5);
}

/* Hero floating cards */
.hero-visual {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    height: 310px;
    z-index: 1;
    animation: fadeUp 0.9s 0.3s ease both;
}

.hero-card {
    position: absolute;
    background: var(--surface-2);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(124,58,237,0.1);
}

.card-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.card-dot.purple { background: var(--purple-light); box-shadow: 0 0 8px var(--purple-light); }
.card-dot.blue   { background: var(--blue-light);   box-shadow: 0 0 8px var(--blue-light); }
.card-dot.cyan   { background: var(--cyan-light);   box-shadow: 0 0 8px var(--cyan-light); }

.card-1 { top: 20px;  left: 0;    animation: float 5s 0s ease-in-out infinite; }
.card-2 { top: 135px; left: 25px; animation: float 5s 1.7s ease-in-out infinite; }
.card-3 { top: 248px; left: 5px;  animation: float 5s 0.9s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* =============================================
   SHARED
   ============================================= */
.section-label {
    font-size: 0.75em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 22px; height: 1px;
    background: var(--grad-main);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 50px;
}

.accent {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   SERVICES
   ============================================= */
#services {
    padding: 120px 60px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px 36px;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.service.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.service:nth-child(2).visible { transition-delay: 0.1s; }
.service:nth-child(3).visible { transition-delay: 0.2s; }

.service:hover {
    border-color: var(--border-bright);
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 60px rgba(124,58,237,0.18);
}

.service.featured {
    border-color: rgba(124,58,237,0.5);
    box-shadow: 0 0 40px rgba(124,58,237,0.12), inset 0 0 40px rgba(124,58,237,0.04);
}

.service-badge {
    position: absolute;
    top: -13px; left: 36px;
    background: var(--grad-main);
    color: white;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3.5em;
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.service h3 {
    font-family: var(--font-display);
    font-size: 1.25em;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}

.service p {
    font-size: 0.92em;
    color: var(--white-dim);
    line-height: 1.75;
    margin-bottom: 28px;
}

.service p strong { color: var(--white); font-weight: 500; }

.service-price {
    font-family: var(--font-display);
    font-size: 2.2em;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   TRUST
   ============================================= */
#trust {
    padding: 120px 60px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.trust-layout {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    flex-wrap: wrap;
}

.trust-left { flex: 1; min-width: 280px; }
.trust-left .section-title { margin-bottom: 28px; }

.trust-text {
    font-size: 0.97em;
    color: var(--white-dim);
    line-height: 1.85;
    max-width: 520px;
}

.trust-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 40px;
    min-width: 250px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-main);
}

.stat-card.visible { opacity: 1; transform: translateX(0); }
.stat-card:nth-child(2) { transition-delay: 0.15s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }

.stat-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 10px 40px rgba(124,58,237,0.15);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3em;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85em;
    color: var(--white-dim);
    letter-spacing: 0.05em;
}

/* =============================================
   GALLERY
   ============================================= */
#gallery {
    padding: 120px 60px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.gallery-sub {
    font-size: 0.97em;
    color: var(--white-dim);
    max-width: 560px;
    margin-top: -30px;
    margin-bottom: 60px;
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.site-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.site-card.visible { opacity: 1; transform: translateY(0); }
.site-card:nth-child(2) { transition-delay: 0.12s; }
.site-card:nth-child(3) { transition-delay: 0.24s; }

.site-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 60px rgba(124,58,237,0.18);
}

.site-preview {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0d0d18;
}

.site-preview iframe {
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: top left;
    border: none;
    pointer-events: none;
}

.site-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,20,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.site-card:hover .site-overlay { opacity: 1; }

.site-link {
    background: var(--grad-main);
    color: white;
    font-family: var(--font-display);
    font-size: 0.85em;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 0 30px rgba(124,58,237,0.5);
}

.site-link:hover { opacity: 0.88; transform: scale(1.03); }

.site-info { padding: 24px 28px; }

.site-tag {
    display: inline-block;
    font-size: 0.7em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-light);
    border: 1px solid rgba(124,58,237,0.35);
    background: rgba(124,58,237,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.site-info h3 {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.site-info p {
    font-size: 0.85em;
    color: var(--white-dim);
    line-height: 1.65;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
    padding: 120px 60px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-left { flex: 1; min-width: 260px; }
.contact-left .section-title { margin-bottom: 36px; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    opacity: 0;
    transform: translateX(-12px);
}

.contact-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-item:nth-child(2) { transition-delay: 0.08s; }
.contact-item:nth-child(3) { transition-delay: 0.16s; }
.contact-item:nth-child(4) { transition-delay: 0.24s; }
.contact-item:nth-child(5) { transition-delay: 0.32s; }

.ci-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--purple-light);
}

.contact-item strong {
    display: block;
    font-size: 0.78em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 2px;
    font-weight: 500;
}

.contact-item p {
    font-size: 0.92em;
    color: var(--white-dim);
}

.contact-item a { color: var(--purple-light); transition: color 0.2s; }
.contact-item a:hover { color: var(--blue-light); }

/* FORM */
.contact-right { flex: 1; min-width: 280px; }

form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 0.78em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-dim);
}

form input,
form textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.93em;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    width: 100%;
}

form input::placeholder,
form textarea::placeholder { color: rgba(240,238,255,0.2); }

form input:focus,
form textarea:focus {
    border-color: rgba(124,58,237,0.65);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

form textarea { min-height: 150px; resize: vertical; }

form .btn-primary {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.88em;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 28px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 800;
}

.footer-center p {
    font-size: 0.8em;
    color: var(--white-dim);
    letter-spacing: 0.04em;
}

.footer-right { display: flex; gap: 28px; }

.footer-right a {
    font-size: 0.78em;
    color: var(--white-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.footer-right a:hover { color: var(--purple-light); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    header { padding: 18px 24px; }
    nav { display: none; }
    .nav-cta { font-size: 0.8em; padding: 8px 14px; }

    #home {
        padding: 120px 24px 60px;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-visual { display: none; }

    #services, #trust, #gallery, #contact { padding: 80px 24px; }

    .trust-layout { flex-direction: column; gap: 48px; }
    .trust-right { width: 100%; }
    .stat-card { min-width: 0; width: 100%; }

    .contact-layout { flex-direction: column; gap: 48px; }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .footer-right { flex-wrap: wrap; gap: 16px; }
}