/* Fichier produit par Siteweb/assets.py à partir de : models/tools/style.css (news), models/news/style.css. Ne pas le modifier. */
/* ===== models/tools/style.css (news) */
/* Modèle tools : listes d’outils (plp/) et fiches outil (product/). Base et couleurs (thèmes jour et nuit) dans /common/style.css. */
:root {
  /* Largeur : celle du site (--max-width de common/style.css, 1280 px), sans valeur propre au modèle. */
  --radius: 16px;
  --radius-lg: 24px;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body { min-height: 100vh; min-height: 100svh; height: auto; display: flex; flex-direction: column; overflow-x: clip; font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
body > main { flex: 1; padding: 0 0 80px; }
h1 { margin-bottom: 32px; font-size: clamp(36px, 7vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; color: var(--color-text); }
/* Liste des outils (plp/) : le H1 garde un peu d'air sous l'en-tête. */
main > h1, .tools-list h1 { padding-top: 40px; }

.tools-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.tools-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-card); color: var(--color-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.tools-filter button:hover:not(:disabled) { border-color: var(--color-accent); }
.tools-filter button:disabled { opacity: .4; cursor: default; }
.tools-filter button[aria-pressed="true"] { border-color: var(--color-text); background: var(--color-text); color: var(--color-background); }
.tools-filter-count { color: var(--color-muted); font-size: 12px; font-weight: 700; }
.tools-filter button[aria-pressed="true"] .tools-filter-count { color: inherit; opacity: .7; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 40px; color: var(--color-muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb [aria-current] { color: var(--color-text); }

/* ===== models/news/style.css */
/* Modèle news — pages d'actualités : frise datée à gauche (titres), détail de l'actualité choisie à droite.
   S'ajoute à models/tools/style.css, chargé seulement pour les briques communes (largeur de page, fil d'Ariane, boutons de filtre). Couleurs : variables de common/style.css. */

/* En-tête compact, sur le fond de la page : la frise doit apparaître dès l'arrivée. */
.news-header { max-width: var(--max-reading); padding: 28px 0 0; }
.news-header .breadcrumb { margin-bottom: 20px; }
.news-header h1 { margin: 0 0 12px; color: var(--color-text); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.news-intro p { margin: 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.65; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; color: var(--color-muted); font-size: 13px; font-weight: 600; }

.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--color-border); }

/* Filtres, au-dessus de la frise. */
.news-filters { margin-bottom: 8px; }
.news-filters .tools-filter button { padding: 6px 12px; font-size: 13px; }
.news-filter-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.news-essential { display: flex; align-items: center; gap: 8px; color: var(--color-text); font-size: 14px; font-weight: 700; cursor: pointer; }
.news-essential input { width: 16px; height: 16px; accent-color: var(--color-accent); }
.news-filter-result { margin: 0; color: var(--color-muted); font-size: 13px; }

/* Frise : une ligne verticale, une pastille par actualité, la date dans la colonne de gauche. */
.news-month { scroll-margin-top: 72px; }
.news-month + .news-month { margin-top: 16px; }
.news-month-title { position: sticky; top: 0; z-index: 2; margin: 0 0 4px; padding: 12px 0; background: var(--color-background); font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--color-text); }
.news-list { position: relative; list-style: none; margin: 0; padding: 0; }
.news-list::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 67px; width: 2px; background: var(--color-border); }
.news-item { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 32px; padding: 8px 0; scroll-margin-top: 72px; }
.news-item::before { content: ""; position: absolute; top: 24px; left: 62px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-background); box-shadow: inset 0 0 0 3px var(--color-muted); }
.news-importance-3::before { background: var(--color-primary); box-shadow: 0 0 0 5px var(--color-accent-soft); }
.news-importance-2::before { box-shadow: inset 0 0 0 3px var(--color-accent); }
.news-date { display: flex; flex-direction: column; align-items: flex-end; padding-top: 12px; line-height: 1; text-align: right; }
.news-day { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--color-text); }
.news-month-short { margin-top: 4px; color: var(--color-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Carte de la frise : catégorie, importance et titre ; toute la carte est cliquable (bouton du titre). */
.news-card { position: relative; padding: 14px 18px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-card); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.news-card:hover { border-color: var(--color-accent); }
.news-importance-3 .news-card { border-color: var(--color-accent); }
.news-item.is-selected .news-card { border-color: var(--color-text); background: var(--color-surface); box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .08); }
.news-item.is-selected .news-card::after { content: ""; position: absolute; top: 50%; right: -7px; width: 12px; height: 12px; border-top: 1px solid var(--color-text); border-right: 1px solid var(--color-text); background: var(--color-surface); transform: translateY(-50%) rotate(45deg); }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.news-tags span { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news-kind { background: var(--color-surface-strong); color: var(--color-text); }
.news-level { box-shadow: inset 0 0 0 1px var(--color-border); color: var(--color-muted); }
.news-importance-3 .news-level { background: var(--color-ink); box-shadow: none; color: var(--color-on-ink); }
.news-importance-2 .news-level { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.news-card h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; color: var(--color-text); }
.news-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.news-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.news-open:focus-visible { outline: none; }
.news-open:focus-visible::after { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Détail d'une actualité : dans la frise sans JavaScript (et ouvert sous l'actualité sur mobile), recopié à droite sinon. */
.news-detail { position: relative; z-index: 1; margin-top: 12px; }
.news-item .news-detail-date { display: none; }
.news-js .news-item .news-detail { display: none; }
.news-detail-date { margin: 0 0 10px; color: var(--color-muted); font-size: 13px; font-weight: 600; }
.news-summary p { margin: 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.7; }
.news-impact { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--color-primary); border-radius: 0 8px 8px 0; background: var(--color-surface); }
.news-impact p { margin: 0; color: var(--color-text); font-size: 15px; line-height: 1.6; }
.news-impact .news-impact-title { margin-bottom: 4px; color: var(--color-accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.news-tools a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text); font-size: 13px; font-weight: 700; }
.news-tools a:hover { border-color: var(--color-accent); }
.news-tools img { border-radius: 50%; background: #fff; }
.news-sources { margin: 14px 0 0; color: var(--color-muted); font-size: 13px; }
.news-sources a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 3px; }
.news-sources a:hover { color: var(--color-accent); }
.news-empty { padding: 32px 0; color: var(--color-muted); }

/* Colonne de droite : détail de l'actualité choisie, collé en haut de l'écran pendant le défilement. */
.news-sidebar { position: sticky; top: 24px; display: grid; gap: 16px; max-height: calc(100vh - 48px); overflow-y: auto; }
.news-box { display: block; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-card); }
.news-box h2 { margin: 0 0 14px; color: var(--color-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-box ul { margin: 0; padding: 0; list-style: none; }
.news-panel { padding: 28px; border-color: var(--color-text); box-shadow: 0 16px 40px rgba(var(--shadow-rgb), .1); }
.news-panel.news-importance-3 { border-color: var(--color-accent); }
.news-box .news-panel-title { margin: 0 0 8px; color: var(--color-text); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; text-transform: none; }
.news-panel .news-detail-date { margin-bottom: 16px; }
.news-other { background: var(--color-ink); border-color: var(--color-ink); }
.news-other span { display: block; color: var(--color-on-ink-secondary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.news-other strong { display: block; margin-top: 4px; color: var(--color-on-ink); font-size: 18px; }

@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  /* Sur mobile, pas de colonne : le détail s'ouvre sous l'actualité, les autres encadrés passent sous la frise. */
  .news-sidebar { position: static; max-height: none; overflow: visible; }
  .news-panel { display: none; }
  .news-js .news-item.is-open .news-detail { display: block; }
  .news-item.is-selected .news-card::after { display: none; }
  .news-list::before { left: 51px; }
  .news-item { grid-template-columns: 36px minmax(0, 1fr); gap: 24px; }
  .news-item::before { left: 46px; }
  .news-day { font-size: 20px; }
  .news-card { padding: 14px 16px; }
}
