/* « Ma page » : l'adresse, la scène d'analyse, la page modifiable. Couleurs et polices : app.css. La page elle-même : stand.css. */

/* ---------- 1. l'adresse ---------- */
.at-start { display: grid; justify-items: center; align-content: center; gap: 26px; min-height: min(620px, calc(100dvh - 300px)); padding: 20px 0 60px; text-align: center; animation: rise .6s var(--ease) both; }
.at-start h1 { font-size: clamp(40px, 5.4vw, 76px); max-width: 14ch; text-wrap: balance; } .at-start .urlform { width: min(640px, 100%); margin-top: 10px; } .at-start .form-err { margin-top: -8px; }

/* ---------- 2. la scène ---------- */
html.an-on { overflow: hidden; }
.an { --glow: var(--accent); position: fixed; inset: 0; z-index: 200; display: grid; grid-template: auto 1fr / minmax(290px, 27vw) 1fr; gap: 0 24px; padding: 0 clamp(18px, 3.4vw, 56px) clamp(16px, 3vh, 36px); color: #fff; background: var(--night); opacity: 0; transition: opacity .45s var(--ease); overflow: hidden; isolation: isolate; }
.an.on { opacity: 1; } .an.out { opacity: 0; pointer-events: none; }
.an-sky { position: absolute; inset: 0; z-index: -1; } .an-sky i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 46%, transparent), transparent); left: -24vmax; bottom: -34vmax; transition: background 1.4s; animation: drift1 16s ease-in-out infinite alternate; } .an-sky i + i { left: auto; bottom: auto; right: -22vmax; top: -36vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--a2) 30%, transparent), transparent); animation: drift2 20s ease-in-out infinite alternate; }
.an-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-height: 72px; } .an-host { font-weight: 550; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .an-clock { margin-left: auto; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.72); } .an-x { min-height: 44px; padding: 0 18px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.12); font-weight: 550; } .an-x:hover { background: rgba(255,255,255,.2); }
.an-side { display: flex; flex-direction: column; gap: clamp(16px, 3vh, 30px); min-height: 0; padding-top: 2vh; }
.an-say { font: 400 clamp(26px, 2.5vw, 40px)/1.12 var(--serif); letter-spacing: -.01em; min-height: 2.24em; text-wrap: balance; } .an-count { min-height: 1.5em; margin-top: -10px; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; } .an-count b { font-weight: 600; color: #fff; } .an-count i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; } .an-say span { display: inline-block; animation: an-word .5s calc(var(--i) * 34ms) var(--ease) both; } @keyframes an-word { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } }
.an-pages { display: grid; gap: 9px; font-size: 15px; } .an-pages li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); transition: color .3s; } .an-pages li.ok { color: #fff; } .an-pages li.off { text-decoration: line-through; opacity: .5; } .an-pages svg { width: 17px; height: 17px; color: #6fe3c2; flex: none; } .an-pages i { width: 13px; height: 13px; margin: 2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; animation: an-spin .8s linear infinite; } @keyframes an-spin { to { transform: rotate(1turn); } }
.an-kit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; opacity: 0; transform: translateY(10px); transition: .6s var(--ease); } .an-kit.in { opacity: 1; transform: none; } .an-aa { font-size: 46px; line-height: 1; } .an-dots { display: flex; } .an-dots i { width: 34px; height: 34px; margin-right: -7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--night), inset 0 0 0 1px rgba(255,255,255,.2); animation: an-pop .5s calc(var(--i) * 60ms) var(--spring) both; } @keyframes an-pop { from { transform: scale(0); } }
.an-logo { display: none; } .an-logo.on { display: grid; place-items: center; height: 46px; padding: 8px 13px; border-radius: 12px; background: #fff; animation: an-pop .5s var(--spring) both; } .an-logo.dark { background: #1c2340; } .an-logo img { max-width: 150px; max-height: 30px; object-fit: contain; }
.an-pen { display: grid; gap: 8px; max-width: 38ch; } .an-tag { font-weight: 550; font-size: 19px; line-height: 1.3; } .an-desc { color: rgba(255,255,255,.8); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; } .an-pen .w::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #fff; animation: an-blink .7s steps(2) infinite; } @keyframes an-blink { to { opacity: 0; } }
.an-wall { position: relative; min-width: 0; min-height: 0; } .an-panes { position: absolute; inset: 0; }
.an-pane { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); opacity: 0; transform: scale(.86); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .4s, filter .6s; } .an-pane.in { opacity: 1; transform: none; }
.an-pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .an-pane .b { inset: -8%; width: 116%; height: 116%; filter: blur(11px) saturate(.45) brightness(.5); transition: opacity .4s; } .an-pane .s { clip-path: inset(50%); }
.an-pane.keep .s { clip-path: none; animation: an-sharp .7s var(--ease); } .an-pane.keep { box-shadow: 0 0 0 2.500px #fff, 0 18px 44px -12px color-mix(in srgb, var(--glow) 80%, #000); transform: scale(1.03); z-index: 2; } @keyframes an-sharp { from { filter: brightness(1.7); } }
.an-pane.drop { opacity: .34; transform: scale(.9); filter: grayscale(1); } .an-pane.drop .s { clip-path: none; opacity: .25; } .an-pane figcaption { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-weight: 600; font-size: 13.500px; line-height: 1.25; background: rgba(8,12,26,.5); opacity: 0; transition: opacity .3s; } .an-pane.drop { opacity: .62; } .an-pane.drop figcaption { opacity: 1; }
.an-specs { position: absolute; left: 0; top: 0; z-index: 4; overflow: visible; opacity: 0; transition: opacity .5s; will-change: transform; filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); pointer-events: none; } .an-specs.in { opacity: 1; }
.an-cap { position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 40px)); padding: 8px 15px 8px 9px; border-radius: 999px; background: #fff; color: #0B1020; font-size: 14px; line-height: 1.25; font-weight: 500; width: max-content; box-shadow: var(--sh3); opacity: 0; transition: opacity .25s; pointer-events: none; } .an-cap.on { opacity: 1; } .an-cap b { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 10px 3px 6px; border-radius: 999px; background: #d9f5ea; color: #086a49; } .an-cap b.no { background: #fbe1dd; color: #a12817; } .an-cap svg { width: 14px; height: 14px; }
.an-fail { grid-column: 1 / -1; align-self: center; justify-self: center; display: grid; gap: 26px; justify-items: center; text-align: center; padding-bottom: 10vh; } .an-fail h2 { font-size: clamp(32px, 4vw, 54px); max-width: 18ch; text-wrap: balance; } .an-fail .row-btns { justify-content: center; } .an-fail .btn.glass { background: rgba(255,255,255,.14); color: #fff; border: 0; box-shadow: none; }
.an.landing { background: transparent; pointer-events: none; transition: background .8s .1s; } .an.landing .an-sky, .an.landing .an-top, .an.landing .an-side, .an.landing .an-panes, .an.landing .an-specs { opacity: 0; transition: opacity .55s; }
.an-fly { position: fixed; z-index: 210; overflow: hidden; pointer-events: none; box-shadow: 0 30px 60px -20px rgba(8,12,26,.5); } .an-fly.plain { box-shadow: none; } .an-fly img { width: 100%; height: 100%; object-fit: cover; } .an-fly.plain img { object-fit: contain; object-position: left center; }
.sp.arrive .sp-bar { animation: an-fade .7s .3s both; } @keyframes an-fade { from { opacity: 0; } } .sp.arrive .sp-htx > *, .sp.arrive .sp-body > * { animation: an-rise .8s .55s var(--ease) both; } .sp.arrive .sp-htx > :nth-child(2) { animation-delay: .66s; } .sp.arrive .sp-htx > :nth-child(3) { animation-delay: .8s; } .sp.arrive .sp-body > * { animation-delay: .9s; } @keyframes an-rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- 3. la page modifiable ---------- */
.at { display: grid; gap: 14px; animation: rise .5s var(--ease) both; } .at:has(.sp.arrive) { animation: none; }
.at-bar { position: sticky; top: 76px; z-index: 30; display: flex; align-items: center; gap: 10px 16px; padding: 8px; border-radius: 22px; background: rgba(255,255,255,.95); border: 1px solid #fff; box-shadow: var(--sh2); } .at-bar .seg { flex: none; }
.at-tools { display: flex; gap: 2px; } .at-tools button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: 15px; font-weight: 550; color: var(--ink2); transition: background .2s, color .2s; } .at-tools svg { width: 19px; height: 19px; } .at-tools button:hover { background: rgba(11,16,32,.05); } .at-tools button.on { background: var(--ink); color: #fff; }
.at-end { position: relative; margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; } .at-state { color: var(--mut); font-size: 13.500px; text-align: right; line-height: 1.3; } .at-more { width: 44px; height: 44px; border-radius: 15px; font-weight: 700; letter-spacing: 1px; color: var(--ink2); } .at-more:hover { background: rgba(11,16,32,.06); } .at-menu { right: 0; top: calc(100% + 10px); min-width: 230px; } .at-menu .danger { color: var(--bad); } .at-menu svg { width: 18px; height: 18px; }
.at-work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; } .at-work.open { grid-template-columns: minmax(0, 1fr) 330px; }
.at-doc.page { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--sh3); } .at-card { display: grid; justify-items: center; gap: 14px; padding: 18px 0; }
.at-panel { position: sticky; top: 152px; max-height: calc(100dvh - 176px); overflow-y: auto; overscroll-behavior: contain; display: grid; grid-auto-rows: max-content; align-content: start; gap: 16px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--sh2); scrollbar-width: thin; animation: rise .35s var(--ease) both; } .at-panel header { display: flex; align-items: center; justify-content: space-between; } .at-panel h3 { font: 400 27px/1.1 var(--serif); } .at-close { width: 44px; height: 44px; margin: -8px -8px -8px 0; border-radius: 50%; display: grid; place-items: center; color: var(--mut); } .at-close:hover { background: rgba(11,16,32,.06); } .at-close svg { width: 18px; height: 18px; } .at-panel label { display: grid; gap: 6px; font-weight: 550; font-size: 14px; }
.at-focus { position: relative; justify-self: center; width: fit-content; max-width: 100%; border-radius: 16px; overflow: hidden; cursor: crosshair; touch-action: none; background: rgba(11,16,32,.05); } .at-focus img { display: block; max-width: 100%; max-height: 260px; user-select: none; -webkit-user-drag: none; } .at-focus i { position: absolute; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(8,12,26,.6), 0 4px 14px rgba(0,0,0,.4); pointer-events: none; } .at-panel .at-focus + .fine { margin-top: -8px; }
.at-acts { display: flex; gap: 8px; } .at-acts .btn { flex: 1; min-height: 44px; } .at-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .at-thumbs button, .at-import { position: relative; aspect-ratio: 1; padding: 0; border-radius: 13px; overflow: hidden; background: rgba(11,16,32,.05); } .at-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; } .at-thumbs button.on { box-shadow: 0 0 0 2.500px #fff, 0 0 0 5px var(--accent); } .at-thumbs em { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 99px; background: #fff; font-style: normal; font-weight: 600; font-size: 12px; }
.at-panel .at-import { place-items: center; align-content: center; gap: 4px; border: 1.500px dashed var(--line2); cursor: pointer; font-size: 13.500px; } .at-import svg { width: 20px; height: 20px; } .at-import input, .at-any input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; } .at-import.off, .at-import.busy { opacity: .5; pointer-events: none; }
.at-col { display: grid; gap: 10px; } .at-col .ch-dot { width: 31px; height: 31px; } .st-dots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; max-width: 400px; }
.ch-dot { border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(128,128,128,.4); transition: transform .3s var(--spring); } .ch-dot:hover { transform: scale(1.1); } .ch-dot.on { box-shadow: inset 0 0 0 1px rgba(128,128,128,.4), 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.at-panel .at-any { position: relative; width: 31px; height: 31px; border-radius: 50%; overflow: hidden; background: conic-gradient(#ff5a4d, #ffc83d, #4cd38a, #3aa8ff, #9a5cff, #ff5a4d); } .at-any i { position: absolute; inset: 9px; border-radius: 50%; background: var(--c); border: 2px solid #fff; }
.at-lays { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; } .at-lays button { display: grid; gap: 9px; justify-items: center; padding: 13px 8px 11px; border-radius: 16px; background: rgba(11,16,32,.04); font-weight: 550; font-size: 13.500px; color: var(--ink2); } .at-lays svg { width: 84px; height: auto; } .at-lays button.on { background: var(--ink); color: #fff; } .at-lays button:disabled { opacity: .4; cursor: default; }
.rowtog { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; } .rowtog b { font-weight: 550; }

/* ---------- 4. les critères de match ---------- */
.crit { display: grid; gap: 14px; max-width: 860px; } .crit section, .crit-intro, .crit-score { padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--sh2); } .crit section { display: grid; gap: 10px; } .crit h3 { font: 400 25px/1.15 var(--serif); }
.crit-intro { display: flex; gap: 12px; align-items: flex-start; font-size: 15.500px; line-height: 1.45; } .crit-intro svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.crit-th { display: grid; gap: 4px; } .crit-th > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); } .crit-th > div:last-child { border: 0; } .crit-th span { font-weight: 550; } .crit-th .seg { flex: none; }
.crit-l { margin-top: 6px; font-weight: 600; font-size: 14px; } .crit-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crit-p { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 14px; min-height: 38px; border-radius: 99px; background: rgba(11,16,32,.06); font-weight: 550; font-size: 14px; } .crit-p button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--mut); } .crit-p button:hover { background: rgba(11,16,32,.08); } .crit-p svg { width: 14px; height: 14px; }
.crit-add { display: flex; gap: 6px; } .crit-add input { min-height: 38px; width: 200px; border-radius: 99px; padding: 0 14px; }
.crit-c { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; background: rgba(11,16,32,.05); font-weight: 550; font-size: 14px; color: var(--ink2); transition: background .2s, color .2s; } .crit-c:hover { background: rgba(11,16,32,.09); } .crit-c.on { background: var(--ink); color: #fff; } .crit-c svg { width: 15px; height: 15px; }
.crit-score { display: flex; gap: 14px; align-items: center; } .crit-score span { display: grid; gap: 3px; } .crit-score small { color: var(--mut); line-height: 1.4; }
@media (max-width: 1080px) { .at-state { display: none; } }
@media (max-width: 900px) {
  .an { grid-template: auto auto 1fr / 1fr; gap: 10px 0; padding: 0 16px 12px; } .an-top { min-height: 60px; gap: 12px; } .an-host { font-size: 16px; } .an-side { padding: 0; gap: 12px; } .an-say { font-size: clamp(24px, 6.6vw, 34px); min-height: 2.24em; } .an-pages { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 14px; } .an-kit { min-height: 44px; gap: 14px; flex-wrap: nowrap; } .an-aa { font-size: 34px; } .an-dots i { width: 28px; height: 28px; } .an-logo.on { height: 40px; padding: 6px 10px; } .an-logo img { max-width: 100px; } .an-pen { order: 5; } .an-desc { display: none; } .an-tag { font-size: 16px; min-height: 1.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .an-kit[hidden] { display: flex !important; visibility: hidden; } .an-pane { border-radius: 10px; } .an-pane figcaption { font-size: 12px; padding: 4px; } .an-cap { font-size: 13px; } .an-count { margin-top: -8px; min-height: 1.4em; font-size: 14px; } .an-fail { padding-bottom: 20vh; }
  .at-start { min-height: calc(100svh - 250px); gap: 20px; padding-bottom: 20px; }
  .xd:has(.at, .at-start) > .xd-head { display: none; } .xd:has(.at, .at-start) { padding-top: 14px; } .at-col .ch-dot, .at-panel .at-any { width: 37px; height: 37px; } .at:has(.at-work.open) { padding-bottom: 40dvh; }
  .at-bar { position: static; flex-wrap: wrap; border-radius: 20px; } .at-tools { order: 3; width: 100%; gap: 4px; } .at-tools button { flex: 1; justify-content: center; padding: 0 6px; font-size: 14px; background: rgba(11,16,32,.04); } .at-doc.page { border-radius: 20px; margin-inline: -4px; }
  .at-work.open { grid-template-columns: minmax(0, 1fr); } .at-panel { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; top: auto; max-height: 56dvh; border-radius: 26px 26px 0 0; padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px -10px rgba(8,12,26,.4); } .at-focus img { max-height: 190px; } .at-thumbs { grid-template-columns: repeat(4, 1fr); } .at-lays { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .at-tools svg { display: none; } }
@media (prefers-reduced-motion: reduce) { .an-sky i, .an-say span, .sp.arrive * { animation: none !important; } .an-pane { transition: opacity .3s; transform: none !important; } }
