/*
Theme Name: Cinesub71 Child
Theme URI: https://cinesub71.fr/
Description: Thème enfant de Sydney pour Cinesub71.
Author: Cinesub71
Template: sydney
Version: 1.5.20
Text Domain: cinesub71-child
*/

/* En-tête : plus sobre et assorti à l'univers du site */
body.home #masthead,
body.home .site-header,
body.home .header-wrap{
    background:#101922!important;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:none!important;
}
body.home #masthead .site-title a,
body.home .site-header .site-title a{color:#f5f1e9!important}
body.home #masthead .site-description,
body.home .site-header .site-description{color:#c8c3b9!important}
body.home #masthead .main-navigation a,
body.home .site-header .main-navigation a{color:#e8e5df!important;font-size:14px}
body.home #masthead .main-navigation a:hover,
body.home .site-header .main-navigation a:hover{color:#d0a24e!important}
body.home #masthead .main-navigation ul ul,
body.home .site-header .main-navigation ul ul{background:#18232e!important}
body.home #masthead .menu-toggle,
body.home .site-header .menu-toggle{color:#f5f1e9!important}
@media(min-width:1025px){
    body.home #masthead .main-navigation li,
    body.home .site-header .main-navigation li{margin-left:12px!important;margin-right:0!important}
}


/* Correctif en-tête Sydney : toutes les couches du header sur l'accueil */
body.home #masthead,
body.home #masthead.site-header,
body.home .site-header,
body.home .header-wrap,
body.home .header-main,
body.home .header-inner,
body.home .header-container,
body.home .site-header .container,
body.home #masthead .container,
body.home .site-header .row,
body.home #masthead .row {
    background-color: #101922 !important;
    background-image: none !important;
}

body.home #masthead:before,
body.home #masthead:after,
body.home .site-header:before,
body.home .site-header:after,
body.home .header-wrap:before,
body.home .header-wrap:after {
    background: transparent !important;
}

body.home #masthead,
body.home .site-header {
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: none !important;
}

body.home #masthead .main-navigation > div > ul > li > a,
body.home .site-header .main-navigation > div > ul > li > a,
body.home #masthead .main-navigation a,
body.home .site-header .main-navigation a {
    color: #f2f0eb !important;
}

body.home #masthead .main-navigation .sub-menu,
body.home #masthead .main-navigation ul ul,
body.home .site-header .main-navigation .sub-menu,
body.home .site-header .main-navigation ul ul {
    background: #18232e !important;
}

body.home #masthead .main-navigation .sub-menu a,
body.home #masthead .main-navigation ul ul a,
body.home .site-header .main-navigation .sub-menu a,
body.home .site-header .main-navigation ul ul a {
    color: #f2f0eb !important;
}

/* =====================================================
   CINESUB71 – ENCADREMENT DES ARTICLES
   ===================================================== */
body.single-post {
    background: #f3efe7 !important;
}

body.single-post #primary.content-area,
body.single-post .content-area {
    background: #ffffff !important;
    border: 1px solid #d7b66b !important;
    box-sizing: border-box;
    padding: 42px 44px !important;
}

body.single-post #secondary.widget-area,
body.single-post .widget-area {
    background: #ffffff !important;
    border: 1px solid #d7b66b !important;
    box-sizing: border-box;
    padding: 28px 30px !important;
}

/* Espace entre l'article et la colonne latérale */
body.single-post .content-area,
body.single-post .widget-area {
    box-shadow: none !important;
}

/* Titre de l'article */
body.single-post .entry-title {
    color: #10284a !important;
    margin-top: 0 !important;
}

/* Métadonnées de l'article */
body.single-post .entry-meta,
body.single-post .entry-meta a {
    color: #6b6f73 !important;
}

body.single-post .entry-meta a:hover {
    color: #9e2020 !important;
}

/* Liens de la colonne latérale */
body.single-post #secondary a,
body.single-post .widget-area a {
    color: #9e2020 !important;
}

body.single-post #secondary a:hover,
body.single-post .widget-area a:hover {
    color: #b88939 !important;
}

/* Champs de recherche et archives */
body.single-post #secondary select,
body.single-post .widget-area select,
body.single-post #secondary input[type="search"],
body.single-post .widget-area input[type="search"] {
    border: 1px solid #d8d0c4 !important;
    background: #fbfaf7 !important;
}

@media (max-width: 991px) {
    body.single-post #primary.content-area,
    body.single-post .content-area {
        padding: 30px 26px !important;
    }

    body.single-post #secondary.widget-area,
    body.single-post .widget-area {
        margin-top: 24px;
    }
}

/* =====================================================
   FINITION PAGES ARTICLES – VERSION 1.5.3
   ===================================================== */
body.single-post #content,
body.single-post .site-content {
    padding-top: 28px !important;
}

body.single-post #primary.content-area,
body.single-post .content-area {
    border-color: #caa24b !important;
    padding: 32px 40px !important;
}

body.single-post #secondary.widget-area,
body.single-post .widget-area {
    border-color: #caa24b !important;
    padding: 24px 28px !important;
}

/* Un peu plus d'air entre les paragraphes et le contenu, sans agrandir le cadre */
body.single-post .entry-content > p:first-child {
    margin-top: 0 !important;
}

@media (max-width: 991px) {
    body.single-post #content,
    body.single-post .site-content {
        padding-top: 20px !important;
    }

    body.single-post #primary.content-area,
    body.single-post .content-area {
        padding: 26px 24px !important;
    }

    body.single-post #secondary.widget-area,
    body.single-post .widget-area {
        padding: 22px 24px !important;
    }
}


/* =====================================================
   TITRES DES ARTICLES – TAILLE PLUS ÉQUILIBRÉE
   ===================================================== */
body.single-post .entry-title {
    font-size: clamp(36px, 4vw, 50px) !important;
    line-height: 1.12 !important;
    margin-bottom: 16px !important;
}

body.single-post .entry-content h2 {
    font-size: clamp(28px, 3vw, 36px) !important;
    line-height: 1.2 !important;
    margin-top: 34px !important;
    margin-bottom: 14px !important;
}

body.single-post .entry-content h3 {
    font-size: clamp(23px, 2.4vw, 30px) !important;
    line-height: 1.25 !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
}

body.single-post .entry-content h4 {
    font-size: clamp(20px, 2vw, 26px) !important;
    line-height: 1.3 !important;
}

@media (max-width: 991px) {
    body.single-post .entry-title {
        font-size: 38px !important;
    }

    body.single-post .entry-content h2 {
        font-size: 30px !important;
    }

    body.single-post .entry-content h3 {
        font-size: 25px !important;
    }
}

@media (max-width: 600px) {
    body.single-post .entry-title {
        font-size: 32px !important;
    }

    body.single-post .entry-content h2 {
        font-size: 27px !important;
    }

    body.single-post .entry-content h3 {
        font-size: 23px !important;
    }
}

/* =====================================================
   IMAGE MISE EN AVANT – PIÈCES DÉTACHÉES
   ===================================================== */
body.single-c71_piece .c71-piece-featured {
    margin: 0 0 28px;
    text-align: center;
}

body.single-c71_piece .c71-piece-featured-image {
    display: inline-block;
    max-width: 100%;
    width: auto;
    height: auto;
    border: 1px solid #d8d0c4;
    box-sizing: border-box;
}

body.single-c71_piece .entry-content {
    line-height: 1.7;
}


/* =====================================================
   CINESUB71 – TITRES DU LISTAGE DES PIÈCES DÉTACHÉES
   ===================================================== */
/* Les fiches individuelles restent à 30 px ; ici on réduit
   uniquement les titres des listes/archives de pièces. */
body.tax-c71_piece_cat article .entry-title,
body.tax-c71_piece_brand article .entry-title,
body.tax-c71_piece_model article .entry-title,
body.tax-c71_piece_format article .entry-title,
body.tax-c71_piece_status article .entry-title,
body.post-type-archive-c71_piece article .entry-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
}

/* Titre de la page de classement (ex. « Marque : Micron »). */
body.tax-c71_piece_cat .page-title,
body.tax-c71_piece_brand .page-title,
body.tax-c71_piece_model .page-title,
body.tax-c71_piece_format .page-title,
body.tax-c71_piece_status .page-title,
body.post-type-archive-c71_piece .page-title {
    font-size: 34px !important;
    line-height: 1.2 !important;
}

@media (max-width: 900px) {
    body.tax-c71_piece_cat article .entry-title,
    body.tax-c71_piece_brand article .entry-title,
    body.tax-c71_piece_model article .entry-title,
    body.tax-c71_piece_format article .entry-title,
    body.tax-c71_piece_status article .entry-title,
    body.post-type-archive-c71_piece article .entry-title { font-size: 26px !important; }
}

@media (max-width: 600px) {
    body.tax-c71_piece_cat article .entry-title,
    body.tax-c71_piece_brand article .entry-title,
    body.tax-c71_piece_model article .entry-title,
    body.tax-c71_piece_format article .entry-title,
    body.tax-c71_piece_status article .entry-title,
    body.post-type-archive-c71_piece article .entry-title { font-size: 24px !important; }
}
