/* Yo Cédric, t'as trouve le css ;) */
:root {
    --primary-neon: #00f2ff;
    --secondary-neon: #7000ff;
    --accent-neon: #ff007a;
    --bg-dark: #050510;
    --card-bg: rgba(10, 10, 25, 0.8);
    --text-main: #ffffff;
    --text-muted: #8484b6;
    --glass-border: rgba(0, 242, 255, 0.2);
    --neon-shadow: 0 0 15px rgba(0, 242, 255, 0.5), 0 0 30px rgba(0, 242, 255, 0.2);
    --neon-shadow-pink: 0 0 15px rgba(255, 0, 122, 0.5), 0 0 30px rgba(255, 0, 122, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fond animé */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.blob-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    filter: blur(120px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: move-blobs 25s infinite alternate ease-in-out;
}

.blob-1 { width: 500px; height: 500px; background: var(--secondary-neon); top: -150px; left: -150px; }
.blob-2 { width: 450px; height: 450px; background: var(--accent-neon); bottom: -100px; right: -100px; animation-delay: -7s; }
.blob-3 { width: 300px; height: 300px; background: var(--primary-neon); top: 40%; left: 30%; animation-duration: 35s; }

@keyframes move-blobs {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(150px, 100px) rotate(90deg) scale(1.3); }
}

/* Grille de fond */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Conteneur principal */
.app-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    padding-top: 5rem; /* Push content down for aesthetic vert centering look initially */
    padding-bottom: 5rem;
}

header {
    margin-bottom: 3rem;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.logo span {
    color: var(--primary-neon);
    position: relative;
}

.logo span::after {
    content: 'Ennui';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-neon);
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
}

.subtitle {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.seo-h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-neon);
    text-align: center;
    margin: 1.5rem auto 0;
    max-width: 500px;
    padding: 0 1rem;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.hero-intro {
    max-width: 500px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.hero-intro p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

.hero-intro strong {
    color: var(--primary-neon);
    font-weight: 600;
}

.hero-intro span {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-neon);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sélecteurs de filtres */
.filters-box {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-align: left;
    margin-left: 0.5rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    border-color: var(--primary-neon);
    color: white;
}

.filter-btn.active {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.filter-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.filter-btn.active i {
    opacity: 1;
}

/* Le bouton magique wowwwww */
.button-wrapper {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.magic-button {
    position: relative;
    padding: 1.8rem 4.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    background: transparent;
    border: 2px solid var(--primary-neon);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--neon-shadow);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    overflow: hidden;
    text-transform: uppercase;
}

.magic-button:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--primary-neon), 0 0 60px var(--primary-neon);
    transform: translateY(-5px) scale(1.02);
}

.magic-button:active {
    transform: translateY(2px) scale(0.98);
}

.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.magic-button:hover .btn-shine {
    left: 100%;
    transition: 0.7s;
}

.hint {
    color: var(--primary-neon);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.8;
    margin: 0;
    animation: pulse-neon 2s infinite;
}

.seo-h2-wrapper {
    margin-top: 1rem;
}

@keyframes pulse-neon {
    0%, 100% { opacity: 0.5; text-shadow: none; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--primary-neon); }
}

/* Carte de résultat */
.result-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border: 2px solid var(--accent-neon);
    border-radius: 24px;
    padding: 3.5rem 2.5rem 2.5rem;
    z-index: 1000;
    box-shadow: var(--neon-shadow-pink);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s;
    font-family: serif;
}

.close-btn:hover {
    color: var(--accent-neon);
    text-shadow: 0 0 10px var(--accent-neon);
}

.result-card.hidden {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.9);
    pointer-events: none;
}

.badge {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    display: inline-block;
    box-shadow: inset 0 0 10px rgba(255, 0, 122, 0.2);
}

.activity-text {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 700;
    color: white;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    width: 50px; height: 50px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.icon-btn:hover {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon);
}

/* Contenu SEO */
.seo-content {
    margin-top: 8rem;
    width: 100%;
    max-width: 700px;
    background: rgba(0, 5, 20, 0.6);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: left;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    z-index: 5;
}

.seo-content h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-neon);
    padding-left: 1rem;
}

.seo-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.seo-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.seo-content li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.seo-content li::before {
    content: '►';
    color: var(--accent-neon);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.seo-content strong {
    color: var(--primary-neon);
}

.seo-content h2 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    border-left: 3px solid var(--primary-neon);
    padding-left: 1rem;
}

.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.seo-content caption {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: left;
    font-style: italic;
}

.seo-content th {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-neon);
    text-align: left;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.seo-content td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.seo-content tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.faq-section {
    margin-top: 2rem;
    width: 100%;
    max-width: 700px;
    padding: 0 2rem;
    text-align: left;
    margin-bottom: 5rem;
}

.faq-section h4 {
    color: var(--primary-neon);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: var(--accent-neon);
    background: rgba(255, 255, 255, 0.05);
}

.faq-item h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Bannière cookies */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 600px;
    background: rgba(10, 10, 25, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--primary-neon);
    padding: 1.2rem 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.15);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.hidden {
    bottom: -150px;
    opacity: 0;
    pointer-events: none;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.cookie-banner a {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.cookie-banner a:hover {
    border-bottom-color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

.mini-neon-btn {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 rgba(0, 242, 255, 0);
}

.mini-neon-btn:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-neon);
}

@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* --- Articles & Blog --- */
.article-container {
    width: 100%;
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 3.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.back-home:hover {
    color: var(--primary-neon);
    opacity: 1;
    transform: translateX(-5px);
    text-shadow: 0 0 10px var(--primary-neon);
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 1rem;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.article-content {
    background: rgba(10, 10, 25, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: white;
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem;
    border-left: 3px solid var(--primary-neon);
    padding-left: 1.2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: var(--primary-neon);
}

.article-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 242, 255, 0.1));
    border: 1px solid var(--primary-neon);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.article-cta h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-cta .magic-button {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

.article-content blockquote {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(112, 0, 255, 0.05);
    border-left: 4px solid var(--accent-neon);
    font-style: italic;
    font-size: 1.3rem;
    color: white;
    position: relative;
}

.article-summary {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-left: 5px solid var(--primary-neon);
    padding: 2rem;
    margin-bottom: 2.5rem;
    border-radius: 0 16px 16px 0;
    color: white;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.article-content th {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-neon);
    text-align: left;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content ul, .article-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content h3 {
    color: white;
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.article-content a, .faq-item p a, .seo-content p a {
    color: var(--primary-neon);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-neon);
    transition: all 0.3s ease;
}

.article-content a:hover, .faq-item p a:hover, .seo-content p a:hover {
    border-bottom-style: solid;
    text-shadow: 0 0 10px var(--primary-neon);
}

@media (max-width: 480px) {
    .article-header h1 { font-size: 2rem; }
    .article-content { padding: 1.5rem; font-size: 1rem; }
}

/* Footer & Stats */
footer {
    width: 100%;
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.stats-bar {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2rem;
}

#counter {
    color: var(--primary-neon);
    font-weight: 800;
    text-shadow: 0 0 10px var(--primary-neon);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-neon);
    transition: 0.3s;
    box-shadow: 0 0 8px var(--primary-neon);
}

.legal-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.legal-links a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.7rem;
    color: rgba(132, 132, 182, 0.3);
    letter-spacing: 1px;
    font-weight: 400;
}

/* Grille d'articles Home */
.guides-section {
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    margin-top: 4rem;
    text-align: left;
    margin-bottom: 2rem;
}

.guides-section h4 {
    color: var(--primary-neon);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.guide-card h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.guide-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.guide-card .read-more {
    color: var(--primary-neon);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 480px) {
    .logo { font-size: 2.2rem; }
    .activity-text { font-size: 1.3rem; }
    .magic-button { padding: 1.2rem 2.5rem; font-size: 1.2rem; }
    .app-container { padding: 1.5rem; }
}

/* --- Overlay DÉFI (Mode Alerte) --- */
.challenge-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeInAlert 0.5s ease-out;
}

.challenge-overlay.hidden {
    display: none;
}

@keyframes fadeInAlert {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

.challenge-box {
    background: rgba(20, 0, 5, 0.9);
    border: 2px solid #ff003c;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 50px rgba(255, 0, 60, 0.3), inset 0 0 30px rgba(255, 0, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.warning-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.challenge-box h2 {
    color: #ff003c;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    letter-spacing: 2px;
}

.challenge-msg {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.glitch-text {
    color: #ff003c;
    font-weight: 800;
    text-transform: uppercase;
}

.red-glow {
    border-color: #ff003c;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    color: #ff003c;
}

.red-glow:hover {
    background: #ff003c;
    box-shadow: 0 0 40px rgba(255, 0, 60, 0.8);
    color: white;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1.5rem;
    text-decoration: underline;
    opacity: 0.7;
    transition: 0.3s;
}

.text-btn:hover {
    opacity: 1;
    color: white;
}

.alert-btn {
    border-color: #ff003c;
    color: #ff003c;
    margin-right: auto;
}

.alert-btn:hover {
    background: #ff003c;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
}

/* --- Input Name Stylisé --- */
.input-box-style {
    border-color: var(--primary-neon);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2), inset 0 0 30px rgba(0, 242, 255, 0.1);
}

.challenge-box h3 {
    color: var(--primary-neon);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.challenge-box input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

.challenge-box input:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.input-box-style .magic-button {
    width: 100%;
    padding: 1rem;
}

/* --- WIDGET ARTICLES RECOMMANDÉS --- */
.related-articles-section {
    margin: 4rem auto 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    max-width: 800px;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}


.related-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-main); /* Force white text */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* ... existing hover styles ... */

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.related-card .related-content {
    flex-grow: 1;
}

.related-card .related-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--secondary-neon);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.related-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.3;
}

.related-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.related-arrow {
    align-self: flex-end;
    font-size: 1.5rem;
    color: var(--primary-neon);
    transition: transform 0.3s ease;
}

.related-card:hover .related-arrow {
    transform: translateX(5px);
    text-shadow: 0 0 8px var(--primary-neon);
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FEATURED IMAGES --- */
.featured-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    margin: 1rem 0 2rem;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

.featured-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.4);
}

.featured-figure {
    margin: 1rem 0 3.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-figure figcaption {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1.2rem;
    font-style: italic;
    font-family: 'Outfit', sans-serif;
    max-width: 80%;
    line-height: 1.5;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Accent subtil pour lier la légende à l'image */
.featured-figure figcaption::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px var(--primary-neon);
}
