/* ============================================
   NODECHECK - Styles principaux
   ============================================ */

:root {
    --primary-color: #3b82f6;
    /* Bleu plus moderne */
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    /* Violet moderne */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.025em;
    /* Tracking plus serré pour un look moderne */
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background: rgba(15, 23, 42, 0.85);
    /* Semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-section {
    background: radial-gradient(circle at top right, #312e81, #0f172a);
    /* Lighter, more vibrant indigo to dark slate */
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Animated background blobs */
.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    /* Increased visibility */
    z-index: 0;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 40px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ============================================
   CARDS & MOCK GLASSMORPHISM
   ============================================ */

.card {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: var(--glass-bg);
    /* Fallback */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

.card-header {
    background: white;
    color: var(--dark);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

/* ============================================
   CLASSEMENT HEBERGEURS
   ============================================ */

.hebergeur-card {
    border-left: none;
    /* Removed old style */
    position: relative;
}

/* Top border gradient for distinct look */
.hebergeur-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.hebergeur-card:hover::before {
    opacity: 1;
}

.hebergeur-rank {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transform: rotate(-5deg);
}

.hebergeur-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.note-badge {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.type-badge {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-game {
    background-color: #dbeafe;
    color: #1e40af;
}

.type-vps {
    background-color: #dcfce7;
    color: #166534;
}

.type-both {
    background-color: #fef3c7;
    color: #92400e;
}

/* ============================================
   FORMULAIRE
   ============================================ */

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.2s;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    /* Soft ring */
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-affiliation {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-affiliation:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-light);
}

footer .text-muted {
    color: #94a3b8 !important;
}

/* ============================================
   UTILITIES
   ============================================ */

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 9999px;
}

/* ============================================
   PAGE DÉTAIL HÉBERGEUR
   ============================================ */

.hebergeur-header {
    background: radial-gradient(circle at bottom left, #4338ca, #0f172a);
    /* Indigo 700 to Slate 900 */
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hebergeur-rank-badge {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.criteria-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.criteria-item.valid {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.criteria-item.invalid {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   AVIS CLIENTS STYLES
   ============================================ */
.avis-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.avis-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input:checked~label {
    color: #fbbf24;
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.5));
}

.note-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE & ANIMATIONS
   ============================================ */

/* Fade In Up Clean */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section {
        padding: 80px 0 60px;
    }
}