/* ==========================================
   📚 VEILLE SYNTHÈSE - PAGE DÉTAILLÉE
   ========================================== */

:root {
    --veille-primary: #00d4ff;
    --veille-secondary: #7b2cbf;
    --veille-accent: #ff6b6b;
    --veille-dark: #0a0a0f;
    --veille-darker: #050508;
    --veille-card-bg: rgba(15, 15, 25, 0.95);
    --veille-border: rgba(0, 212, 255, 0.15);
    --veille-text: rgba(255, 255, 255, 0.9);
    --veille-text-dim: rgba(255, 255, 255, 0.55);
}

/* ==========================================
   BASE & RESET
   ========================================== */

.veille-detail {
    background: var(--veille-darker);
    color: var(--veille-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, sans-serif;
}

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

.veille-detail .container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.veille-detail::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 40%, rgba(0, 212, 255, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 70%, rgba(123, 44, 191, 0.05) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   HERO
   ========================================== */

.veille-hero {
    position: relative;
    z-index: 1;
    padding: 100px 24px 80px;
    border-bottom: 1px solid var(--veille-border);
}

.veille-hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.veille-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: var(--veille-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.veille-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--veille-text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.veille-title span {
    color: var(--veille-primary);
}

.veille-subtitle {
    font-size: 1.05rem;
    color: var(--veille-text-dim);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 36px;
}

.veille-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--veille-text-dim);
    font-size: 0.88rem;
}

.meta-item i {
    color: var(--veille-primary);
    font-size: 1rem;
}

.veille-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-veille {
    padding: 11px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--veille-primary);
    color: #050508;
    border-color: var(--veille-primary);
}

.btn-primary:hover {
    background: #00bbdf;
    border-color: #00bbdf;
}

.btn-outline {
    background: transparent;
    color: var(--veille-primary);
    border-color: rgba(0, 212, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--veille-primary);
    background: rgba(0, 212, 255, 0.06);
}

/* Scroll indicator */
.scroll-indicator {
    display: none;
}

/* ==========================================
   CONTENU PRINCIPAL
   ========================================== */

.veille-content-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 0;
}

/* ==========================================
   INFO CARDS
   ========================================== */

.veille-info-cards {
    padding: 64px 24px;
    max-width: 860px;
    margin: 0 auto;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2px;
    background: var(--veille-border);
    border: 1px solid var(--veille-border);
    border-radius: 10px;
    overflow: hidden;
}

.info-card {
    background: var(--veille-card-bg);
    padding: 28px 22px;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}

.info-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.info-card:hover {
    background: rgba(0, 212, 255, 0.04);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--veille-primary);
    margin-bottom: 14px;
    display: block;
}

.info-card h3 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--veille-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--veille-primary);
}

/* ==========================================
   SECTIONS
   ========================================== */

.veille-section {
    padding: 64px 24px;
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid var(--veille-border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.veille-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 40px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--veille-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.7;
}

.section-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--veille-text);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
}

.section-header h2 i {
    font-size: 1.4rem;
    color: var(--veille-primary);
    flex-shrink: 0;
}

.section-description {
    font-size: 0.95rem;
    color: var(--veille-text-dim);
    line-height: 1.65;
    margin-top: 10px;
    max-width: 620px;
}

/* ==========================================
   POINTS CLÉS
   ========================================== */

.key-points-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--veille-border);
    border: 1px solid var(--veille-border);
    border-radius: 10px;
    overflow: hidden;
}

.key-point-item {
    background: var(--veille-card-bg);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}

.key-point-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.key-point-item:hover {
    background: rgba(0, 212, 255, 0.04);
}

.key-point-number {
    min-width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--veille-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.key-point-content h4 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--veille-text);
    margin-bottom: 6px;
}

.key-point-content p {
    font-size: 0.9rem;
    color: var(--veille-text-dim);
    line-height: 1.65;
}

/* ==========================================
   CONCEPTS TECHNIQUES
   ========================================== */

.tech-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    background: var(--veille-border);
    border: 1px solid var(--veille-border);
    border-radius: 10px;
    overflow: hidden;
}

.tech-concept-card {
    background: var(--veille-card-bg);
    padding: 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}

.tech-concept-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-concept-card:hover {
    background: rgba(0, 212, 255, 0.04);
}

.concept-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.concept-icon i {
    font-size: 1.1rem;
    color: var(--veille-primary);
}

.tech-concept-card h4 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--veille-text);
    margin-bottom: 10px;
}

.tech-concept-card p {
    font-size: 0.9rem;
    color: var(--veille-text-dim);
    line-height: 1.65;
    margin-bottom: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    padding: 4px 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    color: var(--veille-primary);
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(0, 212, 255, 0.05);
}

/* ==========================================
   IMPACT & APPLICATIONS — SECTION 05
   ========================================== */

.impacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px;
    background: var(--veille-border);
    border: 1px solid var(--veille-border);
    border-radius: 10px;
    overflow: hidden;
}

.impact-card {
    background: var(--veille-card-bg);
    padding: 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s ease;
}

.impact-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-card:hover {
    background: rgba(0, 212, 255, 0.04);
}

.impact-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.impact-icon i {
    font-size: 1.1rem;
    color: var(--veille-primary);
}

.impact-card h4 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--veille-text);
    margin-bottom: 8px;
}

.impact-card p {
    font-size: 0.9rem;
    color: var(--veille-text-dim);
    line-height: 1.65;
}

.empty-state {
    color: var(--veille-text-dim);
    font-size: 0.92rem;
    padding: 20px 0;
}

/* ==========================================
   ANALYSE PERSONNELLE — SECTION 06
   ========================================== */

.veille-analysis {
    border: 1px solid var(--veille-border);
    border-radius: 10px;
    padding: 36px 40px;
    background: var(--veille-card-bg);
}

.veille-analysis p {
    font-size: 0.97rem;
    color: var(--veille-text-dim);
    line-height: 1.8;
    margin-bottom: 14px;
}

.veille-analysis p:last-child {
    margin-bottom: 0;
}

.veille-analysis blockquote {
    border-left: 3px solid var(--veille-primary);
    padding: 14px 20px;
    margin: 20px 0;
    background: rgba(0, 212, 255, 0.04);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--veille-text);
}

/* ==========================================
   RESSOURCES
   ========================================== */

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--veille-border);
    border: 1px solid var(--veille-border);
    border-radius: 10px;
    overflow: hidden;
}

.resource-link {
    background: var(--veille-card-bg);
    padding: 22px 28px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: background 0.2s ease;
}

.resource-link:hover {
    background: rgba(0, 212, 255, 0.04);
}

.resource-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    font-size: 1.1rem;
    color: var(--veille-primary);
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--veille-text);
    margin-bottom: 4px;
}

.resource-info p {
    font-size: 0.88rem;
    color: var(--veille-text-dim);
}

.resource-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.resource-link:hover .resource-arrow {
    background: var(--veille-primary);
    border-color: var(--veille-primary);
}

.resource-arrow i {
    font-size: 0.95rem;
    color: var(--veille-primary);
    transition: color 0.2s ease;
}

.resource-link:hover .resource-arrow i {
    color: #050508;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.veille-navigation {
    position: relative;
    z-index: 1;
    padding: 64px 24px;
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid var(--veille-border);
}

.nav-adjacent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--veille-border);
    border: 1px solid var(--veille-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2px;
}

.nav-link {
    background: var(--veille-card-bg);
    padding: 24px 28px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(0, 212, 255, 0.04);
}

.nav-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon i {
    font-size: 1.1rem;
    color: var(--veille-primary);
}

.nav-content {
    flex: 1;
}

.nav-label {
    font-size: 0.75rem;
    color: var(--veille-text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.nav-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--veille-text);
}

.nav-back {
    background: var(--veille-border);
    border-radius: 10px;
    overflow: hidden;
}

.nav-back .nav-link {
    justify-content: center;
    text-align: center;
}

/* ==========================================
   BOUTON RETOUR EN HAUT
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--veille-card-bg);
    border: 1px solid var(--veille-border);
    border-radius: 8px;
    color: var(--veille-primary);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1000;
    transition: bottom 0.3s ease, background 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    bottom: 28px;
}

.back-to-top:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--veille-primary);
}

/* ==========================================
   RÉVÉLATION AU SCROLL
   ========================================== */

.veille-section,
.impact-card,
.info-card,
.key-point-item,
.tech-concept-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.veille-section.is-visible,
.impact-card.is-visible,
.info-card.is-visible,
.key-point-item.is-visible,
.tech-concept-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .veille-hero {
        padding: 80px 20px 60px;
    }

    .veille-section {
        padding: 48px 20px;
    }

    .veille-info-cards {
        padding: 48px 20px;
    }

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

    .impacts-grid {
        grid-template-columns: 1fr;
    }

    .tech-concepts-grid {
        grid-template-columns: 1fr;
    }

    .nav-adjacent {
        grid-template-columns: 1fr;
    }

    .veille-analysis {
        padding: 24px 20px;
    }

    .veille-navigation {
        padding: 48px 20px;
    }
}

@media (max-width: 480px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .veille-title {
        font-size: 1.6rem;
    }

    .key-point-item {
        flex-direction: column;
        gap: 12px;
    }

    .resource-link {
        padding: 18px 20px;
    }

    .back-to-top {
        right: 16px;
        bottom: -60px;
    }

    .back-to-top.show {
        bottom: 16px;
    }
}

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */

*:focus-visible {
    outline: 2px solid var(--veille-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --veille-primary: #00e5ff;
        --veille-border: rgba(0, 212, 255, 0.4);
    }
}

/* ==========================================
   PRINT
   ========================================== */

@media print {
    .veille-hero,
    .veille-navigation,
    .back-to-top {
        display: none !important;
    }

    .veille-section {
        border: none;
        padding: 20px 0;
        page-break-inside: avoid;
        opacity: 1;
        transform: none;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
