/* Sud Eco — site public.
   Charte reprise de docs/files/echo-des-lagunes.html. CSS maison, sans framework :
   le poids compte pour un lectorat majoritairement mobile sur réseau contraint. */

:root {
  --encre: #141c36;
  --encre-2: #232e52;
  --encre-3: #3a4570;
  --papier: #fbfaf6;
  --papier-2: #f2eee5;
  --papier-3: #e7e1d3;
  --trait: #dcd5c4;
  --trait-fort: #c3baa4;
  --gris: #6e6957;
  --gris-fort: #48443a;
  --safran: #e9a11b;
  --safran-sombre: #8a5b05;
  --safran-clair: #fbf0d8;
  --laterite: #dc2626;
  /* Rouge-orangé du logo Sud Eco (trait de route + tagline). Le nom
     historique --magenta est conservé pour ne pas casser les usages ;
     la valeur est celle du logo, extraite du fichier fourni le 12/08/2026. */
  --magenta: #ee4a3a;
  --lagune: #0e6a50;
  --lagune-clair: #e3f0e9;
  --r: 6px;
  --max: 1220px;
  --ui: "Archivo", system-ui, sans-serif;
  --titre: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 0.82rem; color: var(--gris); }
.mag { color: var(--magenta); font-style: normal; font-weight: 700; }
.vide { color: var(--gris); padding: 2rem 0; }
.sep { color: var(--trait-fort); }

.skip {
  position: absolute; left: -9999px;
  background: var(--encre); color: var(--papier); padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

/* --- Bandeau titre --- */

.masthead { border-bottom: 1px solid var(--trait); background: var(--papier); }

.masthead__in {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}

.brand { text-decoration: none; display: grid; gap: 0.15rem; margin-right: auto; }
.brand__l1 { font-family: var(--titre); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.brand__l1 em { font-style: italic; font-weight: 400; }
.brand__l2 { font-size: 0.76rem; color: var(--gris); letter-spacing: 0.02em; }
.brand__logo { max-height: 5rem; width: auto; display: block; }
@media (max-width: 640px) { .brand__logo { max-height: 3.5rem; } }

.masthead__jour {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; padding: 0.45rem 0.7rem;
  border: 1px solid var(--trait); border-radius: var(--r); background: var(--papier-2);
}
.masthead__jour img { border-radius: 2px; box-shadow: 0 1px 4px rgb(20 28 54 / 0.18); }
.masthead__jour span { display: grid; }
.masthead__jour b { font-size: 0.82rem; }

.masthead__tools { display: flex; gap: 0.4rem; }
.icobtn {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
  border: 1px solid var(--trait); border-radius: var(--r);
  background: var(--papier); color: var(--encre-2);
}
.icobtn:hover { background: var(--papier-2); }

/* --- Menu rubriques --- */

.rub { border-top: 1px solid var(--trait); background: var(--papier-2); }
.rub__in { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; }
.rub__in::-webkit-scrollbar { display: none; }
.rub__in a {
  padding: 0.7rem 0.85rem; text-decoration: none; white-space: nowrap;
  font-size: 0.9rem; font-weight: 500; color: var(--gris-fort);
  border-bottom: 2px solid transparent;
}
.rub__in a:hover { color: var(--encre); }
.rub__in a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--safran); }

/* --- Fil en direct --- */

/* Mesures et couleurs de la maquette : le fil est latérite et défile. */
.fil { background: var(--laterite); color: #fff3ee; overflow: hidden; }
.fil__in {
  display: flex; align-items: center; height: 40px;
  max-width: var(--max); margin: 0 auto; padding: 0 24px; gap: 16px;
}
.fil__tag {
  flex: none; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; background: #00000030;
  padding: 5px 10px; border-radius: 3px; font-weight: 600;
}
.fil__mask { overflow: hidden; flex: 1; position: relative; height: 40px; }
.fil__track {
  display: flex; align-items: center; height: 40px; white-space: nowrap;
  width: max-content; animation: defile 42s linear infinite;
}
/* La liste est doublée : l'écart vit dans l'élément, pas dans un `gap`,
   pour que la moitié de la piste soit exactement la liste d'origine. */
.fil__it { display: flex; align-items: center; gap: 10px; padding-right: 44px; font-size: 13.5px; }
/* `color: inherit` est indispensable : le `.mono` global est gris, et un
   gris sombre sur le latérite ne se lit pas. L'heure reste en retrait par
   l'opacité, mais à 0.9 — le 0.7 de la maquette tombe à 4,4:1 de
   contraste, sous le seuil AA, pour un texte de 11,5 px lu sur mobile en
   plein soleil. */
.fil__it .mono { color: inherit; opacity: 0.9; font-size: 11.5px; }
.fil__mask:hover .fil__track { animation-play-state: paused; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- La une --- */

.une {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem; padding: 2rem 0;
  border-bottom: 1px solid var(--trait);
}

.photo { margin: 0; }
/* Ratio 3:2 imposé sur les hero (une + fiche article) : une photo
   verticale ou panoramique posée par le journaliste est recadrée par
   object-fit cover, plutôt que de faire pousser toute la maquette.
   Le journaliste voit le crop au preview et peut choisir une autre
   image si besoin. */
.photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
  background: var(--papier-2);  /* évite un flash blanc pendant le chargement */
}
.photo__cap { font-size: 0.78rem; color: var(--gris); padding-top: 0.5rem; }
.credit { font-family: var(--mono); margin-left: 0.4rem; }

.eyebrow {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 600; color: var(--safran-sombre); margin: 1.2rem 0 0.4rem;
}
.eyebrow a { text-decoration: none; }

.lead__h { font-family: var(--titre); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; margin: 0 0 0.6rem; }
.lead__h a { text-decoration: none; }
.lead__h a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lead__ch { font-size: 1.1rem; color: var(--gris-fort); margin: 0 0 0.9rem; }

.sign { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.sign b { font-weight: 600; }

.tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px;
}
.tag--prem { background: var(--safran-clair); color: var(--safran-sombre); }

/* Brèves — liste numérotée sans titre de groupe, à la maquette. Le
   numéro sert de repère visuel ; il aide l'œil à distinguer les
   entrées sans qu'on ait à mettre une barre de séparation lourde. */
.une__side { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--trait); padding-left: 2rem; }
.brief { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--trait);
  text-decoration: none; color: inherit; }
.brief:first-child { padding-top: 0; }
.brief:last-child { border-bottom: 0; }
.brief__n { font-family: var(--mono); font-size: 0.7rem; color: var(--trait-fort);
  padding-top: 0.2rem; flex: none; letter-spacing: 0.05em; }
.brief__h { font-family: var(--titre); font-size: 1.1rem; font-weight: 600;
  line-height: 1.22; display: block; margin-bottom: 0.3rem; }
.brief:hover .brief__h { text-decoration: underline; text-underline-offset: 3px; }
.brief__m { font-family: var(--mono); font-size: 0.72rem; color: var(--gris); }
.brief__m .sep { color: var(--trait-fort); margin: 0 0.35rem; }

/* --- Sections et cartes --- */

/* En-tête « À la une » — titre à gauche, chips de tri à droite, gros
   trait noir sous les deux. Repris de la maquette pour marquer que la
   section est un rayon éditorial, pas un simple assortiment. */
.sect { padding: 3rem 0 0; border-bottom: none; }
.sect__hd { display: flex; align-items: flex-end; gap: 1.2rem;
  padding-bottom: 1rem; border-bottom: 2px solid var(--encre); margin-bottom: 1.5rem; }
.sect__t { font-family: var(--titre); font-size: 1.6rem; font-weight: 600; margin: 0; }
.sect__push { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sect__push .chip { padding: 0.4rem 0.9rem; border: 1px solid var(--trait);
  border-radius: 100px; font-size: 0.78rem; font-weight: 500;
  color: var(--gris-fort); background: #fff; text-decoration: none;
  cursor: pointer; }
.sect__push .chip:hover { border-color: var(--encre); color: var(--encre); }
.sect__push .chip[aria-pressed="true"] { background: var(--encre);
  border-color: var(--encre); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0 2rem; }
.grid .carte { padding: 1.4rem 0; border-bottom: 1px solid var(--trait); gap: 0.5rem; }

/* Ancienne classe historique — encore utilisée par category.html/search. */
.sect__h { font-family: var(--titre); font-size: 1.25rem; margin: 0 0 1.2rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--encre); }

.grille {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.carte { display: grid; gap: 0.6rem; }
.carte__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.carte .eyebrow { margin: 0; }
.carte__h { font-family: var(--titre); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.carte__h a { text-decoration: none; }
.carte__h a:hover { text-decoration: underline; }
.carte__ch { font-size: 0.92rem; color: var(--gris-fort); margin: 0; }
.carte__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--gris); margin: 0; }

/* --- Édition du jour --- */

/* Journal du jour — bandeau sombre, couverture à gauche, specs alignés,
   prix + boutons à droite. Copié de la maquette. C'est la vitrine du
   PDF quotidien : le lecteur doit voir le nombre de pages, le poids
   du fichier, l'heure de mise en ligne. Autant d'indices qu'il n'y a
   plus qu'à cliquer. */
.jour {
  margin: 2.5rem 0 0; background: var(--encre); color: #fff;
  border-radius: 12px; overflow: hidden;
}
.jour__in {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 2rem; align-items: center; padding: 1.75rem 2rem;
}
.jour__cov { width: 100%; max-width: 200px; border-radius: 3px;
  box-shadow: 0 3px 14px rgb(0 0 0 / 0.35); }
.jour__cov--vide { aspect-ratio: 0.72; background: #2A3A6B; }
.jour__meta .eyebrow { color: var(--safran); margin: 0; }
.jour__t { font-family: var(--titre); font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: #fff; margin: 0.5rem 0 0.6rem; font-weight: 600; line-height: 1.15; }
.jour__d { color: #B9C0D6; font-size: 0.9rem; max-width: 52ch; margin: 0; line-height: 1.55; }
.jour__specs { display: flex; margin-top: 1.1rem; flex-wrap: wrap; }
.spec { padding-right: 1.3rem; margin-right: 1.3rem; border-right: 1px solid #ffffff1f; }
.spec:last-child { border: 0; margin: 0; padding: 0; }
.spec b { display: block; font-family: var(--mono); font-size: 0.92rem; color: #fff;
  font-weight: 500; }
.spec span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8F98B6; }
.jour__buy { text-align: right; flex: none; }
.prix { font-family: var(--mono); font-size: 2rem; font-weight: 500;
  color: var(--safran); letter-spacing: -0.02em; margin: 0; }
.prix small { font-size: 0.85rem; color: #B9C0D6; letter-spacing: 0.04em; margin-left: 0.15rem; }
.jour__acts { display: flex; gap: 0.6rem; margin-top: 0.85rem;
  flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .jour__in { grid-template-columns: 140px minmax(0, 1fr); padding: 1.4rem; }
  .jour__buy { grid-column: 1 / -1; text-align: left; }
  .jour__acts { justify-content: flex-start; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 0.7rem 1.3rem; border-radius: 100px; text-decoration: none;
  border: 1px solid var(--trait-fort); background: var(--papier); color: var(--encre);
  cursor: pointer; transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--p { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.btn--or { background: var(--safran); border-color: var(--safran); color: #3A2503; }
.btn--or:hover { background: #F5B33D; border-color: #F5B33D; }
.btn--ligne { background: transparent; border-color: #ffffff40; color: #fff; }
.btn--ligne:hover { background: #ffffff14; border-color: #fff; }
.btn--encre { background: var(--encre); border-color: var(--encre); color: #fff; }
.btn--encre:hover { background: var(--encre-2); }
.btn--fant { background: transparent; border-color: var(--trait-fort); color: var(--gris-fort); }
.btn--fant:hover { border-color: var(--encre); color: var(--encre); background: #fff; }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.82rem; }
.btn--muet { opacity: 0.55; cursor: not-allowed; }

/* --- Article --- */

/* Grille article + rail latéral — deux colonnes fixes ; le rail reste
   sticky à la lecture, comme la maquette. Sur mobile le rail se glisse
   sous l'article (grid-template-columns: 1fr, position: static). */
.art__grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 0 3.5rem; align-items: start; padding: 2rem 0; }
.art { max-width: 44rem; margin: 0; padding: 0; }
.rail { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.rail__b { border: 1px solid var(--trait); border-radius: 12px;
  padding: 1rem 1.1rem; background: #fff; }
.rail__t { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gris); font-weight: 600;
  margin: 0 0 0.75rem; }
.rail__it { display: flex; gap: 0.7rem; padding: 0.7rem 0;
  border-top: 1px solid var(--trait); align-items: flex-start; text-align: left;
  width: 100%; text-decoration: none; color: var(--encre); background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.rail__it:first-of-type { border-top: 0; padding-top: 0; }
.rail__it span { font-family: var(--mono); font-size: 0.68rem; color: var(--trait-fort);
  padding-top: 0.15rem; flex: none; }
.rail__it b { font-size: 0.92rem; font-weight: 500; line-height: 1.3; color: var(--encre); }
.rail__it:hover b { text-decoration: underline; text-underline-offset: 2px; }
.rail__vide { font-size: 0.85rem; color: var(--gris); margin: 0; }
.rail__ed { background: var(--encre); border-radius: 12px; padding: 1.1rem;
  color: #fff; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.rail__ed .rail__t { color: var(--safran); }
.rail__ed p { font-size: 0.85rem; color: #B9C0D6; margin: 0; line-height: 1.5; }

@media (max-width: 900px) {
  .art__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .rail { position: static; }
}
.art__head h1 { font-family: var(--titre); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.14; margin: 0 0 0.7rem; }
.art__ch { font-size: 1.12rem; color: var(--gris-fort); margin: 0 0 1rem; }
.photo--art { margin: 1.5rem 0; }

.corps { font-size: 1.08rem; line-height: 1.75; }
.corps p { margin: 0 0 1.25rem; }
.corps__h3 { font-family: var(--titre); font-size: 1.35rem; margin: 2rem 0 0.8rem; }
.corps--coupe { position: relative; }
.corps--coupe > *:last-child {
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
  mask-image: linear-gradient(to bottom, #000 35%, transparent);
}

.cit {
  margin: 1.8rem 0; padding: 0 0 0 1.3rem;
  border-left: 3px solid var(--safran);
}
.cit p { font-family: var(--titre); font-size: 1.3rem; line-height: 1.4; margin: 0 0 0.4rem; }
.cit cite { font-style: normal; font-size: 0.85rem; color: var(--gris); }

.chiffres {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin: 1.8rem 0; padding: 1.2rem;
  background: var(--papier-2); border-radius: var(--r);
}
.chiffre { display: grid; gap: 0.2rem; }
.chiffre strong { font-family: var(--titre); font-size: 1.6rem; line-height: 1; color: var(--lagune); }
.chiffre span { font-size: 0.82rem; color: var(--gris); }

.corps__fig { margin: 1.8rem 0; text-align: center; }
/* Images dans le corps : on ne recadre pas (contrairement aux hero) —
   le journaliste choisit un ratio et on le préserve. Mais on borne la
   hauteur pour qu'une image verticale ne remplisse pas trois écrans
   de scroll. `contain` garantit qu'on ne coupe rien ; le fond papier
   remplit l'espace latéral d'une image plus étroite que sa boîte. */
.corps__fig img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r);
  background: var(--papier-2);
  display: inline-block;
}
.corps__fig figcaption { font-size: 0.78rem; color: var(--gris); padding-top: 0.5rem; text-align: left; }

.lie {
  margin: 1.8rem 0; padding: 0.9rem 1.1rem;
  background: var(--lagune-clair); border-radius: var(--r);
}
.lie .eyebrow { margin: 0 0 0.2rem; color: var(--lagune); }
.lie a { font-family: var(--titre); font-size: 1.05rem; font-weight: 600; }

/* --- Paywall --- */

.paywall {
  margin: 2rem 0; padding: 2rem;
  background: var(--papier-2);
  border: 1px solid var(--trait-fort); border-top: 3px solid var(--safran);
  border-radius: var(--r); text-align: center;
}
.paywall__k {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 600; color: var(--safran-sombre); margin: 0 0 0.5rem;
}
.paywall h2 { font-family: var(--titre); font-size: 1.5rem; margin: 0 0 0.6rem; }
.paywall p { color: var(--gris-fort); margin: 0 auto 1.2rem; max-width: 30rem; }
.paywall__actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* Grand format — teaser abonnés en pied de home. Deux étages : le chapô
   sous un dégradé qui s'estompe (invite à cliquer), puis un gate papier
   avec le CTA. Tant que l'abonnement n'est pas branché (Phase 6), le CTA
   pousse vers la création de compte — un lecteur enregistré est déjà
   trois fois plus probable de payer que l'anonyme. */
.gf { margin-top: 3rem; border: 1px solid var(--trait); border-radius: 12px;
  overflow: hidden; background: #fff; }
.gf__art { padding: 2rem 2.2rem 0; position: relative; }
.gf__art .eyebrow { margin: 0 0 0.5rem; }
.gf__h { font-family: var(--titre); font-size: clamp(1.4rem, 2.5vw, 2rem);
  max-width: 30ch; margin: 0 0 0.8rem; line-height: 1.15; font-weight: 700; }
.gf__h a { text-decoration: none; }
.gf__h a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gf__fade { position: relative; max-height: 130px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent); }
.gf__fade p { color: var(--gris-fort); font-size: 1rem; line-height: 1.55;
  max-width: 66ch; margin: 0 0 1rem; }
.gf__gate { border-top: 1px solid var(--trait); background: var(--papier-2);
  padding: 1.6rem 2.2rem 1.9rem; margin-top: 0.5rem; }
.gf__gate .eyebrow { margin: 0 0 0.4rem; }
.gf__gh { font-family: var(--titre); font-size: 1.35rem; margin: 0 0 0.4rem; font-weight: 600; }
.gf__gp { font-size: 0.9rem; color: var(--gris); max-width: 56ch; margin: 0 0 1.1rem; }
.gf__acts { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .gf__art, .gf__gate { padding-left: 1.3rem; padding-right: 1.3rem; }
}

.bio {
  margin-top: 2rem; padding: 1.1rem 1.3rem;
  border: 1px solid var(--trait); border-radius: var(--r);
}
.bio p:last-child { margin: 0; font-size: 0.92rem; color: var(--gris-fort); }

/* --- Rubrique, kiosque, recherche --- */

.rubhead { padding: 2rem 0 1.2rem; border-bottom: 2px solid var(--encre); margin-bottom: 1.5rem; }
.rubhead h1 { font-family: var(--titre); font-size: 2rem; margin: 0; }
.rubhead h1 em { font-style: italic; font-weight: 400; color: var(--safran); }
.rubhead__ch { color: var(--gris-fort); margin: 0.4rem 0 0; max-width: 56ch; }

/* === Abonnement — quatre offres, carte à carte, portées de la maquette. */
.pan { margin: 1.5rem 0; padding: 1.2rem 1.4rem; background: #fff;
  border: 1px solid var(--trait); border-radius: 10px; }
.pan__bd p { margin: 0; }
.pan--info { background: var(--lagune-clair); border-color: #b7d4c5; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin: 1.5rem 0 0; }
.plan-card { background: #fff; border: 1px solid var(--trait); border-radius: 10px;
  padding: 20px 22px; text-align: left; display: flex; flex-direction: column;
  gap: 8px; position: relative; margin: 0; }
.plan-card:hover { border-color: var(--trait-fort); }
.plan-card--featured { border-color: var(--encre); box-shadow: 0 0 0 1px var(--encre); }
.plan__n { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris); font-family: var(--mono); font-weight: 500; }
.plan__p { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; color: var(--encre); line-height: 1.1; }
.plan__p small { font-size: 0.78rem; color: var(--gris); font-weight: 400; margin-left: 0.15rem; }
.plan__d { font-size: 0.86rem; color: var(--gris-fort); min-height: 2.4em; }
.plan__cta { margin-top: 0.5rem; align-self: stretch; }
.plan__badge { position: absolute; top: -9px; right: 14px; background: var(--lagune);
  color: #fff; font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; font-weight: 600; font-family: var(--mono); }

.kio__filtres { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  font-size: 0.85rem; padding: 0.35rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--trait-fort); background: var(--papier);
  color: var(--gris-fort); text-decoration: none;
}
.chip.est-actif { background: var(--encre); border-color: var(--encre); color: var(--papier); }

.kio__grille {
  display: grid; gap: 2rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  margin-top: 1rem;
}
.edi { display: grid; gap: 0.4rem; align-content: start; }
.edi__cov-wrap { display: block; }
.edi__cov { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px;
  box-shadow: 0 4px 16px -4px rgb(20 28 54 / 0.22); transition: transform 0.15s ease; }
.edi__cov-wrap:hover .edi__cov { transform: translateY(-2px); }
.edi__cov--vide { background: var(--papier-3); }
.edi h3 { font-family: var(--titre); font-size: 1rem; line-height: 1.25; margin: 0.35rem 0 0; }
.edi__num, .edi__meta { margin: 0; font-size: 0.72rem; color: var(--gris); }
.edi__prix { font-weight: 600; margin: 0; color: var(--lagune); }
.edi__act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }
.edi__owned { font-size: 0.7rem; color: var(--lagune); }

/* En-tête du catalogue : titre + chips de période, séparés d'un trait
   fin pour hériter du langage éditorial des rubriques. */
.kio-cat { margin-top: 2rem; }
.kio-cat__hd { display: flex; align-items: flex-end; gap: 1.2rem;
  padding-bottom: 0.8rem; border-bottom: 2px solid var(--encre); }
.kio-cat__hd .sect__push { margin-left: auto; }

/* Bandeau « Mon kiosque » en haut de la page — safran clair pour
   signaler l'espace personnel sans copier la section sombre de la home. */
.mien-strip { background: var(--safran-clair); border: 1px solid #e4c990;
  border-radius: 10px; padding: 1.2rem 1.4rem; margin: 1.5rem 0 0; }
.mien-strip__hd { display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 0.8rem; flex-wrap: wrap; }
.mien-strip__hd .eyebrow { margin: 0; }
.mien-strip__n { margin: 0.1rem 0 0; font-family: var(--titre); font-size: 1.15rem; color: var(--encre); }
.mien-strip__all { margin-left: auto; font-family: var(--mono); font-size: 0.78rem;
  color: var(--safran-sombre); text-decoration: none; font-weight: 600; }
.mien-strip__all:hover { text-decoration: underline; }
.mien-strip__grid { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.3rem; }
.mien-strip__it { flex: none; width: 76px; text-align: center; text-decoration: none;
  color: var(--gris-fort); }
.mien-strip__it img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 3px; box-shadow: 0 2px 8px -2px rgb(20 28 54 / 0.25); display: block; }
.mien-strip__ph { width: 100%; aspect-ratio: 3 / 4; background: #fff;
  border: 1px solid var(--trait); border-radius: 3px; }
.mien-strip__it span { display: block; margin-top: 0.35rem; font-size: 0.65rem; color: var(--gris); }
.mien-strip__it:hover img { transform: translateY(-2px); transition: transform 0.15s ease; }

/* Invit compte pour anonyme sur /kiosque/ */
.kio-invit { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin: 2.5rem 0 1rem; padding: 1.4rem 1.6rem;
  background: var(--papier-2); border: 1px solid var(--trait); border-radius: 10px; }
.kio-invit h3 { font-family: var(--titre); font-size: 1.15rem; margin: 0; }
.kio-invit p { margin: 0.3rem 0 0; color: var(--gris-fort); font-size: 0.92rem; }
.kio-invit .btn { margin-left: auto; }

/* Version claire du bandeau paiement */
.pay--light { margin-top: 2rem; color: var(--gris); }
.pay--light .moyen { background: var(--papier); border-color: var(--trait); color: var(--gris-fort); }

.rech { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.rech input {
  flex: 1; min-width: 14rem; font: inherit;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--trait-fort); border-radius: var(--r); background: var(--papier-2);
}
.rech input:focus-visible { outline: 2px solid var(--safran); outline-offset: 1px; }
.rech__compte { color: var(--gris); font-size: 0.9rem; }

.htmx-indicator { opacity: 0; transition: opacity 150ms; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* --- Pied de page --- */

/* Pied de page — papier clair, quatre colonnes, comme la maquette. Le
   pied du site n'a pas besoin d'être un événement visuel : il tient sur
   la ligne éditoriale (papier + Fraunces) et laisse la parole au contenu. */
.pied { margin-top: 4rem; background: var(--papier); color: var(--gris);
  font-size: 0.87rem; border-top: 1px solid var(--trait); padding: 3rem 0 3.5rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--encre); margin: 0 0 0.75rem; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.foot a { color: var(--gris); text-decoration: none; }
.foot a:hover { color: var(--encre); text-decoration: underline; }
.foot--brand .brand__l1 { font-family: var(--titre); font-size: 1.5rem;
  font-weight: 700; color: var(--encre); line-height: 1.1; }
.foot--brand .brand__l1 em { font-style: italic; font-weight: 400; }
.foot--brand p { margin: 0.6rem 0 0; max-width: 34ch; line-height: 1.5; }
.foot__coord { font-style: normal; display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.foot__coord p { margin: 0; max-width: 34ch; line-height: 1.5; }
.foot__coord a { color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--trait); }
.foot__coord a:hover { border-bottom-color: var(--laterite); color: var(--laterite); }
.foot__bas { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--trait);
  display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; }
.foot__bas .mono { color: var(--trait-fort); font-size: 0.78rem; }
.foot__bas a { color: var(--gris); text-decoration: none; }
.foot__bas a:hover { color: var(--encre); }

@media (max-width: 720px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .foot--brand { grid-column: 1 / -1; }
}

/* --- Mobile --- */

@media (max-width: 860px) {
  .une { grid-template-columns: 1fr; gap: 1.5rem; }
  .une__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--trait); padding-top: 1.2rem; }
  .masthead__in { flex-wrap: wrap; gap: 0.8rem; }
  .masthead__jour { order: 3; }
  .brand__l1 { font-size: 1.45rem; }
  .jour { padding: 1.2rem; gap: 1.2rem; }
  .jour__cov { width: 7rem; }
  .fil__tag { display: none; }
}

/* Un bandeau qui défile sans fin est intenable pour qui souffre de troubles
   vestibulaires ou de déficit d'attention : on l'immobilise sur demande. */
@media (prefers-reduced-motion: reduce) {
  .fil__track { animation: none; }
  /* Immobiliser la piste la tronquerait : on rend le fil parcourable. */
  .fil__mask { overflow-x: auto; scrollbar-width: none; }
  .fil__mask::-webkit-scrollbar { display: none; }
  .fil__it[aria-hidden="true"] { display: none; }
}

/* === Le kiosque (spec §6.1) — porté depuis la maquette ===================
   Section sombre avec en-tête, filtres chips, rack incliné, mon kiosque
   et bandeau moyens de paiement. Les noms de classes suivent la maquette
   pour rester interchangeables. */

.kiosque { background: var(--encre); color: #fff; margin-top: 4rem; padding: 3.25rem 0 3.75rem; }
.kiosque__hd { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.kiosque__t { color: #fff; font-family: var(--titre); font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin: 0; }
.kiosque__t em { font-style: italic; font-weight: 400; color: var(--safran); }
.kiosque__d { color: #9AA3C0; font-size: 0.9rem; max-width: 46ch; margin: 0.6rem 0 0; }
.kiosque__f { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.kchip { padding: 0.4rem 0.9rem; border: 1px solid #ffffff2e; border-radius: 100px;
  font-size: 0.78rem; color: #C7CDE0; background: transparent; text-decoration: none; }
.kchip:hover { border-color: #fff; color: #fff; }
.kchip[aria-pressed="true"] { background: #fff; color: var(--encre); border-color: #fff; font-weight: 600; }

/* Rack : les éditions comme des journaux sur une étagère, légèrement inclinés */
.rack { display: flex; gap: 1.4rem; overflow-x: auto; padding: 1.6rem 0.3rem 1.6rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  background: linear-gradient(180deg, transparent, transparent 26px, #ffffff10 26px, #ffffff10 27px, transparent 27px); }
.rack::-webkit-scrollbar { height: 6px; }
.rack::-webkit-scrollbar-thumb { background: #ffffff33; border-radius: 100px; }
.rack::-webkit-scrollbar-track { background: #ffffff12; }

.ed { flex: none; width: 184px; scroll-snap-align: start; position: relative; text-align: left; }
.ed__clip { position: absolute; top: -0.5rem; left: 50%; transform: translateX(-50%);
  width: 14px; height: 26px; border-radius: 3px; background: #D9D2C0; border: 1px solid #00000025; z-index: 3; }
.ed__hold { display: block; transform: rotate(var(--tilt, -1.1deg)); transform-origin: top center; transition: transform 0.22s ease; }
.ed:hover .ed__hold { transform: rotate(0) translateY(-6px); }
.ed__cov { width: 100%; aspect-ratio: 0.72; object-fit: cover; border-radius: 3px;
  box-shadow: 0 8px 20px -12px #00000066; display: block; }
.ed__cov--vide { background: #2A3A6B; }
.ed__foot { margin-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ed__date { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: #9AA3C0; line-height: 1.35; text-transform: lowercase; }
.ed__date b { display: block; color: #fff; font-weight: 500; font-size: 0.78rem; }
.ed__buy { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; font-weight: 600; color: #3A2503;
  background: var(--safran); padding: 0.4rem 0.7rem; border-radius: 100px; white-space: nowrap; border: 0; cursor: pointer; }
.ed__buy:hover { background: #F5B33D; }
.ed__own { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600; color: #8FE0C0;
  border: 1px solid #8FE0C055; padding: 0.35rem 0.65rem; border-radius: 100px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; }
.ed__own:hover { background: #8FE0C014; }

/* Mon kiosque */
.mien { margin-top: 2.1rem; border-top: 1px solid #ffffff20; padding-top: 1.85rem; }
.mien__hd { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.mien__hd h3 { color: #fff; font-size: 1.2rem; margin: 0; font-family: var(--titre); }
.compte { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: #9AA3C0;
  border: 1px solid #ffffff26; padding: 0.15rem 0.55rem; border-radius: 100px; }
.mien .vide { border: 1px dashed #ffffff2e; border-radius: 10px; padding: 1.5rem;
  text-align: center; color: #9AA3C0; font-size: 0.9rem; background: transparent; }
.mien .vide b { display: block; color: #fff; font-family: var(--titre); font-size: 1.05rem;
  margin-bottom: 0.3rem; font-weight: 600; }
.mien__grid { display: flex; gap: 1.1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.mien__it { flex: none; width: 118px; text-align: left; text-decoration: none; }
.mien__it img { width: 100%; aspect-ratio: 0.72; object-fit: cover; border-radius: 3px; display: block; }
.mien__it .mien__ph { width: 100%; aspect-ratio: 0.72; background: #2A3A6B; border-radius: 3px; }
.mien__it b { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  color: #fff; margin-top: 0.5rem; font-weight: 500; }
.mien__it span { font-size: 0.65rem; color: #9AA3C0; font-family: 'IBM Plex Mono', monospace; }
.mien__all { margin-left: auto; font-family: var(--mono); font-size: 0.75rem;
  color: var(--safran); text-decoration: none; letter-spacing: 0.02em; }
.mien__all:hover { text-decoration: underline; }

/* Page dédiée /kiosque/mien/ — barre de filtres + pagination */
.barre-mien { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center;
  margin: 0 0 1.5rem; }
.barre-mien input[type="search"], .barre-mien select {
  flex: 1; min-width: 12rem; font: inherit; padding: 0.55rem 0.8rem;
  border: 1px solid var(--trait-fort); border-radius: var(--r); background: var(--papier); }
.barre-mien select { flex: 0 0 auto; min-width: 10rem; }
.barre-mien input:focus-visible, .barre-mien select:focus-visible {
  outline: 2px solid var(--safran); outline-offset: 1px; }
.pagi { display: flex; gap: 0.75rem; align-items: center; justify-content: center;
  margin: 2rem 0; flex-wrap: wrap; }
.pagi__c { color: var(--gris); }

/* Bandeau de confirmation d'e-mail — informatif, non bloquant. On
   reste dans la palette safran pour signaler l'action attendue sans
   dramatiser (rouge = erreur, safran = à faire quand tu peux). */
.verifband { background: var(--safran-clair); border-bottom: 1px solid var(--safran); }
.verifband__in { display: flex; align-items: center; gap: 1rem; padding: 0.7rem 20px;
  font-size: 0.88rem; color: var(--safran-sombre); flex-wrap: wrap; }
.verifband__btn { font: inherit; font-size: 0.82rem; font-weight: 600;
  background: var(--safran-sombre); color: #fff; border: 0; padding: 0.4rem 0.9rem;
  border-radius: 100px; cursor: pointer; margin-left: auto; }
.verifband__btn:hover { background: var(--encre); }

/* Messages flash (Django messages framework) — coin haut, superposés. */
.flash { position: fixed; top: 1rem; right: 1rem; z-index: 200;
  display: flex; flex-direction: column; gap: 0.5rem; max-width: min(28rem, calc(100vw - 2rem)); }
.flash__it { display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.9rem;
  background: #fff; border: 1px solid var(--trait); box-shadow: 0 6px 24px -8px #0002; }
.flash__it--success { background: var(--lagune-clair); border-color: var(--lagune); color: var(--lagune); }
.flash__it--error, .flash__it--danger { background: #f9e6df; border-color: var(--laterite); color: var(--laterite); }
.flash__it--info { background: var(--safran-clair); border-color: var(--safran); color: var(--safran-sombre); }
.flash__x { background: none; border: 0; font-size: 1.2rem; line-height: 1;
  color: currentColor; cursor: pointer; padding: 0; margin-left: auto; opacity: 0.6; }
.flash__x:hover { opacity: 1; }

/* Bandeau moyens de paiement */
.pay { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.9rem;
  color: #8F98B6; font-size: 0.78rem; }
.pay__l { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.moyen { display: inline-flex; align-items: center; gap: 0.4rem; background: #ffffff10;
  border: 1px solid #ffffff1f; padding: 0.35rem 0.75rem; border-radius: 6px;
  font-size: 0.78rem; color: #DDE1EC; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 2px; flex: none; }

/* === Compte lecteur — connexion, inscription, retour paiement ============
   Mise en page « split » : panneau éditorial sombre à gauche (identité,
   promesse, moyens de paiement), formulaire à droite. On rappelle la
   valeur du service au moment où le lecteur crée son compte. Cohérent
   avec la section kiosque, qui use du même vocabulaire visuel. */

.auth-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  min-height: calc(100vh - 8rem); align-items: stretch; }
.auth-panel { background: var(--encre); color: #fff; padding: clamp(2rem, 4vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.auth-panel__brand { font-family: var(--titre); font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700; line-height: 1.1; color: #fff; }
.auth-panel__brand em { font-style: italic; font-weight: 400; color: var(--safran); }
.auth-panel__pitch { max-width: 32ch; }
.auth-panel__eyebrow { color: var(--safran); font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1rem; }
.auth-panel__pitch h2 { font-family: var(--titre); font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1; margin: 0 0 1.1rem; color: #fff; }
.auth-panel__pitch h2 em { font-style: italic; font-weight: 400; color: var(--safran); }
.auth-panel__pitch p { color: #C7CDE0; font-size: 1rem; line-height: 1.55; margin: 0 0 1rem; }
.auth-panel__pitch ul { list-style: none; padding: 0; margin: 1.4rem 0 0;
  display: grid; gap: 0.6rem; font-size: 0.95rem; color: #DDE1EC; }
.auth-panel__pitch li { display: flex; gap: 0.65rem; align-items: flex-start; }
.auth-panel__pitch li::before { content: ""; flex: none; width: 6px; height: 6px;
  border-radius: 2px; background: var(--safran); margin-top: 0.55rem; }

.auth-panel__foot { color: #8F98B6; font-size: 0.78rem;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }
.auth-panel__foot .pay__l { margin-top: 0.5rem; }

.auth-form-side { background: var(--papier); padding: clamp(2rem, 4vw, 4rem);
  display: flex; align-items: center; justify-content: center; }
.auth { width: 100%; max-width: 420px; }
.auth h1 { font-family: var(--titre); font-size: 1.75rem; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.auth__hint { color: var(--gris); font-size: 0.92rem; margin: 0 0 1.6rem; line-height: 1.5; }
.auth__form { display: grid; gap: 1.1rem; }
.auth__form .ch { display: grid; gap: 0.35rem; }
.auth__form .ch > span:first-child { font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.auth__form input[type="email"],
.auth__form input[type="password"],
.auth__form input[type="text"] { height: 46px; padding: 0 14px; border: 1px solid var(--trait-fort);
  border-radius: var(--r); background: #fff; font: inherit; font-size: 0.95rem; color: var(--encre); }
.auth__form input:focus { outline: 2px solid var(--safran); outline-offset: 1px; border-color: var(--encre); }
.auth__form .btn { height: 46px; font-size: 0.95rem; margin-top: 0.4rem; }
.auth__check { display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.87rem; color: var(--gris-fort); line-height: 1.4; padding: 0.2rem 0; }
.auth__check input { margin-top: 0.15rem; }
.auth__err { color: var(--laterite); font-size: 0.85rem; font-style: normal;
  padding: 0.55rem 0.75rem; background: #f9e6df; border-left: 3px solid var(--laterite);
  border-radius: 0 var(--r) var(--r) 0; margin: 0; }
.auth__alt { margin-top: 1rem; font-size: 0.9rem; color: var(--gris);
  padding-top: 1rem; border-top: 1px solid var(--trait); text-align: center; }
.auth__alt a { color: var(--encre); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Version compacte réutilisée par la page retour paiement — pas de split. */
.auth-simple { padding: 3rem 20px; display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.auth-simple .auth { text-align: center; padding: 2.5rem 2rem;
  background: #fff; border: 1px solid var(--trait); border-radius: 10px; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; min-height: auto; }
  .auth-panel { padding: 2rem 1.4rem; }
  .auth-panel__pitch h2 { font-size: 1.6rem; }
  .auth-form-side { padding: 2rem 1.4rem 3rem; }
}

/* === Bandeau supérieur : boutons connexion / déconnexion =============== */
.masthead__link { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--encre);
  padding: 0.4rem 0.85rem; border-radius: 100px; border: 1px solid var(--trait); background: transparent;
  cursor: pointer; text-decoration: none; }
.masthead__link:hover { border-color: var(--encre); }
.masthead__logout { display: inline-flex; align-items: center; gap: 0.55rem; }

/* === Modales (connexion, recherche) ======================================
   Portées depuis la maquette. Overlay opaque + carte en papier centrée,
   `body.no-scroll` immobilise la page dessous. Toutes ces modales sont
   ouvertes par Alpine (`[data-modal]`) et fermées par backdrop / Échap. */
[x-cloak] { display: none !important; }
body.no-scroll { overflow: hidden; }

.ov {
  position: fixed; inset: 0; background: #0B1024CC; backdrop-filter: blur(3px);
  z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.modal {
  background: var(--papier); border-radius: 14px; width: 100%;
  max-width: 520px; overflow: hidden; max-height: 100%;
  box-shadow: 0 24px 60px -12px #0008;
  animation: modalPop 0.18s ease;
}
@keyframes modalPop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.modal__hd {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--trait);
}
.modal__hd h3 { font-family: var(--titre); font-size: 1.3rem; margin: 0; }
.modal__hd p { font-size: 0.82rem; color: var(--gris); margin: 0.25rem 0 0; }
.modal__x {
  margin-left: auto; width: 34px; height: 34px; border-radius: var(--r);
  display: grid; place-items: center; color: var(--gris);
  background: transparent; border: 0; cursor: pointer; flex: none;
}
.modal__x:hover { background: var(--papier-3); color: var(--encre); }
.modal__bd { padding: 18px 22px 22px; }

/* Onglets connexion / inscription — deux boutons plats, l'actif souligné
   d'un trait safran comme les rubriques du bandeau. */
.auth-tabs { display: flex; gap: 0; flex: 1; }
.auth-tab {
  background: none; border: 0; padding: 12px 4px; margin-right: 24px;
  font: inherit; font-family: var(--titre); font-size: 1.05rem; font-weight: 600;
  color: var(--gris); cursor: pointer; border-bottom: 2px solid transparent;
}
.auth-tab[aria-selected="true"] { color: var(--encre); border-bottom-color: var(--safran); }
.auth-tab:hover { color: var(--encre); }

/* Modale de recherche — plus large, ancrée haut, en-tête intégrée au form */
.modal--rech { max-width: 620px; align-self: flex-start; margin-top: 8vh; }
.rech__in {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--trait); margin: 0;
}
.rech__in input {
  flex: 1; min-width: 0; border: 0; background: none; font: inherit;
  font-size: 1.15rem; font-family: var(--titre); color: var(--encre);
}
.rech__in input:focus { outline: none; }
.rech__in kbd {
  font-family: var(--mono); font-size: 0.7rem;
  border: 1px solid var(--trait); border-radius: 4px;
  padding: 3px 6px; color: var(--gris);
}
.rech__bd { padding: 14px 18px 20px; }
.lbl {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gris); font-family: var(--mono); font-weight: 600;
  margin-bottom: 10px; display: block;
}
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

@media (max-width: 520px) {
  .ov { padding: 12px; }
  .modal--rech { margin-top: 4vh; }
  .modal__hd { padding: 10px 14px; }
  .auth-tab { margin-right: 14px; padding: 10px 2px; font-size: 0.98rem; }
}
.masthead__user { font-size: 0.78rem; color: var(--gris-fort); font-family: 'IBM Plex Mono', monospace; }

/* =====================================================================
   .acc — pages login / inscription (refonte 08/08/2026).
   Container 2 colonnes : carte formulaire + aside points-clés.
   Sur mobile, l'aside passe sous la carte. Card centrée, logo visible,
   contraste fort sur le CTA (rouge du logo) plutôt qu'encre.
   ===================================================================== */
.acc {
  min-height: calc(100vh - 8rem);
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 320px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 15% 10%, rgba(220, 38, 38, 0.06), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(233, 161, 27, 0.08), transparent 45%),
    var(--papier);
}

.acc__card {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: 0 1px 2px rgba(20, 28, 54, 0.04), 0 8px 24px rgba(20, 28, 54, 0.06);
  width: 100%;
}

.acc__head { text-align: center; margin-bottom: 1.8rem; }
.acc__brand {
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; text-decoration: none;
}
.acc__brand img { max-height: 56px; width: auto; display: block; }
.acc__wordmark {
  font-family: var(--titre); font-size: 1.9rem; letter-spacing: -0.02em;
  color: var(--encre); font-weight: 700;
}
.acc__wordmark em { font-style: italic; font-weight: 400; color: var(--laterite); }
.acc__t {
  font-family: var(--titre); font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0 0 0.4rem; letter-spacing: -0.01em; color: var(--encre);
}
.acc__s { color: var(--gris); font-size: 0.95rem; line-height: 1.5; margin: 0; }

.acc__form { display: grid; gap: 1.1rem; }
.acc__field { display: grid; gap: 0.4rem; }
.acc__lbl {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris-fort);
}
.acc__hint {
  font-family: var(--ui); font-size: 0.75rem; color: var(--gris);
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.acc__hint--link { color: var(--laterite); text-decoration: none; border-bottom: 1px solid transparent; }
.acc__hint--link:hover { border-bottom-color: currentColor; }

.acc__field input {
  height: 48px; padding: 0 14px;
  border: 1px solid var(--trait-fort); border-radius: 8px;
  background: var(--papier); color: var(--encre);
  font-family: var(--ui); font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  width: 100%;
}
.acc__field input:focus {
  outline: none; border-color: var(--laterite); background: #fff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.acc__field input::placeholder { color: var(--gris); opacity: 0.7; }

.acc__inputwrap { position: relative; }
.acc__inputwrap input { padding-right: 84px; }
.acc__eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--gris-fort);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 10px; cursor: pointer; border-radius: 5px;
}
.acc__eye:hover { background: var(--papier-2); color: var(--encre); }

.acc__check {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.92rem; line-height: 1.5; color: var(--gris-fort);
  padding: 0.4rem 0;
}
.acc__check input { margin-top: 0.25rem; accent-color: var(--laterite); flex: none; }

.acc__btn {
  height: 50px; margin-top: 0.4rem;
  background: var(--laterite); color: #fff; border: 0; border-radius: 8px;
  font-family: var(--ui); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}
.acc__btn:hover { background: #b91c1c; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25); }
.acc__btn:active { transform: translateY(1px); }
.acc__btn:focus-visible { outline: 3px solid rgba(220, 38, 38, 0.35); outline-offset: 2px; }

.acc__err {
  color: var(--laterite); font-size: 0.85rem; font-style: normal;
  padding-left: 4px; display: block;
}
.acc__msg {
  padding: 10px 14px; border-radius: 8px; font-size: 0.9rem;
  border: 1px solid transparent; margin: 0;
}
.acc__msg--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.acc__legal { font-size: 0.78rem; color: var(--gris); line-height: 1.5; margin: 0.4rem 0 0; }
.acc__legal a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.acc__foot {
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--trait);
  text-align: center; font-size: 0.92rem; color: var(--gris-fort);
}
.acc__foot a {
  color: var(--encre); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--laterite); padding-bottom: 1px;
  margin-left: 4px;
}

/* Aside : liste des atouts. Discret mais lisible. */
.acc__aside { align-self: center; }
.acc__points {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
}
.acc__points li {
  position: relative; padding-left: 1.8rem;
  color: var(--encre-2); font-size: 0.95rem; line-height: 1.55;
}
.acc__points li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 10px; height: 10px; background: var(--laterite);
  border-radius: 2px; transform: rotate(45deg);
}
.acc__points b { color: var(--encre); font-weight: 600; }

@media (max-width: 900px) {
  .acc { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem; }
  .acc__aside { max-width: 480px; margin: 0 auto; padding: 0 0.5rem; }
  .acc__card { padding: 1.8rem 1.4rem; }
}

/* =====================================================================
   Home v3 — bannière abonnement + bloc « L'édition du jour ».
   Insertion en tête de home.html (avant .une) pour capter tôt la
   conversion : le lecteur voit d'abord ce qu'il peut acheter/souscrire,
   puis lit la une.
   ===================================================================== */

/* --- Mini-vignette d'édition : composant de base pour les piles.
   La cover réelle est en <img> plein cadre (object-fit: cover). Un
   fallback dégradé s'affiche pour une édition dont l'extraction PDF
   n'a pas encore posé la cover. Le facteur `--k` pilote l'échelle
   (0.33 pour la pile promo, 1.05 pour la mini de l'édition du jour). */
.minibox {
  width: calc(320px * var(--k, 1));
  aspect-ratio: 0.72;
  overflow: hidden;
  flex: none;
  border-radius: calc(5px * var(--k, 1));
  box-shadow: 0 8px 20px -12px #00000066;
  background: var(--encre-2);
}
.minibox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.minibox__vide {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--encre-3), var(--encre));
  color: #fff;
}
.minibox__vide span {
  font-family: var(--titre);
  font-size: calc(26px * var(--k, 1));
  font-weight: 700;
  letter-spacing: -0.02em;
}
.minibox__vide em { font-style: italic; font-weight: 400; color: var(--laterite); }

/* --- Bannière « Abonnement numérique ». --- */
.promo {
  position: relative; overflow: hidden;
  background: var(--encre-2); border-radius: 12px;
  margin-top: 26px;
  display: flex; align-items: center; gap: 24px;
  padding: 30px 34px; min-height: 172px;
}
.promo::before {
  content: ""; position: absolute; right: -90px; top: -140px;
  width: 520px; height: 520px; border-radius: 50%; background: #ffffff12;
}
.promo::after {
  content: ""; position: absolute; right: -190px; bottom: -230px;
  width: 560px; height: 560px; border-radius: 50%; background: #ffffff0d;
}
.promo__c { position: relative; z-index: 2; flex: 1; min-width: 0; }
.promo__k {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--safran); font-weight: 600; margin: 0 0 11px;
}
.promo__c h2 {
  color: #fff;
  font-family: var(--titre);
  font-size: clamp(22px, 3.1vw, 36px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08; max-width: 19ch;
  margin: 0;
}
.promo__cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px;
  background: var(--laterite); color: #fff;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 4px;
  text-decoration: none;
}
.promo__cta:hover { background: #b91c1c; }
.promo__v { position: relative; z-index: 2; flex: none; transform: rotate(-7deg); }

/* Pile de 3 mini-covers superposées et rotées. */
.pile { position: relative; width: 186px; height: 156px; flex: none; }
.pile .minibox { position: absolute; top: 4px; box-shadow: 0 18px 34px -15px #000000b0; }
.pile .minibox:nth-child(1) { left: 0;  transform: rotate(-9deg); z-index: 1; }
.pile .minibox:nth-child(2) { left: 38px; transform: rotate(-2deg); z-index: 2; }
.pile .minibox:nth-child(3) { left: 76px; transform: rotate(7deg);  z-index: 3; }

/* --- Bloc « L'édition du jour ». --- */
.edjour {
  background: var(--encre); color: #fff;
  padding: 36px 34px 40px; border-radius: 12px;
  margin-top: 22px; position: relative; overflow: hidden;
}
.edjour::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 12px;
  background: radial-gradient(900px 380px at 16% -20%, #33427a66, transparent 66%);
}
.edjour__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 244px;
  gap: 38px; align-items: start;
  position: relative; z-index: 1;
}
.edjour__cov { position: relative; flex: none; }
.edjour__cov .minibox { box-shadow: 0 30px 62px -26px #000000d0; }
.edjour__badge {
  position: absolute; top: -11px; left: -11px; z-index: 2;
  background: var(--safran); color: #3a2503;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
}
.edjour h1 {
  font-family: var(--titre);
  font-size: clamp(28px, 3.6vw, 42px); color: #fff;
  margin: 11px 0 7px; letter-spacing: -0.01em;
}
.edjour__d {
  font-family: var(--mono);
  font-size: 12.5px; color: #8f98b6; letter-spacing: 0.04em;
  margin: 0;
}
.edjour__txt { color: #c7cde0; font-size: 1rem; line-height: 1.55; margin: 12px 0 0; }
.edjour__specs {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 22px;
  border-top: 1px solid #ffffff20; padding-top: 18px;
}
.edjour__specs .spec {
  padding-right: 24px; margin-right: 24px;
  border-right: 1px solid #ffffff1f;
}
.edjour__specs .spec:last-child { border: 0; margin: 0; padding: 0; }
.edjour__specs .spec b { display: block; font-family: var(--titre); font-size: 1.15rem; color: #fff; }
.edjour__specs .spec span { display: block; font-size: 0.72rem; color: #8f98b6; letter-spacing: 0.05em; text-transform: uppercase; }

.edjour__buy {
  background: #fff; color: var(--encre);
  border-radius: 16px; padding: 26px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 44px -22px #00000080;
  display: grid; gap: 10px;
}
.edjour__buy .prix {
  display: flex; align-items: baseline; justify-content: center; gap: 13px;
  font-size: 44px; font-weight: 600; color: var(--encre);
  line-height: 1; letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.edjour__buy .prix small {
  font-size: 15px; color: var(--gris); letter-spacing: 0.08em; font-weight: 400;
}
.edjour__buy .btn { width: 100%; height: auto; padding: 14px 18px; }
.edjour__buy form { margin: 0; }
.edjour__sep { height: 1px; background: var(--trait); margin: 20px 0 12px; }
.edjour__ou { font-size: 0.92rem; color: var(--gris); line-height: 1.45; margin: 0; }
.edjour__note {
  font-family: var(--mono); font-size: 12px; color: var(--gris);
  letter-spacing: 0.02em; margin: 10px 0 0;
}

/* Breakpoint intermédiaire : la carte d'achat (244px) passe en pleine
   largeur sous les deux colonnes cover + méta, mais on garde encore
   les deux colonnes en haut. */
@media (max-width: 1100px) {
  .edjour__in { grid-template-columns: auto minmax(0, 1fr); gap: 28px; }
  .edjour__buy { grid-column: 1 / -1; max-width: 460px; margin: 0 auto; width: 100%; }
}

@media (max-width: 900px) {
  .promo { flex-direction: column; align-items: flex-start; padding: 24px; }
  .promo__v { align-self: center; transform: rotate(-5deg); }
  .promo__c h2 { max-width: none; }
  /* Édition du jour : 1 colonne, padding réduit, cover fluide qui ne
     déborde jamais (la minibox garde son ratio 0.72 via aspect-ratio). */
  .edjour { padding: 24px 18px 26px; }
  .edjour__in { grid-template-columns: 1fr; gap: 22px; }
  .edjour__cov { align-self: center; max-width: 100%; width: 100%; display: flex; justify-content: center; }
  .edjour__cov .minibox { width: min(260px, 70vw); }
  .edjour__specs .spec { padding-right: 16px; margin-right: 16px; }
  .edjour__specs .spec b { font-size: 1rem; }
}

/* Très petits écrans : la cover se réduit encore, la carte d'achat
   perd sa marge auto pour occuper toute la largeur. */
@media (max-width: 480px) {
  .edjour { padding: 20px 14px; }
  .edjour__cov .minibox { width: min(220px, 62vw); }
  .edjour__buy { padding: 20px 18px; }
  .edjour__buy .prix { font-size: 34px; }
}
