/*
 * LAC VISION — Phase 4F.1
 * Restructuration UX et conversion.
 * Cette feuille se charge après les styles précédents et réduit volontairement
 * les effets décoratifs de la phase 4F.
 */

:root {
    --ux-ink: #0a0b0e;
    --ux-muted: #5e6572;
    --ux-line: #dfe3e8;
    --ux-soft: #f5f6f8;
    --ux-white: #ffffff;
    --ux-accent: #2457ff;
    --ux-accent-dark: #173cc3;
    --ux-max: 1240px;
    --ux-radius: 22px;
    --ux-shadow: 0 20px 55px rgba(10, 11, 14, .10);
    --ux-section: clamp(76px, 8vw, 116px);
}

html,
html[data-theme="dark"],
html[data-theme="light"] {
    color-scheme: light;
    background: var(--ux-white);
}

body,
body.phase4f-page,
body:has(.phase4f-page) {
    background: var(--ux-white);
    color: var(--ux-ink);
    overflow-x: hidden;
}

body.motion-menu-open {
    overflow: auto;
}

.phase4f-page .container,
.ux-header .container,
.ux-footer .container {
    width: min(var(--ux-max), calc(100% - 42px));
    max-width: var(--ux-max);
    margin-inline: auto;
}

.phase4f-page .section {
    padding-block: var(--ux-section);
}

.phase4f-page .eyebrow {
    margin: 0 0 14px;
    color: var(--ux-accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.phase4f-page h1,
.phase4f-page h2,
.phase4f-page h3 {
    color: var(--ux-ink);
    text-wrap: balance;
}

.phase4f-page h1 {
    font-size: clamp(44px, 6.2vw, 82px);
    line-height: .98;
    letter-spacing: -.055em;
}

.phase4f-page h2 {
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.phase4f-page h3 {
    letter-spacing: -.025em;
}

/* Navigation claire et prévisible */
.motion-header,
.ux-header {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(223, 227, 232, .9);
    background: rgba(255, 255, 255, .94);
    color: var(--ux-ink);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ux-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(10, 11, 14, .06);
}

.ux-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ux-brand {
    position: static;
    width: 62px;
    height: 62px;
    transform: none;
}

.ux-brand:hover {
    transform: none;
}

.ux-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ux-nav > a {
    position: relative;
    color: var(--ux-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 760;
}

.ux-nav > a:not(.ux-nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--ux-ink);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.ux-nav > a:hover::after,
.ux-nav > a.is-active::after {
    transform: scaleX(1);
}

.ux-nav .ux-nav-cta {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding-inline: 19px;
    border-radius: 999px;
    background: var(--ux-ink);
    color: var(--ux-white);
}

.ux-nav .ux-nav-cta:hover {
    background: var(--ux-accent);
}

.ux-menu-toggle {
    display: none;
}

/* Accueil : hiérarchie et conversion */
.ux-hero {
    padding: clamp(64px, 8vw, 112px) 0;
    background:
        radial-gradient(circle at 82% 12%, rgba(36, 87, 255, .10), transparent 34%),
        var(--ux-white);
}

.ux-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(380px, .78fr);
    align-items: center;
    gap: clamp(48px, 7vw, 92px);
}

.ux-hero-copy h1 {
    max-width: 850px;
    margin: 0;
}

.ux-hero-lead {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--ux-muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

.ux-hero .actions {
    margin-top: 32px;
}

.ux-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ux-muted);
    font-size: 14px;
    font-weight: 650;
}

.ux-hero-points li {
    position: relative;
    padding-left: 16px;
}

.ux-hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ux-accent);
}

.ux-hero-media {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--ux-soft);
    box-shadow: var(--ux-shadow);
}

.ux-hero-media picture,
.ux-hero-media img {
    width: 100%;
    height: 100%;
}

.ux-hero-media img {
    min-height: 540px;
    object-fit: cover;
}

.ux-hero-media-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(10, 11, 14, .82);
    color: #fff;
    backdrop-filter: blur(10px);
}

.ux-hero-media-caption span {
    color: #c8ceda;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ux-hero-fallback {
    min-height: 540px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 30px;
    background: var(--ux-ink);
    color: #fff;
    text-align: center;
}

.ux-hero-fallback strong {
    font-size: clamp(40px, 6vw, 74px);
    letter-spacing: -.06em;
}

.ux-proof-bar {
    border-block: 1px solid var(--ux-line);
    background: var(--ux-soft);
}

.ux-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ux-proof-grid > div {
    min-height: 128px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 24px;
    border-right: 1px solid var(--ux-line);
}

.ux-proof-grid > div:first-child {
    border-left: 1px solid var(--ux-line);
}

.ux-proof-grid strong {
    font-size: 17px;
}

.ux-proof-grid span {
    color: var(--ux-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ux-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .55fr);
    align-items: end;
    gap: 54px;
    margin-bottom: 48px;
}

.ux-section-heading h2 {
    max-width: 780px;
    margin: 0;
}

.ux-section-heading > p {
    margin: 0;
    color: var(--ux-muted);
    font-size: 17px;
    line-height: 1.65;
}

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

.ux-pillar-card {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    padding: clamp(26px, 3vw, 38px);
    border: 1px solid var(--ux-line);
    border-radius: var(--ux-radius);
    background: var(--ux-white);
    box-shadow: 0 12px 34px rgba(10, 11, 14, .04);
}

.ux-pillar-number {
    margin-bottom: 58px;
    color: #a4aab4;
    font-size: 13px;
    font-weight: 800;
}

.ux-pillar-card h3 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 44px);
}

.ux-pillar-card > p:not(.eyebrow) {
    color: var(--ux-muted);
}

.ux-pillar-card ul {
    display: grid;
    gap: 9px;
    margin: 24px 0 30px;
    padding: 20px 0 0;
    border-top: 1px solid var(--ux-line);
    list-style: none;
}

.ux-pillar-card li a {
    color: var(--ux-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 680;
}

.ux-pillar-card li a:hover {
    color: var(--ux-accent);
}

.ux-card-link,
.ux-inline-link {
    color: var(--ux-ink);
    font-weight: 800;
    text-decoration: none;
}

.ux-card-link {
    margin-top: auto;
}

.ux-card-link:hover,
.ux-inline-link:hover {
    color: var(--ux-accent);
}

.ux-focus {
    padding-top: 0 !important;
}

.ux-focus-card {
    display: grid;
    grid-template-columns: 1.15fr .55fr;
    align-items: center;
    gap: 48px;
    padding: clamp(34px, 5vw, 64px);
    border-radius: 28px;
    background: var(--ux-ink);
    color: #fff;
}

.ux-focus-card h2 {
    margin: 0;
    color: #fff;
}

.ux-focus-card p:not(.eyebrow) {
    max-width: 760px;
    color: #c7ccd5;
    font-size: 17px;
}

.ux-focus-actions {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.ux-focus-actions .ux-inline-link {
    color: #fff;
}

.ux-projects {
    background: var(--ux-soft);
}

.ux-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ux-project-card {
    overflow: hidden;
    border: 1px solid var(--ux-line);
    border-radius: var(--ux-radius);
    background: #fff;
}

.ux-project-card > a {
    color: inherit;
    text-decoration: none;
}

.ux-project-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8eaee;
}

.ux-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.ux-project-card:hover .ux-project-image img {
    transform: scale(1.025);
}

.ux-project-content {
    padding: 26px;
}

.ux-project-content > span {
    color: var(--ux-accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ux-project-content h3 {
    margin: 7px 0 8px;
    font-size: 30px;
}

.ux-project-content p {
    min-height: 54px;
    color: var(--ux-muted);
    line-height: 1.55;
}

.ux-project-content strong {
    font-size: 14px;
}

.ux-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    border-block: 1px solid var(--ux-line);
    list-style: none;
}

.ux-method-grid li {
    min-height: 260px;
    padding: 28px;
    border-right: 1px solid var(--ux-line);
}

.ux-method-grid li:first-child {
    border-left: 1px solid var(--ux-line);
}

.ux-method-grid span {
    color: var(--ux-accent);
    font-size: 13px;
    font-weight: 850;
}

.ux-method-grid h3 {
    margin: 54px 0 10px;
    font-size: 24px;
}

.ux-method-grid p {
    color: var(--ux-muted);
    font-size: 15px;
}

.ux-review-section {
    background: var(--ux-soft);
}

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

.ux-review-card {
    padding: 28px;
    border: 1px solid var(--ux-line);
    border-radius: var(--ux-radius);
    background: #fff;
}

.ux-stars {
    color: #f4ae21;
    letter-spacing: .12em;
}

.ux-review-card blockquote {
    margin: 24px 0;
    color: var(--ux-ink);
    font-size: 17px;
    line-height: 1.65;
}

.ux-review-card > p {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--ux-muted);
    font-size: 13px;
}

.ux-google-placeholder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px;
    border: 1px solid var(--ux-line);
    border-radius: var(--ux-radius);
    background: #fff;
}

.ux-google-placeholder p {
    margin-bottom: 0;
    color: var(--ux-muted);
}

.ux-final-cta {
    padding-top: 0 !important;
}

.ux-final-card {
    display: grid;
    justify-items: start;
    padding: clamp(42px, 6vw, 78px);
    border-radius: 28px;
    background: linear-gradient(135deg, #0a0b0e, #171a23);
    color: #fff;
}

.ux-final-card h2 {
    max-width: 900px;
    margin: 0;
    color: #fff;
}

.ux-final-card > p:not(.eyebrow) {
    max-width: 760px;
    color: #c8cdd6;
    font-size: 18px;
}

.ux-final-card .button {
    margin-top: 20px;
}

/* Page services structurée */
.ux-page-hero {
    padding: clamp(72px, 8vw, 112px) 0;
    border-bottom: 1px solid var(--ux-line);
    background: var(--ux-soft);
}

.ux-page-hero-inner {
    max-width: 900px !important;
    margin-left: max(21px, calc((100vw - var(--ux-max)) / 2));
}

.ux-page-hero h1 {
    max-width: 900px;
    margin: 0;
}

.ux-page-hero p:last-child {
    max-width: 720px;
    color: var(--ux-muted);
    font-size: 20px;
}

.ux-service-group {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 50px;
    padding: 70px 0;
    border-bottom: 1px solid var(--ux-line);
}

.ux-service-group:first-child {
    padding-top: 0;
}

.ux-service-group > header {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 10px;
    align-content: start;
}

.ux-service-group > header > span {
    color: #a4aab4;
    font-size: 13px;
    font-weight: 850;
}

.ux-service-group h2 {
    margin: 0;
}

.ux-service-group header p:last-child {
    color: var(--ux-muted);
}

.ux-service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ux-service-cards article {
    min-height: 230px;
    border: 1px solid var(--ux-line);
    border-radius: 18px;
    background: #fff;
}

.ux-service-cards article a {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px;
    color: inherit;
    text-decoration: none;
}

.ux-service-cards h3 {
    margin: 0;
    font-size: 23px;
}

.ux-service-cards p {
    color: var(--ux-muted);
    font-size: 15px;
}

.ux-service-cards strong {
    margin-top: auto;
    font-size: 14px;
}

/* Calmer les pages 4F existantes */
.phase4f-page .f-page-hero,
.phase4f-page .f-service-hero,
.phase4f-page .f-project-hero {
    min-height: auto;
    padding: clamp(70px, 8vw, 112px) 0;
    background: var(--ux-soft);
}

.phase4f-page .f-display,
.phase4f-page .f-display-small,
.phase4f-page .f-section-title {
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
}

.phase4f-page .f-section-head,
.phase4f-page .f-intro-grid {
    grid-template-columns: 1fr .55fr;
    gap: 48px;
}

.phase4f-page .f-project-grid,
.phase4f-page .f-media-grid,
.phase4f-page .f-service-media-grid {
    gap: 24px;
}

.phase4f-page .f-project-card,
.phase4f-page .f-service-media-card,
.phase4f-page .f-team-card {
    transform: none !important;
}

.phase4f-page [data-parallax] {
    translate: none !important;
}

.phase4f-page .f-marquee,
.phase4f-page .f-hero-orbit,
.phase4f-page .f-rail-controls {
    animation: none !important;
}

/* Footer */
.ux-footer {
    background: #0a0b0e;
    color: #fff;
}

.ux-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-block: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.ux-footer-cta h2 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
}

.ux-footer .footer-top {
    padding-top: 58px;
}

.ux-footer a,
.ux-footer button,
.ux-footer address,
.ux-footer p {
    color: #d1d5de;
}

/* Animation minimale */
[data-reveal],
[data-split-text] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-revealed,
[data-split-text].is-revealed,
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

body[data-motion-ready="false"] [data-reveal],
body[data-motion-ready="false"] [data-split-text] {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    .ux-hero-grid,
    .ux-focus-card,
    .ux-service-group {
        grid-template-columns: 1fr;
    }

    .ux-hero-media {
        min-height: 460px;
    }

    .ux-hero-media img {
        min-height: 460px;
    }

    .ux-proof-grid,
    .ux-method-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ux-pillar-grid {
        grid-template-columns: 1fr;
    }

    .ux-pillar-card {
        min-height: auto;
    }

    .ux-pillar-number {
        margin-bottom: 30px;
    }

    .ux-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .ux-header-inner {
        min-height: 74px;
    }

    .ux-brand {
        width: 56px;
        height: 56px;
    }

    .ux-menu-toggle {
        display: block;
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 50%;
        background: var(--ux-ink);
    }

    .ux-menu-toggle span:not(.sr-only) {
        display: block;
        width: 18px;
        height: 2px;
        margin: 4px auto;
        background: #fff;
    }

    .ux-nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 18px 21px 24px;
        border-bottom: 1px solid var(--ux-line);
        background: #fff;
        box-shadow: 0 18px 35px rgba(10, 11, 14, .10);
    }

    .ux-nav.is-open {
        display: grid;
    }

    .ux-nav > a {
        padding: 14px 2px;
        border-bottom: 1px solid var(--ux-line);
        font-size: 16px;
    }

    .ux-nav > a::after {
        display: none;
    }

    .ux-nav .ux-nav-cta {
        justify-content: center;
        margin-top: 16px;
        border-bottom: 0;
        color: #fff;
    }

    .ux-section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ux-project-grid,
    .ux-service-cards {
        grid-template-columns: 1fr;
    }

    .ux-google-placeholder,
    .ux-footer-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .phase4f-page .container,
    .ux-header .container,
    .ux-footer .container {
        width: min(100% - 28px, var(--ux-max));
    }

    .ux-hero {
        padding-top: 52px;
    }

    .ux-hero-grid {
        gap: 38px;
    }

    .ux-hero-media,
    .ux-hero-media img,
    .ux-hero-fallback {
        min-height: 360px;
    }

    .ux-proof-grid,
    .ux-method-grid {
        grid-template-columns: 1fr;
    }

    .ux-proof-grid > div,
    .ux-method-grid li,
    .ux-proof-grid > div:first-child,
    .ux-method-grid li:first-child {
        border-left: 0;
        border-right: 0;
        border-bottom: 1px solid var(--ux-line);
    }

    .ux-method-grid h3 {
        margin-top: 28px;
    }

    .ux-focus-card,
    .ux-final-card {
        padding: 30px 24px;
        border-radius: 20px;
    }

    .ux-project-content p {
        min-height: auto;
    }

    .ux-page-hero-inner {
        margin-left: 0;
    }

    .ux-service-group > header {
        grid-template-columns: 1fr;
    }

    .ux-footer-cta {
        padding-block: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal],
    [data-split-text],
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
