/* Pages « Tous les articles » des éditions (tous-monde, tous-en, tous-es,
   tous-de) et pages pays / région (body[data-page="pays"], avec la rangée
   des autres pays de l'édition sous le titre). S'ajoute à index-actu.css (bandeau, couleurs). Les 3 articles
   les plus récents en grand, puis tous les autres rangés par mois.
   Les cartes sont construites par tous-actu.js à partir de ACTU_DATA. */
.ta-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px 48px; align-items: end; padding-top: 40px; padding-bottom: 40px; }
.ta-cherche { position: relative; display: block; }
.ta-cherche svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: rgba(255,255,255,0.7); fill: none; }
.ta-cherche input { width: 100%; height: 50px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.1); color: #FFFFFF; border-radius: 12px; padding: 0 44px; font: inherit; font-size: 1rem; }
.ta-cherche input::placeholder { color: rgba(255,255,255,0.66); }
.ta-cherche input:focus { outline: none; background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.6); }
.ta-efface { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; color: #FFFFFF; font-size: 20px; }
.ta-efface[hidden] { display: none; }

/* Pages pays / région : les autres pays de l'édition */
[data-page="pays"] .ta-tete { padding-bottom: 26px; }
.ta-voisins { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 28px; }
.ta-voisins a { flex-shrink: 0; display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 500; white-space: nowrap; transition: background .15s; }
.ta-voisins a:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.ia .ta-voisins a[aria-current] { background: #FFFFFF; border-color: #FFFFFF; color: var(--bandeau); }

/* Barre des filtres */
.ta-outils { position: sticky; top: 0; z-index: 10; background: rgba(243,242,239,0.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.ta-outils .ia-in { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.ta-themes { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ta-themes::-webkit-scrollbar { display: none; }
.ta-th { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.ta-th i { width: 7px; height: 7px; border-radius: 50%; background: var(--t, var(--pale)); }
.ta-th span { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--pale); }
.ta-th[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.ta-th[aria-pressed="true"] span { color: inherit; opacity: 0.7; }
.ta-sel { position: relative; flex-shrink: 0; }
.ta-sel[hidden] { display: none; }
.ta-sel select { appearance: none; -webkit-appearance: none; height: 38px; border: 1px solid var(--trait); background: var(--papier); color: var(--encre); border-radius: 999px; padding: 0 34px 0 14px; font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; max-width: 100%; }
.ta-sel::after { content: ''; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--gris); border-bottom: 1.5px solid var(--gris); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* Liste */
.ta-corps { padding-top: 8px; padding-bottom: 88px; }
.ta-resume { font-size: 0.875rem; color: var(--gris); margin-top: 22px; }
.ta-resume b { color: var(--encre); }
.ta-bloc { margin-top: 34px; }
.ta-bloc h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--encre); }
.ta-recents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ta-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ia .actu-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.ia .actu-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.ta-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--puce); }
.ta-tx { padding: 12px 14px 15px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ta-recents .ta-tx { padding: 14px 16px 18px; }
.actu-card-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.ta-recents .actu-card-title { font-size: 1.2rem; line-height: 1.25; }
.actu-card:hover .actu-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ta-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ta-meta .ia-lieu { font-size: 0.66rem; }
.ta-meta mark, .actu-card-title mark { background: rgba(246,210,138,0.6); color: inherit; border-radius: 2px; padding: 0 1px; }
.ta-vide { text-align: center; padding: 64px 16px; color: var(--gris); }
.ta-vide h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; color: var(--encre); margin-bottom: 6px; border: 0; }
.ta-vide button { margin-top: 14px; border: 1px solid var(--trait); background: var(--papier); border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; font-weight: 500; }

@media (max-width: 860px) {
  .ta-tete { grid-template-columns: minmax(0, 1fr); }
  .ta-recents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-recents .actu-card:first-child { grid-column: 1 / -1; }
  .ta-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ta-tete { padding-top: 28px; padding-bottom: 28px; }
  [data-page="pays"] .ta-tete { padding-bottom: 20px; }
  .ta-voisins { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 22px; }
  .ta-voisins::-webkit-scrollbar { display: none; }
  .ta-outils .ia-in { flex-wrap: wrap; }
  .ta-themes { flex-basis: 100%; }
  .ta-recents { grid-template-columns: minmax(0, 1fr); }
  .ta-grille { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ta-grille .actu-card { flex-direction: row; gap: 12px; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0; background: transparent; padding: 12px 0; }
  .ta-grille .actu-card:hover { transform: none; box-shadow: none; }
  .ta-grille .ta-img { flex-shrink: 0; width: 104px; height: 78px; aspect-ratio: auto; border-radius: 8px; }
  .ta-grille .ta-tx { padding: 0; }
  .ta-grille .actu-card-title { font-size: 0.95rem; }
  .ta-grille .actu-card[data-fav] .actu-card-title { padding-right: 40px; }
  /* Badge Premium et étoile des favoris posés par auth.js / favoris.js */
  .ta-grille .ecg-badge-premium { top: auto !important; bottom: 16px; left: 4px; right: auto !important; }
}
