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

:root {
    --theme-primary: #3b82f6;
    --theme-secondary: #06b6d4;
    --theme-accent: #8b5cf6;
    --bg-gradient-start: #0a0a2a;
    --bg-gradient-end: #050510;
    --bg-card: rgba(255, 255, 255, 0.08);
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    --border-glow: rgba(59, 130, 246, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    min-height: 100vh;
}

/* Light Mode */
body.light-mode {
    --bg-gradient-start: #fef9e8;
    --bg-gradient-end: #fff5e6;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-light: #1e293b;
    --text-muted: #475569;
    --border-glow: rgba(59, 130, 246, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-links a {
    color: #1e293b;
}

body.light-mode .project-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.light-mode .project-card:hover {
    background: white;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

body.light-mode .stat-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body.light-mode .simulator-card,
body.light-mode .contact-form,
body.light-mode .faq-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body.light-mode .btn-outline {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e293b;
}

body.light-mode .footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

body.light-mode .hero-badge {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

body.light-mode .form-control,
body.light-mode .form-select {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

body.light-mode .form-control:focus,
body.light-mode .form-select:focus {
    background: white;
    border-color: var(--theme-primary);
}

body.light-mode .notification {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e293b;
}

body.light-mode .loading-screen {
    background: linear-gradient(135deg, #fef9e8, #fff5e6);
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    touch-action: none;
}

.content {
    position: relative;
    z-index: 1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a2a, #050510);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s;
    pointer-events: none;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary));
    transition: width 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--theme-primary);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: scale(1.1);
    border-color: var(--theme-primary);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 80px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Widget Badge & Avatar */
.widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 101;
}

.welcome-badge {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    animation: slideInRight 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    white-space: nowrap;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-badge.slide-out {
    animation: slideOutRight 0.4s forwards;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    animation: slideInLeft 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.profile-avatar:hover {
    transform: scale(1.05);
    border-color: var(--theme-primary);
}

.profile-avatar.click-animation {
    animation: avatarClickPulse 0.5s ease-out;
}

@keyframes avatarClickPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.profile-avatar.rotate-animation {
    animation: avatarRotate 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes avatarRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hidden {
    display: none;
}

/* Profile Modal */
.profile-modal {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-glow);
    width: 320px;
    z-index: 102;
    animation: modalSlideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.profile-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.profile-modal-close:hover {
    color: var(--theme-primary);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 16px;
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.profile-title {
    text-align: center;
    color: var(--theme-primary);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.profile-bio {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.profile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.profile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.profile-contact-item i {
    width: 24px;
    color: var(--theme-primary);
}

.profile-contact-item:hover {
    color: var(--theme-primary);
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glow);
}

.profile-social a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: all 0.2s;
}

.profile-social a:hover {
    color: var(--theme-primary);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .widget-container {
        bottom: 20px;
        left: 20px;
    }
    .profile-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    .welcome-badge {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    .profile-modal {
        width: calc(100% - 40px);
        left: 20px;
        bottom: 80px;
        right: 20px;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 16px;
    padding: 16px 24px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.4s;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--theme-primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
}

body.light-mode .menu-toggle span {
    background: #1e293b;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--theme-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s;
        z-index: 99;
    }
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }
    .nav-links.active {
        right: 0;
    }
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Hero */
.hero-section {
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.4);
    }
    50% {
        border-color: var(--theme-primary);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }
}

h1 {
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, var(--theme-primary), var(--theme-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

body.light-mode h1 {
    background: linear-gradient(135deg, #1e293b, var(--theme-primary), var(--theme-secondary));
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 28px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 5vw, 48px);
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    cursor: pointer;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--theme-primary);
}

.stat-number {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary), color-mix(in srgb, var(--theme-primary) 80%, black));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.section-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--theme-primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

body.light-mode .section-title {
    background: linear-gradient(135deg, #1e293b, var(--theme-primary));
    background-clip: text;
    -webkit-background-clip: text;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 24px;
    border: 1px solid var(--border-glow);
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    cursor: pointer;
    position: relative;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--theme-primary);
    box-shadow: 0 20px 35px -15px var(--shadow-color);
}

body.light-mode .project-card:hover {
    background: white;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.project-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--theme-primary);
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-stat {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin: 8px 0;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--theme-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Preview Container avec bouton étude */
.preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 20, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

body.light-mode .preview-container {
    background: rgba(255, 255, 255, 0.98);
}

.project-card:hover .preview-container {
    opacity: 1;
    visibility: visible;
}

.laptop-mockup {
    position: relative;
    width: 85%;
    max-width: 320px;
    background: #1a1a2e;
    border-radius: 16px;
    padding: 10px 10px 30px 10px;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--theme-primary);
    transition: transform 0.3s ease, box-shadow 0.3s;
    transform: scale(0.92);
    margin-bottom: 12px;
}

body.light-mode .laptop-mockup {
    background: #2d2d44;
}

.project-card:hover .laptop-mockup {
    transform: scale(1);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--theme-primary), 0 0 20px var(--theme-primary);
}

.laptop-screen {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}

.iframe-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.iframe-preview {
    border: none;
    background: white;
    transition: transform 0.2s ease;
    display: block;
    transform-origin: 0 0;
}

.laptop-base {
    position: absolute;
    bottom: -18px;
    left: 10%;
    width: 80%;
    height: 10px;
    background: #2d2d44;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cursor-animation {
    position: absolute;
    bottom: 12px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: var(--theme-primary);
    border-radius: 50%;
    filter: blur(3px);
    animation: cursorPulse 1s infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes cursorPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Bouton étude dans le preview */
.preview-detail-btn {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
}

.preview-detail-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.zoom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    gap: 8px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .zoom-controls {
    opacity: 1;
}

.zoom-btn {
    background: rgba(59, 130, 246, 0.5);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: var(--theme-primary);
    transform: scale(1.1);
}

.zoom-value {
    font-size: 0.7rem;
    color: white;
    min-width: 40px;
    text-align: center;
    line-height: 28px;
}

/* Simulator */
.simulator-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 32px;
    border: 1px solid var(--border-glow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--theme-primary);
    background: rgba(59, 130, 246, 0.1);
}

.range-value {
    display: inline-block;
    margin-left: 12px;
    color: var(--theme-primary);
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--theme-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--theme-primary);
}

.price-result {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    margin: 24px 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-glow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.1);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--theme-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px 24px;
    max-height: 300px;
}

/* Contact & CTA */
.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 32px;
    border: 1px solid var(--border-glow);
    max-width: 600px;
    margin: 0 auto;
}

.cta-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 48px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.footer {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    padding: 48px 20px 32px;
    border-top: 1px solid var(--border-glow);
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s;
    margin: 0 12px;
    display: inline-block;
}

.social-links a:hover {
    color: var(--theme-primary);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Modal pour études de cas (contenu détaillé) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

body.light-mode .modal-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid var(--border-glow);
    padding: 32px;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(59, 130, 246, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--theme-primary);
    transform: scale(1.05);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glow);
}

.modal-content {
    color: var(--text-light);
    line-height: 1.6;
}

.modal-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 12px;
    color: var(--theme-primary);
}

.modal-content ul {
    margin: 12px 0 16px;
    padding-left: 24px;
}

.modal-content li {
    margin: 8px 0;
    color: var(--text-muted);
}

.modal-content .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.modal-content .feature-item {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 10px 20px;
    background: var(--theme-primary);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-link:hover {
    transform: translateX(5px);
}