/* ========================================
   EVATIKA - Carte de Visite Paysage
   ======================================== */

:root {
    --bg-primary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.5);
    --accent-purple: #742774;
    --accent-blue: #0066ff;
    --accent-cyan: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #0066ff, #00d4aa, #00c896);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 24px;
    --radius-sm: 10px;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .service:hover,
[data-theme="dark"] .portfolio-item:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tag:hover {
    background: var(--accent-gradient);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(116, 39, 116, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Top Controls (Theme + Language) */
.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

/* Theme Switcher */
.theme-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid rgba(116, 39, 116, 0.15);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.theme-switch:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 39, 116, 0.2);
}

.theme-switch:hover .theme-icon {
    color: white;
}

.lang-switch:hover .lang-icon {
    color: white;
}

.theme-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.lang-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid rgba(116, 39, 116, 0.15);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 39, 116, 0.2);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-code {
    letter-spacing: 0.5px;
}

/* Card - Format Paysage */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08), 0 8px 30px rgba(0, 0, 0, 0.04);
    max-width: 1200px;
    width: 85%;
    padding: 50px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    display: grid;
    grid-template-columns: 300px 1px 1fr;
    gap: 50px;
    align-items: center;
}

[data-theme="dark"] .card {
    background: linear-gradient(135deg, rgba(26,26,46,0.95), rgba(26,26,46,0.85));
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Left Side */
.card-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 100%;
}

.logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(116, 39, 116, 0.25));
    margin-bottom: 8px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .logo {
    display: none;
}

.name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(116, 39, 116, 0.1), rgba(0, 102, 255, 0.1));
    border: 1px solid rgba(116, 39, 116, 0.15);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--accent-purple);
    font-weight: 500;
}

.stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--accent-purple), transparent);
}

/* Divider */
.card-divider {
    width: 1px;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(180deg, transparent, rgba(116, 39, 116, 0.3), transparent);
}

/* Right Side */
.card-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    padding: 5px 12px;
    background: var(--bg-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.tag-accent {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag-accent:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* Quand on survole un autre tag, Power Apps revient en neutre */
.tags:hover .tag-accent:not(:hover) {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.3s ease;
}

.service:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 1.5rem;
}

/* CTA */
.cta-section {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(116, 39, 116, 0.15);
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.portfolio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.portfolio-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portfolio-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.portfolio-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Testimonial */
.testimonial {
    margin-top: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(116, 39, 116, 0.06), rgba(0, 102, 255, 0.06));
    border-radius: var(--radius-sm);
}

.testimonial-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.testimonial-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    font-style: normal;
}

.cta-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(116, 39, 116, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(116, 39, 116, 0); }
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(116, 39, 116, 0.35);
    animation: none;
}

.cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-2px);
}

.cta-email:hover {
    background: var(--accent-purple);
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .top-controls {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .card {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        width: 95%;
    }
    
    .card-divider {
        width: 100%;
        height: 1px;
        min-height: auto;
        background: linear-gradient(90deg, transparent, rgba(116, 39, 116, 0.3), transparent);
    }
    
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Responsive - Mobile */
@media (max-width: 520px) {
    .card {
        padding: 28px 24px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .cta-primary {
        font-size: 0.8rem;
        padding: 12px 16px;
    }
    
    .cta-section {
        flex-wrap: wrap;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .cursor-glow { display: none; }
}
