@import url('theme.css');


.article-layout {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* CONTENU ARTICLE */
.article-main {
    flex: 1 1 650px;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.article-title {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    color: #111;
}

.article-intro {
    font-style: italic;
    color: #444;
    margin-bottom: 1.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
.article-meta i {
    margin-right: 9px;
    color: #e05a4f;
}

.article-meta span{
    font-size: 1.4rem;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}
.article-image img {
    max-width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}
.article-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.article-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}
.article-text strong {
    color: #e05a4f;
}

/* BOUTON RETOUR */
.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    color: #e05a4f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.back-button i {
    margin-right: 6px;
}
.back-button:hover {
    color: #b7423a;
}

/* SECTION COMMENTAIRES */
.comments-section {
    max-width: 700px;
    margin: 50px auto;
    padding: 2rem;
    background: #f9f9f9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.comments-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #222;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}
.comment-form .form-group-name {
    display: flex;
    gap: 10px;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.comment-form input,
.comment-form textarea {
    width: 98%;
    padding: 2rem 0.75rem;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: border 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #b7423a;
    outline: none;
}

/* Couleur du placeholder dans les inputs et textarea */
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    font-size: 1.6rem;
    color: #a3a3a3;
    opacity: 1; /* Pour garantir la couleur sur tous les navigateurs */
}

.submit-btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    background-color: #ef2d1f;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background-color: #fd1302;
}

/* Responsive */
@media (max-width: 600px) {
    .comments-section {
        padding: 1rem;
    }
}


/* SIDEBAR */
.article-sidebar {
    flex: 1 1 200px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}


.sidebar-section ul {
    list-style: none;
}

.sidebar-section ul li {
    margin-bottom: 0.75rem;
}

.sidebar-section ul li a {
    color: #e05a4f;
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-section ul li a:hover {
    color: #b7423a;
}

/* SHARE ICONS */
.social-share a {
    font-size: 1.8rem;
    margin-right: 1rem;
    color: #555;
    transition: transform 0.2s, color 0.2s;
}
.social-share a:hover {
    transform: scale(1.1);
    color: #e05a4f;
}

.recent-articles {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.recent-articles li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.recent-articles li a:hover {
    color: #e05a4f;
}

.recent-articles img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.recent-articles span {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #444;
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
    }
    .article-sidebar {
        margin-top: 2rem;
    }
    .article-title {
        font-size: 1.8rem;
    }
}
