/*
Theme Name: lequipe24
Theme URI: https://lequipe24.ma
Author: Yassine Massouath
Author URI: https://lequipe24.ma
Description: Thème RTL basé sur le template HTML lequipe24.
Version: 1.0
Text Domain: lequipe24
*/

/* ton CSS actuel commence juste après */

/* ========== RESET & BASE ========== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
body{
  font-family:'Almarai',sans-serif;
  background:#ffffff;
  color:#111;
  direction:rtl;
}
a{
  text-decoration:none;
  color:inherit;
}
ul{list-style:none;}
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

/* Couleur principale demandée */
:root{
  --main:#E63946;
}

/* ========== TOPLINE ========== */
.topline{
  background:#fff;
  border-bottom:1px solid #ddd;
  font-size:14px;
}
.topline-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 0;
}
.topline-lang{}
.topline-date{color:#777;}
.topline-icons{
  display:flex;
  gap:8px;
}
.icon-btn{
  background:##fff;
  border:1px solid #ddd;
  border-radius:6px;
  padding:4px 8px;
  cursor:pointer;
}

/* ========== HEADER / LOGO ========== */
.site-header{
  text-align:center;
  padding:18px 0;
  background:#fff;
  border-bottom:1px solid #eee;
}
.logo-wrapper{}
.logo-text{
  font-size:48px;
  font-weight:700;
}
.logo-l,
.logo-q,
.logo-24{
  color:var(--main);
}

/* ========== NAV DESKTOP ========== */
.main-nav{
  background:#fff;
  border-bottom:1px solid #e5e5e5;
  position:relative;
}
.main-nav-inner{
  display:flex;
  gap:26px;
  overflow-x:auto;
  white-space:nowrap;
}
.main-nav-inner a{
  font-size:12px;
  color:#333;
  padding-bottom:6px;
}
.main-nav-inner a.active{
  color:var(--main);
  font-weight:700;
}
.nav-active-bar{
  height:2px;
  background:#ccc;
  width:100%;
}
.main-nav-inner li a {
    font-size: 14px !important;  /* ancienne valeur ~18px */
    padding: 10px 0;
}

/* ========== MOBILE MENU ========== */
.mobile-menu{
  position:fixed;
  top:0;
  right:-300px;
  width:300px;
  height:100%;
  background:#fff;
  border-left:1px solid #ddd;
  transition:0.3s;
  z-index:9999;
  padding:20px;
}
.mobile-menu.open{
  right:0;
}
.mobile-menu-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  font-size:18px;
}
.close-btn{
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
}
.mobile-menu-nav a{
  display:block;
  padding:12px 0;
  border-bottom:1px solid #eee;
  font-size:17px;
}

/* cacher le burger en desktop si tu veux */
/* ici openMenu est dans la topline, donc on laisse tel quel */

/* ========== PAGE TITLE ========== */
.page-title h1{
  font-size:22px;
  margin:20px 0;
  color:#444;
}

/* ========== HERO ========== */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  grid-template-areas:"main latest";
  gap:26px;
  margin-top:10px;
}

/* main article à droite */
.hero-right{
  grid-area:main;
}
.hero-image img{
  width:100%;
  border-radius:6px;
}
.hero-image figcaption{
  font-size:12px;
  color:#666;
  margin-top:4px;
}
.hero-category{
  display:inline-block;
  margin-top:10px;
  font-size:14px;
  color:var(--main);
}
.hero-title{
  font-size:28px;
  margin:10px 0;
  line-height:1.4;
}
.hero-summary{
  color:#555;
  font-size:15px;
}

/* latest news à gauche */
.latest-news{
  grid-area:latest;
}
.latest-news h2{
  font-size:20px;
  margin-bottom:10px;
}
.latest-list article{
  padding:8px 0;
  border-bottom:1px solid #eee;
  display:flex;
  flex-direction:column;       /* ➜ aligne titre + temps en colonne */
  align-items:flex-start;      /* ➜ aligne à droite comme RTL */
  gap:4px;                     /* ➜ petit espace entre titre & temps */
  font-size:14px;
}

.latest-list article .time{
  color:#999;
  font-size:12px;
}


/* ========== اختياراتنا ========== */
.selection-section{
  margin-top:40px;
  margin-bottom:40px;
}
.section-header h2{
  font-size:26px;
  border-right:4px solid var(--main);
  padding-right:10px;
  margin-bottom:20px;
}

/* feature à droite, cartes à gauche */
.selection-grid{
  display:grid;
  grid-template-columns:1.4fr 1.6fr; /* droite / gauche */
  gap:20px;
}

.selection-feature img{
  width:100%;
  border-radius:6px;
}
.selection-feature-title{
  font-size:22px;
  margin-top:8px;
}
.purple{
  color:var(--main);
}
.selection-left{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.select-card img{
  width:100%;
  border-radius:6px;
}
.mini-cat{
  font-size:13px;
  color:var(--main);
  margin-top:6px;
  display:block;
}
.select-title{
  font-size:15px;
  font-weight:600;
  display:block;
  margin-top:4px;
}

/* ========== SECTION VIDÉO ========== */
/* ============================= */
/*     TITRE DE SECTION VIDEO    */
/* ============================= */

.video-section-title {
  font-size: 22px;
  color: #fff;
  background: #0B0D17;
  padding: 20px 60px;
  text-align: right;
  font-weight: 700;
  direction: rtl;
  width: 100%;
  display: block;
}


/* ============================= */
/*          VIDEO HERO           */
/* ============================= */

.video-hero {
  position: relative;
  height: 550px;
  overflow: hidden;
  direction: rtl;
  color: #fff;
}

.video-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70%; /* profondeur du dégradé */
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

.video-hero-content {
  position: absolute;
  bottom: 40px;
  right: 60px;
  max-width: 550px;
}

.video-category {
  font-size: 13px;
  margin-bottom: 10px;
  color: #E63946; /* ta couleur principale */
}

.video-title {
  font-size: 28px;
  margin: 5px 0;
  line-height: 1.4;
}

.video-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}


/* ============================= */
/*           PLAY BUTTON         */
/* ============================= */

.video-play {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  cursor: pointer;
  backdrop-filter: blur(3px);
}


/* ============================= */
/*         VIDEO LIST BELOW      */
/* ============================= */

.video-list {
  background: #0B0D17;
  padding: 40px 60px;
  display: flex;
  gap: 30px;
  overflow-x: auto;
  direction: rtl;
}

.video-item {
  flex: 0 0 240px;
  color: #fff;
}

.video-item .thumb {
  position: relative;
}

.video-item .thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.video-item .thumb .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 22px;
}

.video-item .cat {
  margin-top: 10px;
  font-size: 12px;
  color: #E63946;
}

.video-item-title {
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.6;
}


/* ============================= */
/*            MOBILE             */
/* ============================= */

@media(max-width:600px) {

  .video-section-title {
    padding: 15px 20px;
    font-size: 20px;
  }

  .video-hero {
    height: 420px;
  }

  .video-hero-content {
    right: 20px;
    left: 20px;
    bottom: 20px;
    max-width: 100%;
  }

  .video-title {
    font-size: 20px;
  }

  .video-play {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .video-list {
    padding: 20px;
    gap: 20px;
  }

  .video-item {
    flex: 0 0 180px;
  }
}



/* ========== FOOTER ========== */
.site-footer{
  background:#fafafa;
  margin-top:50px;
  border-top:1px solid #eee;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  padding:40px 0;
}
.footer-left{}
.footer-social a{
  font-size:22px;
  margin-left:8px;
}
.footer-logo-text{
  font-size:60px;
  font-weight:700;
  margin:16px 0;
}
.footer-logo-text .logo-l,
.footer-logo-text .logo-q,
.footer-logo-text .logo-24{
  color:var(--main);
}
.footer-stores{
  display:flex;
  gap:10px;
}
.store-btn{
  background:#000;
  color:#fff;
  padding:10px 14px;
  border-radius:6px;
  font-size:12px;
  line-height:1.3;
  text-align:center;
}

.footer-right{
  display:flex;
  gap:60px;
}
.footer-col h3{
  font-size:18px;
  margin-bottom:8px;
}
.footer-col li{
  margin-bottom:6px;
  font-size:14px;
}

.footer-bottom{
  text-align:center;
  color:#666;
  padding:16px;
  font-size:13px;
  border-top:1px solid #ddd;
}

/* ========== RESPONSIVE ========== */
@media(max-width:900px){
  .hero{
    grid-template-columns:1fr;
    grid-template-areas:
      "main"
      "latest";
  }

  .selection-grid{
    grid-template-columns:1fr;
  }

  .selection-left{
    grid-template-columns:1fr 1fr;
  }

  .video-strip-content{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-end;
    padding-bottom:24px;
  }

  .video-strip-thumbs{
    grid-template-columns:1fr 1fr;
  }

  .footer-top{
    flex-direction:column;
  }
  .footer-right{
    flex-direction:column;
  }
}

@media(max-width:600px){
  .selection-left{
    grid-template-columns:1fr;
  }

  .video-strip-thumbs{
    grid-template-columns:1fr;
  }
}
/* ================= FIX MOBILE PADDING ================= */
@media(max-width:600px){

  /* padding dans la topline */
  .topline-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* padding dans le header (logo) */
  .site-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* padding dans la nav mobile */
  .mobile-menu {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* padding dans le footer */
  .footer-top,
  .footer-bottom {
    padding-right: 16px;
    padding-left: 16px;
  }

}
	.main-nav-inner {
    padding-right: 12px; /* espace propre à droite */
  }
  
  /* On masque le header mobile sur desktop */
.header-mobile{
    display: none;
}

/* On masque le header desktop sur mobile */
@media(max-width: 600px){
    .topline,
    .site-header{
        display: none !important;
    }
    .header-mobile{
        display: flex !important;
    }
}
/* ------------------------------
   HEADER MOBILE STYLE
--------------------------------*/
@media (max-width: 600px){

    .header-mobile{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    .mobile-lang{
        font-size: 17px;
        font-weight: 600;
        color: #000;
    }

    /* Logo en TEXTE (petit) */
    .mobile-logo-text{
        font-size: 28px;
        font-weight: 700;
        display: flex;
        align-items: center;
    }

    .mobile-logo-text .logo-l{
        color: #000;
    }

    .mobile-logo-text .logo-q{
        color: #E63946; /* ton rouge principal */
        margin-left: 2px;
    }

    .mobile-logo-text .logo-24{
        color: #E63946;
        font-size: 30px;
        margin-left: 2px;
        font-weight: 800;
    }

    .mobile-menu-btn{
        background: #fff;
        border: 1px solid #ddd;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .mobile-menu-btn svg{
        width: 22px;
        height: 22px;
    }
}




/* ===== CORRECTION TAILLE DU LOGO WORDPRESS ===== */
.custom-logo {
    max-height: 100px;   /* taille du logo desktop */
    height: auto;
    width: auto;
    object-fit: contain;
}

/* logo dans le header mobile */
.header-mobile .custom-logo {
    max-height: 36px;
}

/* ===================== */
/* FIX MENU WORDPRESS    */
/* ===================== */

.main-nav-inner ul {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.main-nav-inner li {
    list-style: none;
}

.main-nav-inner li a {
    display: block;
    padding: 12px 0;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

/* ACTIVE LINK */
.main-nav-inner li.current-menu-item a {
    color: #E63946; /* ton rouge */
}

/* MOBILE MENU */
.mobile-menu-nav ul {
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    list-style: none;
}

.mobile-menu-nav li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #000;
    text-decoration: none;
}

/* =======================================================
   PAGE ARTICLE (single.php)
======================================================= */

.single-container {
    margin-top: 40px;
}

/* ---------------- HERO ---------------- */
.single-hero {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
}

.single-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.single-hero-content {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    z-index: 10;
}

.single-cat {
    display: inline-block;
    background: #E63946;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 15px;
    margin-bottom: 12px;
}

.single-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.single-meta {
    font-size: 14px;
    opacity: .9;
}

/* ---------------- CONTENT ---------------- */
.single-content {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 40px;
}

/* ---------------- AUTEUR ---------------- */
.single-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
    margin-bottom: 30px;
}

.author-avatar i {
    font-size: 48px;
    color: #666;
}

.author-name {
    font-size: 18px;
}

/* ---------------- PARTAGE ---------------- */
.single-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 40px;
}

.sh-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
}

.fb { background: #1877f2; }
.tw { background: #000; }
.wa { background: #25D366; }
.tg { background: #0088cc; }

/* ---------------- RELATED ---------------- */
.related-articles {
    margin-top: 40px;
}

.related-articles h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.related-item img {
    width: 100%;
    border-radius: 10px;
}

.related-title {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

/* ---------------- MOBILE ---------------- */
@media(max-width: 600px) {
    .single-hero {
        height: 250px;
    }

    .single-title {
        font-size: 24px;
    }

    .single-content {
        font-size: 18px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}



/* ================= BREADCRUMB ================= */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 16px;
    display: flex;
    gap: 8px;
}
.breadcrumb a { color: #E63946; font-weight: 600; }
.breadcrumb span { color: #555; }

/* ================= LAYOUT ================= */
.single-wrapper { display: flex; gap: 40px; margin-top: 20px; }
.single-main { width: 70%; }
.single-sidebar { width: 30%; background: #fafafa; padding: 20px; border-radius: 12px; }

/* ================= TITLE ================= */
.single-title-new {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* ================= IMAGE ================= */
.single-image-box img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ================= META ================= */
.single-meta-new {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #555;
}
.single-cat-new {
    background: #E63946;
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
}

/* ================= VIDEO ================= */
.single-video-box {
    margin: 20px 0;
}

/* ================= SUMMARY ================= */
.single-summary-box {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.single-summary-box h3 {
    margin-bottom: 10px;
    font-size: 20px;
}
.single-summary-box ul {
    padding-right: 20px;
    line-height: 2;
}

/* ================= CONTENT ================= */
.single-content-new {
    font-size: 20px;
    line-height: 2;
}

/* ================= TAGS ================= */
.single-tags {
    margin-top: 20px;
}
.single-tags span { color: #E63946; font-weight: bold; }

/* ================= AUTHOR ================= */
.single-author-box {
    display: flex;
    gap: 15px;
    background: #f6f6f6;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}
.author-bio { font-size: 15px; color: #555; }

/* ================= RELATED ================= */
.related-articles h2 {
    font-size: 26px;
    margin: 30px 0 15px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.related-item img {
    width: 100%;
    border-radius: 10px;
}

/* ================= SIDEBAR ================= */
.sidebar-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #E63946;
}
.sidebar-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.sidebar-thumb img {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

/* ================= MOBILE ================= */
@media(max-width:900px){
    .single-wrapper { flex-direction: column; }
    .single-main, .single-sidebar { width: 100%; }
    .single-title-new { font-size: 28px; }
}


/* ===========================
   CATEGORY PAGE
=========================== */

/* Bande colorée */
.category-banner {
    background: #7B1FA2; /* violet */
    height: 20vh; /* plein écran */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.category-banner h1 {
    font-size: 70px;
    font-weight: 900;
    margin: 0;
}

/* HERO IMAGE CENTRÉE */
.category-hero-image {
    width: 70%;
    margin: 0 auto; /* centre l’image */
}
.category-hero-image img {
    width: 100%;
    border-radius: 12px;
}

/* Titre sous image */
.category-hero-title {
    width: 70%;
    margin: 20px auto 10px auto;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}
.category-hero-title a { color: #000; }

/* Résumé */
.category-hero-summary {
    width: 70%;
    margin: 0 auto 40px auto;
    font-size: 18px;
    text-align: center;
    line-height: 1.8;
    color: #444;
}

/* Label catégorie */
.cat-label {
    width: 70%;
    margin: 20px auto 10px auto;
    display: block;
    text-align: center;
    color: #fff;
    background: #E63946;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 15px;
    width: fit-content;
}

/* ======================================
   LES 4 ARTICLES EN UNE SEULE LIGNE
====================================== */
.category-list {
    width: 90%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* chaque article */
.cat-item {
    background: #fff;
}

/* image identique */
.cat-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

/* label mini */
.cat-mini {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #E63946;
}

/* titre */
.cat-item-title {
    font-weight: 700;
    font-size: 16px;
    margin-top: 5px;
    line-height: 1.6;
}

/* ======================================
   RESPONSIVE MOBILE
====================================== */
@media (max-width: 900px) {
    
    .category-banner {
        height: 20vh; /* un peu moins pour mobile */
    }

    .category-banner h1 {
        font-size: 40px;
    }

    .category-hero-image,
    .category-hero-title,
    .category-hero-summary,
    .cat-label {
        width: 100%;
    }

   

    .category-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===============================
   LATEST NEWS : DESKTOP / MOBILE
================================ */

/* Desktop */
.latest-desktop {
    display: block;
}

/* Mobile */
.latest-mobile {
    display: none;
}

@media (max-width: 768px) {

    /* cacher desktop */
    .latest-desktop {
        display: none;
    }

    /* afficher mobile */
    .latest-mobile {
        display: block;
    }
}


