/*
Theme Name: Madd Magazine
Theme URI: https://dessign.net/madd-magazine
Author: Dessign Themes
Description: Madd Magazine modified for Actunet Look.
Version: 1.1.6
License: GNU General Public License version v3
Text Domain: madd-magazine
*/

/* --- RESET & BASE --- */
html { font-family: sans-serif; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { margin: 0; background: #f4f5f7; color: #404040; font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.5; }
a { background-color: transparent; color: #ce0000; text-decoration: none; transition: 0.3s; }
a:hover { color: #000; }
img { border: 0; height: auto; max-width: 100%; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { clear: both; font-family: 'Oswald', sans-serif; font-weight: bold; margin: 0 0 0.5em; line-height: 1.2; color: #000; }
ul, ol { margin: 0 0 1.5em 3em; }
ul { list-style: none; }
.container { margin: 0 auto; max-width: 1230px; padding-left: 15px; padding-right: 15px; width: 100%; }
.row { margin-left: -15px; margin-right: -15px; }
.clearfix:after, .container:after, .row:after { content: " "; display: table; clear: both; }

/* --- GRILLE --- */
.col-md-4, .col-md-6, .col-md-8 { float: left; padding-left: 15px; padding-right: 15px; position: relative; min-height: 1px; }
.col-md-4 { width: 33.3333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.6666%; }

/* --- HEADER & MENU --- */
.newsbes-menu ul { margin: 0; padding: 0; display: block; text-align: left; }
.newsbes-menu ul li { display: inline-block; position: relative; }
.newsbes-menu ul li a { color: #fff !important; padding: 15px 20px; display: block; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.newsbes-menu ul li a:hover { background: #000; }

/* Menu Déroulant */
.newsbes-menu ul ul { position: absolute; top: 100%; left: 0; background: #000; display: none; z-index: 999; width: 200px; padding: 0; margin: 0; }
.newsbes-menu ul li:hover > ul { display: block; }
.newsbes-menu ul ul li { display: block; border-bottom: 1px solid #333; }

/* --- ARTICLES (STYLE CARTE IMAGE GAUCHE) --- */
.blog-post-wrap {
    width: 100% !important;
    float: none !important;
    padding: 0 0 20px 0 !important;
}

.blog-post-inner {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1e1e1 !important;
    display: flex; /* C'est ici que l'image se met à côté */
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-post-image {
    width: 35% !important;
    flex-shrink: 0;
    min-height: auto !important;
}

.blog-post-image img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover;
    border-radius: 6px;
}

.blog-post-content {
    width: 65%;
    padding: 0 !important;
}

.blog-post-content h2 {
    font-size: 20px;
    margin-top: 0;
    text-transform: none;
    line-height: 1.3;
}
.blog-post-content h2 a { color: #1a1a1a; }
.blog-post-content h2 a:hover { color: #ce0000; }

.read-more, .more-link {
    display: inline-block;
    color: #ce0000 !important;
    font-weight: bold;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 13px;
}

/* --- SIDEBAR --- */
.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px !important;
}

.sidebar-widget .widget-title {
    border-bottom: 2px solid #ce0000;
    border-top: none !important;
    margin-bottom: 15px;
    padding-bottom: 5px;
    text-align: left;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Images Sidebar */
.rpwwt-widget ul li {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}
.rpwwt-widget ul li img {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    margin-right: 15px;
}

/* --- MOBILE --- */
@media only screen and (max-width: 992px) {
    .col-md-4, .col-md-6, .col-md-8 { width: 100%; float: none; }
    
    /* Menu Mobile */
    #touch-menu { display: block !important; }
    .newsbes-menu ul { display: none; background: #222; }
    .newsbes-menu:hover ul { display: block; } 
    .newsbes-menu ul li { display: block; border-bottom: 1px solid #444; }
    
    /* Articles Mobile */
    .blog-post-inner { display: block; }
    .blog-post-image { width: 100% !important; margin-bottom: 15px; }
    .blog-post-content { width: 100%; }
    
    .header-main .row { display: block; text-align: center; }
}