/* ========================================
   SINGLE POST & PAGE - NOUVELLE PALETTE
======================================== */

/* Container principal pour single post */
.single-post .container,
.single-page .container {}

/* En-tête de l'article */
.single-post .article-header,
.single-page .page-header {

    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem 0;
}

.single-post .article-title,
.single-page .page-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #293241;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #EE6C4D 0%, #ff8b6d 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.article-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.4);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #3D5A80;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.meta-icon {
    display: inline-flex;
    align-items: center;
}

.separator {
    opacity: 0.5;
}

/* Image à la une */
.article-featured-image,
.page-featured-image {
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(41, 50, 65, 0.15);
    border: 3px solid #E0FBFC;
}

.article-featured-image img,
.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenu de l'article */
.article-content,
.page-content-area,
.article-comments {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #293241;
}

/* Titres dans le contenu */
.article-content h2,
.page-content-area h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    color: #293241;
    border-bottom: 3px solid #98C1D9;
    padding-bottom: 0.5rem;
}

.article-content h3,
.page-content-area h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #3D5A80;
}

.article-content h4,
.page-content-area h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #3D5A80;
}

/* Paragraphes */
.article-content p,
.page-content-area p {
    margin-bottom: 1.5rem;
}

/* Liens dans le contenu */
.article-content a,
.page-content-area a {
    color: #3D5A80;
    text-decoration: underline;
    text-decoration-color: #98C1D9;
    text-decoration-thickness: 2px;
    transition: all 0.3s;
}

.article-content a:hover,
.page-content-area a:hover {
    color: #EE6C4D;
    text-decoration-color: #EE6C4D;
}

/* Images dans le contenu */
.article-content img,
.page-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(41, 50, 65, 0.12);
    border: 2px solid #E0FBFC;
}

/* Galerie WordPress */
.article-content .wp-block-gallery,
.page-content-area .wp-block-gallery {
    margin: 2rem auto;
    max-width: 800px;
}

.article-content .wp-block-gallery figure,
.page-content-area .wp-block-gallery figure {
    margin: 0;
}

/* Listes */
.article-content ul,
.article-content ol,
.page-content-area ul,
.page-content-area ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li,
.page-content-area li {
    margin-bottom: 0.5rem;
}

.article-content ul li::marker {
    color: #EE6C4D;
}

/* Blockquote */
.article-content blockquote,
.page-content-area blockquote {
    border-left: 4px solid #EE6C4D;
    background: linear-gradient(to right, #E0FBFC 0%, transparent 100%);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #3D5A80;
    border-radius: 0 12px 12px 0;
}

/* Tags */
.article-tags {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, #E0FBFC 0%, #ffffff 100%);
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    border: 2px solid #98C1D9;
}

.tags-label {
    font-weight: 600;
    color: #293241;
}

.tag-link {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    color: #3D5A80;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(41, 50, 65, 0.1);
    border: 2px solid #98C1D9;
}

.tag-link:hover {
    background: #EE6C4D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.3);
    border-color: #EE6C4D;
}

/* Auteur */
.article-author {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #E0FBFC 0%, #ffffff 100%);
    border-radius: 16px;
    align-items: center;
    border: 2px solid #98C1D9;
}

.author-avatar img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(41, 50, 65, 0.15);
    border: 3px solid #98C1D9;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #293241;
}

.author-bio {
    color: #3D5A80;
    line-height: 1.6;
}

/* Navigation entre articles */
.article-navigation {
    max-width: 800px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(41, 50, 65, 0.1);
    border: 2px solid #98C1D9;
}

.nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(238, 108, 77, 0.2);
    border-color: #EE6C4D;
}

.nav-label {
    font-size: 0.875rem;
    color: #3D5A80;
    font-weight: 600;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #293241;
}

.nav-next {
    text-align: right;
}

/* Commentaires */
.comments-area {
    max-width: 800px;
    margin: 3rem auto;
    padding-top: 3rem;
    border-top: 2px solid #98C1D9;
}

.comments-title,
.comment-reply-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #293241;
}

.comment-list {
    list-style: none;
    padding: 0 50px;
}

.comment-body {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #E0FBFC 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #98C1D9;
}

.comment-author-avatar img {
    border-radius: 50%;
    border: 2px solid #98C1D9;
}

.comment-content-wrap {
    flex: 1;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #293241;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #3D5A80;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #EE6C4D;
}

.comment-content {
    line-height: 1.6;
    color: #293241;
}

/* Formulaire de commentaire */
.comment-form {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #E0FBFC 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #98C1D9;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #98C1D9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #EE6C4D;
    box-shadow: 0 0 0 3px rgba(238, 108, 77, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form .submit,
.comment-form .submit-button {
    background: linear-gradient(135deg, #EE6C4D 0%, #ff8b6d 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.3);
}

.comment-form .submit:hover,
.comment-form .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 108, 77, 0.4);
}

/* Messages d'information */
.logged-in-as,
.comment-awaiting-moderation {
    font-size: 0.875rem;
    color: #3D5A80;
    margin-bottom: 1rem;
}

.logged-in-as a {
    color: #3D5A80;
    text-decoration: none;
}

.logged-in-as a:hover {
    text-decoration: underline;
    color: #EE6C4D;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {

    .single-post .container,
    .single-page .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {

    .single-post .article-title,
    .single-page .page-title {
        font-size: 2rem;
    }

    .article-content h2,
    .page-content-area h2 {
        font-size: 1.5rem;
    }

    .article-meta {
        font-size: 0.875rem;
    }

    .article-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-next {
        text-align: left;
    }

    .comment-body {
        flex-direction: column;
        gap: 1rem;
    }

    .article-author {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .single-post .container,
    .single-page .container {
        padding: 0 1rem;
    }

    .single-post .article-header,
    .single-page .page-header {
        padding: 1rem 0;
    }

    .single-post .article-title,
    .single-page .page-title {
        font-size: 1.75rem;
    }

    .article-content,
    .page-content-area {
        font-size: 1rem;
    }

    .article-featured-image,
    .page-featured-image {
        border-radius: 12px;
    }
}