/* ===========================
   STYLE GLOBAL – VEILLE IA
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #0f172a 0%, #020617 45%, #020617 100%);
    color: #e5e7eb;
    scroll-behavior: smooth;
}

/* ===========================
   CONTAINER PRINCIPAL
   =========================== */

.container {
    width: min(960px, 92%);
    margin: 80px auto;
    padding: 32px 26px 30px;
    border-radius: 24px;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.85));
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(18px);
    text-align: center;
    overflow: hidden;
}

/* halo décoratif */
.container::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.35), transparent 60%);
    opacity: 0.9;
    z-index: -1;
}

/* ===========================
   TITRE PRINCIPAL
   =========================== */

h1 {
    font-size: 32px;
    margin: 0 0 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f9fafb;
}

h1 span {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.update-date {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
}

/* ===========================
   TITRES SECONDAIRES
   =========================== */

h2 {
    font-size: 22px;
    margin: 28px auto 14px;
    color: #e5e7eb;
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* barre néon sous les h2 */
h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    transform: translateX(-50%);
}

/* ===========================
   PARAGRAPHES
   =========================== */

p {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    color: #e5e7eb;
    margin: 0 0 14px;
}

/* ===========================
   LISTES
   =========================== */

ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 10px;
}

ul li {
    position: relative;
    margin: 10px 0;
    padding: 12px 14px 12px 40px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.28);
    color: #e5e7eb;
    text-align: left;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* puce décorative */
ul li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: radial-gradient(circle at center, #22d3ee, #6366f1);
    box-shadow:
        0 0 8px rgba(56, 189, 248, 0.8),
        0 0 14px rgba(129, 140, 248, 0.8);
}

ul li:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 46px rgba(15, 23, 42, 1),
        0 0 0 1px rgba(94, 234, 212, 0.6);
}

/* ===========================
   LIENS GÉNÉRAUX
   =========================== */

a {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s ease;
}

a:hover {
    color: #e0f2fe;
}

/* ===========================
   BOUTON RETOUR
   =========================== */

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;

    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #0b1120;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
}

.back-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #22c55e, #06b6d4);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.7);
}

.back-link:hover::before {
    opacity: 1;
}

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

@media (max-width: 768px) {
    .container {
        margin: 60px auto 40px;
        padding: 24px 18px 26px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }
}

/* ===========================
   RSS (veille automatisée)
   =========================== */

.rss-title {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.rss-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #9ca3af;
}

.rss-source {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.rss-date {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.10);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.rss-loading,
.rss-error {
    text-align: left;
    opacity: 0.9;
}
