/*
Theme Name: techactu.
Theme URI: https://orian.space
Description: Thème custom techactu - Style presse - Blanc / Bleu foncé
Version: 2.0.0
Author: techactu team
Text Domain: techactu
*/

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #ffffff;
  --bg-light:     #f7f8fa;
  --bg-card:      #ffffff;
  --accent:       #1a3a6b;        /* Bleu foncé Le Figaro */
  --accent-hover: #122d56;
  --accent-light: #e8edf5;
  --red:          #c0392b;        /* Pour breaking news */
  --text-primary: #1a1a1a;
  --text-secondary: #444444;
  --text-muted:   #888888;
  --border:       #e2e2e2;
  --border-dark:  #cccccc;
  --font-main:    'Georgia', 'Times New Roman', serif;
  --font-sans:    'Arial', 'Helvetica', sans-serif;
  --radius:       4px;
  --shadow:       0 1px 4px rgba(0,0,0,0.08);
  --transition:   all 0.15s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background:  var(--bg);
  color:       var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ── BARRE SUPÉRIEURE ─────────────────────────────────────── */
#top-bar {
  background:  var(--accent);
  padding:     6px 32px;
  display:     flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-date { color: rgba(255,255,255,0.7); font-size: 12px; font-family: var(--font-sans); }
.top-bar-right { display: flex; align-items: center; gap: 12px; }

/* Boutons sociaux */
.social-buttons { display: flex; gap: 8px; align-items: center; }
.social-btn {
  display:     flex;
  align-items: center;
  gap:         5px;
  padding:     4px 10px;
  border-radius: var(--radius);
  font-size:   11px;
  font-weight: 600;
  color:       #fff;
  transition:  var(--transition);
  border:      1px solid rgba(255,255,255,0.2);
}
.social-btn:hover { opacity: 0.85; color: #fff; }
.social-btn.fb    { background: #1877f2; }
.social-btn.yt    { background: #ff0000; }
.social-btn.tw    { background: #000000; }
.social-btn.ig    { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn svg   { width: 12px; height: 12px; fill: white; flex-shrink: 0; }

/* ── NAVBAR ──────────────────────────────────────────────── */
#navbar {
  background:   var(--bg);
  border-bottom: 2px solid var(--accent);
  padding:      0 32px;
  display:      flex;
  align-items:  center;
  justify-content: space-between;
  height:       64px;
  position:     sticky;
  top:          0;
  z-index:      100;
  box-shadow:   0 2px 8px rgba(0,0,0,0.06);
}
.site-logo {
  font-family: Georgia, serif;
  font-size:   26px;
  font-weight: 700;
  color:       var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo em { color: var(--red); font-style: normal; }

.nav-categories {
  display:     flex;
  gap:         0;
  list-style:  none;
  flex:        1;
  justify-content: center;
  overflow-x:  auto;
  scrollbar-width: none;
}
.nav-categories::-webkit-scrollbar { display: none; }
.nav-categories li a {
  display:     block;
  color:       var(--text-secondary);
  font-size:   13px;
  font-weight: 600;
  padding:     0 14px;
  height:      64px;
  line-height: 64px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-categories li a:hover,
.nav-categories li.current-cat a {
  color:        var(--accent);
  border-bottom-color: var(--accent);
}

.nav-search input {
  border:        1px solid var(--border-dark);
  border-radius: var(--radius);
  padding:       7px 12px;
  font-size:     13px;
  width:         180px;
  outline:       none;
  color:         var(--text-primary);
  background:    var(--bg);
}
.nav-search input:focus { border-color: var(--accent); }

/* ── TICKER ──────────────────────────────────────────────── */
#ticker-bar {
  background:  var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding:     7px 32px;
  display:     flex;
  align-items: center;
  gap:         16px;
  overflow:    hidden;
}
.ticker-label {
  background:  var(--red);
  color:       #fff;
  font-size:   10px;
  font-weight: 700;
  padding:     3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
  text-transform: uppercase;
}
.ticker-track {
  display:   flex;
  gap:       40px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { color: var(--text-secondary); font-size: 13px; font-family: var(--font-sans); }
.ticker-item strong { color: var(--text-primary); font-weight: 700; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  border-bottom: 2px solid var(--border);
  max-height: 420px;
}
.hero-content {
  padding:  32px 36px;
  display:  flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.hero-badge {
  display:    inline-flex;
  align-items: center;
  gap:        6px;
  background: var(--accent);
  color:      #fff;
  font-size:  10px;
  font-weight: 700;
  padding:    3px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width:      fit-content;
  font-family: var(--font-sans);
}
.hero-title {
  font-family: Georgia, serif;
  font-size:   32px;
  font-weight: 700;
  line-height: 1.2;
  color:       var(--text-primary);
  margin-bottom: 14px;
}
.hero-title a:hover { color: var(--accent); }
.hero-excerpt {
  color:     var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  font-family: Georgia, serif;
  margin-bottom: 16px;
}
.hero-meta {
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-wrap:   wrap;
  font-family: var(--font-sans);
}
.source-link { color: var(--accent); font-size: 12px; font-weight: 700; }
.meta-time   { color: var(--text-muted); font-size: 12px; }
.meta-sep    { color: var(--border-dark); }
.hero-image  {
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── CAT-BAR ─────────────────────────────────────────────── */
.cat-filter-bar {
  display:      flex;
  padding:      0 32px;
  border-bottom: 1px solid var(--border);
  background:   var(--bg);
  overflow-x:   auto;
  scrollbar-width: none;
  gap:          0;
}
.cat-filter-bar a {
  display:     block;
  padding:     10px 16px;
  color:       var(--text-muted);
  font-size:   12px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cat-filter-bar a:hover { color: var(--accent); }
.cat-filter-bar a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── LAYOUT PRINCIPAL ────────────────────────────────────── */
#main-container {
  max-width: 1240px;
  margin:    0 auto;
  padding:   28px 32px;
  display:   grid;
  grid-template-columns: 1fr 300px;
  gap:       36px;
}

/* ── SECTION TITLE ───────────────────────────────────────── */
.section-title {
  font-size:    11px;
  font-weight:  700;
  color:        var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family:  var(--font-sans);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display:      flex;
  align-items:  center;
  justify-content: space-between;
}
.section-title a {
  font-size:    11px;
  color:        var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight:  400;
}
.section-title a:hover { color: var(--accent); }

/* ── GRILLE ARTICLES ─────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     20px;
  margin-bottom: 28px;
}

/* ── CARD ARTICLE ────────────────────────────────────────── */
.article-card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
  transition:    var(--transition);
  display:       flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow:    var(--shadow);
  border-color:  var(--accent);
}
.card-thumbnail {
  position:  relative;
  height:    170px;
  overflow:  hidden;
  background: var(--bg-light);
}
.card-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.article-card:hover .card-thumbnail img { transform: scale(1.03); }
.card-cat-badge {
  position:    absolute;
  top:         10px;
  left:        10px;
  background:  var(--accent);
  color:       #fff;
  font-size:   10px;
  font-weight: 700;
  padding:     3px 7px;
  border-radius: 2px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: Georgia, serif;
  font-size:   15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color:       var(--text-primary);
  display:     -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  color:     var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  font-family: Georgia, serif;
  flex:      1;
  display:   -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:  hidden;
}
.card-footer {
  display:     flex;
  align-items: center;
  justify-content: space-between;
  margin-top:  10px;
  padding-top: 8px;
  border-top:  1px solid var(--border);
  font-family: var(--font-sans);
}
.card-source { color: var(--accent); font-size: 11px; font-weight: 700; }
.card-time   { color: var(--text-muted); font-size: 11px; }

/* ── CARD LISTE ──────────────────────────────────────────── */
.article-list-item {
  display:    flex;
  gap:        14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
  transition: var(--transition);
}
.article-list-item:hover .list-title { color: var(--accent); }
.list-thumb {
  width:     110px;
  min-width: 110px;
  height:    74px;
  overflow:  hidden;
  background: var(--bg-light);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-cat-badge {
  display:    inline-block;
  background: var(--accent-light);
  color:      var(--accent);
  font-size:  10px;
  font-weight: 700;
  padding:    2px 6px;
  border-radius: 2px;
  margin-bottom: 5px;
  font-family: var(--font-sans);
  text-transform: uppercase;
}
.list-title {
  font-family: Georgia, serif;
  font-size:  14px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
  color:      var(--text-primary);
}
.list-source { color: var(--accent); font-size: 11px; font-weight: 700; font-family: var(--font-sans); }
.list-time   { color: var(--text-muted); font-size: 11px; font-family: var(--font-sans); }

/* ── PAGE ARTICLE ────────────────────────────────────────── */
.article-header { padding: 32px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article-cats   { display: flex; gap: 8px; margin-bottom: 14px; }
.article-cat-tag {
  background:  var(--accent);
  color:       #fff;
  font-size:   10px;
  font-weight: 700;
  padding:     3px 8px;
  border-radius: 2px;
  font-family: var(--font-sans);
  text-transform: uppercase;
}
.article-title {
  font-family: Georgia, serif;
  font-size:   36px;
  font-weight: 700;
  line-height: 1.2;
  color:       var(--text-primary);
  margin-bottom: 16px;
}
.source-badge {
  display:    flex;
  align-items: center;
  gap:        10px;
  padding:    10px 14px;
  background: var(--bg-light);
  border:     1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size:  13px;
  color:      var(--text-secondary);
  font-family: var(--font-sans);
}
.source-badge a { color: var(--accent); font-weight: 700; }

.article-featured-img { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.article-featured-img img { width: 100%; max-height: 460px; object-fit: cover; }

.article-content { font-family: Georgia, serif; font-size: 17px; line-height: 1.8; color: var(--text-secondary); }
.article-content h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; font-family: Georgia, serif; }
.article-content h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 20px 0 10px; }
.article-content p  { margin-bottom: 18px; }
.article-content a  { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(26,58,107,0.3); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding:     12px 20px;
  margin:      20px 0;
  background:  var(--accent-light);
  font-style:  italic;
  color:       var(--text-primary);
}
.chapeau-article {
  font-size:   18px;
  line-height: 1.6;
  color:       var(--text-primary);
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
#sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  overflow:      hidden;
}
.widget-header {
  background:  var(--accent);
  padding:     8px 14px;
  font-size:   11px;
  font-weight: 700;
  color:       #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.widget-body { padding: 14px; }

.trending-list { display: flex; flex-direction: column; }
.trending-item {
  display:     flex;
  gap:         10px;
  align-items: flex-start;
  padding:     10px 0;
  border-bottom: 1px solid var(--border);
  cursor:      pointer;
}
.trending-item:last-child { border-bottom: none; }
.trend-num { font-size: 18px; font-weight: 700; color: var(--border-dark); min-width: 28px; font-family: Georgia, serif; }
.trend-title { font-size: 13px; color: var(--text-primary); line-height: 1.4; font-family: Georgia, serif; font-weight: 700; }
.trend-title:hover { color: var(--accent); }
.trend-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; font-family: var(--font-sans); }

/* Boutons sociaux sidebar */
.social-follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.follow-btn {
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         6px;
  padding:     9px 8px;
  border-radius: var(--radius);
  font-size:   12px;
  font-weight: 700;
  color:       #fff;
  cursor:      pointer;
  transition:  var(--transition);
  font-family: var(--font-sans);
  text-decoration: none;
}
.follow-btn:hover { opacity: 0.88; color: #fff; }
.follow-btn.fb { background: #1877f2; }
.follow-btn.yt { background: #ff0000; }
.follow-btn.tw { background: #000; }
.follow-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.follow-btn svg { width: 14px; height: 14px; fill: white; }

.next-scan-bar {
  display:    flex;
  align-items: center;
  gap:        10px;
  padding:    10px 14px;
  font-family: var(--font-sans);
}
.scan-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.scan-text { font-size: 12px; color: var(--text-secondary); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  background:  var(--bg-light);
  border:      1px solid var(--border);
  color:       var(--text-secondary);
  font-size:   11px;
  padding:     4px 9px;
  border-radius: 2px;
  cursor:      pointer;
  font-family: var(--font-sans);
  transition:  var(--transition);
}
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
  background:  var(--accent);
  padding:     40px 32px 24px;
  margin-top:  48px;
  color:       rgba(255,255,255,0.8);
}
.footer-grid {
  max-width: 1240px;
  margin:    0 auto;
  display:   grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:       40px;
  margin-bottom: 32px;
}
.footer-logo { font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-logo em { color: #ffd700; font-style: normal; }
.footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-sans); border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 8px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 13px; font-family: var(--font-sans); }
.footer-col ul li a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
  width:       30px;
  height:      30px;
  background:  rgba(255,255,255,0.15);
  border-radius: 50%;
  display:     flex;
  align-items: center;
  justify-content: center;
  transition:  var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,0.3); }
.footer-social svg { width: 14px; height: 14px; fill: white; }
.footer-bottom {
  max-width:  1240px;
  margin:     0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  display:    flex;
  justify-content: space-between;
  font-size:  12px;
  color:      rgba(255,255,255,0.5);
  font-family: var(--font-sans);
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0; }
.pagination a, .pagination span {
  display:     flex;
  align-items: center;
  justify-content: center;
  width:       34px;
  height:      34px;
  border:      1px solid var(--border);
  border-radius: var(--radius);
  font-size:   13px;
  color:       var(--text-secondary);
  font-family: var(--font-sans);
  transition:  var(--transition);
}
.pagination a:hover, .pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  #main-container { grid-template-columns: 1fr; }
  #hero { grid-template-columns: 1fr; }
  .hero-image { display: none; }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  #navbar { padding: 0 16px; }
  .nav-categories { display: none; }
  #main-container { padding: 16px; }
  #top-bar { padding: 6px 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 20px; }
  .hero-title { font-size: 22px; }
}
