/* Liste des news et archives mois par mois : compléments de gabarits.css, sans changer les règles existantes.
   Les deux pages sont sur fond sombre (.cpage) : les textes et les boutons y sont clairs. */
.n-list li{grid-template-columns:96px 1fr}
.n-ext{font-size:16px;line-height:1.55;color:#D6D0C5;margin-top:6px;max-width:720px}
.n-meta{font:500 13px var(--mono);color:var(--night-mut);margin-top:8px}
.cpage .x-small{color:var(--night-mut)}
.cpage .x-head h1 span{color:var(--night-mut)}
.cpage .x-list time{color:var(--night-mut)}
.cpage .x-list a{color:var(--night-txt)}
.cpage .x-list a:hover{color:var(--red-2)}
.cpage .x-years a,.cpage .x-months a,.cpage .x-pn a,.cpage .n-anciennes summary{background:transparent;border-color:#5A5752;color:#ECE9E4}
.cpage .x-years a:hover,.cpage .x-months a:hover,.cpage .x-pn a:hover,.cpage .n-anciennes summary:hover{border-color:var(--red-2)}
.cpage .x-years a.on,.cpage .x-months a.on,.cpage .n-anciennes[open] summary{background:#ECE9E4;color:#0B0B0C;border-color:#ECE9E4}
.cpage .x-months small,.cpage .x-years small{color:inherit;opacity:.8}
.cpage .x-pn{color:var(--night-txt)}
.cpage .hint{color:var(--night-mut)}
.n-anciennes{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.n-anciennes summary{list-style:none;cursor:pointer;border:1px solid;border-radius:999px;padding:7px 13px;font-size:14px;font-weight:600;min-height:36px;display:inline-flex;align-items:center}
.n-anciennes summary::-webkit-details-marker{display:none}
.n-anciennes .x-years{margin-top:0}
.cpage .pager{margin:22px 0}
.cpage .pager a{border-color:#ECE9E4;background:transparent;color:#ECE9E4}
.cpage .pager a.on{background:#ECE9E4;color:#0B0B0C}
.cpage .pager a:hover{border-color:var(--red-2)}
.cpage .pager{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:4px;align-items:center}
.cpage .pager a{flex:1 1 0;min-width:40px;text-align:center;padding:6px 10px}
.cpage .pager-ecart{flex:none;padding:6px 4px;color:#ECE9E4}
.n-visuel-vide{display:flex;align-items:center;justify-content:center;background:#1c1a18;color:#9A968F;font:500 14px var(--mono)}
.n-corps img{max-width:100%;height:auto;border-radius:3px;margin:18px 0}
.n-corps ul,.n-corps ol{margin:0 0 18px 22px;font-size:18px;line-height:1.7}
.n-corps li{margin-bottom:6px}
.n-corps a{color:var(--red);border-bottom:1px solid currentColor}
.top .live:empty{display:none}
/* Tiroir mobile fermé : son ombre ne doit pas déborder sur le bord droit de la fiche. */
#news-fiche .drawer:not([open]){box-shadow:none}
.video-responsive{display:block;position:relative;width:100%;aspect-ratio:16/9;margin:22px auto;max-width:720px}
.video-responsive iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
#news-fiche .n-visuel-vide{background:var(--paper-2);border:1.5px dashed #b9ae9a;color:var(--ink-3)}
/* Fiche news : fond gris de la maquette v2.3 (--paper), sans trame ni teinte sépia. Le corps reste sur le même fond. */
body.fiche-news{background:var(--paper);color:var(--ink)}
#news-fiche{background:var(--paper);color:var(--ink)}
/* Espace entre le visuel et le corps de la news, comme la maquette (légende absente). */
#news-fiche .fig{margin:0 0 20px}
/* Images du corps : ouvertes en visionneuse (a.fr), sans le cadrage de la galerie. */
.n-corps a.fr{display:inline-block;max-width:100%;cursor:zoom-in;line-height:0}
.n-corps a.fr img{max-width:100%;height:auto}
.n-corps a.fr{border:0}
/* Images flottantes de l'ancien site : vignette à droite ou à gauche du texte, qui s'enroule autour. Sur petit écran, pleine largeur. */
.n-corps::after{content:"";display:block;clear:both}
.n-corps a.fr.n-flotte-droite{float:right;margin:4px 0 16px 22px}
.n-corps a.fr.n-flotte-gauche{float:left;margin:4px 22px 16px 0}
@media (max-width:600px){
  .n-corps a.fr.n-flotte-droite,.n-corps a.fr.n-flotte-gauche{float:none;display:block;margin:14px auto 20px}
}
/* Photos en hauteur : limitées en hauteur (70 % de l'écran) et en largeur, centrées. Flottantes et étroites si le texte les côtoie.
   Les photos en paysage gardent la pleine largeur. */
.n-corps a.fr.n-portrait{display:block;max-width:min(60%,420px);margin:18px auto}
.n-corps a.fr.n-portrait img{display:block;max-height:70vh;width:auto;max-width:100%;margin:0 auto}
.n-corps a.fr.n-portrait.n-flotte-droite,.n-corps a.fr.n-portrait.n-flotte-gauche{width:40%;max-width:300px}
@media (max-width:600px){
  .n-corps a.fr.n-portrait{max-width:80%}
  .n-corps a.fr.n-portrait.n-flotte-droite,.n-corps a.fr.n-portrait.n-flotte-gauche{float:none;width:80%;max-width:80%}
}
/* Marges minimales de 10 px autour des images du corps, côté texte compris. Ces règles passent après les précédentes. */
.n-corps a.fr{margin:0}
.n-corps a.fr.n-portrait{margin:0 auto}
.n-corps a.fr.n-flotte-droite,.n-corps a.fr.n-portrait.n-flotte-droite{margin:10px 0 10px 22px}
.n-corps a.fr.n-flotte-gauche,.n-corps a.fr.n-portrait.n-flotte-gauche{margin:10px 22px 10px 0}
@media (max-width:600px){
  .n-corps a.fr.n-flotte-droite,.n-corps a.fr.n-flotte-gauche,.n-corps a.fr.n-portrait.n-flotte-droite,.n-corps a.fr.n-portrait.n-flotte-gauche{margin:10px auto}
}

/* Liste des news et archives sur fond papier uni (#F6F3EE, comme la maquette) : les textes clairs de .n-ext et .n-meta repassent en encre. */
body.page-papier{background:var(--paper);color:var(--ink)}
body.page-papier .n-ext{color:var(--ink-2)}
body.page-papier .n-meta{color:var(--ink-3)}

/* Dernières news (maquette) : extrait sur deux lignes, date et auteur sur une ligne, vignette seulement si la news a une photo. */
#news .sujets{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px}
#news .sujets a{font:600 14px var(--sans);border:1px solid var(--ink-3);border-radius:20px;padding:7px 14px;color:var(--ink);text-decoration:none}
#news .sujets a:hover{border-color:var(--red)}
#news .sujets a.on{background:var(--ink);border-color:var(--ink);color:#fff}
#news .n-list li,#auteur .n-list li{grid-template-columns:1fr;gap:6px 16px;padding:18px 0}
#news .n-list li.avec-photo,#auteur .n-list li.avec-photo{grid-template-columns:120px 1fr}
#news .n-vignette,#auteur .n-vignette{width:120px;height:90px;object-fit:cover;border-radius:2px;background:#ddd}
#news .n-list time,#auteur .n-list time{color:inherit}
#news .n-meta,#auteur .n-meta{font:500 13px var(--mono);color:var(--ink-3);margin:0 0 4px}
/* Nombre de lectures : « 5 997 lectures » reste d'un bloc, il passe entier à la ligne suivante si besoin. */
#news .n-lectures,#auteur .n-lectures{white-space:nowrap}
/* Compteur du titre (« · 2 708 ») : le nombre ne se coupe pas, il passe entier à la ligne suivante si besoin. */
#news .x-head h1 span{white-space:nowrap}
#news .n-list a,#auteur .n-list a{font:700 20px/1.3 var(--serif);color:var(--ink)}
#news .n-ext,#auteur .n-ext{font-size:15px;line-height:1.5;color:var(--ink-2);margin:6px 0 0;max-width:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:700px){#news .n-list li.avec-photo,#auteur .n-list li.avec-photo{grid-template-columns:96px 1fr}#news .n-vignette,#auteur .n-vignette{width:96px;height:72px}}
/* Toute l'entrée est cliquable : le lien du titre couvre le bloc, et le survol du bloc passe en rouge. */
#news .n-list li,#auteur .n-list li{position:relative;transition:background-color .15s}
#news .n-list li:hover,#auteur .n-list li:hover{background-color:rgba(179,25,31,.04)}
#news .n-list a::after,#auteur .n-list a::after{content:"";position:absolute;inset:0}
#news .n-list li:hover a,#auteur .n-list li:hover a{color:var(--red)}
#news .n-list li:hover .n-vignette,#news .n-list li:focus-within .n-vignette,#auteur .n-list li:hover .n-vignette,#auteur .n-list li:focus-within .n-vignette{outline:2px solid var(--red);outline-offset:2px}

/* Pagination des news : une seule ligne sur bureau, les numéros se répartissent dans la largeur (le script retire ceux qui ne tiennent pas). */
#news .pager,#auteur .pager{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:4px;align-items:center}
#news .pager a,#auteur .pager a{flex:1 1 0;min-width:40px;text-align:center;padding:6px 10px}
#news .pager-ecart,#auteur .pager-ecart{flex:none;padding:6px 4px}
/* Mobile : même rendu que la pagination des galeries (une ligne, centrée, boutons compacts). */
@media (max-width:700px){
  #news .pager,#auteur .pager{margin:22px 0;padding-bottom:0;font-size:13px;justify-content:center;justify-content:safe center;overflow-x:visible}
  #news .pager a,#auteur .pager a{flex:none;min-width:0;padding:6px 9px}
  #news .pager .pager-ecart,#auteur .pager .pager-ecart{flex:none;padding:6px 4px}
}

/* Images du corps de la fiche news : même style que le visuel du haut (coins arrondis, contour or au survol). */
#news-fiche .n-corps a.fr img{border-radius:4px}
#news-fiche .n-corps a.fr:hover img,#news-fiche .n-corps a.fr:focus-visible img{outline:2px solid #e0a74a}

/* Photos du corps reprises du site legacy : vignettes à droite sur grand écran, pleine largeur sur mobile. */
@media (min-width:700px){
  #news-fiche .n-corps a.fr.n-portrait:not(.n-flotte-gauche){float:right;display:block;width:auto;max-width:min(300px,45%);margin:4px 0 12px 20px}
  #news-fiche .n-corps a.fr.n-portrait:not(.n-flotte-gauche) img{display:block;width:auto;max-width:100%;height:auto;max-height:none}
  #news-fiche .n-corps img.n-portrait{float:right;width:auto;max-width:min(300px,45%);max-height:none;margin:4px 0 12px 20px}
}
@media (max-width:699px){#news-fiche .n-corps a.fr img{display:block;max-width:100%;margin:12px auto}}

/* Image carrée ou portrait hors visionneuse (lien externe) : centrée, hauteur bornée, comme un portrait. */
.n-corps img.n-portrait{display:block;max-width:min(60%,420px);max-height:70vh;width:auto;height:auto;margin:18px auto}
@media (max-width:699px){.n-corps img.n-portrait{max-width:80%}}

/* Portrait dans un lien externe (boutique) : même survol que les photos du corps. */
#news-fiche .n-corps a:hover > img.n-portrait,#news-fiche .n-corps a:focus-visible > img.n-portrait{outline:2px solid #e0a74a}
#news-fiche .n-corps img.n-portrait{border-radius:4px}
