:root {

    --blue-dark:#0A2540;
    --blue-light:#1E88E5;

    --white:#FFFFFF;

    --background:#F5F7FA;
}

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

body{

    font-family:'Inter',sans-serif;
    background:var(--background);

    color:#222;
}

.navbar{

    background:var(--blue-dark);

    color:white;

    padding:20px;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.logo{

    font-size:24px;

    font-family:'Merriweather',serif;
}

.menu{

    display:flex;

    gap:20px;

    list-style:none;
}

.menu a{

    color:white;

    text-decoration:none;
}

.container{

    max-width:1400px;

    margin:auto;

    padding:30px;

    display:grid;

    grid-template-columns:3fr 1fr;

    gap:30px;
}

.article-card{

    background:white;

    margin-bottom:25px;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 0 10px rgba(0,0,0,.08);
}

.article-card img{

    width:100%;

    height:350px;

    object-fit:cover;
}

.content{

    padding:20px;
}

.sidebar .card{

    background:white;

    padding:20px;

    margin-bottom:20px;

    border-radius:12px;
}

.sidebar input{

    width:100%;

    padding:10px;

    margin-bottom:10px;
}

.sidebar button{

    width:100%;

    padding:10px;

    border:none;

    background:var(--blue-light);

    color:white;
}

footer{

    background:var(--blue-dark);

    color:white;

    text-align:center;

    padding:20px;
}

.article-container {

    max-width: 1000px;

    margin: 50px auto;

    background: white;

    padding: 40px;

    border-radius: 12px;
}

.article-container h1 {

    font-size: 42px;

    margin-bottom: 20px;
}

.article-container img {

    width: 100%;

    margin: 30px 0;

    border-radius: 12px;
}

.meta {

    color: #666;

    margin-bottom: 20px;
}

.contenu {

    line-height: 1.8;

    font-size: 18px;
}

/* ===================== */
/* ADMIN */
/* ===================== */

.admin-container{

    max-width:1200px;

    margin:40px auto;

    background:white;

    padding:40px;

    border-radius:15px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.admin-container h1{

    margin-bottom:30px;

    color:var(--blue-dark);

    font-family:'Merriweather',serif;
}

.admin-container form{

    display:flex;

    flex-direction:column;

    gap:15px;
}

.admin-container input,
.admin-container textarea,
.admin-container select{

    width:100%;

    padding:15px;

    border:1px solid #d6dce5;

    border-radius:10px;

    font-size:15px;
}

.admin-container textarea{

    resize:vertical;
}

.admin-container button{

    padding:15px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:var(--blue-light);

    color:white;

    font-size:16px;

    font-weight:600;

    transition:.3s;
}

.admin-container button:hover{

    transform:translateY(-2px);

    opacity:.9;
}

.admin-container label{

    display:flex;

    align-items:center;

    gap:10px;
}
.success-message{

    background:#d4edda;

    color:#155724;

    padding:15px;

    border-radius:10px;

    margin-bottom:20px;
}

table{

    width:100%;

    margin-top:20px;

    border-collapse:collapse;

    background:white;
}

th,
td{

    padding:15px;

    border-bottom:1px solid #ddd;

    text-align:left;
}

/* ========================= */
/* PAGES CATEGORIES */
/* ========================= */

.category-header{

    margin-top:30px;

    background: linear-gradient(
        135deg,
        #0A2540,
        #1E4E79
    );

    color:white;

    padding:60px 40px;

    border-radius:15px;

    margin-bottom:40px;
}

.category-header h1{

    font-size:42px;

    margin-bottom:10px;

    font-family:'Merriweather', serif;
}

.category-header p{

    opacity:.9;

    font-size:18px;
}

.articles-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(350px,1fr));

    gap:25px;
}

.category-card{

    background:white;

    border-radius:15px;

    overflow:hidden;

    box-shadow:
    0 4px 15px rgba(0,0,0,.08);
}

.category-card:hover{

    transform:translateY(-5px);

    box-shadow:
    0 10px 25px rgba(0,0,0,.15);
}

.category-content{

    padding:25px;
}

.category-content h2{

    font-size:24px;

    margin-bottom:10px;

    color:#0A2540;

    font-family:'Merriweather', serif;
}

.category-content p{

    color:#555;

    line-height:1.6;

    margin-bottom:20px;
}

.category-content a{

    display:inline-block;

    padding:10px 20px;

    background:#1E4E79;

    color:white;

    border-radius:8px;

    text-decoration:none;

    transition:.3s;
}

.category-content a:hover{

    background:#0A2540;
}

.badge-premium{

    display:inline-block;

    background:#FFD700;

    color:#000;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:bold;

    margin-bottom:10px;
}
.category-card img {

    width:100%;

    height:220px;

    object-fit:cover;

    border-bottom:
    1px solid #e5e5e5;
}

.category-page main{

    width:100%;
}

.category-page{

    max-width:1400px;

    margin:auto;

    padding:30px;
}


/* PREMIUM LOCK */
.premium-lock{

    max-width:800px;

    margin:80px auto;

    background:white;

    padding:50px;

    border-radius:15px;

    text-align:center;

    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.premium-lock h1{

    color:#0A2540;

    margin-bottom:20px;
}

.premium-lock p{

    margin-bottom:20px;

    font-size:18px;
}

.premium-actions{

    margin-top:30px;
}

.btn-premium{

    display:inline-block;

    padding:15px 25px;

    background:#1E88E5;

    color:white;

    text-decoration:none;

    border-radius:10px;

    margin-right:10px;
}

.btn-premium-secondary{

    display:inline-block;

    padding:15px 25px;

    background:#0A2540;

    color:white;

    text-decoration:none;

    border-radius:10px;
}


/* DESIGN DE PROFIL */
.profile-container{

    max-width:900px;

    margin:50px auto;

    background:white;

    padding:40px;

    border-radius:15px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.profile-container h1{

    margin-bottom:30px;

    color:#0A2540;
}

.profile-container form{

    display:flex;

    flex-direction:column;

    gap:15px;
}

.profile-container input{

    padding:15px;

    border:1px solid #d6dce5;

    border-radius:10px;
}

.profile-container button{

    background:#1E88E5;

    color:white;

    border:none;

    padding:15px;

    border-radius:10px;

    cursor:pointer;
}

.profile-subscription{

    margin-top:40px;

    padding-top:30px;

    border-top:1px solid #ddd;
}

/* ABONNEMENT */
/* ===================== */
/* ABONNEMENTS */
/* ===================== */

/* ===================== */
/* ABONNEMENTS */
/* ===================== */

.subscription-page{

    max-width:1400px;

    margin:auto;

    padding:30px;
}

.subscription-header{

    background:
    linear-gradient(
        135deg,
        var(--blue-dark),
        var(--blue-light)
    );

    color:white;

    padding:60px;

    border-radius:15px;

    margin-bottom:40px;

    text-align:center;
}

.subscription-header h1{

    font-size:48px;

    margin-bottom:15px;

    font-family:'Merriweather',serif;
}

.subscription-header p{

    font-size:18px;

    max-width:800px;

    margin:auto;
}
.plans-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;
}

.plan-card{

    background:white;

    border-radius:15px;

    padding:35px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.08);

    transition:.3s;

    position:relative;
}

.plan-card:hover{

    transform:translateY(-5px);

    box-shadow:
    0 10px 25px rgba(0,0,0,.15);
}

.featured{

    border-top:
    6px solid var(--blue-light);
}

.badge{

    display:inline-block;

    background:#FFD700;

    color:black;

    padding:5px 10px;

    border-radius:20px;

    font-size:12px;

    font-weight:bold;

    margin-bottom:15px;
}

.plan-card h2{

    color:var(--blue-dark);

    margin-bottom:20px;
}

.price{

    font-size:52px;

    font-weight:bold;

    color:var(--blue-light);

    margin:20px 0;
}

.price span{

    font-size:16px;

    color:#666;
}

.plan-card ul{

    list-style:none;

    margin-top:20px;
}

.plan-card li{

    padding:10px 0;

    border-bottom:
    1px solid #eee;
}

.btn-plan{

    display:block;

    text-align:center;

    margin-top:25px;

    padding:15px;

    background:var(--blue-light);

    color:white;

    text-decoration:none;

    border-radius:10px;

    font-weight:600;
}

.btn-plan:hover{

    background:var(--blue-dark);
}