/*
Theme Name: Hello Personnalisé
Theme URI: https://elementor.com/
Description: Thème enfant pour Hello Elementor
Author: Brian
Author URI: https://www.dr-maguarian.fr
Template: hello-elementor
Version: 1.0.0
*/

/*** ARTICLES ***/

/* 1. Bandeau haut pleine largeur sous le header sticky */
.article-hero-banner {
    width: 100%;
    padding-top: 135px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 50px;
}

.article-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.meta-date-cat {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* 2. Conteneur du texte de l'article */
.site-article-container {
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 35px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

/* Ajustement mobile */
@media (max-width: 768px) {
    .article-hero-banner {
        padding-top: 124px;
    }
    .article-title {
        font-size: 1.8rem;
    }
}

/* =========================================================
   STYLES DE LA PAGE RUBRIQUE / ARCHIVE (archive.php)
   ========================================================= */


.archive-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30)), url("https://www.dr-maguarian.fr/wp-content/uploads/2026/05/AM_Home_Retina4k-scaled.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
    height: 30vh;
}
.archive-hero-inner {
    text-align: center;
    padding-top: 85px;
}
.archive-title {
    font-family: "Lato", Sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    color: var( --e-global-color-6fed69d ) !important;
    padding-top: 45px;
}
.archive-description {
    max-width: 700px;
    margin: 50px auto;
    font-size: 1.7rem;
    line-height: 1.6;
    text-align: center;
}

/* Conteneur principal aligné sur les 1140px d'Elementor */
.archive-container {
    max-width: 1140px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

/* Grille responsive 3 colonnes */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Style individuel d'une carte article */
.article-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Image de la carte à ratio fixe pour aligner toutes les cartes */
.card-image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f4f6f8;
}

.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-image-link img {
    transform: scale(1.03);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #eef2f5;
}

/* Corps de la carte (flex-grow pousse le bouton en bas) */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.card-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #562872; 
}

.card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto; 
    padding-top: 15px;
    border-top: 1px solid #f2f2f2;
}

.card-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #562872; 
    text-decoration: none;
}

.card-read-more:hover {
    text-decoration: underline;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.archive-pagination {
    margin-top: 60px;
    text-align: center;
}

.archive-pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.archive-pagination .page-numbers:hover {
    background-color: #f7f9fa;
    border-color: #bbb;
}

.archive-pagination .page-numbers.current {
    background-color: #562872;
    border-color: #562872;
    color: #ffffff;
}

/* =========================================================
   NAVIGATION PRÉCÉDENT / SUIVANT (single.php)
   ========================================================= */

.post-navigation-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid #eaeaea;
}

.nav-card-wrapper {
    display: flex;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: #ccc;
}

/* Alignement à droite pour l'article suivant */
.nav-next .nav-card {
    justify-content: flex-end;
    text-align: right;
}

/* Vignette carrée */
.nav-card-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f4f6f8;
}

.nav-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Textes */
.nav-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #777;
}

.nav-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin: 0;
    /* Limite le titre à 2 lignes pour garder des blocs compacts */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-card:hover .nav-card-title {
    color: #562872; /* Remplacez par votre couleur principale */
}

/* Responsive mobile : empile les deux blocs */
@media (max-width: 650px) {
    .post-navigation-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RESPONSIVE TABLETTE & MOBILE
   ========================================================= */

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}