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

:root {
    --primary: #1e1b6e;
    --primary-light: #4338ca;
    --accent: #4f46e5;
    --accent-soft: rgba(99, 102, 241, 0.12);
    --text: #0f0f1a;
    --text-light: #555;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-soft: #f5f5ff;
    --border: #e8e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 4px 24px rgba(30, 27, 110, 0.07);
    --shadow-lg: 0 16px 48px rgba(30, 27, 110, 0.1);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ===== PAGE TRANSITIONS ===== */
body.page-ready {
    animation: pageIn 0.4s ease both;
}
body.page-leaving {
    animation: pageOut 0.25s ease both !important;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner { text-align: center; }
.loader-logo {
    height: 72px;
    margin-bottom: 24px;
    animation: loader-pulse 1.2s ease-in-out infinite;
}
@keyframes loader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.7; }
}
.loader-bar {
    width: 120px;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}
.loader-progress {
    width: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    animation: loader-fill 1.2s var(--ease) forwards;
}
@keyframes loader-fill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transition: all 0.4s var(--ease);
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(30, 27, 110, 0.3);
}
@media (max-width: 480px) {
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* ===== BUBBLES ===== */
.bubbles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--primary); line-height: 1.1; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }

.section-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}

.section-intro { text-align: center; max-width: 600px; margin: 0 auto 72px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
}

.btn-glass {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover {
    background: rgba(255,255,255,1);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255,255,255,0.25);
}

.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0px);
    transition: all 0.5s var(--ease);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo-img { height: 44px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: all 0.3s;
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { opacity: 0.6; }
.nav-cta {
    font-size: 0.85rem;
    padding: 10px 24px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
}
.navbar.scrolled .nav-cta {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s linear;
}
.hero.in-view .hero-bg-img {
    transform: scale(1);
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 30, 0.7) 0%,
        rgba(30, 27, 110, 0.6) 50%,
        rgba(15, 15, 30, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: 80px;
    max-width: 720px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.hero-tag-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 24px;
}
/* ===== ROTATING WORDS (Apple/shadcn style) ===== */
.rotating-words {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 4px;
    min-width: 280px;
    height: 1.1em;
}

.rw-word {
    position: absolute;
    left: 0;
    top: 0;
    font-style: italic;
    font-weight: 900;
    color: #a5b4fc;
    opacity: 0;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.rw-word.rw-active {
    opacity: 1;
    transform: translateY(0);
}

.rw-word.rw-exit {
    opacity: 0;
    transform: translateY(-120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-title span { display: block; }

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: float-hint 2.5s ease-in-out infinite;
}
@keyframes float-hint {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== HERO ENTRY ANIMATIONS ===== */
.anim-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.anim-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero.in-view .anim-fade,
.hero.in-view .anim-line {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-slide {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-slide.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== TRUST ===== */
.trust {
    position: relative; z-index: 1;
    padding: 64px 0;
    background: var(--bg);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}
.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(79,70,229,0.15);
}

.trust-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.trust-card strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.trust-card span { font-size: 0.82rem; color: var(--text-muted); }

/* ===== SERVICES ===== */
.services {
    position: relative; z-index: 1;
    padding: 100px 0 80px;
    background: var(--bg);
}

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

.svc-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--ease);
}
.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 27, 110, 0.12), 0 0 0 1px rgba(79,70,229,0.1);
    border-color: rgba(79,70,229,0.2);
}

.svc-card--accent {
    background: var(--primary);
    border-color: var(--primary);
    color: rgba(255,255,255,0.85);
}
.svc-card--accent h3 { color: #fff; }
.svc-card--accent p { color: rgba(255,255,255,0.65); }
.svc-card--accent:hover { border-color: var(--primary); }

.svc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.svc-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-soft);
    line-height: 1;
}
.svc-card--accent .svc-num { color: rgba(255,255,255,0.15); }

.svc-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s var(--ease);
}
.svc-card:hover .svc-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08) rotate(-8deg);
}
.svc-card--accent .svc-icon {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}
.svc-card--accent:hover .svc-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.svc-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.svc-card > p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.svc-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.3s;
}
.svc-tags span:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.svc-card--accent .svc-tags span {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}
.svc-card--accent .svc-tags span:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.svc-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s;
}
.svc-link:hover { gap: 4px; opacity: 0.7; }
.svc-card--accent .svc-link { color: rgba(255,255,255,0.8); }
.svc-card--accent .svc-link:hover { color: #fff; }

/* ===== PAGE HEADER (sous-pages) ===== */
.page-header {
    padding: 140px 0 60px;
    background: var(--bg-soft);
    text-align: center;
}
.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
}
.page-header .section-tag { margin-bottom: 12px; }

/* ===== NAV ACTIVE LINK ===== */
.nav-links a.active {
    color: var(--primary) !important;
}

/* ===== 3D SCROLL SHOWCASE ===== */
.scroll-showcase {
    position: relative; z-index: 1;
    padding: 0;
    background: var(--bg-soft);
    overflow: hidden;
}

.scroll-showcase-inner {
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 24px 80px;
}

.scroll-showcase-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.scroll-showcase-header h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.scroll-card-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
    position: sticky;
    top: 10vh;
}

.scroll-card {
    width: 100%;
    border-radius: 24px;
    border: 4px solid #3a3a4a;
    padding: 8px;
    background: #1a1a2e;
    box-shadow:
        0 0 #0000004d,
        0 9px 20px #0000004a,
        0 37px 37px #00000042,
        0 84px 50px #00000026,
        0 149px 60px #0000000a,
        0 233px 65px #00000003;
    transform: rotateX(20deg) scale(0.92);
    transform-origin: center bottom;
    transition: transform 0.1s linear, box-shadow 0.3s ease;
    will-change: transform;
}

.scroll-card.scroll-active {
    box-shadow:
        0 25px 50px rgba(0,0,0,0.15),
        0 0 0 1px rgba(99,102,241,0.1);
}

.scroll-card-screen {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

/* ===== MOCK REPORT ===== */
.mock-report {
    padding: 32px 36px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.mock-report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid #6366f1;
    margin-bottom: 24px;
}

.mock-report-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-report-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.mock-report-company {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #6366f1;
}

.mock-report-sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.mock-report-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-report-tag {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: auto;
}

.mock-report-date {
    font-size: 0.78rem;
    color: #64748b;
}

/* Info grid */
.mock-report-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.mock-report-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-report-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.mock-report-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

/* Sections */
.mock-report-section {
    margin-bottom: 22px;
}

.mock-report-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 12px;
}

.mock-report-section-title svg {
    color: #6366f1;
}

/* Checklist */
.mock-report-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mock-report-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #334155;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.mock-report-checklist li.checked::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #22c55e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Photos grid */
.mock-report-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mock-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.mock-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.mock-photo-card span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.mock-photo-card small {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Footer rapport */
.mock-report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
}

.mock-report-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #22c55e;
}

.mock-report-ref {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: monospace;
}

/* ===== BIG QUOTE ===== */
.big-quote {
    position: relative; z-index: 1;
    padding: 80px 0;
    background: var(--bg);
}

.big-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.big-quote .word {
    display: inline-block;
    opacity: 0.1;
    transition: opacity 0.5s var(--ease);
}
.big-quote .word.lit {
    opacity: 1;
}

/* ===== ENGAGEMENTS ===== */
.engagements {
    position: relative; z-index: 1;
    padding: 100px 0;
    background: var(--bg);
}

.engagements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.engagement-card {
    padding: 36px 32px;
    border-radius: var(--radius-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease);
}
.engagement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.engagement-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(99, 102, 241, 0.2));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s var(--ease);
}
.engagement-card:hover .engagement-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

.engagement-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.engagement-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== FAQ ===== */
.faq {
    position: relative; z-index: 1;
    padding: 100px 0;
    background: var(--bg);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.4s var(--ease), color 0.3s;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== WHATSAPP ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 100px;
    background: #25d366;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: all 0.4s var(--ease);
    text-decoration: none;
}
.whatsapp-btn:hover {
    background: #1ebe57;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.whatsapp-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
    .whatsapp-btn { bottom: 20px; left: 20px; padding: 12px 16px; }
    .whatsapp-label { display: none; }
}

/* ===== METHODE ===== */
.methode {
    position: relative; z-index: 1;
    padding: 100px 0;
    background: var(--bg-soft);
}

.methode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.methode-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    transition: all 0.5s var(--ease);
}
.methode-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79,70,229,0.2);
}

.methode-card-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.4s;
}
.methode-card:hover .methode-card-num {
    color: var(--accent);
}

.methode-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.methode-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== STATS ===== */
.stats {
    position: relative; z-index: 1;
    padding: 80px 0;
    background: var(--bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease);
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.25);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    margin-bottom: 20px;
}

.stat-value {
    margin-bottom: 8px;
}

.stat-number, .stat-number-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}
.stat-suffix {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--primary);
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== ZONES D'INTERVENTION ===== */
.zones {
    padding: 100px 0;
    background: var(--bg);
}
.zones-card {
    background: linear-gradient(135deg, var(--primary) 0%, #312e81 50%, #1e1b4b 100%);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
}
.zones-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    pointer-events: none;
}
.zones-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    pointer-events: none;
}
.zones-card-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}
.zones-pulse {
    width: 12px;
    height: 12px;
    background: #34d399;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    animation: zones-pulse 2s ease-in-out infinite;
}
.zones-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #34d399;
    animation: zones-pulse-ring 2s ease-in-out infinite;
}
@keyframes zones-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes zones-pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}
.zones-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}
.zones-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.zones-rings {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
}
.zones-ring {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.zones-ring-label {
    flex-shrink: 0;
    width: 120px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 10px;
    text-align: right;
}
.zones-ring-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.zone-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    cursor: default;
}
.zone-badge--light {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}
.zone-badge--light:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
.zone-badge--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.zone-badge--ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}
.zones-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.zones-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ===== LEGAL / MENTIONS LEGALES ===== */
.legal-content {
    padding: 60px 0 100px;
}
.legal-content .container {
    max-width: 780px;
}
.legal-block {
    margin-bottom: 40px;
}
.legal-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.legal-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-block ul {
    list-style: none;
    margin: 12px 0;
}
.legal-block ul li {
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}
.legal-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== PAGE 404 ===== */
.page-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 80px;
}
.page-404-code {
    font-family: 'Playfair Display', serif;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--accent-soft);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.page-404 h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.page-404 p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 32px;
}
.page-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CTA BAND ===== */
.cta-band {
    position: relative; z-index: 1;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}
.cta-band p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

/* ===== CONTACT ===== */
.contact {
    position: relative; z-index: 1;
    padding: 100px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--bg-soft);
    transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

.contact-sidebar { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
    display: flex; gap: 16px; align-items: center;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.contact-card:hover { box-shadow: var(--shadow); border-color: rgba(79,70,229,0.15); }

.contact-card-icon {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}

.contact-card strong { display: block; font-size: 0.82rem; margin-bottom: 2px; }
.contact-card a, .contact-card span { font-size: 0.9rem; color: var(--text-light); }
.contact-card a:hover { color: var(--accent); }

.contact-mamie {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--bg-soft), #eef0ff);
    border: 1px solid var(--border);
    margin-top: 8px;
}
.contact-mamie img { height: 64px; margin: 0 auto 12px; }
.contact-mamie p { font-weight: 600; color: var(--primary); margin-bottom: 16px; font-size: 0.95rem; }

.form-success { text-align: center; padding: 48px 24px; }
.form-success svg { color: #22c55e; margin-bottom: 16px; }
.form-success h3 { font-family: 'Inter', sans-serif; margin-bottom: 8px; }
.form-success p { color: var(--text-light); }

/* ===== FOOTER ===== */
.footer {
    position: relative; z-index: 1;
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 0;
}

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

.footer-logo { height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

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

/* --- Tablet landscape / small desktop (769-1024px) --- */
@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-band-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Tablet portrait & smaller (≤768px) --- */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; padding: 24px; gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-links.open a { color: var(--text) !important; }
    .nav-toggle { display: flex; }

    .hero-content { padding-top: 120px; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }

    .rotating-words { min-width: 180px; }

    .services, .contact, .engagements, .faq, .zones { padding: 64px 0; }
    .zones-card { padding: 40px 20px; }
    .zones-ring { flex-direction: column; gap: 10px; }
    .zones-ring-label { width: auto; text-align: left; padding-top: 0; }
    .zone-badge { padding: 8px 16px; font-size: 0.82rem; }
    .services-grid { max-width: 100%; }
    .engagements-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .engagement-card { padding: 28px 24px; }

    .methode { padding: 64px 0; }
    .methode-card { padding: 32px 28px; }
    .big-quote { padding: 80px 0; }

    /* 3D scroll showcase — reduce gap on tablet */
    .scroll-showcase-inner {
        min-height: 90vh;
        padding: 64px 16px 60px;
    }
    .scroll-card {
        border-radius: 16px;
        padding: 4px;
        border-width: 3px;
    }
    .scroll-card-screen { border-radius: 12px; }
    .scroll-card-wrapper { top: 12vh; }

    .mock-report { padding: 24px 20px; }
    .mock-report-header { flex-direction: column; gap: 12px; }
    .mock-report-meta { text-align: left; flex-direction: row; align-items: center; gap: 12px; }
    .mock-report-tag { margin-left: 0; }
    .mock-report-info { grid-template-columns: 1fr 1fr; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px 20px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

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

/* --- Small tablet / large phone (≤640px) --- */
@media (max-width: 640px) {
    .methode-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-sub { font-size: 1rem; }

    .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .trust-card { padding: 20px 12px; }

    .services-grid { max-width: 100%; }
    .svc-card { padding: 28px 24px; }

    .scroll-showcase-inner {
        min-height: auto;
        padding: 48px 12px 60px;
    }
    .scroll-card-wrapper {
        position: relative;
        top: auto;
    }
    .scroll-showcase-header { margin-bottom: 24px; }
    .scroll-card {
        transform: none !important;
        border-width: 2px;
        padding: 3px;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    .scroll-card-screen { border-radius: 11px; }

    .mock-report { padding: 16px 14px; font-size: 0.78rem; }
    .mock-report-logo { width: 28px; height: 28px; }
    .mock-report-company { font-size: 0.9rem; }
    .mock-report-header { margin-bottom: 16px; padding-bottom: 14px; }
    .mock-report-info { grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 14px; margin-bottom: 16px; }
    .mock-report-info-item:nth-child(3),
    .mock-report-info-item:nth-child(4) { display: none; }
    .mock-report-section { margin-bottom: 14px; }
    .mock-report-section-title { font-size: 0.72rem; margin-bottom: 8px; }
    .mock-report-checklist { grid-template-columns: 1fr 1fr; gap: 5px; }
    .mock-report-checklist li { font-size: 0.68rem; padding: 5px 8px; }
    .mock-report-checklist li.checked::before { width: 16px; height: 16px; font-size: 0.6rem; border-radius: 4px; }
    .mock-report-section + .mock-report-section { display: none; }
    .mock-report-footer { padding-top: 12px; }
    .mock-report-status { font-size: 0.75rem; }
    .mock-report-ref { font-size: 0.65rem; }

    .big-quote { padding: 60px 0; }
    .big-quote blockquote { font-size: clamp(1.3rem, 5vw, 1.8rem); }

    .methode-card { padding: 28px 24px; }

    .cta-band { padding: 60px 0; }
    .cta-band h2 { font-size: 1.4rem; }

    .stats { padding: 48px 0; }
    .stats-grid { gap: 12px; }
    .stat-card { padding: 24px 16px; }
    .stat-icon { width: 44px; height: 44px; margin-bottom: 14px; }
    .stat-icon svg { width: 22px; height: 22px; }
    .stat-number, .stat-number-text { font-size: clamp(1.5rem, 7vw, 2rem); }
    .stat-suffix { font-size: clamp(1rem, 5vw, 1.4rem); }
    .stat-label { font-size: 0.75rem; }

    .contact-form { padding: 24px 16px; }
    .contact-mamie { padding: 24px 16px; }
}
