/* --- VARIABLES DE DESIGN --- */
:root {
    --primary: #a78567;
    --primary-dark: #a78567;
    --text-main: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

/* --- HERO SECTION --- */
.entry-hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
      
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1); /* Pour un effet de profondeur */
    
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/page-blog/hero.png') center/cover no-repeat;
     background-position: bottom;
    z-index: 1;
    filter: grayscale(50%);
    
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.entry-categories a {
    background: var(--primary);
    color: var(--white) !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

.entry-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 25px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.entry-meta {
    font-size: 16px;
    opacity: 0.9;
}

.meta-divider { margin: 0 10px; opacity: 0.5; }

/* --- CONTENEUR PRINCIPAL (Effet de chevauchement) --- */
.entry-wrapper {
    max-width: 800px;
    margin: -80px auto 60px; /* Remonte sur l'image */
    background: var(--white);
    position: relative;
    z-index: 10;
    padding: 60px 80px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- CONTENU DE L'ARTICLE --- */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-main);
}

.entry-content h2, .entry-content h3 {
    margin-top: 1.5em;
    color: #111;
}

.entry-content p { margin-bottom: 1.5em; }

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* --- FORMULAIRE DE COMMENTAIRES --- */
.entry-comments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

#respond {
    background: #fdfdfd;
    padding: 30px;
    border-radius: var(--radius);
}

.comment-reply-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Style des champs (comme demandé) */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 15px;
    background: #fff;
    transition: border 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 61, 189, 0.1);
}

.submit {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 14px 35px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.submit:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 61, 189, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .entry-wrapper {
        margin-top: -40px;
        padding: 30px 20px;
        border-radius: 0;
    }
    .entry-title { font-size: 1.8rem; }
    .entry-hero { height: 50vh; }
}
/* --- SECTION COMMENTAIRES --- */
.entry-comments {
    max-width: 850px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
}

#comments {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* --- LISTE DES COMMENTAIRES --- */
.commentlist {
    list-style: none;
    padding: 0;
    margin-bottom: 60px;
}

.comment {
    margin-bottom: 30px;
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.comment:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Header du commentaire */
.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-author .fn {
    font-size: 16px;
    font-weight: 700;
    color: #2f3dbd;
}

.comment-metadata a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

/* Contenu du texte */
.comment-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 15px 0;
}

.comment-awaiting-moderation {
    display: block;
    font-size: 13px;
    color: #d63031;
    margin-top: 10px;
    font-style: italic;
}

/* Bouton Répondre */
.reply a {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f2f5;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.reply a:hover {
    background: #2f3dbd;
    color: #fff;
}

/* --- FORMULAIRE (RESPOND) --- */
.comment-respond {
    background: #f9f9fb;
    padding: 35px;
    border-radius: 15px;
}

.comment-reply-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Champs de texte */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: #2f3dbd;
    background: #fff;
}

/* Labels */
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Checkbox Consent */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

/* Bouton Envoyer */
.form-submit .submit {
    background: #2f3dbd;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit .submit:hover {
    background: #1e2a9d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 61, 189, 0.3);
}

/* Mobile */
@media (max-width: 600px) {
    .entry-comments { padding: 20px; }
    .comment-meta { flex-direction: column; gap: 5px; }
}