/* ============================================================
   Feuille de style partagée pour les pages d'axes.
   Reprend les tokens de l'index. Toute évolution typographique
   ou colorimétrique se fait ici une seule fois.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f5f3;
  --bg-dark:   #0e0e0e;
  --text:      #111111;
  --text-soft: #5a5a5a;
  --text-mute: #909090;
  --line:      rgba(0, 0, 0, 0.10);
  --accent:    #b91d1d;

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --maxw: 1240px;
  --maxw-text: 720px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   NAV (variante des pages internes)
   ============================================================ */
.nav {
  position: fixed; top: 1.2rem;
  left: 0; right: 0;
  margin-inline: auto;
  width: fit-content;
  z-index: 100;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.55rem 0.45rem 1.4rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.nav-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-back:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.nav-back::before {
  content: "";
  width: 6px; height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.nav-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  padding: 0 0.5rem;
  border-left: 1px solid var(--line);
  margin-left: 0.3rem;
}
.nav-title em { color: var(--accent); }

.nav-cta {
  margin-left: 0.4rem;
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent); }

@media (max-width: 720px) {
  .nav-title { display: none; }
}

/* ============================================================
   HERO de page d'axe
   ============================================================ */
.axis-hero {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  padding: 9rem 0 4rem;
}
.axis-hero-media {
  position: absolute; inset: 0;
  z-index: 1;
}
.axis-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.axis-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.45) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.axis-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.axis-crumb {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.2rem;
}
.axis-crumb a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.axis-crumb a:hover { color: #fff; border-bottom-color: currentColor; }
.axis-crumb-sep { margin: 0 0.6rem; opacity: 0.4; }

.axis-num-label {
  display: inline-flex; align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.2rem;
}
.axis-num-label::before {
  content: "";
  width: 36px; height: 1px;
  background: rgba(255, 255, 255, 0.5);
}
.axis-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.axis-hero p.lede {
  margin: 1.5rem 0 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

/* ============================================================
   SECTIONS DE CONTENU
   ============================================================ */
.axis-body {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.axis-intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.axis-intro-grid .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}
.axis-intro-grid .lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 38ch;
}
.axis-intro-grid .lead em { color: var(--accent); font-style: italic; }
@media (max-width: 820px) {
  .axis-intro-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Colonne de prose centrée, façon longue lecture */
.prose {
  max-width: var(--maxw-text);
  margin: 0 auto;
}
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 2rem 0 0.6rem;
}
.prose p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.prose p.intro {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
}
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.prose a:hover { opacity: 0.7; }

.prose blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
}
.prose blockquote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-mute);
}
.prose blockquote cite::before { content: "— "; }

.prose ul {
  margin: 1.2rem 0;
  padding-left: 1.3rem;
}
.prose ul li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

/* Bloc "fiche" en aparté (encadré gris) */
.factbox {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0;
}
.factbox h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
}
.factbox dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.3rem;
  font-size: 0.95rem;
}
.factbox dt {
  font-weight: 600;
  color: var(--text-soft);
}
.factbox dd { margin: 0; color: var(--text); }
@media (max-width: 560px) {
  .factbox dl { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .factbox dd { margin-bottom: 0.6rem; }
}

/* Image pleine largeur dans un article */
.figure-wide {
  margin: 2.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
}
.figure-wide img {
  width: 100%;
  display: block;
}
.figure-wide figcaption {
  padding: 0.85rem 1.1rem;
  background: var(--bg-alt);
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

/* Bloc "équipe associée" */
.contributors {
  margin: 3rem 0;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contributors h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 1.2rem;
  font-weight: 600;
}
.contributors ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contributors ul li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============================================================
   STATUS BADGE
   ============================================================ */
.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
.status.in-progress { color: #f5d97a; }
.status.exploratory { color: #ffb37a; }
.status.upcoming    { color: #c8d8ff; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ============================================================
   AUTRES AXES (navigation entre pages)
   ============================================================ */
.other-axes {
  background: var(--bg-alt);
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.other-axes-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.other-axes-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}
.other-axes-head a {
  font-size: 0.85rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.other-axes-head a:hover { color: var(--text); border-color: var(--text); }

.other-axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.other-axis {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.other-axis:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}
.other-axis .img {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}
.other-axis .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.other-axis:hover .img img { transform: scale(1.04); }
.other-axis .body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
}
.other-axis h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.other-axis p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}
@media (max-width: 820px) { .other-axes-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--bg);
  padding: clamp(3rem, 5vw, 5rem) 0 2rem;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.foot-logo-mark {
  display: inline-block;
  margin-bottom: 1.2rem;
  transition: opacity 0.2s ease;
}
.foot-logo-mark img {
  display: block;
  height: 56px;
  width: auto;
}
.foot-logo-mark:hover { opacity: 0.75; }
.foot-logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: -0.015em;
}
.foot-logo em {
  font-style: italic;
  color: var(--accent);
}
.foot-tag {
  margin-top: 0.8rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 32ch;
}
.foot h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1rem;
  font-weight: 600;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.foot ul a {
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.foot ul a:hover { color: var(--text); }
.foot-mail {
  font-size: 0.95rem !important;
  color: var(--accent) !important;
  border-bottom: 1px solid currentColor;
  display: inline-block;
  padding-bottom: 1px;
}
.foot-bottom {
  display: flex; justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: var(--text-mute);
}
.foot-bottom-links { display: flex; gap: 1.5rem; }
.foot-bottom a { transition: color 0.2s ease; }
.foot-bottom a:hover { color: var(--text); }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand-block { grid-column: 1 / -1; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
