/*
 * AMS Focus — Studio Vibe Coding.
 * Périmètre exclusif : Hero de la page 3516.
 */

body.page-id-3516 .ams-service-hero__visual {
    min-width: 0;
    overflow: visible;
}

body.page-id-3516 .ams-vibe-studio {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 18px;
    background: #081a30;
    border: 1px solid #24466c;
    color: #eef6ff;
    box-shadow: 0 24px 60px rgba(5,34,74,.23);
    font-family: inherit;
}

body.page-id-3516 .ams-vibe-studio * {
    box-sizing: border-box;
}

body.page-id-3516 .ams-vibe-studio__bar,
body.page-id-3516 .ams-vibe-studio__project {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
}

body.page-id-3516 .ams-vibe-studio__bar {
    background: #112c4a;
    border-bottom: 1px solid #2a4664;
    font-size: 11px;
}

body.page-id-3516 .ams-vibe-studio__bar strong {
    flex: 1;
}

body.page-id-3516 .ams-vibe-studio__bar strong span {
    color: #78baff;
}

body.page-id-3516 .ams-vibe-studio__bar small {
    color: #a7c4df;
    font-size: 9px;
}

body.page-id-3516 .ams-vibe-studio__dots {
    display: flex;
    gap: 5px;
}

body.page-id-3516 .ams-vibe-studio__dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff7580;
}

body.page-id-3516 .ams-vibe-studio__dots i:nth-child(2) {
    background: #ffc66e;
}

body.page-id-3516 .ams-vibe-studio__dots i:nth-child(3) {
    background: #50d0ad;
}

body.page-id-3516 .ams-vibe-studio__project {
    background: #0b243e;
    border-bottom: 1px solid #274562;
}

body.page-id-3516 .ams-vibe-studio__project-icon {
    padding: 7px;
    background: #164876;
    border-radius: 7px;
    color: #8ec8ff;
}

body.page-id-3516 .ams-vibe-studio__project > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

body.page-id-3516 .ams-vibe-studio__project strong {
    display: block;
    font-size: 11px;
}

body.page-id-3516 .ams-vibe-studio__project small {
    display: block;
    margin-top: 3px;
    color: #90b2d1;
    font-size: 9px;
}

body.page-id-3516 .ams-vibe-studio__project em {
    font-style: normal;
    font-size: 9px;
    color: #99c6ef;
    white-space: nowrap;
}

body.page-id-3516 .ams-vibe-studio__workspace {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    min-height: 325px;
}

body.page-id-3516 .ams-vibe-studio__development {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #294967;
    min-width: 0;
}

body.page-id-3516 .ams-vibe-studio__ai,
body.page-id-3516 .ams-vibe-studio__terminal,
body.page-id-3516 .ams-vibe-studio__preview {
    min-width: 0;
    transition: opacity .45s ease, background .45s ease;
}

body.page-id-3516 .ams-vibe-studio__ai {
    padding: 11px;
}

body.page-id-3516 .ams-vibe-studio__terminal {
    padding: 11px;
    flex: 1;
    background: #09182b;
    border-top: 1px solid #294967;
}

body.page-id-3516 .ams-vibe-studio__preview {
    padding: 11px;
    background: #112b47;
}

body.page-id-3516 .ams-vibe-studio header {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
    color: #9dbedb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
}

body.page-id-3516 .ams-vibe-studio header span {
    color: #75bbff;
    letter-spacing: 0;
}

body.page-id-3516 .ams-vibe-studio__message {
    background: #173456;
    border: 1px solid #30567b;
    border-radius: 8px;
    padding: 12px;
    min-height: 138px;
}

body.page-id-3516 .ams-vibe-studio__message strong {
    font-size: 10px;
    color: #7bbaff;
}

body.page-id-3516 .ams-vibe-studio__message p {
    margin: 10px 0;
    font-size: 11px;
    line-height: 1.6;
    color: #f2f8ff;
}

body.page-id-3516 .ams-vibe-studio__message small {
    display: block;
    border-top: 1px solid #345777;
    padding-top: 8px;
    color: #a5c3dc;
    font-size: 9px;
    line-height: 1.5;
}

body.page-id-3516 .ams-vibe-studio__terminal code {
    display: grid;
    gap: 9px;
    font: 10px/1.5 ui-monospace,Consolas,monospace;
    color: #d8e9ff;
}

body.page-id-3516 .ams-vibe-studio__terminal code span {
    transition: opacity .5s ease;
}

body.page-id-3516 .ams-vibe-studio__ok {
    color: #60dfb1;
}

body.page-id-3516 .ams-vibe-studio__browser {
    background: #f6faff;
    border-radius: 9px;
    overflow: hidden;
    min-height: 270px;
}

body.page-id-3516 .ams-vibe-studio__address {
    padding: 8px;
    color: #83a0bd;
    background: #fff;
    font-size: 8px;
}

body.page-id-3516 .ams-vibe-studio__page {
    padding: 13px 12px;
    color: #244464;
}

body.page-id-3516 .ams-vibe-studio__brand {
    font-size: 10px;
    color: #1760af;
}

body.page-id-3516 .ams-vibe-studio__module {
    margin-top: 12px;
    background: #fff;
    border: 1px solid #cfe0f3;
    padding: 11px;
    border-radius: 8px;
    transition: opacity .5s ease, transform .5s ease;
}

body.page-id-3516 .ams-vibe-studio__module > small {
    display: block;
    color: #1774da;
    font-size: 8px;
    font-weight: 800;
}

body.page-id-3516 .ams-vibe-studio__module > strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #18385c;
}

body.page-id-3516 .ams-vibe-studio__module p {
    margin: 5px 0 10px;
    color: #8095ad;
    font-size: 9px;
    line-height: 1.4;
}

body.page-id-3516 .ams-vibe-studio__fake-form {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 8px;
}

body.page-id-3516 .ams-vibe-studio__fake-form span {
    flex: 1;
    min-width: 0;
    padding: 7px;
    background: #f7fbff;
    border: 1px solid #d8e6f7;
    border-radius: 4px;
}

body.page-id-3516 .ams-vibe-studio__fake-form b {
    background: #137cec;
    color: #fff;
    border-radius: 4px;
    padding: 7px;
    white-space: nowrap;
}

body.page-id-3516 .ams-vibe-studio__request {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    gap: 4px;
    font-size: 8px;
}

body.page-id-3516 .ams-vibe-studio__request span {
    color: #137caa;
    background: #ebf5ff;
    padding: 2px 5px;
    border-radius: 9px;
    white-space: nowrap;
}

body.page-id-3516 .ams-vibe-studio__request:last-child span {
    background: #ddf8e9;
    color: #077c54;
}

body.page-id-3516 .ams-vibe-studio__result {
    margin-top: 10px;
    font-size: 9px;
    color: #13976e;
}

body.page-id-3516 .ams-vibe-studio__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #102b49;
    border-top: 1px solid #2b4a69;
    padding: 12px;
    font-size: 10px;
}

body.page-id-3516 .ams-vibe-studio__footer strong {
    white-space: nowrap;
}

body.page-id-3516 .ams-vibe-studio__footer small {
    color: #92b7d8;
    font-size: 9px;
}

body.page-id-3516 .ams-vibe-studio__progress {
    display: flex;
    flex: 1;
    gap: 5px;
}

body.page-id-3516 .ams-vibe-studio__progress i {
    height: 5px;
    flex: 1;
    background: #234c73;
    border-radius: 9px;
    transition: background .4s;
}

body.page-id-3516 .ams-vibe-studio[data-phase="ai"] .ams-vibe-studio__terminal,
body.page-id-3516 .ams-vibe-studio[data-phase="ai"] .ams-vibe-studio__preview,
body.page-id-3516 .ams-vibe-studio[data-phase="terminal"] .ams-vibe-studio__ai {
    opacity: .53;
}

body.page-id-3516 .ams-vibe-studio[data-phase="terminal"] .ams-vibe-studio__preview {
    opacity: .66;
}

body.page-id-3516 .ams-vibe-studio[data-phase="ai"] .ams-vibe-studio__module {
    opacity: .45;
    transform: translateY(5px);
}

body.page-id-3516 .ams-vibe-studio[data-phase="terminal"] .ams-vibe-studio__module {
    opacity: .7;
}

body.page-id-3516 .ams-vibe-studio[data-phase="ai"] .ams-vibe-studio__terminal code span {
    opacity: .2;
}

body.page-id-3516 .ams-vibe-studio[data-phase="terminal"] .ams-vibe-studio__ok {
    opacity: .4;
}

body.page-id-3516 .ams-vibe-studio[data-phase="ai"] .ams-vibe-studio__progress i:first-child,
body.page-id-3516 .ams-vibe-studio[data-phase="terminal"] .ams-vibe-studio__progress i:nth-child(2),
body.page-id-3516 .ams-vibe-studio[data-phase="result"] .ams-vibe-studio__progress i:last-child {
    background: #4ba7ff;
}

@media (max-width: 600px) {
    body.page-id-3516 .ams-vibe-studio__workspace {
        grid-template-columns: 1fr;
    }

    body.page-id-3516 .ams-vibe-studio__development {
        border-right: 0;
    }

    body.page-id-3516 .ams-vibe-studio__terminal {
        min-height: 90px;
    }

    body.page-id-3516 .ams-vibe-studio__bar small,
    body.page-id-3516 .ams-vibe-studio__footer small {
        display: none;
    }

    body.page-id-3516 .ams-vibe-studio__browser {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-id-3516 .ams-vibe-studio * {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   AMS FOCUS — VIBE STUDIO R2 — ANIMATION DE CONSTRUCTION
   Uniquement page 3516. Aucun effet sur les autres services.
   ========================================================================== */

/* 1 — Curseur de saisie IA / terminal */
body.page-id-3516
.ams-vibe-studio[data-motion="typing"]
.ams-vibe-studio__typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: -2px;
    background: #72b9ff;
    animation: ams-vibe-studio-cursor .75s step-end infinite;
}

@keyframes ams-vibe-studio-cursor {
    50% { opacity: 0; }
}

/* 2 — Apparition progressive des éléments */
body.page-id-3516 .ams-vibe-studio__request,
body.page-id-3516 .ams-vibe-studio__result {
    transition: opacity .4s ease, transform .4s ease;
}

body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-phase="ai"]
.ams-vibe-studio__module,
body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-phase="terminal"]
.ams-vibe-studio__module,
body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-phase="result"][data-build="0"]
.ams-vibe-studio__module {
    opacity: .12;
    transform: translateY(9px);
}

/* 3 — Demandes masquées tant que le module se construit */
body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-phase="ai"]
.ams-vibe-studio__request,
body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-phase="terminal"]
.ams-vibe-studio__request,
body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-build="0"]
.ams-vibe-studio__request,
body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-build="1"]
.ams-vibe-studio__request {
    opacity: 0;
    transform: translateY(6px);
}

body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-phase="result"][data-build="2"]
.ams-vibe-studio__request:last-child {
    opacity: 0;
    transform: translateY(6px);
}

/* 4 — Validation visible uniquement en fin de construction */
body.page-id-3516
.ams-vibe-studio[data-motion="typing"]:not([data-phase="result"])
.ams-vibe-studio__result,
body.page-id-3516
.ams-vibe-studio[data-motion="typing"][data-phase="result"]:not([data-build="3"])
.ams-vibe-studio__result {
    opacity: 0;
    transform: translateY(5px);
}

/* 5 — Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    body.page-id-3516 .ams-vibe-studio__typing::after {
        animation: none !important;
        display: none;
    }

    body.page-id-3516 .ams-vibe-studio__request,
    body.page-id-3516 .ams-vibe-studio__result {
        transition: none !important;
    }
}

/* AMS-VIBE-STUDIO-TYPING-R2 END */
