/* Feuille de style commune des publications — stephane-dubart.com */

:root {
  --bg: #050b13;
  --bg-soft: #0a1420;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(148, 226, 213, 0.12);
  --text: #e8f1f2;
  --text-muted: #93a6b0;
  --lagoon: #2dd4bf;
  --lagoon-deep: #0ea5e9;
  --gradient: linear-gradient(120deg, #2dd4bf, #38bdf8 55%, #818cf8);
  --radius: 20px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(45, 212, 191, .3); }

/* ---------- Fond aurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .13;
}
.aurora::before { background: #0ea5e9; top: -25vmax; right: -15vmax; }
.aurora::after { background: #14b8a6; bottom: -30vmax; left: -15vmax; }

/* ---------- Navigation ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 11, 19, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
nav.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: .02em;
}
.brand span { color: var(--lagoon); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover { color: var(--lagoon); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Article ---------- */
main.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 60px;
}

.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--lagoon); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

.kicker {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 34px;
}
.article-meta img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(45, 212, 191, .4);
}
.article-meta b { color: var(--text); font-weight: 600; }
.article-meta .dot { opacity: .4; }

.chapo {
  font-size: 1.15rem;
  color: var(--text-muted);
  border-left: 3px solid var(--lagoon);
  padding-left: 20px;
  margin-bottom: 38px;
}
.chapo strong { color: var(--text); }

/* Illustration / placeholder photo */
.article-visual {
  margin: 0 0 42px;
}
.article-visual img, .article-visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .1);
  display: block;
}
.article-visual.portrait img {
  max-width: 430px;
  margin: 0 auto;
}
.article-visual figcaption {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* Sommaire */
.toc {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 48px;
}
.toc b {
  font-family: var(--font-head);
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 8px;
}
.toc li { counter-increment: toc; }
.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .93rem;
  transition: color .2s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--lagoon);
  font-family: var(--font-head);
  font-weight: 600;
  margin-right: 10px;
  font-size: .8rem;
}
.toc a:hover { color: var(--lagoon); }

/* Corps */
.article h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 54px 0 6px;
  scroll-margin-top: 110px;
}
.article h2 .q {
  color: var(--lagoon);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* Question de l'interviewer : bulle façon presse */
.article h2.question {
  background: rgba(56, 189, 248, .07);
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 20px 20px 20px 4px;
  padding: 20px 26px;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 600;
  margin: 60px 0 24px;
}
.article h2.question .q {
  color: #38bdf8;
  margin-bottom: 10px;
}

/* Prise de parole de l'interviewé */
.speaker-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 -4px !important;
}
.speaker-line img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(45, 212, 191, .5);
}
.speaker-line b {
  font-family: var(--font-head);
  color: var(--lagoon);
  font-size: .95rem;
  font-weight: 600;
}

.propos {
  font-style: italic;
  font-size: .9rem !important;
  color: var(--text-muted) !important;
  text-align: center;
  margin-top: 44px !important;
}
.article h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 34px 0 6px;
  scroll-margin-top: 110px;
}
.article p { margin: 16px 0; color: #c5d2d8; }
.article p strong { color: var(--text); }
.article ul, .article ol { margin: 16px 0 16px 24px; color: #c5d2d8; }
.article li { margin: 8px 0; }
.article li strong { color: var(--text); }
.article a { color: var(--lagoon); text-decoration: none; border-bottom: 1px solid rgba(45, 212, 191, .4); }
.article a:hover { border-bottom-color: var(--lagoon); }

blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  background: linear-gradient(140deg, rgba(45, 212, 191, .08), rgba(56, 189, 248, .05));
  border: 1px solid rgba(45, 212, 191, .22);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}
blockquote footer {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Chiffres clés */
.key-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0;
}
.key-figures .kf {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.key-figures b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.key-figures small { color: var(--text-muted); font-size: .82rem; line-height: 1.4; display: block; margin-top: 4px; }
@media (max-width: 640px) { .key-figures { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin: 20px 0; }
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.faq details p { margin-top: 12px; }

/* Bio auteur */
.author-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 56px 0 0;
}
.author-box img {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(45, 212, 191, .4);
  flex-shrink: 0;
}
.author-box b { font-family: var(--font-head); font-size: 1.05rem; display: block; margin-bottom: 6px; }
.author-box p { font-size: .92rem; color: var(--text-muted); margin: 0 0 10px; }
.author-box .links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* À lire aussi */
.related {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 20px;
}
.related > b {
  font-family: var(--font-head);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 22px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-grid a {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform .3s, border-color .3s;
  display: block;
}
.related-grid a:hover { transform: translateY(-5px); border-color: rgba(45, 212, 191, .4); }
.related-grid .tag {
  font-size: .75rem;
  font-weight: 600;
  color: var(--lagoon);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.related-grid b { font-family: var(--font-head); font-size: 1.02rem; line-height: 1.35; }
.related-grid p { font-size: .86rem; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta-box {
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 0 24px 40px;
}
.cta-box .inner {
  background: linear-gradient(140deg, rgba(45, 212, 191, .1), rgba(56, 189, 248, .06) 55%, rgba(129, 140, 248, .08));
  border: 1px solid rgba(45, 212, 191, .22);
  border-radius: 28px;
  padding: 46px 34px;
  text-align: center;
}
.cta-box h2 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 10px; }
.cta-box p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.btn-primary {
  background: var(--gradient);
  color: #04131a;
  box-shadow: 0 8px 30px rgba(45, 212, 191, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(45, 212, 191, .38); }

/* Footer */
footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: 40px;
  padding: 34px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
footer.site-footer a { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
