/* Concept : le kiosque. Les couvertures sont l'interface ; le reste se tait. Gros caractères, gros boutons libellés,
   une seule action principale par écran. Rouge et bleu du logo, titres à empattements carrés comme dans le magazine. */
:root {
  --paper: #FFFFFF; --ink: #14161A; --mute: #555C66; --rule: #E1E5EA; --soft: #F2F4F6;
  --red: #D21F1B; --blue: #1D6FC2; --on-red: #FFFFFF;
  --stage: #1B1D21; --stage-ink: #F1F2F4;
  --f-title: "Zilla Slab", "Rockwell", "Georgia", serif;
  --f-ui: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
  --f-read: "Newsreader", "Georgia", serif;
  --radius: 14px;
  font-size: 19px;
}
:root[data-size="2"] { font-size: 21.5px; }
:root[data-size="3"] { font-size: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #101114; --ink: #F1F2F4; --mute: #A9AFB8; --rule: #2A2D33; --soft: #191B1F; --red: #FF5B4F; --blue: #5EA8F2; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #101114; --ink: #F1F2F4; --mute: #A9AFB8; --rule: #2A2D33; --soft: #191B1F; --red: #FF5B4F; --blue: #5EA8F2; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--f-ui); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 18px; }
.eyebrow { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.mute { color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 3rem; padding: .7rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn.red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9rem; }
.btn:hover { filter: brightness(1.06); }
.link { background: none; border: 0; padding: .3rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; color: var(--ink); }
.ico { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Logo */
.wm { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.6rem; line-height: 1; display: inline-flex; align-items: baseline; gap: .28em; white-space: nowrap; text-decoration: none; color: var(--ink); padding-top: .25em; isolation: isolate; }
.wm .eco { position: relative; font-weight: 600; }
.wm .eco::before, .wm .eco::after { content: ""; position: absolute; border-radius: 50%; }
.wm .eco::before { width: .87em; height: .87em; background: #C42B27; left: -.27em; top: -.03em; }
.wm .eco::after { width: 1.13em; height: 1.13em; background: #3D8FD9; left: .27em; top: -.3em; z-index: -1; }
.wm .eco span { position: relative; z-index: 1; color: #fff; }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.nav { display: flex; gap: 6px; margin-right: auto; }
.nav button { background: none; border: 0; padding: .5rem .8rem; border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--mute); display: inline-flex; align-items: center; gap: 7px; }
.nav .ico { width: 18px; height: 18px; flex: none; }
.nav button[aria-current="page"] { color: var(--ink); background: var(--soft); }
.topact { display: flex; align-items: center; gap: 12px; }
.sizebtn { background: none; border: 2px solid var(--rule); border-radius: 12px; min-height: 2.5rem; padding: 0 .8rem; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.sizebtn b { font-family: var(--f-title); }
@media (max-width: 820px) {
  .nav, .top .login { display: none; }
  .top .wrap { gap: 10px; justify-content: space-between; min-height: 60px; }
  .wm { font-size: 1.35rem; }
}

/* Barre du bas (mobile) */
.tabbar { display: none; }
@media (max-width: 820px) {
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; min-height: 66px; font-size: .78rem; font-weight: 700; color: var(--mute); cursor: pointer; }
  .tabbar button[aria-current="page"] { color: var(--ink); }
  /* Barre du bas : trois onglets, petite icône au-dessus du libellé, alignés et compacts */
  .tabbar .ico { display: block; width: 21px; height: 21px; }
  .tabbar button { justify-content: center; gap: 3px; font-size: .8rem; min-height: 54px; padding: 6px 2px 5px; position: relative; }
  .tabbar button[aria-current="page"]::after { content: ""; position: absolute; left: 30%; right: 30%; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
  /* En-tête mobile rangé : le logo à gauche, la taille du texte à droite */
  #sizeLbl { display: none; }
  .sizebtn { min-width: 2.75rem; justify-content: center; }
  main { padding-bottom: 96px; }
}

main { padding-block: 28px 64px; }
.view[hidden] { display: none !important; }
section + section { margin-top: 56px; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sechead h2 { font-size: 1.7rem; }

/* Reprendre la lecture */
/* Reprendre ma lecture : bloc compact, le bouton reste sur la même ligne */
.resume { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); margin-bottom: 24px; }
.resume img { width: 42px; flex: none; border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.18); }
.resume .t { flex: 1; min-width: 0; }
.resume .eyebrow { margin: 0; }
.resume b { display: block; font-size: .98rem; line-height: 1.3; }
.resume .btn { flex: none; }
@media (max-width: 560px) { .resume { gap: 10px; padding: 9px 10px; } .resume img { width: 36px; } .resume b { font-size: .92rem; } .resume .opt { display: none; } }

/* Numéro du mois */
.hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .cover { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.15); cursor: pointer; background: var(--soft); aspect-ratio: 567/751; }
.hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-top: 10px; }
.hero .deck { font-family: var(--f-read); font-size: 1.25rem; line-height: 1.5; margin: 18px 0 0; max-width: 34ch; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .free { margin-top: 14px; font-size: .92rem; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero .cover { width: min(72%, 340px); margin: 0 auto; }
  .hero .acts .btn { flex: 1 1 100%; }
}

/* Sommaire */
.toc { display: flex; flex-direction: column; }
.toc button { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline; text-align: left; background: none; border: 0; border-top: 1px solid var(--rule); padding: 16px 4px; cursor: pointer; color: var(--ink); }
.toc button:last-child { border-bottom: 1px solid var(--rule); }
.toc button:hover { background: var(--soft); }
.toc .pg { font-family: var(--f-title); font-weight: 700; font-size: 1.35rem; color: var(--red); }
.toc .rub { display: block; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; color: var(--blue); margin-bottom: 3px; }
.toc .tt { font-family: var(--f-title); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.toc .lock { font-size: .8rem; color: var(--mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
/* « Dans ce numéro » sur l'accueil : version condensée, deux colonnes sur grand écran */
#homeToc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-bottom: 1px solid var(--rule); }
#homeToc button { grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 12px; padding: 10px 2px; }
#homeToc button:last-child { border-bottom: 0; }
#homeToc .pg { font-size: 1.05rem; }
#homeToc .rub { font-size: .66rem; margin-bottom: 1px; }
#homeToc .tt { font-size: 1rem; line-height: 1.22; }
#homeToc .lock { font-size: .72rem; }
@media (max-width: 820px) {
  #homeToc { grid-template-columns: 1fr; }
  #homeToc button { grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; }
  #homeToc button:nth-child(n+5) { display: none; } /* 4 articles sur téléphone ; le reste via « Voir tout le sommaire » */
  #homeToc .pg { font-size: .95rem; }
  #homeToc .rub { display: none; }
  #homeToc .tt { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #homeToc .lock { font-size: .68rem; }
}

/* Grille des couvertures */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 24px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; height: 100%; }
.card .meta { flex: 1; } /* le bouton « Ajouter aux favoris » reste aligné en bas de chaque carte, quelle que soit la longueur du titre */
.card .cv { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 567/751; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); cursor: pointer; background: var(--soft); border: 0; padding: 0; }
.card .cv img { width: 100%; height: 100%; object-fit: cover; }
.card .meta b { display: block; font-size: 1rem; }
.card .meta span { display: block; font-family: var(--f-title); font-weight: 600; font-size: 1rem; line-height: 1.25; margin-top: 2px; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.favbtn { background: none; border: 2px solid var(--rule); border-radius: 12px; min-height: 2.5rem; padding: 0 .7rem; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink); }
.favbtn[aria-pressed="true"] { border-color: var(--red); color: var(--red); }
.favbtn[aria-pressed="true"] .ico { fill: currentColor; }
.badge { position: absolute; left: 8px; top: 8px; background: var(--paper); color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; }
.badge.new { background: var(--red); color: #fff; }


/* Bloc recherche + filtres (un seul bloc) */
.finder { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.finder .q { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 6px; }
.finder input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.05rem; padding: .7rem 0; outline: none; }
.finder input::placeholder { color: var(--mute); }
.finder { position: relative; }
/* Filtres Année / Mois : petits boutons avec leur libellé, qui ouvrent un menu léger dans la page */
.pick { display: inline-flex; align-items: center; gap: 4px; min-height: 2.6rem; padding: 0 .55rem 0 .8rem; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--mute); font-size: .95rem; cursor: pointer; white-space: nowrap; }
.pick b { color: var(--ink); }
.pick .ico { width: 16px; height: 16px; }
.pick.on { border-color: var(--ink); }
.pick[aria-expanded="true"] { background: var(--soft); }
.pop { position: absolute; z-index: 20; top: calc(100% + 6px); width: min(20rem, calc(100% - 16px)); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pop button { min-height: 2.5rem; border: 1.5px solid var(--rule); border-radius: 9px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .92rem; cursor: pointer; padding: 0 4px; }
.pop[hidden] { display: none; } /* le menu Année / Mois fermé ne laisse plus de cadre vide */
.pop button.all { grid-column: 1 / -1; }
.pop button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.finder .clear { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.finder .clear .ico { width: 16px; height: 16px; }
/* Mobile : bloc recherche condensé — champ fin, Année et Mois côte à côte, Effacer en petite icône */
@media (max-width: 560px) {
  #v-numeros .sechead h2 { font-size: 1.5rem !important; }
  .finder { gap: 8px; padding: 6px 8px 8px; border-width: 1.5px; }
  .finder .q { flex-basis: 100%; gap: 8px; padding: 0 2px; border-bottom: 1px solid var(--rule); }
  .finder .q .ico { width: 18px; height: 18px; }
  .finder input { font-size: 1rem; padding: .5rem 0; }
  .pick { flex: 1 1 0; min-width: 0; justify-content: center; gap: 2px; min-height: 2.5rem; padding: 0 .35rem; font-size: .86rem; }
  .pick .ico { width: 14px; height: 14px; }
  .pop { left: 8px !important; right: 8px; width: auto; }
  .finder .clear { flex: none; margin-left: 0; width: 2.5rem; height: 2.5rem; justify-content: center; border: 1.5px solid var(--rule); border-radius: 10px; padding: 0; }
  .finder .clear .lbl { display: none; }
  .finder .clear .ico { width: 18px; height: 18px; }
  .count { margin: 10px 0 14px; font-size: .88rem; }
}
.count { margin: 16px 0 22px; color: var(--mute); }
.hits { display: flex; flex-direction: column; margin-bottom: 36px; }
.hits button { text-align: left; background: none; border: 0; border-top: 1px solid var(--rule); padding: 14px 4px; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--ink); }
.hits button:last-child { border-bottom: 1px solid var(--rule); }
.hits img { width: 52px; border-radius: 4px; }
.hits .where { font-size: .82rem; color: var(--mute); font-weight: 700; }
.hits .tt { font-family: var(--f-title); font-weight: 600; font-size: 1.1rem; line-height: 1.25; display: block; }
.hits .snip { display: block; font-size: .92rem; color: var(--mute); margin-top: 4px; }
.hits mark { background: color-mix(in srgb, var(--red) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Fiche d'un numéro */
.issue { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.issue .cover { border-radius: 8px; overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); position: sticky; top: 96px; }
.issue h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 10px 0 0; }
.issue .acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 36px; }
@media (max-width: 820px) { .issue { grid-template-columns: 1fr; gap: 24px; } .issue .cover { position: static; width: min(64%, 300px); margin: 0 auto; } .issue .acts .btn { flex: 1 1 100%; } }
/* Fiche d'un numéro : couverture à ses vraies proportions (plus d'image étirée), le reste plus compact */
.issue { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 36px; }
.issue .cover { aspect-ratio: 567/751; }
.issue .cover img { width: 100%; height: 100%; object-fit: cover; }
.issue h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 6px; }
.issue .acts { margin: 18px 0 26px; gap: 10px; }
.issue .acts .btn { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .95rem; }
.issue .toc button { padding: 11px 2px; gap: 12px; grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
.issue .toc .pg { font-size: 1.1rem; }
.issue .toc .rub { font-size: .68rem; }
.issue .toc .tt { font-size: 1.02rem; }
@media (max-width: 820px) {
  .issue { grid-template-columns: 1fr; gap: 18px; }
  .issue .cover { width: min(46%, 190px); }
  .issue h1 { font-size: 1.45rem; text-align: center; }
  .issue .eyebrow { text-align: center; }
  .issue .acts { margin: 14px 0 20px; }
  /* Sommaire de la fiche, très compact sur téléphone */
  .issue h2 { font-size: 1.2rem !important; margin-bottom: 4px !important; }
  .issue .toc button { grid-template-columns: 2.3rem minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; }
  .issue .toc .pg { font-size: .9rem; }
  .issue .toc .rub { display: none; }
  .issue .toc .tt { font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .issue .toc .lock { font-size: .66rem; }
}
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; background: var(--soft); border: 0; border-radius: 12px; padding: .55rem 1rem; font-weight: 700; cursor: pointer; color: var(--ink); }

/* Ma lecture */
.shelf { display: flex; flex-direction: column; gap: 14px; }
.shelfrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius); }
.shelfrow img { width: 70px; border-radius: 5px; }
.shelfrow b { display: block; }
.bar { height: 8px; border-radius: 6px; background: var(--soft); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
@media (max-width: 560px) { .shelfrow { grid-template-columns: 56px minmax(0, 1fr); } .shelfrow img { width: 56px; } .shelfrow .btn { grid-column: 1 / -1; } }
.empty { padding: 22px; border: 2px dashed var(--rule); border-radius: var(--radius); color: var(--mute); }

/* Abonnement */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.plan { border: 2px solid var(--rule); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan.main { border-color: var(--ink); }
.plan h3 { font-size: 1.35rem; }
.plan .price { font-family: var(--f-title); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.plan .price small { font-family: var(--f-ui); font-size: .9rem; font-weight: 400; color: var(--mute); }
.plan ul { margin: 0; padding-left: 1.2em; flex: 1; } /* le bouton « Choisir » reste aligné en bas de chaque offre */
.plan li { margin: 4px 0; }
/* Offres sur l'accueil : version condensée (la page S'abonner garde le détail) */
#homePlans { gap: 12px; }
#homePlans .plan { padding: 14px 16px; gap: 6px; }
#homePlans .plan .eyebrow { font-size: .68rem; }
#homePlans .plan h3 { font-size: 1.1rem; }
#homePlans .plan .price { font-size: 1.45rem; }
#homePlans .plan ul { font-size: .88rem; padding-left: 1.1em; }
#homePlans .plan li { margin: 1px 0; }
#homePlans .plan .btn { min-height: 2.6rem; padding: .4rem 1rem; font-size: .92rem; }
@media (max-width: 820px) {
  #homePlans { grid-template-columns: 1fr; gap: 8px; }
  #homePlans .plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eb btn" "h3 btn" "pr btn"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 14px; }
  #homePlans .plan .eyebrow { grid-area: eb; }
  #homePlans .plan h3 { grid-area: h3; }
  #homePlans .plan .price { grid-area: pr; font-size: 1.2rem; }
  #homePlans .plan .price small { display: block; margin-top: 2px; }
  #homePlans .plan ul { display: none; }
  #homePlans .plan .btn { grid-area: btn; }
}
.payways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.payways span { border: 1px solid var(--rule); border-radius: 10px; padding: .35rem .8rem; font-weight: 700; font-size: .9rem; }
.form { display: grid; gap: 16px; max-width: 520px; margin-top: 24px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input { width: 100%; min-height: 3.1rem; border: 2px solid var(--rule); border-radius: 12px; padding: 0 .9rem; background: var(--paper); font-size: 1.05rem; }
.form input:focus { border-color: var(--blue); outline: none; }
.okbox { border: 2px solid var(--blue); border-radius: var(--radius); padding: 18px; margin-top: 18px; }

/* Liseuse */
.reader { position: fixed; inset: 0; z-index: 60; background: var(--stage); color: var(--stage-ink); display: flex; flex-direction: column; }
.reader[hidden] { display: none; }
.rbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: #111214; border-bottom: 1px solid #2B2E33; }
.rbar .ttl { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbtn { background: #24272C; color: #F1F2F4; border: 0; border-radius: 12px; min-height: 2.75rem; padding: 0 .9rem; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; font-size: .92rem; }
.rbtn[aria-pressed="true"] { background: #F1F2F4; color: #111214; }
.rbtn .lbl { white-space: nowrap; }
@media (max-width: 700px) { .rbtn .lbl.opt { display: none; } .rbar { gap: 6px; } .rbtn { padding: 0 .7rem; } }
.stage { flex: 1; overflow: auto; display: flex; justify-content: flex-start; align-items: flex-start; padding: 18px; position: relative; touch-action: pan-y; overscroll-behavior: contain; }
.stage.zoomed { touch-action: pan-x pan-y; }
.spread { display: flex; gap: 4px; margin: auto; flex: none; }
/* max-width: none : la page garde ses proportions quand on l'agrandit (elle ne s'étire plus) */
.spread canvas, .spread .pgbox { max-width: none; flex: none; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45); user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.markfab { position: absolute; right: 14px; top: calc(76px + env(safe-area-inset-top, 0px)); z-index: 4; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #F1F2F4; color: #111214; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.45); cursor: pointer; }
.markfab .ico { width: 21px; height: 21px; }
/* Plus petit et discret tant que la page n'est pas gardée ; plein et rouge une fois la page gardée */
.markfab { width: 44px; height: 44px; opacity: .55; box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: opacity .15s; }
.markfab:hover, .markfab:focus-visible { opacity: .9; }
.markfab[aria-pressed="true"] { background: #D21F1B; color: #fff; opacity: 1; }
.markfab[aria-pressed="true"] .ico { fill: currentColor; }
.zoombar { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 10px 14px 0; background: #111214; border-top: 1px solid #2B2E33; }
.zbtn { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: #F1F2F4; color: #111214; font-size: 1.7rem; font-weight: 700; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zbtn:disabled { opacity: .3; cursor: not-allowed; }
.zval { min-width: 4.2rem; text-align: center; font-weight: 700; color: #F1F2F4; }
.textmode { max-width: 38rem; margin: 0 auto; background: #FBFBF8; color: #15171A; border-radius: 10px; padding: 32px 28px 48px; font-family: var(--f-read); font-size: 1.3rem; line-height: 1.65; }
.textmode p { margin: 0 0 1em; }
.textmode .k { font-family: var(--f-ui); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #8A1F18; font-weight: 700; margin-bottom: .6em; }
.textmode .h { font-family: var(--f-title); font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin-bottom: .7em; }
.lockpage { margin: auto; max-width: 30rem; background: #FBFBF8; color: #15171A; border-radius: 16px; padding: 30px 26px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lockpage h2 { font-size: 1.6rem; }
.lockpage img { width: 120px; border-radius: 6px; filter: blur(2px); opacity: .7; }
.lockpage .btn { width: 100%; }
.lockpage .btn.ghost { color: #15171A; border-color: #15171A; }
.rfoot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: #111214; }
.navbtn { min-height: 3.4rem; min-width: 3.4rem; padding: 0 1.1rem; border-radius: 14px; border: 0; background: #F1F2F4; color: #111214; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.navbtn:disabled { opacity: .3; cursor: not-allowed; }
.pageinfo { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 0; }
.pageinfo button { background: none; border: 0; color: #F1F2F4; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.pageinfo input[type="range"] { width: 100%; accent-color: #5EA8F2; height: 28px; }
@media (max-width: 560px) { .navbtn .lbl { display: none; } }
.rtoast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: #F1F2F4; color: #111214; border-radius: 12px; padding: .55rem 1rem; font-weight: 700; font-size: .9rem; pointer-events: none; }
.rtoast[hidden] { display: none; }
.panel { position: absolute; inset: 0; background: rgba(10,11,13,.92); overflow: auto; padding: 24px 18px 40px; z-index: 5; }
.panel[hidden] { display: none; }
.panel .phead { display: flex; justify-content: space-between; align-items: center; max-width: 900px; margin: 0 auto 18px; }
.panel h2 { font-size: 1.5rem; }
.thumbs { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.thumbs button { background: none; border: 0; padding: 0; cursor: pointer; color: #F1F2F4; text-align: center; font-weight: 700; font-size: .85rem; position: relative; }
.thumbs img { width: 100%; border-radius: 4px; margin-bottom: 6px; border: 3px solid transparent; }
.thumbs button[aria-current="true"] img { border-color: #5EA8F2; }
.thumbs .lk { position: absolute; top: 6px; right: 6px; background: #111214; border-radius: 8px; padding: 2px 6px; font-size: .7rem; }
.ptoc { max-width: 760px; margin: 0 auto; }
.ptoc .toc button { color: #F1F2F4; border-color: #2B2E33; }
.ptoc .toc button:hover { background: #1F2226; }
.ptoc .toc .rub { color: #8FC4F7; }
.ptoc .toc .pg { color: #FF7A70; }
.resumebox { margin: auto; max-width: 28rem; background: #FBFBF8; color: #15171A; border-radius: 16px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.resumebox h2 { font-size: 1.5rem; }
.resumebox .btn.ghost { color: #15171A; border-color: #15171A; }

footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; color: var(--mute); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
@media (prefers-reduced-motion: no-preference) { .spread canvas, .textmode { animation: fade .18s ease-out; } @keyframes fade { from { opacity: .4; } } }

/* ---------- Site réel : compléments ---------- */
.topact .acct { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--rule); border-radius: 12px; min-height: 2.5rem; padding: 0 .8rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.topact .acct .ico { width: 20px; height: 20px; }
@media (max-width: 820px) { .topact .acct .lbl { display: none; } .topact .acct { min-width: 2.75rem; justify-content: center; padding: 0; } }
.notice { border: 2px solid var(--blue); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 22px; }
.notice.warn { border-color: var(--red); }
.notice b { display: block; margin-bottom: 2px; }
.form select, .form textarea { width: 100%; min-height: 3.1rem; border: 2px solid var(--rule); border-radius: 12px; padding: .5rem .9rem; background: var(--paper); font-size: 1.05rem; color: var(--ink); }
.form textarea { min-height: 5rem; font: inherit; }
.form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.form .check input { width: 1.3rem; min-height: 1.3rem; }
.form .hint { font-size: .88rem; color: var(--mute); margin-top: 4px; display: block; }
.form .err { color: var(--red); font-weight: 700; margin: 0; }
.rules { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--mute); }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--ink); }
.rules li.ok::before { content: "● "; color: #1F8A4C; }
.seg { display: inline-flex; border: 2px solid var(--rule); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: .55rem 1rem; font-weight: 700; cursor: pointer; color: var(--mute); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.acc { display: grid; gap: 28px; max-width: 640px; }
.acc section + section { margin-top: 0; }
.acc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.abo { border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; }
.abo + .abo { margin-top: 10px; }
.abo .st { font-weight: 700; font-size: .9rem; }
.abo .st.on { color: #1F8A4C; } .abo .st.wait { color: var(--red); }
.paybox { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; max-width: 560px; margin-top: 18px; }
.paybox .amt { font-family: var(--f-title); font-size: 2rem; font-weight: 700; line-height: 1; }
.paybox code { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; background: var(--soft); padding: 2px 8px; border-radius: 6px; }
.plan .price small.per { display: block; margin-top: 4px; }
.plan[aria-current="true"] { border-color: var(--red); }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--paper); border-radius: 12px; padding: .6rem 1rem; font-weight: 700; max-width: min(92vw, 30rem); text-align: center; }
.toast[hidden] { display: none; }
@media (min-width: 821px) { .toast { bottom: 28px; } }
.spinner { margin: auto; color: #C9CDD3; font-weight: 700; }
.pgbox { background: #2A2D32; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #C9CDD3; font-weight: 700; text-align: center; padding: 12px; }
.spread canvas { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45); display: block; }
.thumbs canvas, .thumbs .tbox { width: 100%; aspect-ratio: 567/751; border-radius: 4px; margin-bottom: 6px; border: 3px solid transparent; background: #2A2D32; display: block; }
.thumbs button[aria-current="true"] canvas, .thumbs button[aria-current="true"] .tbox { border-color: #5EA8F2; }
.hits img { aspect-ratio: 567/751; object-fit: cover; }
.shelfrow img, .resume img { aspect-ratio: 567/751; object-fit: cover; }
.empty.big { text-align: center; padding: 40px 22px; }

/* Protection de la liseuse : pas de sélection, pas de menu, pas d'impression ; écran masqué quand la page perd le focus */
.reader, .reader * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.shield { position: absolute; inset: 0; z-index: 20; background: #0B0C0E; color: #F1F2F4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.shield[hidden] { display: none; }
.shield b { font-size: 1.2rem; }
@media print { html body { display: none !important; } html::after { content: "L'impression des numéros est désactivée. Lisez-les sur le site Horizons Eco."; display: block; padding: 40px; font: 18px sans-serif; } }

/* Accueil : respiration entre le sommaire / les numéros et le bloc d'abonnement */
#homeSub { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--rule); }
@media (max-width: 820px) { #homeSub { margin-top: 44px; padding-top: 26px; } }
/* Bouton « Se connecter » en couleur tant que le visiteur n'est pas connecté */
.topact .acct.out { background: var(--red); border-color: var(--red); color: var(--on-red); }
.topact .acct.out:hover { filter: brightness(1.06); }
/* Connexion avec Google */
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: .9rem; margin: 18px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.gbtn { width: 100%; gap: 12px; }

/* Onglet Lecture : seulement pour les lecteurs connectés */
.nav button[hidden], .tabbar button[hidden] { display: none; }

/* Favori actif : doré, bien visible */
:root { --gold: #E9B10A; --on-gold: #1C1500; }
.favbtn[aria-pressed="true"], .btn[data-fav][aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.favbtn[aria-pressed="true"] .ico, .btn[data-fav][aria-pressed="true"] .ico { fill: currentColor; }

/* Boutons de danger */
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.red.danger, .btn.danger:hover { background: var(--red); color: var(--on-red); }
.danger-zone { border-top: 1px solid var(--rule); padding-top: 22px; }

/* Pied de page : WhatsApp et liens légaux */
.walink { color: #128C4A; text-decoration: none; white-space: nowrap; }
.walink:hover { text-decoration: underline; }
.footlinks { display: flex; gap: 18px; flex-wrap: wrap; width: 100%; }
.footlinks a { color: var(--mute); }

/* Formulaire d'abonnement complet */
.form.wide { max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 6px 0 0; display: grid; gap: 14px; }
.form legend { font-family: var(--f-title); font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; padding: 0; }
.form .pro, .form .print { display: grid; gap: 14px; }
.form .pro[hidden], .form .print[hidden] { display: none; }
.form .check.big { font-weight: 700; font-size: 1.05rem; border: 2px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.form .flabel { font-weight: 700; display: block; margin-bottom: 6px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; font-size: 1.1rem; }
.total b { font-family: var(--f-title); font-size: 1.7rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px 22px; }
.post { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.post img, .post .nocover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; background: var(--soft); display: block; margin-bottom: 4px; }
.post .nocover { background: linear-gradient(135deg, var(--soft), var(--rule)); }
.post .pm { font-size: .82rem; color: var(--mute); font-weight: 700; }
.post .pt { font-family: var(--f-title); font-size: 1.25rem; line-height: 1.2; }
.post .px { color: var(--mute); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .pc { font-size: .85rem; color: var(--blue); font-weight: 700; }
.post:hover .pt { text-decoration: underline; text-underline-offset: 4px; }
#homeBlog { margin-top: 56px; }
.art { max-width: 46rem; }
.art h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 8px; }
.art .hero-img { width: 100%; border-radius: 12px; margin: 22px 0 6px; }
.abody { font-family: var(--f-read); font-size: 1.2rem; line-height: 1.7; }
.abody p { margin: 1em 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.gallery img { width: 100%; border-radius: 10px; }
.sharebar { margin: 24px 0 0; }
.comments { max-width: 46rem; margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 24px; }
.comments h2 { font-size: 1.4rem; margin-bottom: 14px; }
.cform textarea { width: 100%; border: 2px solid var(--rule); border-radius: 12px; padding: .7rem .9rem; font: inherit; background: var(--paper); color: var(--ink); resize: vertical; }
.cform textarea:focus { border-color: var(--blue); outline: none; }
.cform .crow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: .88rem; }
.clist { margin-top: 20px; display: grid; gap: 14px; }
.cm { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.cm .ch { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.cm .ch .link { margin-left: auto; font-size: .82rem; }
.cm p { margin: 6px 0 0; overflow-wrap: anywhere; }
.eimgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.eimg { position: relative; display: grid; gap: 4px; font-size: .85rem; }
.eimg img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.eimg .badge { left: 6px; top: 6px; }
.link.danger { color: var(--red); }

/* Pages légales */
.legal { max-width: 46rem; }
.legal h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2em; }

/* Mobile : le pied de page reste au-dessus de la barre d'onglets fixe (la règle « main » plus haut écrasait la marge) */
@media (max-width: 820px) {
  main { padding-bottom: 40px; }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
/* Logo : le cercle bleu couvre tout « co », pour que le « o » blanc reste lisible en mode clair */
.wm .eco { padding-right: .06em; }
.wm .eco::after { width: 1.46em; height: 1.46em; left: .24em; top: -.36em; }
/* Bouton WhatsApp */
#footContact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.wabtn { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #0B2E17; font-weight: 700; text-decoration: none; border-radius: 12px; padding: .55rem 1rem; white-space: nowrap; }
.wabtn:hover, .mailbtn:hover { filter: brightness(1.05); }
.mailbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; border-radius: 12px; padding: .55rem 1rem; white-space: nowrap; }
/* « Mon compte » : bleu du logo */
.topact .acct:not(.out) { background: #3D8FD9; border-color: #3D8FD9; color: #fff; }
.form details.opt { border: 1.5px dashed var(--rule); border-radius: 12px; padding: 10px 14px; }
.form details.opt summary { cursor: pointer; font-weight: 700; color: var(--mute); }
.form details.opt[open] summary { margin-bottom: 12px; }
.form .proonly[hidden], .form .copies[hidden] { display: none; }

/* Version texte de la page (transcription structurée) */
.textmode .tm-head { font-family: var(--f-ui); font-size: .8rem; color: #555C66; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 1.4em; padding-bottom: .8em; border-bottom: 1px solid #E1E5EA; }
.textmode .tm-head .link { color: #15171A; font-size: .85rem; }
.textmode .tm-title { font-family: var(--f-title); font-size: 1.75rem; line-height: 1.15; margin: .2em 0 .6em; color: #15171A; }
.textmode .tm-sub { font-family: var(--f-title); font-size: 1.25rem; line-height: 1.25; margin: 1.3em 0 .5em; color: #8A1F18; }
.textmode .tm-lead { font-weight: 600; font-size: 1.12em; line-height: 1.55; }
.textmode .tm-aside { font-family: var(--f-ui); font-size: .82em; line-height: 1.5; background: #F1F2EE; border-left: 4px solid #1D6FC2; padding: .6em .9em; border-radius: 0 8px 8px 0; margin: .4em 0; }
.textmode .tm-stat { display: flex; gap: 14px; align-items: baseline; border-top: 3px solid #D21F1B; border-bottom: 1px solid #E1E5EA; padding: .7em 0; margin: 1em 0; }
.textmode .tm-stat b { font-family: var(--f-title); font-size: 2rem; color: #D21F1B; white-space: nowrap; }
.textmode .tm-stat span { font-family: var(--f-ui); font-size: .85em; line-height: 1.4; }

/* Partenariat publicitaire */
.deck2 { font-family: var(--f-read); font-size: 1.15rem; max-width: 44rem; margin: 0 0 22px; }
.adgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.adcard { border: 2px solid var(--rule); border-radius: var(--radius); padding: 14px; display: grid; gap: 4px; }
.adcard b { font-family: var(--f-title); font-size: 1.15rem; }
.adcard .adp { font-family: var(--f-title); font-weight: 700; font-size: 1.4rem; color: var(--red); }
.small2 { font-size: .85rem; margin-top: 12px; max-width: 46rem; }
.adrow { border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px; }
.adrow .adh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.adrow .adh span { color: var(--mute); font-weight: 700; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 6px; }
.mo { border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 10px; padding: .5rem .3rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.mo[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mo:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.mo small { display: block; font-weight: 400; font-size: .72rem; text-decoration: none; }
.paym { display: flex; gap: 10px 20px; flex-wrap: wrap; }
.preqs { display: grid; gap: 10px; }
.preq { border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; display: grid; gap: 3px; }
.preq .ph, .preq .pf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pst { font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: 10px; background: var(--soft); }
.pst.confirmee, .pst.payee { background: #DDF3E6; color: #11633A; }
.pst.refusee, .pst.annulee { background: var(--soft); color: var(--mute); }
.pst.nouvelle, .pst.discussion { background: #FFF1CC; color: #7A5300; }

/* Partenariat : version compacte, en 3 étapes */
.adgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.adcard { padding: 9px 11px; gap: 1px; border-width: 1.5px; border-radius: 12px; }
.adcard b { font-size: .98rem; line-height: 1.2; }
.adcard .adp { font-size: 1.05rem; }
.adcard .mute { font-size: .78rem; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--mute); padding: 6px 12px 6px 6px; border-radius: 20px; background: var(--soft); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper); border: 1.5px solid var(--rule); font-size: .8rem; }
.steps li.on { background: var(--ink); color: var(--paper); }
.steps li.on span { background: var(--red); border-color: var(--red); color: #fff; }
.steps li.done span { background: #1F8A4C; border-color: #1F8A4C; color: #fff; }
.adrows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .adrows { grid-template-columns: 1fr; } }
.adrow { padding: 9px 10px; border-radius: 12px; }
.adrow.picked { border-color: var(--ink); }
.adrow .adh { margin-bottom: 7px; font-size: .92rem; }
.adrow .adh span { font-size: .85rem; }
.months { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 420px) { .months { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mo { padding: .38rem .1rem; font-size: .72rem; border-radius: 8px; border-width: 1.5px; line-height: 1.15; }
.mo:disabled, .mo.taken { opacity: 1; text-decoration: none; background: #E4E6EA; border-color: #E4E6EA; color: #9AA0A8; cursor: not-allowed; }
.pbar { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 22px -14px rgba(0,0,0,.5); z-index: 5; }
.pbar div { display: grid; }
.pbar b { font-family: var(--f-title); font-size: 1.3rem; }
@media (min-width: 821px) { .pbar { bottom: 12px; } }
.pnav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.recap { display: grid; gap: 14px; max-width: 640px; }
.recap .rsec { border: 1.5px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.recap .rh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.recap .rline { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rule); }
.recap .rline small { display: block; color: var(--mute); font-size: .82rem; }
.recap .rline.tot { border-top: 2px solid var(--ink); font-weight: 700; }
/* Encart « Annoncer » sur l'accueil */
#homeAd { margin-top: 48px; }
.adpromo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.adpromo .eyebrow { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.adpromo h2 { font-size: 1.35rem; margin: 2px 0 4px; }
.adpromo p { margin: 0; font-size: .92rem; opacity: .9; }
.adpromo .adlist { list-style: none; margin: 0; padding: 0; font-size: .85rem; display: grid; gap: 3px; }
.adpromo .adlist b { float: right; margin-left: 10px; }
@media (max-width: 820px) { .adpromo { grid-template-columns: 1fr; gap: 10px; } .adpromo .btn { justify-self: start; } }
.adgrid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); }
.adcard b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adcard .adp { font-size: 1rem; line-height: 1.2; }
.adcard .mute { font-size: .74rem; line-height: 1.2; white-space: nowrap; }


/* =====================================================================
   Charte Horizons Eco (alignée sur horizonseco.sn)
   Source Serif 4 pour les titres, Inter pour le texte ; marine, rouge, bleu ; boutons nets, cartes sur fond clair.
   Couche de style seulement : la structure et les fonctionnalités du site restent les mêmes.
   ===================================================================== */
:root {
  --paper: #FFFFFF; --ink: #0A0A0A; --mute: #5B616B; --rule: #E4E6EA; --soft: #F5F7FA;
  --red: #D60D18; --red-dark: #B00A13; --blue: #0068AC; --blue-vif: #008EDF; --navy: #0A2A55; --navy-dark: #071D3C; --rose: #FDF3F3;
  --f-title: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-ui: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --f-read: "Source Serif 4", Georgia, serif;
  --radius: 10px; --radius-s: 6px;
  --shadow: 0 1px 2px rgba(10,10,10,.06), 0 4px 16px rgba(10,10,10,.06);
  font-size: 18px;
}
:root[data-size="2"] { font-size: 20.5px; }
:root[data-size="3"] { font-size: 23px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0B111B; --ink: #F1F3F6; --mute: #A3ABB7; --rule: #233044; --soft: #121B29; --red: #FF4B53; --blue: #5FB4F0; --navy: #0F2F5C; --navy-dark: #081A33; } }
body { font-family: var(--f-ui); line-height: 1.6; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
:focus-visible { outline-color: var(--blue); }

/* Logo */
.wm { font-family: var(--f-title); font-weight: 700; letter-spacing: -.015em; }

/* En-tête */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { min-height: 72px; }
.nav button { font-weight: 500; font-size: .92rem; border-radius: var(--radius-s); padding: .6rem .75rem; color: var(--ink); }
.nav button:hover { background: var(--soft); }
.nav button[aria-current="page"] { background: none; border-radius: 0; box-shadow: inset 0 -3px 0 var(--red); }
.nav .ico { opacity: .75; }
.sizebtn { border-radius: var(--radius-s); border: 1.5px solid var(--rule); font-weight: 600; }

/* Boutons */
.btn { border-radius: var(--radius-s); border-width: 2px; font-weight: 600; min-height: 48px; padding: 0 20px; font-size: .95rem; letter-spacing: 0; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { filter: none; }
.btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:hover { background: #2A2A2A; border-color: #2A2A2A; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.btn.danger { color: var(--red); border-color: var(--red); background: transparent; }
.btn.danger:hover, .btn.red.danger { background: var(--red); color: #fff; }
.link { font-weight: 600; text-underline-offset: 3px; }
.topact .acct { border-radius: var(--radius-s); border: 2px solid var(--ink); font-weight: 600; }
.topact .acct.out { background: var(--red); border-color: var(--red); color: #fff; }
.topact .acct.out:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Surtitres et têtes de section */
.eyebrow { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.sechead { border-top: 3px solid var(--ink); padding-top: 12px; align-items: flex-end; margin-bottom: 20px; }
.sechead h2 { font-size: 1.75rem; }
.sechead .link { font-size: .9rem; }

/* Numéro du mois : bande marine pleine largeur, texte blanc */
.hero { position: relative; background: var(--navy); color: #fff; padding: 44px 0; box-shadow: 0 0 0 100vmax var(--navy); clip-path: inset(0 -100vmax); }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #FFD7D9; }
.hero .deck { font-family: var(--f-ui); font-size: 1.05rem; color: #DCE4F0; }
.hero .free { color: #C9D3E3 !important; }
.hero .cover { border-radius: var(--radius); box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); }
.hero .btn { background: #fff; border-color: #fff; color: var(--navy); }
.hero .btn:hover { background: var(--soft); border-color: var(--soft); }
.hero .btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.hero .btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.hero .btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.hero .btn.ghost:hover { background: #fff; color: var(--navy); }
.hero .btn[data-fav][aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
/* Collée sous l'en-tête quand rien ne la précède */
#v-accueil:has(#homeNotice:empty):has(#resumeSlot:empty) .hero { margin-top: -28px; }
#resumeSlot .resume { margin-top: 18px; }

/* Sommaire : numéros rouges en Source Serif, filets fins */
.toc button { border-top-color: var(--rule); }
.toc button:hover { background: var(--soft); }
.toc .pg { font-family: var(--f-title); color: var(--red); }
.toc .rub { color: var(--blue); letter-spacing: .08em; }
.toc .tt { font-family: var(--f-ui); font-weight: 600; }

/* Cartes */
.card .cv { border-radius: var(--radius); box-shadow: var(--shadow); }
.card .meta b { font-family: var(--f-ui); font-weight: 700; font-size: .9rem; }
.card .meta span { font-family: var(--f-title); font-weight: 700; font-size: 1.05rem; }
.favbtn { border-radius: 999px; border: 1.5px solid var(--rule); font-weight: 600; font-size: .82rem; }
.badge { border-radius: var(--radius-s); letter-spacing: .08em; }
.badge.new { background: var(--red); }
.post { background: var(--soft); border-radius: var(--radius); overflow: hidden; gap: 6px; }
.post img, .post .nocover { border-radius: 0; margin: 0; aspect-ratio: 16/9; }
.post .pm, .post .pt, .post .px, .post .pc { padding: 0 16px; }
.post .pm { padding-top: 12px; font-family: var(--f-ui); letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; color: var(--red); }
.post .pt { font-family: var(--f-title); font-size: 1.2rem; }
.post .pc { padding-bottom: 16px; color: var(--blue); }
.plan { border-radius: var(--radius); border: 1.5px solid var(--rule); background: var(--paper); box-shadow: var(--shadow); }
.plan.main { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,13,24,.15), var(--shadow); }
.plan .price { font-family: var(--f-title); }
.adcard { background: var(--soft); border: 0; border-radius: var(--radius); }
.adcard .adp { font-family: var(--f-title); color: var(--red); }
.shelfrow, .abo, .preq, .cm, .adrow, .recap .rsec { border-radius: var(--radius); border-color: var(--rule); }
.resume { border-radius: var(--radius); border: 0; background: var(--soft); }
.empty { border-radius: var(--radius); background: var(--soft); border: 0; }
.notice { border: 0; border-left: 4px solid var(--blue); background: #EEF5FB; border-radius: var(--radius-s); }
.notice.warn { border-left-color: var(--red); background: var(--rose); }
.paybox { border: 0; background: var(--soft); border-top: 4px solid var(--red); border-radius: var(--radius); }

/* Recherche, filtres et puces (pastilles arrondies, la puce active en noir) */
.finder { border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.pick, .seg, .mo, .pop button, .finder .clear { border-radius: 999px; }
.pick { border-width: 1.5px; font-weight: 500; }
.pick.on, .pop button[aria-pressed="true"], .seg button[aria-pressed="true"], .mo[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg { border-radius: 999px; border-width: 1.5px; }
.seg button { border-radius: 999px; font-weight: 600; }
.steps li { border-radius: 999px; }

/* Formulaires */
.form input, .form select, .form textarea, .cform textarea { border: 1.5px solid #CDD2D9; border-radius: var(--radius-s); font-family: var(--f-ui); }
.form input:focus, .form select:focus, .form textarea:focus, .cform textarea:focus { border-color: var(--blue-vif); box-shadow: 0 0 0 3px rgba(0,142,223,.15); }
.form label, .form .flabel { font-weight: 600; font-size: .92rem; }
.form legend { font-family: var(--f-title); }
.total { border-top: 3px solid var(--ink); }
.total b { font-family: var(--f-title); }
.hp-btn { border-radius: var(--radius-s) 0 0 var(--radius-s); border: 1.5px solid #CDD2D9; border-right: 0; }

/* Encart annonceurs : marine, comme les bandes du site */
.adpromo { background: var(--navy); border-radius: var(--radius); }
.adpromo .eyebrow { color: #FFD7D9; }
.adpromo .btn.red { background: var(--red); }

/* Pied de page : marine foncé */
footer { background: var(--navy-dark); color: #C9D3E3; border-top: 0; padding-block: 36px 44px; margin-top: 40px; }
footer b, footer .wrap > div:first-child b { color: #fff !important; }
.footlinks a { color: #9FB0C8; }
.footlinks a:hover { color: #fff; }
.footlinks a b { color: #fff; }
.mailbtn { background: #fff; color: var(--navy); border-radius: var(--radius-s); }
.wabtn { border-radius: var(--radius-s); }

/* Barre du bas (mobile) */
@media (max-width: 820px) {
  .tabbar { border-top: 1px solid var(--rule); }
  .tabbar button { font-weight: 600; color: var(--mute); }
  .tabbar button[aria-current="page"] { color: var(--ink); }
  .hero { padding: 28px 0 32px; }
  .top .wrap { min-height: 60px; }
}

/* Liseuse : version texte en Source Serif, chiffres et intertitres aux couleurs de la charte */
.textmode { font-family: var(--f-read); border-radius: var(--radius); }
.textmode .tm-sub { color: var(--red); }
.textmode .tm-stat { border-top-color: var(--red); }
.textmode .tm-stat b { color: var(--red); }
.textmode .tm-aside { border-left-color: var(--blue); }
.textmode .k { color: var(--red); }

/* Pages légales, blog */
.art h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.abody { font-family: var(--f-read); }


/* ---------- Ajustements : bande plein écran, têtes de section, pied de page ---------- */
/* Le numéro du mois occupe tout l'écran à l'ouverture ; le reste apparaît en faisant défiler */
.hero { min-height: calc(100svh - 72px); align-content: center; padding: 56px 0; }
@media (max-width: 820px) { .hero { min-height: calc(100svh - 60px - 56px); padding: 32px 0 40px; } }
/* Têtes de section : petit trait rouge au-dessus du titre, sans grand filet noir */
.sechead { border-top: 0; padding-top: 0; }
.sechead h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--red); margin-bottom: 12px; }
#v-accueil section + section, #v-accueil > section { margin-top: 72px; }
#homeBody > section:first-child { margin-top: 0; }
#homeSub { border-top: 0; padding-top: 0; margin-top: 72px; }
#homeAd { margin-top: 64px; margin-bottom: 24px; }

/* Pied de page */
footer.pied { background: var(--navy-dark); color: #C9D3E3; padding: 56px 0 0; margin-top: 80px; border: 0; font-size: .92rem; }
footer.pied .wrap { display: block; }
.pied-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-bottom: 36px; }
@media (max-width: 900px) { .pied-grid { grid-template-columns: 1fr 1fr; } .pied-marque { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pied-grid { gap: 26px 18px; } .pied-col ul { gap: 7px; } .pied-col a { font-size: .9rem; } }
.wm-pied { color: #fff; font-size: 1.7rem; }
.pied-devise { font-family: var(--f-title); font-size: 1.05rem; color: #fff; margin: 14px 0 6px; }
.pied-desc { margin: 0 0 16px; color: #9FB0C8; max-width: 34rem; line-height: 1.55; }
.pied-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pied-contact > span { width: 100%; color: #C9D3E3; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 20px 0 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .15s, transform .15s; }
.social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-1px); }
.social svg { width: 19px; height: 19px; }
.pied-col h2 { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #9FB0C8; margin: 4px 0 14px; }
.pied-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pied-col a { color: #fff; text-decoration: none; font-weight: 500; }
.pied-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: #9FB0C8; font-size: .85rem; }
.pied-bas a { color: #C9D3E3; }
.pied-bas .footlinks { width: auto; gap: 18px; }
@media (max-width: 820px) { footer.pied { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }


/* ---------- Accueil inversé : numéro du mois sur fond blanc, sommaire sur le bleu du logo ---------- */
:root { --logo-blue: #3D8FD9; --logo-blue-dark: #2B78C2; }
.hero { background: var(--paper); color: var(--ink); box-shadow: none; clip-path: none; }
.hero h1 { color: var(--ink); }
.hero .eyebrow { color: var(--red); }
.hero .deck { color: #2B2F36; font-family: var(--f-ui); }
.hero .free { color: var(--mute) !important; }
.hero .cover { box-shadow: 0 22px 48px -18px rgba(10,42,85,.45), var(--shadow); }
.hero .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .btn:hover { background: #2A2A2A; border-color: #2A2A2A; }
.hero .btn.red { background: var(--red); border-color: var(--red); }
.hero .btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.hero .btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.hero .btn.ghost:hover { background: var(--ink); color: #fff; }
.tocband { position: relative; background: var(--logo-blue); color: #fff; padding: 40px 0 44px; box-shadow: 0 0 0 100vmax var(--logo-blue); clip-path: inset(0 -100vmax); margin-top: 0 !important; }
.tocband .sechead h2 { color: #fff; }
.tocband .sechead h2::before { background: #fff; }
.tocband .sechead .link { color: #fff; }
.tocband .toc button { color: #fff; border-color: rgba(255,255,255,.28); }
.tocband .toc button:last-child { border-bottom-color: rgba(255,255,255,.28); }
.tocband .toc button:hover { background: rgba(255,255,255,.1); }
.tocband #homeToc { border-bottom-color: rgba(255,255,255,.28); }
.tocband .toc .pg { color: #fff; }
.tocband .toc .rub { color: #DCEBFA; }
.tocband .toc .lock { color: #DCEBFA; }
.others { margin-top: 64px; }
.soon { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--soft); border-left: 4px solid var(--logo-blue); }
.soon span { color: var(--mute); font-size: .92rem; }

/* ---------- Fiche d'un numéro : couverture et chiffres clés qui suivent le défilement ---------- */
.issue .side { position: sticky; top: 88px; display: grid; gap: 14px; align-self: start; }
.issue .side .cover { position: static; }
.kpis { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.kpis .kh { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #FFD7D9; }
.kpi { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
.kpi:first-of-type { border-top: 0; padding-top: 0; }
.kpi b { font-family: var(--f-title); font-size: 1.55rem; line-height: 1.05; color: #fff; }
.kpi span { font-size: .78rem; line-height: 1.4; color: #C9D3E3; }
.kcount { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; color: #C9D3E3; }
.kcount b { color: #fff; font-size: .95rem; }
@media (max-width: 820px) {
  .issue .side { position: static; }
  .issue .side .cover { width: min(46%, 190px); margin: 0 auto; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .kpis .kh, .kcount { grid-column: 1 / -1; }
  .kpi:first-of-type { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); }
  .kpi b { font-size: 1.3rem; }
}
/* Sommaire de la fiche : plus serré */
.issue .toch { font-size: 1.25rem; margin: 6px 0 4px; }
.issue .toc.tight button { padding: 7px 2px; gap: 10px; grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
.issue .toc.tight .pg { font-size: .95rem; }
.issue .toc.tight .rub { font-size: .62rem; margin-bottom: 0; }
.issue .toc.tight .tt { font-size: .92rem; line-height: 1.3; }
.issue .acts { margin: 14px 0 20px; }

/* ---------- Un peu plus compact partout ---------- */
:root { font-size: 17px; }
:root[data-size="2"] { font-size: 19.5px; }
:root[data-size="3"] { font-size: 22px; }
.btn { min-height: 44px; padding: 0 18px; }
.btn.small { min-height: 38px; }
.sechead { margin-bottom: 14px; }
.sechead h2 { font-size: 1.55rem; }
#v-accueil section + section, #v-accueil > section { margin-top: 56px; }
.tocband { margin-top: 0 !important; }
.card { gap: 8px; }
.grid { gap: 24px 18px; }
.plan { padding: 18px; gap: 10px; }
.form { gap: 13px; }
.form input, .form select { min-height: 2.8rem; }
/* Couverture + chiffres clés tiennent ensemble à l'écran pendant le défilement */
.issue { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
.kpis { padding: 12px 14px; gap: 8px; }
.kpi { padding-top: 8px; }
.kpi b { font-size: 1.3rem; }
.kpi span { font-size: .74rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcount { padding-top: 8px; }
@media (min-width: 821px) { .issue .side { max-height: calc(100vh - 100px); } }

/* Sommaire de l'accueil : même bleu que le pied de page */
.tocband { background: var(--navy-dark); box-shadow: 0 0 0 100vmax var(--navy-dark); }
.tocband .toc .rub, .tocband .toc .lock { color: #9FB0C8; }
.tocband .toc .pg { color: #FFD7D9; }
/* « Reprendre ma lecture » : petit encart à droite de la couverture, au-dessus du titre */
.resume.in-hero { display: inline-flex; width: auto; max-width: 400px; margin: 0 0 18px; padding: 8px 10px; gap: 10px; background: var(--soft); border-radius: var(--radius-s); }
.resume.in-hero img { width: 30px; }
.resume.in-hero b { font-size: .82rem; }
.resume.in-hero .eyebrow { font-size: .62rem; }
@media (max-width: 820px) { .resume.in-hero { max-width: 100%; display: flex; } }
/* Autres numéros : simple phrase, sans encadré */
.soon { background: none; border: 0; padding: 0; display: block; color: var(--mute); }
.soon b { display: block; color: var(--ink); font-family: var(--f-title); font-size: 1.05rem; margin-bottom: 2px; }

/* ---------- Thèmes ---------- */
.tfilter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tfilter button { border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.tfilter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tcard { display: grid; gap: 7px; align-content: start; padding: 16px 16px 14px; border-radius: var(--radius); background: var(--soft); text-decoration: none; color: var(--ink); transition: background .15s, transform .15s; }
.tcard:hover { background: #EDF1F6; transform: translateY(-1px); }
.tcard .eyebrow { font-size: .66rem; }
.tcard .tt { font-family: var(--f-title); font-size: 1.12rem; line-height: 1.25; }
.tcard .tl { font-size: .86rem; color: #2B2F36; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .tk { display: grid; gap: 1px; font-size: .8rem; color: var(--mute); }
.tcard .tk b { font-family: var(--f-title); font-size: 1.45rem; color: var(--red); line-height: 1.1; }
.tcard .tm { font-size: .74rem; color: var(--mute); margin-top: 2px; }
.tcard .tm i { font-style: normal; font-weight: 700; color: var(--red); }
.tart { max-width: 44rem; }
.tart h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 6px 0 14px; }
.tart .tm-stat { display: flex; gap: 14px; align-items: baseline; border-top: 3px solid var(--red); border-bottom: 1px solid var(--rule); padding: .6em 0; margin: 0 0 1.2em; }
.tart .tm-stat b { font-family: var(--f-title); font-size: 1.8rem; color: var(--red); white-space: nowrap; }
.tart .tm-stat span { font-size: .85rem; color: var(--mute); }
.tbody.textmode { max-width: none; margin: 0; padding: 0; background: none; color: var(--ink); border-radius: 0; font-size: 1.12rem; }
.tbody.textmode .tm-title { font-size: 1.45rem; color: var(--ink); }
.tbody.textmode .tm-aside { background: var(--soft); color: var(--ink); }
.tbody.cut { position: relative; max-height: 22rem; overflow: hidden; }
.tbody.cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; background: linear-gradient(transparent, var(--paper)); }
.tlock { display: grid; gap: 6px; padding: 18px; margin-top: 10px; border-radius: var(--radius); background: var(--soft); border-top: 3px solid var(--red); }
.tlock span { color: var(--mute); }
.tl-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tfoot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); }
.resume.in-hero .t { flex: 0 1 auto; }
.resume.in-hero .eyebrow, .resume.in-hero b { white-space: nowrap; }
.resume.in-hero .opt { display: none; }
.resume.in-hero .btn { min-height: 34px; padding: 0 12px; font-size: .8rem; }
/* Menu du haut : 5 onglets, plus compact sur les écrans moyens */
@media (max-width: 1150px) { .nav .ico { display: none; } .nav button { padding: .5rem .55rem; } .top .wrap { gap: 16px; } }
.topact .acct .lbl { white-space: nowrap; }

/* ---------- Carrousel de l'accueil ---------- */
.hero.carousel { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
.slide.on { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.slide h1, .slide .h1like { font-family: var(--f-title); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; margin: 10px 0 0; color: var(--ink); }
.slide .deck { margin: 16px 0 0; max-width: 38rem; }
.slide .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.slide .cover { width: 100%; }
/* Visuel d'une diapositive « thème » : chiffre clé ou rubrique sur fond marine, couverture du numéro en vignette */
.tvis { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; aspect-ratio: 567/751; border-radius: var(--radius); background: var(--navy); color: #fff; padding: 26px; text-decoration: none; overflow: hidden; box-shadow: 0 22px 48px -18px rgba(10,42,85,.45); }
.tvis .tv-cover { position: absolute; top: 20px; right: 20px; width: 78px; border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.tvis .tv-num { font-family: var(--f-title); font-weight: 700; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; }
.tvis .tv-rub { font-family: var(--f-title); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.tvis .tv-lab { font-size: .92rem; line-height: 1.45; color: #C9D3E3; max-width: 22rem; }
.hnav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.hnav .dots { display: flex; gap: 8px; }
.hnav .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--rule); cursor: pointer; }
.hnav .dots button[aria-selected="true"] { background: var(--ink); width: 26px; border-radius: 5px; }
.hb { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hb:hover { border-color: var(--ink); }
.hb.hp { font-size: .7rem; letter-spacing: -1px; }
@media (max-width: 820px) {
  .slide { grid-template-columns: 1fr; gap: 20px; }
  .slide .cover, .slide .tvis { width: min(62%, 260px); margin: 0 auto; }
  .tvis { padding: 18px; }
  .tvis .tv-cover { width: 54px; top: 12px; right: 12px; }
  .slide h1, .slide .h1like { font-size: 1.75rem; }
  .slide .acts .btn { flex: 1 1 auto; }
}
/* « Reprendre ma lecture » : le bouton ne chevauche plus le texte et se range à droite */
.resume.in-hero { display: grid; grid-template-columns: 30px minmax(0, auto) auto; align-items: center; column-gap: 12px; max-width: 440px; }
.resume.in-hero .t { min-width: 0; }
.resume.in-hero .eyebrow, .resume.in-hero b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.resume.in-hero .btn { margin-left: 18px; justify-self: end; }

/* ---------- Thèmes : recherche, filtres, pages ---------- */
.tbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.tsearch { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--rule); border-radius: 999px; padding: 0 14px; background: var(--paper); }
.tsearch .ico { width: 18px; height: 18px; color: var(--mute); }
.tsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: .55rem 0; font: inherit; font-size: .92rem; color: var(--ink); }
.tsearch:focus-within { border-color: var(--blue-vif); }
.tbar select { border: 1.5px solid var(--rule); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .88rem; background: var(--paper); color: var(--ink); }
.tcount { font-size: .85rem; margin-left: auto; }
.tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 999px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tgrid { grid-template-columns: 1fr; } }
.tcard { position: relative; }
.tcard .tlink { position: absolute; inset: 0; border-radius: var(--radius); z-index: 0; }
.tcard > * { position: relative; }
.tcard .tlink { position: absolute; }
.tcard .tm { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tacts { display: inline-flex; gap: 4px; z-index: 1; }
.tic { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--mute); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tic:hover { background: var(--paper); color: var(--ink); }
.tic .ico { width: 17px; height: 17px; }
.tic[aria-pressed="true"] { color: var(--red); }
.tic[aria-pressed="true"] .ico { fill: currentColor; }
.tpager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; font-weight: 600; font-size: .9rem; }
.tpb { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.tpb:disabled { opacity: .35; cursor: default; }
.tactsbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tactsbar .btn[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.tactsbar .btn[aria-pressed="true"] .ico { fill: currentColor; }

/* ---------- Plus aucune « accolade » (filets ou barres décoratives) ---------- */
.sechead h2::before { content: none; display: none; }
.notice, .notice.warn { border: 0; }
.paybox { border: 0; }
.tlock { border: 0; }
.tm-stat, .tart .tm-stat, .textmode .tm-stat { border: 0; padding: .4em 0; }
.textmode .tm-aside { border: 0; border-radius: 8px; }
.soon { border: 0; background: none; padding: 0; margin: 10px 0 0; color: var(--mute); font-size: .92rem; }
.total { border-top: 1px solid var(--rule); }
.plan.main { border-color: var(--rule); box-shadow: var(--shadow); }
.kpi, .kpi:first-of-type, .kcount { border-top: 0; }

/* ---------- Mode sombre : textes et éléments restés en couleurs claires ---------- */
.btn:hover { background: var(--ink); border-color: var(--ink); filter: brightness(.85); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); filter: none; }
.hero .btn { color: var(--paper); }
.hero .btn:hover { background: var(--ink); border-color: var(--ink); filter: brightness(.85); }
.hero .btn.ghost:hover { color: var(--paper); filter: none; }
.hero .deck, .tcard .tl, .tart .tm-stat span { color: var(--ink); opacity: .85; }
.tcard:hover { background: color-mix(in srgb, var(--soft) 80%, var(--ink) 6%); }
.notice { background: var(--soft); }
.notice.warn { background: color-mix(in srgb, var(--red) 10%, var(--paper)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mailbtn { background: #F1F3F6; color: #0A2A55; }
  :root:not([data-theme="light"]) .tvis { background: #0F2F5C; }
  :root:not([data-theme="light"]) .hnav .dots button { background: #2E3A4D; }
  :root:not([data-theme="light"]) .resume.in-hero { background: var(--soft); }
  :root:not([data-theme="light"]) .hero .cover, :root:not([data-theme="light"]) .tvis { box-shadow: 0 22px 48px -18px rgba(0,0,0,.8); }
  :root:not([data-theme="light"]) .textmode { background: #F4F2EC; }
  :root:not([data-theme="light"]) .tbody.textmode { background: none; color: var(--ink); }
  :root:not([data-theme="light"]) .tbody.textmode .tm-title, :root:not([data-theme="light"]) .tbody.textmode p, :root:not([data-theme="light"]) .tbody.textmode .tm-lead { color: var(--ink); }
  :root:not([data-theme="light"]) .tbody.textmode .tm-aside { background: var(--soft); color: var(--ink); }
  :root:not([data-theme="light"]) .tbody.cut::after { background: linear-gradient(transparent, var(--paper)); }
  :root:not([data-theme="light"]) .adpromo { background: #0F2F5C; }
  :root:not([data-theme="light"]) .hp-btn { background: var(--soft); }
  :root:not([data-theme="light"]) .mo:disabled, :root:not([data-theme="light"]) .mo.taken { background: #222B39; border-color: #222B39; color: #6B7686; }
  :root:not([data-theme="light"]) .tvis .tv-lab { color: #C9D3E3; }
}
/* Mode sombre : fonds rouges assez foncés pour un texte blanc lisible ; encart annonceurs toujours en texte clair */
.adpromo, .adpromo h2, .adpromo .adlist, .adpromo .adlist b { color: #fff; }
.adpromo p { color: #DCE4F0; opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.red, :root:not([data-theme="light"]) .hero .btn.red, :root:not([data-theme="light"]) .topact .acct.out, :root:not([data-theme="light"]) .badge.new, :root:not([data-theme="light"]) .adpromo .btn.red { background: #C20C16; border-color: #C20C16; color: #fff; }
  :root:not([data-theme="light"]) .btn.red:hover, :root:not([data-theme="light"]) .hero .btn.red:hover, :root:not([data-theme="light"]) .topact .acct.out:hover { background: #A30A12; border-color: #A30A12; filter: none; }
}
@media (max-width: 820px) {
  .slide .tvis { width: 100%; aspect-ratio: auto; min-height: 0; padding: 16px 92px 16px 16px; }
  .tvis .tv-num { font-size: 2.3rem; }
  .tvis .tv-rub { font-size: 1.5rem; }
  .tvis .tv-lab { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slide .deck { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
