/* L'entrée en cinq temps — essai du 22/10/2026 (Laurent), piloté par intro-essai.js.
   Modèle de l'accueil d'essai : texte à gauche, visuel animé à droite, trame de points, surlignage pervenche (.hl),
   libellés en IBM Plex Mono, titres Manrope 800. Couleurs du socle uniquement (declic-system.css).
   Les animations ne jouent que sur le temps affiché (li.is-on) et s'arrêtent en mouvement réduit. */

.ie { background:
  radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.6px) 0 0 / 14px 14px,
  var(--bg); }
.ie .fil-intro__head b { background: var(--accent); }

/* ——— Un temps : le texte et son visuel ——— */
.ie-beats { align-content: center; }
.ie-beat { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 80px); align-items: center;
  max-width: 1160px !important; }
.ie-copy h2 { font-size: clamp(34px, 4.6vw, 64px) !important; line-height: 1.04 !important; }
.ie-copy h2 em { background: linear-gradient(var(--accent), var(--accent)) 0 58% / 100% .98em no-repeat !important; padding: 0 .08em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ie-copy p { max-width: 62ch !important; font-size: 14px !important; line-height: 1.7 !important; color: var(--ink) !important; }
.ie-vis { position: relative; display: grid; gap: 12px; justify-items: center; }
.ie-cap { display: flex; gap: 14px; justify-content: center; margin: 0; font: 500 10px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.ie-cap span + span::before { content: '·'; margin-right: 14px; }

/* ——— 01 · Cinq minutes : un cadran de soixante points qui se remplit ——— */
.ie-clock { position: relative; width: min(360px, 74vw); aspect-ratio: 1; display: grid; place-items: center; }
.ie-ring { position: absolute; inset: 0; }
.ie-ring i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--line);
  transform: rotate(calc(var(--i) * 6deg)) translateY(calc(min(360px, 74vw) / -2 + 10px)); }
.ie-ring i:nth-child(5n+1) { width: 13px; height: 13px; margin: -6.5px; }
.ie-beat.is-on .ie-ring i { animation: ieTick .5s ease-out both; animation-delay: calc(var(--i) * 55ms + .3s); }
@keyframes ieTick { 0% { background: var(--line); transform: rotate(calc(var(--i) * 6deg)) translateY(calc(min(360px, 74vw) / -2 + 10px)) scale(1); }
  45% { background: var(--accent); transform: rotate(calc(var(--i) * 6deg)) translateY(calc(min(360px, 74vw) / -2 + 10px)) scale(1.6); }
  100% { background: var(--ink); transform: rotate(calc(var(--i) * 6deg)) translateY(calc(min(360px, 74vw) / -2 + 10px)) scale(1); } }
.ie-clock-c { position: relative; display: grid; justify-items: center; text-align: center; }
.ie-clock-c b { font: 800 clamp(96px, 12vw, 150px)/.86 var(--display); letter-spacing: -.08em; }
.ie-clock-c span { margin-top: 8px; padding: 2px 10px; background: var(--accent); font: 600 13px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ie-clock-c small { margin-top: 6px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ie-beat.is-on .ie-clock-c { animation: ieRise .9s cubic-bezier(.2,.7,.3,1) both .2s; }
@keyframes ieRise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ——— 02 · Prenez votre temps : la voix, puis les détails qui se surlignent ——— */
.ie-talk { width: min(460px, 100%); padding: 18px; background: var(--white); border: 1px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.ie-talk-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ie-mic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); position: relative; }
.ie-mic svg { width: 20px; height: 20px; }
.ie-mic::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.ie-beat.is-on .ie-mic::after { animation: ieRing 2.6s ease-out infinite; }
@keyframes ieRing { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.5); } }
.ie-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.ie-wave i { flex: 1; height: 100%; background: var(--ink); transform: scaleY(.18); border-radius: 1px; }
.ie-beat.is-on .ie-wave i { animation: ieWave 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -97ms); }
@keyframes ieWave { 0%, 100% { transform: scaleY(.18); } 30% { transform: scaleY(.85); } 60% { transform: scaleY(.4); } }
.ie-rec { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ie-said { margin: 14px 0 12px; font: 400 14px/1.75 var(--mono); color: var(--ink); }
.ie-said span { opacity: 0; }
.ie-beat.is-on .ie-said .w1 { animation: ieIn .6s ease-out both .5s; }
.ie-beat.is-on .ie-said .w2 { animation: ieIn .6s ease-out both 1.5s; }
.ie-beat.is-on .ie-said .w3 { animation: ieIn .6s ease-out both 2.5s; }
.ie-said mark { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 58% / 0% .98em no-repeat; padding: 0 .06em; }
.ie-beat.is-on .ie-said mark { animation: ieMark .7s cubic-bezier(.2,.7,.3,1) both 3.4s; }
.ie-beat.is-on .ie-said .w3 mark { animation-delay: 3.9s; }
@keyframes ieMark { to { background-size: 100% .98em; } }
@keyframes ieIn { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
.ie-tip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ie-tip span { padding: 4px 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 12px/1.3 var(--mono); }
.ie-beat.is-on .ie-tip span { animation: ieChip 5.6s ease-out both; }
.ie-beat.is-on .ie-tip span:nth-child(2) { animation-delay: .25s; } .ie-beat.is-on .ie-tip span:nth-child(3) { animation-delay: .5s; }
@keyframes ieChip { 0%, 72% { background: var(--surface); color: var(--muted); border-color: var(--line); } 80%, 100% { background: var(--white); color: var(--ink); border-color: var(--ink); } }

/* ——— 03 · Les questions : la seconde question naît de la réponse à la première ——— */
.ie-chain { width: min(460px, 100%); display: grid; gap: 10px; }
.ie-q, .ie-a { padding: 14px 16px; font: 700 17px/1.3 var(--display); letter-spacing: -.02em; opacity: 0; }
.ie-q { background: var(--white); border: 1px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.ie-q small { display: block; margin-bottom: 6px; font: 500 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ie-a { justify-self: end; max-width: 84%; background: var(--ink); color: var(--bg); font: 400 13px/1.6 var(--mono); letter-spacing: 0; }
.ie-link { justify-self: center; width: 2px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.ie-link i { position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: 50% 0; }
.ie-beat.is-on .q1 { animation: ieRise .7s ease-out both .3s; }
.ie-beat.is-on .a1 { animation: ieRise .7s ease-out both 1.3s; }
.ie-beat.is-on .ie-link i { animation: ieDraw .8s ease-in-out both 2.2s; }
.ie-beat.is-on .q2 { animation: ieRise .7s ease-out both 2.9s; }
.ie-beat.is-on .a2 { animation: ieRise .7s ease-out both 4s; }
@keyframes ieDraw { to { transform: scaleY(1); } }

/* ——— 04 · En direct : les facettes se posent autour de vous ——— */
.ie-orbit { position: relative; width: min(400px, 82vw); aspect-ratio: 1; }
.ie-orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--outline); }
.ie-orbit-ring.r1 { inset: 18%; } .ie-orbit-ring.r2 { inset: 2%; border-style: dotted; }
.ie-beat.is-on .ie-orbit-ring.r2 { animation: ieSpin 60s linear infinite; }
@keyframes ieSpin { to { transform: rotate(360deg); } }
.ie-you { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 800 clamp(18px, 2.2vw, 24px)/1 var(--display); letter-spacing: -.04em;
  box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--accent); }
.ie-f { position: absolute; padding: 6px 10px; background: var(--white); border: 1px solid var(--ink); font: 500 12px/1.3 var(--mono); white-space: nowrap;
  transform: translate(-50%, -50%); opacity: 0; }
.ie-f.f1 { left: 50%; top: 6%; } .ie-f.f2 { left: 90%; top: 30%; } .ie-f.f3 { left: 88%; top: 72%; }
.ie-f.f4 { left: 50%; top: 95%; } .ie-f.f5 { left: 12%; top: 72%; } .ie-f.f6 { left: 13%; top: 29%; }
.ie-beat.is-on .ie-f { animation: iePop .6s cubic-bezier(.2,.8,.3,1.2) both, ieLit 6s ease-out both; }
.ie-beat.is-on .ie-f.f1 { animation-delay: .5s, .5s; } .ie-beat.is-on .ie-f.f2 { animation-delay: 1.2s, 1.2s; } .ie-beat.is-on .ie-f.f3 { animation-delay: 1.9s, 1.9s; }
.ie-beat.is-on .ie-f.f4 { animation-delay: 2.6s, 2.6s; } .ie-beat.is-on .ie-f.f5 { animation-delay: 3.3s, 3.3s; } .ie-beat.is-on .ie-f.f6 { animation-delay: 4s, 4s; }
@keyframes iePop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes ieLit { 0%, 8% { background: var(--accent); } 30%, 100% { background: var(--white); } }


/* ——— 04 · En direct (22/10, Laurent) : le rendu réel de l'interview — portrait en trame, « Votre portrait. »,
   barre « // Profil détecté », les sept facettes qui se cochent, et les fiches de facette (styles de entree-declic.css) ——— */
.ie-scene { position: relative; width: min(460px, 100%); height: 440px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); }
.ie-scene-hud { display: flex; gap: 8px; align-items: center; font: 500 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ie-tag { padding: 1px 6px; background: var(--accent); color: var(--ink); }
.ie-beat.is-on .ie-state { animation: ieBlink 1.6s steps(2, end) infinite; }
@keyframes ieBlink { 50% { color: var(--scan); } }
.ie-facets { position: absolute; top: 34px; right: 12px; width: 62%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 5px; list-style: none; margin: 0; padding: 0;
  font: 500 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.ie-facets li { display: flex; gap: 5px; padding: 1px 6px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--outline) 60%, transparent); }
.ie-facets li b { font-weight: 500; } .ie-facets li .ok { display: none; }
.ie-beat.is-on .ie-facets li { animation: ieFacetOn .5s ease-out both; animation-delay: calc(var(--k) * .55s + .9s); }
.ie-beat.is-on .ie-facets li .x { animation: ieHide .01s both; animation-delay: calc(var(--k) * .55s + .9s); }
.ie-beat.is-on .ie-facets li .ok { display: inline; animation: ieShow .01s both; animation-delay: calc(var(--k) * .55s + .9s); }
@keyframes ieFacetOn { from { color: var(--muted); border-color: color-mix(in srgb, var(--outline) 60%, transparent); } 40% { background: var(--accent); } to { color: var(--ink); border-color: var(--ink); background: var(--bg); } }
@keyframes ieHide { to { display: none; } }
@keyframes ieShow { from { opacity: 0; } to { opacity: 1; } }
.ie-fig { position: absolute; left: 8%; bottom: 14px; width: 48%; height: 82%; }
.ie-portrait { position: absolute; left: 22%; top: 62%; padding: 2px 8px; background: var(--ink); color: var(--bg); font: 500 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; z-index: 2; opacity: 0; }
.ie-beat.is-on .ie-portrait { animation: ieRise .6s ease-out both 2.2s; }
.ie-card { position: absolute; z-index: 3; width: 206px; padding: 11px 13px 13px; background: color-mix(in srgb, var(--bg) 96%, var(--white));
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 14px 28px -10px color-mix(in srgb, var(--ink) 28%, transparent); opacity: 0; }
.ie-card .cat { display: inline-flex; padding: 2px 7px; margin-bottom: 9px; background: var(--ink); color: var(--bg); font: 500 10px/1.45 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ie-card.fresh .cat { background: var(--scan); color: var(--ink); }
.ie-card h3 { margin: 0 0 6px; font: 800 20px/1.02 var(--display); letter-spacing: -.06em; }
.ie-card.fresh h3 { width: fit-content; padding: 0 .1em; background: var(--accent); }
.ie-card p { margin: 0; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.ie-card.c1 { right: 14px; top: 132px; } .ie-card.c2 { right: 30px; top: 262px; }
.ie-beat.is-on .ie-card.c1 { animation: iePopCard .7s cubic-bezier(.2,.8,.3,1.15) both 1.6s; }
.ie-beat.is-on .ie-card.c2 { animation: iePopCard .7s cubic-bezier(.2,.8,.3,1.15) both 3.1s; }
@keyframes iePopCard { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) {
  .ie-scene { height: 300px; padding: 10px; }
  .ie-facets { width: 70%; top: 30px; gap: 3px; } .ie-facets li { padding: 0 4px; }
  .ie-card { width: 160px; padding: 8px 10px; } .ie-card h3 { font-size: 15px; } .ie-card p { font-size: 12px; }
  .ie-card.c1 { top: 104px; right: 8px; } .ie-card.c2 { top: 196px; right: 16px; }
  .ie-portrait { top: 66%; left: 16%; }
}
@media (prefers-reduced-motion: reduce) { .ie-card, .ie-portrait { opacity: 1 !important; } .ie-facets li .x { display: none; } .ie-facets li .ok { display: inline; } }

/* ——— 05 · Vous gardez la main : la restitution que l'on corrige ——— */
.ie-review { width: min(460px, 100%); padding: 16px 18px; background: var(--white); border: 1px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.ie-review-head, .ie-review-foot { display: flex; justify-content: space-between; align-items: center; font: 500 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ie-review-head { padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ie-lock { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; background: var(--accent); }
.ie-lock svg { width: 12px; height: 13px; }
.ie-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 22px; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); opacity: 0; }
.ie-row b { font: 700 13px/1.3 var(--display); letter-spacing: -.02em; }
.ie-row span { font: 400 12px/1.5 var(--mono); }
.ie-row em { font-style: normal; font: 600 13px var(--mono); text-align: right; }
.ie-row s { color: var(--muted); text-decoration-thickness: 1.5px; }
.ie-beat.is-on .ie-row { animation: ieRise .6s ease-out both; }
.ie-beat.is-on .ie-row.r1 { animation-delay: .4s; } .ie-beat.is-on .ie-row.r2 { animation-delay: .8s; } .ie-beat.is-on .ie-row.r3 { animation-delay: 1.2s; } .ie-beat.is-on .ie-row.r4 { animation-delay: 1.6s; }
.ie-row.r3 s { background: linear-gradient(var(--ink), var(--ink)) 0 55% / 0 1.5px no-repeat; text-decoration: none; }
.ie-beat.is-on .ie-row.r3 s { animation: ieStrike .6s ease-in-out both 2.6s; }
@keyframes ieStrike { to { background-size: 100% 1.5px; color: var(--muted); } }
.ie-row.r3 { position: relative; }
.ie-beat.is-on .ie-row.r3 { animation: ieRise .6s ease-out both 1.2s, ieEdit 3s ease-out both 2.4s; }
@keyframes ieEdit { 0% { background: transparent; } 20%, 70% { background: color-mix(in srgb, var(--accent) 45%, transparent); } 100% { background: transparent; } }
.ie-review-foot { padding-top: 12px; color: var(--muted); }
.ie-review-foot span:last-child { padding: 6px 10px; background: var(--ink); color: var(--bg); }

/* ——— Pied : cinq repères nommés, et les deux portes ——— */
.ie-foot { max-width: 1160px !important; }
.ie-dots { gap: 12px !important; }
.ie-dots button { display: grid; gap: 7px; min-width: 64px; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.ie-dots button i { display: block; height: 2px; background: color-mix(in srgb, var(--outline) 50%, transparent); position: relative; overflow: hidden; }
.ie-dots button.is-done i { background: var(--ink); }
.ie-dots button.is-on i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; animation: fil-fill var(--beat, 7.744s) linear forwards; }
.ie-dots button span { font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ie-dots button.is-on span, .ie-dots button.is-done span { color: var(--ink); }
.ie .fil-intro__go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ie .fil-intro__go:hover { background: var(--accent); color: var(--ink); }
.ie .fil-intro__write { font-size: 12px; }

@media (max-width: 1024px) {
  .ie-beat { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .ie-vis { order: -1; }
  .ie-copy h2 { font-size: clamp(28px, 8vw, 38px) !important; margin-bottom: 10px !important; }
  .ie-copy p { font-size: 13px !important; }
  .ie-clock { width: min(220px, 56vw); }
  .ie-ring i { transform: rotate(calc(var(--i) * 6deg)) translateY(calc(min(220px, 56vw) / -2 + 8px)); width: 6px; height: 6px; margin: -3px; }
  .ie-ring i:nth-child(5n+1) { width: 9px; height: 9px; margin: -4.5px; }
  @keyframes ieTick { 0% { background: var(--line); } 45% { background: var(--accent); } 100% { background: var(--ink); } }
  .ie-clock-c b { font-size: 84px; }
  .ie-orbit { width: min(280px, 72vw); }
  .ie-talk, .ie-review { padding: 12px 14px; }
  .ie-said { font-size: 12px; margin: 10px 0 8px; }
  .ie-q, .ie-a { padding: 10px 12px; font-size: 14px; } .ie-a { font-size: 12px; }
  .ie-link { height: 18px; }
  .ie-row { grid-template-columns: 92px minmax(0, 1fr) 18px; padding: 7px 0; }
  .ie-cap { display: none; }
  .ie-dots { flex-wrap: wrap; } .ie-dots button { min-width: 0; flex: 1; } .ie-dots button span { display: none; }
}
@media (max-height: 760px) and (max-width: 1024px) { .ie-vis { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ie *, .ie *::before, .ie *::after { animation: none !important; }
  .ie-said span, .ie-q, .ie-a, .ie-f, .ie-row, .ie-clock-c { opacity: 1 !important; }
  .ie-ring i { background: var(--ink); }
  .ie-said mark { background-size: 100% .98em; }
  .ie-link i { transform: none; }
}
/* Aperçu de l'essai (?apercu=1) : la fenêtre de création de compte reste fermée, pour relire la présentation sans compte. */
.ie-apercu .login-dialog { display: none !important; }
/* Les facettes sont des éléments de liste : la règle des temps de intro.css (.fil-intro__beats li) ne doit pas les masquer. */
.fil-intro__beats .ie-facets li { grid-area: auto; max-width: none; width: auto; margin: 0; opacity: 1; transform: none; filter: none; transition: none; }
.ie-cap { flex-wrap: wrap; } .ie-cap span { white-space: nowrap; }
@media (max-width: 1024px) {
  .ie-scene { height: 340px; }
  .ie-card { width: 152px; padding: 7px 9px 8px; }
  .ie-card .cat { margin-bottom: 5px; }
  .ie-card p { display: none; }
  .ie-card.c1 { top: 196px; right: 8px; } .ie-card.c2 { top: 262px; right: 22px; }
  .ie-fig { left: 2%; width: 50%; height: 78%; }
  .ie-portrait { top: 70%; left: 8%; }
}

/* ——— Écran 1 (23/10, Laurent) : la poussière qui s'échappe du cadran, et « les premières minutes » ——— */
.ie-dust { position: absolute; inset: -48px; width: calc(100% + 96px); height: calc(100% + 96px); pointer-events: none; z-index: 2; }
.ie-clock-c small:first-child { margin: 0 0 4px; }
.ie-clock-c span { max-width: 15ch; text-align: center; }
/* Écran 2 : le titre est une phrase entière, un cran plus petit pour tenir en quatre lignes. */
.ie-beat[data-k="details"] .ie-copy h2 { font-size: clamp(30px, 3.7vw, 52px) !important; }
.ie-beat[data-k="temps"] .ie-cap { margin-top: 30px; position: relative; z-index: 3; }
@media (max-width: 1024px) { .ie-clock-c small:last-child { display: none; } .ie-clock-c span { font-size: 11px; } }
