/* =========================================================
   APOLLO V3 - CMS / DEVELOPPEMENT
   ========================================================= */

.apollo-development {
    position: relative;

    min-height: 220vh;

    background:
        radial-gradient(
            circle at 62% 48%,
            rgba(112,69,221,.055),
            transparent 34%
        ),
        var(--apollo-bg);
}


.apollo-development .apollo-scene-pin {
    position: sticky;

    top: 0;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;
}


.apollo-development-inner {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(350px,.72fr)
        minmax(720px,1.28fr);

    gap: clamp(55px,6vw,110px);

    align-items: center;
}


/* =========================================================
   COPY
   ========================================================= */

.apollo-development-copy {
    position: relative;

    z-index: 5;
}


.apollo-development-copy h2 {
    max-width: 720px;

    margin: 0;

    color: #fff;

    font-size: clamp(58px,4.7vw,92px);
    font-weight: 600;

    line-height: .94;
    letter-spacing: -.045em;
}


.apollo-development-copy h2 span {
    color: #00E5FF;
}


.apollo-development-copy > p {
    max-width: 650px;

    margin: 30px 0 0;

    color: var(--apollo-muted);

    font-size: clamp(17px,1.2vw,22px);
    line-height: 1.58;
}


/* =========================================================
   STAGE
   ========================================================= */

.apollo-development-stage {
    position: relative;

    height: min(650px,72vh);

    min-height: 520px;

    perspective: 1500px;
}


/* =========================================================
   PANELS
   ========================================================= */

.apollo-dev-panel {
    position: absolute;

    inset: 0;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(20,20,27,.98),
            rgba(8,10,14,.99)
        );

    box-shadow:
        0 40px 120px rgba(0,0,0,.45);

    transform-origin: center center;

    will-change:
        opacity,
        transform;
}


/* =========================================================
   TECH PANEL
   ========================================================= */

.apollo-dev-tech-panel {
    display: grid;

    grid-template-columns:
        .88fr
        1.12fr;

    opacity: 0;

    transform:
        translateY(45px)
        scale(.96);
}


.apollo-dev-tech-copy {
    position: relative;

    z-index: 4;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding:
        clamp(40px,4vw,70px)
        clamp(34px,3.5vw,62px);

    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(190,85,237,.11),
            transparent 55%
        );
}


.apollo-dev-eyebrow {
    color: #00E5FF;

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

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


.apollo-dev-tech-copy h3 {
    margin:
        clamp(25px,3vh,45px)
        0 0;

    color: #f5f5f7;

    font-size: clamp(30px,2.5vw,48px);
    font-weight: 600;

    line-height: 1.05;
    letter-spacing: -.035em;
}


.apollo-dev-tech-copy p {
    max-width: 390px;

    margin: 22px 0 auto;

    color: #858893;

    font-size: 14px;
    line-height: 1.6;
}


.apollo-dev-tech-footer {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 40px;

    color: #e2e2e7;

    font-size: 13px;
    font-weight: 600;
}


.apollo-dev-tech-footer span {
    color: #00E5FF;
}


/* =========================================================
   TECHNOLOGY GRID
   ========================================================= */

.apollo-dev-grid-wrap {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 40%,
            rgba(0,229,255,.035),
            transparent 42%
        );
}


.apollo-dev-grid {
    position: absolute;

    width: 115%;

    right: -15%;
    top: -7%;

    display: grid;

    grid-template-columns:
        repeat(3,minmax(145px,1fr));

    gap: 14px;

    transform:
        rotate(-8deg)
        translate3d(0,0,0);
}


.apollo-tech-card {
    min-height: 160px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 11px;

    padding: 18px;

    border:
        1px solid rgba(255,255,255,.085);

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(24,27,34,.94),
            rgba(14,16,21,.98)
        );

    opacity: 0;

    transform:
        translateY(30px)
        scale(.94);

    box-shadow:
        0 18px 50px rgba(0,0,0,.18);
}


.apollo-tech-icon {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(0,229,255,.15);

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(190,85,237,.24),
            rgba(112,69,221,.10) 55%,
            rgba(255,255,255,.02)
        );

    color: #e5e5ea;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-size: 15px;
    font-weight: 600;

    box-shadow:
        inset 0 0 20px rgba(190,85,237,.04);
}


.apollo-tech-card strong {
    color: #e6e7eb;

    font-size: 13px;
    font-weight: 500;
}


.apollo-tech-card small {
    color: #656a73;

    font-size: 9px;
}


/* =========================================================
   CODE PANEL
   ========================================================= */

.apollo-dev-code-panel {
    opacity: 0;

    transform:
        translateY(55px)
        scale(.94)
        rotateX(5deg);

    background: #0d1117;
}


/* HEADER */

.apollo-dev-code-top {
    height: 54px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    border-bottom:
        1px solid #30363d;

    background: #161b22;
}


.apollo-dev-window-dots {
    display: flex;

    gap: 7px;

    margin-right: 24px;
}


.apollo-dev-window-dots i {
    width: 8px;
    height: 8px;

    display: block;

    border-radius: 50%;

    background: #555b66;
}


.apollo-dev-code-tabs {
    height: 100%;

    display: flex;
    align-items: flex-end;

    gap: 3px;
}


.apollo-dev-code-tabs span {
    height: 39px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    color: #7d8590;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-size: 10px;
}


.apollo-dev-code-tabs .is-active {
    color: #f0f3f6;

    border:
        1px solid #30363d;

    border-bottom-color: #0d1117;

    border-radius: 7px 7px 0 0;

    background: #0d1117;
}


.apollo-dev-file-status {
    margin-left: auto;

    color: #656d76;

    font-size: 9px;

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


/* BODY */

.apollo-dev-code-body {
    height:
        calc(100% - 54px);

    display: grid;

    grid-template-rows:
        1fr auto;
}


/* EDITOR */

.apollo-dev-editor {
    padding:
        28px
        26px
        22px;
}


.apollo-dev-code-line {
    min-height: 30px;

    display: flex;
    align-items: center;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    font-size: clamp(10px,.75vw,12px);

    line-height: 1.7;

    opacity: 0;

    transform:
        translateX(-12px);
}


.apollo-dev-line-number {
    width: 40px;

    flex: 0 0 40px;

    padding-right: 13px;

    color: #484f58;

    text-align: right;
}


.apollo-dev-code-line code {
    color: #c9d1d9;
}


.dev-purple {
    color: #d2a8ff;
}

.dev-blue {
    color: #79c0ff;
}

.dev-green {
    color: #7ee787;
}

.dev-yellow {
    color: #e3b341;
}

.dev-cyan {
    color: #39c5cf;
}


/* =========================================================
   CONSOLE
   ========================================================= */

.apollo-dev-console {
    border-top:
        1px solid #30363d;

    background: #161b22;
}


.apollo-dev-console-tabs {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 22px;

    padding: 0 20px;

    color: #707782;

    font-size: 9px;
}


.apollo-dev-console-tabs strong {
    color: #e6edf3;

    font-weight: 500;
}


.apollo-dev-console-body {
    position: relative;

    min-height: 135px;

    padding:
        12px
        20px
        18px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;
}


.apollo-dev-console-line {
    margin-top: 5px;

    color: #8b949e;

    font-size: 9px;

    opacity: 0;

    transform:
        translateX(-10px);
}


.dev-prompt {
    color: #58a6ff;
}


.dev-ok {
    display: inline-block;

    width: 18px;

    color: #00E5FF;
}


.apollo-dev-production {
    position: absolute;

    right: 18px;
    bottom: 17px;

    min-width: 240px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding:
        11px
        13px;

    border:
        1px solid rgba(0,229,255,.16);

    border-radius: 9px;

    background:
        rgba(0,229,255,.035);

    opacity: 0;

    transform:
        translateY(10px);
}


.apollo-dev-production-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #00E5FF;

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


.apollo-dev-production div {
    flex: 1;
}


.apollo-dev-production small,
.apollo-dev-production strong {
    display: block;
}


.apollo-dev-production small {
    color: #59616c;

    font-size: 7px;
}


.apollo-dev-production strong {
    margin-top: 2px;

    color: #dfe3e8;

    font-size: 10px;
}


.apollo-dev-production > span:last-child {
    color: #00E5FF;

    font-size: 8px;
}


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

@media (min-width: 1101px) and (max-height: 850px) {

    .apollo-development-stage {
        height: 560px;

        min-height: 0;
    }

    .apollo-development-copy h2 {
        font-size:
            clamp(52px,4.1vw,76px);
    }

    .apollo-development-copy > p {
        font-size: 16px;
    }

}


/* =========================================================
   MOBILE PROVISOIRE
   ========================================================= */

@media (max-width: 1100px) {

    .apollo-development {
        min-height: auto;
    }

    .apollo-development .apollo-scene-pin {
        position: relative;

        min-height: auto;

        padding:
            100px 0;
    }

    .apollo-development-inner {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .apollo-development-stage {
        height: 620px;

        min-height: 0;
    }

}

/* =========================================================
   TECHNOLOGY LOGOS
   ========================================================= */

.apollo-tech-card img {
    width: 58px;
    height: 58px;

    object-fit: contain;

    display: block;

    filter:
        drop-shadow(
            0 8px 18px rgba(0,0,0,.22)
        );
}

.apollo-tech-card.apollo-tech-main img {
    width: 68px;
    height: 68px;
}

.apollo-tech-card {
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.apollo-tech-card:hover {
    border-color:
        rgba(0,229,255,.24);

    background:
        linear-gradient(
            145deg,
            rgba(27,30,37,.98),
            rgba(15,17,23,.98)
        );

    box-shadow:
        0 20px 60px rgba(0,0,0,.28);
}


/* Sous-titre technologies */
.apollo-dev-tech-title {
    display: block;

    max-width: 420px;

    margin-top: 30px;

    color: #f5f5f7;

    font-size: clamp(22px, 1.75vw, 32px);
    font-weight: 600;

    line-height: 1.12;
    letter-spacing: -.025em;
}


/* =========================================================
   DEVELOPMENT - NOUVELLE MISE EN PAGE
   H2 PLEINE LARGEUR / TEXTE GAUCHE / ANIMATION DROITE
   ========================================================= */

.apollo-development-inner {
    display: block !important;
}

.apollo-development-heading {
    width: 100%;
    max-width: 1250px;

    margin-bottom: 55px;
}

.apollo-development-heading h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(58px, 5vw, 94px);
    font-weight: 600;

    line-height: .95;
    letter-spacing: -.045em;
}

.apollo-development-heading h2 span {
    color: #00E5FF;
}

.apollo-development-content {
    display: grid;

    grid-template-columns:
        minmax(300px, .55fr)
        minmax(700px, 1.45fr);

    gap: clamp(60px, 7vw, 120px);

    align-items: center;
}

.apollo-development-copy {
    align-self: center;
}

.apollo-development-copy > p {
    max-width: 470px;

    margin: 0;

    color: var(--apollo-muted);

    font-size: clamp(17px, 1.15vw, 21px);
    line-height: 1.62;
}

.apollo-development-stage {
    width: 100%;
}

@media (max-width: 1100px) {

    .apollo-development-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .apollo-development-copy > p {
        max-width: 720px;
    }
}



/* =========================================================
   V4 - FIX STRUCTURE SCENE DEVELOPMENT
   La progression est gérée par apollo-engine.js.
   La section ne doit donc pas créer un second scroll de 220vh.
   ========================================================= */

@media (min-width: 992px) {

    .apollo-development {
        min-height: 100vh;
        height: 100vh;
        padding-top: 0;
        padding-bottom: 0;
    }

    .apollo-development .apollo-scene-pin {
        position: relative;
        top: auto;

        width: 100%;
        height: 100vh;
        min-height: 100vh;

        display: flex;
        align-items: center;

        overflow: hidden;
    }

}

/* =========================================================
   APOLLO HOME V4 - DEVELOPMENT MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .apollo-development {
        min-height: auto !important;
        padding: 0 24px !important;
    }

    .apollo-development .apollo-scene-pin {
        position: relative !important;
        min-height: auto !important;
        padding: 65px 0 70px !important;
        overflow: hidden;
    }

    .apollo-development-inner {
        width: 100% !important;
    }

    .apollo-development-heading {
        width: 100%;
        max-width: none;
        margin-bottom: 34px;
    }

    .apollo-development-heading h2 {
        max-width: 100%;
        font-size: clamp(42px, 11vw, 54px) !important;
        line-height: .98 !important;
        letter-spacing: -.04em;
    }

    .apollo-development-content {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .apollo-development-copy > p {
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.55;
    }

    .apollo-development-stage {
        width: 100%;
        height: 560px !important;
        min-height: 0 !important;
        margin-top: 0 !important;
    }

}
