/*
Theme Name: JNews - Child Theme
Version: 1.0.157
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
/* ------------------------------------------------------------------------- */

.jeg_block_heading.jeg_block_heading_6.jeg_subcat_right {
    text-transform: uppercase;
}

.jeg_block_heading_6 .jeg_block_title span {
    color: #1838bd;
}

@font-face {
  font-family: "FuturaBoldOblique";
  src: url("fonts/futura-bold-oblique.woff2") format("woff2"),
       url("fonts/futura-bold-oblique.woff") format("woff"),
       url("fonts/futura-bold-oblique.ttf") format("truetype"),
       url("fonts/futura-bold-oblique.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

.most-read-section-title, .dossier-post-title, .jeg_main_menu > li > a, .most-read-post a, h2 strong, .jeg_block_heading_6 .jeg_block_title, .related-post-title a, .latest-posts-ladepeche-article-title a, .entry-content h3, .jeg_post_title a, .jeg_post_title, .entry-header .jeg_post_title {
    font-family: FuturaBoldOblique !important;
}

input.mailpoet_submit {
    background: #1838bd !important;
}

.jeg_midbar.jeg_container.jeg_navbar_wrapper.normal, .jeg_navbar_mobile {
    background: #1838bd;
}

.popularpost_meta {
    display: none;
}

.jeg_meta_comment {
    display: none !important;
}

li.popularpost_item.format-standard {
    margin-bottom: 30px !important;
}

#play-article-button {
    margin-right: 5px; margin-bottom: 5px; padding: 5px 10px; background-color: #1d2327; color: white; border: none; cursor: pointer; border-radius: 10px;
}

img.jeg_logo_img {
    max-width: 480px;
}

.ctc-crypto-item-single-line {
    height: 35px;
}

#decrease-font-size, #increase-font-size {
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px 10px;
    background-color: #1838BD;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

#sticky-progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f1f1f1; /* Couleur de fond de la barre */
    z-index: 1000; /* Assurez-vous qu'il est au-dessus des autres ÃƒÂ©lÃƒÂ©ments */
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none; /* Initialement masquÃƒÂ©, gÃƒÂ©rÃƒÂ© par JS */
}

#article-title-sticky {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

#progress-bar-red {
    width: 0%; /* Initialement ÃƒÂ  0% */
    height: 5px;
    background-color: #1838BD;
    transition: width 0.1s ease-out; /* Pour une transition douce */
}

b, strong {
    color: #1838BD;
}

.bartopfooter-social a {
    font-size: 16px; /* Ajustez la taille selon vos besoins */
}

.readtime-custom {
    background: #9E9E9E;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 10px;
    text-align: center;
    max-width: 200px;
}

.bartopfooter {
    background: #1838BD;
    padding: 15px;
}

.bartopfooter-title {
    font-size: 0.9em;
    line-height: 1.2;
    /* Ajoutez d'autres styles si nÃƒÂ©cessaire */
}

.bartopfooter-logo img {
    margin-right: 15px;
}

.bartopfooter-title {
    color: white;
    font-size: 1.4em;
    line-height: 1.2;
}

.jeg_thumb {
    border-radius: 15px !important;
}

.elementor-element.elementor-element-65e9db1.elementor-widget.elementor-widget-shortcode {
    margin-top: -25px;
}


@media (max-width: 768px) { 
  .bartopfooter-title {
    display: none !important; 
  }
}

.footer_dark, .jeg_footer.dark .jeg_footer_content {
    background: #ededed !important;
    color: #ffffff;
}

.jeg_footer_primary {
    padding: 45px 0 0px !important;
    width: 100%;
}

form.mailpoet_form.mailpoet_form_form.mailpoet_form_shortcode {
    padding: 0px !important;
    margin: 0px !important;
}

h3.jeg_footer_title {
    font-size: 1.45em !important;
    text-transform: uppercase;
}

.jeg_footer_heading h3 {
    color: #1838BD !important;
}

.widget_categories li a, .widget_nav_menu li a, .widget_polylang li a {
    font-size: 1.25em !important;
    color: #121212 !important
}

.widget_categories li a:hover, .widget_nav_menu li a:hover, .widget_polylang li a:hover {
color : #1838BD;
}

.col-md-3.footer_column img {
    max-width: 250px;
}

/* Footer Logo Centering */
.footer_column.logo_column {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.footer-logo-container img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Blockquote Design avec gros guillemets rouges */
blockquote {
    position: relative;
    padding: 25px 60px;
    border-left: 4px solid #1838BD !important;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    font-size: 16px !important;
}

blockquote::before {
    position: absolute;
    content: '';
    width: 60px;
    height: 60px;
    background-image: url('https://ladepeche.nc/wp-content/uploads/2025/08/quotes.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    top: -10px;
    left: 15px;
    transform: scaleX(-1);
}

blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

blockquote cite,
blockquote footer {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-size: 0.9em;
    color: #666;
    text-align: right;
}

blockquote cite::before,
blockquote footer::before {
    content: "Ã¢â‚¬â€ ";
}

/* Version responsive pour mobile */
@media (max-width: 768px) {
    blockquote {
        padding: 20px 40px;
        margin: 20px 0;
    }      blockquote::before {
        width: 45px;
        height: 45px;
        top: -5px;
        left: 10px;
        transform: scaleX(-1);
    }
}

blockquote p {
    font-family: Inter, Helvetica, Arial, sans-serif !important;
    font-style: italic;
    font-size: 22px !important;
    margin-top: 12px !important;
}

.thumbnail-container {
    border-radius: 10px;
}

@media (max-width: 768px) {
  #daln-slider {
    display: none !important;
  }
}


/* Flux Button - Design amélioré */
.flux-button-container {
    display: inline-block;
    position: relative;
    margin: 10px 0;
}

.flux-button {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #cfcfcf);
    color: #000000;
    text-decoration: none;
    border-radius: 23px;
    padding: 1px 7px;
    height: 22px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgb(255 255 255 / 30%);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.flux-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.flux-button:hover:before {
    left: 100%;
}

.flux-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(24 56 189);
    color: white;
    text-decoration: none;
}


.flux-text {
    background: transparent !important;
    padding: 0 !important;
    color: #1838bd !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
    position: relative;
    z-index: 2;
    margin-right: 8px;
}

.flux-pulse {
    width: 8px;
    height: 8px;
    background: #1838bd;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.flux-pulse:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .flux-button {
        padding: 4px 10px;
        font-size: 8px;
    }
    .flux-pulse {
        display:none;
    }
    .flux-text {
        margin: 0;
    }
    .site-title a img {
        max-width: 160px;
    }
}

.related-posts-module {
    margin: 40px 0;
    padding: 30px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.related-posts-title {
    text-align: center;
    font-size: 1.6em;
    font-weight: bold;
    color: #1838bd;
    margin-bottom: 30px;
    position: relative;
    text-transform: uppercase;
    font-family: FuturaBoldOblique !important;
}

.related-posts-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1838BD;
    margin: 10px auto 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.related-post-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.related-post-item:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #1838BD;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.related-post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #1838BD;
}

.related-post-meta {
    color: #6c757d;
    font-size: 13px;
}

.related-post-date {
    font-weight: 500;
}

.related-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

/* Responsive Design pour Related Posts */
@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .related-posts-title {
        font-size: 24px;
    }
    
    .related-post-image {
        height: 180px;
    }
    
    .related-post-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .related-posts-module {
        margin: 20px 0;
        padding: 20px 0;
    }
    
    .related-posts-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .related-post-content {
        padding: 15px;
    }
    
    .related-posts-grid {
        padding: 0 10px;
    }
}

/* voir plus category*/
@media screen and (min-width: 771px) {
  .elementor-widget-container h3.jeg_block_title a strong {
    margin-left: 90%;
    position:absolute;
    left: 0;
    color: black;
  }
}


@media screen and (min-width: 430px) and (max-width: 770px) {
  .elementor-widget-container h3.jeg_block_title a strong {
    margin-left: 80%;
    position:absolute;
    left: 0;
    color: black;
  }
}

@media screen and (min-width: 200px) and (max-width: 429px) {
  .elementor-widget-container h3.jeg_block_title a strong {
    margin-left: 70%;
    position:absolute;
    left: 0;
    color: black;
  }
}



.jeg_menu_footer li a {
    color: #121212 !important;
}

p.copyright {
    color: #121212;
}

p.mailpoet_form_paragraph.mailpoet-has-font-size.last a {
    color: black !important;
    font-weight: 700;
}

/* Custom hero block - Simple 16/9 layout without hover effects */
.custom-hero-block {
    margin: 30px 0;
}

.custom-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.custom-hero-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.custom-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.custom-hero-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16/9 ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.custom-hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-hero-content {
    padding: 20px;
}

.custom-hero-title {
    font-family: FuturaBoldOblique !important;
    font-size: 1.3em;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #000;
}

.custom-hero-link:hover .custom-hero-title {
    color: #1838BD;
}

.custom-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #666;
}

.custom-hero-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-hero-date:before {
    content: '\f017';
    font-family: 'FontAwesome';
}

/* Responsive */
@media (max-width: 768px) {
    .custom-hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .custom-hero-title {
        font-size: 1.1em;
    }
}

/* Play button overlay for audio/video category (ID 692) */
.play-button-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: #1838bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(24, 56, 189, 0.4);
}

.play-button-overlay i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.custom-hero-link:hover .play-button-overlay {
    background-color: #0f2489;
    transform: scale(1.1);
}

/* Play button for JNews article thumbnails in category 692 */
body.category-692 .jeg_thumb,
body.tag-692 .jeg_thumb {
    position: relative;
}

body.category-692 .jeg_thumb::after,
body.tag-692 .jeg_thumb::after {
    content: '\f04b';
    font-family: 'FontAwesome';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background-color: #1838bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(24, 56, 189, 0.4);
    transition: all 0.3s ease;
    padding-left: 3px;
    line-height: 45px;
    text-align: center;
}

body.category-692 .jeg_thumb:hover::after,
body.tag-692 .jeg_thumb:hover::after {
    background-color: #0f2489;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .play-button-overlay {
        width: 40px;
        height: 40px;
        bottom: 8px;
        right: 8px;
    }

    .play-button-overlay i {
        font-size: 16px;
    }

    body.category-692 .jeg_thumb::after,
    body.tag-692 .jeg_thumb::after {
        width: 35px;
        height: 35px;
        font-size: 14px;
        line-height: 35px;
        bottom: 8px;
        right: 8px;
    }
}