/*
Theme Name: Audiologic Professional
Theme URI: https://audiologic.io
Author: Jay
Description: Thème sur-mesure ultra-performant pour le projet Audiologic.io. Focus SEO et Audio-Tech.
Version: 1.0
Text Domain: audiologic
*/

/* --- 1. VARIABLES DE CHARTE --- */
:root {
    --bg-dark: #121212;
    --surface: #1e1e1e;
    --accent: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.3);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --gradient-tech: linear-gradient(135deg, #00f2ff 0%, #0066ff 100%);
}

/* --- 2. RESET & BASE --- */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-stickybar .stickybar-acf { 
    display: none !important; 
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

/* --- 3. SCROLLBAR CUSTOM (Look Tech) --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- 4. COMPOSANTS GRAPHIQUES --- */

/* Titres avec dégradé */
.text-gradient {
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Cartes d'articles (Glassmorphism) */
.article-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

/* Boutons "Neon" */
.btn-logic {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-logic:hover {
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.05);
}

/* --- 5. ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* --- 6. OPTIMISATION TYPO --- */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

.mono-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* État initial pour le reveal */
.article-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* État quand le JS ajoute la classe */
.article-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Un petit indicateur visuel de "chargement audio" sur les images */
.article-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.6s ease;
}

.article-card:hover::after {
    width: 100%;
}