/* Yaoki Lab — noir et blanc strict, typographique, sans ornement. */
:root {
  --black: #0d0d0d;
  --white: #f6f5f2;
  --grey-dark: #8a8a8a;
  --grey-light: #5c5c5c;
  --line-dark: rgba(246, 245, 242, 0.18);
  --line-light: rgba(13, 13, 13, 0.16);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
  /* L'accent : le turquoise #00E6E2, l'œil qu'on peint au lancement. En aplat ou en surligneur avec du
     texte noir, ou en texte sur fond noir. Jamais en texte sur le papier (contraste trop faible). */
  --accent: #00e6e2;
  --on-accent: #0d0d0d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
ol { list-style: none; margin: 0; padding: 0; }

.dark  { background: var(--black); color: var(--white); --muted: var(--grey-dark);  --line: var(--line-dark);  --daruma-face: var(--black); }
.light { background: var(--white); color: var(--black); --muted: var(--grey-light); --line: var(--line-light); --daruma-face: var(--white); }

/* Navigation */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--black); color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  --daruma-face: var(--black);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px;
}
.nav__links { display: flex; gap: 28px; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--grey-dark); transition: color .15s; }
.nav__links a:hover { color: var(--white); }

.daruma { width: 22px; height: 24px; color: currentColor; flex: none; }
.daruma--xl { width: clamp(96px, 14vw, 160px); height: auto; aspect-ratio: 100 / 110; }

/* Typo partagée */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted, var(--grey-dark)); margin-bottom: 24px;
}
.label {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; max-width: 46ch; margin-bottom: 48px; }
.note { color: var(--muted); margin-top: 32px; }

/* Hero */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px max(var(--gutter), calc((100% - var(--max)) / 2));
}
.hero__title {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(72px, 17vw, 240px); line-height: 0.88; letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.hero__tagline { font-size: clamp(22px, 3vw, 36px); font-weight: 500; margin-bottom: 20px; }
.hero__sub { color: var(--muted); max-width: 52ch; }
.hero__cta {
  align-self: flex-start; margin-top: 24px;
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__title {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.015em;
  margin-bottom: 32px;
}
.section__title--spaced { margin-top: clamp(80px, 10vw, 140px); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.block p { color: inherit; max-width: 52ch; }

.card { border: 1px solid var(--line); padding: 28px; }
.card h3 {
  font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  font-size: 20px; letter-spacing: 0.01em; margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0; }
.num { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }

/* Épisodes */
.episode {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--black); padding: 28px;
  background: var(--white);
}
.episode p { font-size: 15px; color: var(--muted); }
.episode p:last-child { margin-bottom: 0; }
.episode__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 40px;
}
.episode__name {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.005em; margin-bottom: 10px;
}
.episode .episode__claim { color: var(--black); font-weight: 600; font-size: 17px; }
.episode--slot { border-style: dashed; background: transparent; }
.episode--slot .episode__name { font-size: clamp(40px, 4vw, 56px); }

/* Carte cliquable : toute la carte mène à la page projet */
.episode--link { position: relative; transition: background .15s, color .15s; }
.episode--link .episode__more {
  margin-top: auto; padding-top: 24px;
  font-size: 14px; font-weight: 700; color: var(--black);
}
.episode--link .episode__more a { text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.episode--link .episode__more a::after { content: ""; position: absolute; inset: 0; }
.episode--link:hover, .episode--link:focus-within { background: var(--black); color: var(--white); }
.episode--link:hover p, .episode--link:focus-within p { color: var(--grey-dark); }
.episode--link:hover .episode__claim, .episode--link:hover .episode__more,
.episode--link:focus-within .episode__claim, .episode--link:focus-within .episode__more { color: var(--white); }
.episode--link:hover .status, .episode--link:focus-within .status { color: var(--grey-dark); }

/* Les yeux du daruma : un peint au lancement, l'autre à l'accomplissement. */
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.eye { display: inline-flex; gap: 3px; }
.eye::before, .eye::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.eye--half::before { background: currentColor; }

/* Page projet */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumb a:hover { color: var(--white); }
.project__head {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.project__title {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(36px, 10vw, 150px); line-height: 0.9; letter-spacing: -0.01em;
  margin-bottom: 28px; overflow-wrap: break-word;
}
.project__claim { font-size: clamp(22px, 3vw, 36px); font-weight: 500; line-height: 1.25; margin-bottom: 24px; max-width: 30ch; }
.project__intro { color: var(--muted); max-width: 60ch; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 1.5px solid currentColor;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .15s, color .15s;
}
.dark .btn--solid { background: var(--white); color: var(--black); border-color: var(--white); }
.dark .btn--solid:hover { background: transparent; color: var(--white); }
.light .btn--solid { background: var(--black); color: var(--white); border-color: var(--black); }
.light .btn--solid:hover { background: transparent; color: var(--black); }
.dark .btn--ghost:hover { color: var(--white); background: rgba(246,245,242,.08); }
.light .btn--ghost:hover { background: rgba(13,13,13,.06); }
.btn--disabled { opacity: .55; pointer-events: none; }

.prose p { max-width: 62ch; }
.prose p + p { margin-top: 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: 0; margin-bottom: 0; }
.facts div { border-top: 1px solid var(--line); padding: 18px 0; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a {
  display: block; padding: 28px; border: 1.5px solid var(--line);
  text-decoration: none; transition: border-color .15s;
}
.pager a:hover { border-color: currentColor; }
.pager small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pager strong { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(20px, 2.4vw, 28px); }
.pager__next { text-align: right; }

/* Francis */
.francis { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.francis p:not(.eyebrow):not(.lead) { color: var(--muted); max-width: 60ch; }

/* Footer */
.footer {
  padding: clamp(72px, 10vw, 120px) var(--gutter) 32px;
  border-top: 1px solid var(--line-dark);
}
.footer__big {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(32px, 6vw, 80px); line-height: 0.95; margin-bottom: 64px;
}
.footer__meta { font-size: 13px; color: var(--grey-dark); margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* Menu mobile : les liens passent sous la marque, en une ligne qui défile. */
  .nav { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .nav__links { width: 100%; gap: 20px; font-size: 13px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a[aria-current] { color: var(--white); }
  .nav__links a[href="#histoire"], .nav__links a[href="/#histoire"] { display: none; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .francis { grid-template-columns: 1fr; }
  .facts, .pager { grid-template-columns: 1fr; }
  .pager__next { text-align: left; }
  .card, .episode { padding: 22px; }
  .episode__head { margin-bottom: 28px; }
}

/* Portrait */
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.francis .portrait { width: clamp(220px, 28vw, 360px); }
.portrait-hero { display: grid; grid-template-columns: 1fr minmax(240px, 400px); gap: clamp(32px, 6vw, 96px); align-items: end; }

/* Manifeste */
.manifesto__title {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.01em;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.manifesto__title span { display: block; max-width: 16ch; }
.manifesto > * { max-width: 760px; }
.manifesto p { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 62ch; }
.manifesto .manifesto__big {
  color: inherit; font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.2;
  margin: clamp(48px, 6vw, 72px) 0 24px;
}
.manifesto .manifesto__big:first-child { margin-top: 0; }
.manifesto__pairs, .manifesto__questions { list-style: none; padding: 0; margin: 32px 0; }
.manifesto__pairs li { border-top: 1px solid var(--line); padding: 16px 0; font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); }
.manifesto__pairs li:last-child { border-bottom: 1px solid var(--line); }
.manifesto__questions li { font-weight: 800; font-stretch: 112%; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; }

/* Parcours */
.timeline { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.timeline li { display: grid; grid-template-columns: 200px 1fr; gap: 8px 48px; border-top: 1px solid var(--line); padding: 32px 0; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { grid-row: span 2; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.timeline h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; margin: 0; }
.timeline p { color: var(--muted); max-width: 64ch; margin: 0; }

/* Cas concrets */
.case { display: flex; flex-direction: column; }
.case h3 { font-size: 20px; line-height: 1.25; margin-bottom: 14px; }
.case p { margin-bottom: 0; }
.case .case__client { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; color: var(--muted); }
.case .case__tags { margin-top: auto; padding-top: 24px; font-size: 13px; font-weight: 600; color: inherit; }
.case--link { text-decoration: none; color: inherit; transition: background .15s, color .15s; }
.dark .case--link:hover { background: var(--white); color: var(--black); }

@media (max-width: 900px) {
  .portrait-hero { grid-template-columns: 1fr; }
  .portrait-hero .portrait { max-width: 420px; }
}
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; }
  .timeline__when { grid-row: auto; padding-top: 0; }
  .francis .portrait { width: 100%; max-width: 420px; }
}

/* Offre */
.offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 48px; margin-bottom: 48px; }
.offer__price { margin: 0; }
.offer__price strong { font-weight: 900; font-stretch: 125%; font-size: clamp(48px, 7vw, 96px); line-height: 1; }
.offer__price span { font-size: 18px; font-weight: 600; margin-left: 8px; }
.offer__note { color: var(--muted); max-width: 46ch; margin: 0; }
.offer__when-title { margin-top: clamp(56px, 7vw, 88px); }
.offer__when { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.offer__when li { border-top: 1px solid var(--line); padding: 16px 0; font-weight: 600; }
@media (max-width: 640px) { .offer__when { grid-template-columns: 1fr; } }

/* Prise de rendez-vous */
.rdv-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 40px; }
.rdv-jour h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rdv-heures { display: flex; flex-wrap: wrap; gap: 8px; }
.rdv-heure { display: inline-block; padding: 10px 14px; border: 1.5px solid var(--black); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.rdv-heure:hover, .rdv-heure:focus-visible { background: var(--black); color: var(--white); }
.rdv-quand { font-size: clamp(36px, 6vw, 80px); }
.rdv-form { max-width: 640px; display: grid; gap: 20px; position: relative; }
.rdv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rdv-champ { display: grid; gap: 8px; }
.rdv-champ span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.rdv-champ input, .rdv-champ textarea { font: inherit; font-size: 17px; padding: 14px 16px; border: 1.5px solid var(--black); background: #fff; color: var(--black); border-radius: 0; width: 100%; }
.rdv-champ input:focus, .rdv-champ textarea:focus { outline: 3px solid var(--black); outline-offset: 2px; }
.rdv-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.rdv-sous { color: var(--muted); font-size: 14px; margin: 0; }
.rdv-erreur { border: 1.5px solid var(--black); padding: 14px 18px; font-weight: 600; margin-bottom: 24px; }
@media (max-width: 640px) { .rdv-duo { grid-template-columns: 1fr; } }

/* Parler à Francis */
.chat-bouton {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px;
  background: var(--black); color: var(--white); border: 1.5px solid var(--white); border-radius: 999px;
  font: 700 15px/1 var(--font); cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.chat-bouton img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.chat-bouton:hover { background: var(--white); color: var(--black); border-color: var(--black); }
.chat-actif .chat-bouton { display: none; }

.chat-fenetre {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px));
  display: flex; flex-direction: column;
  background: var(--white); color: var(--black); border: 1.5px solid var(--black);
  box-shadow: 0 16px 48px rgba(0,0,0,.28); font-family: var(--font);
}
.chat-fenetre[hidden] { display: none; }
.chat-tete { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--black); color: var(--white); }
.chat-tete img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.chat-tete > div { flex: 1; min-width: 0; }
.chat-titre { margin: 0; font-weight: 800; font-size: 16px; }
.chat-sous { margin: 2px 0 0; font-size: 12px; color: var(--grey-dark); }
.chat-fermer { background: none; border: 0; color: var(--white); font-size: 28px; line-height: 1; width: 40px; height: 40px; cursor: pointer; }
.chat-avis { margin: 0; padding: 10px 16px; font-size: 12px; line-height: 1.45; color: var(--grey-light); border-bottom: 1px solid var(--line-light); }
.chat-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.chat-bulle { max-width: 88%; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.chat-bulle p { margin: 0 0 8px; }
.chat-bulle p:last-child { margin-bottom: 0; }
.chat-bulle--francis { align-self: flex-start; background: #fff; border: 1px solid var(--line-light); }
.chat-bulle--moi { align-self: flex-end; background: var(--black); color: var(--white); }
.chat-bulle--attente::after { content: "…"; display: inline-block; animation: chat-points 1s steps(3) infinite; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes chat-points { from { width: 0; } to { width: 1.2em; } }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-suggestion { font: 600 13px/1.3 var(--font); text-align: left; padding: 8px 12px; background: transparent; border: 1.5px solid var(--black); color: var(--black); cursor: pointer; }
.chat-suggestion:hover { background: var(--black); color: var(--white); }
.chat-creneaux { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-light); }
.chat-creneaux__titre { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-light); }
.chat-creneaux__liste { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat-creneau { display: flex; flex-direction: column; padding: 8px 10px; border: 1.5px solid var(--black); text-decoration: none; font-size: 12px; line-height: 1.3; }
.chat-creneau strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.chat-creneau:hover { background: var(--black); color: var(--white); }
.chat-creneau--tous { grid-column: 1 / -1; font-weight: 700; font-size: 13px; text-align: center; }
.chat-saisie { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-light); background: var(--white); }
.chat-champ { flex: 1; resize: none; font: 16px/1.4 var(--font); padding: 10px 12px; border: 1.5px solid var(--black); border-radius: 0; background: #fff; color: var(--black); max-height: 140px; }
.chat-champ:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.chat-envoyer { width: 44px; flex: none; background: var(--black); color: var(--white); border: 0; font-size: 20px; font-weight: 800; cursor: pointer; }
.chat-envoyer:disabled { opacity: .4; cursor: default; }

@media (max-width: 640px) {
  .chat-fenetre { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  .chat-actif, .chat-actif body { overflow: hidden; }
}
button.btn { font: inherit; font-weight: 700; font-size: 15px; background: transparent; color: inherit; cursor: pointer; }

/* Touche de couleur : le turquoise d'accent */
::selection { background: var(--accent); color: var(--on-accent); }
.eye--half::before { background: var(--accent); }
.num { display: inline-block; width: fit-content; background: var(--accent); color: var(--on-accent); padding: 2px 7px; }
a:hover { text-decoration-color: currentColor; }
.dark a:hover, .nav a:hover, .footer a:hover { text-decoration-color: var(--accent); }
.crumb a:hover, .hero__cta:hover { border-color: var(--accent); }
.hero__cta { border-bottom-color: var(--accent); }
.episode--link .episode__more a { border-bottom: 0; box-shadow: inset 0 -0.45em 0 var(--accent); }
.episode--link:hover .episode__more a, .episode--link:focus-within .episode__more a { box-shadow: inset 0 -0.45em 0 rgba(0, 230, 226, .35); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--black); }
.chat-bouton img, .chat-tete img { box-shadow: 0 0 0 2px var(--accent); }
.chat-envoyer { background: var(--accent); color: var(--on-accent); }
.manifesto__questions li::before { content: "? "; color: var(--accent); }
.offer__price strong { box-shadow: inset 0 -0.32em 0 var(--accent); }

/* Notes de terrain */
.note-une .note-carte { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 48px; align-items: center; border: 0; padding: 0; }
.note-une .note-carte img { grid-row: span 4; }
.note-une .note-carte h3 { font-size: clamp(28px, 3.4vw, 44px); }
.notes-grille { margin-top: clamp(56px, 7vw, 88px); gap: 48px 32px; }
.note-carte { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.note-carte img { width: 100%; height: auto; aspect-ratio: 1280 / 704; object-fit: cover; margin-bottom: 20px; filter: grayscale(.15); transition: filter .2s; }
.note-carte:hover img { filter: none; }
.note-carte__date { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 3px 8px; width: fit-content; margin: 0 0 12px; }
.note-carte h3 { font-weight: 800; font-size: 22px; line-height: 1.2; margin: 0 0 12px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .15s; }
.note-carte:hover h3 { text-decoration-color: currentColor; }
.note-carte:hover h3 { box-shadow: inset 0 -0.35em 0 var(--accent); text-decoration: none; }
.note-carte p:not(.note-carte__date) { color: var(--muted); margin: 0; }
.note-titre { font-weight: 900; font-stretch: 112%; font-size: clamp(34px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.01em; max-width: 20ch; margin: 0 0 28px; }
.note-auteur { display: flex; align-items: center; gap: 12px; font-weight: 700; margin: 0; }
.note-auteur img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--accent); }
.note-couverture { margin: 0; background: var(--black); padding: 0 var(--gutter) clamp(32px, 5vw, 56px); }
.note-couverture img { display: block; width: 100%; max-width: var(--max); height: auto; aspect-ratio: 1280 / 640; object-fit: cover; margin: 0 auto; }
.note-corps { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; }
.note-corps h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; margin: 2em 0 .6em; }
.note-corps h3 { font-size: 20px; font-weight: 800; margin: 1.6em 0 .5em; }
.note-corps p, .note-corps ul, .note-corps ol { margin: 0 0 1.1em; }
.note-corps a { text-decoration: none; box-shadow: inset 0 -0.4em 0 var(--accent); }
.note-corps a:hover { background: var(--accent); }
.note-corps blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 8px solid var(--accent); font-size: 1.15em; font-weight: 700; }
.note-corps img { max-width: 100%; height: auto; }
.note-corps hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.note-corps > :first-child { margin-top: 0; }
.note-suite { margin-top: 64px; padding-top: 32px; border-top: 4px solid var(--black); }
.note-suite p:not(.label) { font-size: 19px; font-weight: 600; }
.dernieres-notes { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.dernieres-notes__liste { display: grid; gap: 0; }
.dernieres-notes__note { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.dernieres-notes__note span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 2px 7px; width: fit-content; }
.dernieres-notes__note strong { font-size: 18px; }
.dernieres-notes__note:hover strong { box-shadow: inset 0 -0.35em 0 var(--accent); }
.dernieres-notes__toutes { display: inline-block; margin-top: 16px; font-weight: 700; }
@media (max-width: 900px) { .note-une .note-carte { grid-template-columns: 1fr; } .note-une .note-carte img { grid-row: auto; } }

/* Encart d'autopromotion d'un projet du labo, dans une note */
.note-projet { margin: 2.4em 0; padding: 28px 28px 30px; background: var(--black); color: var(--white); border-left: 6px solid var(--accent); }
.note-projet p { margin: 0 0 14px; color: var(--grey-dark); font-size: 17px; line-height: 1.6; }
.note-projet .note-projet__etiquette { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.note-projet .note-projet__accroche { color: var(--white); font-size: clamp(20px, 2vw, 24px); font-weight: 800; line-height: 1.25; }
.note-projet .btn { margin-top: 8px; text-decoration: none; }
.note-corps .note-projet a.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: none; }
.note-corps .note-projet a.btn--solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Note : deux colonnes alignées sur la grille du site */
.note-section { padding-top: clamp(48px, 6vw, 80px); }
.note-grille { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 64px; align-items: start; }
.note-cote { position: sticky; top: 96px; display: grid; gap: 28px; font-size: 15px; }
.note-cote__auteur { display: flex; gap: 14px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.note-cote__auteur img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--accent); flex: none; }
.note-cote__auteur p { margin: 0; color: var(--muted); line-height: 1.4; }
.note-cote__auteur strong { color: var(--black); }
.note-cote__sommaire ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.note-cote__sommaire li { counter-increment: s; border-top: 1px solid var(--line); }
.note-cote__sommaire a { display: grid; grid-template-columns: 34px 1fr; padding: 10px 0; text-decoration: none; line-height: 1.35; color: var(--black); }
.note-cote__sommaire a::before { content: counter(s, decimal-leading-zero); font-size: 11px; font-weight: 800; color: var(--on-accent); background: var(--accent); width: fit-content; height: fit-content; padding: 1px 5px; margin-top: 2px; }
.note-cote__sommaire a:hover span, .note-cote__sommaire a:hover { text-decoration: none; }
.note-cote__actions { display: grid; gap: 10px; }
.note-cote__actions .btn { justify-content: center; }
.note-cote__lien { font-weight: 700; font-size: 14px; text-decoration: none; padding: 4px 0; }
.note-cote__lien:hover { box-shadow: inset 0 -0.4em 0 var(--accent); }
.note-corps h2 { scroll-margin-top: 90px; }
@media (max-width: 1000px) {
  .note-grille { grid-template-columns: 1fr; }
  .note-cote { position: static; order: -1; }
  .note-cote__sommaire, .note-cote__actions { display: none; }
  .note-cote__auteur { border-bottom: 0; padding-bottom: 0; }
}

/* Couverture d'une note : panneau noir (logo, chiffre clé, signature), filet d'accent, scène de vie */
.note-couverture__cadre { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 39%) minmax(0, 1fr); background: var(--black); border-left: 0; }
.note-couverture__cadre img, .note-couverture__cadre video { width: 100%; height: 100%; min-height: 100%; aspect-ratio: auto; max-height: none; object-fit: cover; border-left: 10px solid var(--accent); filter: saturate(1.4) contrast(1.08); }
.note-couverture__panneau { display: flex; flex-direction: column; gap: 24px; padding: clamp(20px, 3vw, 40px); color: var(--white); }
.note-couverture__logo { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(16px, 1.6vw, 22px); }
.note-chiffre { margin: auto 0; display: grid; gap: 12px; }
.note-chiffre__valeur { color: var(--accent); font-weight: 900; font-stretch: 125%; font-size: clamp(48px, 8vw, 116px); line-height: .9; letter-spacing: -0.02em; }
.note-chiffre__libelle { font-weight: 800; font-size: clamp(16px, 2vw, 28px); line-height: 1.15; max-width: 15ch; }
.note-couverture__signature { margin: auto 0 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dark); }
.note-couverture__signature b { color: var(--accent); }
@media (max-width: 760px) {
  .note-couverture__cadre { grid-template-columns: 1fr; }
  .note-couverture__cadre img, .note-couverture__cadre video { order: -1; aspect-ratio: 4 / 3; border-left: 0; border-bottom: 8px solid var(--accent); }
}
.note-carte img { aspect-ratio: 1200 / 627; }

/* Graphiques des notes ([GRAPHE] dans le texte de l'article) */
.graphe { margin: 2.2em 0; padding: 24px 24px 20px; background: #fff; border: 1.5px solid var(--black); display: grid; gap: 18px; }
.graphe__titre { font-weight: 800; font-size: 18px; line-height: 1.3; }
.graphe__barres { display: grid; gap: 12px; }
.graphe__ligne { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 15px; line-height: 1.3; }
.graphe__piste { background: rgba(13, 13, 13, .06); height: 26px; }
.graphe__barre { display: block; height: 100%; background: var(--black); }
.graphe__ligne--max .graphe__barre { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--black); }
.graphe__valeur { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: right; }
.graphe__source { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .graphe { padding: 18px 16px; }
  .graphe__ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .graphe__libelle { grid-column: 1 / -1; }
}
.note-chiffre__valeur { white-space: nowrap; }
.note-chiffre--long .note-chiffre__valeur { font-size: clamp(40px, 5.6vw, 84px); }

/* ── Notes de terrain : page d'accueil ─────────────────────────────────── */
.tn-tete { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 72px); }
.tn-tete__dedans { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.tn-tete h1 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(44px, 6.4vw, 96px); line-height: .88; letter-spacing: -0.01em; margin: 0 0 28px; }
.tn-tete__promesse { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: #d4d4d0; max-width: 44ch; margin: 0 0 28px; }
.tn-tete__signature { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--grey-dark); font-size: 14px; line-height: 1.35; }
.tn-tete__signature strong { color: var(--white); }
.tn-tete__signature img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 2px var(--accent); }
.tn-chiffres { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.tn-chiffres__titre { margin: 0; padding: 14px 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dark); }
.tn-chiffre { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-dark); text-decoration: none; color: var(--white); transition: padding-left .2s; }
.tn-chiffre:hover { padding-left: 10px; }
.tn-chiffre__valeur { font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 4vw, 54px); line-height: 1; color: var(--accent); white-space: nowrap; }
.tn-chiffre__libelle { font-weight: 700; font-size: 15px; line-height: 1.3; color: #d4d4d0; }

.tn-filtres { position: sticky; top: 52px; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line-light); padding: 12px var(--gutter); }
.tn-filtres__dedans { max-width: var(--max); margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tn-filtres__dedans::-webkit-scrollbar { display: none; }
.tn-filtre { font: 700 14px/1 var(--font); padding: 10px 16px; border: 1.5px solid var(--black); background: transparent; color: var(--black); border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tn-filtre:hover { background: rgba(13,13,13,.06); }
.tn-filtre[aria-pressed="true"] { background: var(--black); color: var(--white); }

.tn-liste { padding-top: clamp(40px, 5vw, 64px); }
.tn-une { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; background: var(--black); color: var(--white); text-decoration: none; overflow: hidden; }
.tn-une[hidden], .tn-carte[hidden] { display: none; }
.tn-une__image { overflow: hidden; position: relative; }
.tn-une__image img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 627; object-fit: cover; transition: transform .5s ease; }
.tn-une:hover .tn-une__image img { transform: scale(1.03); }
.tn-une__texte { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.tn-une__etiquette { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dark); }
.tn-une h2 { font-weight: 900; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; margin: 0; text-wrap: balance; }
.tn-une__extrait { margin: 0; color: #c9c9c5; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tn-une .tn-meta { color: var(--grey-dark); }
.tn-lire { margin-top: auto; align-self: flex-start; font-weight: 800; padding: 12px 18px; background: var(--accent); color: var(--on-accent); transition: transform .2s; }
.tn-une:hover .tn-lire { transform: translateX(6px); }

.tn-theme { display: inline-block; width: fit-content; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; background: var(--accent); color: var(--on-accent); }
.tn-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.tn-meta span + span::before { content: "·"; margin-right: 14px; }

.tn-grille { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.tn-carte { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--black); }
.tn-carte__image { overflow: hidden; background: var(--black); position: relative; }
/* La boucle vidéo se pose sur la partie photo du visuel (à droite du panneau noir et du filet). */
.tn-boucle { position: absolute; top: 0; right: 0; width: 60%; height: 100%; object-fit: cover; filter: saturate(1.4) contrast(1.08); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.tn-boucle.joue { opacity: 1; }
.tn-boucle { transform-origin: 16.667% 50%; transition: opacity .6s ease, transform .45s ease; }
.tn-carte:hover .tn-boucle { transform: scale(1.05); }
.tn-une:hover .tn-boucle { transform: scale(1.03); transition-duration: .6s, .5s; }
.tn-carte__image img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 627; object-fit: cover; transition: transform .45s ease; }
.tn-carte:hover .tn-carte__image img { transform: scale(1.05); }
.tn-carte__texte { display: grid; gap: 10px; }
.tn-carte h3 { margin: 0; font-weight: 800; font-size: 21px; line-height: 1.2; text-wrap: balance; }
.tn-carte:hover h3 { box-shadow: inset 0 -0.3em 0 var(--accent); width: fit-content; }
.tn-carte__texte > p:not(.tn-meta) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tn-vide { margin-top: 32px; color: var(--muted); }

.tn-fin__dedans { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.tn-fin h2 { font-weight: 900; font-stretch: 112%; font-size: clamp(30px, 4vw, 52px); line-height: 1; margin: 0 0 16px; }
.tn-fin p { color: #c9c9c5; max-width: 52ch; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .tn-une__image img, .tn-carte__image img, .tn-lire, .tn-chiffre, .tn-boucle { transition: none; }
}
@media (max-width: 1000px) {
  .tn-tete__dedans, .tn-une, .tn-fin__dedans { grid-template-columns: 1fr; }
  .tn-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tn-grille { grid-template-columns: 1fr; }
  .tn-filtres { top: 88px; }
}

/* Mentions légales */
.legal { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; align-items: start; }
.legal__sommaire { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }
.legal__sommaire a { text-decoration: none; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 700; }
.legal__sommaire a:hover { box-shadow: inset 0 -0.35em 0 var(--accent); }
.legal__corps { font-size: 17px; line-height: 1.65; }
.legal__corps h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.legal__corps h2:first-child { margin-top: 0; }
.legal__corps h3 { font-size: 19px; font-weight: 800; margin: 1.6em 0 .6em; }
.legal__corps p, .legal__corps ul { margin: 0 0 1em; }
.legal__corps a { text-decoration: none; box-shadow: inset 0 -0.4em 0 var(--accent); }
.legal__fiche { margin: 0 0 1em; border-top: 1.5px solid var(--black); }
.legal__fiche div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal__fiche dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.legal__fiche dd { margin: 0; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal__sommaire { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .legal__fiche div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Animations (assets/anime.js) ─────────────────────────────────────────
   Uniquement quand le script a posé .anime sur <html> : sans script, ou si le visiteur
   réduit les animations, tout reste visible et immobile. */
.anime [data-anime] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--rang, 0) * 90ms);
}
.anime [data-anime].vu { opacity: 1; transform: none; }
.anime .hero__title[data-anime] { transform: translateY(60px) scale(.96); transition-duration: .9s, 1s; }
.anime .hero__title[data-anime].vu { transform: none; }
.anime .tn-carte[data-anime]:not(.vu), .anime .tn-une[data-anime]:not(.vu) { transform: translateY(46px) scale(.97); }
.anime .note-couverture[data-anime]:not(.vu) { transform: scale(.97); }
.anime .graphe__barre { transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.anime .tn-chiffre__valeur, .anime .note-chiffre__valeur, .anime .graphe__valeur { font-variant-numeric: tabular-nums; }
.anime .surgit { display: inline-block; animation: surgit .7s cubic-bezier(.3,.7,.3,1) .2s backwards; transform-origin: 0 60%; }
@keyframes surgit { 0% { transform: scale(1.4); } 60% { transform: scale(.94); } 100% { transform: none; } }

/* Le manifeste se surligne en turquoise quand il arrive (surligneur sous un texte noir). */
.anime .manifesto__big[data-anime] {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% .22em;
  transition: opacity .7s ease, transform .8s ease, background-size 1s cubic-bezier(.6,.1,.2,1) .45s;
}
.anime .manifesto__big[data-anime].vu { background-size: 100% .22em; }

/* Daruma : un culbuto. Il bascule, et se redresse. Puis il cligne de son œil peint. */
.daruma--culbuto { transform-origin: 50% 92%; animation: culbuto 1.6s cubic-bezier(.3,.6,.3,1) .3s both; }
@keyframes culbuto {
  0% { transform: rotate(0); } 18% { transform: rotate(-22deg); } 38% { transform: rotate(15deg); }
  56% { transform: rotate(-8deg); } 72% { transform: rotate(4deg); } 86% { transform: rotate(-1.5deg); } 100% { transform: rotate(0); }
}
.anime #daruma > circle:first-of-type { transform-box: fill-box; transform-origin: center; animation: clin 5.5s ease-in-out 2.2s infinite; }
@keyframes clin { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* L'œil « en production » des épisodes respire. */
.anime .eye--half::before { animation: souffle 2.4s ease-in-out infinite; }
@keyframes souffle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

@media (prefers-reduced-motion: reduce) {
  .daruma--culbuto, .anime #daruma > circle:first-of-type, .anime .eye--half::before, .anime .surgit { animation: none; }
}
