/* =========================================================
   APOLLO HOME - SEO / GEO
   ========================================================= */

.apollo-seo {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: 90px;
    padding-bottom: 90px;
}

.apollo-seo-inner {
    width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */

.apollo-seo-heading {
    max-width: 950px;

    margin-bottom: 52px;
}

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

    color: #fff;

    font-size: clamp(56px, 5vw, 92px);
    font-weight: 600;
    line-height: .96;
    letter-spacing: -.04em;
}

.apollo-seo-heading > p {
    max-width: 760px;

    margin: 28px 0 0;

    color: var(--apollo-muted);

    font-size: clamp(18px, 1.3vw, 23px);
    line-height: 1.55;
}

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

.apollo-seo-cards {
    display: grid;

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

    gap: 28px;
}

/* =========================================================
   CARD
   ========================================================= */

.apollo-seo-card {
    position: relative;

    min-height: 570px;

    overflow: hidden;

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

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

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

    opacity: 0;

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

    will-change:
        transform,
        opacity;
}

.apollo-seo-card::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(112,69,221,.10),
            transparent 38%
        );
}

/* =========================================================
   CARD HEADER
   ========================================================= */

.apollo-seo-card-header {
    position: relative;
    z-index: 2;

    padding: 40px 42px 32px;
}

.apollo-seo-label {
    display: inline-flex;

    margin-bottom: 21px;

    padding: 7px 11px;

    border: 1px solid rgba(190,85,237,.28);
    border-radius: 999px;

    color: #be55ed;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
}

.apollo-seo-card-header h3 {
    max-width: 560px;

    margin: 0;

    color: #fff;

    font-size: clamp(29px, 2.2vw, 42px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.apollo-seo-card-header p {
    max-width: 570px;

    margin: 19px 0 0;

    color: #8f919b;

    font-size: 16px;
    line-height: 1.55;
}

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

.apollo-seo-dashboard {
    position: absolute;

    left: 28px;
    right: 28px;
    bottom: 28px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;

    background: #11141a;
}

.apollo-seo-metrics {
    display: grid;

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

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

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

    padding: 21px;

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

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

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

    margin-bottom: 10px;

    color: #747985;

    font-size: 11px;
}

.apollo-seo-metric strong {
    color: #f4f4f6;

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

.apollo-seo-visibility,
.apollo-seo-position,
.apollo-seo-top10 {
    color: #be55ed !important;
}

.apollo-seo-position-old {
    color: #606570;
}

.apollo-seo-arrow {
    display: inline-block;

    margin: 0 5px;

    color: #555b68;
}

/* Keywords */

.apollo-seo-keywords {
    padding: 6px 0;
}

.apollo-keyword-row {
    min-height: 48px;

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

    padding: 0 20px;

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

.apollo-keyword-row:last-child {
    border-bottom: 0;
}

.apollo-keyword-row > span {
    color: #a4a7b0;

    font-size: 12px;
}

.apollo-rank {
    min-width: 38px;

    color: #7f8796;

    font-family: ui-monospace, monospace;
    font-size: 13px;
    font-weight: 500;

    text-align: right;
}

/* =========================================================
   GEO INTERFACE
   ========================================================= */

.apollo-geo-interface {
    position: absolute;

    left: 28px;
    right: 28px;
    bottom: 28px;

    min-height: 270px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;

    background: #10131a;
}

.apollo-geo-toolbar {
    height: 44px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 16px;

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

    color: #777d89;

    font-size: 11px;
}

.apollo-geo-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #7045dd;

    box-shadow:
        0 0 10px rgba(112,69,221,.75);
}

.apollo-geo-question {
    padding: 20px 20px 18px;

    color: #e9e9ed;

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

.apollo-geo-answer {
    display: grid;

    grid-template-columns: 30px 1fr;

    gap: 12px;

    padding: 0 20px 20px;
}

.apollo-geo-ai-icon {
    color: #be55ed;

    font-size: 18px;
}

.apollo-geo-generated {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.apollo-geo-line {
    display: block;

    overflow: hidden;

    max-width: 100%;

    color: #989ca7;

    font-size: 12px;
    line-height: 1.55;

    opacity: .08;

    clip-path: inset(0 100% 0 0);
}

.apollo-geo-source {
    margin-top: 18px;

    padding-top: 14px;

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

    opacity: 0;

    transform: translateY(8px);
}

.apollo-geo-source > span {
    display: block;

    margin-bottom: 7px;

    color: #656b77;

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

.apollo-geo-source strong {
    color: #d7d9df;

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

.apollo-geo-check {
    display: inline-flex;

    width: 18px;
    height: 18px;

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

    margin-left: 7px;

    border-radius: 50%;

    background: rgba(112,69,221,.18);

    color: #be55ed;

    font-size: 11px;
}

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

@media (max-width: 1100px) {

    .apollo-seo-cards {
        grid-template-columns: 1fr;
    }

    .apollo-seo-card {
        min-height: 540px;
    }
}

@media (max-width: 700px) {

    .apollo-seo-metrics {
        grid-template-columns: 1fr;
    }

    .apollo-seo-metric {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .apollo-seo-metric:last-child {
        border-bottom: 0;
    }
}

/* =========================================================
   SEO / GEO - AJUSTEMENTS CARDS
   ========================================================= */

/* Plus de place entre le contenu éditorial et les interfaces */
.apollo-seo-card {
    min-height: 640px;
}

.apollo-seo-card-header {
    padding-bottom: 28px;
}

.apollo-seo-card-header p {
    min-height: 75px;
}

/* Boutons */
.apollo-seo-card-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin-top: 20px;

    color: #fff;

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

    text-decoration: none;

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

.apollo-seo-card-link span {
    font-size: 18px;
    line-height: 1;
}

.apollo-seo-card-link:hover {
    gap: 24px;
    color: #be55ed;
}

/* =========================================================
   GEO - IDENTITE ROSE / VIOLET CLAIR
   ========================================================= */

.apollo-seo-card-geo {
    border-color: rgba(190,85,237,.22);

    background:
        linear-gradient(
            145deg,
            rgba(190,85,237,.12),
            rgba(146,76,227,.055) 44%,
            rgba(255,255,255,.018)
        );
}

.apollo-seo-card-geo::before {
    background:
        radial-gradient(
            circle at 76% 18%,
            rgba(190,85,237,.20),
            transparent 42%
        );
}

.apollo-seo-card-geo .apollo-seo-label {
    color: #e4a0ff;

    border-color: rgba(228,160,255,.34);

    background: rgba(190,85,237,.065);
}

.apollo-seo-card-geo .apollo-seo-card-link:hover {
    color: #e4a0ff;
}

.apollo-seo-card-geo .apollo-geo-interface {
    border-color: rgba(190,85,237,.16);

    background:
        linear-gradient(
            145deg,
            #151019,
            #101119
        );
}

.apollo-seo-card-geo .apollo-geo-dot {
    background: #be55ed;

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

.apollo-seo-card-geo .apollo-geo-ai-icon {
    color: #e4a0ff;
}

.apollo-seo-card-geo .apollo-geo-check {
    color: #e4a0ff;

    background: rgba(190,85,237,.16);
}

/*
 * Interfaces basses :
 * on les descend légèrement pour éviter toute collision
 * avec le texte + CTA du haut.
 */
.apollo-seo-dashboard,
.apollo-geo-interface {
    bottom: 24px;
}

/* Sur écran plus petit, on donne davantage de hauteur */
@media (max-width: 1350px) {
    .apollo-seo-card {
        min-height: 680px;
    }

    .apollo-seo-card-header p {
        min-height: auto;
    }
}

/* Rapproche les CTA du texte */
.apollo-seo-card-header p {
    min-height: 0;
    margin-bottom: 0;
}

.apollo-seo-card-link {
    margin-top: 12px;
}


/* Rapproche les interfaces du CTA */
.apollo-seo-dashboard,
.apollo-geo-interface {
    bottom: 55px;
}


/* =========================================================
   SEO / GEO - COMPACTAGE VERTICAL
   ========================================================= */

.apollo-seo {
    padding-top: 55px;
    padding-bottom: 55px;
}

.apollo-seo-heading {
    margin-bottom: 34px;
}

.apollo-seo-heading > p {
    margin-top: 18px;
}

/* Cartes légèrement moins hautes */
.apollo-seo-card {
    min-height: 570px;
}

/* Moins d'espace dans le haut des cartes */
.apollo-seo-card-header {
    padding: 30px 34px 22px;
}

.apollo-seo-card-header h3 {
    margin-bottom: 0;
}

.apollo-seo-card-header p {
    margin-top: 14px;
}

.apollo-seo-card-link {
    margin-top: 10px;
}

/* Interfaces du bas plus proches */
.apollo-seo-dashboard,
.apollo-geo-interface {
    left: 24px;
    right: 24px;
    bottom: 22px;
}

/* Dashboard SEO un peu plus compact */
.apollo-seo-metric {
    min-height: 86px;
    padding: 16px 18px;
}

.apollo-keyword-row {
    min-height: 42px;
}

/* GEO plus compact également */
.apollo-geo-interface {
    min-height: 245px;
}

.apollo-geo-question {
    padding: 16px 18px 14px;
}

.apollo-geo-answer {
    padding: 0 18px 16px;
}

/* =========================================================
   BRANCHE TIMELINE SEO / GEO
   ========================================================= */

.apollo-seo {
    position: relative;
}

.apollo-seo-branch {
    position: absolute;

    left: calc(var(--apollo-line-x) - 22px);
    top: 0;

    width: 240px;
    height: 100%;

    overflow: visible;

    pointer-events: none;

    z-index: 3;
}

.apollo-seo-branch-track,
.apollo-seo-branch-progress {
    fill: none;

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

    vector-effect: non-scaling-stroke;
}

.apollo-seo-branch-track {
    stroke: rgba(255,255,255,.06);
    stroke-width: 3;
}

.apollo-seo-branch-progress {
    stroke: url(#apolloSeoGradient);
    stroke-width: 4;

    filter:
        drop-shadow(0 0 6px rgba(112,69,221,.35))
        drop-shadow(0 0 16px rgba(45,83,218,.18));
}

/* le contenu reste au-dessus */
.apollo-seo-inner {
    position: relative;
    z-index: 4;
}

/* =========================================================
   SEO / GEO - POSITIONNEMENT FINAL DES CARDS
   ========================================================= */

.apollo-seo-branch {
    display: none !important;
}

/* Le groupe revient par-dessus la timeline */


/* La première card passe réellement au-dessus de la ligne */
.apollo-seo-card-search {
    position: relative;
    z-index: 10;
}

/* La seconde reste légèrement derrière */
.apollo-seo-card-geo {
    position: relative;
    z-index: 9;
}

/* La timeline reste derrière les cards dans cette zone */
.apollo-seo .apollo-timeline,
.apollo-seo .apollo-timeline-progress {
    z-index: 2;
}


/* SEO / GEO - cards plus larges */


.apollo-seo-card {
    min-width: 0;
}

/* =========================================================
   SEO / GEO - CENTRAGE PROPRE DES DEUX CARDS
   ========================================================= */

.apollo-seo-cards {
    position: relative;

    left: 50%;
    transform: translateX(-50%);

    width: min(1580px, calc(100vw - 140px));

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

    z-index: 20;
}

.apollo-seo-card {
    position: relative;
    z-index: 21;
    width: 100%;
}

.apollo-seo-card-search {
    background-color: #0d0d12;
}

.apollo-seo-card-geo {
    background-color: #17101c;
}

.apollo-seo .apollo-node {
    z-index: 30;
}

@media (max-width: 1100px) {
    .apollo-seo-cards {
        width: 100%;
        left: 0;
        transform: none;
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SEO / GEO - CENTRAGE FINAL SUR LE VIEWPORT
   ========================================================= */

@media (min-width: 1101px) {

    .apollo-seo-cards {
        position: relative;

        width: min(1580px, calc(100vw - 80px));

        left: 50%;
        margin-left: calc(-50vw + 50%);
        transform: none;

        margin-right: 0;

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

        z-index: 20;
    }

    .apollo-seo-card {
        position: relative;
        z-index: 21;
    }
}

/* =========================================================
   SEO / GEO - CENTRAGE FINAL SUR LE VIEWPORT
   ========================================================= */

@media (min-width: 1101px) {

    .apollo-seo-cards {
        position: relative;

        width: min(1580px, calc(100vw - 80px));

        left: 50%;
        transform: translateX(calc(-50% - var(--apollo-content-offset, 0px)));

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

        z-index: 20;
    }
}

/* =========================================================
   SEO / GEO - CENTRAGE VIEWPORT
   ========================================================= */

@media (min-width: 1101px) {

    .apollo-seo-cards {
        position: relative;

        width: min(1580px, calc(100vw - 80px));

        left: calc(50vw - 50%);
        transform: translateX(-50%);

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

        z-index: 20;
    }
}

/* =========================================================
   SEO / GEO - LAYOUT FINAL
   ========================================================= */

@media (min-width: 1101px) {

    .apollo-seo-cards {
        position: relative;

        width: 100vw;
        margin-left: calc(50% - 50vw);

        padding-left: 70px;
        padding-right: 70px;

        box-sizing: border-box;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;

        left: auto;
        transform: none;

        z-index: 50;
    }

    .apollo-seo-card {
        position: relative;
        width: 100%;
        z-index: 51;
    }

    .apollo-seo-card-search {
        background-color: #0d0d12;
    }

    .apollo-seo-card-geo {
        background-color: #17101c;
    }

    /*
     * Le point reste visible au premier plan,
     * mais la ligne disparaît derrière la card.
     */
    .apollo-seo .apollo-node {
        z-index: 60;
    }
}


/* =========================================================
   SEO / GEO - CARDS DEVANT LA TIMELINE
   ========================================================= */

.apollo-seo-cards {
    position: relative !important;
    z-index: 100 !important;
}

.apollo-seo-card {
    position: relative !important;
    z-index: 101 !important;
}

/* Le point SEO reste visible devant la card */
.apollo-seo .apollo-node {
    z-index: 110 !important;
}


/* =========================================================
   SEO / GEO - STACKING CORRIGE
   ========================================================= */

/*
 * La timeline globale est en z-index: 5.
 * Le contenu SEO doit donc être au-dessus.
 */
.apollo-seo-inner {
    position: relative;
    z-index: 6;
}

/*
 * Les cartes masquent naturellement la ligne
 * grâce à leur fond.
 */
.apollo-seo-cards {
    position: relative;
    z-index: 7;
}

.apollo-seo-card {
    position: relative;
    z-index: 7;
}

/*
 * Le point reste au-dessus des cartes.
 */
.apollo-seo .apollo-node {
    z-index: 8;
}


/* =========================================================
   SEO / GEO - AJUSTEMENT FINAL
   ========================================================= */

@media (min-width: 1101px) {

    /* Centre réellement les deux cartes sur le viewport */
    .apollo-seo-cards {
        transform: translateX(-80px) !important;
    }

    /*
     * La ligne ET le point passent derrière la carte SEO.
     * La carte masque donc totalement la timeline.
     */
    .apollo-seo .apollo-node {
        z-index: 5 !important;
    }

    .apollo-seo-inner {
        z-index: 6 !important;
    }

    .apollo-seo-cards,
    .apollo-seo-card {
        z-index: 7 !important;
    }
}


/* =========================================================
   SEO CARD - ACCENT CYAN
   ========================================================= */

/* Badge SEO */
.apollo-seo-card-search .apollo-seo-label {
    color: #00E5FF !important;
    border-color: rgba(0,229,255,.35) !important;
}

/* Chiffres principaux */
.apollo-seo-card-search .apollo-seo-visibility,
.apollo-seo-card-search .apollo-seo-position,
.apollo-seo-card-search .apollo-seo-top10 {
    color: #00E5FF !important;
}

/* Positions des mots-clés */
.apollo-seo-card-search .apollo-rank {
    color: #00E5FF !important;
}

/* CTA SEO au hover */
.apollo-seo-card-search .apollo-seo-card-link:hover {
    color: #00E5FF !important;
}


/* =========================================================
   APOLLO HOME V4 - SEO / GEO MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .apollo-seo {
        min-height: auto !important;
        height: auto !important;

        display: block !important;

        padding: 65px 24px 75px !important;
    }

    .apollo-seo-inner {
        width: 100% !important;
        max-width: none !important;
    }

    /* ---------- HEADER ---------- */

    .apollo-seo-heading {
        width: 100% !important;
        max-width: none !important;

        margin-bottom: 34px !important;
    }

    .apollo-seo-heading h2 {
        max-width: 100% !important;

        font-size: clamp(42px, 11vw, 54px) !important;
        line-height: .98 !important;
        letter-spacing: -.04em !important;

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

    .apollo-seo-heading > p {
        max-width: 100% !important;

        margin-top: 22px !important;

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

    /* ---------- CARDS ---------- */

    .apollo-seo-cards {
        width: 100% !important;

        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 20px !important;

        left: auto !important;
        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
    }

    .apollo-seo-card {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;

        border-radius: 18px !important;
    }

    /* ---------- CONTENU CARTE ---------- */

    .apollo-seo-card-header {
        padding: 24px 20px 22px !important;
    }

    .apollo-seo-label {
        margin-bottom: 16px !important;

        padding: 6px 10px !important;

        font-size: 10px !important;
    }

    .apollo-seo-card-header h3 {
        max-width: 100% !important;

        font-size: 30px !important;
        line-height: 1.04 !important;
    }

    .apollo-seo-card-header p {
        max-width: 100% !important;
        min-height: 0 !important;

        margin-top: 14px !important;

        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .apollo-seo-card-link {
        max-width: 100% !important;

        margin-top: 16px !important;

        gap: 10px !important;

        font-size: 13px !important;
        line-height: 1.35 !important;
    }

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

    .apollo-seo-dashboard {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        width: auto !important;

        margin: 0 16px 16px !important;

        border-radius: 13px !important;
    }

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

    .apollo-seo-metric {
        min-height: 76px !important;

        padding: 12px 9px !important;

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

    .apollo-seo-metric:last-child {
        border-right: 0 !important;
    }

    .apollo-seo-metric span {
        margin-bottom: 7px !important;

        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    .apollo-seo-metric strong {
        font-size: 18px !important;
    }

    .apollo-seo-arrow {
        margin: 0 2px !important;
    }

    .apollo-keyword-row {
        min-height: 38px !important;

        padding: 0 12px !important;
    }

    .apollo-keyword-row > span {
        font-size: 10px !important;
    }

    .apollo-rank {
        min-width: 30px !important;

        font-size: 11px !important;
    }

    /* ---------- INTERFACE GEO ---------- */

    .apollo-geo-interface {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        width: auto !important;
        min-height: 0 !important;

        margin: 0 16px 16px !important;

        border-radius: 13px !important;
    }

    .apollo-geo-question {
        padding: 14px 14px 12px !important;

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

    .apollo-geo-answer {
        padding: 0 14px 15px !important;
    }

    .apollo-geo-generated {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .apollo-geo-source {
        margin-top: 14px !important;
    }

}
