/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

:root {
  --sj-bg:           #f4f6fb;
  --sj-card:         #ffffff;
  --sj-frame:        #d3d8e8;
  --sj-accent:       #e63946;
  --sj-accent-soft:  rgba(230,57,70,0.12);
  --sj-text:         #19202b;
  --sj-muted:        #6b7280;
  --sj-chip:         #eef1ff;
  --sj-chip-border:  #d4dcff;
  --sj-shadow-soft:  0 12px 30px rgba(15,23,42,0.06);
}

.sj-home {
  background: linear-gradient(135deg, rgba(244,246,251,0.9), rgba(255,255,255,0.95));
  border-radius: 18px;
  border: 1px solid var(--sj-frame);
  padding: 18px 20px 22px;
  box-shadow: var(--sj-shadow-soft);
  margin-bottom: 24px;
}

.sj-sec-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sj-muted);
  margin: 0 0 10px;
}

.sj-trending {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sj-chip);
  border: 1px solid var(--sj-chip-border);
  overflow: hidden;
}

.sj-trending-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sj-accent);
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(230,57,70,0.3);
  flex-shrink: 0;
}

.sj-trending-viewport {
  overflow: hidden;
  flex: 1;
}

.sj-trending-track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: sj-marquee 28s linear infinite;
}

.sj-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--sj-text);
  text-decoration: none;
}

.sj-trend-text {
  white-space: nowrap;
}

.sj-trend:hover .sj-trend-text {
  text-decoration: underline;
}

.sj-trend-sep {
  opacity: 0.4;
  font-size: 0.8rem;
}

.sj-trend-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.5);
}

.sj-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sj-accent);
}

@keyframes sj-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sj-board {
  margin-bottom: 18px;
}

.sj-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sj-board-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: var(--sj-card);
  border: 1px solid rgba(148,163,184,0.35);
  text-decoration: none;
  color: var(--sj-text);
  box-shadow: 0 6px 14px rgba(148,163,184,0.15);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.sj-board-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(148,163,184,0.22);
  border-color: rgba(230,57,70,0.45);
}

.sj-board-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  line-height: 1.1;
}

.sj-name-first {
  font-weight: 700;
}

.sj-name-second {
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.8rem;
}

.sj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: linear-gradient(135deg, #ffffff, #f4f6ff);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000000 !important;
  cursor: pointer;
}

.sj-btn:hover {
  border-color: var(--sj-accent);
}

.sj-hero-block {
  margin: 18px 0;
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, var(--sj-accent-soft), #ffffff);
  border: 1px solid rgba(148,163,184,0.35);
}

.sj-hero-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sj-hero-input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.sj-hero-input:focus {
  outline: none;
  border-color: var(--sj-accent);
  box-shadow: 0 0 0 1px rgba(230,57,70,0.25);
}

.sj-hero-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--sj-accent), #ff7b8c);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sj-hero-btn:hover {
  filter: brightness(1.05);
}

.sj-hero-btn-text {
  display: inline-block;
}

.sj-latest,
.sj-popular {
  margin: 12px 0 4px;
}

.sj-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sj-latest-item {
  background: var(--sj-card);
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 5px 12px rgba(148,163,184,0.16);
}

.sj-latest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  text-decoration: none;
  color: var(--sj-text);
}

.sj-lt-thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.6);
}

.sj-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sj-accent);
}

.sj-lt-title {
  font-size: 1rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .sj-home {
    padding: 14px 12px 16px;
    border-radius: 14px;
    max-width: calc(100vw - 20px);
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
  }

  .sj-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sj-latest-grid {
    grid-template-columns: 1fr;
  }

  .sj-hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .sj-hero-btn {
    width: 100%;
    justify-content: center;
  }
}

.sj-news {
  margin-top: 20px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--sj-frame);
  box-shadow: var(--sj-shadow-soft);
}

.sj-news-header {
  margin-bottom: 12px;
}

.sj-news-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sj-muted);
  margin: 0 0 4px;
}

.sj-news-title {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--sj-text);
  margin: 0 0 6px;
}

.sj-news-text {
  font-size: 0.88rem;
  color: var(--sj-muted);
  margin: 0;
}

.sj-news-form {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.sj-news-input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.sj-news-input:focus {
  outline: none;
  border-color: var(--sj-accent);
  box-shadow: 0 0 0 1px rgba(230,57,70,0.25);
}

.sj-news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--sj-accent), #ff7b8c);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}

.sj-news-btn:hover {
  filter: brightness(1.05);
}

.sj-news-success {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
}

.sj-news-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--sj-muted);
}

.sj-news-form-done {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 768px) {
  .sj-news-form {
    flex-direction: column;
    align-items: stretch;
  }

  .sj-news-btn {
    width: 100%;
  }
}

.sj-news-error {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #b91c1c;
}

.sj-search-shell {
  max-width: 980px;
  margin: 24px auto 32px;
  padding: 0 10px;
}

.sj-search-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.08);
  padding: 18px 18px 22px;
}

.sj-search-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sj-search-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  color: var(--sj-text, #0f172a);
}

.sj-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sj-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.sj-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--sj-accent, #e63946);
  box-shadow: 0 0 0 1px rgba(230,57,70,0.25);
}

.sj-search-form button {
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--sj-accent, #e63946), #ff7b8c);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

.sj-search-form button:hover {
  filter: brightness(1.05);
}

.sj-search-section {
  margin-top: 18px;
}

.sj-search-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--sj-text, #0f172a);
}

.sj-search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sj-search-item {
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.4);
  background: #ffffff;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.sj-search-item-link {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.sj-search-item:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(15,23,42,0.12);
  transform: translateY(-1px);
}

.sj-search-main {
  border-width: 2px;
  border-color: #2563eb;
  background: linear-gradient(145deg, #eff6ff, #ffffff);
}

.sj-search-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sj-search-main-body {
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}

.sj-search-hero-icon {
  flex: 0 0 auto;
}

.sj-search-hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.sj-search-thumb-img,
.sj-search-thumb-fallback {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  background: #e5edff;
  color: #1d4ed8;
  overflow: hidden;
}

.sj-search-thumb-img {
  object-fit: cover;
}

.sj-search-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,0.10);
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sj-search-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  color: var(--sj-text, #0f172a);
}

.sj-search-item-excerpt {
  font-size: 0.84rem;
  color: var(--sj-muted, #64748b);
  margin: 0;
}

.sj-search-meta {
  font-size: 0.78rem;
  color: var(--sj-muted, #64748b);
  margin: 0 0 2px;
}

.sj-search-meta span {
  font-weight: 600;
  color: var(--sj-text, #0f172a);
}

.sj-search-empty {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--sj-muted, #64748b);
}

@media (max-width: 768px) {
  .sj-search-shell {
    max-width: none;
    margin: 16px 0 24px;
    padding: 0;
  }

  .sj-search-card {
    padding: 14px 12px 18px;
    border-radius: 16px;
    max-width: calc(100vw - 20px);
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
  }

  .sj-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .sj-search-form button {
    width: 100%;
  }

  .sj-search-main-body {
    align-items: center;
  }
}

/* Taille de police plus grande pour la page de recherche */
.sj-search-title {
  font-size: 1.7rem;
}

.sj-search-section-title {
  font-size: 1.15rem;
}

.sj-search-item-title {
  font-size: 1.05rem;
}

.sj-search-item-excerpt,
.sj-search-meta {
  font-size: 0.9rem;
}

/* Un peu plus lisible sur mobile aussi */
@media (max-width: 768px) {
  .sj-search-title {
    font-size: 1.5rem;
  }

  .sj-search-section-title {
    font-size: 1.1rem;
  }

  .sj-search-item-title {
    font-size: 1rem;
  }

  .sj-search-item-excerpt,
  .sj-search-meta {
    font-size: 0.9rem;
  }
}

.sj-404-shell {
  max-width: 980px;
  margin: 24px auto 32px;
  padding: 0 10px;
}

.sj-404-card {
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.08);
  padding: 20px 20px 24px;
}

.sj-404-hero {
  text-align: center;
  margin-bottom: 18px;
}

.sj-404-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0f172a;
}

.sj-404-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

.sj-404-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #0f172a;
}

.sj-404-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #64748b;
}

.sj-404-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.sj-404-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  padding: 8px 12px;
  font-size: 0.9rem;
}

.sj-404-search-form input[type="search"]:focus {
  outline: none;
  border-color: #e63946;
  box-shadow: 0 0 0 1px rgba(230,57,70,0.25);
}

.sj-404-search-form button {
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  background: linear-gradient(135deg, #e63946, #ff7b8c);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

.sj-404-search-form button:hover {
  filter: brightness(1.05);
}

.sj-404-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.sj-404-game-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.sj-404-game-item:hover {
  border-color: #2563eb;
  box-shadow: 0 6px 20px rgba(15,23,42,0.12);
  transform: translateY(-1px);
}

.sj-404-game-name {
  text-align: center;
}

.sj-404-request-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sj-404-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sj-404-form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.sj-404-form-row input[type="email"],
.sj-404-form-row input[type="text"],
.sj-404-form-row textarea {
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.9);
  padding: 7px 10px;
  font-size: 0.9rem;
}

.sj-404-form-row textarea {
  resize: vertical;
}

.sj-404-form-row input:focus,
.sj-404-form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.22);
}

.sj-404-submit {
  align-self: flex-start;
  margin-top: 4px;
  border-radius: 999px;
  border: none;
  padding: 9px 18px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.sj-404-submit:hover {
  filter: brightness(1.05);
}

.sj-404-message {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.sj-404-message-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sj-404-message-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@media (max-width: 768px) {
  .sj-404-shell {
    max-width: none;
    margin: 16px 0 24px;
    padding: 0;
  }

  .sj-404-card {
    padding: 16px 12px 20px;
    border-radius: 16px;
    max-width: calc(100vw - 20px);
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
  }

  .sj-404-title {
    font-size: 1.5rem;
  }

  .sj-404-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .sj-404-search-form button {
    width: 100%;
  }

  .sj-404-games-grid {
    grid-template-columns: 1fr;
  }

  .sj-404-submit {
    width: 100%;
    text-align: center;
  }
}
.archive.category .page-header {
  margin-bottom: 18px;
  padding: 10px 14px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,0.4);
}

.archive.category .page-header .page-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.archive.category .page-header .taxonomy-description {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.archive.category .site-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.archive.category .site-main > article {
  height: 100%;
}

.archive.category .site-main > article .inside-article {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
  padding: 12px 14px 14px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.archive.category .site-main > article:hover .inside-article {
  border-color: #2563eb;
  box-shadow: 0 14px 40px rgba(15,23,42,0.12);
  transform: translateY(-1px);
}

.archive.category .entry-header {
  margin-bottom: 6px;
}

.archive.category .entry-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 4px;
}

.archive.category .entry-title a {
  text-decoration: none;
  color: #0f172a;
}

.archive.category .entry-title a:hover {
  color: #2563eb;
}

.archive.category .entry-meta {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.archive.category .entry-meta a {
  color: #64748b;
  text-decoration: none;
}

.archive.category .entry-meta a:hover {
  color: #2563eb;
}

.archive.category .entry-summary {
  font-size: 0.9rem;
  color: #475569;
  margin: 0 0 8px;
}

.archive.category .entry-summary p {
  margin: 0;
}

.archive.category .read-more,
.archive.category .read-more a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #2563eb;
}

.archive.category .read-more a::after {
  content: "→";
  font-size: 0.9em;
}

.archive.category .read-more a:hover {
  color: #1d4ed8;
}

.archive.category .site-main > .navigation,
.archive.category .site-main > .pagination,
.archive.category .site-main > .paging-navigation {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.archive.category .navigation.pagination,
.archive.category .paging-navigation {
  text-align: center;
  font-size: 0.9rem;
}

.archive.category .navigation.pagination .page-numbers,
.archive.category .paging-navigation .page-numbers {
  display: inline-block;
  margin: 0 3px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.archive.category .navigation.pagination .page-numbers.current,
.archive.category .paging-navigation .page-numbers.current {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.archive.category .navigation.pagination .page-numbers:hover,
.archive.category .paging-navigation .page-numbers:hover {
  border-color: #cbd5f5;
}

@media (max-width: 768px) {
  .archive.category .page-header {
    margin-left: 8px;
    margin-right: 8px;
  }

  .archive.category .site-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .archive.category .site-main > article .inside-article {
    padding: 10px 11px 12px;
    border-radius: 14px;
  }

  .archive.category .entry-title {
    font-size: 0.98rem;
  }

  .archive.category .entry-summary {
    font-size: 0.88rem;
  }
}

.archive.category .site-main > .page-header {
  grid-column: 1 / -1;
}

.sj-cat-filter {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sj-cat-filter label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.sj-cat-filter input[type="search"] {
  flex: 1;
  min-width: 160px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.9);
  padding: 6px 10px;
  font-size: 0.88rem;
}

.sj-cat-filter input[type="search"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

.sj-cat-filter-count {
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .sj-cat-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .sj-cat-filter input[type="search"] {
    width: 100%;
  }

  .sj-cat-filter-count {
    text-align: left;
  }
}

.sj-cat-filter button {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
}

.sj-cat-filter button:hover {
  filter: brightness(1.05);
}

.archive.category .entry-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.archive.category .sj-cat-icon-wrapper {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.archive.category .sj-cat-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.archive.category .sj-cat-icon-fallback {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.archive.category .entry-header .entry-title {
  margin: 0;
}

.archive.category .entry-header {
  margin-bottom: 6px;
}

.archive.category .sj-cat-header-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.archive.category .sj-cat-icon-wrapper {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.archive.category .sj-cat-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.archive.category .sj-cat-icon-fallback {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.archive.category .entry-header .entry-title {
  margin: 0;
}

.archive.category .entry-meta {
  margin-top: 4px;
}

.archive.category .entry-header {
  display: block;
  margin-bottom: 6px;
}

.archive.category .sj-cat-header-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.archive.category .sj-cat-icon-wrapper {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.archive.category .sj-cat-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.archive.category .sj-cat-icon-fallback {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.archive.category .entry-header .entry-title {
  margin: 0;
}

.archive.category .entry-meta {
  margin-top: 4px;
}

.single .post-image,
.single .inside-article > .featured-image,
.single .featured-image,
.single .entry-content .post-image {
  display: none !important;
}

.archive.category .post-image,
.archive.category .featured-image,
.archive.category .inside-article > .post-image,
.archive.category .inside-article > .featured-image {
  display: none !important;
}

/* Listes dans les articles : moins d'indentation + texte un peu plus grand sur mobile */
@media (max-width: 768px) {
  .inside-article ul,
  .entry-content ul {
    margin-left: 0;
    padding-left: 0.8rem; /* rapproche la liste du bord gauche */
  }

  .inside-article ul li,
  .entry-content ul li {
    margin-left: 0;
    padding-left: 0;
    font-size: 1.2rem;   /* augmente un peu la taille du texte */
    line-height: 1.6;     /* rend la lecture plus confortable */
  }
}

/* Texte un peu plus grand dans les articles (mobile) */
@media (max-width: 768px) {
  .inside-article,
  .entry-content {
    font-size: 1.1rem;    /* augmente légèrement la taille globale */
    line-height: 1.7;     /* plus lisible */
  }

  .inside-article p,
  .inside-article li,
  .entry-content p,
  .entry-content li {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

