/* ================================
   HERO SECTION
   ================================ */

/* Hero Section - Hauteur ajustée */
.hero {
    min-height: 85vh !important; /* Réduit de 100vh à 85vh */
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    padding: 4rem 0 !important; /* Ajout d'un padding pour éviter que le contenu touche les bords */
}

/* Ajustement du padding-top pour compenser le header fixe */
.hero {
    padding-top: 6rem !important; /* Réduit de 8rem à 6rem */
    padding-bottom: 4rem !important; /* Réduit de 5rem à 4rem */
}

/* Contenu Hero - Ajustements pour la nouvelle hauteur */
.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Réduit de 4rem à 3rem */
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

/* Titre Hero - Ajustement de la taille */
.hero h1 {
    font-size: 3rem !important; /* Réduit de 3.5rem à 3rem */
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.2rem !important; /* Réduit de 1.5rem à 1.2rem */
    background: linear-gradient(135deg, #ffffff 0%, var(--tech-blue) 50%, var(--tech-purple) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Alternative pour compatibilité si variables tech non définies */
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Sous-titre Hero */
.hero-subtitle {
    font-size: 1.2rem !important; /* Réduit de 1.3rem à 1.2rem */
    color: #b8bcc8 !important;
    margin-bottom: 1.5rem !important; /* Réduit de 2rem à 1.5rem */
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Statistiques Hero */
.hero-stats {
    display: flex !important;
    gap: 1.5rem !important; /* Réduit de 2rem à 1.5rem */
    margin: 1.5rem 0 !important; /* Réduit de 2rem à 1.5rem */
    flex-wrap: wrap !important;
}

.stat-item {
    text-align: center;
    padding: 0.8rem; /* Réduit de 1rem à 0.8rem */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 120px; /* Assure une largeur minimale */
}

.stat-number {
    font-size: 1.8rem; /* Réduit de 2rem à 1.8rem */
    font-weight: 800;
    color: var(--tech-blue);
    display: block;
}

.stat-label {
    font-size: 0.85rem; /* Réduit de 0.9rem à 0.85rem */
    color: #b8bcc8;
    margin-top: 0.5rem;
}

/* Boutons Hero */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem; /* Réduit de 2rem à 1.5rem */
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Animation du réseau - Ajustement de la hauteur */
.network-animation {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 500px !important; /* Réduit de 600px à 500px */
}

.hero-image {
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    display: block;
}

/* Amélioration des contrastes pour l'accessibilité */
.hero-subtitle {
    color: #c1c7d0; /* Légèrement plus clair pour une meilleure lisibilité */
}

.stat-label {
    color: #c1c7d0; /* Légèrement plus clair pour une meilleure lisibilité */
}

/* Amélioration de la lisibilité */
.hero::before {
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.15) 0%, transparent 50%);
}

/* Scène shop pour certaines pages */
.shop-scene {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
}

/* ================================
   FEATURES SECTION
   ================================ */
.features {
    padding: 5rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    background-color: rgba(76, 110, 245, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray-color);
}

/* ================================
   HOW IT WORKS SECTION
   ================================ */
.how-it-works {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 40px;
    right: 0;
    width: 50%;
    height: 2px;
    background-color: var(--primary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--gray-color);
}

/* ================================
   BENEFITS SECTION
   ================================ */
.benefits {
    padding: 5rem 0;
}

.benefits-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.benefits-image {
    flex: 1;
    min-width: 300px;
}

.benefits-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefits-text {
    flex: 1;
    min-width: 300px;
}

.benefits-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* ================================
   CTA SECTION
   ================================ */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-button-light {
    background-color: white;
    color: var(--primary-color);
    padding: 0.7rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
}

.cta-button-light:hover {
    background-color: #f0f0f0;
}

/* ================================
   COMPARISON SECTION
   ================================ */
.comparison {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.comparison-header, .comparison-row {
    display: flex;
    width: 100%;
}

.comparison-header {
    background-color: #2e2e2e;
    color: white;
}

.comparison-cell {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.comparison-header .comparison-cell {
    padding: 15px 20px;
    position: relative;
}

.comparison-feature {
    flex: 0 0 25%;
    padding: 20px;
    background-color: #f5f5f5;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-row:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-cell.with {
    background-color: rgba(0, 123, 255, 0.05);
}

.comparison-header .with {
    background-color: #0056b3;
}

.comparison-header .without {
    background-color: #555;
}

.empty-cell {
    flex: 0 0 25%;
    background-color: #2e2e2e;
}

.recommended {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff9800;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.comparison-cell i {
    font-size: 24px;
    margin-top: 10px;
}

.comparison-cell.with i {
    color: #28a745;
}

.comparison-cell.without i {
    color: #dc3545;
}

.comparison-cell p {
    margin-bottom: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-cta {
    margin-top: 40px;
    text-align: center;
}

/* ================================
   MANAGEMENT MODES SECTION
   ================================ */
.management-modes {
    padding: 80px 0;
    background-color: #f5f9ff;
}

.modes-container {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.mode-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mode-card.featured {
    border: 2px solid #0056b3;
    background-color: rgba(0, 86, 179, 0.03);
}

.mode-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #0056b3;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mode-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mode-icon i {
    font-size: 30px;
    color: #0056b3;
}

.mode-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.mode-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.mode-features li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 16px;
}

.multi-router-feature {
    margin-top: 60px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 30px;
    align-items: center;
}

.multi-router-icon {
    flex: 0 0 100px;
    height: 100px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multi-router-icon i {
    font-size: 40px;
    color: #0056b3;
}

.multi-router-content {
    flex: 1;
}

.multi-router-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.multi-router-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.multi-router-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.multi-router-benefits li {
    flex: 1 0 calc(33.333% - 10px);
    min-width: 250px;
    display: flex;
    align-items: center;
}

.multi-router-benefits li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 16px;
}

.learn-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.learn-more-button:hover {
    background-color: #003d80;
}

/* ================================
   ANIMATIONS SPÉCIFIQUES
   ================================ */

/* Animation améliorée pour le contenu hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.network-animation {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ================================
   RESPONSIVE POUR SECTIONS SPÉCIFIQUES
   ================================ */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
    .hero {
        min-height: 80vh; /* Ajustement pour tablettes */
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Tablettes et mobiles (≤768px) */
@media (max-width: 768px) {
    /* Hero mobile */
    .hero {
        min-height: 75vh; /* Plus compact sur mobile */
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }

    .network-animation {
        height: 350px; /* Plus compact sur mobile */
        order: -1; /* Place l'animation avant le texte sur mobile */
    }

    .shop-scene {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 2rem auto 0;
        display: flex;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .benefits-content {
        flex-direction: column;
    }
    
    /* Comparison responsive */
    .comparison-header, .comparison-row {
        flex-direction: column;
    }
    
    .comparison-feature {
        flex: 1;
        width: 100%;
    }
    
    .empty-cell {
        display: none;
    }
    
    .comparison-cell {
        width: 100%;
    }
    
    .recommended {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
    
    /* Management modes responsive */
    .modes-container {
        flex-direction: column;
    }
    
    .multi-router-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .multi-router-benefits {
        justify-content: center;
    }
    
    .multi-router-benefits li {
        flex: 0 0 100%;
        justify-content: center;
    }
}

/* Très petits écrans (≤480px) */
@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
    
    .network-animation {
        height: 300px;
    }
}