body {
    overflow-x: hidden;
}

.article-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-layout {
    display: flex;
    gap: 30px;
}

.main-article {
    flex: 1;
    min-width: 0;
}

.article-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.date {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.date .view-count {
    float: right;
    font-size: 14px;
    color: #555;
}

.content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.share-buttons {
    margin-top: 30px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

.share-buttons h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.share-buttons .btn,
.share-buttons a.share-button {
    display: inline-block;
    margin: 5px 10px;
    padding: 8px 14px;
    border-radius: 5px;
    background: #ed5434;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.3s;
}

.share-buttons a.share-button.facebook {
    background: #3b5998;
}

.share-buttons a.share-button.twitter {
    background: #1da1f2;
}

.share-buttons .btn:hover,
.share-buttons a.share-button:hover {
    opacity: 0.9;
}

.admin-tools {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-tools .btn {
    padding: 8px 15px;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.admin-tools .btn-edit {
    background-color: #28a745;
}

.admin-tools .btn-edit:hover {
    background-color: #218838;
}

.admin-tools .btn-delete {
    background-color: #dc3545;
}

.admin-tools .btn-delete:hover {
    background-color: #c82333;
}

.admin-tools .btn-warning {
    background-color: #ffc107;
}

.admin-tools .btn-warning:hover {
    background-color: #e0a800;
}

.back-link-wrapper {
    overflow: auto; /* pour forcer le contenant à englober le float */
    margin-top: 40px;
    text-align: right; /* pour bien aligner le lien à droite */
}

.back-link {
    display: inline-block;
    padding: 10px 22px;
    background: #ed5434;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
}

.back-link:hover {
    background-color: #c03d28;
    transform: translateY(-2px);
}

hr {
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* Slider Slick */
.slider {
    width: 100%;
    min-width: 0;
}

.slider .slide {
    box-sizing: border-box;
    padding: 10px;
}

.slider .slide > a > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: left;
}

.slider .slide h4 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.slider .slide p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .article-content-container {
        width: 100%;
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
    .recent-articles-slider {
        display: none !important;
    }


    .main-article, .sidebar {
        width: 100%;
    }

    .slider .slide {
        padding: 5px !important;
        width: 100% !important;
    }

    .slider .slide > a > div {
        padding: 20px;
        min-height: 200px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-buttons h3 {
        text-align: left;
        margin-right: 0;
    }

    .share-button {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .admin-tools {
        position: static;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-tools .btn {
        width: 100%;
        text-align: center;
    }

    .back-link {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }
}