/* ============================================================
   directory.css — Le pavillon de l’Art · L’annuaire
   Même D.A. que la salle du serment, transposée à l’azur du
   pavillon : obsidienne froide, verre, braise bleue et givre.
   Le contenu et les crochets JS (directory.js) viennent du tpl.
   ============================================================ */

/* ── 1. Jetons de la page ───────────────────────────────────── */
.cr-directory{
  --cd-ink: #eef7ff;
  --cd-soft: #c2d8e8;
  --cd-muted: #7e9bb2;
  --cd-blue: #3f9fd8;
  --cd-ice: #8fdcff;
  --cd-gold: #d8f4ff;
  --cd-ember: #3f9fd8;
  --cd-amber: #7fd3f7;
  --cd-mint: #57e0b0;
  --cd-line: #a7dcf52e;
  --cd-line-soft: #a7dcf516;
  --cd-glass: linear-gradient(158deg, #ffffff0d, #ffffff03 46%), #081521d9;
  --cd-glass-flat: #0a1a28e6;
  --cd-flame: linear-gradient(96deg, #2a7fbf 0%, #52b6e8 48%, #d5f4ff 100%);
  --cd-display: 'Outfit', var(--font-body);
  --cd-display-big: 'Rocket Brush', 'Outfit', sans-serif;
  --cd-ease: cubic-bezier(.16, 1, .3, 1);
  --cd-ease-out: cubic-bezier(.25, .46, .45, .94);
  --cd-px: 0;
  --cd-py: 0;
  --cd-progress: 0;

  position: relative; z-index: 1; min-width: 0;
  padding: 0 var(--page-gutter) clamp(60px, 9vh, 130px);
  color: var(--cd-ink); font-family: var(--font-body);
}
.cr-directory :where(h1, h2, h3, h4, p, ol, ul, li, dl, dt, dd, figure){ margin: 0; padding: 0 }
.cr-directory :where(ol, ul){ list-style: none }
.cr-directory :where(p, ol, ul, dl){ max-width: none }
.cr-directory em{ font-style: normal }
.cr-directory a:not(.cd-button){ color: inherit; text-decoration: none }
.cr-directory :is(a, button, summary):focus-visible{ outline: 2px solid var(--cd-gold); outline-offset: 5px; border-radius: 10px }
.cr-directory img{ display: block; max-width: 100% }

/* ── 2. Atmosphère : la nef ouverte sur l’azur ─────────────── */
.cd-atmos{ position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none }
.cd-shaft{
  position: absolute; top: -30%; width: 44vw; height: 150%;
  filter: blur(52px); transform: rotate(9deg);
  animation: cd-breathe 16s ease-in-out infinite;
}
.cd-shaft--a{ left: 0; background: linear-gradient(178deg, #2f8fd630, #0a3d6400 62%) }
.cd-shaft--b{ right: 0; transform: rotate(-13deg); animation-delay: -8s; background: linear-gradient(182deg, #5cc3ef22, #0a3d6400 58%) }
.cd-arch{
  position: absolute; left: 50%; top: 6vh; bottom: 12vh; translate: -50% 0;
  width: min(62vw, 880px); border: 1px solid #9fdcf526; border-radius: 999px 999px 0 0;
  background: linear-gradient(to top, #8cd6f20d, #8cd6f200 72%);
  box-shadow: inset 0 0 90px #67c5ee0d; opacity: .75;
}
.cd-vault{ position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; user-select: none }
.cd-vault > .bi{
  font-size: clamp(300px, 38vw, 760px); line-height: 1; color: #7fc8f208;
  opacity: .55; -webkit-text-stroke: 1.4px #7fc8f224;
  filter: drop-shadow(0 0 70px #4aa8dd1a); rotate: -8deg;
  translate: calc(var(--cd-px) * 14px) calc(var(--cd-py) * 10px);
}
.cd-floor{
  position: absolute; left: -25%; right: -25%; bottom: -6%; height: 42vh;
  background:
    repeating-linear-gradient(90deg, #a7dcf514 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, #a7dcf510 0 1px, transparent 1px 74px);
  transform: perspective(420px) rotateX(74deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000c, transparent 78%);
  animation: cd-floor 18s linear infinite;
}
.cd-vignette{ position: absolute; inset: 0; background: radial-gradient(ellipse 80% 64% at 50% 38%, transparent 42%, #030c15b0 100%) }
.cd-spark{
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, #f2fbff, #7fd3f7 55%, #3f9fd800);
  box-shadow: 0 0 16px 3px #5cc3ef5c;
  animation: cd-twinkle 9s ease-in-out infinite;
  translate: calc(var(--cd-px) * -10px) calc(var(--cd-py) * -8px);
}
.cd-spark--a{ left: 12%; top: 26% }
.cd-spark--b{ right: 14%; top: 34%; animation-delay: -3.4s }
.cd-spark--c{ left: 42%; bottom: 24%; animation-delay: -6.6s }
.cd-bar{
  position: absolute; top: 24%; right: 15%; width: 2px; height: clamp(90px, 16vh, 190px);
  background: linear-gradient(#7fd3f700, #7fd3f766, #7fd3f700);
  translate: calc(var(--cd-px) * 6px) calc(var(--cd-py) * 8px);
}
.cd-bar--b{ top: auto; bottom: 10%; right: auto; left: 10%; height: clamp(60px, 11vh, 140px); background: linear-gradient(#d5f4ff00, #d5f4ff4d, #d5f4ff00) }

/* ── 3. Fil d’Ariane ───────────────────────────────────────── */
.cd-top{
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  max-width: 1580px; margin-inline: auto;
  padding: 22px 0 0; font-size: 12.5px; color: var(--cd-muted);
}
.cd-top a{ display: inline-flex; align-items: center; gap: 7px; transition: color .25s var(--cd-ease) }
.cd-top a:hover{ color: var(--cd-gold) }
.cd-top .bi-chevron-right{ font-size: 10px; opacity: .5 }
.cd-top span[aria-current]{ color: var(--cd-soft) }

/* ── 4. La tribune : l’annuaire se présente ────────────────── */
.cd-hero{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(28px, 4.4vw, 84px); align-items: center;
  max-width: 1580px; margin-inline: auto;
  padding: clamp(52px, 10vh, 120px) 0 clamp(40px, 7vh, 92px);
  container-type: inline-size;
}
.cd-wordmark{
  position: absolute; right: 0; bottom: -2%;
  translate: calc(var(--cd-progress) * -30px) 0;
  font-family: var(--cd-display-big); font-weight: 400;
  font-size: clamp(66px, 10.4vw, 196px); line-height: .8; letter-spacing: .01em;
  white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1.2px #9fdcf522;
  pointer-events: none; user-select: none;
}
.cd-hero-copy{ position: relative; min-width: 0 }
.cd-kicker{
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--cd-line); background: #ffffff07;
  font-family: var(--cd-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--cd-amber);
}
.cd-kicker > i{
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--cd-blue), transparent);
  box-shadow: 0 0 14px #3f9fd88c;
}
.cr-directory .cd-hero h1{
  margin-top: clamp(22px, 3vh, 34px);
  font-family: var(--cd-display-big)!important; font-weight: 400;
  font-size: clamp(38px, 8.6cqi, 106px); line-height: 1.16; letter-spacing: -.01em;
  text-wrap: balance;
}
.cd-hero h1 em{
  display: inline-block;
  background: var(--cd-flame); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: cd-shimmer 9s ease-in-out infinite;
}
.cd-hero-copy > p{
  margin-top: clamp(20px, 3vh, 32px); max-width: 55ch;
  font-size: clamp(16px, 1.12vw, 19px); line-height: 1.85; color: var(--cd-soft);
}
.cd-hero-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(26px, 3.4vh, 40px) }
.cd-seal{ display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--cd-muted) }
.cd-seal .bi{ color: var(--cd-mint); font-size: 15px }

.cd-button{
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 15px 27px; border: 1px solid #bfeaff52; border-radius: 999px;
  background: var(--cd-flame); background-size: 170% 100%; background-position: 0 0;
  color: #04121d; font: inherit; font-size: 15px; font-weight: 650;
  cursor: pointer;
  box-shadow: 0 16px 38px #2a7fbf4d, inset 0 1px 0 #ffffffc4;
  transition: translate .3s var(--cd-ease), box-shadow .3s var(--cd-ease), background-position .45s var(--cd-ease);
}
.cd-button:hover{
  translate: 0 -2px; background-position: 100% 0;
  box-shadow: 0 24px 50px #2a7fbf66, inset 0 1px 0 #ffffffc4;
}
.cd-button--ghost{
  background: #ffffff07; color: var(--cd-soft);
  border: 1px solid var(--cd-line); box-shadow: none;
}
.cd-button--ghost:hover{ border-color: #7fd3f766; color: var(--cd-gold); background: #ffffff0d; box-shadow: none }
.cd-text-link{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 550; letter-spacing: .02em; color: var(--cd-soft);
  transition: color .25s var(--cd-ease), gap .25s var(--cd-ease);
}
.cd-text-link:hover{ color: var(--cd-gold); gap: 12px }

/* Les compteurs du pavillon : une colonne de plaques. */
.cd-hero-stats{
  position: relative; display: grid; gap: 0;
  padding: clamp(12px, 1.6vw, 22px) clamp(24px, 2.4vw, 38px);
  border-radius: 28px; border: 1px solid var(--cd-line);
  background: var(--cd-glass);
  box-shadow: 0 34px 80px #00000040, inset 0 1px 0 #ffffff12;
  overflow: hidden;
}
.cd-hero-stats::before{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at 100% 0%, #3f9fd826, transparent 64%);
}
.cd-hero-stats::after{
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 0 68%, #8fdcff66 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cd-spin 14s linear infinite;
  opacity: .8;
}
.cd-hero-stats > div{
  position: relative; z-index: 1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 2vw, 26px) 0;
}
.cd-hero-stats > div + div{ border-top: 1px solid var(--cd-line-soft) }
.cd-hero-stats dt{
  font-family: var(--cd-display); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cd-muted);
}
.cd-hero-stats dd{
  font-size: clamp(32px, 3.6vw, 58px); font-weight: 500; letter-spacing: -.03em;
  color: var(--cd-gold); font-variant-numeric: tabular-nums;
}

/* ── 5. Le carnet : filtres et plaques ─────────────────────── */
.cd-browse{ position: relative; z-index: 1; max-width: 1580px; margin-inline: auto; padding-top: clamp(48px, 8vh, 104px) }
.cd-browse-head{
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px 28px; padding-bottom: clamp(20px, 3vh, 34px);
}
.cr-directory .cd-browse h2, .cr-directory .cd-call h2{
  margin-top: 18px;
  font-family: var(--cd-display-big)!important; font-weight: 400;
  line-height: 1.14; letter-spacing: -.01em;
}
.cr-directory .cd-browse h2{ font-size: clamp(30px, 3.8vw, 58px) }
.cr-directory .cd-call h2{ font-size: clamp(30px, 3.5vw, 54px) }
.cd-browse h2 em, .cd-call h2 em{
  display: inline-block;
  background: var(--cd-flame); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: cd-shimmer 9s ease-in-out infinite;
}
.cd-browse-count{
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border-radius: 999px; border: 1px solid var(--cd-line);
  background: #ffffff06; font-size: 13px; font-weight: 550; color: var(--cd-soft);
  white-space: nowrap;
}
.cd-browse-count .bi{ color: var(--cd-amber); font-size: 13px }

.cd-filters{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vh, 40px) }
.cd-filter{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--cd-line); background: #ffffff05;
  font-size: 13.5px; font-weight: 550; color: var(--cd-soft);
  transition: border-color .25s var(--cd-ease), color .25s var(--cd-ease), background .25s var(--cd-ease), translate .25s var(--cd-ease);
}
.cd-filter:hover{ border-color: #7fd3f759; color: var(--cd-gold); translate: 0 -1px }
.cd-filter.is-current{ border-color: #7fd3f780; background: #3f9fd821; color: var(--cd-ink); box-shadow: inset 0 0 0 1px #7fd3f722 }
.cd-filter-count{
  display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px;
  border-radius: 999px; background: #ffffff0f;
  font-family: var(--cd-display); font-size: 12px; font-weight: 650;
  color: var(--cd-muted); font-variant-numeric: tabular-nums;
}
.cd-filter.is-current .cd-filter-count{ background: #7fd3f72e; color: var(--cd-gold) }

.cd-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px) }
.cd-card{ position: relative; min-width: 0 }
.cd-card-link{
  position: relative; display: grid; gap: 16px; align-content: start; height: 100%;
  padding: clamp(24px, 2.1vw, 34px); border-radius: 28px;
  border: 1px solid var(--cd-line); background: var(--cd-glass);
  box-shadow: 0 22px 52px #020a1233, inset 0 1px 0 #ffffff0e;
  overflow: hidden;
  transition: translate .35s var(--cd-ease), border-color .35s var(--cd-ease), box-shadow .35s var(--cd-ease);
}
.cd-card-link::before{
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, #3f9fd826, transparent 62%);
  transition: opacity .35s var(--cd-ease);
}
.cd-card-link:hover, .cd-card-link:focus-visible{
  translate: 0 -4px; border-color: #7fd3f759;
  box-shadow: 0 30px 66px #020a1259, inset 0 1px 0 #ffffff14;
}
.cd-card-link:hover::before, .cd-card-link:focus-visible::before{ opacity: 1 }

.cd-card-head{ position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 15px }
.cd-ava{
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid #7fd3f74d; background: linear-gradient(150deg, #3f9fd82e, #081521);
  overflow: hidden; font-family: var(--cd-display); font-size: 21px; font-weight: 650;
  color: var(--cd-gold); box-shadow: 0 0 0 4px #7fd3f70d, 0 10px 24px #020a1240;
}
.cd-ava img{ width: 100%; height: 100%; object-fit: cover }
.cd-id{ display: grid; gap: 3px; min-width: 0 }
.cd-id strong{
  font-family: var(--cd-display); font-size: clamp(19px, 1.5vw, 24px);
  font-weight: 600; letter-spacing: -.02em; color: var(--cd-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cd-id small{ font-size: 13.5px; color: var(--cd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cd-new{
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid #57e0b03d; background: #57e0b012;
  font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cd-mint);
}
.cd-new .bi{ font-size: 10px }
.cd-card-head + .cd-content{ margin-top: -2px }
.cd-content{ position: relative; font-size: 15px; line-height: 1.6; color: var(--cd-muted) }
.cd-card-head:has(.cd-new) .cd-id{ padding-right: 74px }

.cd-tags{ display: flex; flex-wrap: wrap; gap: 6px }
.cd-tag{
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid #a7dcf52b; background: #ffffff07;
  font-size: 12.5px; font-weight: 550; letter-spacing: .02em; color: var(--cd-soft);
}

.cd-latest{
  display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 13px;
  padding: 11px; border-radius: 16px;
  border: 1px solid var(--cd-line-soft); background: #ffffff04;
}
.cd-latest-shot{
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--cd-line-soft);
  background: radial-gradient(ellipse at 50% 30%, #3f9fd82b, #081521);
  color: #7fd3f7a6;
}
.cd-latest-shot img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.cd-latest-shot .bi{ font-size: 24px }
.cd-latest-copy{ display: grid; gap: 4px; min-width: 0 }
.cd-latest-copy small{ display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .04em; color: var(--cd-muted) }
.cd-latest-copy small .bi{ color: var(--cd-amber); font-size: 13px }
.cd-latest-copy strong{
  font-size: 14px; line-height: 1.45; font-weight: 550; color: var(--cd-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.cd-stats{
  display: flex; align-items: flex-end; gap: 20px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cd-line-soft);
}
.cd-stat{ display: grid; gap: 1px }
.cd-stat strong{
  font-family: var(--cd-display); font-size: 19px; font-weight: 600;
  letter-spacing: -.02em; color: var(--cd-ink); font-variant-numeric: tabular-nums;
}
.cd-stat small{ font-size: 12px; letter-spacing: .04em; color: var(--cd-muted) }
.cd-open{
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 13.5px; font-weight: 600; color: var(--cd-amber);
  transition: gap .25s var(--cd-ease), color .25s var(--cd-ease);
}
.cd-card-link:hover .cd-open, .cd-card-link:focus-visible .cd-open{ gap: 10px; color: var(--cd-gold) }

/* ── 6. Le carnet vide : le pavillon attend ses voix ───────── */
.cd-empty{
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: clamp(44px, 6.6vh, 76px) clamp(22px, 4vw, 52px);
  border-radius: 28px; border: 1px dashed #a7dcf52e;
  background:
    radial-gradient(ellipse 62% 70% at 50% 0%, #3f9fd82e, transparent 66%),
    linear-gradient(180deg, #ffffff05, transparent 62%);
}
.cd-empty-mark{
  position: relative; isolation: isolate;
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px;
  border: 1px solid #7fd3f73d; background: #3f9fd814;
  color: var(--cd-amber); font-size: 27px;
  box-shadow: 0 0 34px #3f9fd83d;
  animation: cd-beacon 4.6s ease-in-out infinite;
}
.cd-empty-mark::before, .cd-empty-mark::after{
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px dashed #7fd3f73d; z-index: -1;
}
.cd-empty-mark::before{ inset: -16px; animation: cd-spin 22s linear infinite }
.cd-empty-mark::after{ inset: -30px; border-color: #7fd3f71f; animation: cd-spin 34s linear infinite reverse }
.cr-directory .cd-empty h2{
  font-family: var(--cd-display-big)!important; font-weight: 400;
  font-size: clamp(26px, 3vw, 44px); line-height: 1.16; letter-spacing: -.01em;
  max-width: 26ch; text-wrap: balance;
}
.cd-empty p{ max-width: 58ch; font-size: 15.5px; line-height: 1.8; color: var(--cd-soft) }
.cd-empty-actions{ display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px }

/* ── 7. L’appel : le pavillon recrute ──────────────────────── */
.cd-call{
  position: relative; z-index: 1; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; align-items: center;
  gap: clamp(24px, 4vw, 60px);
  max-width: 1580px; margin: clamp(48px, 10vh, 124px) auto 0;
  padding: clamp(34px, 4vw, 64px);
  border-radius: 30px; border: 1px solid #7fd3f73d;
  background:
    radial-gradient(ellipse 66% 120% at 100% 0%, #3f9fd82b, transparent 62%),
    linear-gradient(158deg, #ffffff0a, #ffffff02 46%), #081521d9;
  box-shadow: 0 38px 90px #020a124d, inset 0 1px 0 #ffffff12;
}
.cd-call::before{
  content: ""; position: absolute; right: -12%; top: 50%; translate: 0 -50%;
  width: min(46vw, 520px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid #7fd3f71f;
  box-shadow: 0 0 0 34px #7fd3f70a, 0 0 0 68px #7fd3f705;
  pointer-events: none;
}
.cd-call > *{ position: relative; z-index: 1 }
.cd-call p{ margin-top: 16px; max-width: 58ch; font-size: 16.5px; line-height: 1.9; color: var(--cd-soft) }
.cd-call-actions{ display: flex; flex-direction: column; align-items: flex-start; gap: 14px }
.cd-call-actions .cd-button{ width: 100% }

/* ── 8. Mouvements ─────────────────────────────────────────── */
/* Le héros se pose en cascade : filigrane, puis chaque voix du propos. */
.cd-motion .cd-wordmark{ animation: cd-mark-in 1.4s var(--cd-ease) .1s both }
.cd-motion .cd-hero-copy > :not([aria-hidden]){ animation: cd-rise .9s var(--cd-ease) both }
.cd-motion .cd-hero-copy > :nth-child(1){ animation-delay: .12s }
.cd-motion .cd-hero-copy > :nth-child(2){ animation-delay: .26s }
.cd-motion .cd-hero-copy > :nth-child(3){ animation-delay: .4s }
.cd-motion .cd-hero-copy > :nth-child(4){ animation-delay: .54s }
.cd-motion .cd-hero-copy > :nth-child(5){ animation-delay: .66s }
.cd-motion .cd-hero-stats > div{ animation: cd-rise .8s var(--cd-ease) both }
.cd-motion .cd-hero-stats > div:nth-child(1){ animation-delay: .5s }
.cd-motion .cd-hero-stats > div:nth-child(2){ animation-delay: .58s }
.cd-motion .cd-hero-stats > div:nth-child(3){ animation-delay: .66s }

.cd-motion .cd-reveal{
  opacity: 0; translate: 0 22px;
  transition: opacity .8s var(--cd-ease), translate .9s var(--cd-ease);
  transition-delay: var(--cd-rise-delay, 0s);
}
.cd-motion .cd-reveal.is-lit{ opacity: 1; translate: 0 0 }
/* L’anneau de l’appel respire une fois la plaque allumée. */
.cd-motion .cd-call.is-lit::before{ animation: cd-ring 8s ease-in-out 1.4s infinite }

@keyframes cd-rise{ from { opacity: 0; translate: 0 24px } to { opacity: 1; translate: 0 0 } }
@keyframes cd-mark-in{ from { opacity: 0; scale: .94 } to { opacity: 1; scale: 1 } }
@keyframes cd-ring{ 0%, 100% { opacity: 1; scale: 1 } 50% { opacity: .7; scale: 1.035 } }
@keyframes cd-breathe{ 0%, 100% { opacity: .72 } 50% { opacity: 1 } }
@keyframes cd-floor{ to { background-position: 92px 0, 0 74px } }
@keyframes cd-twinkle{ 0%, 100% { opacity: .25; scale: .8 } 50% { opacity: .9; scale: 1 } }
@keyframes cd-spin{ to { rotate: 1turn } }
@keyframes cd-shimmer{ 0%, 100% { background-position: 0 0 } 50% { background-position: 100% 0 } }
@keyframes cd-beacon{
  0%, 100% { box-shadow: 0 0 26px #3f9fd833, inset 0 0 0 #7fd3f700 }
  50% { box-shadow: 0 0 46px #3f9fd859, inset 0 0 18px #7fd3f71f }
}
@media (prefers-reduced-motion: reduce){
  .cr-directory *, .cr-directory *::before, .cr-directory *::after{
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .cd-motion .cd-reveal:not(.is-lit){ opacity: 1; translate: none }
}

/* ── 9. Adaptations ────────────────────────────────────────── */
@media (min-width: 1900px){
  .cd-top, .cd-hero, .cd-browse, .cd-call{ max-width: 1720px }
  .cd-wordmark{ font-size: clamp(150px, 9vw, 220px) }
}
@media (min-width: 2400px){
  .cd-top, .cd-hero, .cd-browse, .cd-call{ max-width: 1980px }
  .cd-wordmark{ font-size: clamp(180px, 8vw, 250px) }
}
@media (max-width: 1120px){
  .cd-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 960px){
  .cd-hero{ grid-template-columns: minmax(0, 1fr) }
  .cd-hero-stats{ max-width: 560px }
  .cd-wordmark{ right: 0; bottom: -1%; opacity: .5 }
}
@media (max-width: 760px){
  .cd-grid{ grid-template-columns: minmax(0, 1fr) }
  .cd-call{ grid-template-columns: minmax(0, 1fr) }
  .cd-call-actions{ flex-direction: row; flex-wrap: wrap; align-items: center }
  .cd-call-actions .cd-button{ width: auto }
}
@media (max-width: 700px){
  .cr-directory .cd-hero h1{ font-size: clamp(36px, 11vw, 58px) }
  .cd-wordmark{ font-size: clamp(56px, 16vw, 96px); opacity: .4 }
}
@media (max-width: 540px){
  .cd-hero-actions .cd-button{ width: 100% }
  .cd-latest{ grid-template-columns: minmax(0, 1fr) }
  .cd-latest-shot{ width: 100% }
  .cd-browse-count{ width: 100%; justify-content: center }
  .cd-card-head:has(.cd-new) .cd-id{ padding-right: 0 }
  .cd-new{ position: static; translate: none; margin-top: 6px }
  .cd-empty-actions .cd-button{ width: 100% }
  .cd-wordmark{ display: none }
}

/* ── 10. Thème clair ───────────────────────────────────────── */
html[data-theme="light"] .cr-directory{
  --cd-ink: #0d2a3d;
  --cd-soft: #34546b;
  --cd-muted: #647f93;
  --cd-gold: #0a5a86;
  --cd-amber: #0d6ca3;
  --cd-blue: #1b78b3;
  --cd-ice: #2e9bd6;
  --cd-line: #266b8f33;
  --cd-line-soft: #266b8f1a;
  --cd-flame: linear-gradient(96deg, #1b78b3 0%, #2e9bd6 52%, #0a5d91 100%);
  --cd-glass: linear-gradient(158deg, #fffffff2, #f1fbffc4 46%), #f1fbfff0;
  --cd-glass-flat: #ffffffea;
}
html[data-theme="light"] .cd-atmos{ opacity: .5 }
html[data-theme="light"] .cd-arch{ border-color: #0d6ca326; background: linear-gradient(to top, #0d6ca30d, transparent 72%) }
html[data-theme="light"] .cd-vault > .bi{ color: #0d6ca308; -webkit-text-stroke-color: #0d6ca320 }
html[data-theme="light"] .cd-vignette{ background: radial-gradient(ellipse 80% 64% at 50% 38%, transparent 46%, #2a5a7a14 100%) }
html[data-theme="light"] .cd-wordmark{ -webkit-text-stroke-color: #0d6ca324 }
html[data-theme="light"] .cd-kicker{ background: #0d6ca30a }
html[data-theme="light"] .cd-button{ box-shadow: 0 14px 32px #1b78b333, inset 0 1px 0 #ffffffc4 }
html[data-theme="light"] .cd-button--ghost{ background: #0d6ca30a }
html[data-theme="light"] .cd-button--ghost:hover{ background: #0d6ca312 }
html[data-theme="light"] .cd-hero-stats{ box-shadow: 0 26px 64px #266b8f1a, inset 0 1px 0 #ffffffb0 }
html[data-theme="light"] .cd-browse-count{ background: #0d6ca30a }
html[data-theme="light"] .cd-filter{ background: #0d6ca308 }
html[data-theme="light"] .cd-filter.is-current{ background: #0d6ca314; color: #0a5a86 }
html[data-theme="light"] .cd-filter-count{ background: #0d6ca314 }
html[data-theme="light"] .cd-filter.is-current .cd-filter-count{ background: #0d6ca320; color: #0a5a86 }
html[data-theme="light"] .cd-card-link{ box-shadow: 0 18px 44px #266b8f14, inset 0 1px 0 #ffffffb0 }
html[data-theme="light"] .cd-card-link:hover{ box-shadow: 0 26px 58px #266b8f24 }
html[data-theme="light"] .cd-ava{ background: linear-gradient(150deg, #7fd3f738, #ffffff) }
html[data-theme="light"] .cd-tag{ border-color: #266b8f2b; background: #0d6ca30a }
html[data-theme="light"] .cd-latest{ background: #0d6ca306 }
html[data-theme="light"] .cd-empty{ border-color: #266b8f33; background: radial-gradient(ellipse 62% 70% at 50% 0%, #7fd3f72e, transparent 66%), linear-gradient(180deg, #ffffffb0, #f1fbff00 62%) }
html[data-theme="light"] .cd-call{ background: radial-gradient(ellipse 66% 120% at 100% 0%, #7fd3f72e, transparent 62%), linear-gradient(158deg, #fffffff2, #f1fbffc4 46%), #f1fbfff0 }
