/* ==========================================================================
   DISCIPLINE — /journal · « Le Journal »
   Styles propres à la page ; réutilise les classes de main.css.
   SOMMAIRE
    1. Frontispice
    2. À la une
    3. Plaque de couverture
    4. En-tête des chroniques
    5. Grille de chroniques
    6. Mouvement réduit
    7. Cibles tactiles
   Mouvement : plaque dévoilée par un rideau (data-reveal="mask"), décor construit (data-svg-draw), puis resserré au
   défilement (animation-timeline) ; survol : l'illustration s'agrandit (transform), le titre se souligne.
   ========================================================================== */

/* Éléments récurrents ------------------------------------------------------ */
.j-kicker { font: 600 0.7rem/1.3 var(--font-caps); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.j-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font: 600 0.7rem/1.4 var(--font-caps); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.j-meta > * + *::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 18px; background: var(--accent); transform: translateY(-1px) rotate(45deg); }

/* ---------- 1. FRONTISPICE ---------- */
.j-masthead { padding-bottom: 0; overflow: clip; --section-y: 0px; padding-top: clamp(28px, 4vw, 56px); }
.j-masthead__inner { position: relative; z-index: 2; }
.j-masthead__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 24px);
  padding-block: clamp(24px, 3.5vw, 48px) clamp(36px, 4.5vw, 64px);
}
/* Titre : voix brute (.display-1) ; la taille vient de h1.page-title--showcase (0,1,1), échelle vitrine commune (Maison, Collections, Journal).
   Interligne ≥ 0,92 : titre découpé (data-split), accents intacts. */
.j-masthead__title { line-height: 0.96; letter-spacing: var(--brut-track-xl); text-transform: uppercase; margin-left: -0.04em; overflow-wrap: normal; }
.j-masthead__title em { font-style: normal; color: var(--accent); }
.j-masthead__line { max-width: 28rem; color: var(--fg); font: 600 clamp(1.0625rem, 0.86rem + 0.7vw, 1.5rem)/1.3 var(--font-sans); }
.j-masthead__column {
  position: absolute; z-index: 1; pointer-events: none; --decor: var(--decor-soft);
  right: clamp(8px, 7vw, 130px); top: 6%; height: 130%; width: auto; aspect-ratio: 195 / 982.7;
}
.j-masthead__column--2 { right: calc(clamp(8px, 7vw, 130px) + clamp(90px, 11vw, 190px)); top: 20%; height: 120%; }
.j-masthead__column svg { width: 100%; height: 100%; }
.j-masthead__meander { position: relative; z-index: 2; }
@media (max-width: 760px) { .j-masthead__column { right: -18px; height: 92%; top: 4%; } .j-masthead__column--2 { display: none; } }

/* ---------- 2. À LA UNE ---------- */
.j-feature { overflow: clip; padding-block: clamp(48px, 6vw, 96px); }
.j-feature__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 112px); align-items: center; }
.j-feature__text { display: grid; gap: clamp(16px, 2vw, 28px); justify-items: start; align-content: center; }
.j-feature__title {
  font: 900 clamp(2.25rem, 4.46vw, 4.75rem)/0.96 var(--font-sans); letter-spacing: var(--brut-track-xl); text-transform: uppercase; text-wrap: balance; margin-block: 4px;   /* min 2,25rem : un cran sous le h1 du Journal (2,5rem) sur mobile */
  max-width: 6.5em;   /* trois lignes nettes, comme la mesure de l'ancienne colonne (aucun article seul en fin de ligne) */
}
.j-feature__title a {
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 0% 1px no-repeat; padding-bottom: 0.06em;
  transition: background-size var(--dur-3) var(--ease), color var(--dur-2);
}
.j-feature__title a:hover, .j-feature__title a:focus-visible, .j-feature:has(.j-feature__art:hover) .j-feature__title a { background-size: 100% 1px; }
.j-feature__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
.j-feature__art { display: block; justify-self: center; width: min(100%, 640px); }
@media (min-width: 960px) {
  .j-feature__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  .j-feature__art { justify-self: end; }
}

/* ---------- 3. PLAQUE DE COUVERTURE ---------- */
.j-plate {
  position: relative; width: 100%; aspect-ratio: var(--plate-ratio, 4 / 5); padding: 9%;
  display: grid; place-items: stretch; overflow: clip; isolation: isolate;
  box-shadow: 0 0 0 clamp(6px, 0.9vw, 12px) var(--decor-soft);   /* socle plein (aplat) à la place du filet doré */
}
.j-plate--dark { background: var(--basalt-2) url(/assets/textures/marble-dark.webp) center / cover no-repeat; --decor: var(--marble); }
.j-plate--marble { background: linear-gradient(rgba(243, 239, 231, 0.62), rgba(243, 239, 231, 0.62)), var(--marble) url(/assets/textures/marble-light.webp) center / cover no-repeat; --decor: var(--ink); }
.j-plate:has([data-viewbox]) { padding: 6%; }
.j-plate__art { width: 100%; height: 100%; min-height: 0; display: grid; transition: transform 1.2s var(--ease-out); }
.j-plate__art svg { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .j-feature__art:hover .j-plate__art { transform: scale(1.035); } }
/* Rideau de la dalle : il s'abaisse (la pierre se découvre de haut en bas), puis le décor s'élève de bas en haut */
html.js .j-plate[data-reveal='mask']::after { transition-duration: 900ms; transition-timing-function: var(--ease-out); }
/* La dalle se resserre autour du décor à mesure qu'elle monte dans l'écran (propriété « scale » : se compose avec le survol) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes j-settle { from { scale: 1.08; } to { scale: 1; } }
    .j-plate { view-timeline: --j-plate block; }
    .j-plate__art { animation: j-settle linear both; animation-timeline: --j-plate; animation-range: cover 0% cover 65%; }
  }
}

/* ---------- 4. EN-TÊTE DES CHRONIQUES ---------- */
.j-archive { background: var(--marble); }
.j-archive { padding-block: clamp(48px, 6vw, 96px); }
.j-archive__head { margin: 0; padding-bottom: var(--space-5); }
.j-archive__rule { height: 1px; margin: 0 0 clamp(28px, 3.5vw, 48px); border: 0; background: var(--rule); }
.j-archive__title { font-size: clamp(1.625rem, 0.75rem + 2.23vw, 2.75rem); letter-spacing: var(--brut-track-l); line-height: 1; }   /* titre de section en voix brute (.title-serif), sous le h1 */
.j-archive__title em { color: var(--accent); }

/* ---------- 5. GRILLE DE CHRONIQUES ---------- */
.j-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4.5vw, 64px) clamp(24px, 3vw, 48px); align-items: start; }
@media (min-width: 700px) { .j-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .j-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j-card:nth-child(3n + 2) { margin-top: clamp(40px, 6vw, 96px); }
}

.j-card { position: relative; display: grid; gap: clamp(18px, 2vw, 28px); align-content: start; min-width: 0; }
.j-card__cover { position: relative; aspect-ratio: 4 / 5; overflow: clip; isolation: isolate; }
.j-card__cover--dark { background: var(--basalt) url(/assets/textures/marble-dark.webp) center / cover no-repeat; --decor: var(--marble); }
.j-card__cover--marble { background: linear-gradient(rgba(243, 239, 231, 0.6), rgba(243, 239, 231, 0.6)), var(--marble-2) url(/assets/textures/marble-light.webp) center / cover no-repeat; --decor: var(--ink); }
.j-card__art { position: absolute; inset: 11%; transition: transform 1.1s var(--ease-out); }
.j-card__art svg { display: block; width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .j-card:hover .j-card__art { transform: scale(1.045); } }
.j-card:focus-within .j-card__art { transform: scale(1.03); }
/* Cadrages propres à chaque décor (les décors pleins remplissent leur boîte : on laisse une marge) */
.j-card__cover[data-art='column-corinthian'] .j-card__art { inset: 5% 8%; }
.j-card__cover[data-art='temple-facade'] { aspect-ratio: 27 / 20; }
.j-card__cover[data-art='temple-facade'] .j-card__art { inset: 8% 7%; }
.j-card__cover[data-art='coin-disciplina'] .j-card__art, .j-card__cover[data-art='laurel-wreath'] .j-card__art { inset: 14% 10%; }
.j-card__cover[data-art='arch'] .j-card__art { inset: 8% 12%; }
.j-card__cover[data-art='capital-corinthian'] .j-card__art { inset: 12% 8%; }
.j-card__body .j-kicker::before { content: attr(data-num) ' \2014  '; font-family: var(--font-engraved); letter-spacing: 0.1em; color: var(--gold-ink); }
.j-card__body { display: grid; gap: 12px; align-content: start; }
.j-card__title { font: 900 clamp(1.25rem, 0.92rem + 0.75vw, 1.625rem)/1.06 var(--font-sans); letter-spacing: var(--brut-track-m); text-transform: uppercase; text-wrap: balance; }
.j-card__title a { background: linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 0% 1px no-repeat; padding-bottom: 0.06em; transition: background-size var(--dur-3) var(--ease); }
.j-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 4; }
.j-card:hover .j-card__title a, .j-card:focus-within .j-card__title a { background-size: 100% 1px; }
.j-card__title a:focus-visible { outline: none; }
.j-card:has(.j-card__title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 8px; }
.j-card .j-meta { margin-top: 4px; }

/* ---------- 6. MOUVEMENT RÉDUIT ---------- */
@media (prefers-reduced-motion: reduce) {
  .j-plate__art, .j-card__art { transition: none; transform: none !important; }
}

@media (max-width: 699px) {
  .j-card__cover { aspect-ratio: 1 / 1; }
}

/* ---------- 7. CIBLES TACTILES ---------- */
.j-feature .btn { min-height: 44px; }
