:root {
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    
    /* Dark theme colors */
    --bg-primary: #0a0a0b;
    --bg-secondary: #141416;
    --bg-card: #1a1a1d;
    --bg-card-hover: #222225;
    --border-color: #2a2a2d;
    --border-light: #3a3a3d;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

h1 a {
	text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

h1 a:hover {
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

.stats {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-glow);
}

/* Header de page */
.page-header {
    text-align: center;
    margin-bottom: 1rem;
}

.header-icon {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.dept-code {
    color: var(--primary-color);
    font-weight: 600;
}

.site-number {
    display: inline-block;
    min-width: 2.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Barre de recherche */
.search-container {
    margin: 0 auto 2rem;
    max-width: 600px;
    position: sticky;
    top: 1rem;
    z-index: 100;
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-left: 3rem;
    padding-right: 3rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--border-color);
}

.clear-search:hover {
    background: var(--primary-color);
    color: white;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.results-count {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

/* Section hébergement */
.hebergement {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hebergement:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.hebergement.hidden {
    display: none;
}

.hebergement h2 {
    background: var(--primary-gradient);
    color: white;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hebergement h2::before {
    content: '🌐';
    font-size: 1.25rem;
}

/* Liste des sites */
.site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.site:last-child {
    border-bottom: none;
}

.site.hidden {
    display: none;
}

.site:hover {
    background: var(--bg-card-hover);
}

.site-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
	display: flex;
}

.site-name a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
	margin-left: 30px;
}

.site-name a:hover {
    color: white;
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
	margin-left: 30px;
}

.site-actions {
    display: flex;
    gap: 0.5rem;
}

.site-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.site-actions a:hover {
    color: white;
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1, h1 a, h1 a:hover {
        font-size: 1.5rem;
    }

    .search-container {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
    }

    .site {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .site-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hebergement h2 {
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats {
        font-size: 0.875rem;
        padding: 0.4rem 1rem;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
        padding-left: 2.75rem;
        padding-right: 2.75rem;
    }
}
