/* hexdns/assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&family=Fira+Code:wght@700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --border-color: #222222;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #FFD700;
    --success: #00E676;
    --danger: #FF3B30;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER UNIFIÉ */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 2000;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}

.header-left { flex: 0 0 auto; }
.header-center { flex: 1; justify-content: center; padding: 0 20px; }
.header-right { flex: 0 0 auto; gap: 20px; }

.logo img {
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    display: block;
}

/* BARRE DE RECHERCHE DANS LE HEADER */
.header-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.header-search input {
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    padding: 0 20px 0 40px;
    outline: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.header-search input:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.9);
}

.header-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* NAVIGATION LINKS */
.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
}

.nav-link:hover { color: var(--accent); }
.nav-link.highlight { color: var(--accent); }

/* MOBILE HAMBURGER */
.hamburger {
    display: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    transition: 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* MAIN CONTENT OFFSET */
.main-wrapper {
    margin-top: var(--header-height);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* FOOTER UNIFIÉ */
.unified-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.footer-links a:hover { color: var(--text-main); }
.footer-copy { color: #555; font-size: 12px; }

/* REUSABLE CLASSES */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; width: 100%; }
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 8px; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; border: none; transition: 0.3s; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-secondary { background: #222; color: #fff; border: 1px solid #333; }
.btn-secondary:hover { background: #333; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.form-control { width: 100%; padding: 14px; background: #0a0a0a; border: 1px solid #333; border-radius: 8px; color: #fff; font-size: 15px; outline: none; transition: 0.3s; }
.form-control:focus { border-color: var(--accent); background: #000; }
.alert { padding: 15px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-error { background: rgba(255, 59, 48, 0.1); color: var(--danger); border-color: rgba(255, 59, 48, 0.2); }
.alert-success { background: rgba(0, 230, 118, 0.1); color: var(--success); border-color: rgba(0, 230, 118, 0.2); }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .header-right .nav-link { display: none; }
    .hamburger { display: block; }
    .header-center { display: none; }
    .mobile-menu .header-search { display: block; padding: 0 20px; }
}
@media (min-width: 769px) {
    .mobile-menu .header-search { display: none; }
}