

::view-transition-group(essai-visuel) {
  animation-duration: 0.42s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }

.stories-corps .chemin { animation: none; }
.stories-corps .chemin li {
  animation: essai-etape 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.stories-corps .chemin li::before {
  transform-origin: top;
  animation: essai-trait 0.4s ease-out both;
}
.stories-corps .chemin li::after { animation: essai-point 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.stories-corps .chemin li:nth-child(1), .stories-corps .chemin li:nth-child(1)::after { animation-delay: 0.05s; }
.stories-corps .chemin li:nth-child(2), .stories-corps .chemin li:nth-child(2)::after { animation-delay: 0.3s; }
.stories-corps .chemin li:nth-child(3), .stories-corps .chemin li:nth-child(3)::after { animation-delay: 0.55s; }
.stories-corps .chemin li:nth-child(4), .stories-corps .chemin li:nth-child(4)::after { animation-delay: 0.8s; }
.stories-corps .chemin li:nth-child(5), .stories-corps .chemin li:nth-child(5)::after { animation-delay: 1.05s; }
.stories-corps .chemin li:nth-child(6), .stories-corps .chemin li:nth-child(6)::after { animation-delay: 1.3s; }
.stories-corps .chemin li:nth-child(7), .stories-corps .chemin li:nth-child(7)::after { animation-delay: 1.55s; }
.stories-corps .chemin li:nth-child(1)::before { animation-delay: 0.25s; }
.stories-corps .chemin li:nth-child(2)::before { animation-delay: 0.5s; }
.stories-corps .chemin li:nth-child(3)::before { animation-delay: 0.75s; }
.stories-corps .chemin li:nth-child(4)::before { animation-delay: 1s; }
.stories-corps .chemin li:nth-child(5)::before { animation-delay: 1.25s; }
.stories-corps .chemin li:nth-child(6)::before { animation-delay: 1.5s; }
@keyframes essai-etape { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes essai-trait { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes essai-point { from { transform: scale(0); } to { transform: scale(1); } }

.quiz-resultat { perspective: 1100px; }
.quiz-resultat-carte {
  position: relative;
  overflow: hidden;
  animation: essai-retourne 0.85s cubic-bezier(0.2, 0.8, 0.2, 1.12) both;
}
.quiz-resultat-carte::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.4) 45%, transparent 60%);
  background-size: 250% 100%;
  background-position: 130% 0;
  animation: essai-reflet 1.3s 0.75s ease-out both;
}
@keyframes essai-retourne {
  from { transform: rotateY(-180deg) scale(0.92); opacity: 0.4; }
  55%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}
@keyframes essai-reflet { to { background-position: -60% 0; } }

.cjc-ligne {
  min-height: 52px;
  margin: 0.4rem 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--texte);
  background: var(--carte);
  border: 1.5px solid var(--bordure);
  border-radius: 12px;
}
.cjc-ligne { flex-wrap: wrap; row-gap: 0.25rem; }
.cjc-ligne .cjc-plus { margin-left: auto; order: 4; }
.cjc-ligne .cjc-apercu {
  order: 5;
  flex: 1 1 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow: hidden;
}
.cjc-etiquette { font-size: 0.74rem; }
.cjc-pastille {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: conic-gradient(#19d3c5, #7c5cff, #ff5e9c, #19d3c5);
  animation: essai-tourne 4s linear infinite;
}
.cjc-quand {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: color-mix(in srgb, #7c5cff 14%, transparent);
  color: #5b3fe0;
  white-space: nowrap;
}
.cjc-billets {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 0.1rem 0.7rem;
  scrollbar-width: none;
}
.cjc-billets::-webkit-scrollbar { display: none; }
.cjc-billet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 min(78%, 15.5rem);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  min-height: 0;
  border: 0;
  border-radius: 14px;
  padding: 0;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 15, 35, 0.16);
}
.cjc-billet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 80% at 85% 10%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 22, 0.05), rgba(10, 10, 22, 0.45));
  animation: essai-lueur 9s ease-in-out infinite alternate;
}
.cjc-billet[data-gradient="1"] { background: var(--grad-1); }
.cjc-billet[data-gradient="2"] { background: var(--grad-2); }
.cjc-billet[data-gradient="3"] { background: var(--grad-3); }
.cjc-billet[data-gradient="4"] { background: var(--grad-4); }
.cjc-billet[data-gradient="5"] { background: var(--grad-5); }
.cjc-billet[data-gradient="6"] { background: var(--grad-6); }
.cjc-billet[data-gradient="7"] { background: var(--grad-7); }
.cjc-billet:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cjc-billet-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.5rem 0.3rem;
  background: rgba(255, 255, 255, 0.14);
  border-right: 2px dashed rgba(255, 255, 255, 0.55);
  text-align: center;
}
.cjc-billet-date small { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.cjc-billet-date strong { font-size: 1.35rem; line-height: 1; }
.cjc-billet-corps { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.55rem 0.7rem 0.6rem; min-width: 0; }
.cjc-billet-etat {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.24);
}
.cjc-billet-etat.direct { background: #fff; color: #1b1830; }
.cjc-billet-etat.direct::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #ff3b6b;
  animation: essai-pouls 1.4s ease-in-out infinite;
}
.cjc-billet-etat.fait { background: #ffd166; color: #3a2a00; }
.cjc-billet-qui { font-weight: 900; font-size: 0.9rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25); }
.cjc-billet-quoi {
  font-size: 0.78rem;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
@keyframes essai-tourne { to { transform: rotate(1turn); } }
@keyframes essai-pouls { 50% { opacity: 0.25; } }
@keyframes essai-lueur { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

@media (prefers-reduced-motion: reduce) {
  .stories-corps .chemin li,
  .stories-corps .chemin li::before,
  .stories-corps .chemin li::after,
  .quiz-resultat-carte,
  .quiz-resultat-carte::after,
  .cjc-pastille,
  .cjc-billet::before,
  .cjc-billet-etat.direct::before { animation: none !important; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}




:root {
  --grad-1: linear-gradient(160deg, #0b0f23 0%, #3b2a9e 55%, #6e4cff 100%);
  --grad-2: linear-gradient(120deg, #2158cb, #0b7a72);
  --grad-3: linear-gradient(200deg, #0b0f23 0%, #0d6d78 60%, #0b7a72 100%);
  --grad-4: linear-gradient(60deg, #6e4cff, #7c5cf0);
  --grad-5: linear-gradient(160deg, #182659 0%, #4f2db7 55%, #7c5cf0 100%);
  --grad-6: linear-gradient(120deg, #0d6d78, #0b7a72 55%, #5b3be6);
  --voile:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(11, 15, 35, 0) 35%, rgba(11, 15, 35, 0.55));
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.post-visuel[data-gradient="1"] { background: var(--grain), var(--voile), var(--grad-1); }
.post-visuel[data-gradient="2"] { background: var(--grain), var(--voile), var(--grad-2); }
.post-visuel[data-gradient="3"] { background: var(--grain), var(--voile), var(--grad-3); }
.post-visuel[data-gradient="4"] { background: var(--grain), var(--voile), var(--grad-4); }
.post-visuel[data-gradient="5"] { background: var(--grain), var(--voile), var(--grad-5); }
.post-visuel[data-gradient="6"] { background: var(--grain), var(--voile), var(--grad-6); }
.post-visuel[data-gradient="7"] { background: var(--grain), var(--voile), var(--grad-7); }


@media (min-width: 700px) {
  .post-visuel:not(.carte-entree) { max-height: 360px; }
  .post-stat { font-size: clamp(4rem, 13vw, 7.5rem); }
  .post-stat-label { font-size: 1.1rem; }
}

.post-nouveau {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.story-nom { margin-top: 0.3rem; }

@media (max-width: 480px) {
  .post-entete {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    row-gap: 0.3rem;
    align-items: center;
  }
  .post-entete > .mini-anneau { grid-row: 1 / span 2; }
  .post-entete > .post-discipline {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
    max-width: 100%;
    font-size: 0.62rem;
    padding: 0.12rem 0.5rem;
  }
}

:root { --rythme: 16px; }
@media (min-width: 700px) { :root { --rythme: 20px; } }
.ces-jours-ci { margin-top: var(--rythme); }
#accueil { padding-top: var(--rythme); padding-bottom: 0; }
#fil { padding-top: var(--rythme); }

@media (prefers-reduced-motion: no-preference) {
  .post-visuel.carte-entree::after {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    width: auto;
    height: auto;
    border-radius: 0;
    filter: none;
    opacity: 1;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 18%, rgba(63, 215, 198, 0.42) 40%, rgba(167, 139, 250, 0.48) 58%, transparent 82%);
    mix-blend-mode: screen;
    transform: translateX(-100%);
    animation: essai-aurore-passe 3s ease-out 0.6s 1 both;
  }
}
@keyframes essai-aurore-passe {
  60% { opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

