/* ============================================
   Nano-Host – pages.css
   Styles communs aux pages produit (dark theme)
   ============================================ */

:root {
    --primary: #00c47a;
    --primary-dark: #009e61;
    --primary-light: rgba(0,196,122,0.1);
    --dark: #0a0e1a;
    --dark-2: #111827;
    --dark-3: #1a2236;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --border: rgba(255,255,255,0.08);
    --card-bg: rgba(255,255,255,0.04);
    --gradient: linear-gradient(135deg, #00c47a 0%, #0099cc 100%);
    --shadow: 0 20px 60px rgba(0,0,0,0.4);
    --radius: 16px;
    --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
    width: 50px; height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 20px;
}
.top-bar a { color: var(--white); text-decoration: none; }
.top-bar .promo-code {
    display: inline-block;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 2px 8px;
    font-family: monospace;
    margin: 0 4px;
}

/* ===== NAVBAR ===== */
.navbar-main {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}
.navbar-main .container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}
.navbar-logo img { height: 44px; width: auto; }
.navbar-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
    color: var(--text); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--primary); background: var(--card-bg); }

.nav-item { position: relative; }
/* Masque la 2e flèche générée par main.css via ::after */
.navbar-main .main-link-toggle::after { display: none !important; }
.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    min-width: 520px;
    box-shadow: var(--shadow);
    z-index: 2000;
}
.dropdown-menu-custom.open { display: grid; animation: fadeDown 0.2s ease; }
@keyframes fadeDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dropdown-item-custom {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text); transition: all 0.2s;
}
.dropdown-item-custom:hover { background: var(--card-bg); color: var(--primary); }
.dropdown-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--card-bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--primary); flex-shrink: 0;
}
.dropdown-icon img { width: 22px; height: 22px; object-fit: contain; }
.dropdown-label { font-weight: 600; font-size: 0.88rem; display: block; }
.dropdown-price { font-size: 0.76rem; color: var(--text-muted); display: block; }

.navbar-cta { display: flex; align-items: center; gap: 10px; }
.btn-login { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; padding: 8px 14px; transition: color 0.2s; }
.btn-login:hover { color: var(--primary); }
.btn-client {
    background: var(--gradient); color: var(--white);
    text-decoration: none; font-size: 0.88rem; font-weight: 600;
    padding: 9px 20px; border-radius: 50px;
    transition: all 0.3s; white-space: nowrap;
    box-shadow: 0 0 20px rgba(0,196,122,0.3);
}
.btn-client:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,196,122,0.5); }
.navbar-toggler {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 12px; color: var(--text);
    cursor: pointer; font-size: 1.1rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: var(--dark-2);
}
.page-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.page-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,0.92) 0%, rgba(10,14,26,0.78) 60%, rgba(0,196,122,0.08) 100%);
}
.page-hero .container { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.breadcrumb-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px;
}
.breadcrumb-row a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-row a:hover { color: var(--primary); }
.breadcrumb-row .sep { opacity: 0.4; }
.breadcrumb-row .current { color: var(--primary); font-weight: 600; }
.page-tag {
    display: inline-block; color: var(--primary);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 12px;
}
.page-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; color: var(--white); margin-bottom: 16px; line-height: 1.2;
}
.page-hero h1 .accent { color: var(--primary); }
.page-hero p.lead { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-bottom: 28px; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badge-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 50px; padding: 6px 14px;
    font-size: 0.8rem; color: var(--text-muted);
}
.hero-badge-pill i { color: var(--primary); }

/* ===== CONTAINER / SECTIONS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-dark { background: var(--dark-2); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; color: var(--primary); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.section-title .accent { color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }
.glow-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.3; }

/* ===== PRICING CARDS ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: rgba(0,196,122,0.3); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.pricing-card.popular {
    border-color: rgba(0,196,122,0.4);
    background: linear-gradient(135deg, rgba(0,196,122,0.08) 0%, var(--card-bg) 100%);
}
.pricing-card.popular::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient);
}
.pricing-badge {
    display: inline-block;
    background: var(--gradient); color: var(--white);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 4px 12px; border-radius: 50px;
    margin-bottom: 16px; width: fit-content;
}
.pricing-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--primary-light); border: 1px solid rgba(0,196,122,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary); margin-bottom: 16px;
}
.pricing-icon img { width: 30px; height: 30px; object-fit: contain; }
.pricing-name { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.pricing-price { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-free { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.pricing-divider { height: 1px; background: var(--border); margin: 20px 0; }
.pricing-features { list-style: none; flex: 1; }
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.86rem; color: var(--text); padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.no { color: var(--text-muted); text-decoration: line-through; opacity: 0.5; }
.pricing-features li i.ok { color: var(--primary); flex-shrink: 0; width: 16px; }
.pricing-features li i.no { color: #ef4444; flex-shrink: 0; width: 16px; }
.pricing-cta {
    display: block; text-align: center;
    background: var(--gradient); color: var(--white);
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    padding: 12px 20px; border-radius: 50px; margin-top: 24px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0,196,122,0.2);
}
.pricing-cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,196,122,0.4); color: var(--white); }
.pricing-cta.outline {
    background: transparent; border: 1px solid rgba(0,196,122,0.4);
    color: var(--primary); box-shadow: none;
}
.pricing-cta.outline:hover { background: var(--primary-light); border-color: var(--primary); }

/* ===== VPS TABLE ===== */
.vps-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.vps-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.88rem;
}
.vps-table thead th {
    background: var(--dark-3); color: var(--text-muted);
    font-weight: 700; font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 1px; padding: 16px 20px; text-align: left;
    border-bottom: 1px solid var(--border);
}
.vps-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.vps-table tbody tr:last-child { border-bottom: none; }
.vps-table tbody tr:hover { background: rgba(0,196,122,0.04); }
.vps-table td { padding: 16px 20px; color: var(--text); }
.vps-table td.price-col { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--white); white-space: nowrap; }
.vps-table .spec-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 10px; font-size: 0.82rem; color: var(--text);
}
.vps-ddos { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 0.82rem; }
.btn-order {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gradient); color: var(--white);
    text-decoration: none; font-weight: 700; font-size: 0.82rem;
    padding: 8px 18px; border-radius: 50px;
    transition: all 0.3s; white-space: nowrap;
    box-shadow: 0 0 15px rgba(0,196,122,0.2);
}
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(0,196,122,0.4); color: var(--white); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(0,196,122,0.3); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; cursor: pointer;
    font-weight: 600; font-size: 0.95rem; color: var(--white);
    transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question i { color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
    display: none; padding: 0 22px 18px;
    font-size: 0.88rem; color: var(--text-muted); line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
    transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(0,196,122,0.3); transform: translateY(-4px); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary-light); border: 1px solid rgba(0,196,122,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary); margin-bottom: 16px;
}
.feature-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, #0d1f3c 0%, #0a2a1e 100%);
    border: 1px solid rgba(0,196,122,0.2);
    border-radius: 20px; padding: 48px 52px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    position: relative; overflow: hidden;
    flex-wrap: wrap;
}
.cta-banner::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,196,122,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner h2 { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: var(--text-muted); font-size: 0.9rem; }
.btn-primary {
    background: var(--gradient); color: var(--white);
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    padding: 12px 28px; border-radius: 50px;
    transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 0 20px rgba(0,196,122,0.3); flex-shrink: 0;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(0,196,122,0.5); color: var(--white); }

/* ===== FOOTER ===== */
footer { background: var(--dark-2); border-top: 1px solid var(--border); }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; max-width: 240px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--card-bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); text-decoration: none; transition: all 0.2s; font-size: 0.9rem;
}
.footer-social a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.footer-col h5 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.86rem; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copyright { font-size: 0.84rem; color: var(--text-muted); }
.footer-payments { display: flex; align-items: center; gap: 8px; }
.footer-payments img { height: 26px; border-radius: 5px; }

/* ===== SCROLL TOP ===== */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--gradient); border: none;
    color: white; font-size: 1rem; cursor: pointer;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,196,122,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,196,122,0.6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-toggler { display: block; }
    .navbar-nav-list, .navbar-cta { display: none; }
    .navbar-nav-list.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--dark-2); border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .navbar-main .container { position: relative; }
    .dropdown-menu-custom { position: static; transform: none !important; min-width: 100%; margin-top: 6px; animation: none !important; }
    .dropdown-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .cta-banner { padding: 36px 28px; flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .top-bar { font-size: 0.75rem; }
    .vps-table thead { display: none; }
    .vps-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: 16px; gap: 8px; }
    .vps-table td { padding: 4px 8px; }
    .vps-table td::before { content: attr(data-label); font-size: 0.72rem; color: var(--text-muted); display: block; }
}
