/* ===========================================================================
   PhilAyiti — feuille de style des pages d'article
   ---------------------------------------------------------------------------
   Reprend à l'identique la charte de la page d'accueil (index.html) :
   mêmes variables de couleur, mêmes polices, même en-tête, même pied de page.
   Les styles propres à l'article (colonne éditoriale, photo, partage) sont
   regroupés dans la section « ARTICLE » plus bas.

   Ne pas modifier pour publier un nouvel article : il suffit de copier
   articles/_TEMPLATE-article.html. Voir README.md.
   =========================================================================== */

:root {
  --ink:       #16181d;
  --ink-soft:  #2b2e36;
  --paper:     #f5f1e8;
  --white:     #ffffff;
  --blue:      #15396c;
  --blue-deep: #0e2547;
  --red:       #be1f2b;
  --red-deep:  #8f1219;
  --muted:     #6c7077;
  --muted-2:   #8c8f95;
  --line:      #e3ddcf;
  --line-2:    #ece7da;
  --gold:      #b8893a;
  --display: 'Libre Franklin', system-ui, sans-serif;
  --serif:   'Spectral', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  font-size: 17px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.icon { width: 18px; height: 18px; fill: currentColor; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* ---------- TOP UTILITY BAR ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 38px;
}
.topbar-date { text-transform: capitalize; color: rgba(255,255,255,0.55); }
.langs { display: flex; gap: 14px; }
.langs a { transition: color .18s; text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; }
.langs a.active { color: #fff; }
.langs a:hover { color: var(--gold); }
.langs.translating { opacity: 0.6; pointer-events: none; }
.topbar-social { display: flex; gap: 12px; align-items: center; }
.topbar-social a { color: rgba(255,255,255,0.6); display: inline-flex; transition: color .18s, transform .18s; }
.topbar-social a:hover { color: #fff; transform: translateY(-1px); }
.topbar-social .icon { width: 15px; height: 15px; }

/* ---------- MASTHEAD ---------- */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.masthead::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-top: 26px; padding-bottom: 24px;
}
.brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--blue);
}
.logo b { color: var(--red); font-weight: 900; }
.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.masthead-right { display: flex; align-items: center; gap: 18px; }
.search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 8px 12px; color: var(--muted);
  background: var(--paper);
}
.search input {
  border: none; background: transparent; outline: none;
  font-family: var(--display); font-size: 0.82rem; width: 130px; color: var(--ink);
}
.on-air {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 2px;
  transition: background .18s;
}
.on-air:hover { background: var(--red-deep); }
.on-air .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---------- NAV ---------- */
nav.mainnav {
  background: var(--blue-deep);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.18);
}
nav.mainnav .wrap {
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
nav.mainnav .wrap::-webkit-scrollbar { display: none; }
nav.mainnav a {
  font-family: var(--display);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 15px 18px; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background .16s, color .16s, border-color .16s;
}
nav.mainnav a:first-child { padding-left: 0; }
nav.mainnav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
nav.mainnav a.active { color: #fff; border-bottom-color: var(--red); }

/* ---------- LAYOUT ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 46px;
  padding: 40px 0 64px;
}

.kicker {
  font-family: var(--display);
  font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
}
.kicker::after { content:''; flex:1; height:1px; background: var(--line); }
.kicker.red { color: var(--red); }

/* category tag */
.tag {
  font-family: var(--display);
  font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red);
}
.tag.blue { color: var(--blue); }
.tag.green { color: #3f7d4a; }
.tag.purple { color: #8a3560; }
.tag.teal { color: #2f6f8f; }
.tag.orange { color: #b45a23; }
.meta {
  font-family: var(--display);
  font-size: 0.74rem; color: var(--muted-2);
  letter-spacing: 0.02em;
}
.byline { font-style: italic; color: var(--muted); }

/* ---------- ARTICLE ---------- */
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
  transition: color .18s;
}
.backlink:hover { color: var(--red); }

.article-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.article-head .tag { display: block; margin-bottom: 12px; }
.article-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.06; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 16px;
}
.standfirst {
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.5;
  color: var(--ink-soft); max-width: 62ch; margin-bottom: 20px;
}
.bylines {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-size: 0.8rem; color: var(--muted-2);
  letter-spacing: 0.02em;
}
.bylines .author { font-weight: 700; color: var(--ink); }
.bylines .sep { color: var(--line); }
.bylines .original {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--red);
  padding: 4px 9px; border-radius: 2px;
}

figure.article-photo { margin-bottom: 30px; }
figure.article-photo img {
  width: 100%; height: auto; border-radius: 3px; background: var(--line-2);
}
figure.article-photo figcaption {
  font-family: var(--display); font-size: 0.76rem; line-height: 1.5;
  color: var(--muted); margin-top: 10px;
  padding-left: 12px; border-left: 3px solid var(--red);
}

.article-body { max-width: 68ch; }
.article-body p {
  font-size: 1.09rem; line-height: 1.72; color: var(--ink-soft);
  margin-bottom: 20px;
}
.article-body p.dateline::first-letter { }
.article-body p .dateline-loc {
  font-family: var(--display); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink);
}
.article-body h2 {
  font-family: var(--display); font-weight: 800;
  font-size: 1.34rem; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); margin: 34px 0 14px;
}
.article-body h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.1rem; line-height: 1.25; color: var(--blue);
  margin: 28px 0 12px;
}
.article-body blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  line-height: 1.5; color: var(--ink);
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 20px; margin: 26px 0 26px;
}
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; color: var(--ink-soft); }
.article-body a[href]:not(.source) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body a[href]:not(.source):hover { color: var(--red); }
.article-body .endmark {
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.06em; color: var(--muted-2);
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 30px;
}

.share {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
}
.share .share-label {
  font-family: var(--display); font-weight: 800; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.share a, .share button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all .18s;
}
.share a:hover, .share button:hover {
  background: var(--blue-deep); color: #fff; border-color: var(--blue-deep);
  transform: translateY(-2px);
}
.share .copied {
  font-family: var(--display); font-size: 0.76rem; color: var(--muted);
}

.article-foot-nav { margin-top: 34px; }

/* ---------- SIDEBAR ---------- */
aside { display: flex; flex-direction: column; gap: 40px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 3px; }

.radio-panel { overflow: hidden; }
.radio-head {
  background: var(--ink); color: #fff; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.radio-head .t {
  font-family: var(--display); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.radio-head .live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 700; font-size: 0.64rem;
  letter-spacing: 0.14em; color: #fff; text-transform: uppercase;
}
.radio-head .live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse 1.8s infinite;
}
.radio-body { padding: 16px; }
.radio-body .blurb {
  font-size: 0.9rem; color: var(--muted); margin: 12px 4px 2px; line-height: 1.45;
}
.zeno-frame { border:0; border-radius: 3px; width:100%; display:block; }

.panel-pad { padding: 22px 20px; }
.panel-title {
  font-family: var(--display); font-weight: 800;
  font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--red);
  display: inline-block;
}
.ranklist { list-style: none; counter-reset: r; }
.ranklist li {
  counter-increment: r;
  display: grid; grid-template-columns: 34px 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line-2);
}
.ranklist li:last-child { border-bottom: none; padding-bottom: 0; }
.ranklist li::before {
  content: counter(r);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: var(--line); line-height: 1;
}
.ranklist a {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  line-height: 1.25; transition: color .18s;
}
.ranklist li:hover a { color: var(--red); }
.ranklist .rk-tag { display:block; margin-bottom: 3px; }

/* newsletter */
.nl { background: var(--blue-deep); color: #fff; border:none; padding: 24px 20px; position: relative; }
.nl h4 {
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.nl p { font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-bottom: 16px; line-height: 1.5; }
.nl form { display: flex; flex-direction: column; gap: 10px; }
.nl input[type=email] {
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06);
  color: #fff; padding: 12px 14px; border-radius: 2px;
  font-family: var(--display); font-size: 0.9rem; outline: none;
}
.nl input[type=email]::placeholder { color: rgba(255,255,255,0.5); }
.nl input[type=email]:focus { border-color: var(--gold); }
.nl button {
  background: var(--red); color: #fff; border: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px; border-radius: 2px; transition: background .18s;
}
.nl button:hover { background: var(--red-deep); }
.nl .hp { position: absolute; left: -9999px; }
.nl .note { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 4px; }
.nl-ok { display: none; font-family: var(--display); font-size: 0.92rem; color: #d7e6c9; line-height: 1.5; }
.nl.done form { display: none; }
.nl.done .nl-ok { display: block; }

.about-panel p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.about-panel .ap-lead { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink); margin-bottom: 12px; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink); color: rgba(255,255,255,0.66);
  padding: 56px 0 28px; margin-top: 20px;
  position: relative;
}
footer::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-brand .logo { font-size: 2rem; margin-bottom: 14px; color: #fff; }
.foot-brand .logo b { color: var(--red); }
.foot-brand p { font-size: 0.9rem; line-height: 1.65; max-width: 340px; margin-bottom: 18px; }
.foot-social { display: flex; gap: 12px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all .18s;
}
.foot-social a:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.foot-col h5 {
  font-family: var(--display); font-weight: 800; font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-family: var(--display); font-size: 0.88rem; color: rgba(255,255,255,0.66); transition: color .18s; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 24px;
  font-family: var(--display); font-size: 0.78rem; color: rgba(255,255,255,0.45);
}
.foot-flag { display: inline-flex; width: 26px; height: 16px; border-radius: 2px; overflow: hidden; }
.foot-flag i { flex: 1; }
.foot-flag i:first-child { background: var(--blue); }
.foot-flag i:last-child { background: var(--red); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 50px; }
  aside { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .radio-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .masthead .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .masthead-right { width: 100%; justify-content: space-between; }
  .search { display: none; }
  aside { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .topbar-date { display: none; }
  .article-body p { font-size: 1.04rem; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
  .bylines { font-size: 0.74rem; }
}
