/* ==========================================================================
   AMS FOCUS — HOME
   ========================================================================== */

.ams-hero {
    position: relative;
    min-height: calc(
        100svh - var(--wp-admin--admin-bar--height, 0px)
    );
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
}

.ams-hero__grid {
    position: relative;
    z-index: 3;
    min-height: calc(
        100svh - var(--wp-admin--admin-bar--height, 0px)
    );
    display: flex;
    align-items: center;
}

.ams-hero__content {
    width: 100%;
    max-width: 520px;
    padding: 126px 0 72px;
}

/* ==========================================================================
   PC — AXE INTERNE HERO
   ========================================================================== */

@media (min-width: 981px) {

    .ams-hero__grid > .ams-hero__content {
        margin-left:
            min(
                8.333%,
                96px
            );
    }
}

.ams-hero__eyebrow {
    margin-bottom: 16px;
    color: var(--ams-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.ams-hero__title {
    max-width: 520px;
    margin: 0;
    color: #07182d;
    font-size: clamp(40px, 3.2vw, 50px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1.8px;
}

.ams-hero__title-line {
    display: block;
}

.ams-hero__title-line--accent {
    color: var(--ams-blue);
}


@media (min-width: 981px) {

    .ams-hero__title {
        font-size: clamp(40px, 2.9vw, 46px);
    }

    .ams-hero__title-line {
        white-space: nowrap;
    }
}

.ams-hero__description {
    max-width: 500px;
    margin: 24px 0 0;
    color: #324862;
    font-size: 16px;
    line-height: 1.65;
}

.ams-hero__description strong {
    color: inherit;
    font-weight: 700;
}

.ams-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 31px;
}

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

.ams-hero__visual {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    height: 100%;
    transform: none;
    overflow: hidden;
}

.ams-hero__visual::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 32%;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255,255,255,.98) 12%,
            rgba(255,255,255,.88) 34%,
            rgba(255,255,255,.48) 62%,
            rgba(255,255,255,0) 100%
        );
}

.ams-hero__scene {
    position: absolute;
    top: 50%;
    right: 0;
    height: 100%;
    width: auto;
    aspect-ratio: 1914 / 822;
    transform: translateY(-50%);
}

.ams-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/*
 * Ecran réel du laptop dans bureau-amsfocus-.png.
 *
 * Les coordonnées sont exprimées relativement à la scène 1914x822 :
 * elles suivent donc l'image lorsque celle-ci change de taille.
 */
.ams-hero__screen {
    position: absolute;
    z-index: 3;
    top: 35.2%;
    left: 59.6%;
    width: 24.2%;
    height: 35.8%;
    overflow: hidden;
    clip-path:
        polygon(
            15% 6%,
            100% 0,
            89% 100%,
            0 92%
        );
    background:
        linear-gradient(
            145deg,
            rgba(3, 12, 23, .98),
            rgba(5, 22, 37, .98)
        );
    box-shadow:
        inset 0 0 28px rgba(0, 159, 255, .08);
}

.ams-live-code {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: #d8ebff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    /*
     * Projection du plan éditorial dans l'écran du laptop.
     *
     * Le skewX suit les montants inclinés :
     * le bas du contenu se décale vers la gauche.
     *
     * La rotation reste volontairement très faible.
     */
    transform:
        rotateZ(-0.45deg)
        skewX(-11deg)
        scaleX(.99);

    transform-origin: 15% 6%;
    will-change: transform;
    backface-visibility: hidden;
}

.ams-live-code__toolbar {
    height: 12.5%;
    display: flex;
    align-items: center;
    gap: 2%;
    padding:
        0
        5.5%
        0
        9%;
    border-bottom:
        1px solid
        rgba(76, 187, 255, .10);
    background:
        rgba(5, 18, 31, .76);
}

.ams-live-code__toolbar > span {
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        rgba(110, 203, 255, .55);
}

.ams-live-code__toolbar small {
    margin-left: 3%;
    overflow: hidden;
    color:
        rgba(176, 214, 239, .62);
    font-size:
        clamp(5px, .38vw, 8px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ams-live-code__viewport {
    position: absolute;
    top: 12.5%;
    right: 2.8%;
    bottom: 4%;
    left: 13.5%;
    overflow: hidden;
    padding:
        3.5%
        2.5%
        3%
        2%;
    background:
        linear-gradient(
            90deg,
            rgba(3, 14, 25, .28) 0,
            rgba(3, 14, 25, .28) 12.5%,
            rgba(3, 14, 25, 0) 12.6%
        );
}

.ams-live-code__lines {
    display: flex;
    flex-direction: column;
    gap: clamp(1px, .11vw, 3px);
    width: 100%;
    padding-top: 0;
}

.ams-code-line {
    min-height: 1.05em;
    display: flex;
    align-items: baseline;
    gap: .42em;
    opacity: 0;
    color: #bed2e4;
    font-size:
        clamp(
            6px,
            .50vw,
            9.5px
        );
    line-height: 1.18;
    white-space: pre;
    transform: translateY(2px);
    transition:
        opacity .20s ease,
        transform .20s ease;
}

.ams-code-line.is-visible {
    opacity: .94;
    transform: translateY(0);
}

.ams-code-line__number {
    width: 2.2em;
    flex: 0 0 2.2em;
    padding-right: .25em;
    color:
        rgba(101, 142, 171, .48);
    text-align: right;
    user-select: none;
}

.ams-code-token--keyword {
    color: #72b7ff;
}

.ams-code-token--function {
    color: #52e0ff;
}

.ams-code-token--string {
    color: #8de7b3;
}

.ams-code-token--property {
    color: #c9a5ff;
}

.ams-code-token--comment {
    color:
        rgba(141, 174, 198, .58);
}

.ams-code-token--plain {
    color: #d9e9f5;
}

.ams-live-code__cursor {
    position: relative;
    display: inline-block;
    width: 2px;
    height: 1.05em;
    flex: 0 0 2px;
    margin-left: .25em;
    vertical-align: -.14em;
    border-radius: 1px;
    background: #45d9ff;
    box-shadow:
        0 0 7px
        rgba(69, 217, 255, .62);
    animation:
        ams-code-cursor
        .9s
        steps(1, end)
        infinite;
}

@keyframes ams-code-cursor {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: .1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ams-live-code__cursor {
        animation: none;
        opacity: .8;
    }

    .ams-code-line {
        transition: none;
    }
}

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

.ams-services {
    position: relative;
    padding:
        clamp(84px, 7vw, 124px)
        0
        clamp(92px, 7.5vw, 136px);
    background: #ffffff;
}

/* ==========================================================================
   PC — AXE INTERNE SERVICES
   ========================================================================== */

@media (min-width: 981px) {

    /*
     * Même axe horizontal que le Header et le Hero.
     * Le shell conserve sa largeur extérieure.
     * Le padding réduit uniquement sa largeur utile intérieure.
     */
    .ams-services > .ams-shell {
        box-sizing: border-box;
        padding-left:
            min(
                8.333%,
                96px
            );
    }
}

.ams-services__intro {
    max-width: 820px;
}

.ams-services__eyebrow,
.ams-method__eyebrow {
    display: inline-flex;
    color: var(--ams-blue);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.ams-services__intro h2 {
    max-width: 760px;
    margin:
        16px
        0
        0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size:
        clamp(
            38px,
            3.4vw,
            58px
        );
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2px;
}

.ams-services__intro p {
    max-width: 670px;
    margin:
        24px
        0
        0;
    color: #607087;
    font-size:
        clamp(
            15px,
            1.05vw,
            18px
        );
    line-height: 1.7;
}

.ams-services__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top:
        clamp(
            44px,
            4vw,
            66px
        );
}

.ams-expertise-card {
    min-width: 0;
    min-height: 190px;
    padding:
        clamp(
            24px,
            2vw,
            32px
        );
    border:
        1px solid
        #e3e9f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow:
        0 10px 30px
        rgba(7, 24, 45, .04);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.ams-expertise-card:hover {
    transform: translateY(-3px);
    border-color:
        rgba(8, 120, 255, .28);
    box-shadow:
        0 18px 42px
        rgba(7, 24, 45, .08);
}

.ams-expertise-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #eef7ff,
            #e1f0ff
        );
    color: var(--ams-blue);
}

.ams-expertise-card__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ams-expertise-card h3 {
    margin:
        24px
        0
        0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.25px;
}

.ams-expertise-card p {
    margin:
        10px
        0
        0;
    color: #66778d;
    font-size: 13px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   METHODE
   -------------------------------------------------------------------------- */

.ams-method {
    display: grid;
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(390px, .98fr);
    align-items: center;
    gap:
        clamp(
            52px,
            6vw,
            96px
        );
    margin-top:
        clamp(
            96px,
            9vw,
            154px
        );
}

.ams-method__visual {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
}

.ams-method__image {
    width: 100%;
    height: auto;
    display: block;
}

.ams-method__content {
    min-width: 0;
}

.ams-method__content h2 {
    max-width: 540px;
    margin:
        15px
        0
        0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size:
        clamp(
            34px,
            3vw,
            50px
        );
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -1.6px;
}

.ams-method__description {
    max-width: 560px;
    margin:
        20px
        0
        0;
    color: #66778d;
    font-size: 15px;
    line-height: 1.7;
}

.ams-method__steps {
    display: grid;
    gap: 0;
    margin:
        34px
        0
        0;
    padding: 0;
    list-style: none;
}

.ams-method-step {
    display: grid;
    grid-template-columns:
        50px
        minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-top:
        1px solid
        #e5eaf0;
}

.ams-method-step:last-child {
    border-bottom:
        1px solid
        #e5eaf0;
}

.ams-method-step__content h3 {
    margin: 1px 0 0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.ams-method-step__content p {
    margin:
        6px
        0
        0;
    color: #6c7c90;
    font-size: 13px;
    line-height: 1.55;
}

/* ==========================================================================
   REALISATIONS
   ========================================================================== */

.ams-realizations {
    position: relative;
    padding:
        0
        0
        clamp(90px, 7vw, 128px);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

/* ==========================================================================
   PC — AXE INTERNE REALISATIONS
   ========================================================================== */

@media (min-width: 981px) {
    .ams-realizations > .ams-shell {
        box-sizing: border-box;
        padding-left:
            min(
                8.333%,
                96px
            );
    }
}

/* --------------------------------------------------------------------------
   NOTRE FAÇON DE TRAVAILLER
   -------------------------------------------------------------------------- */

.ams-realizations-approach {
    --ams-approach-gap: 28px;

    margin-bottom:
        clamp(
            84px,
            7vw,
            118px
        );
    background: #ffffff;
}

.ams-realizations-approach__intro {
    max-width: 760px;
}

.ams-realizations-approach__eyebrow {
    display: inline-flex;
    color: var(--ams-blue);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.ams-realizations-approach__intro h2 {
    max-width: 760px;
    margin: 16px 0 0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size:
        clamp(
            40px,
            3.8vw,
            62px
        );
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2px;
}

.ams-realizations-approach__intro p {
    max-width: 660px;
    margin: 22px 0 0;
    color: #607087;
    font-size:
        clamp(
            15px,
            1vw,
            17px
        );
    line-height: 1.7;
}

.ams-approach-steps {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: var(--ams-approach-gap);
    margin:
        clamp(
            48px,
            5vw,
            72px
        )
        0
        0;
    padding: 0;
    list-style: none;
}

.ams-approach-step {
    position: relative;
    min-width: 0;
}

.ams-approach-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 27px;
    left: 56px;
    right:
        calc(
            -1 * var(--ams-approach-gap)
        );
    height: 1px;
    background: #dce5ee;
}

.ams-approach-step__number {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border:
        1.5px solid
        var(--ams-blue);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ams-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.ams-approach-step__content h3 {
    margin: 22px 0 0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.ams-approach-step__content p {
    max-width: 230px;
    margin: 9px 0 0;
    color: #6c7c90;
    font-size: 13px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   TITRE PORTFOLIO
   -------------------------------------------------------------------------- */

.ams-realizations__projects {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   KREABOARD — SAAS PRINCIPAL
   -------------------------------------------------------------------------- */

.ams-featured-work {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(360px, .65fr);
    align-items: center;
    gap:
        clamp(
            42px,
            5vw,
            82px
        );
}

.ams-featured-work__visual {
    min-width: 0;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
}

.ams-featured-work__content {
    max-width: 520px;
}

.ams-work-type {
    display: inline-flex;
    color: var(--ams-blue);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.ams-featured-work__content h3 {
    margin: 12px 0 0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size:
        clamp(
            36px,
            3.3vw,
            58px
        );
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.8px;
}

.ams-featured-work__description {
    margin:
        clamp(
            20px,
            2vw,
            28px
        )
        0
        0;
    color: #5d6f85;
    font-size:
        clamp(
            15px,
            1vw,
            18px
        );
    line-height: 1.7;
}

.ams-work-domain {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top:
        clamp(
            24px,
            2.2vw,
            34px
        );
    color: #07182d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.ams-work-domain span:last-child {
    color: var(--ams-blue);
    font-size: 17px;
}

/* --------------------------------------------------------------------------
   IMAGES REELLES — REALISATIONS
   -------------------------------------------------------------------------- */

.ams-work-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   3 SITES WEB
   -------------------------------------------------------------------------- */

.ams-web-projects {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap:
        clamp(
            22px,
            2.3vw,
            36px
        );
    margin-top:
        clamp(
            48px,
            5vw,
            76px
        );
}

.ams-web-project {
    min-width: 0;
}

.ams-web-project__visual {
    display: block;
    overflow: hidden;
    border-radius: 11px;
    text-decoration: none;
}

.ams-web-project__meta {
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        32px;
    align-items: end;
    gap: 14px;
    padding-top: 16px;
}

.ams-web-project__meta h3 {
    margin: 8px 0 0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size:
        clamp(
            17px,
            1.35vw,
            22px
        );
    font-weight: 800;
    line-height: 1.2;
}

.ams-web-project__meta p {
    margin: 5px 0 0;
    color: #77869a;
    font-size: 12px;
    line-height: 1.4;
}

.ams-web-project__arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--ams-blue);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

/* ==========================================================================
   A PROPOS — FINAL
   ========================================================================== */

.ams-about {
    position: relative;
    padding:
        clamp(88px, 7vw, 126px)
        0
        clamp(96px, 8vw, 138px);
    background: #f8fbff;
}

@media (min-width: 981px) {
    .ams-about > .ams-shell {
        box-sizing: border-box;
        padding-left:
            min(
                8.333%,
                96px
            );
    }
}

.ams-about__grid {
    display: grid;
    grid-template-columns:
        minmax(0, .92fr)
        minmax(500px, 1.08fr);
    align-items: center;
    gap:
        clamp(
            54px,
            6vw,
            104px
        );
}

.ams-about__content {
    min-width: 0;
}

.ams-about__eyebrow {
    display: inline-block;
    color: var(--ams-blue);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.ams-about__content h2 {
    max-width: 640px;
    margin:
        24px
        0
        0;
    color: #07182d;
    font-family: var(--ams-font-heading);
    font-size:
        clamp(
            42px,
            3.5vw,
            62px
        );
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -2px;
}

.ams-about__content h2 strong {
    color: var(--ams-blue);
    font-weight: inherit;
}

.ams-about__description {
    max-width: 610px;
    margin: 20px 0 0;
    color: #647489;
    font-size:
        clamp(
            15px,
            1vw,
            17px
        );
    line-height: 1.65;
}

.ams-about__items {
    margin-top:
        clamp(
            30px,
            3vw,
            44px
        );
}

.ams-about-item {
    display: grid;
    grid-template-columns:
        58px
        minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 19px 0;
    border-bottom:
        1px solid
        #dce5ef;
}

.ams-about-item:first-child {
    border-top:
        1px solid
        #dce5ef;
}

.ams-about-item__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef6ff;
    color: var(--ams-blue);
}

.ams-about-item__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ams-about-item__content h3 {
    margin: 0;
    color: #07182d;
    font-size:
        clamp(
            17px,
            1.2vw,
            21px
        );
    font-weight: 800;
    line-height: 1.2;
}

.ams-about-item__content p {
    margin: 6px 0 0;
    color: #728197;
    font-size: 13px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   IMAGE REELLE — A PROPOS
   -------------------------------------------------------------------------- */

.ams-about-visual {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow:
        0
        28px
        70px
        rgba(7, 24, 45, .14);
}

.ams-about-visual__image {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   CONTACT — DEMO VISUELLE
   ========================================================================== */

.ams-contact {
    position: relative;
    overflow: hidden;
    padding:
        clamp(92px, 7vw, 128px)
        0
        clamp(96px, 7vw, 132px);
    background:
        radial-gradient(
            circle at 8% 100%,
            rgba(15, 85, 245, .24),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #061526 0%,
            #071b31 56%,
            #08284c 100%
        );
    color: #ffffff;
    scroll-margin-top: 100px;
}

.ams-contact::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -180px;
    width: 520px;
    height: 520px;
    border:
        1px solid
        rgba(73, 146, 255, .12);
    border-radius: 50%;
}

@media (min-width: 981px) {

    .ams-contact > .ams-shell {
        box-sizing: border-box;
        padding-left:
            min(
                8.333%,
                96px
            );
    }
}

.ams-contact__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, .82fr)
        minmax(520px, 1.18fr);
    align-items: center;
    gap:
        clamp(
            64px,
            7vw,
            120px
        );
}

.ams-contact__content {
    min-width: 0;
}

.ams-contact__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #6ca8ff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.ams-contact__eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: #2a80ff;
}

.ams-contact__content h2 {
    max-width: 610px;
    margin: 26px 0 0;
    color: #ffffff;
    font-family: var(--ams-font-heading);
    font-size:
        clamp(
            44px,
            4vw,
            68px
        );
    font-weight: 800;
    line-height: 1.01;
    letter-spacing: -2.5px;
}

.ams-contact__content h2 span,
.ams-contact__content h2 strong {
    display: block;
}

.ams-contact__content h2 strong {
    color: #4d94ff;
    font-weight: inherit;
}

.ams-contact__description {
    max-width: 540px;
    margin: 24px 0 0;
    color: #aab8c9;
    font-size:
        clamp(
            15px,
            1vw,
            17px
        );
    line-height: 1.7;
}

.ams-contact-card {
    min-width: 0;
    padding:
        clamp(
            30px,
            3vw,
            46px
        );
    border:
        1px solid
        rgba(255,255,255,.13);
    border-radius: 18px;
    background:
        rgba(
            255,
            255,
            255,
            .97
        );
    box-shadow:
        0
        34px
        80px
        rgba(0,0,0,.24);
}

.ams-contact-card__row {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.ams-contact-field {
    display: block;
    margin-bottom: 20px;
}

.ams-contact-field > span {
    display: block;
    margin-bottom: 8px;
    color: #21334a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
}

.ams-contact-field input,
.ams-contact-field textarea {
    box-sizing: border-box;
    width: 100%;
    border:
        1px solid
        #dbe4ee;
    border-radius: 9px;
    outline: none;
    background: #f8fbff;
    color: #07182d;
    font: inherit;
    font-size: 14px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.ams-contact-field input {
    min-height: 50px;
    padding: 0 15px;
}

.ams-contact-field textarea {
    min-height: 154px;
    padding: 14px 15px;
    resize: vertical;
}

.ams-contact-field input::placeholder,
.ams-contact-field textarea::placeholder {
    color: #94a1b2;
}

.ams-contact-field input:focus,
.ams-contact-field textarea:focus {
    border-color: #4a91ff;
    background: #ffffff;
    box-shadow:
        0
        0
        0
        3px
        rgba(15,85,245,.09);
}

.ams-contact-card__submit {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 4px;
    padding: 0 25px;
    border: 0;
    border-radius: 9px;
    background: var(--ams-blue);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: default;
}

.ams-contact-card__submit span:last-child {
    font-size: 21px;
    font-weight: 400;
}


/* AMS METHOD — COMMITMENTS */
.ams-method-step--commitment {
    display: block;
}

.ams-method__paragraphs .ams-method__description + .ams-method__description {
    margin-top: 12px;
}

/* ==========================================================================
   HOME AUTOMATION — PRODUCT SPOTLIGHT
   ========================================================================== */

/* ==========================================================================
   HOME AUTOMATION — AXE HEADER
   ========================================================================== */

@media (min-width: 981px) {

    .ams-home-automation__grid {
        box-sizing: border-box;

        padding-left:
            min(
                8.333%,
                96px
            );
    }
}



.ams-home-automation {
    padding: 88px 0 94px;

    background:
        radial-gradient(
            circle at 82% 24%,
            rgba(8, 120, 255, .10),
            transparent 33%
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 100%
        );
}

.ams-home-automation__grid {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(540px, 1.1fr);

    gap: clamp(48px, 5vw, 84px);

    align-items: center;
}

.ams-home-automation__content {
    max-width: 650px;
}

.ams-home-automation__eyebrow {
    display: flex;
    align-items: center;

    gap: 11px;

    color: #0878ff;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: .17em;
    text-transform: uppercase;
}

.ams-home-automation__eyebrow::before {
    content: "";

    width: 23px;
    height: 2px;

    flex: 0 0 23px;

    background: currentColor;
}

.ams-home-automation__content > h2 {
    margin: 15px 0 0;

    color: #07182d;

    font-size: clamp(43px, 3.8vw, 59px);
    font-weight: 800;

    line-height: 1;

    letter-spacing: -.055em;
}

.ams-home-automation__paragraphs {
    max-width: 620px;

    display: grid;

    gap: 13px;

    margin-top: 22px;
}

.ams-home-automation__description {
    margin: 0;

    color: #64778f;

    font-size: 15px;
    line-height: 1.68;
}

/* AMS FOCUS — BANDE LANCEMENT HOME */

.ams-home-automation__launch {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0 20px;
    padding: 10px 12px;
    border: 1px solid #dce7f6;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(30, 74, 130, .05);
}

.ams-home-automation__launch-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ams-home-automation__launch-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #eaf3ff;
    color: #0875f5;
}

.ams-home-automation__launch-icon svg {
    width: 19px;
    height: 19px;
}

.ams-home-automation__launch-title {
    margin: 0;
    color: #0a1b35;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.ams-home-automation__launch-subtitle {
    margin: 3px 0 0;
    color: #667d9d;
    font-size: 10px;
    line-height: 1.4;
}

.ams-home-automation__launch-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(34px, 1fr));
    gap: 6px;
    flex: 0 0 auto;
    text-align: center;
}

.ams-home-automation__launch-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 34px;
}

.ams-home-automation__launch-unit strong {
    color: #0875f5;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.ams-home-automation__launch-unit span {
    color: #7587a1;
    font-size: 10px;
    line-height: 1.3;
}

@media (max-width: 720px) {
    .ams-home-automation__launch {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 22px;
    }

    .ams-home-automation__launch-countdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .ams-home-automation__launch-unit {
        min-width: 0;
    }
}

.ams-home-automation__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 16px;
}

.ams-home-automation__benefit {
    display: block;



}

.ams-home-automation__benefit-icon {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #0878ff;

    background:
        rgba(8, 120, 255, .08);
    margin-bottom: 5px;
}

.ams-home-automation__benefit-icon svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.ams-home-automation__benefit h3 {
    margin: 0;

    color: #0a1b35;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    min-height: 2.6em;
}

.ams-home-automation__benefit p {
    margin: 3px 0 0;

    color: #718197;

    font-size: 10px;
    line-height: 1.4;
}

.ams-home-automation__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 31px;
}

.ams-home-automation__cta {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    padding: 0 23px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.ams-home-automation__cta:hover {
    transform: translateY(-2px);
}

.ams-home-automation__cta--primary,
.ams-home-automation__cta--primary span {
    color: #ffffff;
}

.ams-home-automation__cta--primary {

    background:
        linear-gradient(
            115deg,
            #0868ed,
            #1595ff
        );

    box-shadow:
        0 14px 30px
        rgba(8, 120, 255, .18);
}


/* --------------------------------------------------------------------------
   PREVIEW SAAS
   -------------------------------------------------------------------------- */

.ams-home-automation-preview {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(14, 67, 130, .09);

    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 28px 70px
        rgba(16, 66, 124, .12);
}

.ams-home-automation-preview__top {
    display: grid;

    grid-template-columns:
        145px
        1fr;

    gap: 18px;

    align-items: center;

    padding: 15px 17px;

    border-bottom:
        1px solid
        #edf2f8;
}

.ams-home-automation-preview__brand {
    color: #07182d;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: -.04em;
}

.ams-home-automation-preview__brand span {
    color: #0878ff;
}

.ams-home-automation-preview__brand small {
    display: block;

    margin-top: 2px;

    color: #8292a7;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: .15em;
}

.ams-home-automation-preview__search {
    padding: 10px 13px;

    border:
        1px solid
        #e2eaf4;

    border-radius: 8px;

    color: #9aabbc;

    background: #f8fbff;

    font-size: 9px;
}

.ams-home-automation-preview__workspace {
    display: grid;

    grid-template-columns:
        145px
        1fr;

    min-height: 370px;
}

.ams-home-automation-preview__nav {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 18px 11px;

    border-right:
        1px solid
        #edf2f8;

    background: #fbfdff;
}

.ams-home-automation-preview__nav span,
.ams-home-automation-preview__nav strong {
    padding: 9px 10px;

    border-radius: 7px;

    color: #708198;

    font-size: 8px;
    font-weight: 650;
}

.ams-home-automation-preview__nav strong {
    color: #0878ff;

    background:
        rgba(8, 120, 255, .08);

    font-weight: 800;
}

.ams-home-automation-preview__main {
    padding: 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfdff
        );
}

.ams-home-automation-preview__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
}

.ams-home-automation-preview__heading h3 {
    margin: 0;

    color: #07182d;

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -.025em;
}

.ams-home-automation-preview__heading p {
    margin: 5px 0 0;

    color: #8292a7;

    font-size: 8px;
    line-height: 1.45;
}

.ams-home-automation-preview__heading > span {
    padding: 6px 9px;

    border-radius: 999px;

    color: #168548;

    background:
        rgba(34, 169, 90, .10);

    font-size: 7px;
    font-weight: 850;

    text-transform: uppercase;
}

.ams-home-automation-preview__cards {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 18px;
}

.ams-home-automation-preview__card {
    min-width: 0;

    padding: 14px;

    border:
        1px solid
        #e7eef6;

    border-radius: 10px;

    background: #ffffff;
}

.ams-home-automation-preview__icon {
    width: 32px;
    height: 32px;
}

.ams-home-automation-preview__icon svg {
    width: 30px;
    height: 30px;

    display: block;
}

.ams-home-automation-preview__card h4 {
    margin: 10px 0 0;

    color: #0a1b35;

    font-size: 10px;
    font-weight: 800;
}

.ams-home-automation-preview__card p {
    min-height: 32px;

    margin: 5px 0 0;

    color: #718197;

    font-size: 8px;
    line-height: 1.45;
}

.ams-home-automation-preview__card > span {
    display: inline-block;

    margin-top: 10px;

    padding: 5px 7px;

    border-radius: 6px;

    color: #0878ff;

    background:
        rgba(8, 120, 255, .07);

    font-size: 7px;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {

    .ams-home-automation__grid {
        grid-template-columns:
            minmax(0, .9fr)
            minmax(460px, 1.1fr);

        gap: 38px;
    }

    .ams-home-automation-preview__top,
    .ams-home-automation-preview__workspace {
        grid-template-columns:
            120px
            1fr;
    }
}

@media (max-width: 900px) {

    .ams-home-automation {
        padding: 70px 0 76px;
    }

    .ams-home-automation__grid {
        grid-template-columns: 1fr;

        gap: 46px;
    }

    .ams-home-automation__content {
        max-width: 700px;
    }

    .ams-home-automation-preview {
        max-width: 760px;
    }
}

@media (max-width: 620px) {

    .ams-home-automation {
        padding: 55px 0 62px;
    }

    .ams-home-automation__content > h2 {
        font-size: 38px;
    }

    .ams-home-automation__description {
        font-size: 14px;
    }

    .ams-home-automation__actions {
        flex-direction: column;
    }

    .ams-home-automation__cta {
        width: 100%;
    }

    .ams-home-automation-preview__top {
        grid-template-columns: 1fr;
    }

    .ams-home-automation-preview__search,
    .ams-home-automation-preview__nav {
        display: none;
    }

    .ams-home-automation-preview__workspace {
        grid-template-columns: 1fr;

        min-height: 0;
    }

    .ams-home-automation-preview__main {
        padding: 16px 14px;
    }

    .ams-home-automation-preview__cards {
        grid-template-columns: 1fr;
    }

    .ams-home-automation-preview__card p {
        min-height: 0;
    }
}


/* AMS FOCUS — HERO PRIMARY WHITE
   ========================================================================== */

/*
 * Le CTA primaire du Hero doit conserver son texte blanc,
 * y compris après visite du lien ou dans les états interactifs.
 */

.ams-hero__actions .ams-button--primary,
.ams-hero__actions .ams-button--primary:link,
.ams-hero__actions .ams-button--primary:visited,
.ams-hero__actions .ams-button--primary:hover,
.ams-hero__actions .ams-button--primary:focus,
.ams-hero__actions .ams-button--primary:focus-visible,
.ams-hero__actions .ams-button--primary:active,
.ams-hero__actions .ams-button--primary span {
    color: #ffffff !important;
}


/* AMS FOCUS — HOME SECTION ANCHOR
   ========================================================================== */

.ams-services {
    scroll-margin-top: 108px;
}


/* AMS FOCUS — BENEFITS COMPACT R2 */
@media (max-width: 640px) {
    .ams-home-automation__benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ams-home-automation__benefit {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: start;
        gap: 8px;
    }

    .ams-home-automation__benefit-icon {
        margin-bottom: 0;
    }

    .ams-home-automation__benefit h3 {
        min-height: 0;
    }
}

/* Home Services : séparation des paragraphes */
.ams-services__intro p + p {
    margin-top: 14px;
}
.ams-expertise-card p + p {
    margin-top: 12px;
}

/* AMS Focus — CTA des cartes Services de l'accueil */
.ams-services .ams-expertise-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #0875ef;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.ams-services a.ams-expertise-card__cta:hover {
    text-decoration: underline;
}

.ams-services a.ams-expertise-card__cta:focus-visible {
    outline: 2px solid #0875ef;
    outline-offset: 3px;
}

.ams-services .ams-expertise-card__cta--inactive {
    opacity: 0.65;
    cursor: default;
}
