/* --- Variables & Reset --- */
:root {
    --color-bg-main: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-yellow: #FFD700;
    --color-yellow-hover: #e6c200;
    --color-orange: #ff7f50;
    --color-text-main: #ffffff;
    --color-text-muted: #b3b3b3;
    --color-danger: #ff4d4d;
    --font-main: 'Montserrat', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--color-bg-main); color: var(--color-text-main); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 92%; max-width: 1400px; margin: 0 auto; }
.z-yellow { color: var(--color-yellow); font-weight: 700; }
.text-center { text-align: center; }
.alert { padding: 15px; margin-bottom: 20px; border-radius: 4px; text-align: center; }
.alert-error { background: rgba(255, 77, 77, 0.2); color: var(--color-danger); border: 1px solid var(--color-danger); }
.alert-success { background: rgba(255, 215, 0, 0.2); color: var(--color-yellow); border: 1px solid var(--color-yellow); }
.btn { display: inline-block; padding: 10px 25px; border-radius: 4px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 0.95rem; }
.btn-primary, .btn-yellow { background-color: var(--color-yellow); color: var(--color-bg-main); }
.btn-primary:hover, .btn-yellow:hover { background-color: var(--color-yellow-hover); }
.btn-secondary { background-color: transparent; border: 2px solid var(--color-text-main); color: var(--color-text-main); }
.btn-secondary:hover { background-color: var(--color-text-main); color: var(--color-bg-main); }
.btn-large { padding: 12px 35px; font-size: 1.1rem; }
.btn-sm { padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; }

/* --- Header --- */
.main-header { background-color: rgba(0, 0, 0, 0.95); padding: 12px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #222; backdrop-filter: blur(10px); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; }
.main-nav ul { display: flex; align-items: center; gap: 25px; }
.main-nav a { font-size: 0.9rem; font-weight: 600; color: #ccc; transition: all 0.2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav .admin-link { color: var(--color-danger); }
.auth-buttons { display: flex; gap: 10px; }
.btn-nav { padding: 6px 15px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; }
.btn-nav.login { background: #333; color: #fff; }
.btn-nav.register { background: var(--color-yellow); color: #000; }
.burger-menu { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.burger-menu span { width: 25px; height: 2px; background-color: #fff; transition: 0.3s; }
.main-content { flex: 1; }

/* --- NOUVEAU FOOTER --- */
.main-footer { background: #080808; padding: 60px 0 0; margin-top: auto; border-top: 1px solid #1a1a1a; color: #888; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.footer-logo { font-size: 2rem; font-weight: 800; color: #fff; display: inline-block; margin-bottom: 15px; letter-spacing: -1px; }
.footer-desc { margin-bottom: 25px; line-height: 1.5; max-width: 300px; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 36px; height: 36px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #ccc; transition: all 0.3s; border: 1px solid #333; font-size: 1.2rem; }
.footer-social a:hover { background: var(--color-yellow); color: #000; border-color: var(--color-yellow); transform: translateY(-3px); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #888; transition: all 0.2s; display: inline-block; }
.footer-links a:hover { color: var(--color-yellow); transform: translateX(5px); }
.footer-bottom { background: #050505; padding: 20px 0; text-align: center; border-top: 1px solid #111; font-size: 0.85rem; }

/* --- Pages --- */
.hero { height: 75vh; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://source.unsplash.com/random/1920x1080/?cinema') center/cover; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero-subtitle { font-size: 1.3rem; color: #ddd; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.features-preview { padding: 80px 0; background: var(--color-bg-secondary); text-align: center; }
.features-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 50px; }
.feature-card { flex: 1; min-width: 250px; max-width: 350px; padding: 30px; background: var(--color-bg-main); border-radius: 10px; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-card .icon { font-size: 3rem; margin-bottom: 20px; }
.cta-section { padding: 80px 0; text-align: center; background: linear-gradient(45deg, var(--color-bg-main), #1a1a1a); }
.auth-container { max-width: 450px; margin: 80px auto; padding: 40px; background: var(--color-bg-secondary); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.auth-container h2 { text-align: center; margin-bottom: 30px; color: var(--color-yellow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--color-text-muted); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; background: #0a0a0a; border: 1px solid #333; border-radius: 4px; color: #fff; font-family: inherit; transition: border-color 0.3s; }
.form-group input:focus { outline: none; border-color: var(--color-yellow); }
.form-footer { text-align: center; margin-top: 25px; font-size: 0.9rem; color: var(--color-text-muted); }
.form-footer a { color: var(--color-yellow); }
.hero-dashboard { height: 65vh; min-height: 500px; display: flex; align-items: center; background-size: cover; background-position: center top; margin-top: -65px; padding-top: 65px; }
.hero-dashboard .hero-content { text-align: left; max-width: 700px; }
.featured-badge { background: var(--color-yellow); color: #000; padding: 5px 12px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; border-radius: 2px; display: inline-block; margin-bottom: 15px; }
.featured-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.featured-meta { color: #ddd; font-size: 1.1rem; margin-bottom: 25px; display: flex; gap: 15px; }
.category-section { margin-bottom: 50px; }
.category-title { font-size: 1.5rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.anime-ad-banner { background: linear-gradient(45deg, var(--color-orange), #ff4500); color: white; padding: 15px; margin: 20px auto 40px; border-radius: 8px; text-align: center; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 15px; box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3); transition: transform 0.3s; }
.anime-ad-banner:hover { transform: translateY(-2px); }
.ad-tag { background: #fff; color: var(--color-orange); padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.carousel-wrapper { position: relative; display: flex; align-items: center; }
.carousel-container { display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth; padding: 15px 0; scrollbar-width: none; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-arrow { position: absolute; z-index: 2; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 2rem; height: calc(100% - 30px); width: 50px; cursor: pointer; opacity: 0; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.carousel-wrapper:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: rgba(0,0,0,0.8); color: var(--color-yellow); }
.carousel-arrow.left { left: 0; border-radius: 0 8px 8px 0; }
.carousel-arrow.right { right: 0; border-radius: 8px 0 0 8px; }
.content-card { min-width: 200px; max-width: 200px; flex-shrink: 0; display: block; transition: transform 0.3s ease; }
.content-card:hover { transform: scale(1.05); z-index: 5; }
.card-image { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 2/3; background: #222; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.content-card:hover .card-overlay { opacity: 1; }
.play-icon { font-size: 2.5rem; color: #fff; border: 2px solid #fff; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; padding-left: 4px; transition: all 0.3s; }
.content-card:hover .play-icon { color: var(--color-yellow); border-color: var(--color-yellow); background: rgba(0,0,0,0.6); }
.card-info { padding: 10px 5px; }
.card-info h4 { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.card-info .meta { font-size: 0.8rem; color: var(--color-text-muted); }
.search-section { margin: -30px auto 30px; position: relative; z-index: 10; max-width: 800px; }
.search-bar-container { display: flex; align-items: center; background-color: rgba(0,0,0,0.8); border: 2px solid #333; padding: 5px 20px; border-radius: 50px; backdrop-filter: blur(10px); }
.search-bar-container:focus-within { border-color: var(--color-yellow); }
#mainSearch { flex: 1; background: transparent; border: none; color: #fff; font-size: 1.2rem; padding: 15px 10px; outline: none; }
.mylist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 25px 20px; padding-bottom: 50px; }
.mylist-grid .content-card { min-width: 0; max-width: 100%; }
body.searching-active #hero-section { opacity: 0.2; filter: blur(5px); pointer-events: none; }
.resume-card-wrapper { position: relative; }
.btn-remove-resume-absolute { position: absolute; top: 10px; right: 10px; background-color: rgba(0,0,0,0.7); color: #fff; border: 1px solid #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; opacity: 0; transition: all 0.3s; }
.resume-card-wrapper:hover .btn-remove-resume-absolute { opacity: 1; }
.btn-remove-resume-absolute:hover { background: var(--color-danger); border-color: var(--color-danger); }
.plans-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; padding-bottom: 80px; }
.plan-card { background-color: var(--color-bg-secondary); border-radius: 10px; padding: 30px; flex: 1; min-width: 300px; max-width: 380px; display: flex; flex-direction: column; position: relative; border: 1px solid #333; transition: transform 0.3s ease, border-color 0.3s ease; }
.plan-card:hover { transform: translateY(-10px); border-color: var(--color-yellow); }
.plan-card.featured { background: linear-gradient(145deg,#222,var(--color-bg-secondary)); border: 2px solid var(--color-yellow); transform: scale(1.05); }
.plan-card.featured:hover { transform: scale(1.05) translateY(-10px); }
.popular-tag { position: absolute; top: -15px; right: 20px; background-color: var(--color-yellow); color: var(--color-bg-main); padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.8rem; }
.plan-header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.plan-header h3 { font-size: 1.8rem; margin-bottom: 10px; }
.plan-header .price { font-size: 2.5rem; font-weight: 700; color: var(--color-yellow); line-height: 1; }
.plan-header .period { font-size: 1rem; color: var(--color-text-muted); font-weight: 400; margin-top: 5px; }
.plan-features { flex-grow: 1; margin-bottom: 30px; }
.plan-features li { margin-bottom: 15px; font-size: 0.95rem; }
.plan-features li.unavailable { color: var(--color-text-muted); text-decoration: line-through; opacity: 0.6; }
.plan-footer { text-align: center; }
.plan-footer .btn { width: 100%; }
.current-plan { opacity: 0.7; }
.dur-btn { background: none; border: none; color: #fff; padding: 10px 20px; border-radius: 25px; cursor: pointer; font-weight: 600; transition: all 0.3s; }
.dur-btn.active { background: var(--color-yellow); color: #000; }
.discount-badge { font-size: 0.7rem; background: #ff4d4d; color: white; padding: 2px 5px; border-radius: 10px; margin-left: 5px; vertical-align: super; }
.watch-hero { min-height: 60vh; display: flex; align-items: flex-end; padding-bottom: 40px; background-size: cover; background-position: center top; margin-top: -66px; padding-top: 100px; }
.watch-hero-content { max-width: 900px; margin: 0 auto; }
.watch-header .main-title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.watch-header .sub-title { font-size: 1.4rem; font-weight: 400; color: #ddd; margin-bottom: 20px; }
.meta-tags { display: flex; gap: 10px; margin-bottom: 25px; }
.watch-synopsis { font-size: 1.1rem; line-height: 1.6; color: #ccc; margin-bottom: 30px; max-width: 700px; }
.watch-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.theater-mode { background: #000; padding: 30px 0 60px; scroll-margin-top: 66px; }
.video-area-constrained { max-width: 1000px; margin: 0 auto; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background: #111; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 40px rgba(0,0,0,0.6); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #666; flex-direction: column; }
.video-controls-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 15px; }
.control-link, .control-btn { padding: 8px 16px; background: #222; color: #fff; border-radius: 4px; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #333; }
.control-link:hover, .control-btn:hover { background: #333; border-color: #666; }
.control-link.next { background: var(--color-yellow); color: #000; border-color: var(--color-yellow); font-weight: 700; }
.control-link.next:hover { background: var(--color-yellow-hover); }
.episodes-section-top { margin-bottom: 30px; padding: 25px; background: #111; border-radius: 10px; }
.seasons-nav { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.seasons-nav::-webkit-scrollbar { display: none; }
.season-pill { padding: 8px 20px; background: #222; color: #999; border-radius: 30px; font-size: 0.9rem; white-space: nowrap; transition: all 0.2s; cursor: pointer; }
.season-pill.active, .season-pill:hover { background: var(--color-yellow); color: #000; font-weight: 700; }
.episodes-horizontal-scroll { display: flex; gap: 15px; overflow-x: auto; padding: 15px 0 5px; scrollbar-color: #444 #1a1a1a; scrollbar-width: thin; }
.episode-card-mini { min-width: 150px; max-width: 150px; background: #222; padding: 15px; border-radius: 8px; display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: #ccc; transition: all 0.2s; position: relative; border: 1px solid transparent; }
.episode-card-mini:hover { background: #333; color: #fff; transform: translateY(-2px); }
.episode-card-mini.active { background: #2a2a2a; border-color: var(--color-yellow); color: var(--color-yellow); }
.ep-num { font-weight: 700; font-size: 1.1rem; }
.ep-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.85rem; opacity: 0.8; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 2px solid #333; overflow-x: auto; }
.tab-btn { background: none; border: none; color: #999; padding: 15px 25px; cursor: pointer; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.tab-btn.active { color: var(--color-yellow); border-bottom: 3px solid var(--color-yellow); }
.admin-section { display: none; background: var(--color-bg-secondary); padding: 30px; border-radius: 10px; animation: fadeIn 0.3s ease; }
.admin-section.active-tab { display: block; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th { background: #222; color: var(--color-yellow); padding: 15px; text-align: left; font-weight: 600; }
.admin-table td { padding: 15px; border-bottom: 1px solid #2a2a2a; vertical-align: middle; }
.modal { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-content { background: #1a1a1a; padding: 40px; width: 90%; max-width: 550px; border-radius: 12px; position: relative; max-height: 90vh; overflow-y: auto; border: 1px solid #333; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #666; transition: color 0.3s; }
.close-modal:hover { color: #fff; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Responsive --- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .brand-col { grid-column: 1 / -1; text-align: center; }
    .footer-desc { margin: 0 auto 25px; }
    .footer-social { justify-content: center; }
}
@media (max-width: 768px) {
    .container { width: 95%; }
    .burger-menu { display: flex; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: rgba(10,10,10,0.98); padding-top: 80px; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; align-items: flex-start; padding: 0 30px; gap: 20px; width: 100%; }
    .main-nav ul li { width: 100%; }
    .main-nav a { font-size: 1.2rem; display: block; padding: 10px 0; border-bottom: 1px solid #222; width: 100%; }
    .auth-buttons { flex-direction: column; width: 100%; gap: 15px; margin-top: 20px; }
    .btn-nav { text-align: center; padding: 12px; font-size: 1rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-dashboard { height: auto; padding: 120px 0 60px; margin-top: 0; }
    .watch-hero { padding-top: 100px; padding-bottom: 30px; min-height: auto; }
    .watch-header .main-title { font-size: 2.2rem; }
    .video-controls-top { flex-direction: column; align-items: stretch; }
    .nav-controls { justify-content: space-between; }
    .secondary-controls { justify-content: center; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
/* --- NOUVEAU STYLE PUB ANIME --- */
.anime-promo-banner {
    background: linear-gradient(to right, #1a1a1a, #222);
    border-left: 4px solid var(--color-orange);
    padding: 15px 30px;
    margin: -30px auto 40px; /* Remonte légèrement vers le hero */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 850px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

/* Effet de survol */
.anime-promo-banner:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(255, 127, 80, 0.1); /* Légère lueur orange */
    background: linear-gradient(to right, #222, #2a2a2a);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-tag {
    background: var(--color-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.promo-text {
    color: #eee;
    font-size: 1rem;
    font-weight: 500;
}

.promo-icon {
    font-size: 1.8rem;
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(5deg); }
}

/* Adaptation mobile pour la pub */
@media (max-width: 600px) {
    .anime-promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
        margin-top: 20px; /* Plus d'espace sur mobile */
    }
    .promo-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- LANDING PAGE : TIMELINE MISES À JOUR --- */
.site-updates-section {
    padding: 80px 0;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid #222;
}

.updates-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Ligne verticale centrale */
.updates-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px; /* Position de la ligne */
    width: 2px;
    background: #333;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-date {
    width: 100px;
    text-align: right;
    padding-right: 20px;
    color: var(--color-yellow);
    font-weight: 700;
    font-size: 0.9rem;
    padding-top: 5px;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    border: 3px solid var(--color-yellow);
    position: absolute;
    left: 113px; /* Ajusté pour centrer sur la ligne de 120px */
    top: 5px;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    margin-left: 40px;
    background: var(--color-bg-main);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
    border-color: #444;
}

.timeline-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.update-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
}
.badge-feature { background: var(--color-yellow); color: #000; }
.badge-design { background: #9c27b0; color: #fff; }
.badge-fix { background: #4CAF50; color: #fff; }

/* Responsive Timeline */
@media (max-width: 600px) {
    .updates-timeline::before { left: 20px; }
    .timeline-item { flex-direction: column; padding-left: 40px; }
    .timeline-date { width: auto; text-align: left; margin-bottom: 5px; }
    .timeline-marker { left: 13px; top: 8px; }
    .timeline-content { margin-left: 0; }
}


/* ================================================================
================================================================
                DÉBUT ANIMATION ZUPLOAD
================================================================
================================================================
*/

/*
    NOTE : Ces règles s'ajoutent à votre 'body' existant.
    Votre 'body' définit 'display: flex', etc.
    Ceci ajoute 'height: 100%' et 'overflow: hidden'
    pour préparer l'animation.
*/
html, body {
    height: 100%;
    /* 'overflow: hidden' est ajouté ici pour l'état initial.
      Il sera remplacé par 'overflow: auto' par la classe .loaded
    */
    overflow: hidden; 
}

/* L'écran de démarrage en plein écran */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fond noir */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Doit être au-dessus de tout */
    opacity: 1;
    transition: opacity 0.8s ease-out;
    /* Utilise la police spéciale 'Inter' pour le logo */
    font-family: 'Inter', sans-serif;
}

.logo-container {
    display: flex;
    font-size: 10vw; /* Taille responsive */
    font-weight: 900;
    letter-spacing: -0.05em; 
    white-space: nowrap;
}

.logo-z {
    color: var(--color-yellow); /* Utilise votre variable CSS */
    animation: z-intro 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.logo-upload {
    color: #FFFFFF;
    display: inline-block;
    position: relative; 
}

.logo-upload span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: letter-reveal 0.5s ease-out forwards;
}

/* Délais pour l'apparition des lettres */
.logo-upload span:nth-child(1) { animation-delay: 0.7s; }
.logo-upload span:nth-child(2) { animation-delay: 0.75s; }
.logo-upload span:nth-child(3) { animation-delay: 0.8s; }
.logo-upload span:nth-child(4) { animation-delay: 0.85s; }
.logo-upload span:nth-child(5) { animation-delay: 0.9s; }
.logo-upload span:nth-child(6) { animation-delay: 0.95s; }

/* Le conteneur principal de votre site (l'ID que nous avons
    ajouté à votre balise <main> dans header.php)
*/
#main-content {
    display: none; /* Caché par défaut */
    opacity: 0;
    transition: opacity 0.5s ease-in;
}


/* --- STYLES D'ANIMATION TERMINÉE (via JS) --- */

body.loaded #splash-screen {
    opacity: 0;
    pointer-events: none; /* Permet de cliquer "à travers" */
}
body.loaded #main-content {
    /* Rétablit l'affichage. La règle .main-content { flex: 1 }
       de votre CSS original fonctionnera maintenant.
    */
    display: block; 
    opacity: 1;
}
body.loaded {
    overflow: auto; /* Réactive le défilement */
}


/* --- STYLES POUR SAUTER L'ANIMATION (via JS) --- */

body.skip-animation #splash-screen {
    display: none; /* Cache instantanément */
}
body.skip-animation #main-content {
    display: block;
    opacity: 1;
}
body.skip-animation {
    overflow: auto; /* Réactive le défilement instantanément */
}


/* --- KEYFRAMES (Les animations) --- */

@keyframes z-intro {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(15deg);
        text-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    40% {
        opacity: 1;
        text-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }
}

@keyframes letter-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================================================
                FIN ANIMATION ZUPLOAD
================================================================
*/