/* ==========================================================================
   HÉBERGEMENT - PAGE STYLES
   ========================================================================== */

.page-header {
    background: url('../images/development/Los-Santos.png') center/cover no-repeat;
    color: white;
    padding: 80px 0 60px;
    position: relative;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    z-index: 0;
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* ==========================================================================
   TABS
   ========================================================================== */

.hosting {
    padding: 40px 0;
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    padding: 14px 28px;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: var(--color-text);
}

.tab-button:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tab-button.active {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.tab-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Couleurs spécifiques par plateforme */
.tab-button[data-platform="fivem"]     { border-color: #ffdab9; color: #c35400; }
.tab-button[data-platform="fivem"].active     { background: #ffdab9; border-color: #ffdab9; color: #212121; box-shadow: 0 6px 18px rgba(255, 193, 7, 0.28); }

.tab-button[data-platform="altv"]      { border-color: #b2f2bb; color: #2e7d32; }
.tab-button[data-platform="altv"].active      { background: #b2f2bb; border-color: #b2f2bb; color: #1b5e20; box-shadow: 0 6px 18px rgba(76, 175, 80, 0.25); }

.tab-button[data-platform="discord"]   { border-color: #d7bde2; color: #6f42c1; }
.tab-button[data-platform="discord"].active   { background: #d7bde2; border-color: #d7bde2; color: #311b92; box-shadow: 0 6px 18px rgba(156, 39, 176, 0.22); }

.tab-button[data-platform="web"]       { border-color: #a5d8ff; color: #0c8599; }
.tab-button[data-platform="web"].active       { background: #a5d8ff; border-color: #a5d8ff; color: #01579b; box-shadow: 0 6px 18px rgba(3, 169, 244, 0.25); }

/* ==========================================================================
   HOSTING CARDS + POPULAR BADGE
   ========================================================================== */

.platform-content {
    display: none;
}

.platform-content.active {
    display: block;
}

.hosting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hosting-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.hosting-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

/* Popular / Spécialisé */
.hosting-card.popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hosting-card.popular .popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7289da 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.hosting-name {
    font-size: 23px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hosting-price {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.hosting-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-light);
}

.hosting-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    flex-grow: 1;
}

.hosting-specs li {
    padding: 10px 0;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hosting-specs li:last-child {
    border-bottom: none;
}

.hosting-specs li strong {
    color: var(--color-text);
    font-weight: 600;
}

.hosting-specs li svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.hosting-card .btn {
    width: 100%;
    margin-top: auto;
}

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

@media (max-width: 1200px) {
    .hosting-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hosting-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hosting {
        padding: 60px 0;
    }
    .page-header h1 {
        font-size: 36px;
    }
    .page-header p {
        font-size: 18px;
    }
    .hosting-grid {
        grid-template-columns: 1fr;
    }
    .platform-tabs {
        gap: 10px;
        padding: 8px;
        overflow-x: auto;
        max-width: 100%;
        justify-content: flex-start;
    }
    .platform-tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .hosting-card {
        padding: 24px;
    }
}