/* Base Styles and CSS Variables */
:root {
    --bg-dark: #07090f;
    --bg-darker: #04060a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-orange: #ff5722;
    --accent-orange-glow: rgba(255, 87, 34, 0.4);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;
    --gradient-orange: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
    --gradient-green: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Éviter débordement horizontal sur mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Empêcher le texte de déborder sur mobile */
h1, h2, h3, h4, p, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Background Noise and Gradients */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    max-width: 100vw;
    max-height: 100vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}

.glow-bg.top-left {
    top: -200px;
    left: -200px;
    background: var(--accent-orange);
}

.glow-bg.bottom-right {
    bottom: -200px;
    right: -200px;
    background: var(--accent-green);
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* ========== Animation Keyframes ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-orange-glow);
    }
    50% {
        box-shadow: 0 0 35px var(--accent-orange-glow);
    }
}

@keyframes lineExpand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes heroBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 87, 34, 0);
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.py-20 {
    padding: 5rem 0;
}

.py-12 {
    padding: 3rem 0;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

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

.highlight-orange {
    color: var(--accent-orange);
}

.highlight-green {
    color: var(--accent-green);
}

.section-subtitle {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                background 0.3s ease,
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px var(--accent-orange-glow);
    background: #e64a19;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Glass & UI Elements */
.glass-card,
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease,
                background 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (hover: none) and (pointer: coarse) {
    .glass-card:hover {
        transform: none;
    }

    .process-step:hover,
    .benefit-item:hover {
        transform: none;
    }

    .portfolio-item:hover .portfolio-img {
        transform: none;
    }
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    animation: headerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: rgba(4, 6, 10, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 0;
    gap: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent-orange);
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--text-main);
}

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

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

.header-cta {
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-darker);
    padding: 1.5rem 1rem 2rem;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.mobile-nav.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 87, 34, 0.2);
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    animation: heroBadgePulse 2.5s ease-in-out infinite;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

h1 span {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a50 50%, #ff5722 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: gradientShift 4s ease-in-out infinite;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.about-features i {
    color: var(--accent-green);
    font-style: normal;
}

.about-features li {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s ease;
}

.about-text.active .about-features li:nth-child(1) { transition-delay: 0.1s; }
.about-text.active .about-features li:nth-child(2) { transition-delay: 0.2s; }
.about-text.active .about-features li:nth-child(3) { transition-delay: 0.3s; }

.about-text.active .about-features li {
    opacity: 1;
    transform: translateX(0);
}

.about-features i::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.about-features li:hover i::before {
    transform: scale(1.15);
}

.visual-card {
    padding: 3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

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

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:nth-child(even)::before {
    background: var(--gradient-green);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon {
    transform: translateY(-4px) scale(1.05);
}

.orange-glow {
    box-shadow: 0 0 20px var(--accent-orange-glow);
}

.service-card:hover .orange-glow {
    animation: glowPulse 1.5s ease-in-out infinite;
}

.green-glow {
    box-shadow: 0 0 20px var(--accent-green-glow);
}

/* Benefits */
.why-us-wrapper {
    padding: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit-item {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-item:hover {
    transform: translateY(-4px);
}

.benefit-item h4 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Process Timeline (simplified) */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-step {
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border-left: 4px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease,
                box-shadow 0.3s ease;
}

.process-step:nth-child(odd) {
    border-left-color: var(--accent-orange);
}

.process-step:nth-child(even) {
    border-left-color: var(--accent-green);
}

.process-step:hover {
    transform: translateY(-8px) translateX(4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.process-step h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7, 9, 15, 0.85) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-img {
    height: 250px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-info {
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(-2px);
}

.bg-gradient-1 {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}

.portfolio-info {
    padding: 1.5rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.portfolio-info h4 {
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent-orange);
}

/* Testimonials */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    text-align: center;
}

.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.author {
    font-weight: 600;
    color: var(--accent-green);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.3s ease,
                background 0.3s ease,
                border-color 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: scale(1.08);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(to right, rgba(255, 87, 34, 0.1), rgba(16, 185, 129, 0.1));
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: translateY(-5px) scale(1.05);
    color: #fff;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg-darker);
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-links,
.footer-social,
.footer-locations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4,
.footer-social h4,
.footer-locations h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-links a,
.footer-social a,
.footer-locations p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-locations p,
.footer-locations span {
    margin: 0;
    display: flex;
    align-items: center;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations & Setup Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right,
.active.stagger-up {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.stagger-up.delay-1 { transition-delay: 0.15s; }
.stagger-up.delay-2 { transition-delay: 0.3s; }

/* Hero: animate on load (no scroll needed) */
.hero-section.revealed .reveal-up,
.hero-section.revealed .reveal-left,
.hero-section.revealed .reveal-right {
    opacity: 1;
    transform: translate(0);
}

/* ========== Responsive : Tablette ========== */
@media (max-width: 992px) {
    :root {
        --header-height: 72px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-grid {
        gap: 2.5rem;
    }

    .about-text,
    .about-visual {
        min-width: 0;
    }

    .about-text {
        order: 1;
    }

    .about-visual {
        order: 2;
    }

    .desktop-nav,
    .header-cta .btn:first-child {
        display: none;
    }

    .header-cta {
        display: flex;
        align-items: center;
    }

    .mobile-menu-btn {
        display: flex;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn .bar {
        width: 22px;
    }

    .mobile-nav {
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav a {
        padding: 0.75rem 0;
        font-size: 1.05rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-nav .btn {
        min-height: 48px;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
        line-height: 1.2;
    }

    h2 {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

    .py-20 {
        padding: 3.5rem 0;
    }

    .why-us-wrapper {
        padding: 2.5rem 1.5rem;
    }

    .benefits-grid {
        gap: 2rem;
    }

    .process-timeline {
        margin-top: 2.5rem;
        gap: 1.5rem;
    }

    .portfolio-img {
        height: 220px;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .footer-grid {
        gap: 2.5rem;
        margin-bottom: 2rem;
    }
}

/* ========== Responsive : Mobile ========== */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    /* Hero */
    .hero-section {
        min-height: 100svh;
        min-height: 100vh;
        padding: calc(var(--header-height) + 1.5rem) 0 2.5rem;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        line-height: 1.25;
    }

    h1 br {
        display: none;
    }

    .hero-content p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
        line-height: 1.55;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0 0.25rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 0.5rem;
    }

    .section-header p {
        padding: 0 0.5rem;
    }

    /* About */
    .about-section .about-grid {
        gap: 2rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        padding: 0.2rem 0.75rem;
    }

    .visual-card {
        padding: 2rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.25rem;
    }

    .stat-item p {
        font-size: 0.875rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .service-icon {
        font-size: 2rem;
        padding: 0.75rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* Why us */
    .why-us-wrapper {
        padding: 2rem 1.25rem;
    }

    .why-us-wrapper .mb-12 {
        margin-bottom: 2rem;
    }

    .why-us-wrapper h2 {
        font-size: clamp(1.5rem, 5vw, 1.85rem);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-item h4 {
        font-size: 1.1rem;
    }

    /* Process */
    .process-section .section-header {
        margin-bottom: 0.5rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .process-step {
        padding: 1.5rem 1.25rem;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .process-step h3 {
        font-size: 1.1rem;
    }

    .process-step p {
        font-size: 0.95rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .portfolio-img {
        height: 200px;
    }

    .portfolio-info {
        padding: 1.25rem;
    }

    .portfolio-info h4 {
        font-size: 1.05rem;
    }

    .mt-12 {
        margin-top: 2rem;
    }

    /* Testimonials */
    .testimonials-slider {
        margin-top: 2rem;
    }

    .testimonial-card {
        padding: 2rem 1.25rem;
    }

    .testimonial-card p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .slider-controls {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* CTA */
    .cta-box {
        padding: 2.5rem 1rem;
    }

    .cta-box h2 {
        font-size: clamp(1.5rem, 5vw, 1.9rem);
    }

    .cta-box .btn {
        width: 100%;
        max-width: 320px;
        min-height: 48px;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand p {
        font-size: 0.95rem;
    }

    .footer-links,
    .footer-social,
    .footer-locations {
        align-items: center;
    }

    .footer-links a,
    .footer-social a {
        padding: 0.35rem 0;
    }

    .footer-links a:hover,
    .footer-social a:hover {
        transform: none;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
        font-size: 0.85rem;
    }

    /* Espace pour le bouton WhatsApp fixe */
    .footer {
        padding-bottom: 5rem;
    }

    /* Sections padding */
    .py-20 {
        padding: 2.5rem 0;
    }

    .section-header p {
        font-size: 1rem;
    }
}

/* ========== Responsive : Petit mobile ========== */
@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }

    .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 36px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: calc(var(--header-height) + 1rem) 0 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.875rem;
    }

    .hero-actions .btn {
        min-height: 46px;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .stats-grid {
        gap: 1.25rem;
    }

    .stat-item h3 {
        font-size: 1.875rem;
    }

    .stat-item p {
        font-size: 0.8125rem;
    }

    .section-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
        padding: 0.2rem 0.6rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    .why-us-wrapper,
    .visual-card {
        padding: 1.25rem 1rem;
    }

    .process-step,
    .service-card {
        padding: 1.25rem 1rem;
    }

    .portfolio-img {
        height: 180px;
    }

    .testimonial-card {
        padding: 1.25rem 1rem;
    }

    .testimonial-card p {
        font-size: 0.9375rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .cta-box h2 {
        font-size: 1.375rem;
    }

    .cta-box .btn {
        min-height: 46px;
        font-size: 0.9375rem;
    }

    /* WhatsApp : zone safe pour éviter les encoches */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
        right: max(1rem, env(safe-area-inset-right, 1rem));
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Safe area pour encoches (notch) */
@supports (padding: env(safe-area-inset-top)) {
    header .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .whatsapp-float {
        bottom: max(16px, calc(16px + env(safe-area-inset-bottom)));
        right: max(16px, calc(16px + env(safe-area-inset-right)));
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-badge {
        animation: none;
    }

    h1 span {
        animation: none;
    }

    .glow-bg {
        animation: none;
    }
}