/* =========================================================================
   Le défi de Noël NEXAGO 2026 — « Le Noël digital NEXAGO »
   Mobile d'abord. Charte : Navy #243666, Blue #357DB2, Inter Tight + Lato.
   ========================================================================= */

:root {
  --navy: #243666;
  --blue: #357DB2;
  --sky: #8EC5F0;
  --ice: #CFE5F7;
  --bg: #16224A;
  --bg-deep: #121A38;
  --white: #FDFEFF;
  --cloud: #F6F6F6;
  --mouse: #E5E5E5;
  --shark: #747474;
  --anthracite: #444444;
  --black: #121619;
  --gradient: linear-gradient(135deg, #243666 0%, #357DB2 100%);
  --muted: rgba(253, 254, 255, .78);
  --line: rgba(253, 254, 255, .16);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --f-title: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(120% 50% at 50% 0%, #2B4A86 0%, rgba(43, 74, 134, 0) 62%), var(--bg);
  background-attachment: fixed;
  color: var(--white);
  font: 16px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
a { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Fond animé (léger : 7 éléments) ---------- */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(142, 197, 240, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 197, 240, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}
.bg__p { position: absolute; font: 500 12px var(--f-code); color: rgba(142, 197, 240, .32); animation: drift 14s ease-in-out infinite; }
.bg__p svg { width: 14px; height: 14px; fill: none; stroke: rgba(253, 254, 255, .35); stroke-width: 1.6; stroke-linecap: round; }
.bg__p--1 { top: 34%; left: 5%; }
.bg__p--2 { top: 24%; right: 7%; animation-delay: -3s; }
.bg__p--3 { top: 46%; left: 4%; animation-delay: -6s; }
.bg__p--4 { top: 72%; right: 6%; animation-delay: -9s; }
.bg__p--5 { top: 18%; right: 22%; animation-delay: -4s; }
.bg__p--6 { top: 86%; left: 12%; animation-delay: -11s; }
.bg__p--7 { top: 60%; right: 18%; animation-delay: -7s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .35; }
  50% { transform: translate3d(0, -14px, 0); opacity: 1; }
}

.preview-badge {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50;
  padding: 4px 12px; border-radius: 0 0 10px 10px; background: #E8A33D; color: var(--black);
  font: 700 12px var(--f-title); letter-spacing: .04em;
}

/* ---------- Structure ---------- */
.app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; outline: none; }
.screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 20px 24px calc(24px + var(--safe-b));
  animation: screenIn .38s var(--ease) both;
}
.screen--center { align-items: center; text-align: center; }
.screen.is-leaving { animation: screenOut .22s ease-in both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes screenOut { to { opacity: 0; transform: translateY(-10px); } }
.grow { flex: 1 1 auto; }

/* ---------- Typo ---------- */
.eyebrow { margin: 0; font: 600 12px/1.2 var(--f-title); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.title { margin: 0; font: 800 34px/1.08 var(--f-title); letter-spacing: -.01em; }
.title--md { font-size: 30px; line-height: 1.12; }
.lead { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(253, 254, 255, .86); white-space: pre-line; }
.small { font-size: 14px; color: var(--muted); }
.code { font-family: var(--f-code); }
.credit { margin: 18px 0 0; font: 400 11px var(--f-code); color: rgba(253, 254, 255, .6); text-align: center; }

/* ---------- Logo ---------- */
.logo { height: 16px; width: auto; }
.logo--lg { height: 24px; }

/* ---------- En-tête des questions ---------- */
.hd { display: flex; flex-direction: column; gap: 18px; }
.hd__top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.flakes { display: flex; gap: 6px; }
.flake { width: 16px; height: 16px; fill: none; stroke: rgba(253, 254, 255, .25); stroke-width: 1.8; stroke-linecap: round; transition: stroke .3s; }
.flake.is-on { stroke: var(--sky); filter: drop-shadow(0 0 5px rgba(142, 197, 240, .9)); }
.flake.is-new { stroke: var(--white); animation: pop .7s cubic-bezier(.2, .8, .3, 1.3) both; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 55% { transform: scale(1.45); opacity: 1; } 100% { transform: scale(1); } }

.progress { display: flex; align-items: center; gap: 6px; }
.seg { flex: 1; height: 2px; border-radius: 2px; background: rgba(253, 254, 255, .15); overflow: hidden; }
.seg__fill { height: 100%; width: 0; background: var(--sky); box-shadow: 0 0 8px rgba(142, 197, 240, .8); border-radius: 2px; transition: width .5s var(--ease); }
.ms { width: 20px; height: 20px; flex: none; fill: none; stroke: rgba(253, 254, 255, .3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.ms.is-on { stroke: var(--white); filter: drop-shadow(0 0 6px rgba(142, 197, 240, .95)); }
.ms.is-new { animation: pop .7s cubic-bezier(.2, .8, .3, 1.3) both; }
.counter { font: 600 12px var(--f-title); letter-spacing: .16em; color: var(--sky); }

/* ---------- Questions ---------- */
.q { margin-top: 10px; display: flex; flex-direction: column; }
.q__title { margin: 0; font: 700 23px/1.3 var(--f-text); outline: none; }
.q__title mark { background: none; color: var(--sky); }
.q__hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.options { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.options--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--dense { gap: 8px; }

.opt {
  position: relative; width: 100%; min-height: 56px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; text-align: left;
  border-radius: var(--radius); border: 1px solid rgba(253, 254, 255, .7);
  background: rgba(253, 254, 255, .96); color: var(--navy); font-size: 16px; line-height: 1.35;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease, opacity .3s ease;
}
.options--dense .opt { min-height: 52px; padding: 12px 16px; font-size: 15px; }
@media (hover: hover) {
  .opt:not(:disabled):hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: 0 6px 18px rgba(53, 125, 178, .25); }
}
.opt:active:not(:disabled) { transform: scale(.985); }
.opt__icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.opt__label { flex: 1; }
.opt__mark {
  width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid #B4C0D3;
  display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.opt--multi .opt__mark { border-radius: 6px; }
.opt__mark svg { width: 14px; height: 14px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }

.opt.is-selected {
  background: var(--gradient); color: var(--white); font-weight: 700; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(142, 197, 240, .22), 0 10px 24px rgba(5, 12, 35, .4);
  animation: selectBump .3s var(--ease);
}
.opt.is-selected .opt__icon { stroke: var(--white); }
.opt.is-selected .opt__mark { background: var(--white); border-color: var(--white); }
.opt.is-selected .opt__mark svg { opacity: 1; transform: none; }
@keyframes selectBump { 50% { transform: scale(1.015); } }

/* États après correction (jamais de rouge) */
.opt.is-dim { background: rgba(253, 254, 255, .08); border-color: rgba(253, 254, 255, .2); color: rgba(253, 254, 255, .72); box-shadow: none; font-weight: 400; }
.opt.is-dim .opt__mark { visibility: hidden; }
.opt.is-correct { background: var(--gradient); color: var(--white); border-color: var(--sky); font-weight: 700; box-shadow: 0 0 0 3px rgba(142, 197, 240, .22); }
.opt.is-correct .opt__mark { background: var(--sky); border-color: var(--sky); }
.opt.is-correct .opt__mark svg { opacity: 1; transform: none; stroke: var(--bg); }
.opt.is-yours { background: rgba(253, 254, 255, .1); border: 1.5px dashed rgba(253, 254, 255, .55); color: var(--white); box-shadow: none; font-weight: 400; }
.opt.is-yours .opt__mark { visibility: hidden; }
.opt__tag { display: block; margin-top: 2px; font-size: 12px; color: rgba(253, 254, 255, .75); font-weight: 400; }
.opt:disabled { cursor: default; }

.or { display: flex; align-items: center; gap: 12px; margin: 2px 0; font: 500 12px var(--f-title); letter-spacing: .14em; color: rgba(253, 254, 255, .6); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Réponse libre */
.textbox { position: relative; margin-top: 22px; border-radius: 16px; border: 1.5px solid rgba(253, 254, 255, .5); background: var(--white); transition: border-color .2s, box-shadow .3s; }
.textbox:focus-within { border-color: var(--sky); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(142, 197, 240, .25), 0 0 22px rgba(53, 125, 178, .35); }
  50% { box-shadow: 0 0 0 4px rgba(142, 197, 240, .4), 0 0 30px rgba(53, 125, 178, .55); }
}
.textbox textarea { display: block; width: 100%; min-height: 180px; padding: 16px 16px 40px; border: 0; outline: none; resize: vertical; background: transparent; color: var(--navy); font-size: 16px; line-height: 1.5; border-radius: 16px; }
.textbox textarea::placeholder { color: #8A94A6; }
.textbox__meta { position: absolute; left: 16px; right: 16px; bottom: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--shark); pointer-events: none; }

/* ---------- Boutons ---------- */
.actions { padding-top: 16px; }
.btn {
  width: 100%; min-height: 56px; padding: 14px 20px; border: 0; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 15px var(--f-title); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, opacity .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn--primary { background: var(--blue); color: var(--white); border-top: 1px solid #6FB0E3; box-shadow: 0 10px 28px rgba(53, 125, 178, .45); }
.btn--light { background: var(--white); color: var(--navy); box-shadow: 0 0 0 4px rgba(142, 197, 240, .18), 0 12px 32px rgba(5, 12, 35, .45); }
.btn--gradient { background: var(--gradient); color: var(--white); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 8px; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* ---------- Panneau de feedback ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 48, 0) 30%, rgba(14, 22, 48, .75) 60%); animation: fadeIn .3s ease both; }
.sheet__panel {
  position: relative; width: 100%; max-width: 480px; padding: 30px 24px calc(24px + var(--safe-b));
  border-radius: 26px 26px 0 0; background: var(--white); color: var(--navy);
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -20px 50px rgba(5, 12, 35, .5);
  animation: sheetUp .42s var(--ease) both;
}
.sheet__panel::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--mouse); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__title { margin: 0; font: 800 30px var(--f-title); outline: none; }
.sheet__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--anthracite); }
.sheet__answer { margin: 0; font-size: 16px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--gradient); color: var(--white); font: 800 18px var(--f-title); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; animation: pop .7s cubic-bezier(.2, .8, .3, 1.3) both; }
.pill svg:nth-child(2) { animation-delay: .12s; }
.team { display: flex; gap: 6px; flex-wrap: wrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font: 700 14px var(--f-title); background: var(--navy); animation: pop .5s var(--ease) both; }
.avatar:nth-child(3n+2) { background: #2C5A8E; }
.avatar:nth-child(3n) { background: var(--blue); }
.sparks { position: absolute; top: -18px; right: 34px; display: flex; gap: 14px; }
.sparks span { width: 5px; height: 5px; border-radius: 50%; background: var(--sky); animation: sparkle 1.2s ease-out both; }
.sparks span:nth-child(2) { background: var(--white); animation-delay: .1s; }
.sparks span:nth-child(3) { animation-delay: .2s; }
@keyframes sparkle { 0% { transform: translateY(20px) scale(0); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-18px) scale(1); opacity: 0; } }

/* ---------- Accueil + animation d'arrivée ---------- */
.welcome { position: relative; }
.welcome__logo { margin-top: 8px; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s var(--ease); }
.tree { position: relative; margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 500 13px/15px var(--f-code); white-space: pre; }
.tree__row { display: flex; gap: .6ch; }
.tree__star { width: 22px; height: 22px; fill: var(--white); stroke: var(--white); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(142, 197, 240, .9)); opacity: 0; transform: scale(.2) rotate(-40deg); transition: opacity .4s ease, transform .6s cubic-bezier(.2, .8, .3, 1.4); }
.tok {
  display: inline-block; color: var(--c, var(--sky));
  transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r)); opacity: .22;
  transition: transform .9s var(--ease) var(--d), opacity .5s ease var(--d);
}
.welcome__content { width: 100%; display: flex; flex-direction: column; align-items: center; flex: 1; opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--ease); }
.boot { position: absolute; left: 8px; right: 8px; bottom: 64px; display: flex; flex-direction: column; gap: 10px; font: 400 13px var(--f-code); transition: opacity .35s ease; }
.boot__line { display: flex; align-items: center; gap: 10px; color: rgba(253, 254, 255, .6); opacity: 0; transition: opacity .3s; }
.boot__line.is-on { opacity: 1; }
.boot__line.is-current { color: var(--white); }
.boot__line svg { width: 14px; height: 14px; fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.boot__bar { height: 2px; border-radius: 2px; background: rgba(253, 254, 255, .12); overflow: hidden; }
.boot__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width 1.7s var(--ease); }

.welcome.is-built .tok { transform: none; opacity: 1; }
.welcome.is-built .tree__star { opacity: 1; transform: none; transition-delay: .9s; }
.welcome.is-built .boot__bar i { width: 100%; }
.welcome.is-ready .welcome__logo { opacity: 1; transform: none; }
.welcome.is-ready .welcome__content { opacity: 1; transform: none; }
.welcome.is-ready .boot { opacity: 0; pointer-events: none; }
.welcome.is-ready .tree { animation: float 5s ease-in-out infinite 1s; }
@keyframes float { 50% { transform: translateY(-6px); } }

.ticket { margin-top: 22px; width: 100%; display: flex; border-radius: 16px; background: rgba(253, 254, 255, .07); border: 1px solid rgba(142, 197, 240, .35); text-align: left; }
.ticket__icon { width: 72px; flex: none; display: flex; align-items: center; justify-content: center; border-right: 1px dashed rgba(142, 197, 240, .45); }
.ticket__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ticket__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ticket__label { font: 600 11px var(--f-title); letter-spacing: .16em; color: var(--sky); }
.ticket__prize { font: 700 18px/1.25 var(--f-title); }
.welcome .lead { margin-top: 22px; }
.welcome .btn { margin-top: 28px; }
.welcome__meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Analyse (moment wahou 2) ---------- */
.an-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; min-height: 36px; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(142, 197, 240, .6); background: rgba(53, 125, 178, .25); font-size: 13px; animation: chipIn .45s var(--ease) both; }
.chip:nth-child(2) { animation-delay: .08s; }
.chip:nth-child(3) { animation-delay: .16s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(-10px) scale(.9); } }
.an-tree { position: relative; width: 100%; max-width: 342px; aspect-ratio: 342 / 290; margin: 4px auto 0; }
.an-tree svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an-tree .edge { fill: none; stroke: rgba(253, 254, 255, .18); stroke-width: 1.5; }
.an-tree .feed { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 3 5; }
.an-tree .lit { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(142, 197, 240, .9)); stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset .9s var(--ease); }
.an-tree .node { fill: var(--bg-deep); stroke: rgba(253, 254, 255, .35); stroke-width: 1.5; transition: fill .3s, stroke .3s, r .3s; }
.an-tree .node.is-on { fill: var(--sky); stroke: var(--sky); filter: drop-shadow(0 0 8px rgba(142, 197, 240, .9)); }
.an-tree .leaf-ok { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .3, 1.4); }
.an-tree .glyph { font: 400 11px var(--f-code); fill: rgba(142, 197, 240, .5); }
.analysis.is-l1 .lit { stroke-dashoffset: 260; }
.analysis.is-l2 .lit { stroke-dashoffset: 0; }
.analysis.is-done .leaf-ok { opacity: 1; transform: none; }
.an-steps { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.an-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(253, 254, 255, .75); opacity: .35; transition: opacity .3s; }
.an-steps li.is-on { opacity: 1; }
.an-steps li svg { width: 18px; height: 18px; fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.an-steps li.is-done svg { opacity: 1; }
.an-steps li.is-final { font: 700 20px var(--f-title); color: var(--white); }
.an-steps li.is-final .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; flex: none; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .3, 1.5); }
.an-steps li.is-final.is-done .tick { opacity: 1; transform: none; }
.an-steps li.is-final .tick svg { width: 16px; height: 16px; stroke: var(--bg); stroke-width: 3; opacity: 1; }
.an-steps li.is-final > svg { display: none; }

/* ---------- Dernière étape ---------- */
.badge-gift { position: relative; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(142, 197, 240, .35); background: radial-gradient(circle, rgba(53, 125, 178, .35) 0%, rgba(53, 125, 178, 0) 70%); animation: float 4.5s ease-in-out infinite; }
.badge-gift svg { width: 68px; height: 68px; fill: none; stroke: var(--white); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(142, 197, 240, .9)); }
.badge-gift span { position: absolute; font: 400 11px var(--f-code); color: var(--sky); }

/* ---------- Formulaire ---------- */
.form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
  height: 52px; width: 100%; min-width: 0; padding: 0 14px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--white); color: var(--navy); font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(142, 197, 240, .4); }
.field input[aria-invalid="true"] { border-color: #E8A33D; }
.err { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.4; color: #F5C67A; }
.err:empty { display: none; }
.err svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.check .err { margin-top: 4px; }
.consents { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(253, 254, 255, .06); border: 1px solid rgba(253, 254, 255, .14); }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; z-index: 2; top: 1px; left: 0; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check__box { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 6px; border: 1.5px solid rgba(253, 254, 255, .55); display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.check__box svg { width: 14px; height: 14px; fill: none; stroke: var(--bg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s var(--ease); }
.check input:checked + .check__box { background: var(--sky); border-color: var(--sky); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--sky); outline-offset: 2px; }
.check__opt { color: var(--muted); }
.legal-note { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(253, 254, 255, .72); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; display: flex; justify-content: center; }
.form-error { padding: 12px 14px; border-radius: 12px; background: rgba(232, 163, 61, .15); border: 1px solid rgba(232, 163, 61, .5); color: #F8D9A6; font-size: 14px; }
.form-error:empty { display: none; }
.form-note { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Fin : cadeau (moment wahou 3) ---------- */
.gift { position: relative; width: 240px; height: 230px; margin: 20px auto 0; }
.gift svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gift .ray { stroke: rgba(142, 197, 240, .35); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .8s ease .2s; }
.gift .draw { fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; filter: drop-shadow(0 0 10px rgba(142, 197, 240, .85)); transition: stroke-dashoffset 1s var(--ease); }
.gift .lid { transform-box: view-box; transform-origin: 62px 112px; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.gift .bits { opacity: 0; transition: opacity .4s ease .3s; }
.gift .conv { font: 500 12px var(--f-code); fill: var(--sky); transition: transform 1s var(--ease), opacity .6s ease .6s; }
.final.is-built .gift .draw { stroke-dashoffset: 0; }
.final.is-built .gift .conv { transform: none !important; opacity: 0; }
.final.is-open .gift .lid { transform: translate(0, -14px) rotate(-18deg); }
.final.is-open .gift .ray { stroke-dashoffset: 0; }
.final.is-open .gift .bits { opacity: 1; }
.conf { position: absolute; width: 6px; height: 6px; border-radius: 1px; opacity: 0; }
.final.is-open .conf { animation: burst 1.4s ease-out var(--d) both; }
@keyframes burst {
  0% { opacity: 0; transform: translate(120px, 130px) scale(.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
}
.final__text { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s var(--ease); }
.final.is-text .final__text { opacity: 1; transform: none; }
.final__title { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font: 800 36px/1.1 var(--f-title); }
.final__title svg { width: 30px; height: 30px; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.final__ok { display: flex; align-items: center; gap: 8px; }
.final__ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.final__luck { margin: 10px 0 0; font: 700 22px var(--f-title); }
.final__score { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.final__score .flakes .flake { width: 20px; height: 20px; }
.teaser { margin-top: 32px; width: 100%; padding: 16px 18px; display: flex; align-items: center; gap: 14px; border-radius: 16px; border: 1px solid rgba(142, 197, 240, .45); background: rgba(253, 254, 255, .06); color: var(--white); text-align: left; text-decoration: none; font-size: 15px; line-height: 1.4; cursor: pointer; }
.teaser svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- Savoir-faire + RDV ---------- */
.screen.pro { min-height: auto; padding-top: 56px; animation: none; }
.pro .title { font-size: 30px; line-height: 1.12; }
.pro__lead { margin: 16px 0 0; font-weight: 700; font-size: 16px; line-height: 1.55; }
.pro__body { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: rgba(253, 254, 255, .85); }
.pipeline { position: relative; list-style: none; margin: 28px 0 0; padding: 0 0 0 4px; }
.pipeline::before { content: ""; position: absolute; left: 10px; top: 23px; bottom: 23px; width: 2px; background: linear-gradient(180deg, var(--sky), rgba(142, 197, 240, .15)); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease); }
.pipeline.is-visible::before { transform: none; }
.pipeline li { position: relative; display: flex; align-items: center; gap: 16px; height: 46px; font: 700 16px var(--f-title); letter-spacing: .1em; opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s var(--ease); transition-delay: calc(var(--i) * 160ms); }
.pipeline li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px rgba(142, 197, 240, .9); }
.pipeline.is-visible li { opacity: 1; transform: none; }
.pro .btn { margin-top: 26px; }
.sep { margin: 40px 0 0; display: flex; align-items: center; gap: 12px; font: 400 12px var(--f-code); color: rgba(142, 197, 240, .6); }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rdv-title { margin: 32px 0 0; font: 800 26px/1.15 var(--f-title); outline: none; }
.rdv { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.rdv-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid rgba(253, 254, 255, .7); background: var(--white); color: var(--navy); text-decoration: none; text-align: left; cursor: pointer; width: 100%; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
@media (hover: hover) { .rdv-card:hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: 0 10px 26px rgba(5, 12, 35, .35); } }
.rdv-card__icon { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--gradient); display: flex; align-items: center; justify-content: center; }
.rdv-card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rdv-card__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rdv-card__label { font: 700 17px var(--f-title); }
.rdv-card__who { font-size: 14px; color: var(--anthracite); }
.rdv-card__arrow { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rdv-card.is-done { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(142, 197, 240, .25); }
.rdv-card.is-done .rdv-card__arrow { stroke: #2E8B57; }
.rdv-msg { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(142, 197, 240, .14); border: 1px solid rgba(142, 197, 240, .4); font-size: 14px; }
.rdv-msg:empty { display: none; }

/* ---------- Bureau (tablette / ordinateur) ---------- */
@media (min-width: 768px) {
  .app { padding: 32px 0; }
  .screen { min-height: calc(100dvh - 64px); border-radius: 28px; background: rgba(18, 26, 56, .55); border: 1px solid rgba(142, 197, 240, .14); box-shadow: 0 30px 80px rgba(5, 12, 35, .45); padding: 28px 32px 32px; }
  .sheet__panel { border-radius: 26px; margin-bottom: 32px; }
  .boot { left: 24px; right: 24px; }
}
@media (max-width: 359px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .title { font-size: 30px; }
  .q__title { font-size: 21px; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .bg__p { display: none; }
}
