/* =========================================================================
   S.C.H.O.P.P.E.R — Archive statique
   Design system — 2026 (archive du projet ANR)
   ========================================================================= */

:root {
  /* Palette : pierre / ocre paléolithique + ardoise "tech" */
  --stone-50:  #faf8f4;
  --stone-100: #f2ede4;
  --stone-200: #e5dccd;
  --stone-300: #d3c5ae;
  --ink:       #241f1a;
  --ink-soft:  #4a423a;
  --muted:     #7c7266;
  --ochre:     #b26a33;
  --ochre-dk:  #8f5223;
  --slate:     #33474d;
  --slate-dk:  #223136;
  --line:      #e2d9c9;
  --white:     #ffffff;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(36,31,26,.06), 0 2px 8px rgba(36,31,26,.05);
  --shadow-md: 0 8px 30px rgba(36,31,26,.10);
  --shadow-lg: 0 20px 50px rgba(36,31,26,.16);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--stone-50);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--ochre-dk); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ochre); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ochre);
  margin: 0 0 .6rem;
}

.section { padding: 74px 0; }
.section--tight { padding: 52px 0; }
.section-alt { background: var(--stone-100); }

/* -------------------------------------------------------------- HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  font-family: var(--serif); font-weight: 700; letter-spacing: .06em;
  font-size: 1.18rem; color: var(--ink); white-space: nowrap;
}
.brand__mark b { color: var(--ochre); font-weight: 700; }
.brand__logo { height: 34px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: inline-block; padding: 8px 13px; border-radius: 8px;
  color: var(--ink-soft); font-size: .93rem; font-weight: 500;
}
.nav-links a:hover { background: var(--stone-200); color: var(--ink); }
.nav-links a.active { color: var(--ochre-dk); background: var(--stone-200); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { display: block; }

/* -------------------------------------------------------------- HERO */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(178,106,51,.18), transparent 55%),
    radial-gradient(90% 120% at 0% 110%, rgba(51,71,77,.16), transparent 55%),
    linear-gradient(180deg, var(--stone-100), var(--stone-50));
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding: 92px 24px 80px; max-width: var(--maxw); margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: .04em; margin: .2rem 0 .4rem;
}
.hero h1 .dotted { color: var(--ochre); }
.hero__tag { font-size: 1.05rem; color: var(--slate); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.4rem; }
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.hero__meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: .86rem; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.chip b { color: var(--ochre-dk); }

/* page banner (interior pages) */
.pagehead {
  background:
    radial-gradient(90% 120% at 90% -20%, rgba(178,106,51,.16), transparent 55%),
    linear-gradient(180deg, var(--stone-100), var(--stone-50));
  border-bottom: 1px solid var(--line);
  padding: 66px 0 44px;
}
.pagehead h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .03em; margin: .3rem 0 .5rem; }
.pagehead p { color: var(--ink-soft); max-width: 680px; margin: 0; font-size: 1.08rem; }

/* -------------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ochre); color: #fff; border: 1px solid var(--ochre);
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, background .18s ease;
}
.btn:hover { background: var(--ochre-dk); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--stone-300); }
.btn--ghost:hover { background: var(--stone-100); color: var(--ink); }

/* -------------------------------------------------------------- CARDS / GRID */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: .2rem 0 .5rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.partner-card .partner-card__tag {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--slate);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.partner-card:nth-child(1) .partner-card__tag { background: var(--ochre-dk); }
.partner-card:nth-child(2) .partner-card__tag { background: var(--slate); }
.partner-card:nth-child(3) .partner-card__tag { background: #6a5636; }
.partner-card:nth-child(4) .partner-card__tag { background: #3d5a4f; }

/* prose */
.prose p { color: var(--ink-soft); }
.prose h2 { font-size: 1.9rem; margin: 0 0 1rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.lead { font-size: 1.22rem; color: var(--ink-soft); }
.rule { height: 1px; background: var(--line); border: 0; margin: 44px 0; }

/* -------------------------------------------------------------- TEAM */
.team-section { margin-top: 46px; }
.team-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.team-section__head h2 { font-size: 1.5rem; margin: 0; }
.team-section__head .count { color: var(--muted); font-size: .9rem; }
.team-section__bar { height: 3px; width: 46px; background: var(--ochre); border-radius: 2px; margin-bottom: 22px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { text-align: center; }
.avatar {
  position: relative; width: 132px; height: 132px; margin: 0 auto 14px;
  border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--stone-200), var(--stone-300));
  box-shadow: var(--shadow-sm); border: 3px solid var(--white); outline: 1px solid var(--line);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar .initials {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.1rem; color: var(--slate); font-weight: 600;
}
.member h4 { margin: 0 0 3px; font-size: 1.05rem; }
.member p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }

/* -------------------------------------------------------------- TIMELINE */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--ochre), var(--stone-300));
}
.tl-item { position: relative; padding: 0 0 30px 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--ochre); box-shadow: 0 0 0 4px var(--stone-50);
}
.tl-item time { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ochre-dk); text-transform: uppercase; margin-bottom: 3px; }
.tl-item h3 { font-size: 1.12rem; margin: 0 0 5px; }
.tl-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.tl-year {
  position: relative; margin: 26px 0 22px -34px; padding-left: 0;
}
.tl-year span {
  display: inline-block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  background: var(--stone-50); padding: 2px 14px 2px 0; font-weight: 700;
}

/* -------------------------------------------------------------- PUBLICATIONS */
.pub-year { display: flex; align-items: center; gap: 16px; margin: 40px 0 18px; }
.pub-year h2 { font-size: 1.7rem; margin: 0; color: var(--ochre-dk); }
.pub-year .bar { flex: 1; height: 1px; background: var(--line); }
.pub {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ochre);
  border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.pub p { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.pub .pub-title { color: var(--ink); font-weight: 600; }
.pub .pub-links { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 8px; }
.pub .pub-links a {
  font-size: .82rem; font-weight: 600; background: var(--stone-100); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 7px; color: var(--ochre-dk);
}
.pub .pub-links a:hover { background: var(--stone-200); }
.subhead { font-family: var(--serif); font-weight: 600; color: var(--slate); font-size: 1rem; margin: 20px 0 8px; }

/* -------------------------------------------------------------- NEWS / HIGHLIGHTS */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card__media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--stone-200), var(--stone-300)); position: relative; overflow: hidden; }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.news-card__media .ph { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; color: var(--slate); opacity: .4; }
.news-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ochre); margin-bottom: 6px; }
.news-card__body h3 { font-size: 1.15rem; margin: 0 0 8px; }
.news-card__body p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* -------------------------------------------------------------- CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.contact-card .org { color: var(--ochre-dk); font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.contact-card address { font-style: normal; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.contact-card .ci { display: flex; gap: 9px; align-items: flex-start; margin-top: 8px; }
.contact-card .ci svg { flex: none; margin-top: 3px; color: var(--ochre); }

/* -------------------------------------------------------------- VIDEO */
.video-block { margin-bottom: 40px; }
.video-frame {
  position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); background: #000; border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block h3 { margin: 16px 0 4px; font-size: 1.2rem; }

/* -------------------------------------------------------------- FOOTER */
.site-footer { background: var(--slate-dk); color: #cdd6d6; padding: 54px 0 30px; margin-top: 20px; }
.site-footer a { color: #e3b98f; }
.site-footer a:hover { color: #f2d3b0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 14px; font-family: var(--sans); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.footer-brand__mark { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .06em; color: #fff; margin-bottom: 10px; }
.footer-brand p { color: #9fb0b0; font-size: .92rem; max-width: 320px; }
.footer-partners { color: #9fb0b0; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: #8a9a9a; }

/* -------------------------------------------------------------- UTIL */
.mt0{margin-top:0}.mb0{margin-bottom:0}
.center{text-align:center}
.badge-archive{
  display:inline-flex;align-items:center;gap:8px;background:var(--stone-100);border:1px solid var(--line);
  color:var(--muted);font-size:.8rem;padding:5px 12px;border-radius:999px;
}

/* -------------------------------------------------------------- RESPONSIVE */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--stone-50); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .avatar { width: 110px; height: 110px; }
}

/* -------------------------------------------------------------- POST ARTICLES (Temps forts) */
.post-article {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 34px;
}
.article__hero { background: linear-gradient(135deg,var(--stone-200),var(--stone-300)); }
.article__hero img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.post-article__body { padding: 26px 34px 34px; }
.post-article__body h2 { font-size: 1.6rem; margin: .35rem 0 .8rem; }
.post-article .prose { font-size: 1rem; }
.post-article .prose p { margin: 0 0 1rem; }
.post-article .prose img {
  border-radius: 9px; margin: 14px 0; border: 1px solid var(--line);
  max-width: 100%; height: auto; box-shadow: var(--shadow-sm);
}
.post-article .prose a { word-break: break-word; }
@media (max-width:760px){ .post-article__body{ padding: 20px 20px 26px; } }

/* -------------------------------------------------------------- SLIDER (Accueil) */
.slider { position: relative; width: 100%; overflow: hidden; background: #1c1712; border-bottom: 1px solid var(--line); }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .6s cubic-bezier(.5,.05,.2,1); will-change: transform; }
.slider__slide { flex: 0 0 100%; height: clamp(320px, 56vh, 560px); }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.82); color: var(--ink); font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: background .18s ease, transform .18s ease;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 18px; } .slider__arrow--next { right: 18px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.slider__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.5); transition: background .2s ease, transform .2s ease;
}
.slider__dots button.active { background: #fff; transform: scale(1.25); }
@media (max-width:600px){ .slider__arrow{ width:38px; height:38px; font-size:1.4rem; } .slider__arrow--prev{left:10px;} .slider__arrow--next{right:10px;} }

/* partner bullet list (résumé) */
.partner-list { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; }
.partner-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--ink-soft); }
.partner-list li::before { content: "●"; position: absolute; left: 0; top: 0; color: var(--ochre); font-size: .9em; }

/* toggle / accordion (Pour en savoir plus) */
details.toggle { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
details.toggle summary { cursor: pointer; padding: 16px 22px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.toggle summary::-webkit-details-marker { display: none; }
details.toggle summary::after { content: "+"; color: var(--ochre); font-size: 1.5rem; line-height: 1; font-family: var(--sans); }
details.toggle[open] summary::after { content: "–"; }
details.toggle summary:hover { background: var(--stone-100); }
.toggle__body { padding: 4px 22px 20px; }
.toggle__body p { color: var(--ink-soft); margin: 0 0 1rem; }

/* timeline thumbnail */
.tl-thumb { margin: 6px 0 10px; }
.tl-thumb img { width: 100%; max-width: 340px; border-radius: 9px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* publications cover image */
.pub .pub-cover { float: left; width: 92px; height: auto; margin: 2px 16px 8px 0; border-radius: 6px; border: 1px solid var(--line); }
.pub { overflow: hidden; }
.pub p, .pub div { margin: 0 0 .5rem; }
.pub a { color: var(--ochre-dk); word-break: break-word; }
.contact-card address a { color: var(--ochre-dk); }
