/* =====================================================================
   PAGE ARTICLE + PAGE 404 — styles dédiés
   ===================================================================== */

/* ----------------------------- ARTICLE ----------------------------- */
.art-hero {
  position: relative;
  min-height: 64vh;
  display: flex; align-items: flex-end;
  padding: calc(var(--reserve-h) + 40px) var(--pad-x) clamp(46px, 6vw, 80px);
  overflow: hidden;
  background: var(--cedre);
}
.art-hero image-slot { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.art-hero .veil { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(20,14,6,.86) 0%, rgba(20,14,6,.2) 60%, rgba(20,14,6,.4) 100%); }
.art-hero .wrap { position: relative; z-index: 3; max-width: 900px; color: #fff; }
.art-hero .a-tag { display: inline-block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cedre); background: var(--or); padding: .5em 1.1em; border-radius: 999px; margin-bottom: 22px; }
.art-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 22px; max-width: 20ch; }
.art-hero .a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.art-hero .a-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--or); }
.art-hero .a-meta .author { display: inline-flex; align-items: center; gap: 10px; }
.art-hero .a-meta .author .av { width: 30px; height: 30px; border-radius: 50%; background: var(--or); color: var(--cedre); display: grid; place-items: center; font-family: var(--font-display); font-size: .95rem; }

.art-body { background: var(--blanc); }
.art-body .wrap { max-width: 760px; }
.art-lead { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.4; color: var(--cedre); margin-bottom: 38px; font-weight: 500; }
.art-body p { font-size: 1.08rem; line-height: 1.85; color: var(--cedre-2); margin-bottom: 24px; }
.art-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--emeraude); margin: 48px 0 18px; }
.art-body h3 { font-size: 1.4rem; color: var(--cedre); margin: 34px 0 14px; }
.art-body ul { margin: 0 0 24px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.art-body ul li { position: relative; padding-left: 28px; font-size: 1.05rem; line-height: 1.7; color: var(--cedre-2); }
.art-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.art-body figure { margin: 40px 0; }
.art-body figure image-slot { width: 100% !important; height: clamp(260px, 36vw, 440px); border-radius: 3px; }
.art-body figure figcaption { font-size: .85rem; color: var(--cedre-2); text-align: center; margin-top: 12px; font-style: italic; }
.art-body blockquote { margin: 40px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--or); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--cedre); font-style: italic; }
.art-share { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.art-share .lbl { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cedre-2); }
.art-share .ss { display: flex; gap: 10px; }
.art-share .ss a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, border-color .25s, transform .25s; }
.art-share .ss a svg { width: 17px; height: 17px; fill: currentColor; }
.art-back { display: inline-flex; align-items: center; gap: .6em; margin-top: 8px; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* Articles liés */
.art-related { background: var(--cream); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.related-card { cursor: pointer; background: var(--blanc); border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; transition: transform .4s, box-shadow .4s; }
.related-card:hover { transform: translateY(-6px); box-shadow: 0 28px 54px -32px rgba(44,31,14,.5); }
.related-card .ph { height: 180px; overflow: hidden; }
.related-card .ph image-slot { width: 100% !important; height: 100% !important; }
.related-card .rc-body { padding: 20px 22px 24px; }
.related-card .cat { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.related-card h3 { font-size: 1.25rem; line-height: 1.15; margin-top: 8px; color: var(--cedre); }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ----------------------------- 404 ----------------------------- */
.nf {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--pad-x) 80px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(0,140,110,.10), transparent 60%),
    var(--cedre);
  color: #fff;
}
.nf .lantern { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.nf .lantern span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--or); box-shadow: 0 0 8px 2px rgba(181,146,76,.6); animation: nf-twinkle 4s ease-in-out infinite; }
@keyframes nf-twinkle { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.nf .wrap { position: relative; z-index: 2; max-width: 660px; }
.nf .arch {
  width: clamp(150px, 22vw, 220px); margin: 0 auto 36px;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--or);
  border-radius: 50% 50% 6px 6px / 60% 60% 6px 6px;
  display: grid; place-items: center;
  position: relative;
  background: rgba(181,146,76,.06);
}
.nf .arch .code { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 5.6rem); color: var(--or); letter-spacing: .04em; }
.nf .arch::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(181,146,76,.4); border-radius: 50% 50% 4px 4px / 60% 60% 4px 4px; }
.nf .eyebrow { justify-content: center; color: var(--or); margin-bottom: 22px; }
.nf .eyebrow::before { display: none; }
.nf h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #fff; margin-bottom: 20px; line-height: 1.1; }
.nf h1 em { font-style: italic; color: var(--or); }
.nf p { color: rgba(255,255,255,.78); font-size: 1.08rem; line-height: 1.7; margin-bottom: 36px; max-width: 48ch; margin-inline: auto; }
.nf .nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.nf .nf-links { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; }
.nf .nf-links a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); transition: color .25s; }
.nf .nf-links a:hover { color: var(--or); }
.nf .btn.solid { background: var(--or); border-color: var(--or); color: var(--cedre); }
.nf .btn.solid:hover { background: #fff; border-color: #fff; }
