/* ========================================= */
/* 0. FONTS                                  */
/* Inter est hébergée ici (assets/fonts, licence OFL).      */
/* Space Grotesk (titres) vient encore de Google Fonts, voir index.html. */
/* ========================================= */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-700.woff2') format('woff2');
}

/* ========================================= */
/* 1. CORE VARIABLES & RESET                 */
/* ========================================= */
:root {
    color-scheme: dark;

    --bg: #05050a;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --surface-solid: #0b0b12;
    --border: rgba(255, 255, 255, 0.09);
    --text-main: #ffffff;
    --text-muted: #9aa0b0;

    --accent-1: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-3: #f97316;
    --warm: #f97316;
    --gradient-main: linear-gradient(135deg, var(--accent-1), var(--accent-2));

    --whatsapp: #25D366;
    --orange-money: #ff7900;
    --moov-money: #00a0e9;

    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --nav-bg: rgba(8, 8, 14, 0.68);
    --mobile-menu-bg: rgba(8, 8, 14, 0.96);

    --spot-border: rgba(255, 255, 255, 0.36);
    --spot-inner: rgba(255, 255, 255, 0.055);

    --btn-shadow: rgba(255, 255, 255, 0.16);
    --result-bg: rgba(0, 0, 0, 0.22);
}

body.light-mode {
    color-scheme: light;

    --bg: #f6f7f9;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --surface-solid: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #5b6475;

    --accent-1: #2563eb;
    --accent-2: #7c3aed;
    --accent-3: #ea580c;
    --warm: #ea580c;

    --nav-bg: rgba(255, 255, 255, 0.76);
    --mobile-menu-bg: rgba(255, 255, 255, 0.97);

    --spot-border: rgba(15, 23, 42, 0.16);
    --spot-inner: rgba(15, 23, 42, 0.035);

    --btn-shadow: rgba(15, 23, 42, 0.12);
    --result-bg: rgba(255, 255, 255, 0.62);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10001;
    background: var(--text-main);
    color: var(--bg);
    padding: 12px 18px;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

a,
button,
input,
textarea,
select {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 3px;
}

/* Animated Mesh Background */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.34;
    will-change: transform;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-1);
    top: -12%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-2);
    bottom: -12%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 28vw;
    height: 28vw;
    background: var(--warm);
    top: 42%;
    left: 42%;
    animation-delay: -10s;
    opacity: 0.12;
}

body.light-mode .blob {
    opacity: 0.18;
}

body.light-mode .blob-3 {
    opacity: 0.09;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 50px) scale(1.08);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================= */
/* 2. NAVIGATION                             */
/* ========================================= */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1080px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-cta {
    background: var(--gradient-main);
    color: white !important;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700 !important;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.22);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.28);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--text-main);
    transform: rotate(20deg);
}

/* ========================================= */
/* 3. HERO SECTION                           */
/* ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 145px 20px 90px;
    position: relative;
}

.hero-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--accent-1);
}

.status-dot {
    font-size: 8px;
    color: var(--warm) !important;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.82);
    }
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-bottom: 24px;
    font-weight: 700;
}

.rotator-wrapper {
    display: inline-block;
    position: relative;
    width: 12ch;
    max-width: 100%;
    height: 1.15em;
    vertical-align: bottom;
    overflow: hidden;
}

.rotator-word {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotator-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotator-word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

.hero p {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 40px;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--btn-shadow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: var(--whatsapp);
    border: 1px solid rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    transform: translateY(-2px);
}

/* Hero Visual Mockup */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 11;
    justify-self: end;
}

.browser {
    position: absolute;
    inset: 0;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

body.light-mode .browser {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.browser-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

body.light-mode .browser-bar {
    background: rgba(15, 23, 42, 0.03);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.browser-url {
    margin-left: 10px;
    height: 24px;
    flex: 1;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.browser-url .fa-lock {
    font-size: 10px;
}

.browser-body {
    padding: 22px;
    display: grid;
    gap: 16px;
}

.mock-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-logo {
    width: 80px;
    height: 10px;
    border-radius: 999px;
    background: var(--gradient-main);
}

.mock-links {
    display: flex;
    gap: 8px;
}

.mock-link {
    width: 38px;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
}

.mock-scenes {
    position: relative;
    display: grid;
    min-height: 245px;
}

.mock-scene {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.16),
        rgba(139, 92, 246, 0.14)
    );
    border: 1px solid var(--border);
    display: grid;
    gap: 10px;
    align-content: start;
}

.mock-scene.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.mock-kicker {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-1);
    font-weight: 800;
}

.mock-heading {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.mock-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.mock-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.mock-btn {
    height: 30px;
    border-radius: 999px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
}

.mock-btn.primary {
    background: var(--text-main);
    color: var(--bg);
}

.mock-btn.money {
    background: var(--orange-money);
    color: white;
    box-shadow: 0 0 18px rgba(255, 121, 0, 0.24);
}

.mock-btn.moov {
    background: var(--moov-money);
    color: white;
    box-shadow: 0 0 18px rgba(0, 160, 233, 0.22);
}

.mock-btn.soft {
    background: var(--surface-hover);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.mock-card {
    height: 62px;
    border-radius: 14px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
}

.mock-card.wide {
    grid-column: span 2;
}

.phone {
    position: absolute;
    right: -24px;
    bottom: -34px;
    width: 160px;
    height: 310px;
    border-radius: 34px;
    background: #0b0b10;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 10px;
    animation: phoneFloat 6s ease-in-out infinite;
}

body.light-mode .phone {
    background: #111827;
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.phone-notch {
    width: 60px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 10px;
}

.phone-screen {
    height: calc(100% - 16px);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
}

.phone-title {
    font-size: 0.72rem;
    font-weight: 800;
}

.phone-item {
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-pay {
    margin-top: auto;
    height: 36px;
    border-radius: 999px;
    background: var(--orange-money);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 20px rgba(255, 121, 0, 0.35);
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* ========================================= */
/* 4. SECTIONS                               */
/* ========================================= */
.section {
    padding: 96px 20px;
    position: relative;
}

.section--compact {
    padding: 72px 20px;
}

.section--solid {
    background: var(--surface-solid);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 58px;
}

.section-header h2 {
    font-size: clamp(2.35rem, 5vw, 3.6rem);
    margin-bottom: 18px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Credibility Strip */
.credibility-section {
    padding: 0 20px 20px;
}

.credibility-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}

.cred-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.cred-item i {
    color: var(--accent-1);
}

/* ========================================= */
/* 5. BENTO GRID                             */
/* ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    --mouse-x: 50%;
    --mouse-y: 50%;
}

.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        var(--spot-border),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        var(--spot-inner),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-card:hover::before,
.bento-card:hover::after {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-card .icon-box {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.bento-card .bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 10rem;
    color: var(--text-main);
    opacity: 0.03;
    transition: var(--transition);
    pointer-events: none;
}

.bento-card:hover .bg-icon {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.06;
}

/* ========================================= */
/* 6. PROCESS                                */
/* ========================================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 18px;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================= */
/* 7. PRICING                                */
/* ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* Quatre formules : une colonne sur téléphone, 2 x 2 sur tablette, une ligne de quatre sur grand écran. */
@media (min-width: 700px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .pricing-card {
        padding: 34px 22px;
    }

    .pricing-price {
        font-size: 2.3rem;
    }
}

.pricing-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 38px 30px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: none;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: white;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 18px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-audience {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 22px;
}

.pricing-meta {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.pricing-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-meta strong {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.pricing-features {
    margin-bottom: 28px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.pricing-features li i {
    flex: none;
    margin-top: 0.3em;
    color: var(--accent-1);
}

/* ========================================= */
/* 8. ROI CALCULATOR                         */
/* ========================================= */
.calculator-container {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.calc-input-group {
    margin-bottom: 24px;
}

.calc-input-group:last-child {
    margin-bottom: 0;
}

.calc-input-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 1rem;
}

.calc-input-group label span {
    color: var(--accent-1);
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-weight: 700;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 15px var(--accent-1);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    height: 22px;
    width: 22px;
    border: none;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-1);
    transition: transform 0.2s;
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--result-bg);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
}

.calc-result p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.calc-result h3 {
    font-size: 2.6rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 10px;
}

.calc-note {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ========================================= */
/* 9. PORTFOLIO / CONCEPT CARDS              */
/* ========================================= */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
    align-items: stretch;
}

.case-card {
    --media-bg: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
    --info-bg: linear-gradient(160deg, rgba(59,130,246,0.10), transparent 60%);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

body.light-mode .case-card {
    background: rgba(255, 255, 255, 0.72);
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.30);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.light-mode .case-card:hover {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.case-card[data-theme="restaurant"] {
    --media-bg: linear-gradient(135deg, rgba(37,99,235,0.20), rgba(15,23,42,0) 70%);
    --info-bg: linear-gradient(165deg, rgba(37,99,235,0.30), rgba(76,29,149,0.12) 55%, rgba(0,0,0,0) 90%);
}

.case-card[data-theme="immobilier"] {
    --media-bg: linear-gradient(135deg, rgba(190,18,60,0.20), rgba(15,23,42,0) 70%);
    --info-bg: linear-gradient(165deg, rgba(190,18,60,0.30), rgba(124,45,18,0.14) 55%, rgba(0,0,0,0) 90%);
}

.case-card[data-theme="boutique"] {
    --media-bg: linear-gradient(135deg, rgba(109,40,217,0.22), rgba(15,23,42,0) 70%);
    --info-bg: linear-gradient(165deg, rgba(109,40,217,0.32), rgba(59,130,246,0.12) 55%, rgba(0,0,0,0) 90%);
}

body.light-mode .case-card[data-theme="restaurant"] {
    --media-bg: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(255,255,255,0) 70%);
    --info-bg: linear-gradient(165deg, rgba(37,99,235,0.16), rgba(76,29,149,0.07) 55%, rgba(255,255,255,0) 90%);
}

body.light-mode .case-card[data-theme="immobilier"] {
    --media-bg: linear-gradient(135deg, rgba(190,18,60,0.12), rgba(255,255,255,0) 70%);
    --info-bg: linear-gradient(165deg, rgba(190,18,60,0.16), rgba(124,45,18,0.08) 55%, rgba(255,255,255,0) 90%);
}

body.light-mode .case-card[data-theme="boutique"] {
    --media-bg: linear-gradient(135deg, rgba(109,40,217,0.13), rgba(255,255,255,0) 70%);
    --info-bg: linear-gradient(165deg, rgba(109,40,217,0.17), rgba(59,130,246,0.07) 55%, rgba(255,255,255,0) 90%);
}

.case-media {
    position: relative;
    padding: 18px;
    background-image: var(--media-bg);
    border-bottom: 1px solid var(--border);
}

.case-screen {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 18px;
    text-align: center;
}

body.light-mode .case-screen {
    background: rgba(15, 23, 42, 0.025);
}

.case-screen > i {
    position: relative;
    z-index: 2;
    font-size: 2.6rem;
    color: var(--text-muted);
    opacity: 0.75;
    transition: var(--transition);
}

.case-card:hover .case-screen > i {
    opacity: 1;
    transform: scale(1.06);
}

.case-screen-line {
    position: relative;
    z-index: 2;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.case-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fff;
    background: rgba(8, 8, 14, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

body.light-mode .case-badge {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--border);
}

.case-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 24px 22px;
    background-image: var(--info-bg);
}

.case-eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent-1);
}

.case-title {
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--text-main);
}

.case-desc {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

body.light-mode .tag {
    background: rgba(15, 23, 42, 0.04);
}

.case-link {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-1);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.case-link i {
    transition: transform 0.3s ease;
}

.case-link:hover {
    gap: 12px;
}

/* ========================================= */
/* 10. CONCEPT PHOTOS                        */
/* ========================================= */
.case-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transform: scale(1.02);
    background: #0b0d14;
    transition:
        opacity 0.55s ease,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.case-photo.loaded {
    opacity: 1;
    transform: scale(1);
}

.case-card:hover .case-photo.loaded {
    transform: scale(1.05);
}

.case-screen.has-photo::after,
.case-modal-preview.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 10, 0.22),
        rgba(5, 5, 10, 0.64)
    );
}

.case-screen.has-photo > i,
.case-modal-preview.has-photo > i {
    display: none;
}

.case-modal-preview.has-photo::before {
    display: none;
}

.case-screen.has-photo .case-screen-line {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* ========================================= */
/* 11. CASE MODAL                            */
/* ========================================= */
.case-modal[hidden] {
    display: none;
}

.case-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.case-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.case-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: #0b0d14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);
}

body.light-mode .case-modal-dialog {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.case-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

body.light-mode .case-modal-close {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border-color: var(--border);
}

.case-modal-close:hover {
    transform: scale(1.08) rotate(90deg);
}

.case-modal-preview {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #101a36, #1b1030);
}

.case-modal-preview::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--gradient-main);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.case-modal-preview > i {
    position: relative;
    z-index: 2;
    font-size: 7rem;
    color: #fff;
    opacity: 0.9;
}

.case-modal-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.24);
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.case-modal-content {
    padding: 54px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.case-modal-content .case-eyebrow {
    margin-bottom: 14px;
}

.case-modal-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 18px;
    color: var(--text-main);
}

.case-modal-content > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.65;
}

.case-modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.case-modal-features span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.case-modal-content .btn {
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

/* ========================================= */
/* 12. ENGAGEMENTS                           */
/* ========================================= */
.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.engagement-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.engagement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.25);
}

.engagement-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.engagement-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.engagement-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* ========================================= */
/* 13. FAQ                                   */
/* ========================================= */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.faq-item:hover {
    background: var(--surface-hover);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: var(--accent-1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 22px 22px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================= */
/* 14. CONTACT                               */
/* ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 1.08rem;
    margin-bottom: 40px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    margin: 0;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(10px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    padding-right: 48px;
}

.form-group select option {
    background: var(--surface-solid);
    color: var(--text-main);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group > label {
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 4px;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-1);
    background: var(--bg);
}

.form-group.select-group > label,
.form-group.static-label > label {
    position: static;
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
    pointer-events: auto;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group.static-label .choice {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

.form-group.static-label .choice span {
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.form-group.static-label .choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    opacity: 0;
    pointer-events: none;
}

.form-group.static-label .choice:hover span {
    background: var(--surface-hover);
    color: var(--text-main);
}

.form-group.static-label .choice input:checked + span {
    background: var(--text-main);
    color: var(--bg);
    border-color: transparent;
}

.form-group.static-label .choice input:focus-visible + span {
    outline: 2px solid var(--accent-1);
    outline-offset: 3px;
}

/* ========================================= */
/* 15. FOOTER, WHATSAPP, TOAST, MOBILE CTA   */
/* ========================================= */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 80px 20px 40px;
    text-align: center;
}

.footer-content {
    max-width: 650px;
    margin: 0 auto;
}

.footer-content .logo {
    font-size: 2rem;
}

.footer-title {
    font-size: 2.35rem;
    margin: 20px 0;
}

.footer-tagline,
.footer-copy,
.footer-areas {
    color: var(--text-muted);
}

.footer-areas {
    margin-top: 12px;
    font-size: 0.95rem;
}

.footer-copy {
    margin-top: 40px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--text-main);
    color: var(--bg);
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 120px);
    background: var(--text-main);
    color: var(--bg);
    padding: 16px 24px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 10000;
    max-width: calc(100vw - 40px);
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.toast.success i {
    color: var(--whatsapp);
}

.toast.error i {
    color: #f87171;
}

.mobile-cta-bar {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ========================================= */
/* 16. RESPONSIVE                            */
/* ========================================= */
@media (max-width: 1040px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 70px;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-group {
        justify-content: center;
    }

    .hero-visual {
        justify-self: center;
        max-width: 520px;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 2;
    }

    .credibility-strip,
    .process-grid,
    .engagement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calc-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-modal-dialog {
        grid-template-columns: 1fr;
    }

    .case-modal-preview {
        min-height: 260px;
    }

    .case-modal-content {
        padding: 34px 28px;
    }
}

@media (max-width: 768px) {
    nav {
        width: 95%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--mobile-menu-bg);
        flex-direction: column;
        padding: 30px;
        border-radius: 20px;
        border: 1px solid var(--border);
        gap: 1.25rem;
        backdrop-filter: blur(20px);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .credibility-strip,
    .process-grid,
    .engagement-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 20px;
    }

    .section--compact {
        padding: 56px 20px;
    }

    .calculator-container {
        padding: 28px 20px;
    }

    .blob {
        filter: blur(70px);
    }

    .bento-card::before,
    .bento-card::after {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mobile-cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--mobile-menu-bg);
        border-top: 1px solid var(--border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .whatsapp-float {
        bottom: 96px;
        right: 16px;
        width: 56px;
        height: 56px;
        font-size: 1.7rem;
    }

    .toast {
        bottom: 112px;
        width: calc(100% - 32px);
        justify-content: center;
        border-radius: 18px;
        text-align: center;
    }

    body {
        padding-bottom: 84px;
    }

    .phone {
        right: -8px;
        bottom: -18px;
        width: 132px;
        height: 258px;
        padding: 8px;
    }

    .phone-screen {
        padding: 12px;
        gap: 8px;
    }

    .phone-title {
        font-size: 0.66rem;
    }

    .phone-item {
        height: 28px;
    }

    .phone-pay {
        height: 32px;
        font-size: 0.66rem;
    }
}

@media (max-width: 560px) {
    .case-modal {
        padding: 12px;
    }

    .case-modal-dialog {
        border-radius: 22px;
        max-height: calc(100vh - 24px);
    }

    .case-modal-preview {
        min-height: 210px;
    }

    .case-modal-preview > i {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(2.35rem, 10vw, 3rem);
    }

    .rotator-wrapper {
        width: 10ch;
    }

    .hero-visual {
        max-width: 100%;
    }

    .phone {
        display: none;
    }

    .calc-result h3 {
        font-size: 2.1rem;
    }

    .case-title {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================= */
/* 16. FORM HINTS, FOOTER LEGAL LINKS        */
/* ========================================= */
.form-group.is-required > label::after {
    content: ' *';
    color: var(--accent-3);
}

.form-consent {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.form-consent a,
.footer-legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-consent a {
    color: var(--accent-1);
}

.footer-legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-top: 32px;
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-muted);
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
    color: var(--text-main);
}

.footer-legal + .footer-copy {
    margin-top: 24px;
}

/* ========================================= */
/* 17. LEGAL PAGES                           */
/* ========================================= */
.legal-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.legal-back {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-back:hover {
    color: var(--text-main);
}

.legal-page {
    padding: 140px 20px 80px;
}

.legal-container {
    max-width: 720px;
    margin: 0 auto;
}

.legal-container h1 {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 36px;
}

.legal-container h2 {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 44px 0 12px;
}

.legal-container p,
.legal-container li {
    line-height: 1.75;
    opacity: 0.88;
}

.legal-container p {
    margin-bottom: 14px;
}

.legal-container ul {
    list-style: disc;
    margin: 0 0 16px 1.25rem;
}

.legal-container li {
    margin-bottom: 6px;
}

.legal-container a {
    color: var(--accent-1);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-draft-note {
    border: 1px solid var(--accent-3);
    border-left-width: 4px;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 32px;
    background: var(--surface);
}

.legal-draft-note p {
    margin: 0;
    opacity: 1;
}

.legal-draft-note p + p {
    margin-top: 8px;
}

.todo {
    background: rgba(249, 115, 22, 0.2);
    border-radius: 4px;
    padding: 0 4px;
}


/* ========================================= */
/* 18. UTILITIES, NEW HOME SECTIONS          */
/* ========================================= */
[hidden] {
    display: none !important;
}

.hero .hero-demo-link {
    margin: 22px 0 0;
    font-size: 0.98rem;
}

.hero-demo-link a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-demo-link a:hover {
    color: var(--accent-1);
}

/* Audit */
.audit-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 36px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.07)),
        var(--surface-solid);
}

.audit-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.audit-copy p {
    color: var(--text-muted);
    max-width: 56ch;
}

.audit-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}

/* Pricing additions */
.plan-wa {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
}

.plan-wa a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plan-wa a:hover {
    color: var(--text-main);
}

.plan-wa i {
    margin-right: 6px;
    color: var(--whatsapp);
}

.pricing-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    max-width: 720px;
    margin: 36px auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-note i {
    margin-top: 0.25em;
    color: var(--accent-1);
}

.pricing-note strong {
    color: var(--text-main);
}

/* Payback calculator */
.calc-plan {
    margin-bottom: 24px;
}

.calc-result .calc-disclaimer {
    display: block;
    max-width: 34ch;
    margin-top: 14px;
}

/* Demo links */
.case-demo {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.case-demo:hover {
    color: var(--accent-1);
}

.case-demo--modal {
    margin-top: 14px;
}

/* Contact form states */
.contact-form-wrap {
    min-width: 0;
}

.form-success {
    align-items: center;
    justify-content: center;
    padding: 48px 28px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-solid);
}

.form-success:focus {
    outline: none;
}

.form-success-icon {
    font-size: 2.6rem;
    color: var(--whatsapp);
}

.form-success h3 {
    font-size: 1.6rem;
}

.form-success p {
    max-width: 42ch;
    color: var(--text-muted);
}

.form-fallback {
    padding: 16px;
    border: 1px solid var(--accent-3);
    border-radius: 16px;
    background: var(--surface);
}

.form-fallback p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Réalisation réelle : modèle de témoignage (voir le commentaire dans index.html) */
.testimonial {
    max-width: 760px;
    margin: 48px auto 0;
    padding: 28px 32px;
    border-left: 4px solid var(--accent-1);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface);
}

.testimonial p:first-child {
    font-size: 1.2rem;
}

.testimonial-by {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-legal + .footer-legal {
    margin-top: 12px;
}

/* Le vert WhatsApp sur fond clair est trop pâle pour du texte : version plus foncée en thème clair. */
body.light-mode .btn-whatsapp {
    color: #0b6b34;
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(11, 107, 52, 0.35);
}

body.light-mode .btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.24);
}

@media (max-width: 768px) {
    .audit-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 22px;
    }

    .audit-actions {
        min-width: 0;
    }

    .testimonial {
        padding: 22px 20px;
    }
}

/* ========================================= */
/* 19. LIGHTER RENDERING ON PHONES           */
/* Pas de flou plein écran ni d'animation de fond : plus fluide sur Android d'entrée de gamme. */
/* ========================================= */
@media (max-width: 768px) {
    .blob {
        filter: none;
        animation: none;
        will-change: auto;
    }

    .blob-1 {
        background: radial-gradient(closest-side, var(--accent-1), transparent);
    }

    .blob-2 {
        background: radial-gradient(closest-side, var(--accent-2), transparent);
    }

    .blob-3 {
        display: none;
    }

    *,
    *::before,
    *::after {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    nav {
        background: var(--mobile-menu-bg);
    }
}

/* ========================================= */
/* 20. POLISH FROM VISUAL REVIEW             */
/* ========================================= */
/* « Disponible » : un point vert se lit plus naturellement qu'un point orange. */
.status-dot {
    color: #22c55e !important;
}

body.light-mode .status-dot {
    color: #16a34a !important;
}

.bento-points {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.bento-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
}

.bento-points i {
    margin-top: 0.3em;
    color: var(--accent-1);
}

.calc-plan .choice-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 10px;
}

.form-group.static-label.calc-plan .choice {
    display: flex;
}

.form-group.static-label.calc-plan .choice span {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 18px;
    text-align: center;
    line-height: 1.25;
}

.calc-plan .choice small {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
}

@media (max-width: 768px) {
    /* La barre fixe du bas contient déjà le bouton WhatsApp : pas besoin du bouton flottant en plus. */
    .whatsapp-float {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Les deux boutons de la barre du bas tiennent sur une ligne, même sur un petit écran. */
    .mobile-cta-bar .btn {
        padding: 14px 8px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* ========================================= */
/* 21. GUIDES (ressources/)                  */
/* Les guides réutilisent la mise en page des pages légales (.legal-page, .legal-container). */
/* ========================================= */
.legal-container .guide-lead {
    font-size: 1.15rem;
    opacity: 1;
}

.guide-callout {
    margin: 26px 0;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-1);
    border-radius: 12px;
    background: var(--surface);
}

.legal-container .guide-callout p {
    margin: 0;
    opacity: 1;
}

.guide-table-wrap {
    margin: 20px 0 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.guide-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.guide-table th,
.guide-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.guide-table thead th {
    background: var(--surface);
    font-weight: 600;
}

.guide-table tbody th {
    width: 22%;
    font-weight: 600;
    color: var(--text-main);
}

.guide-table td {
    color: var(--text-muted);
}

.legal-container ol.guide-steps {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    counter-reset: guide-step;
}

.legal-container ol.guide-steps > li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 44px;
    counter-increment: guide-step;
}

.legal-container ol.guide-steps > li::before {
    content: counter(guide-step);
    position: absolute;
    left: 0;
    top: 0.2em;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-1);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.guide-cta {
    margin: 52px 0 8px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.07)),
        var(--surface-solid);
}

.legal-container .guide-cta h2 {
    margin-top: 0;
}

.guide-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.legal-container a.btn {
    text-decoration: none;
}

.legal-container a.btn-primary {
    color: var(--bg);
}

.legal-container a.btn-whatsapp {
    color: var(--whatsapp);
}

body.light-mode .legal-container a.btn-whatsapp {
    color: #0b6b34;
}

.guide-sources li {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 120px;
    }

    .guide-cta {
        padding: 22px 18px;
    }

    .guide-cta-actions .btn {
        width: 100%;
    }
}

.guide-table-hint {
    display: none;
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.guide-table-wrap:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 4px;
}

.guide-table--compact {
    min-width: 0;
}

@media (max-width: 768px) {
    .guide-table-hint {
        display: block;
    }
}

@media (max-width: 560px) {
    .guide-table--compact th,
    .guide-table--compact td {
        padding: 10px 8px;
        font-size: 0.88rem;
    }

    .guide-table--compact tbody th {
        width: 26%;
    }
}

/* ========================================= */
/* 19. RÉALISATION MISE EN AVANT, FORMULE MINI */
/* ========================================= */
.hero-demo-alt {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-demo-alt a {
    color: var(--text-muted);
}

.hero-demo-alt a:hover {
    color: var(--accent-1);
}

.project-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    margin-bottom: 44px;
    padding: clamp(20px, 3.4vw, 44px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background-color: var(--surface);
    background-image: linear-gradient(150deg, rgba(190, 18, 60, 0.13), rgba(124, 45, 18, 0.05) 45%, transparent 75%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

body.light-mode .project-feature {
    background-color: rgba(255, 255, 255, 0.86);
    background-image: linear-gradient(150deg, rgba(190, 18, 60, 0.08), rgba(124, 45, 18, 0.04) 45%, transparent 75%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
}

/* Captures du site : un navigateur, et un téléphone qui déborde un peu sur son coin. */
.pf-media {
    position: relative;
    padding: 0 clamp(30px, 7vw, 54px) 34px 0;
}

.pf-browser {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #faf6ef;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.pf-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-solid);
}

.pf-browser-bar .dot {
    width: 9px;
    height: 9px;
}

.pf-browser-bar .browser-url {
    height: 22px;
    margin-left: 8px;
    font-size: 0.7rem;
}

.pf-shot-desktop {
    display: block;
    width: 100%;
    height: auto;
}

.pf-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(104px, 27%, 170px);
    border: 5px solid #17141a;
    border-radius: 26px;
    overflow: hidden;
    background: #17141a;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.pf-shot-mobile {
    display: block;
    width: 100%;
    height: auto;
}

.pf-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.pf-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.pf-pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pf-title {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    line-height: 1.06;
}

.pf-lead {
    max-width: 54ch;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.pf-points {
    display: grid;
    gap: 12px;
    margin: 2px 0 4px;
    padding: 0;
    list-style: none;
}

.pf-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.pf-points li i {
    flex: none;
    margin-top: 0.3em;
    color: var(--accent-1);
}

.pf-points strong {
    color: var(--text-main);
    font-weight: 600;
}

.pf-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: min(100%, 360px);
    margin-top: 6px;
}

.pf-actions .btn {
    justify-content: center;
    text-align: center;
}

.pf-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.pf-plan {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pf-plan i {
    flex: none;
    margin-top: 0.3em;
    color: var(--accent-3);
}

.pf-plan strong {
    color: var(--text-main);
}

.pf-plan a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pf-plan a:hover {
    color: var(--accent-1);
}

.concepts-head {
    max-width: 700px;
    margin: 0 auto 34px;
    text-align: center;
}

.concepts-head h3 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.concepts-head p {
    color: var(--text-muted);
}

.pricing-note + .pricing-note {
    margin-top: 18px;
}

@media (max-width: 960px) {
    .project-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .pf-media {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .project-feature {
        padding: 16px;
        border-radius: 22px;
        margin-bottom: 32px;
    }

    .pf-media {
        padding: 0 28px 26px 0;
    }

    .pf-phone {
        width: 30%;
        border-width: 4px;
        border-radius: 20px;
    }

}

/* ========================================= */
/* 22. SECTIONS QUI S'OUVRENT AU CLIC        */
/* Une barre cliquable (<summary>) et un contenu masqué par défaut. Sans JavaScript, <details> fonctionne déjà. */
/* ========================================= */
.fold > summary {
    list-style: none;
}

.fold > summary::-webkit-details-marker {
    display: none;
}

.fold-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 16px 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.fold-toggle:hover {
    background: var(--surface-hover);
}

.fold-label {
    display: grid;
    gap: 3px;
    text-align: left;
}

.fold-when-open {
    display: none;
}

.fold[open] > .fold-toggle .fold-when-closed {
    display: none;
}

.fold[open] > .fold-toggle .fold-when-open {
    display: inline;
}

.fold-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.fold-chevron {
    flex: none;
    color: var(--accent-1);
    transition: transform 0.3s ease;
}

.fold[open] > .fold-toggle .fold-chevron {
    transform: rotate(180deg);
}

.fold-body {
    padding-top: 36px;
}

.fold[open] > .fold-body {
    animation: fold-in 0.4s ease both;
}

@keyframes fold-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.fold-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 34px auto 0;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.fold-close:hover {
    background: var(--surface-hover);
    color: var(--text-main);
}

.fold-close i {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .fold[open] > .fold-body {
        animation: none;
    }

    .fold-chevron {
        transition: none;
    }
}

/* Une section dont le titre est suivi d'une barre cliquable : un peu moins d'espace en dessous. */
.section-header--tight {
    margin-bottom: 34px;
}

/* Tarifs : l'aperçu des quatre formules reste toujours visible. */
.price-glance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 980px;
    margin: 0 auto 26px;
    padding: 0;
    list-style: none;
}

.glance-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-solid);
}

.glance-tile.is-featured {
    border-color: var(--accent-1);
    box-shadow: 0 14px 36px rgba(59, 130, 246, 0.14);
}

.gl-name {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gl-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.35rem, 5.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
}

.gl-price small {
    color: var(--text-muted);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
}

.gl-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.gl-badge {
    position: absolute;
    top: -11px;
    right: 14px;
    padding: 3px 12px;
    border-radius: 100px;
    background: var(--gradient-main);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (min-width: 760px) {
    .price-glance {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .glance-tile {
        padding: 22px 20px;
    }
}

/* À propos : une carte courte (portrait rond, titre, une phrase), la suite s'ouvre au clic. */
.about-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-solid);
}

.about-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.about-photo {
    flex: none;
    display: grid;
    place-items: center;
    width: 76px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #fff;
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro h2 {
    margin-bottom: 4px;
    font-size: clamp(1.45rem, 4.4vw, 2rem);
}

.about-teaser {
    color: var(--text-muted);
    line-height: 1.5;
}

.about-card .fold-toggle {
    max-width: none;
    border-radius: 18px;
}

.about-card .fold-body {
    padding-top: 24px;
}

.about-card .fold-body p {
    color: var(--text-muted);
}

.about-card .fold-body .about-lead {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 600;
}

.about-facts {
    display: grid;
    gap: 12px;
    margin: 22px 0 26px;
    list-style: none;
}

.about-facts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
}

.about-facts i {
    margin-top: 0.3em;
    color: var(--accent-1);
}

.about-facts a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 640px) {
    .about-card {
        padding: 32px 36px;
    }

    .about-photo {
        width: 88px;
        font-size: 2rem;
    }
}

/* Téléphones : sections plus serrées, titres moins hauts, pour que la page se parcoure plus vite. */
@media (max-width: 560px) {
    .section {
        padding: 56px 20px;
    }

    .section--compact {
        padding: 44px 20px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        margin-bottom: 12px;
        font-size: clamp(1.8rem, 8.4vw, 2.2rem);
    }

    .section-header p {
        font-size: 1rem;
    }

    .section-header--tight {
        margin-bottom: 26px;
    }

    .fold-body {
        padding-top: 26px;
    }

    /* Repères : deux par ligne plutôt que quatre lignes. */
    .credibility-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cred-item {
        padding: 12px 10px;
        border-radius: 16px;
        font-size: 0.85rem;
        text-align: center;
    }

    /* Services : cartes moins hautes. */
    .bento-grid {
        grid-auto-rows: auto;
        gap: 14px;
    }

    .bento-card {
        padding: 22px 20px;
    }

    .bento-card .icon-box {
        width: 42px;
        height: 42px;
        margin-bottom: 14px;
        font-size: 1.25rem;
    }

    .bento-card h3 {
        margin-bottom: 6px;
        font-size: 1.2rem;
    }

    .bento-card p {
        font-size: 0.95rem;
    }

    .bento-points {
        margin-top: 16px;
    }

    /* Méthode et engagements : l'icône ou le numéro à gauche du texte plutôt qu'au-dessus. */
    .process-grid,
    .engagement-grid {
        gap: 12px;
    }

    .process-step,
    .engagement-card {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 16px;
        align-items: start;
        padding: 20px 18px;
    }

    .step-number,
    .engagement-icon {
        grid-row: 1 / span 2;
        width: 42px;
        height: 42px;
        margin-bottom: 0;
    }

    .process-step h3,
    .engagement-card h3 {
        margin-bottom: 4px;
        font-size: 1.1rem;
    }
}

/* Formulaire en mode WhatsApp : une ligne pour dire ce que fait le bouton. */
.form-mode-note {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}
