/* S-LAB — site public
   Principe : le logo (lettres arrondies, quatre aplats) dicte tout — grands
   champs de couleur, rayons généreux, titres larges et ronds, encre indigo. */
:root {
  --paper: #ffffff;
  --soft: #f3f4f8;
  --ink: #17153b;
  --ink-2: #4a4870;
  --line: #dfe0ea;
  --green: #3eb783;
  --yellow: #fbcc31;
  --cyan: #24bfd6;
  --pink: #f29abe;
  --display: "Unbounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --r-xl: 44px;   /* grands blocs */
  --r-lg: 28px;   /* images */
  --r-sm: 999px;  /* boutons, étiquettes */
  --gut: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.c-green { --c: var(--green); }
.c-yellow { --c: var(--yellow); }
.c-cyan { --c: var(--cyan); }
.c-pink { --c: var(--pink); }

/* ---------- Logo (4 calques) ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { display: block; overflow: visible; }
.logo .lg { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.logo--header { height: 38px; width: auto; }
.logo--footer { height: 64px; width: auto; }
.brand:hover .lg-s { transform: translate(-3px, -2px) rotate(-4deg); }
.brand:hover .lg-l { transform: translateY(-4px); }
.brand:hover .lg-a { transform: translateY(3px); }
.brand:hover .lg-b { transform: translate(3px, -2px) rotate(4deg); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: var(--r-sm); transition: background .2s; }
.nav a:hover { background: var(--soft); }
.nav .lang-switch { margin-left: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 7px 13px; }
.nav .lang-switch:hover { background: var(--ink-2); }
.menu-toggle { display: none; background: var(--ink); color: #fff; border: 0; font: 600 15px var(--text); padding: 10px 18px; border-radius: var(--r-sm); cursor: pointer; }

/* ---------- Boutons et étiquettes ---------- */
.btn { display: inline-flex; align-items: center; gap: .45em; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 24px; border-radius: var(--r-sm); font: 600 16px/1 var(--text); border: 2px solid var(--ink); cursor: pointer; transition: transform .18s ease, background .18s; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--small { padding: 10px 18px; font-size: 15px; }
.tag { display: inline-block; font-weight: 600; font-size: 15px; background: rgba(255, 255, 255, .55); padding: 6px 14px; border-radius: var(--r-sm); margin-bottom: 22px; }
.soon { display: inline-block; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: var(--r-sm); border: 2px dashed currentColor; }
.cat { display: inline-block; font-weight: 600; font-size: 14px; padding: 3px 11px; border-radius: var(--r-sm); background: var(--soft); margin-right: 6px; }
.cat-diffusion { background: var(--green); }
.cat-production { background: var(--yellow); }
.cat-pensee { background: var(--pink); }

/* ---------- Portada : le logo est le héros ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-logo { width: min(100%, 1040px); margin: 0 auto clamp(32px, 5vw, 64px); }
.logo--hero { width: 100%; height: auto; }
.logo--hero path { stroke-width: 2px; }
.logo--hero .lg { animation: lg-in 1.1s cubic-bezier(.22, 1.2, .36, 1) both, lg-breathe 7s ease-in-out 1.6s infinite; translate: calc(var(--mx, 0) * var(--d, 0) * 1px) calc(var(--my, 0) * var(--d, 0) * 1px); transition: translate .5s ease-out; }
.logo--hero .lg-s { --from: -220px, 40px; --rot: -14deg; --d: 16; animation-delay: .05s, 1.6s; }
.logo--hero .lg-l { --from: 0, -240px; --rot: 0deg; --d: 9; animation-delay: .18s, 2.4s; }
.logo--hero .lg-a { --from: 0, 260px; --rot: 0deg; --d: 12; animation-delay: .31s, 3.1s; }
.logo--hero .lg-b { --from: 240px, -30px; --rot: 16deg; --d: 20; animation-delay: .44s, 3.8s; }
@keyframes lg-in { from { opacity: 0; transform: translate(var(--from)) rotate(var(--rot)) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes lg-breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-6px) rotate(calc(var(--rot) * .08)); } }
.hero-text { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero-title { font-size: clamp(38px, 5.4vw, 76px); margin: 0; letter-spacing: -.035em; line-height: 1.02; }
.hero-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); margin-bottom: .6em; }
.hero-place { color: var(--ink-2); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--soft { background: var(--soft); border-radius: var(--r-xl); margin: 0 clamp(8px, 1.4vw, 20px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.h-section { font-size: clamp(34px, 4.6vw, 64px); margin: 0; letter-spacing: -.035em; }
.section-intro { max-width: 42ch; margin: 0; color: var(--ink-2); font-size: 19px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; }
.prose--large { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; }
.empty { font-size: 20px; color: var(--ink-2); }

/* L'association */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about .prose { max-width: 62ch; }
.missions { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.mission { padding: 0; }
.mission-shape { display: block; width: 64px; height: 64px; background: var(--c); margin-bottom: 22px; }
.c-green .mission-shape { border-radius: 0 0 0 64px; }
.c-yellow .mission-shape { border-radius: 64px 64px 0 0; }
.c-cyan .mission-shape { border-radius: 0 64px 0 0; }
.mission h3 { font-size: 26px; margin-bottom: .45em; }
.mission .prose { color: var(--ink-2); font-size: 17px; max-width: 40ch; }

/* Actions : un grand aplat par plateforme */
.actions { display: grid; gap: clamp(16px, 2vw, 24px); }
.action { background: var(--c); border-radius: var(--r-xl); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(14px, 1.6vw, 20px); }
.action-body { padding: clamp(22px, 3.4vw, 46px) clamp(14px, 2.6vw, 34px); display: flex; flex-direction: column; align-items: flex-start; }
.action-title { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.035em; }
.action .prose { max-width: 56ch; margin-bottom: 28px; font-size: 17.5px; }
.action .btn, .action .soon { margin-top: auto; }
.action-media { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; }
.action-media img { width: 100%; height: 100%; object-fit: cover; }
.action--text { grid-template-columns: 1fr; }
.action--text .prose { max-width: 72ch; columns: 2 30ch; column-gap: 48px; }
.action--text .prose p { break-inside: avoid; }

/* Agenda */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.agenda-item { display: grid; grid-template-columns: minmax(200px, 300px) 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: var(--soft); }
.agenda-date { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.1; margin: 0; display: flex; align-items: center; gap: 14px; }
.agenda-date::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.agenda-main h3 { font-family: var(--text); font-weight: 600; font-size: 21px; letter-spacing: 0; margin-bottom: .2em; }
.agenda-meta { color: var(--ink-2); margin: 0; font-size: 16px; }
.agenda-main .prose { font-size: 16px; color: var(--ink-2); margin-top: 6px; }

/* Projets */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.card { text-decoration: none; display: block; }
.card-media { aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--line); margin-bottom: 18px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-meta { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.card h3 { font-size: clamp(22px, 2vw, 27px); margin-bottom: .35em; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.card-sum { color: var(--ink-2); font-size: 16.5px; margin: 0; max-width: 46ch; }
.archive-wrap { margin-top: clamp(56px, 7vw, 96px); }
.archive-wrap summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.archive-wrap summary::-webkit-details-marker { display: none; }
.archive-wrap summary h3 { font-size: 28px; margin: 0; }
.archive-wrap summary::after { content: "+"; font: 600 22px/1 var(--text); width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .25s; }
.archive-wrap[open] summary::after { transform: rotate(45deg); }
.archive { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; }
.archive li { display: grid; grid-template-columns: 120px 220px 1fr auto; gap: 24px; align-items: baseline; padding: 18px clamp(18px, 2.4vw, 30px); border-top: 1px solid var(--line); font-size: 16.5px; }
.archive li:first-child { border-top: 0; }
.archive-year { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.archive-title { font-weight: 600; }
.archive-sum { color: var(--ink-2); }
.archive .cat { justify-self: end; margin: 0; }

/* Partenaires */
.section--partners { padding: clamp(48px, 6vw, 80px) 0; }
.partners-row { display: flex; gap: 24px 48px; align-items: baseline; flex-wrap: wrap; }
.partners-title { font-family: var(--text); font-size: 17px; font-weight: 600; color: var(--ink-2); margin: 0; letter-spacing: 0; }
.partners { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 0; margin: 0; align-items: center; }
.partners a { text-decoration: none; }
.partners span { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.01em; }
.partners a:hover span { text-decoration: underline; }
.partners img { max-height: 56px; width: auto; }

/* Contact : bloc indigo */
.section--contact { padding-top: 0; padding-bottom: clamp(40px, 5vw, 72px); }
.contact { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.contact .prose { color: rgba(255, 255, 255, .82); margin-top: 24px; }
.contact-mail { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.8vw, 24px); margin-top: 32px; word-break: break-word; }
.contact-mail a { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: .25em; }
.form { display: grid; gap: 16px; align-content: start; }
.form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.form input, .form textarea { font: inherit; font-size: 17px; color: var(--ink); padding: 14px 18px; border: 2px solid transparent; background: #fff; border-radius: 18px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan); }
.form .btn { justify-self: start; }
.form-note { font-size: 14px; color: rgba(255, 255, 255, .7); margin: 0; }
.hp { position: absolute; left: -5000px; }
.notice { padding: 14px 18px; border-radius: 16px; margin: 0; color: var(--ink); font-weight: 500; }
.notice--ok { background: var(--green); }
.notice--err { background: var(--pink); }

/* Page projet */
.project { padding-top: clamp(32px, 5vw, 64px); }
.back { display: inline-block; font-weight: 600; text-decoration: none; padding: 8px 16px; border-radius: var(--r-sm); background: var(--soft); margin-bottom: 36px; }
.back:hover { background: var(--line); }
.project-title { font-size: clamp(38px, 6vw, 84px); letter-spacing: -.04em; margin-top: 8px; }
.project-lead { font-size: clamp(20px, 2vw, 25px); color: var(--ink-2); max-width: 44ch; }
.project-hero { margin: clamp(32px, 4vw, 56px) auto; max-width: 1440px; padding: 0 var(--gut); }
.project-hero img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: var(--r-xl); }
.credits { margin-top: 36px; padding: 20px 24px; border-radius: 20px; background: var(--soft); color: var(--ink-2); font-size: 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 56px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); transition: transform .3s; }
.gallery a:hover img { transform: scale(.98); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--soft); color: var(--ink); padding: clamp(56px, 7vw, 88px) 0 32px; border-radius: var(--r-xl) var(--r-xl) 0 0; margin: 0 clamp(8px, 1.4vw, 20px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-about { color: var(--ink-2); max-width: 42ch; margin-top: 22px; font-size: 16px; }
.foot-h { font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 14px; }
.site-footer p, .site-footer li { font-size: 16px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .4em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo .lg, .logo--hero .lg { animation: none !important; transition: none !important; translate: none !important; }
  .btn, .card-media img, .gallery img { transition: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1020px) {
  .hero-text, .about, .contact { grid-template-columns: 1fr; }
  .missions { grid-template-columns: 1fr 1fr; }
  .action { grid-template-columns: 1fr; }
  .action-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .cards { grid-template-columns: 1fr 1fr; }
  .archive li { grid-template-columns: 90px 1fr; gap: 6px 20px; }
  .archive-sum { grid-column: 2; }
  .archive .cat { grid-column: 2; justify-self: start; }
  .agenda-item { grid-template-columns: 1fr auto; }
  .agenda-date { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .header-inner { height: 66px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 10px; right: 10px; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; border-radius: 24px; box-shadow: 0 18px 50px rgba(23, 21, 59, .18); }
  .nav.open { display: flex; }
  .nav a { font-size: 19px; padding: 12px 16px; }
  .nav .lang-switch { margin: 6px 0 0; text-align: center; }
  .missions, .cards { grid-template-columns: 1fr; }
  .action--text .prose { columns: 1; }
  .agenda-item { grid-template-columns: 1fr; }
  .agenda-item .btn { justify-self: start; }
  .archive li { grid-template-columns: 1fr; }
  .archive-sum, .archive .cat { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
