/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

:root {
    /* Colors */
    --primary-color: rgb(67, 141, 215);
    --primary-dark: rgb(32, 55, 93);
    --text-dark: #000000;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-dark: #000000;
    --border-color: #e5e5e5;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 20px;
    --navbar-height: 84px;
    --landing-section-gap: clamp(56px, 8vh, 92px);

    /* Effects */
    --blur-light: 20px;
    --blur-medium: 40px;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ==========================================
   NAVIGATION - MODERN BLUR
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(var(--blur-light));
    -webkit-backdrop-filter: blur(var(--blur-light));
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
}

.navbar.visible {
    transform: translateY(0);
    opacity: 1;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--blur-medium));
    -webkit-backdrop-filter: blur(var(--blur-medium));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-wrapper {
    padding: 8px 0;
}

.navbar.scrolled .logo-img {
    height: 40px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img {
    height: 65px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(67, 141, 215, 0.15));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(67, 141, 215, 0.25));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link.is-active {
    color: var(--primary-color);
}

.nav-link.is-active::after {
    width: 100%;
}

.nav-item-with-dropdown {
    position: relative;
}

.nav-offers-dropdown {
    position: fixed;
    top: var(--nav-offers-dropdown-top, calc(var(--navbar-height) + 14px));
    left: var(--nav-offers-dropdown-left, 50vw);
    min-width: 240px;
    padding: 10px;
    display: grid;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(48px) saturate(1.8);
    -webkit-backdrop-filter: blur(48px) saturate(1.8);
    border: 1px solid rgba(67, 141, 215, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(17, 35, 63, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    z-index: 1005;
    overflow: hidden;
    isolation: isolate;
}

.nav-offers-dropdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 100%),
        rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: -1;
}

.nav-item-with-dropdown.is-open .nav-offers-dropdown {
    display: grid;
}

.nav-offers-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-offers-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-offers-dropdown-link:hover {
    background: rgba(67, 141, 215, 0.08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.nav-offers-dropdown-link.is-active {
    color: var(--primary-color);
    background: rgba(67, 141, 215, 0.10);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION - GLASSMORPHIC WITH PARALLAX
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-dark);
    padding-top: 90px;
    overflow: hidden;
}

/* Background video styling */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.98);
    transition: opacity 0.9s ease;
}

/* Soft vignette overlay */
.hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.30) 100%);
    mix-blend-mode: multiply;
}

/* Glassmorphic container with parallax */
.hero-glass-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 60px 80px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    /* Only transition hover effects, NOT transform */
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    max-width: 90%;
    text-align: center;
}

.hero-glass-container:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        0 0 80px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%) scale(1.02);
}

.hero-glass-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    color: var(--text-white);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(67, 141, 215, 0.3);
}

.hero-glass-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hidden original content */
.hero-content {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    z-index: 11;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.scroll-indicator.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-12px);
    }

    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* ==========================================
   BUTTONS - SIMPLE & CLEAN
   ========================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 0.22s ease,
        box-shadow 0.22s ease,
        color 0.18s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    will-change: transform;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(67, 141, 215, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(67, 141, 215, 0.35);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

/* Hover: become dark primary blue */
.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    border-color: var(--primary-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(32, 55, 93, 0.18);
}

/* Click/press: 3D recoil (push inward) with smooth animation */
.btn-secondary:active {
    transform: translateY(6px) scale(0.98) rotateX(2deg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) inset;
    transition: transform 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:focus-visible {
    outline: 3px solid rgba(67, 141, 215, 0.18);
    outline-offset: 4px;
}

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

/* ==========================================
   SECTIONS - MODERN SPACING
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 4;
}

.portfolio .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 24px auto 0;
    line-height: 1.7;
}

.section-description-note {
    max-width: 720px;
    margin: 12px auto 0;
    color: rgba(32, 55, 93, 0.72);
    font-size: 0.98rem;
    line-height: 1.65;
}

section[id] {
    scroll-margin-top: var(--navbar-height);
}

.services,
.about,
.portfolio,
.contact {
    min-height: calc(100svh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--landing-section-gap);
    padding-bottom: var(--landing-section-gap);
}

.services > .container,
.about > .container,
.portfolio > .container,
.contact > .container {
    width: 100%;
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays (portfolio grid items) */

.portfolio-item:nth-child(1) {
    transition-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    transition-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* ==========================================
   FLOATING PARALLAX ELEMENTS
   ========================================== */

.parallax-float {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.float-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(67, 141, 215, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    top: 10%;
    right: 5%;
    animation: float-slow 20s ease-in-out infinite;
}

.float-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    bottom: 15%;
    left: 8%;
    animation: float-medium 15s ease-in-out infinite reverse;
}

.float-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(32, 55, 93, 0.12) 0%, transparent 70%);
    filter: blur(50px);
    top: 50%;
    left: 10%;
    animation: float-fast 12s ease-in-out infinite;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

@keyframes float-medium {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, -30px) scale(1.15);
    }
}

@keyframes float-fast {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -50px) scale(1.2);
    }
}

/* ==========================================
   SERVICES - PRICING LAYOUT
   ========================================== */

.services {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.pricing-surface {
    position: relative;
    margin-top: 56px;
    padding: 44px;
    border-radius: 36px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 26px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 48px rgba(27, 44, 80, 0.10);
    transition: opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: transform, opacity;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
            rgba(67, 141, 215, 0.18) 0%,
            transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(67, 141, 215, 0.30);
    box-shadow: 0 30px 70px rgba(27, 44, 80, 0.14);
}

.card-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(32, 55, 93, 0.75);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0 8px;
    letter-spacing: -0.01em;
}

.card-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.card-price-note {
    margin-top: 6px;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

.card-features {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 18px;
    color: var(--text-light);
}

.card-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.card-features li i {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(67, 141, 215, 0.14);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.75rem;
}

.pricing-card-footer {
    margin-top: auto;
    padding-top: 24px;
    opacity: 1;
    visibility: visible;
}

.pricing-card-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
}

.pricing-card-footer .btn-secondary {
    background: rgba(67, 141, 215, 0.10);
    color: var(--primary-dark);
    border-color: rgba(67, 141, 215, 0.28);
    box-shadow: 0 10px 24px rgba(67, 141, 215, 0.10);
    backdrop-filter: none;
}

.pricing-card-footer .btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    border-color: var(--primary-dark);
}

.pricing-footnote {
    margin-top: 18px;
    text-align: center;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   ABOUT - MODERN LAYOUT
   ========================================== */

.about {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    position: relative;
    overflow: hidden;
}

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

/* Portfolio Status Pins */
.portfolio-status-pin {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-status-pin::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.portfolio-status-pin.real {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.portfolio-status-pin.real::before {
    background-color: #4ade80;
    /* Green for real */
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.portfolio-status-pin.fictive {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.portfolio-status-pin.fictive::before {
    background-color: #60a5fa;
    /* Blue for concept */
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

/* Tooltip on hover */
.portfolio-card,
.portfolio-card *,
.portfolio-grid-item,
.portfolio-grid-item * {
    cursor: pointer;
}

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

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.about-description {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: var(--primary-dark);
    border-radius: 24px;
    font-size: 10rem;
    color: rgba(67, 141, 215, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(32, 55, 93, 0.15);
}

/* Image initiale centrée avec léger zoom */
.about-image-wrapper img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    will-change: transform;
}

/* Overlay animé en arrière-plan */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(67, 141, 215, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

/* Keyframes pour l'animation radiale */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   PORTFOLIO - CARD STACK
   ========================================== */

.portfolio {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: padding 0.55s ease;
}

.portfolio .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: var(--portfolio-shell-min-height, auto);
    transition: min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio.is-centered .container {
    justify-content: center;
}

.portfolio-stage-header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Portfolio content area with smooth height transitions */
.portfolio-content-area {
    width: 100%;
    max-width: 1200px;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 15px 0;
    overflow: visible;
}

.portfolio-stack-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    will-change: opacity, transform;
}

.portfolio-stack-wrapper.is-measuring,
.portfolio-grid-view.is-measuring {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
}

.portfolio-stack-wrapper.is-hidden,
.portfolio-grid-view.is-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
}

.portfolio-stack-wrapper.is-active,
.portfolio-grid-view.is-active {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.portfolio-stack-wrapper.is-exiting,
.portfolio-grid-view.is-exiting,
.portfolio-stack-wrapper.is-entering,
.portfolio-grid-view.is-entering {
    position: absolute;
    inset: 0;
    visibility: visible;
}

.portfolio-stack-wrapper.is-exiting,
.portfolio-grid-view.is-exiting {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
}

.portfolio-stack-wrapper.is-entering,
.portfolio-grid-view.is-entering {
    position: relative;
    inset: auto;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateY(12px);
}

/* Portfolio View Toggle - Right Side */
.portfolio-view-toggle {
    position: absolute;
    top: 30px;
    right: 20px;
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px;
    border-radius: 16px;
    box-shadow: 8px 8px 16px rgba(174, 174, 192, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.view-toggle-indicator {
    position: absolute;
    width: 36px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(67, 141, 215, 0.3);
    top: 4px;
    left: 4px;
    pointer-events: none;
}

.view-toggle-indicator.grid-active {
    transform: translateX(36px);
}

.view-toggle-btn {
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.view-toggle-btn.active {
    color: white;
}

.view-toggle-btn:hover:not(.active) {
    color: var(--primary-color);
}

/* Grid View Styles */
.portfolio-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    width: 100%;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    will-change: opacity, transform;
}

.portfolio-grid-item {
    background: #ffffff;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 12px 12px 24px rgba(174, 174, 192, 0.3),
        -12px -12px 24px rgba(255, 255, 255, 0.9);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 15px 15px 30px rgba(174, 174, 192, 0.35),
        -15px -15px 30px rgba(255, 255, 255, 0.95),
        0 8px 32px rgba(67, 141, 215, 0.2);
}

.portfolio-grid-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-grid-content {
    padding: 24px;
    text-align: center;
}

.portfolio-grid-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.portfolio-grid-category {
    display: none;
}

.portfolio-grid-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.portfolio-stack-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 10px 0;
}

.portfolio-stack {
    position: relative;
    width: 600px;
    height: 350px;
    perspective: 1000px;
}

.portfolio-card {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 12px 12px 24px rgba(174, 174, 192, 0.3),
        -12px -12px 24px rgba(255, 255, 255, 0.9),
        inset 2px 2px 5px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    transition: all 0.4s ease;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.portfolio-card:hover .portfolio-card-image {
    box-shadow: 15px 15px 30px rgba(174, 174, 192, 0.35),
        -15px -15px 30px rgba(255, 255, 255, 0.95),
        0 8px 32px rgba(67, 141, 215, 0.2),
        inset 2px 2px 5px rgba(255, 255, 255, 0.6);
}

/* Card stacking positions - NO OPACITY */
.portfolio-card[data-position="0"] {
    z-index: 4;
    transform: translateX(0) translateY(0) rotate(0deg);
}

.portfolio-card[data-position="1"] {
    z-index: 3;
    transform: translateX(25px) translateY(-20px) rotate(4deg);
}

.portfolio-card[data-position="2"] {
    z-index: 2;
    transform: translateX(50px) translateY(-35px) rotate(7deg);
}

.portfolio-card[data-position="3"] {
    z-index: 1;
    transform: translateX(75px) translateY(-50px) rotate(10deg);
}

.portfolio-card[data-position="-1"] {
    z-index: 0;
    transform: translateX(-150px) translateY(0) rotate(-15deg) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

/* Entering from left animation */
.portfolio-card.entering[data-position="-1"] {
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
}

.portfolio-card[data-position="-2"],
.portfolio-card[data-position="-3"],
.portfolio-card[data-position="-4"],
.portfolio-card[data-position*="-"] {
    z-index: 0;
    transform: translateX(-200px) translateY(0) rotate(-20deg) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

/* Card Info Below */
.portfolio-card-info {
    text-align: center;
    max-width: 600px;
    padding: 8px;
    transition: opacity 0.3s ease;
}

.portfolio-info-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.portfolio-info-category {
    display: none;
}

.portfolio-info-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Navigation Arrows */
.portfolio-nav {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 8px 8px 16px rgba(174, 174, 192, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portfolio-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 10px 10px 20px rgba(174, 174, 192, 0.25),
        -10px -10px 20px rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.portfolio-nav:active {
    transform: scale(0.95);
}

.portfolio-nav:disabled {
    pointer-events: none;
    opacity: 0.45;
    transform: scale(0.96);
    box-shadow: none;
}

/* ==========================================
   CONTACT - MODERN FORMS
   ========================================== */

.contact {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    position: relative;
    overflow: visible;
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.contact-onboarding-shell {
    width: min(100%, 720px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 48px 52px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 70px rgba(27, 44, 80, 0.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-info-popover {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: baseline;
    margin-left: 0.2rem;
}

.contact-info-trigger {
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(67, 141, 215, 0.92);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-info-trigger:hover,
.contact-info-trigger:focus-visible {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.contact-info-trigger:focus-visible {
    outline: 2px solid rgba(67, 141, 215, 0.35);
    outline-offset: 2px;
}

.contact-info-trigger i {
    display: block;
}

.contact-info-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: min(360px, calc(100vw - 48px));
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: left;
    box-shadow: 0 18px 36px rgba(18, 29, 47, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.contact-info-tooltip::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.76);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    transform: translateX(-50%) rotate(45deg);
}

.contact-info-tooltip::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 18px;
}

.contact-info-popover:hover .contact-info-tooltip,
.contact-info-popover:focus-within .contact-info-tooltip,
.contact-info-tooltip:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.contact-onboarding-shell .onboarding-entry-form {
    width: min(100%, 580px);
    margin: 0 auto;
    text-align: left;
}

.contact-onboarding-shell .onboarding-entry-actions {
    margin-top: 4px;
    align-items: center;
}

.contact-onboarding-shell .btn {
    width: 100%;
}

.contact-onboarding-shell .btn:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
    box-shadow: none;
}

html.modal-open,
body.modal-open {
    overflow: hidden;
    overflow: clip;
    overscroll-behavior: none;
}

.contact-form-modal .modal-container {
    max-width: 680px;
    width: min(680px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    padding: 36px 32px 32px;
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-form-modal .modal-container::-webkit-scrollbar {
    display: none;
}

.contact-form-modal .modal-title,
.contact-form-modal .modal-message {
    text-align: left;
}

.contact-form-modal .modal-message {
    margin-bottom: 0;
}

.contact-form-modal .modal-message a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(32, 55, 93, 0.22);
}

.contact-form-modal .modal-message a:hover {
    color: var(--primary-color);
    border-color: rgba(67, 141, 215, 0.38);
}

.offer-page-spacer {
    min-height: calc(100vh - 320px);
}

.offer-page {
    padding: calc(var(--navbar-height) + 34px) 0 96px;
}

.offer-page-hero {
    position: relative;
    min-height: var(--offer-hero-shell-span, calc(100vh - var(--navbar-height) - 44px));
    margin-bottom: 34px;
}

.offer-page-hero-shell {
    position: sticky;
    top: var(--offer-hero-sticky-top, var(--navbar-height));
    min-height: var(--offer-hero-min-height, calc(100vh - var(--navbar-height) - 44px));
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-content: center;
    align-items: start;
}

.offer-page-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.offer-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(67, 141, 215, 0.1);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: fit-content;
}

.offer-page-title {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4.25rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--text-dark);
}

.offer-page-lead {
    margin: 0;
    max-width: 720px;
    font-size: 1.14rem;
    line-height: 1.85;
    color: var(--text-light);
}

.offer-page-callout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.offer-page-metric {
    padding: 6px 16px 6px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    position: relative;
}

.offer-page-metric-value {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums lining-nums;
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.offer-page-metric-value.is-rolling {
    opacity: 0.78;
    filter: blur(0.8px);
    transform: translateY(-2px);
}

.offer-page-metric-label {
    display: block;
    color: var(--text-light);
    line-height: 1.55;
    font-size: 0.98rem;
}

.offer-page-summary-card {
    position: relative;
    top: auto;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(160deg, #fdfefe 0%, #eff5fd 100%);
    border: 1px solid rgba(67, 141, 215, 0.16);
    box-shadow: 0 24px 46px rgba(17, 35, 63, 0.08);
}

.offer-page-summary-card.is-hero-intro-ready {
    opacity: var(--offer-summary-opacity, 0);
    transform: translateY(var(--offer-summary-translate, 84px));
    filter: blur(var(--offer-summary-blur, 8px));
    transition: opacity 0.12s linear, transform 0.12s linear, filter 0.12s linear;
    will-change: opacity, transform, filter;
}

.offer-page-summary-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.offer-page-summary-price {
    margin: 0;
    font-size: 3rem;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--text-dark);
}

.offer-page-summary-note {
    margin: 10px 0 0;
    color: var(--text-light);
    line-height: 1.7;
}

.offer-page-summary-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.offer-page-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-dark);
    line-height: 1.65;
}

.offer-page-summary-list i {
    color: var(--primary-color);
    margin-top: 3px;
}

.offer-page-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 700;
    line-height: 1.65;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.offer-page-inline-link:hover {
    color: var(--primary-color);
}

.offer-page-inline-link:focus-visible {
    outline: 3px solid rgba(67, 141, 215, 0.18);
    outline-offset: 4px;
    border-radius: 8px;
}

.offer-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.offer-page-grid-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.offer-page-scroll-phase {
    opacity: 0;
    filter: blur(0);
    transform: translateY(36px) scale(0.99);
    transition: opacity 0.76s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.76s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.76s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, filter, transform;
    pointer-events: none;
}

.offer-page-scroll-phase.is-focused {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
    transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
}

.offer-page-bridge-panel {
    opacity: 1;
    transform: none;
    filter: none;
}

.offer-page-panel {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(67, 141, 215, 0.12);
    box-shadow: 0 18px 38px rgba(17, 35, 63, 0.05);
}

.offer-page-live-reveal {
    transition-duration: 0.68s;
}

.offer-page-panel.is-full {
    grid-column: 1 / -1;
}

.offer-page-panel h2,
.offer-page-panel h3 {
    margin: 0 0 14px;
    color: var(--text-dark);
    font-size: 1.55rem;
    line-height: 1.15;
}

.offer-page-panel p {
    margin: 0 0 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.offer-page-panel p:last-child {
    margin-bottom: 0;
}

.offer-page-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.offer-page-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-dark);
    line-height: 1.7;
}

.offer-page-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.offer-page-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.offer-page-stages-inline {
    display: flex;
    align-items: stretch;
    gap: 18px;
    flex-wrap: nowrap;
}

.offer-page-story-shell {
    display: grid;
    gap: 24px;
}

.offer-page-story-heading {
    width: 100%;
    max-width: none;
}

.offer-page-story-heading h2 {
    margin-bottom: 0;
}

.offer-page-stage {
    flex: 1 1 0;
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(67, 141, 215, 0.06);
    border: 1px solid rgba(67, 141, 215, 0.12);
}

.offer-page-stage-arrow {
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(67, 141, 215, 0.82);
    font-size: 1.05rem;
}

.offer-page-stage-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.offer-page-stage h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.offer-page-stage p {
    margin: 0;
    font-size: 0.96rem;
}

.offer-page-story.is-story-ready {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: var(--offer-story-min-height, 100vh);
    height: var(--offer-story-min-height, 100vh);
}

.offer-page-story.is-story-ready .offer-page-story-shell {
    position: sticky;
    top: var(--offer-story-sticky-top, calc(var(--navbar-height) + 28px));
    min-height: var(--offer-story-shell-height, 680px);
    height: var(--offer-story-shell-height, 680px);
    padding: 30px 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(67, 141, 215, 0.12);
    box-shadow: 0 22px 42px rgba(17, 35, 63, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.offer-page-story.is-story-ready .offer-page-story-heading {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
    align-self: stretch;
}

.offer-page-story.is-story-ready .offer-page-stages {
    position: relative;
    display: block;
    min-height: var(--offer-story-stage-viewport-height, 420px);
}

.offer-page-story.is-story-ready .offer-page-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(var(--story-width, 920px), 100%);
    padding: 26px 28px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.94) 100%);
    border: 1px solid rgba(67, 141, 215, 0.12);
    box-shadow: 0 20px 38px rgba(17, 35, 63, 0.08);
    opacity: var(--story-opacity, 0);
    filter: blur(var(--story-blur, 0px));
    transform: translate3d(-50%, calc(-50% + var(--story-translate-y, 0px)), 0) scale(var(--story-scale, 1));
    transition: opacity 0.2s linear, filter 0.2s linear, transform 0.2s linear;
    pointer-events: none;
    will-change: transform, opacity, filter;
}

.offer-page-story.is-story-ready .offer-page-stage.is-active {
    pointer-events: auto;
}

.offer-page-story.is-overview .offer-page-story-shell {
    justify-content: center;
}

.offer-page-story.is-overview .offer-page-stages {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    min-height: var(--offer-story-stage-viewport-height, 420px);
    height: var(--offer-story-stage-viewport-height, 420px);
}

.offer-page-story.is-overview .offer-page-stage {
    position: relative;
    top: auto;
    left: auto;
    width: min(var(--story-width, 680px), 100%);
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 22px;
    transform: translate3d(0, var(--story-translate-y, 0px), 0) scale(var(--story-scale, 1));
    transition: opacity 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.38s ease, transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offer-page-story.is-overview .offer-page-stage-step {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    font-size: 0.78rem;
}

.offer-page-story.is-overview .offer-page-stage h3 {
    margin-bottom: 6px;
    font-size: 1.04rem;
}

.offer-page-story.is-overview .offer-page-stage p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.offer-page-story.is-final-outro .offer-page-stage {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(-50%, calc(-50% - 28px), 0) scale(0.86);
}

.offer-page-story.is-story-finished .offer-page-stages {
    min-height: var(--offer-story-stage-viewport-height, 420px);
}

.offer-page-story.is-story-ready .offer-page-stage-step {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.offer-page-story.is-story-ready .offer-page-stage h3 {
    margin-bottom: 10px;
    font-size: 1.34rem;
}

.offer-page-story.is-story-ready .offer-page-stage p {
    font-size: 1rem;
    line-height: 1.75;
}

.offer-page-cta {
    margin-top: 26px;
    padding: 30px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #20375d 0%, #438dd7 100%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 24px 44px rgba(32, 55, 93, 0.18);
}

.offer-page-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.9rem;
}

.offer-page-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    max-width: 720px;
}

.offer-page-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(17, 35, 63, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.offer-page-cta .btn-secondary i {
    font-size: 1rem;
    flex-shrink: 0;
}

.offer-page-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.96);
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 18px 34px rgba(17, 35, 63, 0.18);
}

.offer-page-cta .btn-secondary:active {
    transform: translateY(1px) scale(0.995);
    box-shadow: 0 10px 18px rgba(17, 35, 63, 0.16) inset;
}

.offer-rich-modal {
    max-width: 640px;
    text-align: left;
    padding: 34px 30px 28px;
}

.offer-rich-modal .modal-title {
    margin-bottom: 14px;
    width: 100%;
    text-align: left;
}

.offer-rich-modal-copy {
    margin-bottom: 22px;
    color: var(--text-light);
    line-height: 1.75;
    width: 100%;
    text-align: left;
}

.offer-rich-modal-list {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    width: 100%;
}

.offer-rich-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    line-height: 1.65;
}

.offer-rich-modal-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.offer-rich-modal-actions {
    display: block;
    width: 100%;
}

.offer-rich-modal-actions .modal-close-btn {
    width: 100%;
}

.offer-rich-modal {
    text-align: left;
}

.offer-rich-modal .modal-title,
.offer-rich-modal-copy,
.offer-rich-modal-list {
    text-align: left;
}

@media (max-width: 980px) {
    .offer-page-hero,
    .offer-page-grid,
    .offer-page-cta {
        grid-template-columns: 1fr;
    }

    .offer-page-hero {
        min-height: auto;
    }

    .offer-page-hero-shell {
        position: static;
        min-height: auto;
        grid-template-columns: 1fr;
        align-content: initial;
    }

    .offer-page-grid-group {
        grid-template-columns: 1fr;
    }

    .offer-page-grid-group.offer-page-scroll-phase {
        opacity: 1;
        filter: none;
        transform: none;
        pointer-events: auto;
    }

    .offer-page-summary-card {
        position: static;
    }

    .offer-page-summary-card.is-hero-intro-ready {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .offer-page-bridge-panel {
        opacity: 0;
        transform: translateY(40px);
        filter: none;
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .offer-page-bridge-panel.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .offer-page-callout,
    .offer-page-stages {
        grid-template-columns: 1fr;
    }

    .offer-page-stages-inline {
        flex-direction: column;
        gap: 12px;
    }

    .offer-page-stage-arrow {
        flex: 0 0 auto;
        min-height: 22px;
        transform: rotate(90deg);
    }

    .offer-page-story.is-story-ready {
        min-height: auto !important;
    }

    .offer-page-story.is-story-ready .offer-page-story-shell {
        position: static;
        min-height: auto;
        padding: 28px;
    }

    .offer-page-story.is-story-ready .offer-page-stages {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: auto;
    }

    .offer-page-story.is-story-ready .offer-page-stage {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        opacity: 1;
        filter: none;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 640px) {
    .offer-page {
        padding: calc(var(--navbar-height) + 24px) 0 72px;
    }

    .offer-page-title {
        font-size: 2.5rem;
    }

    .offer-page-panel,
    .offer-page-summary-card,
    .offer-page-cta {
        padding: 22px;
    }
}

.blank-page {
    min-height: 100vh;
    background: var(--bg-white);
}

.onboarding-entry-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #f7f9fc 0%, #ffffff 45%, #eef4fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.onboarding-entry-shell {
    width: min(100%, 540px);
    padding: 42px 38px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 70px rgba(27, 44, 80, 0.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.onboarding-entry-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(67, 141, 215, 0.08);
    margin-bottom: 24px;
}

.onboarding-entry-brand img {
    height: 56px;
    width: auto;
}

.onboarding-entry-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.onboarding-entry-description {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 26px;
}

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

.onboarding-entry-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.onboarding-entry-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.onboarding-entry-link {
    align-self: center;
    color: var(--primary-dark);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(32, 55, 93, 0.24);
    transition: color 0.22s ease, border-color 0.22s ease;
}

.onboarding-entry-link:hover {
    color: var(--primary-color);
    border-color: rgba(67, 141, 215, 0.4);
}

.contact-modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.contact-modal-form .form-group input,
.contact-modal-form .form-group textarea,
.contact-modal-form .form-group select {
    border-color: rgba(67, 141, 215, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.contact-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 600;
}

.contact-inline-optional {
    font-weight: 400;
    color: var(--text-light);
}

.contact-inline-popover {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.contact-inline-trigger {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 999px;
    background: rgba(67, 141, 215, 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    font-size: 0.72rem;
}

.contact-inline-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(67, 141, 215, 0.18);
    box-shadow: 0 16px 32px rgba(17, 35, 63, 0.10);
    backdrop-filter: blur(20px);
    color: #28425f;
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 30;
}

.contact-inline-popover:hover .contact-inline-tooltip,
.contact-inline-popover:focus-within .contact-inline-tooltip {
    opacity: 1;
    visibility: visible;
}

.contact-preference-group.is-hidden {
    display: none;
}

.contact-choice-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.contact-choice-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.contact-choice-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-choice-pill {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 15px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    background-clip: padding-box;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(67, 141, 215, 0.16);
    color: #28425f;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.contact-choice-option:hover .contact-choice-pill {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(67, 141, 215, 0.28), 0 12px 24px rgba(17, 35, 63, 0.08);
}

.contact-choice-option input:checked + .contact-choice-pill {
    background: linear-gradient(135deg, rgba(67, 141, 215, 0.98) 0%, rgba(32, 55, 93, 0.96) 100%);
    box-shadow: 0 14px 28px rgba(67, 141, 215, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.contact-choice-option input:focus-visible + .contact-choice-pill {
    outline: 2px solid rgba(67, 141, 215, 0.34);
    outline-offset: 3px;
}

.contact-choice-option input:disabled + .contact-choice-pill {
    opacity: 0.68;
}

.consent-group {
    margin-top: 2px;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.consent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-checkbox {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(67, 141, 215, 0.18);
    box-shadow: inset 3px 3px 6px rgba(174, 174, 192, 0.12),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.consent-checkbox i {
    font-size: 0.78rem;
}

.consent-option input:checked + .consent-checkbox {
    background: linear-gradient(135deg, rgba(67, 141, 215, 0.94) 0%, rgba(32, 55, 93, 0.96) 100%);
    border-color: rgba(67, 141, 215, 0.42);
    box-shadow: 0 8px 18px rgba(67, 141, 215, 0.22);
    color: #ffffff;
}

.consent-option input:focus-visible + .consent-checkbox {
    outline: 2px solid rgba(67, 141, 215, 0.35);
    outline-offset: 3px;
}

.consent-option:hover .consent-checkbox {
    transform: translateY(-1px);
    border-color: rgba(67, 141, 215, 0.26);
}

.consent-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.consent-text a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(32, 55, 93, 0.22);
}

.consent-text a:hover {
    color: var(--primary-color);
    border-color: rgba(67, 141, 215, 0.38);
}

.contact-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.contact-modal-actions .btn {
    padding: 14px 24px;
}

.contact-modal-actions .btn-secondary {
    background: rgba(67, 141, 215, 0.10);
    color: var(--primary-dark);
    border-color: rgba(67, 141, 215, 0.24);
    backdrop-filter: none;
}

.contact-modal-actions .btn-secondary:hover {
    background: rgba(67, 141, 215, 0.16);
    color: var(--primary-dark);
    border-color: rgba(67, 141, 215, 0.34);
    box-shadow: none;
}

@media (max-width: 768px) {
    .contact-inline-tooltip {
        left: 0;
        top: calc(100% + 10px);
        transform: none;
        width: min(260px, calc(100vw - 56px));
    }

    .contact-choice-group {
        grid-template-columns: 1fr;
    }
}

.legal-page-main {
    min-height: calc(100vh - 320px);
    padding: 170px 0 110px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page-main .section-header {
    max-width: 760px;
    margin: 0 auto 40px;
}

.legal-meta {
    margin: 0 0 10px;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.legal-card {
    padding: 38px 40px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 70px rgba(27, 44, 80, 0.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.legal-section + .legal-section {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid rgba(32, 55, 93, 0.08);
}

.legal-section h2 {
    margin: 0 0 14px;
    color: var(--text-dark);
    font-size: 1.35rem;
    line-height: 1.25;
}

.legal-section p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

.legal-section p + p,
.legal-section p + .legal-list,
.legal-section .legal-list + p {
    margin-top: 14px;
}

.legal-section a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(32, 55, 93, 0.18);
}

.legal-section a:hover {
    color: var(--primary-color);
    border-color: rgba(67, 141, 215, 0.3);
}

.legal-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-light);
}

.legal-list li {
    line-height: 1.8;
}

.legal-list li + li {
    margin-top: 6px;
}

.legal-callout {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 243, 212, 0.72);
    border: 1px solid rgba(230, 183, 67, 0.24);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: inset 4px 4px 8px rgba(174, 174, 192, 0.15),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 141, 215, 0.1),
        inset 2px 2px 5px rgba(67, 141, 215, 0.1),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.8);
}

.form-group textarea {
    resize: none;
    min-height: 150px;
}

.recaptcha-group {
    display: flex;
    justify-content: center;
}

/* ==========================================
   FOOTER - MODERN
   ========================================== */

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

.footer::before {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo-glass {
    position: relative;
    display: inline-block;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.footer-logo-glass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(67, 141, 215, 0.1) 40%,
            transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    filter: blur(20px);
    transition: all 0.4s ease;
}

.footer-logo-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(67, 141, 215, 0.3);
    box-shadow: 0 8px 32px rgba(67, 141, 215, 0.2);
    transform: translateY(-4px);
}

.footer-logo-glass:hover::before {
    width: 150%;
    height: 150%;
    opacity: 0.8;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(67, 141, 215, 0.15) 40%,
            transparent 70%);
}

.footer-logo {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(67, 141, 215, 0.15));
    transition: filter 0.4s ease;
}

.footer-logo-glass:hover .footer-logo {
    filter: drop-shadow(0 4px 12px rgba(67, 141, 215, 0.25));
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--text-white);
}

.footer-title-extended {
    position: relative;
}

.footer-title-extended::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: calc(200% + 48px);
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-section-no-title .footer-links {
    margin-top: 53px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(67, 141, 215, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

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

/* Large Tablets / Small Laptops (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .nav-menu {
        gap: 24px;
    }

    .hero-glass-container {
        padding: 50px 60px;
    }

    .hero-glass-title {
        font-size: 3.5rem;
    }

    .pricing-surface {
        padding: 36px;
        border-radius: 30px;
    }

    .pricing-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-stack {
        width: 500px;
        height: 320px;
    }

    .portfolio-stack-container {
        gap: 60px;
    }

    .about-content {
        gap: 60px;
    }

    .contact-content {
        gap: 60px;
    }
}

/* Tablet (768px) - Hamburger menu activé */
@media (max-width: 768px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    /* Navigation Mobile */
    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 10px;
        margin: -10px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(67, 141, 215, 0.14);
        box-shadow: 0 10px 24px rgba(17, 35, 63, 0.08);
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
        width: 0;
        margin: 0;
        background: transparent;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-wrapper {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: var(--mobile-nav-menu-top, calc(var(--navbar-height) + 6px));
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px));
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(241, 247, 255, 0.52) 100%);
        backdrop-filter: blur(36px) saturate(190%);
        -webkit-backdrop-filter: blur(36px) saturate(190%);
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        box-shadow: 0 24px 50px rgba(17, 35, 63, 0.16);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-18px);
        transition: opacity 0.28s ease, transform 0.32s ease, box-shadow 0.32s ease;
        z-index: 999;
        overflow-y: auto;
        max-height: var(--mobile-nav-menu-max-height, calc(100svh - var(--navbar-height) - 6px));
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        inset: 0;
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
        backdrop-filter: blur(48px) saturate(205%);
        -webkit-backdrop-filter: blur(48px) saturate(205%);
        z-index: -1;
        pointer-events: none;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        box-shadow: 0 28px 56px rgba(17, 35, 63, 0.18);
    }

    .nav-offers-dropdown {
        display: none;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 0.28s ease, transform 0.32s ease;
        width: 100%;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }

    .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 15px 18px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.58);
        border: 1px solid rgba(67, 141, 215, 0.1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
        font-size: 1.02rem;
        font-weight: 600;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.is-active {
        color: var(--primary-color);
        background: rgba(67, 141, 215, 0.16);
        border-color: rgba(67, 141, 215, 0.22);
        box-shadow:
            0 10px 20px rgba(67, 141, 215, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.46);
    }

    .nav-link.is-active::after {
        display: none;
    }

    /* Logo */
    .logo-img {
        height: 50px;
    }

    .navbar.scrolled .logo-img {
        height: 38px;
    }

    /* Hero */
    .hero-video {
        object-position: center center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Sections */
    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-content {
        gap: 48px;
    }

    .pricing-surface {
        padding: 28px;
        border-radius: 26px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    /* Portfolio Toggle */
    .portfolio-view-toggle {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto 0;
    }

    .portfolio-content-area {
        max-width: 100%;
    }

    .contact-onboarding-shell {
        width: min(100%, 680px);
        padding: 40px 34px;
    }

    .portfolio-stack {
        width: 450px;
        height: 300px;
    }

    .portfolio-stack-container {
        gap: 50px;
        padding: 30px 0;
    }

    .portfolio-info-title {
        font-size: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        margin-bottom: 36px;
    }

    .footer-section-no-title {
        margin-top: -14px;
    }

    .footer-section-no-title .footer-links {
        margin-top: 0;
    }

    .footer-links {
        display: grid;
        gap: 12px;
        justify-items: center;
    }

    .footer-title-extended::after {
        left: 50%;
        width: min(180px, 100%);
        transform: translateX(-50%);
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .social-links {
        justify-content: center;
    }
}

/* Intermediate (600px) */
@media (max-width: 600px) {
    .hero-glass-container {
        padding: 40px 35px;
        width: calc(100% - 24px);
        max-width: none;
    }

    .hero-glass-title {
        font-size: 2.8rem;
    }

    .portfolio-stack {
        width: 350px;
        height: 280px;
    }

    .portfolio-stack-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px 20px;
        justify-items: center;
    }

    .portfolio-stack {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .portfolio-nav-prev {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
    }

    .portfolio-nav-next {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .portfolio-info {
        text-align: center;
        max-width: 100%;
    }

    .section-header {
        padding: 0 10px;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-glass-title {
        font-size: 2.2rem;
    }

    .hero-glass-subtitle {
        font-size: 1rem;
    }

    .hero-glass-container {
        padding: 35px 25px;
        width: calc(100% - 20px);
        max-width: none;
    }

    .section-title {
        font-size: 1.9rem;
    }
    .pricing-surface {
        padding: 22px;
        border-radius: 22px;
    }

    .pricing-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .card-price {
        font-size: 2rem;
    }

    .portfolio-stack {
        width: 280px;
        height: 280px;
    }

    .portfolio-info-title {
        font-size: 1.6rem;
    }

    .portfolio-info-category {
        font-size: 0.9rem;
    }

    .portfolio-info-description {
        font-size: 0.95rem;
    }

    .portfolio-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .portfolio-stack-container {
        gap: 24px 16px;
    }

    .about-image-wrapper {
        height: 300px;
    }

    .about-image-wrapper::before {
        animation: none;
        opacity: 0;
    }

    .about-image-wrapper img {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) !important;
        will-change: auto;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .btn {
        padding: 14px 32px;
        font-size: 0.95rem;
        width: 100%;
    }

    .btn-secondary {
        width: auto;
    }

    .contact-content {
        margin-top: 40px;
    }

    .contact-onboarding-shell {
        width: 100%;
        padding: 30px 22px;
        border-radius: 24px;
    }

    .contact-subtitle-row {
        max-width: 100%;
    }

    .contact-info-tooltip {
        left: 50%;
        width: min(300px, calc(100vw - 40px));
    }

    .contact-info-trigger {
        font-size: 0.88rem;
    }

    .legal-page-main {
        padding: 150px 0 90px;
    }

    .legal-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .contact-form-modal .modal-container {
        padding: 30px 22px 24px;
    }

    .contact-modal-actions {
        flex-direction: column-reverse;
    }

    .contact-modal-actions .btn-secondary {
        width: 100%;
    }

    .onboarding-entry-link {
        width: 100%;
        text-align: center;
    }
}

/* Small Mobile (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .logo-img {
        height: 42px;
    }

    .navbar.scrolled .logo-img {
        height: 34px;
    }

    .hero-glass-title {
        font-size: 1.9rem;
    }

    .hero-glass-subtitle {
        font-size: 0.9rem;
    }

    .hero-glass-container {
        padding: 28px 20px;
        border-radius: 20px;
    }

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

    .section-description {
        font-size: 0.95rem;
    }

    .portfolio-stack {
        width: 240px;
        height: 240px;
    }

    .portfolio-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .portfolio-info-title {
        font-size: 1.4rem;
    }

    .portfolio-stack-container {
        gap: 20px 12px;
    }

    .about-image-wrapper {
        height: 260px;
    }

    .about-image-wrapper::before {
        animation: none;
        opacity: 0;
    }

    .about-image-wrapper img {
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) !important;
    }

    .footer {
        padding: 50px 0 20px;
    }

    .footer-logo {
        height: 55px;
    }

    .footer-title {
        font-size: 1.05rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .portfolio-view-toggle {
        padding: 3px;
    }

    .view-toggle-indicator {
        width: 32px;
        height: 28px;
        top: 3px;
        left: 3px;
        border-radius: 8px;
    }

    .view-toggle-indicator.grid-active {
        transform: translateX(32px);
    }

    .view-toggle-btn {
        width: 32px;
        height: 28px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
}

@media (hover: none), (pointer: coarse) {
    .logo-img:hover,
    .contact-info-trigger:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .onboarding-entry-link:hover,
    .modal-close-btn:hover,
    .footer-links a:hover {
        transform: none;
    }

    .btn-primary:hover {
        background: var(--primary-color);
        box-shadow: 0 4px 16px rgba(67, 141, 215, 0.25);
    }

    .btn-secondary:hover {
        background: transparent;
        color: var(--text-white);
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: none;
    }

    .contact-info-trigger:hover {
        color: rgba(67, 141, 215, 0.92);
    }

    .onboarding-entry-link:hover {
        color: var(--primary-dark);
        border-color: rgba(32, 55, 93, 0.24);
    }

    .modal-close-btn:hover {
        background: var(--primary-color);
        box-shadow: 0 4px 16px rgba(67, 141, 215, 0.25);
    }

    .footer-links a:hover {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 40px;
    }

    .hero-glass-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    .scroll-indicator {
        display: none;
    }

    /* En landscape sur mobile, garder le menu horizontal si possible */
    @media (min-width: 568px) {
        .hamburger {
            display: none;
        }

        .nav-menu {
            position: static;
            flex-direction: row;
            max-height: none;
            overflow: visible;
            background: transparent;
            padding: 0;
            gap: 20px;
            box-shadow: none;
        }

        .nav-menu li {
            opacity: 1;
            transform: none;
        }
    }
}

/* ==========================================
   CUSTOM MODAL - GLASSMORPHISM
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior: none;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
}

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

.modal-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: min(420px, calc(100vw - 40px));
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}

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

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.modal-icon.success {
    background: rgba(74, 222, 128, 0.15);
    color: #22c55e;
}

.modal-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.modal-icon.warning {
    background: rgba(251, 191, 36, 0.15);
    color: #f59e0b;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-close-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 0.22s ease,
        box-shadow 0.22s ease;
    box-shadow: 0 4px 16px rgba(67, 141, 215, 0.25);
}

.modal-close-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(67, 141, 215, 0.35);
}

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

.modal-overlay.closing {
    opacity: 0;
}

.modal-overlay.closing .modal-container {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.contact-modal-actions .btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: saturate(0.8);
}

/* ==========================================
   VERIFY EMAIL PAGE
   ========================================== */

.verification-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background:
        radial-gradient(circle at top left, rgba(67, 141, 215, 0.12), transparent 36%),
        radial-gradient(circle at bottom right, rgba(32, 55, 93, 0.14), transparent 34%),
        linear-gradient(180deg, #f6f9fc 0%, #eef3f9 100%);
}

.verification-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 48px;
    text-align: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 60px rgba(16, 33, 61, 0.12);
}

.verification-card-success {
    box-shadow: 0 24px 60px rgba(37, 112, 101, 0.14);
}

.verification-card-warning {
    box-shadow: 0 24px 60px rgba(180, 119, 28, 0.14);
}

.verification-card-error {
    box-shadow: 0 24px 60px rgba(120, 38, 46, 0.14);
}

.verification-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(67, 141, 215, 0.1);
    color: #20375d;
}

.verification-card-success .verification-icon {
    background: rgba(106, 191, 169, 0.16);
    color: #2f7065;
}

.verification-card-warning .verification-icon {
    background: rgba(235, 179, 58, 0.18);
    color: #b9771c;
}

.verification-card-error .verification-icon {
    background: rgba(210, 73, 87, 0.16);
    color: #9c2f3d;
}

.verification-eyebrow {
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6c7d93;
}

.verification-title {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
}

.verification-message {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.verification-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .verification-page {
        padding: 120px 0 60px;
    }

    .verification-card {
        padding: 40px 24px;
        border-radius: 24px;
    }
}
