@import "../template.css?v=20260613-shared-hero";

/*--------------------------------------------------------------
# Speedtest Split Layout
--------------------------------------------------------------*/

.speedtest-card {
    background: var(--background-box);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 52px;
    border: 1px solid var(--section-border);
    overflow: hidden;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .speedtest-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.speedtest-split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 0;
    min-height: 460px;
}

/* Section Iframe (gauche) */
.speedtest-iframe-section {
    background: #ffffff;
    padding: clamp(28px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--section-border);
    transition: background 0.3s ease;
}

body.dark-theme .speedtest-iframe-section {
    background: #1a1a1a;
}

.iframe-wrap {
    width: 81%;
    overflow: hidden;
}

#nPerfSpeedTest {
    display: block;
    width: 200%;
    height: 400px;
    border: none;
    transform: translateX(0%);
}

/* Section résultats (droite) */
.speedtest-results-section {
    background: #f8fafc;
    padding: clamp(28px, 4vw, 46px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.dark-theme .speedtest-results-section {
    background: #1e1e1e;
}

.results-panel {
    width: 100%;
}

.results-panel-header {
    margin-bottom: 26px;
}

.results-panel-header h2 {
    color: var(--hero-title);
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
}

.results-panel-header h2 span {
    color: var(--brand-sapphire);
}

body.dark-theme .results-panel-header h2 span {
    color: var(--brand-blue-circuit);
}

.results-panel-header p {
    color: var(--hero-subtitle);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

.result-info-list {
    display: grid;
    gap: 14px;
}

.result-info-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--section-border);
    border-radius: 14px;
    padding: 18px;
}

body.dark-theme .result-info-card {
    background: #1a1a1a;
}

.result-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(30, 30, 226, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

body.dark-theme .result-info-icon {
    background: rgba(39, 153, 255, 0.14);
}

.result-info-icon i {
    color: var(--brand-sapphire);
    font-size: 1.25rem;
}

body.dark-theme .result-info-icon i {
    color: var(--brand-blue-circuit);
}

.result-info-card h3 {
    color: var(--hero-title);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.result-info-card p {
    color: var(--hero-subtitle);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/*--------------------------------------------------------------
# Tips Section
--------------------------------------------------------------*/

.tips-section {
    background: var(--background-box);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 60px 0;
    border: 2px solid var(--section-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .tips-section {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.tip-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid var(--section-border);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

body.dark-theme .tip-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #1a1a1a 100%);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 30, 226, 0.12);
    border-color: var(--brand-sapphire);
}

body.dark-theme .tip-card:hover {
    box-shadow: 0 15px 35px rgba(39, 153, 255, 0.3);
    border-color: var(--brand-blue-circuit);
}

.tip-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hero-title);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.tip-card p {
    color: var(--hero-subtitle);
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkmark {
    color: var(--brand-sapphire);
    font-weight: 700;
    font-size: 1.3rem;
}

body.dark-theme .checkmark {
    color: var(--brand-blue-circuit);
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/

.cta-section {
    min-height: clamp(320px, 28vw, 420px);
    background:
        linear-gradient(180deg, rgba(8, 9, 24, 0.78) 0%, rgba(8, 9, 24, 0.9) 100%),
        url("../../img/speedtest.jpg") center / cover no-repeat;
    border-radius: 24px;
    padding: clamp(42px, 5vw, 68px) clamp(24px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.dark-theme .cta-section {
    background:
        linear-gradient(180deg, rgba(5, 6, 18, 0.76) 0%, rgba(5, 6, 18, 0.9) 100%),
        url("../../img/speedtest.jpg") center / cover no-repeat;
}

.cta-section::before {
    content: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    width: min(100%, 820px);
    margin: 0 auto;
}

.cta-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--brand-cloud-byte);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cta-section h2 {
    max-width: 760px;
    font-size: clamp(2rem, 3.1vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
}

.cta-section p {
    max-width: 720px;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.6;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    color: #e5edf9;
}

body.dark-theme .cta-section p {
    color: #e5edf9;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto 28px;
    padding: 0;
    list-style: none;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f7fbff;
    background: rgba(8, 9, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 14px 8px 8px;
    font-weight: 650;
    line-height: 1.45;
    backdrop-filter: blur(10px);
}

.cta-benefits i {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--brand-blue-circuit);
    background: rgba(39, 153, 255, 0.18);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--brand-sapphire);
    color: white;
    padding: 16px 28px;
    border-radius: var(--ui-radius-button);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color var(--ui-transition), transform var(--ui-transition), box-shadow var(--ui-transition);
    box-shadow: 0 18px 42px rgba(30, 30, 226, 0.34);
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--brand-blue-circuit);
    transform: var(--ui-hover-lift);
    box-shadow: var(--ui-shadow-brand);
    color: white;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 1024px) {
    .speedtest-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .speedtest-iframe-section {
        border-right: none;
        border-bottom: 1px solid var(--section-border);
        padding: 30px 20px;
    }

    .speedtest-results-section {
        padding: 40px 20px;
    }

    .server-banner {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .iframe-wrap {
        width: 100%;
    }

    #nPerfSpeedTest {
        width: 320px;
        transform: none;
        height: 500px;
    }

    .result-info-card {
        padding: 16px;
    }

    .tips-section {
        padding: 40px 25px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        min-height: auto;
        padding: 46px 24px;
        background:
            linear-gradient(180deg, rgba(8, 9, 24, 0.94) 0%, rgba(8, 9, 24, 0.8) 100%),
            url("../../img/speedtest.jpg") center / cover no-repeat;
    }

    body.dark-theme .cta-section {
        background:
            linear-gradient(180deg, rgba(5, 6, 18, 0.95) 0%, rgba(5, 6, 18, 0.82) 100%),
            url("../../img/speedtest.jpg") center / cover no-repeat;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-benefits {
        gap: 10px;
    }

    .cta-button {
        width: 100%;
        max-width: 360px;
        padding: 15px 22px;
    }
}

@media (max-width: 576px) {
    .speedtest-iframe-section {
        padding: 20px 15px;
    }

    .speedtest-results-section {
        padding: 28px 15px;
    }

    .result-info-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
