/* RESET */
* { 
    margin:0; 
    padding:0; 
    box-sizing:border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color:#1a1a1a;
    color:white;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

/* HEADER */
header {
    position:fixed;
    top:0; left:0; right:0;
    z-index:1000;
    background: rgba(26, 26, 26, 0);
    backdrop-filter: blur(10px);
    border-bottom:1px solid rgba(255, 255, 255, 0);
}

nav {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:1rem 2rem;
    max-width:1200px;
    margin:0 auto;
}

.logo {
    font-size:1.5rem;
    font-weight:700;
    color:#ff6b9d;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:0.5rem;
    z-index:10;
}

.nav-links {
    display:flex;
    list-style:none;
    gap:2rem;
}

.nav-links a {
    color:#ccc;
    text-decoration:none;
    font-weight:500;
    transition:color 0.3s ease;
    position:relative;
}

.nav-links a:hover,
.nav-links a.active { 
    color:#ff6b9d; 
}

.nav-links a.active::after {
    content:'';
    position:absolute;
    bottom:-5px; left:0; right:0;
    height:2px;
    background:#ff6b9d;
}

.mobile-menu-btn { 
    display:none; 
    background:none; 
    border:none; 
    color:white; 
    font-size:1.5rem; 
    cursor:pointer; 
}

/* PAGE CONTENT */
.page-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    flex:1;
    position:relative;
    padding-top:120px;
    z-index:1;
}

/* BACKGROUND ANIMÉ */
.background {
    position:fixed;
    top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,119,198,0.15) 0%, transparent 50%);
    z-index:0;
}

.particles {
    position:fixed;
    top:0; left:0; width:100%; height:100%;
    overflow:hidden;
    pointer-events:none;
    z-index:0;
}

.particle {
    position:absolute;
    background: rgba(255,255,255,0.1);
    border-radius:50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1){width:3px;height:3px;top:20%;left:20%;animation-delay:0s;}
.particle:nth-child(2){width:2px;height:2px;top:40%;left:80%;animation-delay:2s;}
.particle:nth-child(3){width:4px;height:4px;top:80%;left:30%;animation-delay:4s;}
.particle:nth-child(4){width:2px;height:2px;top:60%;left:70%;animation-delay:1s;}
.particle:nth-child(5){width:3px;height:3px;top:30%;left:50%;animation-delay:3s;}

@keyframes float {
    0%,100%{transform:translateY(0px) rotate(0deg); opacity:1;}
    50%{transform:translateY(-20px) rotate(180deg); opacity:0.5;}
}

/* CONTAINER PRINCIPAL */
.container { 
    text-align:center; 
    z-index:10; 
    max-width:900px; 
    padding:0 20px; 
    width:100%;
}

/* TITRE DE PAGE */
.page-title {
    color:#ff6b9d; 
    font-size:3rem; 
    margin-bottom:3rem;
    font-weight:700;
    text-align:center;
}

/* BLOG LIST CENTRÉ */
.blog-list {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2rem;
    width:100%;
    margin:0 auto;
}

/* ARTICLE */
.blog-card {
    background: rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:12px;
    padding:1.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width:100%;
    max-width:800px;
    text-align:left;
    cursor:pointer;
    color:white;
    text-decoration:none;
    display:block;
    margin:0 auto;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,107,157,0.2);
}

.blog-card h2 { 
    color:#ff6b9d; 
    font-size:1.8rem; 
    margin-bottom:0.5rem; 
}

.blog-card .meta { 
    font-size:0.9rem; 
    color:#aaa; 
    margin-bottom:1rem; 
}

.blog-card .excerpt { 
    font-size:1rem; 
    color:#ddd; 
    line-height:1.6; 
}

/* PAGINATION */
.pagination {
    display:flex;
    gap:1rem;
    margin-top:3rem;
    justify-content:center;
    align-items:center;
}

.pagination a {
    color:#ccc;
    padding:0.5rem 1rem;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:8px;
    text-decoration:none;
    transition: all 0.3s ease;
    min-width:40px;
    text-align:center;
}

.pagination a:hover, 
.pagination a.active {
    background:#ff6b9d;
    color:white;
    border-color:#ff6b9d;
}

.pagination .prev, 
.pagination .next {
    font-weight:600;
}

.pagination .disabled {
    opacity:0.5;
    cursor:not-allowed;
    pointer-events:none;
}

/* FOOTER */
footer {
    text-align:center;
    padding:15px;
    font-size:14px;
    color:#666;
    margin-top:auto;
    position:relative;
    background:none;
    z-index:10;
}

footer::before{
    content:'';
    display:block;
    width:10%;
    height:1px;
    background-color:#444;
    margin:0 auto 5px auto;
}

/* RESPONSIVE */
@media(max-width:768px){
    nav{
        padding:1rem;
    }
    
    .nav-links{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:rgba(26,26,26,0.98);
        flex-direction:column;
        padding:1rem;
        gap:1rem;
    }
    
    .nav-links.active{
        display:flex;
    }
    
    .mobile-menu-btn{
        display:block;
    }
    
    .container{
        padding:0 15px;
    }
    
    .blog-card{
        padding:1rem;
    }
    
    .blog-card h2{
        font-size:1.5rem;
    }
    
    .page-title{
        font-size:2rem;
    }
    
    footer::before{
        width:20%;
    }
}