/*
 * expertises.css — effets spécifiques à la page Expertises
 *
 * Chargé UNIQUEMENT dans expertises.html via {% block extra_head %}.
 *
 * Contenu :
 *   - .hero-rail / .hero-rail-divider : top bar dense type cockpit
 *   - .ticker : petit indicateur mono inline
 *   - .live-dot : pastille rouge corail qui pulse
 *   - .signal-bars : mini equalizer animé (4 barres)
 *   - .studio-board : panel droite hero (fond ink, scanline, glyph C)
 *   - .board-line : ligne expertise dans le board (hover slide)
 *   - .hero-blob-soft : gradients flous décoratifs en arrière-plan
 *   - .marquee-strip : bandeau techs animé en bas du hero
 */


/* ============================================================
 * HERO TOP RAIL — barre fine cockpit en haut du hero
 * ============================================================ */
.hero-rail {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(12, 15, 26, 0.1);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6557;
}

.hero-rail-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-rail-divider {
    width: 1px;
    height: 12px;
    background: rgba(12, 15, 26, 0.18);
    display: inline-block;
    flex: none;
}


/* ============================================================
 * TICKER — petit indicateur mono inline (N°042, 45min, etc.)
 * ============================================================ */
.ticker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ticker-num {
    color: #5a1224;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
 * LIVE DOT — pastille corail pulsante (status actif)
 * ============================================================ */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e04a2a;
    flex: none;
    box-shadow: 0 0 0 0 rgba(224, 74, 42, 0.6);
    animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(224, 74, 42, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(224, 74, 42, 0);    }
    100% { box-shadow: 0 0 0 0   rgba(224, 74, 42, 0);    }
}


/* ============================================================
 * SIGNAL BARS — equalizer animé (4 barres)
 * Indicateur "live / actif" sur chaque ligne du studio board
 * ============================================================ */
.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    width: 18px;
    flex: none;
}

.signal-bars > span {
    width: 3px;
    background: #5a1224;
    border-radius: 1px;
    transform-origin: bottom center;
    animation: signal-bounce 1.4s ease-in-out infinite;
}

.signal-bars > span:nth-child(1) { height: 50%; animation-delay: 0s;    }
.signal-bars > span:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.signal-bars > span:nth-child(3) { height: 65%; animation-delay: 0.36s; }
.signal-bars > span:nth-child(4) { height: 100%; animation-delay: 0.54s; }

@keyframes signal-bounce {
    0%, 100% { transform: scaleY(0.35); opacity: 0.55; }
    50%      { transform: scaleY(1);    opacity: 1;    }
}

/* Variante claire pour fonds sombres */
.signal-bars-cream > span { background: #e2a8a0; }


/* ============================================================
 * HERO BLOBS — gradients flous décoratifs (subtils)
 * ============================================================ */
.hero-blob-soft {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.hero-blob-soft.--primary {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #5a1224 0%, transparent 70%);
    opacity: 0.18;
    top: -140px;
    right: -100px;
}

.hero-blob-soft.--secondary {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #13234f 0%, transparent 70%);
    opacity: 0.14;
    bottom: -180px;
    left: -120px;
}


/* ============================================================
 * STUDIO BOARD — panel droite hero (fond ink, scanline, glyph)
 * ============================================================ */
.studio-board {
    position: relative;
    background: #0c0f1a;
    color: #f5efe0;
    border: 1px solid rgba(245, 239, 224, 0.08);
    border-radius: 14px;
    padding: 22px 26px 20px;
    overflow: hidden;
    box-shadow: 0 18px 36px -18px rgba(12, 15, 26, 0.5);
}

/* Glyph C en filigrane (Fraunces italic massif) */
.studio-board::before {
    content: "C";
    position: absolute;
    bottom: -60px;
    right: -40px;
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 320px;
    line-height: 1;
    color: rgba(245, 239, 224, 0.04);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Scanline CRT subtle qui balaye verticalement */
.studio-board::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(245, 239, 224, 0.025) 0%,
        transparent 50%,
        rgba(245, 239, 224, 0.025) 100%
    );
    background-size: 100% 12px;
    pointer-events: none;
    opacity: 0.5;
    animation: scanline-shift 9s linear infinite;
}

@keyframes scanline-shift {
    0%   { background-position: 0 0; }
    100% { background-position: 0 600px; }
}

.studio-board > * { position: relative; z-index: 1; }


/* ============================================================
 * BOARD LINES — lignes expertise (hover slide + change couleur)
 * ============================================================ */
.board-line {
    display: grid;
    grid-template-columns: 30px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(245, 239, 224, 0.1);
    text-decoration: none;
    transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease;
}

.board-line:last-child {
    border-bottom: none;
}

.board-line:hover {
    padding-left: 10px;
    background-color: rgba(245, 239, 224, 0.025);
}

.board-line:hover .board-line-name {
    color: #e2a8a0;
}

.board-line:hover .board-line-arrow {
    transform: translateX(4px);
    color: #e2a8a0;
}

.board-line-num {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(245, 239, 224, 0.4);
    font-variant-numeric: tabular-nums;
}

.board-line-name {
    font-family: "Fraunces", Georgia, serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    color: #f5efe0;
    transition: color 0.25s ease;
    line-height: 1.2;
}

.board-line-status {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(226, 168, 160, 0.85);
    white-space: nowrap;
}

.board-line-arrow {
    color: rgba(245, 239, 224, 0.4);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.25s ease;
}


/* ============================================================
 * MARQUEE STRIP — bandeau techs en bas du hero (fond ink)
 * ============================================================ */
.marquee-strip {
    background: #0c0f1a;
    color: #f5efe0;
    border-top: 1px solid rgba(245, 239, 224, 0.08);
    border-bottom: 1px solid rgba(12, 15, 26, 0.15);
    padding: 14px 0;
    overflow: hidden;
}

.marquee-strip-track {
    display: flex;
    align-items: center;
    gap: 44px;
    white-space: nowrap;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee-strip-track > span {
    flex: none;
}

.marquee-strip-item {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 22px;
    color: #f5efe0;
}

.marquee-strip-glyph {
    color: #e2a8a0;
    font-size: 14px;
}

/* @keyframes marquee est déjà défini par Tailwind config — réutilisé ici */


/* ============================================================
 * REDUCED MOTION — désactive les animations cycliques
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .live-dot,
    .signal-bars > span,
    .studio-board::after,
    .marquee-strip-track {
        animation: none !important;
    }
}
