/*
Theme Name: Dowizz Simracing
Description: Thème sur mesure 100% HTML/CSS optimisé pour l'affiliation et les performances.
Author: Dowizz
Version: 1.0
*/

/* --- VOS STYLES CSS COMMENCENT ICI --- */

/* =========================================
   DESIGN SIMRACING 2026 - DOWIZZ
========================================= */

/* Fond de page et Typographie globale */
body {
    background-color: #f4f5f7;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   EN-TÊTE MINIMALISTE (Style YesYouKart)
========================================= */

/* On nettoie le header global */
header {
    background: #ffffff;
    border-bottom: 1px solid #eaeaea; /* Bordure grise très fine, plus discrète */
    padding: 0; 
}





.site-logo-img {
    height: 35px; /* Taille élégante pour ce style */
    width: auto;
    display: block;
}



/* Masquer le texte "Search" sur mobile pour ne garder que la loupe */
@media (max-width: 600px) {
    .site-header {
        padding: 15px 20px;
    }
    .header-search {
        font-size: 0; /* Cache le texte */
    }
    .header-search svg {
        width: 22px; /* Agrandit un peu la loupe sur mobile */
        height: 22px;
    }
}

/* Nettoyage du container principal */
.site-main {
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px;
}
/* =========================================
   STYLE DU LOGO DANS L'EN-TÊTE
========================================= */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-img {
    height: 60px; /* Ajustez ce chiffre pour modifier la taille de votre logo */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* =========================================
   NOUVELLE DISPOSITION : HORIZONTALE + SIDEBAR
========================================= */

/* 1. Le conteneur principal divisé en deux */
.site-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px; /* Espace entre les articles et la sidebar */
    align-items: flex-start;
}

.main-content {
    flex: 1; /* Prend l'espace maximal (~70%) */
}

.site-sidebar {
    width: 320px; /* Largeur fixe de la barre latérale */
    flex-shrink: 0;
}

/* Titre en haut de la page */
.category-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    margin-top: 0;
    margin-bottom: 30px;
}

/* =========================================
   STYLE DE LA CARTE HORIZONTALE (IMAGE + TEXTE)
========================================= */

.horizontal-post-card {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0; /* Bordure fine comme sur l'image */
    margin-bottom: 20px;
    padding: 20px;
    gap: 25px;
    align-items: center; 
}

.h-post-image {
    width: 250px;
    flex-shrink: 0;
}

.h-post-image img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* Empêche de couper l'image du produit */
}

.h-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.h-post-title {
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.h-post-title a {
    color: #111;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
}

.h-post-title a:hover {
    color: #E67E43;
}

.h-post-excerpt p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Auteur, date et Bouton Read More */
.h-post-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    gap: 10px;
    margin-top: 15px; 
}

.author-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
}

.h-read-more {
    margin-left: auto; /* Pousse le bouton complètement à droite */
    border: 1px solid #111;
    color: #111;
    background: transparent;
    padding: 6px 15px;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.h-read-more:hover {
    background: #111;
    color: #fff;
}

/* =========================================
   STYLE DE LA BARRE LATÉRALE (SIDEBAR)
========================================= */

.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Barre de recherche */
.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    outline: none;
}

.search-submit {
    background: #2B1E16; /* Marron du logo */
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
}

.search-submit:hover {
    background: #E67E43; /* Orange au survol */
}

/* Liste des articles récents */
.recent-posts-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-widget a {
    color: #8b5cf6; /* Le violet de votre image de référence */
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

.recent-posts-widget a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE (Tablettes & Mobiles)
========================================= */

@media (max-width: 900px) {
    /* La barre latérale passe en dessous sur petit écran */
    .site-layout {
        flex-direction: column;
    }
    .site-sidebar {
        width: 100%;
        margin-top: 30px;
    }
    .horizontal-post-card {
        flex-direction: column;
    }
    .h-post-image {
        width: 100%;
    }
    .h-post-image img {
        height: auto;
    }
}

/* =========================================
   STYLE DE LA PAGE ARTICLE (SINGLE.PHP)
========================================= */

/* Conteneur principal centré pour la lecture */
.single-post-layout {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

/* La carte blanche de l'article */
.single-article {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

/* En-tête de l'article */
.single-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-category-badge a {
    display: inline-block;
    background: #E67E43; /* L'orange de votre logo */
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* On force le titre à être foncé sur fond transparent */
.single-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2B1E16 !important; 
    line-height: 1.2;
    margin: 0 0 25px 0;
    background: transparent !important; /* Détruit l'horrible fond marron */
    padding: 0;
}

/* Infos auteur et date */
.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #777;
    font-size: 0.95rem;
}

.single-meta .author-avatar img {
    border-radius: 50%;
    vertical-align: middle;
}

/* L'IMAGE MISE EN AVANT (Le secret est ici) */
.single-featured-image {
    /* Astuce de design : on fait légèrement dépasser l'image sur les côtés */
    margin: 40px -60px 40px -60px; 
}

.single-featured-image img {
    width: 100%;
    height: auto;
    max-height: 450px; /* Hauteur max pour ne pas bouffer l'écran */
    object-fit: cover; /* Coupe l'image joliment sans l'écraser */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Le texte et les intertitres générés par l'IA */
.single-content {
    font-size: 1.15rem; /* Texte un peu plus gros pour une lecture reposante */
    line-height: 1.8;
    color: #333;
}

.single-content h2 {
    font-size: 1.8rem;
    color: #2B1E16;
    margin-top: 50px;
    margin-bottom: 25px;
    border-left: 5px solid #E67E43; /* Un beau liseré orange sur les sous-titres */
    padding-left: 20px;
}

.single-content h3 {
    font-size: 1.4rem;
    color: #2B1E16;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Pour dompter les autres images éventuelles dans le texte */
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* =========================================
   RESPONSIVE (Mobiles)
========================================= */
@media (max-width: 768px) {
    .single-article {
        padding: 30px 20px;
    }
    .single-title {
        font-size: 2rem;
    }
    .single-featured-image {
        margin: 30px -20px; /* S'adapte au mobile */
    }
}

/* =========================================
   BOÎTE D'AFFILIATION AMAZON (STYLE TOP 10)
========================================= */
.amazon-affiliate-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px; /* C'est ça qui force un espace de sécurité entre le logo et le bouton ! */
    background-color: #fafafa;
    border-left: 4px solid #6a0dad;
    padding: 20px 30px;
    margin: 20px 0 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.amazon-left-col {
    display: flex;
    flex-direction: column;
}

.amazon-price-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
}

/* On force la taille du logo avec !important pour bloquer le thème */
.amazon-logo-img {
    height: 30px !important; 
    max-width: 120px !important; 
    width: auto !important;
    object-fit: contain;
    object-position: left;
    margin: 5px 0 0 0 !important; /* Petit espace au-dessus du logo */
}

.amazon-cta-btn {
    flex-shrink: 0; /* Empêche le bouton de s'écraser si l'écran est petit */
    background-color: #da251d; 
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    text-align: center;
}

.amazon-cta-btn:hover {
    background-color: #b51c15;
}

@media (max-width: 600px) {
    .amazon-affiliate-box {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .amazon-cta-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   STYLE DU MODÈLE D'ARTICLE "TOP 10" MANUEL
========================================= */
.listicle-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.listicle-item h2 {
    margin-top: 0;
    color: #111;
    font-size: 1.6rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.listicle-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
}

.listicle-desc {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 25px;
}
/* =========================================
   PAGE CATÉGORIE - GRILLE DES ARTICLES
========================================= */

/* Structure de la grille (3 colonnes sur PC, 1 sur mobile) */
.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Style de chaque carte d'article */
.articles-list article {
    background: #ffffff;
    border: 1px solid #eaeaea; /* Assorti à vos autres bordures */
    border-radius: 8px; /* Assorti à votre listicle-item */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation au survol de la carte */
.articles-list article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* Image en haut de la carte */
.articles-list article img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Coupe proprement l'image générée par l'IA */
    border-radius: 0;
    margin: 0;
}

/* Titre de l'article dans la grille */
.articles-list article h2 {
    font-size: 1.3rem;
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
    border-bottom: none;
    padding-bottom: 0;
}

.articles-list article h2 a {
    text-decoration: none;
    color: #111; /* Assorti à vos titres h-post-title */
    font-weight: 700;
    transition: color 0.2s ease;
}

.articles-list article h2 a:hover {
    color: #E67E43; /* Reprise de votre couleur orange de marque */
}

/* Date de publication */
.articles-list article .entry-meta {
    margin: 0 20px 15px 20px;
    font-size: 0.85rem;
    color: #777; /* Assorti à vos autres métadonnées */
}

/* Résumé généré par l'IA */
.articles-list article .entry-summary {
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Pousse le bouton vers le bas pour aligner toutes les cartes */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Bouton Lire la suite - Assorti à votre classe .h-read-more */
.articles-list article .read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: transparent;
    color: #111;
    border: 1px solid #111; 
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
}

.articles-list article .read-more:hover {
    background-color: #111;
    color: #fff;
}
/* =========================================
   PAGINATION DES ARTICLES
========================================= */
.dowizz-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.dowizz-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dowizz-pagination .page-numbers:hover {
    background: #111;
    color: #ffffff;
}

.dowizz-pagination .page-numbers.current {
    background: #E67E43; /* Votre Orange */
    color: #ffffff;
    border-color: #E67E43;
}

.dowizz-pagination .dots {
    border: none;
    background: transparent;
    padding: 8px;
}

/* =========================================
   PAGE AUTEUR (PROFIL)
========================================= */
.author-profile-box {
    display: flex;
    align-items: center;
    background: #1a1a1a; /* Fond sombre pour le côté Simracing */
    color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #E67E43; /* Votre bordure Orange */
    gap: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-avatar-large img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid #E67E43;
}

.author-details .author-name {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.author-details .author-role {
    display: inline-block;
    background: #E67E43;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.author-details .author-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
}

/* Version mobile */
@media (max-width: 768px) {
    .author-profile-box {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   PAGE À PROPOS
========================================= */
.about-page-container {
    color: #333;
}

.about-hero {
    background: #111;
    color: #fff;
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 5px solid #E67E43;
}

.about-hero .about-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.about-hero .about-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #111;
    border-left: 4px solid #E67E43;
    padding-left: 15px;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #444;
}

/* Bloc Auteur */
.about-author-showcase {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    gap: 30px;
    margin-bottom: 50px;
}

.about-author-image img {
    border-radius: 8px;
    width: 250px;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-author-text h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #E67E43;
}

/* Grille des fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-box {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: #E67E43;
}

.feature-box h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #111;
}

.feature-box p {
    font-size: 0.95rem;
    color: #666;
}

/* Version Mobile */
@media (max-width: 768px) {
    .about-author-showcase {
        flex-direction: column;
        text-align: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   MENU DE NAVIGATION PRINCIPAL
========================================= */
.main-navigation {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.main-navigation ul {
    list-style: none; /* Enlève la puce (le point) */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centre les liens horizontalement */
    gap: 30px; /* Espacement entre chaque lien */
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    text-decoration: none; /* Enlève le trait bleu moche */
    color: #111111; /* Couleur du texte (sombre) */
    font-weight: 700;
    text-transform: uppercase; /* Met le texte en majuscules */
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

/* Effet au survol de la souris */
.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #E67E43; /* Votre bel orange simracing */
    border-bottom: 2px solid #E67E43; /* Petit trait orange stylé en dessous */
}

/* =========================================
   EN-TÊTE (HEADER) ET ALIGNEMENT
========================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px; /* Ajuste l'espacement autour du logo et du menu */
    background-color: #ffffff; /* S'assure que le fond est blanc */
    border-bottom: 1px solid #eaeaea; /* Petite ligne discrète en dessous */
}

/* On donne la même taille aux colonnes gauche et droite pour que le logo reste parfaitement au centre */
.header-left, 
.header-right {
    flex: 1;
}

.site-branding {
    text-align: center;
}

/* On pousse le contenu de la colonne de droite (le menu) vers la droite */
.header-right {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

/* =========================================
   MENU DE NAVIGATION PRINCIPAL
========================================= */
.main-navigation {
    margin: 0; /* On enlève les marges qui poussaient le menu vers le bas */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* Espace entre les différents liens du menu */
}

.main-navigation li {
    display: inline-block;
}

.main-navigation a {
    text-decoration: none;
    color: #111111;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #E67E43;
    border-bottom: 2px solid #E67E43;
}
/* =========================================
   LIEN AUTEUR DANS L'ARTICLE (SINGLE)
========================================= */
.author-meta-link {
    color: inherit; /* Garde la couleur du texte normal */
    text-decoration: none; /* Enlève le trait de soulignement */
    transition: color 0.2s ease;
}

.author-meta-link:hover {
    color: #E67E43; /* Devient orange au survol */
}

.author-avatar a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.author-avatar a:hover {
    transform: scale(1.1); /* Petit effet de zoom sympa sur la pastille au survol */
}