/* ===========
   RESET & BASE
   ============*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette de couleurs */
    --indigo-dark: #1e40af;
    --indigo-darker: #1e3a8a;
    --cyan-accent: #06b6d4;
    --cyan-light: #22d3ee;
    --gray-light: #f8fafc;
    --gray-medium: #e2e8f0;
    --gray-dark: #334155;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   UTILITAIRES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Animation fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.95);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: blur(10px);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-normal);
}

.header.scrolled .logo {
    color: var(--indigo-dark);
}

.logo i {
    color: var(--cyan-accent);
}

/* Navigation desktop */
.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

.header.scrolled .nav-desktop a {
    color: var(--text-dark);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-accent);
    transition: width var(--transition-normal);
}

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

.nav-desktop a:hover {
    color: var(--cyan-accent);
}

/* Burger menu */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: hsl(232.4,98.3%,74.2%);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.header.scrolled .burger span {
    background: var(--indigo-dark);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation mobile */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
    z-index: 999;
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-mobile a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-medium);
    transition: color var(--transition-normal);
}

.nav-mobile a:hover {
    color: var(--indigo-dark);
}

.nav-mobile a i {
    color: var(--cyan-accent);
    width: 20px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 998;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo-darker) 50%, var(--cyan-accent) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: var(--cyan-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Prix ----- */
.hero-price {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-badge {
    background: rgba(6, 182, 212, 0.2);
    border: 2px solid var(--cyan-accent);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    min-width: 200px;
}

.btn-primary {
    background: var(--cyan-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    background: var(--cyan-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--indigo-dark);
    border: 2px solid var(--indigo-dark);
}

.btn-outline:hover {
    background: var(--indigo-dark);
    color: var(--white);
}

/* ============================================
   SECTION À PROPOS
   ============================================ */
.about {
    background: var(--gray-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--indigo-dark), var(--cyan-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.value-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.value-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   SECTION SERVICES
   ============================================ */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-medium);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--cyan-accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--indigo-dark), var(--cyan-accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.75rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-features {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.service-features li {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ============================================
   SECTION TECHNOLOGIES
   ============================================ */
.tech {
    background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo-darker) 100%);
    color: var(--white);
}

.tech .section-title {
    color: var(--white);
}

.tech .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.tech-badge i {
    font-size: 1.1rem;
}

/* ============================================
   SECTION RÉALISATIONS (avec images)
   ============================================ */
.portfolio {
    background: var(--gray-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

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

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.portfolio-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--indigo-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.portfolio-link:hover {
    color: var(--cyan-accent);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--indigo-dark);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    background: var(--cyan-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-download i {
    font-size: 1rem;
}

/* ============================================
   SECTION CONTACT (avec liens cliquables)
   ============================================ */
.contact {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info-text {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 12px;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
}

.contact-method:hover {
    background: var(--gray-medium);
}

.contact-method i {
    color: var(--cyan-accent);
    font-size: 1.25rem;
}

.contact-method span {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-normal);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cyan-accent);
}

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

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--indigo-dark), var(--cyan-accent));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.response-time {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.response-time i {
    color: var(--cyan-accent);
    margin-right: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   MEDIA QUERIES - TABLET
   ============================================ */
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
    }

    .contact-info {
        text-align: left;
    }

    .contact-method {
        justify-content: flex-start;
    }

    .portfolio-actions {
        flex-wrap: nowrap;
    }
}

/* ============================================
   MEDIA QUERIES - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .burger {
        display: none;
    }

    .nav-desktop {
        display: block;
    }

    .nav-mobile,
    .overlay.active {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section {
        padding: 6rem 0;
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible pour navigation au clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--cyan-accent);
    outline-offset: 2px;
}