/* Info.bf — feuille de style du site (rouge et blanc). Mise en page du fil inspirée de MSN : grille de cartes de hauteur fixe
   (1 colonne sur téléphone, puis 2, 3, 4), grandes cartes sur 2 colonnes, diaporama « À la une », carrousels. */

:root {
  --bg: #f3f3f3; --card: #fff; --text: #1a1a1a; --muted: #616161; --accent: #c8102e; --line: #e4e4e4;
  --r: 10px; --gap: 12px; --h: 304px; --largeur: 1260px;
  --ombre: 0 1px 2px rgba(0, 0, 0, .14), 0 0 2px rgba(0, 0, 0, .12);
  --ombre-survol: 0 6px 16px rgba(0, 0, 0, .16), 0 0 2px rgba(0, 0, 0, .12);
  color-scheme: light dark;
}
/* Thème : automatique (système), ou choisi dans la roue (data-theme="clair" / "sombre" sur <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --bg: #121212; --card: #1e1e1e; --text: #ececec; --muted: #a3a3a3; --accent: #ff5a5f; --line: #2e2e2e;
    --ombre: 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04);
    --ombre-survol: 0 6px 18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  }
}
:root[data-theme="sombre"] {
  --bg: #121212; --card: #1e1e1e; --text: #ececec; --muted: #a3a3a3; --accent: #ff5a5f; --line: #2e2e2e;
  --ombre: 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04);
  --ombre-survol: 0 6px 18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  color-scheme: dark;
}
:root[data-theme="clair"] { color-scheme: light; }

* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bandeau-maintenance { background: #b45309; color: #fff; text-align: center; padding: .45rem 1rem; font-size: .9rem; }
.bandeau-maintenance a { text-decoration: underline; }

/* ---------- En-tête : logo, recherche, rubriques ---------- */
.entete { background: var(--card); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 20; }
.entete-haut { max-width: var(--largeur); margin: auto; padding: 10px 16px 4px; display: flex; align-items: center; gap: 16px; }
.logo { font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; color: var(--accent); flex: none; line-height: 1; }
.logo img { display: block; height: 36px; width: auto; }
/* Logo pour le mode sombre (Paramètres → Identité), s'il est déposé : mêmes règles que le thème. */
.logo-sombre { display: none !important; }
:root[data-theme="sombre"] .logo:has(.logo-sombre) .logo-clair { display: none !important; }
:root[data-theme="sombre"] .logo-sombre { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .logo:has(.logo-sombre) .logo-clair { display: none !important; }
  :root:not([data-theme="clair"]) .logo-sombre { display: block !important; }
}
.tagline { color: var(--muted); font-size: .85rem; display: none; }
.recherche { flex: 1; min-width: 0; max-width: 600px; margin: 0 auto; position: relative; }
.recherche svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.recherche input {
  width: 100%; height: 42px; padding: 0 16px 0 42px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
.recherche input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--card); }
.entete-nav {
  max-width: var(--largeur); margin: auto; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.entete-nav::-webkit-scrollbar { display: none; }
.entete-nav a {
  padding: 8px 10px 9px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent;
}
.entete-nav a:hover { color: var(--text); }
.entete-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
@media (min-width: 960px) { .tagline { display: block; } .entete-nav { -webkit-mask-image: none; } }

/* Droite de l'en-tête : météo et roue « Mes canaux » */
.entete-droite { flex: none; display: flex; align-items: center; gap: 2px; }
.meteo, .roue {
  border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; border-radius: 8px;
  display: flex; align-items: center; gap: 4px; padding: 6px 8px;
}
.meteo:hover, .roue:hover { background: var(--bg); }
/* Sélecteur de langue FR | EN : EN ouvre la rubrique « In English ». */
.langues { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-right: 4px; flex: none; }
.langues a { padding: 4px 10px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 20px; }
.langues a:hover { color: var(--text); }
.langues a[aria-current="true"] { background: var(--text); color: var(--card); }
.meteo[hidden] { display: none; }
.meteo-icone { font-size: 20px; line-height: 1; }
.meteo-temp { font-weight: 600; font-size: 15px; white-space: nowrap; }
.roue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Téléphone : la recherche se réduit à une loupe qui s'ouvre sur toute la largeur de l'en-tête (comme MSN mobile). */
@media (max-width: 639px) {
  .entete-haut { position: relative; gap: 8px; }
  .recherche { flex: 0 0 40px; margin: 0 0 0 auto; }
  .recherche svg { left: 11px; }
  .recherche input { width: 40px; height: 40px; padding: 0; color: transparent; cursor: pointer; border-color: transparent; }
  .recherche input::placeholder { color: transparent; }
  .recherche input::-webkit-search-cancel-button { display: none; }
  .recherche:focus-within { position: absolute; left: 12px; right: 12px; top: 8px; max-width: none; z-index: 30; margin: 0; }
  .recherche:focus-within input { width: 100%; padding: 0 16px 0 40px; color: var(--text); cursor: text; border-color: var(--line); background: var(--card); }
  .recherche:focus-within input::placeholder { color: var(--muted); }
  .recherche:focus-within input::-webkit-search-cancel-button { display: revert; }
  .meteo { padding: 6px 4px; }
}

/* Suggestions de la recherche (comme MSN : tendances au clic, articles pendant la frappe) */
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--card); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22), 0 0 0 1px var(--line); padding: 8px 0; max-height: 70vh; overflow-y: auto;
}
.suggestions[hidden] { display: none; }
.sugg-titre { margin: 6px 16px 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.sugg img, .sugg .sugg-sans { flex: none; width: 56px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--line); }
.sugg span { min-width: 0; display: flex; flex-direction: column; }
.sugg b { font-weight: 600; font-size: 14px; line-height: 19px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sugg mark { background: none; color: var(--accent); }
.sugg small { color: var(--muted); font-size: 12px; }
.sugg-rubriques { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 8px; }
.sugg-rubriques a { padding: 4px 12px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; }
.sugg-tout { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; }
.suggestions [aria-selected="true"], .sugg:hover, .sugg-tout:hover, .sugg-rubriques a:hover { background: var(--bg); }
.sugg-rubriques a[aria-selected="true"], .sugg-rubriques a:hover { color: var(--accent); }

/* Fenêtre « Mes canaux » (roue) : navigation à gauche, tuiles à suivre (+) ou bloquer (⊘) */
.canaux {
  width: min(960px, calc(100vw - 24px)); height: min(680px, calc(100vh - 48px)); padding: 0; border: 0; border-radius: 14px;
  background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden;
}
.canaux::backdrop { background: rgba(0, 0, 0, .45); }
.canaux[open] { display: flex; }
.canaux-contenu { display: flex; flex: 1; min-width: 0; }
.canaux-nav { flex: none; width: 220px; padding: 24px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.canaux-nav h2 { font-size: 22px; margin: 0 0 16px 10px; }
.canaux-nav button {
  text-align: left; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; padding: 9px 12px;
  border-radius: 8px; cursor: pointer; border-left: 3px solid transparent;
}
.canaux-nav button:hover { background: var(--bg); }
.canaux-nav button[aria-current="true"] { border-left-color: var(--accent); background: var(--bg); }
.canaux-corps { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px; }
.canaux-corps h3 { margin: 0 0 4px; font-size: 22px; }
.canaux-corps h4 { margin: 20px 0 10px; font-size: 16px; }
.canaux-aide { color: var(--muted); margin: 0 0 14px; }
.canaux-filtre { width: 100%; height: 44px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; }
.canaux-filtre:focus { outline: none; border-color: var(--accent); }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tuile { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; box-shadow: var(--ombre); background: var(--card); min-width: 0; }
.tuile[hidden] { display: none; }
.tuile-icone { flex: none; width: 40px; height: 40px; border-radius: 8px; background: hsl(var(--h) 52% 40%); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; }
.tuile-nom {
  flex: 1; min-width: 0; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.tuile button {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text);
  font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.tuile .tuile-bloquer { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; font-size: 13px; opacity: 0; color: var(--muted); box-shadow: var(--ombre); }
.tuile:hover .tuile-bloquer, .tuile .tuile-bloquer:focus-visible, .tuile.bloquee .tuile-bloquer { opacity: 1; }
@media (hover: none) { .tuile .tuile-bloquer { opacity: 1; } }
.tuile.suivie .tuile-suivre { background: var(--accent); border-color: var(--accent); color: #fff; }
.tuile.bloquee { opacity: .6; }
.tuile.bloquee .tuile-bloquer { background: var(--text); color: var(--card); }
.canaux-liste { list-style: none; margin: 0; padding: 0; }
.canaux-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.canaux-liste li span { flex: 1; font-weight: 600; }
.canaux-liste button, .mon-flux button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.reglage { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; font-weight: 600; }
.reglage legend { margin-bottom: 6px; }
.reglage label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.reglage select { max-width: 280px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-weight: 400; }
.reglage-case { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.canaux-fermer { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text); font-size: 26px; cursor: pointer; }
.canaux-fermer:hover { background: var(--bg); }
@media (max-width: 699px) {
  .canaux { width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; }
  .canaux-contenu { flex-direction: column; }
  .canaux-nav { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 12px 8px; align-items: center; }
  .canaux-nav h2 { display: none; }
  .canaux-nav button { border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
  .canaux-nav button[aria-current="true"] { border-bottom-color: var(--accent); background: none; }
  .canaux-corps { padding: 18px 16px; }
  .tuiles { grid-template-columns: minmax(0, 1fr); }
}
.mon-flux { margin: 12px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mon-flux strong { color: var(--text); }

main { max-width: var(--largeur); margin: auto; padding: 4px 16px 16px; }
.titre-rubrique { margin: 14px 0 4px; }
.titre-rubrique h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.titre-rubrique p { margin: .2rem 0 0; color: var(--muted); }
.editeur-page h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions-media { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px !important; }
.editeur-nom a, .liste-laterale h2 a { color: inherit; text-decoration: none; }
.editeur-nom a:hover, .liste-laterale h2 a:hover { text-decoration: underline; }
.tout-voir { margin: 8px 0 0; font-size: 14px; font-weight: 600; }

/* ---------- Fil : grille de cartes ---------- */
.fil { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin: 12px 0; }
@media (min-width: 640px) {
  .fil { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: var(--h); grid-auto-flow: row dense; }
}
@media (min-width: 960px) { .fil { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .fil { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fil .vide { grid-column: 1 / -1; color: var(--muted); }

.carte {
  background: var(--card); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; position: relative;
  display: flex; flex-direction: column; min-width: 0; transition: box-shadow .15s;
}
.carte:hover { box-shadow: var(--ombre-survol); }
.carte > a { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.carte .visuel { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.corps { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1; }
.source {
  display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; line-height: 16px; color: var(--muted);
  white-space: nowrap; min-width: 0;
}
.source .nom { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.source time { flex: none; }
.pastille {
  flex: none; width: 16px; height: 16px; border-radius: 4px; background: hsl(var(--h) 52% 40%); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; text-transform: uppercase;
}
.carte h3 {
  margin: 0; font-size: 18px; line-height: 24px; font-weight: 600;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.carte > a:hover h3, .carte > a:focus-visible h3 { color: var(--accent); }
.extrait {
  margin: 0; color: var(--muted); font-size: 14px; line-height: 20px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
@media (min-width: 640px) {
  .carte .visuel { aspect-ratio: auto; height: 52%; flex: none; }
}

/* Carte sans image (ou image trop petite pour être étirée) : titre plus grand, extrait, vignette à droite. */
.carte.texte { border-top: 4px solid hsl(var(--h) 52% 40%); }
.carte.texte .corps { display: block; padding-top: 14px; }
.carte.texte .source { margin-bottom: 8px; }
.carte.texte h3 { font-size: 20px; line-height: 26px; -webkit-line-clamp: 4; margin-bottom: 8px; }
.carte.texte .extrait { -webkit-line-clamp: 5; }
.vignette { float: right; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; margin: 0 0 6px 12px; background: var(--line); }

/* Grande carte : 2 colonnes, image pleine, titre en blanc sur dégradé. */
@media (min-width: 640px) {
  .carte.grande { grid-column: span 2; }
  .carte.grande:not(.texte) .visuel { position: absolute; inset: 0; height: 100%; }
  .carte.grande:not(.texte) .corps {
    position: relative; margin-top: auto; flex: none; justify-content: flex-end; padding: 64px 20px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .82)); color: #fff;
  }
  .carte.grande:not(.texte) .source, .carte.grande:not(.texte) .nom { color: #fff; }
  .carte.grande:not(.texte) h3 { font-size: 24px; line-height: 31px; }
  .carte.grande:not(.texte) > a:hover h3 { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
}

/* ---------- Diaporama « À la une » ---------- */
.diapo { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); background: #111; aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .diapo { grid-column: span 2; aspect-ratio: auto; } }
.diapo-piste {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-vue { flex: 0 0 100%; position: relative; scroll-snap-align: start; color: #fff; }
.diapo-vue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo-texte {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 20px 34px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .85));
}
.diapo-texte .source, .diapo-texte .nom { color: #fff; }
.diapo-texte h2 {
  margin: 6px 0 0; font-size: 21px; line-height: 1.25; font-weight: 700;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.diapo-vue:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 640px) { .diapo-texte h2 { font-size: 26px; } }
.diapo-prec, .diapo-suiv, .bande-prec, .bande-suiv {
  position: absolute; top: 50%; translate: 0 -50%; border: 0; cursor: pointer; font: 600 26px/1 system-ui, sans-serif;
  background: rgba(255, 255, 255, .92); color: #222; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); opacity: 0;
  transition: opacity .2s; z-index: 2;
}
.diapo-prec, .diapo-suiv { width: 32px; height: 52px; border-radius: 6px; }
.diapo-prec { left: 10px; } .diapo-suiv { right: 10px; }
.diapo:hover :is(.diapo-prec, .diapo-suiv), .bande:hover :is(.bande-prec, .bande-suiv),
:is(.diapo-prec, .diapo-suiv, .bande-prec, .bande-suiv):focus-visible { opacity: 1; }
@media (hover: none) { .diapo-prec, .diapo-suiv, .bande-prec, .bande-suiv { display: none; } }
.diapo-points { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.diapo-points button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .5);
  cursor: pointer; transition: width .25s, background .25s;
}
.diapo-points button[aria-current="true"] { width: 20px; background: #fff; }

/* ---------- Tendances ---------- */
.tendances { padding: 14px 16px; }
.tendances h2 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.tendances h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }
.tendances ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tendances li { counter-increment: t; }
.tendances li + li { border-top: 1px solid var(--line); }
.tendances li a { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; padding: 8px 0; }
.tendances li a::before { content: counter(t); grid-row: span 2; font-weight: 800; font-size: 18px; line-height: 20px; color: var(--accent); }
.tendances .titre {
  font-size: 14px; line-height: 19px; font-weight: 600;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.tendances li a:hover .titre { color: var(--accent); }
.tendances .nom { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { /* hauteur fixe de la carte : cinq titres, sans le nom du média */
  .tendances { padding: 12px 16px; }
  .tendances li a { padding: 6px 0; }
  .tendances li a::before { grid-row: auto; }
  .tendances .nom { display: none; }
}

/* ---------- Carte publicitaire ---------- */
.carte.pub > a, .carte.pub { gap: 0; }
.carte.pub .source { padding: 10px 14px 8px; }
.mention { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.visuel-pub { display: block; width: 100%; height: auto; object-fit: contain; }
.code-pub { flex: 1; display: grid; place-items: center; overflow: hidden; padding: 0 8px 8px; }
@media (min-width: 640px) { .visuel-pub { flex: 1; min-height: 0; height: 100%; background: var(--bg); } }

/* ---------- Carrousel de rubrique ---------- */
.bande {
  grid-column: 1 / -1; background: var(--card); border-radius: var(--r); box-shadow: var(--ombre);
  padding: 14px 16px; position: relative; display: flex; flex-direction: column; min-width: 0;
}
.bande header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.bande h2 { margin: 0; font-size: 18px; }
.bande h2 a:hover { color: var(--accent); }
.bande .tout { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.bande-piste { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.bande-piste::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 220px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini img, .mini .sans { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--line); }
.mini h3 {
  margin: 0; font-size: 14px; line-height: 19px; font-weight: 600;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.mini:hover h3 { color: var(--accent); }
.bande-prec, .bande-suiv { width: 38px; height: 38px; border-radius: 50%; font-size: 24px; top: 58%; }
.bande-prec { left: 6px; } .bande-suiv { right: 6px; }

/* ---------- Suite du fil et nouveaux articles ---------- */
.suite { text-align: center; margin: 20px 0 32px; }
.btn-suite { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--card); box-shadow: var(--ombre); font-weight: 600; }
.btn-suite:hover { color: var(--accent); }
.suite.chargement .btn-suite { opacity: .55; pointer-events: none; }
.suite.chargement .btn-suite::after { content: "…"; }
.nouveautes { position: fixed; top: 112px; left: 50%; translate: -50% 0; z-index: 30; }
.nouveautes[hidden] { display: none; }
.nouveautes button {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; font: inherit;
  font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer;
}

/* ---------- Page article (comme MSN : actions à gauche, article, pub et liste à droite) ---------- */
.retour {
  flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.retour:hover { border-color: var(--text); }
@media (max-width: 639px) { .retour { font-size: 0; padding: 4px 12px; } .retour::before { content: "‹"; font-size: 22px; line-height: 1; } }
.lecture { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 18px 0 28px; }
.lecture .principal { order: 1; min-width: 0; }
.lecture .actions { order: 2; display: flex; gap: 12px; justify-content: center; }
.lecture .colonne { order: 3; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
@media (min-width: 960px) {
  .lecture { grid-template-columns: 56px minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .lecture .principal, .lecture .actions, .lecture .colonne { order: 0; }
  .lecture .actions { flex-direction: column; position: sticky; top: 130px; }
}
@media (min-width: 1280px) { .lecture { grid-template-columns: 56px minmax(0, 780px) 320px; justify-content: center; gap: 40px; } }
.action {
  width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--card); box-shadow: var(--ombre);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.action:hover { box-shadow: var(--ombre-survol); color: var(--accent); }
.action svg, .editeur-site svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.action.fait { color: #15803d; }
.editeur {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border-radius: var(--r);
  box-shadow: var(--ombre);
}
.grande-pastille { width: 36px; height: 36px; border-radius: 8px; font-size: 18px; line-height: 36px; }
.editeur-nom { font-weight: 700; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partenaire { font-weight: 600; font-size: 11px; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.suivre {
  flex: none; border: 0; border-radius: 6px; padding: 6px 12px; background: var(--text); color: var(--card);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.suivre[aria-pressed="true"] { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.editeur-site { margin-left: auto; color: var(--muted); display: grid; place-items: center; }
.editeur-site:hover { color: var(--accent); }
.principal h1 { font-size: 26px; line-height: 1.25; margin: 22px 0 10px; }
@media (min-width: 640px) { .principal h1 { font-size: 34px; } }
.infos { color: var(--muted); margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.infos strong { color: var(--text); font-weight: 600; }
.illustration { margin: 0 0 18px; }
.illustration img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; background: var(--line); }
.illustration figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.chapo { font-size: 19px; line-height: 1.6; margin: 0 0 22px; }
.texte-complet { font-size: 18px; line-height: 1.7; }
.texte-complet img { height: auto; border-radius: 8px; }
.btn-lire {
  display: flex; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 17px; text-align: center; margin: 8px 0 10px;
}
.btn-lire:hover { filter: brightness(1.08); }
@media (min-width: 640px) { .btn-lire { display: inline-flex; } }
.note { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.liste-laterale { padding: 14px 16px; }
.liste-laterale h2 { margin: 0 0 6px; font-size: 16px; }
.liste-laterale ul { list-style: none; margin: 0; padding: 0; }
.liste-laterale li + li { border-top: 1px solid var(--line); }
.liste-laterale a { display: flex; gap: 10px; padding: 9px 0; font-size: 14px; line-height: 19px; font-weight: 600; }
.liste-laterale a:hover span { color: var(--accent); }
.liste-laterale img { flex: none; width: 72px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--line); }
.liste-laterale span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.lecture .colonne .carte.pub, .lecture .colonne .tendances { min-height: 300px; }
.a-lire-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; }
.a-lire-titre h2 { margin: 0; font-size: 20px; }
.a-lire-titre a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- Bannières publicitaires ---------- */
.ad { margin: 12px 0; text-align: center; }
.ad small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.ad img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- Autres pages (rédaction, pages légales, formulaires, article complet) ---------- */
h1 { line-height: 1.2; }
.meta { color: var(--muted); font-size: .82rem; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--line); }
.card .body { padding: .8rem; }
.card h3 { margin: .2rem 0; font-size: 1.02rem; line-height: 1.3; }
.card a:hover h3 { color: var(--accent); }
.card p.ex { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
.pager { display: flex; gap: 1rem; justify-content: center; margin: 2rem 0; }
.prose { max-width: 760px; margin: auto; }
.form p { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1rem; }
.form input, .form textarea, .form select {
  padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit;
}
.btn { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.3rem; font: inherit; font-weight: 600; cursor: pointer; }
.errorlist { color: var(--accent); margin: 0; padding-left: 1rem; }

footer { color: var(--muted); text-align: center; padding: 2rem 1rem; font-size: .85rem; }
footer nav { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: .6rem; }

/* Bannière de consentement (kit consentkit, gabarit consentkit/banner.html) : deux boutons de même poids. */
.consentement { position: fixed; inset: auto 1rem 1rem; z-index: 50; max-width: 40rem; margin: 0 auto; padding: 1rem 1.2rem;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgb(0 0 0 / .18); }
.consentement h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.consentement p { margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); }
.consentement details { margin-bottom: .6rem; font-size: .9rem; }
.consentement summary { cursor: pointer; color: var(--accent); }
.consentement-choix { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0; }
.consentement-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.consentement-actions .consentement-bouton { flex: 1 1 10rem; }
.consentement-bouton { padding: .55rem 1rem; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Pied de page : bouton « Installer Info.bf » (site installable), présenté comme un lien. */
.lien-installer { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
