/*!/wp-content/themes/colornews-pro-child/assets/css/3bikes-overrides.css*//* ==========================================
   3bikes — Overrides (archives/search)
   Source unique: ce fichier
========================================== */

/* ---------- TITRES (archives + recherche) ---------- */
.archive .post .entry-title a,
.search .post .entry-title a {
  font-family: "Kameron", serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 991px) {
  .archive .post .entry-title a,
  .search .post .entry-title a {
    font-size: 22px;
  }
}

/* ---------- EXCERPT ---------- */
.archive .entry-content,
.search .entry-content {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #333;
}

/* Lien inline "[...] Lire la suite →" */
.archive .entry-content a,
.search .entry-content a {
  color: #1e73be;
  text-decoration: none;
  font-weight: 700;
}

.archive .entry-content a:hover,
.search .entry-content a:hover {
  opacity: 0.8;
}

/* Si un ancien bouton "entry-anchor-link" réapparait, on le coupe net */
.archive .entry-anchor-link,
.search .entry-anchor-link {
  display: none !important;
}

/* ---------- META LINE (harmonisation) ---------- */
/* On supprime les effets "border-bottom/padding-bottom" hérités */
.archive .post .below-entry-meta,
.search .post .below-entry-meta {
  border: 0 !important;
  padding-bottom: 0 !important;
  margin: 10px 0 14px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Icônes alignées + même teinte */
.archive .post .below-entry-meta i,
.search .post .below-entry-meta i {
  color: #888;
  margin-right: 6px;
}

/* Liens meta: par défaut neutres, et SEUL le lien hover devient bleu */
.archive .post .below-entry-meta a,
.search .post .below-entry-meta a {
  color: #666;
  text-decoration: none;
}

.archive .post:hover .below-entry-meta a,
.search .post:hover .below-entry-meta a {
  color: #666;
}

.archive .post .below-entry-meta a:hover,
.search .post .below-entry-meta a:hover {
  color: #1e73be;
}

/* Tags / catégories : éviter l'effet "tout devient bleu" */
.archive .post .below-entry-meta .tag-links a,
.archive .post .below-entry-meta .cat-links a,
.search .post .below-entry-meta .tag-links a,
.search .post .below-entry-meta .cat-links a {
  font-weight: 600;
}

/* ---------- TITRES DE PAGES (archives/search) ---------- */
/* Reprendre le "master style" de search: on force une cohérence */
.archive .page-header .page-title,
.search .page-header .page-title {
  font-family: "Kameron", serif;
  font-size: 30px;
  font-weight: 800;
  text-transform: none;
}
/* Pagination archives */

.archive-pagination {
  margin-top: 40px;
  text-align: center;
}

.archive-nav-title {
  font-family: "Kameron", serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.archive .navigation.pagination {
  display: inline-block;
}

.archive .navigation.pagination .page-numbers {
  padding: 6px 12px;
  margin: 0 4px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}

.archive .navigation.pagination .current {
  background: #1e73be;
  color: #fff;
  border-color: #1e73be;
}
.premium-related {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.premium-related h3 {
  font-family: "Kameron", serif;
  font-size: 22px;
  margin-bottom: 20px;
}

.premium-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.premium-related-grid h4 {
  font-size: 16px;
  line-height: 1.4;
  margin-top: 8px;
}

/* ===============================
   PREMIUM RELATED – align header size with "VOUS AIMEREZ..."
================================ */

/* Container spacing */
.premium-related-block{
  margin: 30px 0 40px;
  padding: 0;
  border-top: 0;
}

/* Make the title look like a widget title (same visual importance) */
.premium-related-block h3{
  display: inline-block;
  font-family: "Kameron", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-left: 10px solid #1e73be;
  background: #f5f5f5;
  text-transform: none;
}

/* Grid responsive like a widget */
.premium-related-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px){
  .premium-related-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .premium-related-grid{ grid-template-columns: 1fr; }
}

/* Item */
.premium-related-item a{
  display: block;
  text-decoration: none;
}

.premium-related-item img{
  width: 100%;
  height: auto;
  display: block;
}

.premium-related-item h4{
  font-family: "Kameron", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 10px 0 0;
}

/* Keep link color predictable (avoid “everything turns blue”) */
.premium-related-item a:hover h4{
  text-decoration: underline;
}

/* ==========================================
   SINGLE – À lire aussi responsive grid
========================================== */

.related-editorial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 25px;
}

.related-editorial-item img {
    width: 100%;
    height: auto;
    display: block;
}

.related-editorial-item h3 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 10px 0 6px;
}

.related-editorial-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 15px;
    align-items: center;
}

.related-editorial-meta i {
    margin-right: 4px;
    opacity: 0.7;
}

/* Tablet */
@media (max-width: 1199px) {
    .related-editorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .related-editorial-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   À LIRE AUSSI – Version Impact
============================== */

.threebikes-related h2 {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Kameron', serif;
    margin-bottom: 25px;
    padding: 12px 18px;
    background: #f3f3f3;
    position: relative;
    display: inline-block;
}

.threebikes-related h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: #1e73be;
}

.threebikes-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.threebikes-related-item img {
    width: 100%;
    height: auto;
    display: block;
}

.threebikes-related-meta {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .threebikes-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .threebikes-related-grid {
        grid-template-columns: 1fr;
    }
}

.search-results-404 {
    text-align: left;
}
/* =========================================
   404 – Alignement normal des résultats
========================================= */

.error-404 .tg-module-wrapper,
.error-404 .tg-module-wrapper article,
.error-404 .tg-module-wrapper .entry-content,
.error-404 .tg-module-wrapper .entry-title,
.error-404 .tg-module-wrapper p {
    text-align: left !important;
}

.error-404 .tg-module-wrapper .entry-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Local Google Fonts */
@font-face{font-family:'Crimson Text';src:url('/wp-content/themes/colornews-pro-child/assets/css/../fonts/crimson-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}

@font-face{font-family:'Kameron';src:url('/wp-content/themes/colornews-pro-child/assets/css/../fonts/kameron-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
#cookie-law-info-bar {
  position: fixed !important;
  bottom: 0;
}

/* ========================================
   CORE WEB VITALS FIX – COLORNEWS
   CLS + LCP stabilisation
======================================== */

/* 1️⃣ Réserve la hauteur des images des modules */
.tg-module-wrapper figure {
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* 2️⃣ Empêche les images de provoquer des shifts */
.tg-module-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3️⃣ Stabilise la hauteur des titres d’articles */
.tg-module-wrapper .entry-title {
  min-height: 2.6em;
}

/* 4️⃣ Empêche les modules de bouger pendant le chargement */
.tg-module-wrapper article {
  contain: layout paint;
}

/* 5️⃣ Réserve l’espace des pubs (CLS très fréquent) */
.adsbygoogle,
.gpt-ad,
.ad-slot,
[class*="ad-"] {
  min-height: 250px;
}

/* leaderboard */
.ad-leaderboard {
  min-height: 90px;
}
/* Réserve l'espace du slider ColorNewsPro pour éviter le CLS */
.colornews-big-slider,
.wp-post-image[size*="colornews-big-slider"] {
    aspect-ratio: 695 / 409; /* ratio exact de ton image Cervélo */
    width: 100%;
    height: auto;
}

.attachment-colornews-big-slider {
    min-height: 409px; /* hauteur mobile */
}
/* === FIX SLIDER MOBILE (EWWW dimensions + titre disparu) === */
/* === FIX SLIDER MOBILE - override EWWW dimensions + titre === */
.colornews-big-slider img,
.attachment-colornews-big-slider,
.colornews-big-slider .wp-post-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    min-height: auto !important;
}

/* Titre overlay (revient immédiatement) */
.colornews-big-slider .slide-title,
.colornews-big-slider .entry-title,
.colornews-big-slider .featured-post-title {
    display: block !important;
    position: absolute !important;
    z-index: 15 !important;
    opacity: 1 !important;
    visibility: visible !important;
}