/*
Theme Name: JNews - Child Theme
Version: 1.0.0
Theme URI: http://themeforest.net/?ref=jegtheme
Description: A basic starter child theme for customization purpose of JNews theme.
Author: Jegtheme
Author URI: http://themeforest.net/user/jegtheme?ref=jegtheme
Template: jnews
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 *  Theme customization starts here
/* ------------------------------------------------------------------------- */
/* ==========================================================================
   PANNEAU LATÉRAL SOMBRE CERAO (CORRECTION RENDU STRICT)
   ========================================================================== */

/* Structure du panneau principal fixé à droite de l'écran */
.cerao-offcanvas {
    position: fixed !important;
    top: 0 !important;
    right: -380px !important; /* Totalement masqué à droite au départ */
    width: 360px !important;
    height: 100vh !important;
    background-color: #06152d !important; /* Couleur bleu nuit ultra sombre de la maquette */
    color: #ffffff !important;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important; /* Doit passer au-dessus de JNews */
    overflow-y: auto !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 40px 25px 30px 25px !important;
    box-sizing: border-box !important;
}

/* Classe ajoutée par le JS pour faire glisser le menu depuis la droite */
.cerao-offcanvas.active {
    right: 0 !important;
}

/* Bouton Fermer (Croix en haut à gauche du panneau) */
.cerao-close-btn {
    position: absolute !important;
    top: 15px !important;
    left: 20px !important;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 32px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

.cerao-close-btn:hover {
    color: #ffffff !important;
}

/* Avatar de profil circulaire avec liseré doré */
.cerao-avatar-wrapper {
    text-align: center !important;
    margin: 20px 0 !important;
}

.cerao-avatar-img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    border: 3px solid #b45309 !important; /* Ligne bronze/or de la maquette */
    object-fit: cover !important;
    display: inline-block !important;
}

/* Typographies internes */
.cerao-profile-name {
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
}

.cerao-profile-bio {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin-bottom: 25px !important;
}

/* Aligner les icônes réseaux sociaux */
.cerao-profile-socials {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

.cerao-profile-socials a {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #1e293b !important;
    border-radius: 6px !important;
    background: #0b1329 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.cerao-profile-socials a:hover {
    border-color: #b45309 !important;
    color: #b45309 !important;
}

/* Titres de sections (CONTACT, DERNIÈRES PUBLICATIONS) */
.cerao-section-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #b45309 !important; /* Couleur bronze dorée */
    letter-spacing: 1px !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase !important;
}

/* Liste des coordonnées de contact */
.cerao-contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cerao-contact-list li {
    font-size: 13px !important;
    color: #e2e8f0 !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    line-height: 1.4 !important;
}

.cerao-contact-list li i {
    color: #b45309 !important;
    margin-top: 3px !important;
    width: 16px !important;
    text-align: center !important;
}

/* Bloc des publications récentes */
.cerao-mini-post {
    display: flex !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
    align-items: center !important;
}

.cerao-mini-thumb {
    width: 55px !important;
    height: 55px !important;
    background: #1e293b !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.cerao-mini-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.cerao-mini-meta h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.4 !important;
}

.cerao-mini-meta span {
    font-size: 11px !important;
    color: #64748b !important;
}

/* Séparateurs horizontaux discrets */
.cerao-divider {
    border: 0 !important;
    border-top: 1px solid #1e293b !important;
    margin: 30px 0 !important;
}

/* Voile noir transparent en arrière-plan */
.cerao-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 999998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.cerao-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}
/* ==========================================================================
   DESIGN DE LA PAGE CATÉGORIE (category.php)
   ========================================================================== */

.cerao-category-main {
    background-color: #f8fafc;
    padding-bottom: 80px;
    font-family: 'Myriad Pro', Myriad, 'Helvetica Neue', Arial, sans-serif;
}

/* En-tête (Hero) de la catégorie */
.cerao-category-hero {
    background-color: #062c63;
    background-image: linear-gradient(135deg, #062c63 0%, #0a3d8a 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
}
.cerao-category-hero-inner span {
    display: inline-block;
    background-color: #4caf50;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.cerao-category-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}
.cerao-category-desc {
    margin-top: 15px;
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Conteneur principal */
.cerao-category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grille des articles */
.cerao-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Carte d'article individuelle */
.cerao-post-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(6, 44, 99, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cerao-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(6, 44, 99, 0.1);
}

/* Image à la une */
.cerao-post-thumbnail {
    height: 220px;
    overflow: hidden;
}
.cerao-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cerao-post-card:hover .cerao-post-thumbnail img {
    transform: scale(1.05);
}

/* Contenu textuel de la carte */
.cerao-post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cerao-post-meta {
    margin-bottom: 10px;
}
.cerao-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
    font-weight: 600;
}
.cerao-post-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
.cerao-post-title a {
    color: #062c63;
    text-decoration: none;
    transition: color 0.2s;
}
.cerao-post-title a:hover {
    color: #4caf50;
}
.cerao-post-excerpt {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Bouton Lire la suite */
.cerao-read-more {
    display: inline-block;
    color: #062c63;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    align-self: flex-start;
}
.cerao-read-more:hover {
    color: #4caf50;
    border-bottom-color: #4caf50;
}

/* Pagination WordPress */
.cerao-pagination {
    margin-top: 60px;
    text-align: center;
}
.cerao-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(6, 44, 99, 0.05);
}
.cerao-pagination a, 
.cerao-pagination span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.cerao-pagination a {
    color: #062c63;
    background-color: #f0f4f8;
}
.cerao-pagination a:hover {
    background-color: #e2e8f0;
}
.cerao-pagination span.current {
    background-color: #4caf50;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .cerao-category-hero { padding: 50px 20px; }
    .cerao-category-title { font-size: 32px; }
    .cerao-articles-grid { grid-template-columns: 1fr; gap: 30px; }
}