:root {
    /* Thème plus violet */
    --bg-dark: #0a0412; /* Violet très sombre pour le fond */
    --bg-card: #150926; /* Violet foncé pour les cartes */
    --bg-card-hover: #1e0d36;
    
    --text-main: #f8fafc;
    --text-muted: #b794f6; /* Texte secondaire teinté violet */
    
    --primary: #a855f7;
    --primary-hover: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.4);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    
    --border: #311c52; /* Bordure violette */
    --border-hover: #4c2980;
    
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Effet de lueur en arrière-plan */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 60vh;
    background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px 0 var(--primary-glow); }
    50% { box-shadow: 0 0 25px 5px var(--primary-glow); }
    100% { box-shadow: 0 0 10px 0 var(--primary-glow); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utilities */
a {
    text-decoration: none;
    color: inherit;
}

.icon {
    width: 24px;
    height: 24px;
}

.icon-small {
    width: 16px;
    height: 16px;
}

.icon-tiny {
    width: 14px;
    height: 14px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background-color: rgba(10, 4, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInUp 0.5s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 32px;
    width: auto;
    animation: float 4s ease-in-out infinite;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: glowPulse 3s infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    animation: glowPulse 1.5s infinite;
}

.btn-primary .arrow {
    transition: transform 0.3s;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    border: 1px solid var(--border);
    background-color: rgba(168, 85, 247, 0.05);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    transform: translateX(4px);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Sections */
section {
    margin-bottom: 5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.url-section { animation-delay: 0.2s; }
.fai-section { animation-delay: 0.4s; }
.servers-section { animation-delay: 0.6s; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title-wrap h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-title-wrap p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary);
    background-color: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -10px rgba(168, 85, 247, 0.2);
}

/* URL Card */
.main-card {
    padding: 0;
    overflow: hidden;
}

.main-card .card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background-color: rgba(168, 85, 247, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-hover);
}

.header-left h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-verified {
    background-color: rgba(168, 85, 247, 0.15);
    color: var(--text-main);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.dot.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.url-box {
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.url-box:hover {
    background-color: rgba(168, 85, 247, 0.05);
}

.url-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-muted);
    display: inline-block;
    transition: var(--transition);
}

.url-box:hover .url-link {
    transform: scale(1.05);
    color: var(--primary-hover);
}

.url-link span {
    color: var(--text-main);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-item svg {
    color: var(--primary);
}

.verify-bar {
    background-color: rgba(168, 85, 247, 0.08);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
}

.fai-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.server-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* FAI & Server Cards */
.fai-card, .server-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.fai-card::before, .server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.fai-card:hover::before, .server-card:hover::before {
    transform: translateX(100%);
}

.fai-header, .server-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fai-icon, .server-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(168, 85, 247, 0.1);
    color: var(--primary-hover);
    transition: var(--transition);
}

.card:hover .fai-icon, .card:hover .server-icon {
    background-color: var(--primary);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

/* Custom ISP colors (optional subtle hint) */
.orange-icon { color: #f16e00; }
.free-icon { color: #cc0000; }
.sfr-icon { color: #e2001a; }
.bouygues-icon { color: #008cc0; }

.fai-info h3, .server-info h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.fai-info span, .server-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    font-weight: 700;
}

.purple-text {
    color: var(--primary-hover);
}

.progress-bar {
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--success);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    animation: shine 2s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(250px); }
}

.purple-bar .progress {
    background-color: var(--primary);
}

.fai-status-boxes, .server-status-boxes {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.status-box {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover .status-box {
    background-color: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.2);
}

.status-label {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-label.success {
    color: var(--success);
}

.status-label.white-text {
    color: var(--text-main);
}

.status-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Timer Info */
.timer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.time-bold {
    font-weight: 600;
    color: var(--primary-hover);
}

.separator {
    color: var(--border);
}

.last-check, .next-check {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .server-grid {
        grid-template-columns: 1fr;
    }
}
