/* ============================================
   HABITAT SERVICES - Stylesheet
   ============================================ */

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #0f172a;
    --accent: #38bdf8;

    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;

    --border: #e2e8f0;

    --gradient: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.gradient-text {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 25%, #fbbf24 50%, #fb923c 75%, #f97316 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.gradient-text-light {
    background: linear-gradient(135deg, #fbbf24 0%, #fb923c 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ROTATING WORD (HERO)
   ============================================ */

.rotating-text {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    will-change: opacity, transform;
}

.rotating-text.is-changing {
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(4px);
}

/* ============================================
   MARQUEE (defilement villes)
   ============================================ */

.marquee {
    margin-top: 50px;
    overflow: hidden;
    padding: 22px 0;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, #0f172a 0%, transparent 100%);
}

.marquee::after {
    right: 0;
    background: linear-gradient(-90deg, #0f172a 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 48px;
    padding-right: 48px;
    flex-shrink: 0;
}

.marquee-content span {
    color: white;
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
    background: linear-gradient(135deg, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
}

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

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--secondary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.btn-outline-light:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    color: var(--secondary);
}

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
    transition: color 0.2s;
}

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

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

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

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: float 12s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #fdba74, #fb923c);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    bottom: -100px;
    left: -100px;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -40px) scale(1.15) rotate(120deg); }
    66% { transform: translate(-30px, 20px) scale(0.95) rotate(240deg); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
    animation: pulse 1.5s infinite;
}

.badge {
    transition: transform 0.3s, box-shadow 0.3s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stat-number::after {
    content: '+';
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-mockup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    transition: transform 0.5s ease;
    animation: floatMockup 6s ease-in-out infinite;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    animation-play-state: paused;
}

@keyframes floatMockup {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(-15px); }
}

.browser-bar {
    background: #f1f5f9;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.browser-bar > span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-bar > span:nth-child(1) { background: #ef4444; }
.browser-bar > span:nth-child(2) { background: #f59e0b; }
.browser-bar > span:nth-child(3) { background: #10b981; }

.browser-bar .url {
    flex: 1;
    margin-left: 12px;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.browser-content {
    padding: 24px;
    min-height: 380px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.mock-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mock-logo {
    width: 60px;
    height: 18px;
    background: var(--gradient);
    border-radius: 4px;
}

.mock-links {
    display: flex;
    gap: 12px;
}

.mock-links div {
    width: 30px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
}

.mock-hero {
    margin-bottom: 28px;
}

.mock-title {
    height: 16px;
    background: var(--secondary);
    border-radius: 4px;
    margin-bottom: 10px;
    width: 90%;
}

.mock-title.short {
    width: 60%;
}

.mock-text {
    height: 8px;
    background: #cbd5e1;
    border-radius: 4px;
    margin-bottom: 6px;
}

.mock-text.short {
    width: 70%;
    margin-bottom: 20px;
}

.mock-btn {
    width: 110px;
    height: 32px;
    background: var(--gradient);
    border-radius: 6px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mock-box {
    height: 70px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* FLOATING CARDS */

.floating-card {
    position: absolute;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    z-index: 5;
    animation: floatY 4s ease-in-out infinite;
    transition: transform 0.3s;
}

.floating-card:hover {
    transform: scale(1.05) rotate(-2deg) !important;
    z-index: 10;
    animation-play-state: paused;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.card-stats {
    top: 40px;
    left: -40px;
    min-width: 200px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.card-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.card-chart svg {
    width: 100%;
    height: 40px;
}

.card-rank {
    bottom: 30px;
    right: -30px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation-delay: -2s;
}

.rank-circle {
    position: relative;
    width: 56px;
    height: 56px;
}

.rank-circle svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 3.5;
}

.circle-fill {
    fill: none;
    stroke: url(#grad1);
    stroke-width: 3.5;
    stroke-linecap: round;
    animation: drawCircle 2s ease;
}

@keyframes drawCircle {
    from { stroke-dasharray: 0, 100; }
}

.rank-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: var(--text-muted);
}

.rank-text strong {
    font-size: 14px;
    color: var(--secondary);
}

.rank-title {
    font-weight: 700;
    color: var(--secondary);
    font-size: 14px;
}

.rank-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   TRUST / LOGOS
   ============================================ */

.trust {
    padding: 60px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.trust-label {
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 28px;
    font-weight: 600;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.logo-item {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    transition: color 0.3s;
}

.logo-item:hover {
    color: var(--secondary);
}

/* ============================================
   SECTION HEAD
   ============================================ */

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.services {
    padding: 100px 0;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-12px) rotate(-1deg);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover .service-icon {
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.5);
}

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

.service-card.highlight {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-color: rgba(249, 115, 22, 0.2);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.65;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
    display: inline-flex;
    gap: 6px;
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
    padding: 120px 0;
    background: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img {
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.85) 0%, rgba(251, 191, 36, 0.85) 100%),
        url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=800') center/cover;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.about-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.overlay-badge {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-stat {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.badge-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.about-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-xl);
    opacity: 0.3;
    z-index: -1;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.features-list {
    margin-bottom: 36px;
}

.features-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon svg {
    width: 18px;
    height: 18px;
}

.features-list strong {
    display: block;
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 4px;
}

.features-list p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ============================================
   PROCESS
   ============================================ */

.process {
    padding: 100px 0;
    background: var(--bg-alt);
    position: relative;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 24px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.15);
    position: relative;
}

.step-num::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: ringPulse 2.5s ease-out infinite;
}

.step:nth-child(2) .step-num::after { animation-delay: 0.5s; }
.step:nth-child(3) .step-num::after { animation-delay: 1s; }
.step:nth-child(4) .step-num::after { animation-delay: 1.5s; }

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.step:hover .step-num {
    background: var(--gradient);
    color: white;
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5);
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.step p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 240px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    padding: 100px 0;
    background: white;
    overflow: hidden;
}

/* Rating overview */

.rating-overview {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 14px 24px;
    background: var(--bg-alt);
    border-radius: 100px;
    border: 1px solid var(--border);
}

.big-stars {
    color: #fbbf24;
    font-size: 22px;
    letter-spacing: 3px;
}

.rating-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.rating-info strong {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 800;
}

.rating-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Marquee témoignages */

.testimonial-marquee {
    overflow: hidden;
    padding: 16px 0;
    position: relative;
    margin-top: 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent);
}

.testimonial-track {
    display: flex;
    width: max-content;
    animation: scrollTestimonials 60s linear infinite;
}

.testimonial-marquee.reverse .testimonial-track {
    animation-direction: reverse;
    animation-duration: 70s;
}

.testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-row {
    display: flex;
    gap: 24px;
    padding-right: 24px;
    flex-shrink: 0;
}

@keyframes scrollTestimonials {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    border: 1px solid transparent;
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: white;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card p {
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.testimonial-author strong {
    display: block;
    color: var(--secondary);
    font-size: 15px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 13px;
}

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

.cta {
    padding: 100px 0;
    background: var(--bg-alt);
}

.cta-box {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.4) 0%, transparent 70%);
}

.cta-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 16px 0 20px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-decoration {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.orbit {
    position: absolute;
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: spin 20s linear infinite;
}

.orbit-1 {
    width: 280px;
    height: 280px;
    margin: -140px 0 0 -140px;
}

.orbit-2 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-color: rgba(251, 191, 36, 0.3);
    animation-direction: reverse;
    animation-duration: 15s;
}

.orbit-3 {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    background: var(--gradient);
    border: none;
    box-shadow: 0 0 60px rgba(249, 115, 22, 0.5);
}

.orbit::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
    color: white;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.footer-col a, .footer-col p {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: color 0.2s;
}

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

/* ============================================
   MODAL - Formulaire de rappel
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal::-webkit-scrollbar {
    width: 6px;
}
.modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-tag .badge-dot {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Form */

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: white;
    transition: all 0.2s;
    width: 100%;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Chips (créneau préféré) */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
    cursor: pointer;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}

.chip:hover span {
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.chip input:checked + span {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.form-submit {
    margin-top: 8px;
    justify-content: center;
    width: 100%;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 4px;
}

/* État succès */

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: successFade 0.5s ease;
}

.modal-success.active {
    display: block;
}

.modal-form.hidden,
.modal-header.hidden {
    display: none;
}

@keyframes successFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

@keyframes successPop {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0); }
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.modal-success h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.modal-success p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 28px;
}

body.modal-open {
    overflow: hidden;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        max-width: 450px;
        margin: 0 auto;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 60px 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    .card-stats {
        left: -10px;
        min-width: 160px;
    }

    .card-rank {
        right: -10px;
    }

    .services, .about, .process, .testimonials, .cta {
        padding: 70px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .steps::before {
        display: none;
    }

    .cta-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 32px 22px;
        border-radius: var(--radius-lg);
    }

    .modal-header h2 {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .logos {
        gap: 24px;
    }

    .logo-item {
        font-size: 18px;
    }

    .service-card {
        padding: 28px;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   iPhone & iOS - Optimisations spécifiques
   ============================================ */

/* Évite le zoom auto Safari iOS quand on tape dans un input
   (Safari zoom si font-size < 16px sur un champ focusable) */
@supports (-webkit-touch-callout: none) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
    }
}

/* Support du notch iPhone (Dynamic Island, encoche) */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: max(18px, env(safe-area-inset-top));
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .navbar.scrolled {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }

    .modal {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
}

/* Couleur du surlignage tactile (par défaut bleu/gris moche sur iOS) */
* {
    -webkit-tap-highlight-color: rgba(249, 115, 22, 0.15);
}

button, a {
    -webkit-touch-callout: none;
}

/* Empêche le scroll élastique horizontal sur iOS */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Reset de l'apparence par défaut iOS sur les inputs */
input, select, textarea, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: var(--radius-sm);
}

.btn {
    border-radius: var(--radius);
}

/* Flèche custom pour les select sur iOS (sinon flèche système moche) */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

/* iOS Safari : fix 100vh qui ne tient pas compte de la barre du navigateur */
@supports (height: 100dvh) {
    .hero {
        min-height: 100dvh;
    }
}

@supports (height: -webkit-fill-available) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Scroll inertiel iOS pour la modale */
.modal {
    -webkit-overflow-scrolling: touch;
}

/* Sur écrans tactiles : on désactive les effets hover lourds
   (sinon ils restent "collés" après un tap sur iPhone) */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .testimonial-card:hover,
    .step:hover .step-num,
    .hero-mockup:hover,
    .floating-card:hover {
        transform: none !important;
    }

    .service-card:hover .service-icon {
        transform: none !important;
    }

    /* Marquees plus fluides sur mobile avec accélération GPU */
    .marquee-track,
    .testimonial-track {
        will-change: transform;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* ============================================
   iPhone Pro Max / Plus (414-430px)
   ============================================ */

@media (max-width: 430px) {
    .container {
        padding: 0 18px;
    }

    .navbar {
        padding: 14px 0;
    }

    .logo-text {
        font-size: 17px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 2.1rem !important;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .btn-lg {
        padding: 16px 24px;
        font-size: 15px;
    }

    .section-title {
        font-size: 1.9rem !important;
    }

    .section-sub {
        font-size: 15px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 14px;
    }

    .testimonial-card {
        width: 300px;
        padding: 26px;
    }

    .testimonial-card p {
        font-size: 14.5px;
    }

    /* Cartes flottantes du hero : on les rapproche */
    .card-stats {
        top: 20px;
        left: 0;
        padding: 12px 14px;
        min-width: 140px;
    }

    .card-stats .card-number {
        font-size: 22px;
    }

    .card-rank {
        bottom: 20px;
        right: 0;
        padding: 12px 14px;
    }

    .rank-circle {
        width: 44px;
        height: 44px;
    }

    /* Marquee villes : plus petit */
    .marquee-content span {
        font-size: 15px;
    }

    .marquee-content {
        gap: 28px;
        padding-right: 28px;
    }

    /* Rating overview compact */
    .rating-overview {
        padding: 10px 16px;
        gap: 10px;
    }

    .big-stars {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .rating-info strong {
        font-size: 15px;
    }

    .rating-info span {
        font-size: 11px;
    }

    /* Modal plus compacte */
    .modal {
        padding: 28px 18px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-header p {
        font-size: 14px;
    }

    .chips {
        gap: 6px;
    }

    .chip span {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* ============================================
   iPhone SE / Mini (≤ 375px)
   ============================================ */

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.85rem !important;
    }

    .section-title {
        font-size: 1.7rem !important;
    }

    .stat-number {
        font-size: 26px;
    }

    .testimonial-card {
        width: 280px;
    }

    /* Sur très petits écrans on cache les cartes flottantes
       (elles débordent et nuisent à la lecture) */
    .floating-card {
        display: none;
    }
}

/* ============================================
   Orientation paysage iPhone (≤ 500px de haut)
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .modal {
        max-height: 86vh;
    }
}
