/* Le Journal LESLIE × IA — direction artistique éditoriale (papier crème, typographie de presse).
   Indépendante des pages commerciales ; seul le pied de page reprend celui du site. */
:root {
  --j-papier: #f6f1e7;
  --j-papier-clair: #fbf8f2;
  --j-encre: #17130e;
  --j-texte: #2a241d;
  --j-gris: #6c6357;
  --j-filet: #d8cdbb;
  --j-filet-fort: #17130e;
  --j-accent: #5b45d6;
  --j-accent-doux: #ece7fb;
  --j-titre: "Fraunces", "Iowan Old Style", Georgia, serif;
  --j-lecture: "Source Serif 4", Georgia, serif;
  --j-ui: "Inter", system-ui, sans-serif;
  --j-max: 1240px;
}
body.journal { background: var(--j-papier); color: var(--j-texte); font-family: var(--j-lecture); margin: 0; }
body.journal main a, body.journal .j-entete a { color: inherit; }
body.journal .footer { font-family: Inter, system-ui, sans-serif; }
.j-invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Neutralise les règles générales du site (barre de navigation collante, sections commerciales, titres) */
body.journal nav.j-rubriques { position: static; backdrop-filter: none; background: none; z-index: auto; }
body.journal main section { max-width: none; margin: 0; padding: 0; }
body.journal h1, body.journal h2, body.journal h3 { max-width: none; }
.j-evitement { position: absolute; left: -9999px; top: 0; background: var(--j-encre); color: #fff !important; padding: 10px 16px; z-index: 100; font-family: var(--j-ui); }
.j-evitement:focus { left: 12px; top: 12px; }
body.journal :focus-visible { outline: 2px solid var(--j-accent); outline-offset: 3px; }

/* ---------- En-tête de journal ---------- */
.j-entete { max-width: var(--j-max); margin: 0 auto; padding: 0 24px; }
.j-barre { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--j-filet); font: 500 13px/1.4 var(--j-ui); color: var(--j-gris); }
.j-retour { text-decoration: none; color: var(--j-gris) !important; transition: color .2s ease; }
.j-retour:hover { color: var(--j-encre) !important; }
.j-barre-droite { display: inline-flex; align-items: center; gap: 16px; }
body.journal .btn-mylxia { padding: 8px 14px 8px 11px; font-size: 13px; margin: 0; }
.j-date-jour::first-letter { text-transform: uppercase; }
.j-titre-journal { text-align: center; padding: 34px 0 22px; border-bottom: 3px double var(--j-filet-fort); }
.j-titre-journal a { text-decoration: none; font: 700 clamp(40px, 7vw, 84px)/1 var(--j-titre); letter-spacing: -.02em; color: var(--j-encre); }
.j-titre-journal .j-le { font-weight: 500; font-style: italic; }
.j-titre-journal .j-signature { display: inline-block; font: 600 .32em/1 var(--j-ui); letter-spacing: .22em; vertical-align: middle; color: var(--j-accent); margin-left: .35em; transform: translateY(-.3em); }
.j-titre-journal p { margin: 14px auto 0; max-width: 640px; font: italic 400 17px/1.5 var(--j-lecture); color: var(--j-gris); }
.j-rubriques { display: flex; gap: 6px 20px; justify-content: center; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--j-filet); font: 600 12px/1.4 var(--j-ui); letter-spacing: .05em; text-transform: uppercase; }
.j-rubriques a { text-decoration: none; color: var(--j-texte) !important; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease, color .2s ease; }
.j-rubriques a:hover { border-color: var(--j-accent); color: var(--j-accent) !important; }

body.journal main { max-width: var(--j-max); margin: 0 auto; padding: 0 24px 72px; }
.j-etiquette { font: 700 13px/1 var(--j-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--j-encre); margin: 0; padding: 30px 0 14px; border-bottom: 1px solid var(--j-filet-fort); }
.j-etiquette-grande { font: 700 clamp(30px, 4vw, 46px)/1.1 var(--j-titre); letter-spacing: -.01em; text-transform: none; border: 0; padding: 36px 0 10px; }
.j-rubrique { display: inline-block; font: 700 12px/1.3 var(--j-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--j-accent) !important; text-decoration: none; margin-bottom: 10px; }
.j-rubrique:hover { text-decoration: underline; }
.j-meta { font: 500 13px/1.5 var(--j-ui); color: var(--j-gris); margin: 12px 0 0; }

/* ---------- À la une ---------- */
.j-une-article { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: center; padding: 26px 0 36px; border-bottom: 1px solid var(--j-filet); }
.j-une-image img, .j-carte-image img, .j-couverture img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e6dccb; }
.j-une-image { overflow: hidden; display: block; }
.j-une-image img { transition: transform .6s ease; }
.j-une-image:hover img { transform: scale(1.02); }
.j-une-texte h3 { font: 700 clamp(28px, 3.4vw, 46px)/1.08 var(--j-titre); letter-spacing: -.015em; margin: 0 0 14px; color: var(--j-encre); }
.j-une-texte h3 a { text-decoration: none; background: linear-gradient(var(--j-encre), var(--j-encre)) 0 100% / 0 1px no-repeat; transition: background-size .35s ease; }
.j-une-texte h3 a:hover { background-size: 100% 1px; }
.j-chapo { font: 400 19px/1.55 var(--j-lecture); color: var(--j-texte); margin: 0; }

/* ---------- Grille ---------- */
.j-section-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--j-filet-fort); }
.j-section-entete .j-etiquette { border: 0; }
.j-filtres { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
.j-filtres button { font: 600 12px/1 var(--j-ui); letter-spacing: .03em; color: var(--j-texte); background: transparent; border: 1px solid var(--j-filet); border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: all .2s ease; }
.j-filtres button:hover { border-color: var(--j-encre); }
.j-filtres button.actif { background: var(--j-encre); color: var(--j-papier); border-color: var(--j-encre); }
.j-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; padding-top: 28px; }
.j-carte { display: flex; flex-direction: column; }
.j-carte[hidden] { display: none; }
.j-carte-image { display: block; overflow: hidden; margin-bottom: 14px; }
.j-carte-image img { transition: transform .5s ease; }
.j-carte:hover .j-carte-image img { transform: scale(1.03); }
.j-carte h3 { font: 600 22px/1.2 var(--j-titre); margin: 0 0 8px; color: var(--j-encre); letter-spacing: -.005em; }
.j-carte h3 a { text-decoration: none; }
.j-carte h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.j-carte p { margin: 0; font-size: 16px; line-height: 1.5; }
.j-carte .j-meta { margin-top: 10px; }
.j-vide, .j-vide-texte { text-align: center; padding: 70px 0; color: var(--j-gris); }
.j-vide h1 { font: 600 34px/1.2 var(--j-titre); color: var(--j-encre); }

/* ---------- Article ---------- */
.j-article { max-width: 760px; margin: 0 auto; padding-top: 44px; }
.j-article-entete { text-align: left; }
.j-article h1 { font: 700 clamp(34px, 5vw, 56px)/1.06 var(--j-titre); letter-spacing: -.02em; color: var(--j-encre); margin: 0 0 18px; }
.j-article .j-chapo { font-size: 21px; color: var(--j-texte); }
.j-article .j-meta { padding-bottom: 22px; border-bottom: 1px solid var(--j-filet); }
.j-couverture { margin: 28px -60px 34px; }
.j-couverture figcaption { font: 400 13px/1.5 var(--j-ui); color: var(--j-gris); margin-top: 8px; padding: 0 60px; }
.j-corps { font: 400 19px/1.75 var(--j-lecture); color: var(--j-texte); }
.j-corps > p:first-child::first-letter { float: left; font: 700 4.1em/.82 var(--j-titre); padding: 6px 10px 0 0; color: var(--j-encre); }
.j-corps h2 { font: 700 28px/1.2 var(--j-titre); color: var(--j-encre); margin: 42px 0 12px; letter-spacing: -.01em; }
.j-corps h3 { font: 600 22px/1.3 var(--j-titre); color: var(--j-encre); margin: 32px 0 10px; }
.j-corps p, .j-corps ul, .j-corps ol { margin: 0 0 20px; }
.j-corps li { margin-bottom: 8px; }
.j-corps a { color: var(--j-accent); text-decoration: underline; text-underline-offset: 3px; }
.j-corps blockquote { margin: 30px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--j-accent); font: italic 400 22px/1.5 var(--j-titre); color: var(--j-encre); }
.j-corps blockquote p { margin: 0; }
.j-corps hr { border: 0; border-top: 1px solid var(--j-filet); margin: 36px 0; }
.j-corps strong { color: var(--j-encre); }
.j-sources { margin-top: 46px; padding: 26px 28px; background: var(--j-papier-clair); border-top: 3px solid var(--j-encre); font-family: var(--j-ui); }
.j-sources h2 { font: 700 13px/1 var(--j-ui); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; color: var(--j-encre); }
.j-sources ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.j-sources li { margin-bottom: 6px; }
.j-sources a { color: var(--j-encre); text-decoration: underline; text-underline-offset: 2px; }
.j-transparence { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--j-gris); }
body.journal main section.j-suite { margin-top: 64px; }
.j-suite h2 { font: 700 13px/1 var(--j-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--j-encre); padding-bottom: 14px; border-bottom: 1px solid var(--j-filet-fort); margin: 0; }

/* Pied de page du site, posé sur le papier */
body.journal .footer { margin-top: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .j-une-article { grid-template-columns: 1fr; gap: 20px; }
  .j-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .j-couverture { margin-left: 0; margin-right: 0; }
  .j-couverture figcaption { padding: 0; }
}
@media (max-width: 640px) {
  .j-entete, body.journal main { padding-left: 16px; padding-right: 16px; }
  .j-barre { font-size: 12px; }
  .j-date-jour { display: none; }
  .j-titre-journal { padding: 24px 0 16px; }
  .j-titre-journal .j-signature { display: block; margin: 10px 0 0; transform: none; font-size: 12px; }
  .j-titre-journal p { font-size: 15px; }
  .j-rubriques { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .j-rubriques::-webkit-scrollbar { display: none; }
  .j-rubriques a { white-space: nowrap; }
  .j-grille { grid-template-columns: 1fr; gap: 30px; }
  .j-chapo { font-size: 17px; }
  .j-article { padding-top: 26px; }
  .j-article .j-chapo { font-size: 18px; }
  .j-corps { font-size: 18px; line-height: 1.7; }
  .j-sources { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { body.journal * { transition: none !important; } }
