/*
Theme Name: Théophraste
Theme URI: 
Author: Denis Florent Media Group
Description: Un thème WordPress de News utilisant Bootstrap
Version: 1.56c
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theophraste
*/

/* Polices de base */
body {
    font-family: 'Noticia Text', serif;
    line-height: 1.6;
}

/* Titres */
h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
    font-family: 'Rozha One', serif !important;
    line-height: 1.1;
}

.article-title {
    font-family: 'Rozha One', serif !important;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

h2.wp-block-heading {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

h2.article-title {
    font-size: 20px;
}

.card-title {
    font-family: 'Rozha One', serif !important;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.widget-title {
    font-family: 'Rozha One', serif !important;
    line-height: 1.1;
}

/* Row A - Premier article */
.article-thumbnail {
    position: relative;
    overflow: hidden;
}

.article-thumbnail img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

/* Liens des articles */
.article-title a {
    color: inherit;
}

.article-title a:hover {
    color: #666;
}

.article-excerpt,
.card-text {
    font-family: 'Noticia Text', serif;
    color: #666;
    line-height: 1.3;
    font-size: 0.95rem;
    word-wrap: normal;
    overflow-wrap: normal;
    white-space: normal;
    text-align: left;
}

/* Page article */
.single .article-header {
    margin-top: 2rem;
}

.single .article-title,
h1.article-title {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    margin-left: 8rem;
}

.single .article-meta {
    margin-left: 8rem;
}

.single .article-content,
.page .article-content {
    margin-left: 8rem;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 991.98px) {
    .single .article-title,
    .single .article-meta,
    .single .article-content,
    .page .article-title,
    .page .article-content {
        margin-left: 0;
    }
    
    .single .article-title,
    .page .article-title {
        font-size: 2rem;
    }

    .row > div[class*="col-md-3"] {
        display: none !important;
    }

    .row > div[class*="col-md-9"] {
        flex: 0 0 auto !important;
        width: 100% !important;
    }
}

.wp-element-caption {
    font-size: 12px;
    font-style: italic;
    color: #555;
    text-align: center;
    margin-top: 5px;
    line-height: 1.4;
}

/* Restrictions */

.restricted:before {
    content: "";
    position: absolute;
    bottom: 60px; /* hauteur du bouton */
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, white 100%);
    pointer-events: none;
    z-index: 1;
}
.restricted {
    position: relative;
    z-index: 2;
	padding: 8px 14px;
	border-radius: 5px;
	background-color: #bd0808;
	border: 1px solid #bd0808;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: .3s ease-in-out;
}


.restricted a {
	color: #ffffff;
	font-weight: bold;
	text-decoration: underline;
}

.restricted a:hover {
	color: #ffffff;
	font-weight: bold;
	text-decoration: underline;
}

  


/* Colonnes principales */
.col-md-9 {
    padding-right: 0.8rem;
}

.col-md-3 {
    border-left: 1px solid #e5e5e5;
}

/* Style des extraits */
.article-excerpt p,
.card-text p {
    margin-bottom: 0.8rem;
}

/* Header et Logo */
.site-header {
    padding: 0;
}

.logo-wrapper {
    line-height: 0;
    font-size: 0;
}

.navbar-brand {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.site-logo {
    display: block;
    margin: 0;
    padding: 0;
}

.site-tagline {
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Articles */
.row.mb-4 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Image credit */
.image-credit {
    font-size: 0.6rem;
    color: #999;
    margin-top: -0.1rem;
}

.image-credit a,
.image-credit a:hover,
.image-credit a:visited {
    color: inherit;
    text-decoration: none;
}



/* Video responsive */
.featured-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}



.featured-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.col-md-3 ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Categories */
.article-categories {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.75rem;
    color: #000;
    margin-bottom: 0.5rem;
    margin-top: -1rem;
}

.article-categories a {
    color: inherit;
    text-decoration: none;
}

.article-categories a:hover {
    color: #666;
}

/* Typographie */
.article-title::after {
    content: " "; /* espace insécable */
    white-space: nowrap;
}

.article-title {
    word-spacing: 0.1em;
}

/* Navigation */
@media (min-width: 992px) {
    .navbar-nav .nav-item:not(:last-child)::after {
        content: '|';
        margin: 0 0.5rem;
        color: rgba(0, 0, 0, 0.5);
    }

    .navbar-nav {
        display: flex;
        align-items: center;
    }

    .navbar-nav .nav-item {
        display: flex;
        align-items: center;
    }
}

/* Archives et Recherche */
.archive .article-title,
.search .article-title {
    font-size: 1.6rem;
}

.archive .article-thumbnail,
.search .article-thumbnail {
    padding-bottom: 1rem;
}

.archive .row > .col-md-7,
.search .row > .col-md-7 {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1rem;
}

/* Styles pour la barre latérale */
.sidebar-widget {
    margin-bottom: 30px;
}

/* Styles pour les titres de widget et les rubriques */
.widget-title a {
    color: inherit;
    text-decoration: none;
}

.widget-title a:hover {
    color: #666;
    text-decoration: none;
}

/* Style uniforme pour tous les titres de widget */

/* Styles pour la section des opinions dans la colonne de droite */
/* Titre de la colonne des opinions */
.opinions-column-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #000000;
}

.opinions-sidebar .article-title {
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.opinions-sidebar .article-title a {
    color: #000000;
}

.opinions-sidebar .article-title a:hover {
    color: #666;
}

/* Style pour les titres des 6 derniers articles d'opinion (comme les extraits) */
.row .col-md-6 h5.article-title {
    font-family: 'Noticia Text', serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0;
}

/* Styles pour l'auteur et la date dans les articles */
.article-author-date {
    margin-left: 8rem;
}

@media (max-width: 991.98px) {
    .article-author-date {
        margin-left: 0;
    }
}

/* Styles pour les icônes des réseaux sociaux */
.author-social-links {
    display: flex;
    align-items: center;
}

.llp-auteur-nom {
    margin-right: 8px;
    font-size: 16px;
    color: #666;
    transition: color 0.2s ease;
}

.llp-auteur-nom:hover {
    color: #000;
}

/* Trait séparateur sous la date */
.article-separator {
    border-bottom: 1px solid #e5e5e5;
    width: 25%;
    margin-left: 0;
}

.article-author .widget-title {
    font-family: 'Playfair Display', serif !important;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.article-author .widget-title a {
    color: #000;
    text-decoration: none;
}

.article-author .widget-title a:hover {
    color: #666;
}

.article-publication-date {
    margin-top: 3px;
}

.row .col-md-6 h5.article-title a {
    color: inherit;
    text-decoration: none;
}

.row .col-md-6 h5.article-title a:hover {
    color: #666;
    text-decoration: none;
}

/* Archives */
.archive-header {
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.archive-article .article-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.archive-article .article-title a {
    color: inherit;
}

.archive-article .article-title a:hover {
    color: #666;
}

/* Articles */
.row.mb-4 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Embedded videos */
.article-content .wp-block-embed,
.article-content .wp-block-embed__wrapper {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 Aspect Ratio */
    height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.article-content iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.article-content .wp-block-embed {
    margin: 2rem 0;
}

/* Responsive video height */
@media (max-width: 1200px) {
    .article-content iframe,
    .article-content .wp-block-embed__wrapper iframe,
    .article-content .wp-block-embed {
        height: 500px !important;
    }
}

@media (max-width: 992px) {
    .article-content iframe,
    .article-content .wp-block-embed__wrapper iframe,
    .article-content .wp-block-embed {
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .article-content iframe,
    .article-content .wp-block-embed__wrapper iframe,
    .article-content .wp-block-embed {
        height: 300px !important;
    }
}

/* Featured Video */
.featured-video-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.featured-video-wrapper iframe {
    width: 100% !important;
    aspect-ratio: 16/9;
}

/* Widgets */
.widget-title,
.widget h2,
.widget h3 {
    margin-bottom: 0.25rem !important;
}

.widget img,
.widget .wp-block-image img,
.widget figure img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
}

.widget figure,
.widget .wp-block-image {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Styles pour wpDiscuz */
#wpdcom {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#wpcomm {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-comment-wrapper {
    padding: 0 !important;
}

.comments-section {
    padding: 0;
    margin: 2rem 0;
}

/* Footer */
footer {
    font-size: 0.8rem;
}

footer .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    color: inherit;
    text-decoration: none;
}

/* Fix pour les tweets */
.article-content {
    position: relative;
}

.article-content blockquote.twitter-tweet {
    margin: 1em 0 0 0 !important;
    padding: 0 !important;
    position: relative !important;
    min-height: 600px !important;
    overflow: hidden !important;
    border: none !important;
}

.article-content blockquote.twitter-tweet::before {
    display: none !important;
}

.article-content blockquote.twitter-tweet::after {
    display: none !important;
}

.article-content iframe[id^='twitter-widget-'] {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 600px !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
}

.article-content iframe[id^='twitter-widget-'] + * {
    margin-top: 0 !important;
}

/* Pullquote élégant sans filet à gauche */
.wp-block-pullquote {
    background: #e5e5e5;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 2.3em 2.5em 2em 2.5em;
    border-radius: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    position: relative;
    /* Aucun effet de blur ni de transparence */
    filter: none;
    backdrop-filter: none;
    opacity: 1;
}

.wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    font-family: 'EB Garamond', serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-size: 2rem;
    font-style: italic;
    color: #222;
    line-height: 1.2;
    position: relative;
    text-align: left;
}

.wp-block-pullquote blockquote p {
    margin: 0;
}

.wp-block-pullquote:before {
    content: '“';
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 10rem;
    color: #FFFFFF;
    position: absolute;
    top: -0.1em;
    left: 0.1em;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.wp-block-pullquote blockquote {
    position: relative;
    z-index: 1;
}
