/* Styles spécifiques à la page Internet */

/* Hero Section Internet */
.internet-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.internet-hero .container {
    position: relative;
    z-index: 2;
}

.internet-hero .hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.internet-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.internet-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 2rem 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 20px;
    color: #ffd700;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Animation des ondes */
.hero-animation {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 1;
}

.signal-waves {
    position: relative;
    width: 200px;
    height: 200px;
}

.wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.wave:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.wave:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* Speed Test Section */
.speed-test {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.speed-test-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.speed-test-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.speed-meter {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.meter-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #e9ecef 0deg, #e9ecef 270deg, transparent 270deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.meter-fill {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f17100 0deg, #ff8c42 90deg, #e9ecef 90deg);
    transition: all 2s ease;
    transform: rotate(-135deg);
}

.meter-center {
    position: relative;
    z-index: 2;
    background: white;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.speed-value {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.speed-unit {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.speed-note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
    font-style: italic;
}

/* Forfaits Section */
.forfaits {
    padding: 100px 0;
    background: white;
}

.plan-toggle {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #f17100, #ff8c42);
    color: white;
    box-shadow: 0 4px 15px rgba(241, 113, 0, 0.3);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    transition: all 0.5s ease;
}

.plans-grid.hidden {
    display: none;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border-color: #f17100;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f17100, #ff8c42);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.plan-speed {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.speed-number {
    font-size: 3rem;
    font-weight: 700;
    color: #f17100;
    line-height: 1;
}

.speed-unit {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: #666;
}

.plan-features {
    margin-bottom: 30px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #555;
}

.plan-features .fa-check {
    color: #10b981;
    font-size: 14px;
}

.plan-features .fa-times {
    color: #ef4444;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f17100;
    color: #f17100;
    width: 100%;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #f17100;
    color: white;
    transform: translateY(-2px);
}

.plan-card .btn-primary {
    width: 100%;
}

/* Comparaison Section */
.comparison {
    padding: 100px 0;
    background: #f8f9fa;
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: linear-gradient(135deg, #f17100, #ff8c42);
    color: white;
    font-weight: 600;
}

.comparison-header > div {
    padding: 20px;
    text-align: center;
}

.feature-col {
    text-align: left !important;
    font-weight: 600;
}

.provider-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.provider-logo {
    font-size: 1.5rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #e9ecef;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row > div {
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-row .feature-col {
    text-align: left;
    justify-content: flex-start;
    font-weight: 500;
    color: #333;
}

.text-success {
    color: #10b981 !important;
    font-size: 18px;
}

.text-danger {
    color: #ef4444 !important;
    font-size: 18px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-question i {
    color: #f17100;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation active state */
.nav-link.active {
    color: #f17100;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design pour la page Internet */
@media (max-width: 768px) {
    .internet-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.popular {
        transform: none;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-header > div:not(:first-child),
    .comparison-row > div:not(:first-child) {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-animation {
        display: none;
    }
}

@media (max-width: 480px) {
    .internet-hero h1 {
        font-size: 2rem;
    }
    
    .plan-card {
        padding: 30px 20px;
    }
    
    .speed-value {
        font-size: 2.5rem;
    }
    
    .meter-circle {
        width: 150px;
        height: 150px;
    }
    
    .meter-fill {
        width: 130px;
        height: 130px;
    }
    
    .meter-center {
        width: 110px;
        height: 110px;
    }
}

/* Animations supplémentaires */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.plan-card:nth-child(1) {
    animation: slideInFromLeft 0.6s ease-out;
}

.plan-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.plan-card:nth-child(3) {
    animation: slideInFromRight 0.6s ease-out 0.4s both;
}

/* Styles pour les résultats du test de débit */
.speed-test-result .result-content {
    padding: 40px;
}

.speed-test-result h4 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.speed-results {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.speed-metric {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    min-width: 150px;
    transition: transform 0.3s ease;
}

.speed-metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-top: 2px;
}

.result-message {
    text-align: center;
    margin: 25px 0;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Indicateur de phase du test */
#phase-indicator {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive pour les résultats */
@media (max-width: 768px) {
    .speed-results {
        flex-direction: column;
        align-items: center;
    }
    
    .speed-metric {
        width: 100%;
        max-width: 250px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-small {
        width: 200px;
        text-align: center;
    }
}