@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:wght@400;500;600&display=swap');

:root {
  --green: #00C853;
  --green-dark: #009624;
  --black: #0A0A0A;
  --dark: #111;
  --dark2: #1A1A1A;
  --dark3: #222;
  --gray: #888;
  --white: #FFF;
  --red: #FF1744;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
}

/* ── HEADER ── */
#masthead {
  background: var(--dark);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-branding a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--white);
  text-decoration: none;
}

.site-branding a span { color: var(--green); }

/* Navigation */
#site-navigation { display: flex; gap: .2rem; }
#site-navigation ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
#site-navigation ul li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  padding: .4rem .85rem;
  border-radius: 4px;
  transition: all .2s;
  display: block;
}
#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item a {
  color: var(--white);
  background: var(--dark3);
}

/* Ticker bandeau */
.news-ticker {
  background: var(--green);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  align-items: center;
  gap: 3rem;
  padding-left: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--black);
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── LAYOUT PRINCIPAL ── */
#primary-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

/* ── HERO ARTICLE ── */
.hero-article {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark2);
  margin-bottom: 1.5rem;
  cursor: pointer;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-article .hero-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}

.hero-article .hero-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.hero-article .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-tag {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: .75rem;
  color: var(--white);
}

.hero-title a { color: var(--white); text-decoration: none; }
.hero-title a:hover { color: var(--green); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--gray);
  flex-wrap: wrap;
}

.hero-meta .author { color: var(--green); font-weight: 600; }

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

.article-card {
  background: var(--dark2);
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
  text-decoration: none;
  display: block;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: #3a3a3a;
}

.article-thumb {
  height: 125px;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  position: relative;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--dark2));
}

.article-body { padding: .85rem; }

.article-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: .3rem;
}

.article-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  margin-bottom: .35rem;
  color: var(--white);
}

.article-meta { font-size: .7rem; color: var(--gray); }

/* ── LISTE ARTICLES ── */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--white);
  margin-bottom: 1rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.5rem;
}

.list-article {
  background: var(--dark2);
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: .85rem 1rem;
  display: flex;
  gap: .9rem;
  align-items: center;
  transition: border-color .2s;
  text-decoration: none;
  color: var(--white);
}

.list-article:hover { border-color: #3a3a3a; }

.list-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: #2a2a2a;
  min-width: 1.8rem;
  text-align: center;
}

.la-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: .12rem;
}

.la-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.2;
}

.la-meta { font-size: .68rem; color: var(--gray); margin-top: .22rem; }

/* Bouton charger plus */
.load-more {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: var(--gray);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  text-decoration: none;
}

.load-more:hover { border-color: var(--green); color: var(--green); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; }

.sw {
  background: var(--dark2);
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
}

.sw-head {
  background: var(--dark3);
  padding: .7rem 1.1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
}

.sw-head span { color: var(--green); }
.sw-body { padding: .9rem 1rem; }

/* Widget categories */
.cat-list { display: flex; flex-direction: column; gap: .1rem; }
.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .42rem .5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--white);
}
.cat-item:hover { background: var(--dark3); }
.cat-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .85rem; }
.cat-count {
  background: var(--dark3);
  color: var(--gray);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 20px;
}

/* Widget tendances */
.trend-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
  transition: background .2s;
  text-decoration: none;
  color: var(--white);
}
.trend-item:hover { background: var(--dark3); }
.trend-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #222;
  min-width: 1.6rem;
  line-height: 1;
}
.trend-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .84rem; line-height: 1.2; }
.trend-meta { font-size: .66rem; color: var(--gray); margin-top: .1rem; }

/* ── PAGE ARTICLE ── */
.single-article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
}

.art-back-bar {
  background: var(--dark);
  border-bottom: 1px solid #1e1e1e;
  padding: .6rem 2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.art-back-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: var(--gray);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  padding: .38rem .9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.art-back-btn:hover { border-color: var(--green); color: var(--white); }

.art-cat-badge {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .22rem .65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-decoration: none;
}

.entry-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1.08;
  letter-spacing: -.5px;
  color: var(--white);
  margin-bottom: 1rem;
}

.art-chapeau {
  font-family: 'Barlow', sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: #bbb;
  line-height: 1.6;
  border-left: 3px solid var(--green);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.art-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e1e1e;
  flex-wrap: wrap;
}

.art-author { color: var(--green); font-weight: 700; font-family: 'Barlow Condensed', sans-serif; font-size: .88rem; }

.art-cover {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.8rem;
  aspect-ratio: 16/9;
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.entry-content {
  font-family: 'Barlow', sans-serif;
  font-size: .97rem;
  line-height: 1.85;
  color: #ccc;
}
.entry-content p { margin-bottom: 1.2rem; }
.entry-content h2, .entry-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  margin: 1.5rem 0 .75rem;
}
.entry-content hr { border: none; border-top: 1px solid #222; margin: 1.5rem 0; }
.entry-content blockquote {
  background: rgba(0,200,83,.07);
  border-left: 3px solid var(--green);
  padding: .75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  color: #bbb;
  font-size: .9rem;
}

/* Post tags */
.art-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; padding-top: 1rem; border-bottom: 1px solid #1e1e1e; }
.art-tag-pill {
  background: var(--dark2);
  border: 1px solid #2a2a2a;
  color: var(--gray);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  text-decoration: none;
}
.art-tag-pill:hover { border-color: var(--green); color: var(--green); }

/* Articles recommandés sidebar */
.art-sw {
  background: var(--dark2);
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.art-sw-head {
  background: var(--dark3);
  padding: .65rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid #1e1e1e;
}
.art-sw-head span { color: var(--green); }

.art-rec-item {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .75rem 1rem;
  border-bottom: 1px solid #161616;
  transition: background .15s;
  text-decoration: none;
  color: var(--white);
}
.art-rec-item:last-child { border-bottom: none; }
.art-rec-item:hover { background: rgba(255,255,255,.025); }

.art-rec-thumb {
  width: 64px;
  height: 46px;
  border-radius: 5px;
  background: var(--dark3);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.art-rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-rec-tag { font-family: 'Barlow Condensed', sans-serif; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: .18rem; }
.art-rec-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .82rem; line-height: 1.25; }
.art-rec-meta { font-size: .65rem; color: #555; margin-top: .18rem; }

/* ── PAGINATION ── */
.p2f-pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin: 2rem 0;
}
.p2f-pagination a, .p2f-pagination span {
  background: var(--dark2);
  border: 1px solid #2a2a2a;
  color: var(--gray);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: .4rem .75rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all .2s;
}
.p2f-pagination a:hover { border-color: var(--green); color: var(--green); }
.p2f-pagination .current { border-color: var(--green); color: var(--white); background: rgba(0,200,83,.1); }

/* ── FOOTER ── */
#colophon {
  background: var(--dark);
  border-top: 1px solid #1e1e1e;
  padding: 2rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
}
.footer-logo span { color: var(--green); }
.footer-copy { font-size: .78rem; color: #444; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .78rem; color: #555; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #primary-content { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  #site-navigation ul li:not(:first-child) { display: none; }
  .hero-title { font-size: 1.7rem; }
  .single-article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  #primary-content { padding: 1rem; }
  .single-article-layout { padding: 1rem; }
}
