/* =========================================================
   APOLLO HOME - SEA
   ========================================================= */

.apollo-sea {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: visible;
}

.apollo-sea-inner {
    position: relative;
    z-index: 8;

    display: grid;
    grid-template-columns: minmax(360px, .8fr) minmax(620px, 1.2fr);

    align-items: center;

    gap: clamp(70px, 7vw, 130px);
}

/* =========================================================
   TEXTE
   ========================================================= */

.apollo-sea-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}

.apollo-sea-tags span {
    padding: 9px 14px;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;

    color: #9c9ca6;

    font-size: 13px;
}

.apollo-sea-link {
    display: inline-flex;
    align-items: center;

    gap: 18px;

    margin-top: 25px;

    color: #fff;

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

    text-decoration: none;

    transition:
        gap .25s ease,
        color .25s ease;
}

.apollo-sea-link:hover {
    gap: 24px;
    color: #00E5FF;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.apollo-sea-dashboard {
    position: relative;

    min-height: 520px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(45,83,218,.08),
            rgba(255,255,255,.018)
        );

    box-shadow:
        0 35px 100px rgba(0,0,0,.30);

    opacity: 0;

    transform:
        translateY(60px)
        scale(.965);

    will-change:
        opacity,
        transform;
}

.apollo-sea-dashboard::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(0,229,255,.08),
            transparent 36%
        );
}

.apollo-sea-dashboard-top {
    position: relative;
    z-index: 2;

    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.apollo-sea-dashboard-label {
    display: block;

    margin-bottom: 5px;

    color: #727885;

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.apollo-sea-dashboard-top strong {
    color: #fff;

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

.apollo-sea-status {
    padding: 7px 11px;

    border: 1px solid rgba(0,229,255,.20);
    border-radius: 999px;

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

    color: #00E5FF;

    font-size: 11px;
}

/* =========================================================
   METRICS
   ========================================================= */

.apollo-sea-metrics {
    position: relative;
    z-index: 2;

    display: grid;

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

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.apollo-sea-metric {
    min-height: 100px;

    padding: 20px;

    border-right: 1px solid rgba(255,255,255,.08);
}

.apollo-sea-metric:last-child {
    border-right: 0;
}

.apollo-sea-metric span {
    display: block;

    margin-bottom: 11px;

    color: #747985;

    font-size: 11px;
}

.apollo-sea-metric strong {
    color: #fff;

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

.apollo-sea-clicks,
.apollo-sea-conversions {
    color: #00E5FF !important;
}

/* =========================================================
   CHART
   ========================================================= */

.apollo-sea-chart {
    position: relative;

    height: 230px;

    margin: 24px 26px 0;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;

    background: #10131a;
}

.apollo-sea-chart-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size:
        100% 44px,
        70px 100%;
}

.apollo-sea-chart-svg {
    position: absolute;
    inset: 20px 16px 38px;

    width: calc(100% - 32px);
    height: calc(100% - 58px);

    overflow: visible;
}

.apollo-sea-chart-line {
    fill: none;

    stroke: #00E5FF;
    stroke-width: 3;

    vector-effect: non-scaling-stroke;

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

    filter:
        drop-shadow(0 0 6px rgba(0,229,255,.42));

    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}

.apollo-sea-chart-legend {
    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 10px;
}

.apollo-sea-chart-legend span {
    color: #676d78;
}

.apollo-sea-chart-legend strong {
    color: #00E5FF;

    font-weight: 500;
}

/* =========================================================
   PLATEFORMES
   ========================================================= */

.apollo-sea-platforms {
    display: grid;

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

    padding: 18px 26px 25px;

    gap: 12px;
}

.apollo-sea-platforms > div {
    padding: 12px;

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

    background: rgba(255,255,255,.018);
}

.apollo-sea-platforms span,
.apollo-sea-platforms strong {
    display: block;
}

.apollo-sea-platforms span {
    margin-bottom: 5px;

    color: #676c78;

    font-size: 9px;
}

.apollo-sea-platforms strong {
    color: #cdd0d7;

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

/* =========================================================
   BIFURCATION
   ========================================================= */

.apollo-sea-split {
    position: absolute;

    inset: 0;

    z-index: 3;

    pointer-events: none;
}

.apollo-sea-split-svg {
    position: absolute;

    left: 0;
    top: -260px;

    width: 100%;
    height: calc(100% + 900px);

    overflow: visible;
}

.apollo-sea-branch {
    fill: none;

    stroke: url(#apolloSeaBranchGradient);
    stroke-width: 4;

    vector-effect: non-scaling-stroke;

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

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

.apollo-sea-branch-left,
.apollo-sea-branch-right {
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
}

/* Point SEA */
.apollo-sea-node {
    position: absolute;

    left: var(--apollo-line-x);
    top: 50%;

    width: 34px;
    height: 34px;

    transform: translate(-15px, -50%);

    border: 1px solid #00E5FF;
    border-radius: 50%;

    background: var(--apollo-bg);

    box-shadow:
        0 0 0 8px rgba(0,229,255,.04),
        0 0 22px rgba(0,229,255,.35);

    z-index: 10;
}

.apollo-sea-node::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 8px;
    height: 8px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: #00E5FF;

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

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

@media (max-width: 1100px) {

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

    .apollo-sea-dashboard {
        margin-top: 50px;
    }

    .apollo-sea-split {
        display: none;
    }
}

/* =========================================================
   BIFURCATION SEO -> SEA / COMMUNITY
   ========================================================= */

/* Ancienne tentative SVG */
.apollo-sea-split-svg {
    display: none !important;
}

.apollo-sea-split {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

/*
 * La branche démarre un peu avant le SEA,
 * donc visuellement juste après SEO/GEO.
 */
.apollo-sea-split-horizontal {
    position: absolute;

    top: 120px;
    left: var(--apollo-line-x);

    width: 0;
    height: 4px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #2d53da 0%,
            #7045dd 58%,
            #be55ed 100%
        );

    box-shadow:
        0 0 12px rgba(112,69,221,.22);

    will-change: width;
}

/*
 * Petit angle arrondi à droite.
 */
.apollo-sea-split-corner {
    position: absolute;

    top: 120px;
    right: 9vw;

    width: 70px;
    height: 70px;

    border-top: 4px solid #be55ed;
    border-right: 4px solid #be55ed;

    border-radius: 0 26px 0 0;

    opacity: 0;

    transform: scale(.7);
    transform-origin: top right;

    will-change: opacity, transform;
}

/*
 * Nouvelle ligne principale à droite.
 */
.apollo-sea-split-right {
    position: absolute;

    top: 187px;
    right: 9vw;

    width: 4px;
    height: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #be55ed 0%,
            #924ce3 45%,
            #7045dd 100%
        );

    box-shadow:
        0 0 12px rgba(190,85,237,.18);

    will-change: height;
}


/* =========================================================
   SEA - BIFURCATION AJUSTEE
   ========================================================= */

/* La branche passe derrière tout le contenu SEA */
.apollo-sea-split {
    z-index: 1 !important;
}

.apollo-sea-inner,
.apollo-sea-copy,
.apollo-sea-dashboard {
    position: relative;
    z-index: 5;
}

/* Horizontal : part depuis la timeline */
.apollo-sea-split-horizontal {
    top: 105px;

    height: 4px;

    border-radius: 999px 0 0 999px;
}

/* Coin continu et propre */
.apollo-sea-split-corner {
    top: 105px;
    right: 9vw;

    width: 78px;
    height: 78px;

    border-top: 4px solid #be55ed;
    border-right: 4px solid #be55ed;

    border-radius: 0 28px 0 0;

    box-sizing: border-box;

    transform-origin: top right;
}

/* Descente droite exactement raccordée au coin */
.apollo-sea-split-right {
    top: 179px;
    right: 9vw;

    width: 4px;

    border-radius: 0 0 999px 999px;
}

/* =========================================================
   SEA - BRANCHE LATERALE DESACTIVEE
   ========================================================= */

.apollo-sea-split,
.apollo-sea-split-horizontal,
.apollo-sea-split-corner,
.apollo-sea-split-right,
.apollo-sea-split-svg,
.apollo-sea-branch {
    display: none !important;
}


/* =========================================================
   SEA - CORRECTION LARGEUR TITRE
   ========================================================= */

@media (min-width: 1101px) {

    .apollo-sea-inner {
        grid-template-columns:
            minmax(500px, .95fr)
            minmax(620px, 1.05fr);

        gap: clamp(55px, 5vw, 90px);
    }

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

        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .apollo-sea-copy > p {
        max-width: 620px;
    }
}


/* =========================================================
   SEA - NODE ACTIF / INACTIF COMME LES AUTRES SECTIONS
   ========================================================= */

.apollo-sea .apollo-sea-node {
    width: 14px;
    height: 14px;

    transform: translate(-5px, -50%);

    border: 2px solid rgba(255,255,255,.22);
    background: var(--apollo-bg);

    box-shadow: none;
}

.apollo-sea .apollo-sea-node::after {
    display: none;
}

.apollo-sea.is-node-live .apollo-sea-node {
    width: 34px;
    height: 34px;

    transform: translate(-15px, -50%);

    border: 1px solid #00E5FF;

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

.apollo-sea.is-node-live .apollo-sea-node::after {
    content: "";

    display: block;

    position: absolute;

    left: 50%;
    top: 50%;

    width: 8px;
    height: 8px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: #00E5FF;

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


/* =========================================================
   V4 - SEA - GOOGLE ADS / MICROSOFT ADS
   ========================================================= */

/* Google Ads = cyan */
.apollo-sea-chart-line-google {
    stroke: #00E5FF !important;

    filter:
        drop-shadow(0 0 6px rgba(0,229,255,.42));
}

/* Microsoft Ads = rose */
.apollo-sea-chart-line-microsoft {
    stroke: #e069ff !important;

    filter:
        drop-shadow(0 0 6px rgba(224,105,255,.40));
}


/* Cartes plateformes */

.apollo-sea-platforms > div:nth-child(1) {
    border-color: rgba(0,229,255,.20);
}

.apollo-sea-platforms > div:nth-child(1) span {
    color: #00E5FF;
}

.apollo-sea-platforms > div:nth-child(2) {
    border-color: rgba(224,105,255,.20);
}

.apollo-sea-platforms > div:nth-child(2) span {
    color: #e069ff;
}

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

@media (max-width: 767px) {

    .apollo-sea {
        min-height: auto !important;
        padding: 65px 24px 70px !important;
        align-items: flex-start !important;
        overflow: hidden !important;
    }

    .apollo-sea-inner {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* ---------- TEXTE ---------- */

    .apollo-sea-copy {
        width: 100%;
    }

    .apollo-sea-copy h2 {
        max-width: 100% !important;
        margin-bottom: 22px !important;

        font-size: 46px !important;
        line-height: .98 !important;
        letter-spacing: -.04em !important;

        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .apollo-sea-copy > p {
        max-width: 100% !important;
        margin: 0;

        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    /* ---------- TAGS ---------- */

    .apollo-sea-tags {
        gap: 8px !important;
        margin-top: 25px !important;
    }

    .apollo-sea-tags span {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }

    /* ---------- CTA ---------- */

    .apollo-sea-link {
        gap: 14px !important;
        margin-top: 24px !important;

        font-size: 12px !important;
        line-height: 1.4;
    }

    /* ---------- DASHBOARD ---------- */

    .apollo-sea-dashboard {
        width: 100% !important;
        min-height: 0 !important;

        margin-top: 52px !important;

        border-radius: 18px !important;
    }

    .apollo-sea-dashboard-top {
        min-height: 72px !important;
        padding: 0 18px !important;
    }

    .apollo-sea-dashboard-label {
        font-size: 9px !important;
    }

    .apollo-sea-dashboard-top strong {
        font-size: 14px !important;
    }

    .apollo-sea-status {
        padding: 6px 9px !important;
        font-size: 9px !important;
    }

    /* ---------- METRIQUES ---------- */

    .apollo-sea-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .apollo-sea-metric {
        min-height: 82px !important;
        padding: 15px !important;

        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .apollo-sea-metric:nth-child(2) {
        border-right: 0 !important;
    }

    .apollo-sea-metric:nth-child(3),
    .apollo-sea-metric:nth-child(4) {
        border-bottom: 0;
    }

    .apollo-sea-metric span {
        margin-bottom: 8px !important;
        font-size: 9px !important;
    }

    .apollo-sea-metric strong {
        font-size: 19px !important;
    }

    /* ---------- GRAPHIQUE ---------- */

    .apollo-sea-chart {
        height: 185px !important;
        margin: 18px 14px 0 !important;
    }

    .apollo-sea-chart-svg {
        inset: 18px 10px 34px !important;

        width: calc(100% - 20px) !important;
        height: calc(100% - 52px) !important;
    }

    .apollo-sea-chart-legend {
        left: 12px !important;
        right: 12px !important;
        bottom: 9px !important;

        font-size: 9px !important;
    }

    /* ---------- PLATEFORMES ---------- */

    .apollo-sea-platforms {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

        gap: 7px !important;
        padding: 14px 14px 18px !important;
    }

    .apollo-sea-platforms > div {
        padding: 9px !important;
    }

    .apollo-sea-platforms span {
        font-size: 8px !important;
    }

    .apollo-sea-platforms strong {
        font-size: 9px !important;
    }

}
