/* =========================================================
   HOMO ARTIFEX — Feuille de style principale
   ========================================================= */
:root {
  --bg: #e3e2dd;
  --bg-2: #d7d6d1;
  --bg-3: #cecdc8;
  --ink: #141413;
  --muted: #6b6a65;
  --accent: #c4362a;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 80px);
  --header: 80px;
  --line: rgba(20, 20, 19, 0.15);
  --line-dark: rgba(20, 20, 19, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background-color: var(--accent); color: #fff; }

/* ===== SKIP LINK (accessibilité) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10000;
  text-decoration: none;
  border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 8px;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.display { font-family: var(--serif); font-weight: 400; line-height: 0.92; letter-spacing: -0.02em; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.idx { color: var(--accent); font-weight: 500; }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad); background: rgba(227, 226, 221, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.brand { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; }
.brand img:first-child, .brand .logo-dp { height: 48px !important; width: auto !important; max-height: 48px !important; }
.brand img:last-child, .brand .logo-assoc { height: 24px !important; width: auto !important; max-height: 24px !important; opacity: 0.85; margin-top: 4px; }

.nav { display: flex; gap: 32px; }
.nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); position: relative; padding: 4px 0; transition: color 0.3s; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background-color: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 20px; }

/* Sélecteur de langue (FR · ES · EN) */
.lang-switcher { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.lang-switcher a { color: var(--muted); transition: color 0.3s; }
.lang-switcher a:hover { color: var(--accent); }
.lang-switcher a.active { color: var(--accent); font-weight: 600; }
.lang-switcher span { color: var(--line-dark); }

.header-right .ext { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; color: var(--muted); transition: 0.3s; }
.header-right .ext:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 24px; border: 1px solid var(--line-dark); border-radius: 0; color: var(--ink); transition: 0.3s; white-space: nowrap; background: transparent; cursor: pointer; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--solid { background-color: var(--accent); color: #fff; border-color: var(--accent); }
.btn--solid:hover { background-color: transparent; color: var(--accent); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-dark); background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 16px; height: 1.5px; background-color: var(--ink); transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ===== SOUS-MENU ===== */
.sub-nav {
  position: sticky; top: var(--header); z-index: 90;
  background: rgba(227, 226, 221, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--pad);
}
.sub-nav-inner { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 14px 0; }
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.sub-nav a:hover { color: var(--accent); }
section[id] { scroll-margin-top: calc(var(--header) + 60px); }

/* ===== HERO ===== */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header) + 40px) var(--pad) 40px; border-bottom: 1px solid var(--line); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-top .label { max-width: 30ch; line-height: 1.5; }
.hero-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; margin: auto 0; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(4rem, 10vw, 9rem); line-height: 0.85; letter-spacing: -0.03em; margin: 0; }
.hero-title .line { display: block; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-left: 0.3em; font-style: italic; }
.hero-image-wrapper { position: relative; width: 100%; border: 1px solid var(--line-dark); padding: 16px; background-color: var(--bg); display: flex; justify-content: center; align-items: center; }
.hero-image-wrapper img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; filter: grayscale(1) contrast(1.1); }
.hero-image-wrapper .cap { position: absolute; bottom: -24px; left: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hero-sub { max-width: 48ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; margin: 0; color: var(--muted); }
.hero-sub strong { color: var(--ink); font-weight: 500; }

/* ===== SECTIONS ===== */
.section { padding: clamp(64px, 10vw, 140px) var(--pad); }
.section + .section { padding-top: 0; }
.sec-head { margin-bottom: clamp(36px, 6vw, 72px); display: flex; align-items: flex-start; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.sec-label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 4rem); line-height: 0.95; letter-spacing: -0.02em; margin: 0; }
.sec-title em { font-style: italic; color: var(--accent); }
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0; max-width: 20ch; }
.statement em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; max-width: 62ch; }

/* ===== PILLARS ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background-color: var(--line-dark); border: 1px solid var(--line-dark); }
.pillar { background-color: var(--bg); display: flex; flex-direction: column; position: relative; transition: background 0.4s; color: var(--ink); }
.pillar:hover { background-color: var(--bg-2); }
.pillar-media { aspect-ratio: 4/3; overflow: hidden; background-color: var(--bg-3); }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 0.9s ease, filter 0.7s; }
.pillar:hover .pillar-media img { transform: scale(1.05); filter: grayscale(1) contrast(1.15); }
.pillar-body { padding: 32px 26px 40px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; padding: 26px 26px 0; }
.pillar-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.pillar-arrow { font-size: 18px; color: var(--muted); transition: 0.3s; }
.pillar:hover .pillar-arrow { color: var(--accent); transform: translate(3px, -3px); }
.pillar-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 0; letter-spacing: -0.01em; }
.pillar-q { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pillar-desc { font-size: 15px; line-height: 1.6; margin: 0; max-width: 32ch; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background-color: var(--bg-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat { padding: clamp(28px, 4vw, 52px) var(--pad); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.9; color: var(--accent); }

/* ===== SPLIT ===== */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.split.rev { grid-template-columns: 0.9fr 1.1fr; }
.split-media { position: relative; }
.split-media img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); border: 1px solid var(--line-dark); padding: 8px; }
.split-media .cap { margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.prose p { margin: 0 0 1.2em; max-width: 60ch; font-size: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose .em { font-family: var(--serif); font-style: italic; font-size: 1.4em; color: var(--ink); }

/* ===== PAGE HERO ===== */
.page-hero { padding: calc(var(--header) + clamp(50px, 9vw, 100px)) var(--pad) clamp(40px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 0.9; letter-spacing: -0.02em; margin: 0; }
.page-hero h1 em { font-style: italic; color: var(--accent); -webkit-text-stroke: 0; }
.page-hero .kicker { margin-top: 32px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 55ch; color: var(--muted); }

/* ===== LISTES ===== */
.meta-list { border-top: 1px solid var(--line-dark); margin: 0; }
.meta-list > div { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.meta-list dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin: 0; padding-top: 3px; }
.meta-list dd { margin: 0; font-size: 15px; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.timeline li { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: 0.3s; }
.timeline li:hover { background-color: var(--bg-2); }
.t-date { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.t-title { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.2; }
.t-place { font-size: 14px; color: var(--muted); margin-top: 4px; }
.t-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-dark); padding: 6px 12px; white-space: nowrap; }

.press { list-style: none; margin: 0; padding: 0; }
.press li { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; transition: 0.3s; }
.press li:first-child { border-top: 1px solid var(--line-dark); }
.press li:hover { background-color: var(--bg-2); }
.press .p-idx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.press .p-src { font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.press .p-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.press .p-link { font-family: var(--mono); font-size: 11px; color: var(--muted); transition: 0.3s; }
.press li:hover .p-link { color: var(--accent); }

/* ===== VIDEO ===== */
.video-frame { position: relative; aspect-ratio: 16/9; background-color: #000; border: 1px solid var(--line-dark); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.3); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== CTA ===== */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(50px, 8vw, 100px) var(--pad); border-top: 1px solid var(--line-dark); background-color: var(--bg-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== FOOTER ===== */
.footer { padding: clamp(50px, 8vw, 100px) var(--pad) 28px; background-color: var(--ink); color: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer-word { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); line-height: 0.85; letter-spacing: -0.02em; margin: 0; }
.footer-word em { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--bg); transition: 0.3s; }
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 28px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); align-items: center; }
.footer-logos { display: flex; gap: 16px; align-items: center; filter: grayscale(1) invert(1); opacity: 0.7; }
.footer-logos img:first-child, .footer-logos .logo-dp { height: 48px !important; width: auto !important; }
.footer-logos img:last-child, .footer-logos .logo-assoc { height: 24px !important; width: auto !important; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--bg); text-decoration: none;
  border: 1px solid var(--line-dark); box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  font-size: 1.35rem; font-weight: 700;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.back-to-top:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .header-right .ext { display: none; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-image-wrapper { max-width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0; background-color: var(--bg); flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: calc(var(--header) + 20px) var(--pad) var(--pad); transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1); z-index: 90; }
  .nav.open { transform: none; }
  .nav a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); text-transform: none; letter-spacing: 0; color: var(--ink); padding: 8px 0; }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-title .outline { margin-left: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .t-tag { justify-self: start; }
  .press li { grid-template-columns: 36px 1fr; }
  .press .p-link { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}