@import "template.css";

/* Titre principal */
.title-page h1 {
    background-clip: text;
    margin-bottom: 15px !important;
}

.title-page p {
    font-size: 1.15rem !important;
    color: #6c757d !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* Speedtest Card - CORRECTION CENTRAGE IFRAME */
/* Speedtest Card - centrage iframe */
.speedtest-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    overflow: hidden;              /* ← évite la barre de scroll horizontale */
}

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

/* Responsive */
@media (max-width: 768px) {
    #nPerfSpeedTest {
        width: 320px;
        transform: none;             /* pas de décalage sur mobile */
        height: 500px;
    }
}

/* Server Info Banner */
.server-banner {
    background: linear-gradient(135deg, #0f0f2e 0%, #1a1a3e 100%);
    border-radius: 15px;
    padding: 35px 25px;
    margin-bottom: 50px;
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.server-stat {
    text-align: center;
}

.server-stat-prefix {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 500;
}

.server-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00d98e;
    margin-bottom: 8px;
}

.server-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Info Section */
.info-speedtest {
    margin: 60px 0;
    width: 100%; /* Respect du container */
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f0f2e;
    text-align: center;
    margin-bottom: 45px;
}

.section-title .accent {
    color: #00d98e;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%; /* Respect du container */
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #00d98e;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f0f2e;
    margin-bottom: 12px;
}

.info-card p {
    color: #6c757d;
    font-size: 0.92rem;
    line-height: 1.65;
}

.info-card .highlight {
    color: #00d98e;
    font-weight: 600;
}

/* Tips Section */
.tips-section {
    background: white;
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 60px 0;
    width: 100%; /* Respect du container */
}

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

.tip-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 22px;
    border-left: 3px solid #00d98e;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.tip-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f0f2e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card p {
    color: #6c757d;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #00d98e 0%, #00b377 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    margin: 60px 0;
    width: 100%; /* Respect du container */
}

.cta-section h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #00d98e;
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Checkmark style */
.checkmark {
    color: #00d98e;
    margin-right: 6px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .title-page h1 {
        font-size: 2rem !important;
    }

    .title-page p {
        font-size: 1rem !important;
    }

    .speedtest-card {
        padding: 30px 20px;
    }

    .server-banner {
        gap: 20px;
        padding: 28px 20px;
    }

    .server-stat-value {
        font-size: 1.8rem;
    }

    .server-stat-label {
        font-size: 0.8rem;
    }

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

    .cta-section {
        padding: 40px 30px;
    }

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

    .section-title {
        font-size: 1.6rem;
    }
}