body{
    margin:0;
    padding:0;

    font-family:Arial,sans-serif;

    background:#f4f7f5;
    color:#1f2937;
}

/* SECTION */

.blog-section{
    max-width:1200px;
    margin:60px auto;
    padding:20px;
}

.blog-section h2{
    text-align:center;
    font-size:38px;
    color:#14532d;
    margin-bottom:40px;
}

.back-link{
    display:inline-flex;
    align-items:center;
    gap:8px;

    margin-top:25px;

    padding:12px 18px;

    background:#f3f4f6;

    border-radius:12px;

    text-decoration:none;

    color:#374151;

    font-weight:600;

    transition:0.2s;
}

.back-link:hover{
    background:#dcfce7;
    color:#166534;

    transform:translateX(-2px);
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    text-decoration: none;
    color: #2563eb;
}

/* CARD */

/* =========================
   BLOG CARD MODERNE
========================= */

.blog-card{
    background:white;
    border-radius:26px;
    overflow:hidden;
    margin-bottom:40px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.06);

    transition:transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover{
    transform:translateY(-6px);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.10);
}

/* IMAGE */
.blog-image{
    width:100%;
    height:380px;
    object-fit:cover;
}

/* CONTENT */
.blog-content{
    padding:28px;
}

/* DATE CHIP */
.blog-date{
    display:inline-flex;
    align-items:center;
    gap:6px;

    font-size:13px;
    font-weight:600;

    color:#14532d;
    background:#e8f5ee;

    padding:6px 12px;
    border-radius:999px;

    margin-bottom:15px;
}

/* TITRE */
.blog-title{
    font-size:30px;
    color:#14532d;
    margin-bottom:15px;
    line-height:1.2;
}

/* INTRO */
.blog-intro{
    font-size:16px;
    line-height:1.8;
    color:#374151;

    padding:14px 0;
    border-left:4px solid #14532d;
    padding-left:14px;
    margin-bottom:20px;
}

/* CONTENU COMPLET */
.blog-full{
    max-height:0;
    overflow:hidden;

    transition:max-height .5s ease, margin-top .3s ease;
}

.blog-card.active .blog-full{
    max-height:20000px;
    margin-top:20px;
}

/* CONTENU RICHE */
.blog-full img{
    max-width:100%;
    height:auto;
    display:block;
    border-radius:14px;
    margin:20px 0;
}

.blog-full h2,
.blog-full h3{
    color:#14532d;
    margin-top:25px;
}

.blog-full p{
    line-height:1.8;
    color:#1f2937;
}

/* BUTTON */
.read-more{
    margin-top:20px;

    background:linear-gradient(135deg,#14532d,#1f5c3a);
    color:white;

    border:none;
    padding:14px 20px;

    border-radius:14px;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;

    transition:.2s;
}

.read-more:hover{
    transform:translateY(-2px);
}

/* =========================
   BADGES
========================= */

.badge-coming{
    display:inline-block;
    margin-top:12px;

    padding:6px 12px;
    border-radius:12px;

    font-size:13px;
    font-weight:700;

    background:#f59e0b;
    color:white;
}

.badge-live{
    display:inline-block;
    margin-top:12px;

    padding:6px 12px;
    border-radius:12px;

    font-size:13px;
    font-weight:700;

    background:#22c55e;
    color:white;
}

/* ADMIN */

.admin-container{
    max-width:1000px;
    margin:50px auto;

    background:white;

    padding:40px;

    border-radius:24px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.08);
}

.admin-container h1{
    margin-bottom:30px;
    color:#14532d;
}

.admin-container input,
.admin-container textarea{
    width:100%;

    padding:15px;

    margin-bottom:20px;

    border:1px solid #d1d5db;

    border-radius:14px;

    font-size:16px;
}

.admin-container textarea{
    min-height:120px;
}

.upload-label{
    display:block;
    margin-bottom:10px;
    font-weight:bold;
}

.admin-container button{
    background:#14532d;
    color:white;

    border:none;

    padding:15px 25px;

    border-radius:14px;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;

    transition:.25s;
}

.admin-container button:hover{
    background:#1f5c3a;
}

/* MOBILE */

@media(max-width:700px){

    .blog-image{
        height:220px;
    }

    .blog-title{
        font-size:24px;
    }

    .admin-container{
        margin:20px;
        padding:20px;
    }
}


.admin-card{
    background:white;
    padding:20px;
    margin:15px 0;
    border-radius:16px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.admin-actions{
    margin-top:10px;
    display:flex;
    gap:10px;
}

.btn-new{
    display:inline-block;
    margin-bottom:20px;
    padding:10px 15px;
    background:#14532d;
    color:white;
    border-radius:12px;
    text-decoration:none;
}

.btn-edit{
    padding:8px 12px;
    background:#2563eb;
    color:white;
    border-radius:10px;
    text-decoration:none;
}

.btn-delete{
    padding:8px 12px;
    background:#dc2626;
    color:white;
    border-radius:10px;
    text-decoration:none;
}
.badge-future{
    display:inline-block;
    margin-top:10px;
    padding:6px 10px;
    background:#f59e0b;
    color:white;
    border-radius:10px;
    font-size:13px;
    font-weight:bold;
}

/* =========================
   LOGIN PAGE
========================= */

.login-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.login-box{
    width:340px;
    background:white;

    padding:35px;

    border-radius:22px;

    box-shadow:0 10px 35px rgba(0,0,0,0.12);

    text-align:center;
}

.login-box h2{
    color:#14532d;
    margin-bottom:25px;
    font-size:26px;
}

.login-box input{
    width:100%;

    padding:14px;

    margin-bottom:15px;

    border:1px solid #d1d5db;

    border-radius:12px;

    font-size:15px;

    outline:none;

    transition:0.2s;
}

.login-box input:focus{
    border-color:#14532d;
    box-shadow:0 0 0 3px rgba(20,83,45,0.15);
}

.login-box button{
    width:100%;

    padding:14px;

    background:#14532d;
    color:white;

    border:none;

    border-radius:12px;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;

    transition:0.2s;
}

.login-box button:hover{
    background:#1f5c3a;
    transform:translateY(-2px);
}

/* =========================
   ADMIN UI GLOBAL
========================= */

.btn-new{
    display:inline-block;

    margin-bottom:20px;

    padding:10px 15px;

    background:#14532d;
    color:white;

    border-radius:12px;

    text-decoration:none;

    font-weight:bold;

    transition:0.2s;
}

.btn-new:hover{
    background:#1f5c3a;
    transform:translateY(-2px);
}

.btn-edit{
    padding:8px 12px;

    background:#2563eb;
    color:white;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;

    transition:0.2s;
}

.btn-edit:hover{
    background:#1d4ed8;
}

.btn-delete{
    padding:8px 12px;

    background:#dc2626;
    color:white;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;

    transition:0.2s;
}

.btn-delete:hover{
    background:#b91c1c;
    transform:scale(1.05);
}
/* =========================
   ADMIN CARDS
========================= */

.admin-card{
    background:white;

    padding:20px;

    margin:15px 0;

    border-radius:18px;

    box-shadow:0 6px 20px rgba(0,0,0,0.08);

    transition:0.2s;
}

.admin-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
}

.admin-card h3{
    color:#14532d;
    margin-bottom:8px;
}

.admin-card p{
    color:#6b7280;
    font-size:14px;
}
/* =========================
   ACTIONS BAR
========================= */

.admin-actions{
    margin-top:12px;

    display:flex;
    gap:10px;
    align-items:center;
}

/* =========================
   BADGE FUTUR / SECURITE
========================= */

.badge-future{
    display:inline-block;

    margin-top:10px;

    padding:6px 12px;

    background:#f59e0b;
    color:white;

    border-radius:999px;

    font-size:12px;
    font-weight:bold;
}

.badge-live{
    display:inline-block;

    margin-top:10px;

    padding:6px 12px;

    background:#22c55e;
    color:white;

    border-radius:999px;

    font-size:12px;
    font-weight:bold;
}
/* =========================
   LOGOUT BUTTON
========================= */

.logout{
    display:inline-block;

    margin-left:10px;

    padding:8px 12px;

    background:#ef4444;
    color:white;

    border-radius:10px;

    text-decoration:none;

    font-size:14px;

    transition:0.2s;
}

.logout:hover{
    background:#dc2626;
    transform:scale(1.05);
}
.admin-container{
    animation:fadeIn .3s ease;
}

@keyframes fadeIn{
    from{opacity:0; transform:translateY(10px);}
    to{opacity:1; transform:translateY(0);}
}

/* =========================
   COMMENTAIRES
========================= */

.comments-section{

    margin-top:25px;

    padding-top:20px;

    border-top:1px solid #ddd;
}

.comment{

    background:#f8f8f8;

    padding:15px;

    border-radius:10px;

    margin-bottom:15px;
}

.comment-author{

    font-weight:bold;

    margin-bottom:5px;
}

.comment-date{

    font-size:12px;

    color:#777;

    margin-bottom:10px;
}

.comment-text{

    line-height:1.5;
}

.comment-form{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:20px;
}

.comment-form input,
.comment-form textarea{

    padding:12px;

    border:1px solid #ccc;

    border-radius:8px;

    font-family:inherit;
}

.comment-form textarea{

    min-height:120px;

    resize:vertical;
}

.comment-form button{

    background:#2ecc71;

    color:white;

    border:none;

    padding:12px;

    border-radius:8px;

    cursor:pointer;
}

.comment-form button:hover{

    background:#27ae60;
}

.success-message{

    background:#dff0d8;

    color:#3c763d;

    padding:15px;

    border-radius:10px;

    margin-bottom:20px;
}

.admin-reply{
    margin-top:15px;
    margin-left:25px;

    padding:15px;

    background:#ecfdf5;

    border-left:4px solid #22c55e;

    border-radius:12px;
}

.admin-reply-title{
    font-weight:bold;
    color:#166534;
    margin-bottom:8px;
}

.admin-reply-text{
    line-height:1.7;
    color:#1f2937;
}

.comments-section{

    max-height:0;
    overflow:hidden;

    transition:max-height .4s ease;

    margin-top:0;
}

.comments-section.open{

    max-height:3000px;

    margin-top:25px;
}

.toggle-comments{

    margin-top:25px;

    background:#f3f4f6;
    border:none;

    padding:12px 18px;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;

    transition:.2s;
}

.toggle-comments:hover{

    background:#dcfce7;
} 