/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    /* Couleurs principales - Palette moderne */
    --primary-color: #00D9A3;
    --primary-dark: #00B88A;
    --primary-light: #33E3B5;
    --secondary-color: #1E293B;
    --accent-color: #6366F1;
    --accent-light: #818CF8;
    
    /* Couleurs de texte */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #94A3B8;
    
    /* Couleurs de fond */
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-gradient: linear-gradient(135deg, #00D9A3 0%, #6366F1 100%);
    
    /* Autres couleurs */
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --whatsapp-color: #25D366;
    
    /* Ombres élégantes */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 20px 40px -10px rgba(0, 217, 163, 0.3);
    
    /* Transitions fluides */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */

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

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    z-index: 1001;
}

.logo-icon {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
}

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

/* Menu burger mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: var(--radius-full);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.nav-menu a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 0.125rem;
    background: var(--bg-gradient);
    transition: transform 0.3s ease;
    border-radius: var(--radius-full);
}

.nav-menu a:not(.btn-primary):hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary,
.btn-secondary,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--bg-gradient);
    color: var(--bg-white);
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 217, 163, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 217, 163, 0.05);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(37, 211, 102, 0.5);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #F0FDFA 0%, #E0F2FE 50%, #EEF2FF 100%);
    padding: clamp(3rem, 10vw, 6rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 217, 163, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: clamp(2rem, 5vw, 4rem);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    min-width: 120px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* ========================================
   SECTIONS
   ======================================== */

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services {
    padding: clamp(3rem, 10vw, 6rem) 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    border: 2px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-gradient);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-weight: 900;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.service-card h3 {
    font-size: 1.625rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.625rem 0;
    color: var(--text-secondary);
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.125rem;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio {
    padding: clamp(3rem, 10vw, 6rem) 0;
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.project-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-5px);
}

.project-image {
    background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-badge.demo {
    background: var(--bg-gradient);
    color: white;
    box-shadow: var(--shadow-colored);
}

/* Mockup Phone amélioré */
.mockup-phone {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19;
    background: linear-gradient(145deg, #1F2937 0%, #111827 100%);
    border-radius: 2.5rem;
    padding: 0.875rem;
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.mockup-phone:before {
    content: "";
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 1.5rem;
    background: #0F172A;
    border-radius: var(--radius-full);
    z-index: 10;
}

.phone-screen {
    background: linear-gradient(to bottom, #ECE5DD 0%, #D9D1C7 100%);
    height: 100%;
    border-radius: 2rem;
    padding: 3rem 1rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.received {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.chat-bubble.sent {
    background: #DCF8C6;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

/* Animations des bulles */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.chat-animation.received {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

.chat-animation.sent {
    animation: slideInRight 0.5s ease forwards;
    opacity: 0;
}

.project-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 800;
}

.project-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.project-features {
    margin-bottom: 2rem;
}

.project-features h4 {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.project-features ul {
    list-style: none;
}

.project-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.project-tech {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid rgba(0, 217, 163, 0.2);
    transition: var(--transition);
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    transform: translateY(-2px);
}

.project-results {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.result-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.result-number {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.result-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Projet à venir */
.project-card.upcoming {
    grid-template-columns: 1fr;
}

.project-image.placeholder {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    min-height: 300px;
}

.coming-soon {
    text-align: center;
}

.coming-soon .icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
}

.coming-soon h4 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.project-card.upcoming .project-content {
    text-align: center;
    padding: 3rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    background: var(--bg-gradient);
    color: white;
    padding: clamp(3rem, 10vw, 5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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.05'%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.4;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.cta p {
    font-size: clamp(1rem, 2vw, 1.375rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.cta .btn-primary:hover {
    background: var(--bg-light);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: clamp(3rem, 10vw, 6rem) 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    transform: translateX(5px);
}

.info-icon {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 80px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-item h4 {
    margin-bottom: 0.375rem;
    color: var(--text-primary);
    font-weight: 700;
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-action {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.contact-action h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 800;
}

.contact-action > p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-note {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-dark);
    color: var(--bg-light);
    padding: clamp(2rem, 8vw, 4rem) 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    margin-top: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    margin-bottom: 1.25rem;
    color: white;
    font-weight: 700;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-column a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ========================================
   PRIVACY POLICY PAGE
   ======================================== */

.privacy-policy {
    padding: clamp(2rem, 8vw, 4rem) 0;
    background: var(--bg-white);
}

.privacy-policy h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 900;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
}

.policy-intro {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.policy-intro p {
    line-height: 1.8;
    color: var(--text-primary);
}

.privacy-policy h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-weight: 800;
}

.privacy-policy h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.policy-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

.policy-section li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.policy-section strong {
    color: var(--text-primary);
}

.contact-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.contact-box p {
    margin-bottom: 0.75rem;
}

.policy-footer {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    margin-top: 3rem;
    border: 2px solid var(--primary-color);
}

.policy-footer p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.policy-footer p:last-child {
    margin-bottom: 0;
}

.back-to-top {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@media (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        min-height: 400px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Navigation mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.125rem;
    }
    
    .nav-menu a.btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn-large {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat {
        min-width: 100px;
        padding: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Portfolio */
    .project-content {
        padding: 2rem;
    }
    
    .mockup-phone {
        max-width: 240px;
    }
    
    .project-tech {
        gap: 0.5rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .project-results {
        gap: 1rem;
    }
    
    /* Contact */
    .contact-action {
        padding: 2rem;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container,
    .container-narrow {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .contact-action {
        padding: 1.5rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .mockup-phone {
        max-width: 200px;
    }
    
    .info-item {
        padding: 1rem;
    }
}

/* Optimisations pour très petits écrans */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .stat {
        min-width: 90px;
        padding: 0.75rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}

/* Optimisations iPhone spécifiques */
@supports (-webkit-touch-callout: none) {
    .navbar {
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
    }
    
    .stat {
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
    }
}

/* Fix scrolling sur iOS */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}
