:root {
  --teal: #0a8a94;
  --teal-bright: #12b4bd;
  --teal-glow: #34dccb;
  --gold: #e9b654;
  --gold-light: #ffe6a3;
  --gold-deep: #c98f2e;
  --bg: #06100f;
  --bg-2: #0a1616;
  --card-brd: rgba(255, 255, 255, 0.09);
  --line: rgba(233, 182, 84, 0.22);
  --txt: #eaf4f2;
  --txt-dim: #86a09d;
  --pos: #2bd07f;
  --neu: #e2b23a;
  --neg: #f2555a;
  --shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.7);
  --serif: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --grotesk: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--bg);
  color: var(--txt); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(52, 220, 203, 0.28); }

/* ============ FOND ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(130% 90% at 50% -10%, #0b201f 0%, var(--bg) 58%); }
.blob { position: absolute; border-radius: 50%; opacity: 0.5; animation: float 32s ease-in-out infinite; will-change: transform; }
.blob-1 { width: 640px; height: 640px; top: -200px; left: -160px;
  background: radial-gradient(circle, rgba(10,138,148,0.5) 0%, transparent 68%); }
.blob-2 { width: 700px; height: 700px; top: 16%; right: -220px;
  background: radial-gradient(circle, rgba(18,180,189,0.32) 0%, transparent 68%); animation-delay: -11s; }
.blob-3 { width: 540px; height: 540px; bottom: -220px; left: 26%;
  background: radial-gradient(circle, rgba(201,143,46,0.16) 0%, transparent 68%); animation-delay: -21s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(45px,-35px) scale(1.08); } 66% { transform: translate(-35px,28px) scale(0.94); } }
.grid-overlay { position: absolute; inset: 0; opacity: 0.3;
  background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 80%); }
.noise { position: absolute; inset: 0; opacity: 0.045; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }

/* ============ HEADER ============ */
.site-header { display: flex; align-items: center; gap: 12px; padding: 22px clamp(18px,5vw,48px); max-width: 1060px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--txt); }
.logo-mark { display: flex; filter: drop-shadow(0 4px 14px rgba(18,180,189,0.45)); transition: transform 0.3s cubic-bezier(0.3,1.6,0.5,1); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.08); }
.logo-text { font-family: var(--grotesk); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo-text span { background: linear-gradient(100deg, var(--teal-bright), var(--teal-glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-beta { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--gold-light);
  border: 1px solid rgba(233,182,84,0.4); padding: 3px 9px; border-radius: 999px; background: rgba(233,182,84,0.07); }
.header-right { margin-left: auto; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--txt-dim);
  border: 1px solid var(--card-brd); background: rgba(10,22,22,0.7); padding: 7px 13px; border-radius: 999px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(43,208,127,0.5)} 70%{box-shadow:0 0 0 8px rgba(43,208,127,0)} 100%{box-shadow:0 0 0 0 rgba(43,208,127,0)} }

/* ============ HERO ============ */
main { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px,5vw,24px) 80px; }
.hero { text-align: center; padding: clamp(28px,6vw,60px) 0 30px; }
.reveal { animation: rise 0.75s cubic-bezier(0.2,0.7,0.2,1) both; animation-delay: calc(var(--d,0)*0.09s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.pill { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--txt-dim);
  border: 1px solid var(--card-brd); background: rgba(10,22,22,0.7); padding: 8px 16px; border-radius: 999px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); animation: pulse 2s infinite; }
.pill-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--txt-dim); opacity: 0.5; }
h1 { font-family: var(--serif); font-size: clamp(38px,7.5vw,64px); font-weight: 600; letter-spacing: -0.02em; margin: 22px 0 16px; line-height: 1.03; }
.grad { background: linear-gradient(100deg, var(--teal-bright) 10%, var(--teal-glow) 45%, #8ff3e3 60%, var(--teal-bright) 90%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-shift 6s ease-in-out infinite; }
@keyframes grad-shift { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.sub { color: var(--txt-dim); font-size: clamp(15px,2.4vw,17px); max-width: 560px; margin: 0 auto; line-height: 1.65; }
.sub b { color: #cbe3e0; }

/* ============ RECHERCHE ============ */
.search { margin: 36px auto 0; max-width: 580px; position: relative; }
.search-glow { position: absolute; inset: -2px; border-radius: 19px; opacity: 0; overflow: hidden; pointer-events: none; transition: opacity 0.35s; }
.search-glow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 240%; aspect-ratio: 1/1;
  transform: translate(-50%,-50%) rotate(0); background: conic-gradient(transparent 10%, var(--teal-bright) 25%, var(--teal-glow) 35%, transparent 50%, transparent 60%, var(--gold) 80%, transparent 94%);
  animation: glow-rot 4s linear infinite paused; will-change: transform; }
@keyframes glow-rot { to { transform: translate(-50%,-50%) rotate(360deg); } }
.search:focus-within .search-glow { opacity: 1; }
.search:focus-within .search-glow::before { animation-play-state: running; }
.search-inner { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px;
  background: rgba(9,20,20,0.94); border: 1px solid var(--card-brd); border-radius: 17px; transition: border-color 0.25s, box-shadow 0.25s; }
.search:focus-within .search-inner { border-color: rgba(52,220,203,0.5); box-shadow: 0 0 0 4px rgba(18,180,189,0.12), var(--shadow); }
.search-ic { color: var(--txt-dim); flex-shrink: 0; transition: color 0.25s; }
.search:focus-within .search-ic { color: var(--teal-glow); }
#q { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 16px; font-family: inherit; font-weight: 500; padding: 11px 0; min-width: 0; }
#q::placeholder { color: var(--txt-dim); font-weight: 400; }
#go { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(100deg, var(--teal), var(--teal-bright)); color: #fff; border: none; border-radius: 12px;
  padding: 0 22px; height: 48px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; flex-shrink: 0; overflow: hidden;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s; box-shadow: 0 8px 20px -8px rgba(18,180,189,0.6); }
#go::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-20deg); transition: left 0.5s; }
#go:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(18,180,189,0.8); }
#go:hover::after { left: 130%; }
#go:active { transform: translateY(0) scale(0.98); }
#go:disabled { cursor: default; opacity: 0.85; }
.btn-arrow { transition: transform 0.2s; }
#go:hover .btn-arrow { transform: translateX(3px); }
.btn-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; display: none; animation: spin 0.7s linear infinite; }
body.loading .btn-label, body.loading .btn-arrow { display: none; }
body.loading .btn-spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.examples { margin-top: 18px; font-size: 13px; color: var(--txt-dim); display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ex { background: rgba(255,255,255,0.045); border: 1px solid var(--card-brd); color: var(--txt); padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.ex:hover { border-color: rgba(52,220,203,0.5); color: var(--teal-glow); background: rgba(52,220,203,0.07); transform: translateY(-1px); }

/* ============ HOW ============ */
.how { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 34px; }
.how[hidden] { display: none; }
.how-card { background: rgba(255,255,255,0.03); border: 1px solid var(--card-brd); border-radius: 18px; padding: 22px 18px; text-align: center; transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.how-card:hover { transform: translateY(-4px); border-color: rgba(52,220,203,0.3); background: rgba(52,220,203,0.045); }
.how-ic { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 13px;
  background: rgba(18,180,189,0.1); border: 1px solid rgba(52,220,203,0.22); color: var(--teal-glow); }
.how-ic svg { width: 22px; height: 22px; }
.how-card b { font-size: 14px; display: block; margin-bottom: 5px; }
.how-card p { font-size: 12.5px; color: var(--txt-dim); line-height: 1.5; }

/* ============ ERREUR ============ */
.error { margin: 22px auto 0; max-width: 580px; text-align: center; padding: 15px 18px; background: rgba(242,85,90,0.1);
  border: 1px solid rgba(242,85,90,0.35); border-radius: 14px; color: #ff9ea1; font-size: 14px; font-weight: 500; animation: shake 0.5s both; }
.error[hidden] { display: none; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(2px)} }

/* ============ CERTIFICAT ============ */
.cert { position: relative; margin-top: 30px; padding: clamp(22px,4vw,34px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(233,182,84,0.06), transparent 55%),
    linear-gradient(165deg, #0e2021 0%, #0a1615 100%);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
/* liseré or intérieur */
.cert::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(233,182,84,0.14); border-radius: 13px; pointer-events: none; }
/* guilloché très léger */
.cert::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.014) 0 2px, transparent 2px 10px); }
.cert[hidden], .skeleton-card[hidden] { display: none; }
.cert:not(.skeleton-card) { animation: cert-in 0.65s cubic-bezier(0.2,0.7,0.2,1) both; }
@keyframes cert-in { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: none; } }
.cert > * { position: relative; z-index: 1; }
.cert-corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); opacity: 0.55; z-index: 2; }
.cert-corner.tl { top: 15px; left: 15px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.cert-corner.tr { top: 15px; right: 15px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.cert-corner.bl { bottom: 15px; left: 15px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.cert-corner.br { bottom: 15px; right: 15px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }

.cert-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.cert-title { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.cert-kicker { font-family: var(--serif); font-size: clamp(16px,3.4vw,22px); font-weight: 600; letter-spacing: 0.02em;
  background: linear-gradient(100deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-id { font-size: 10.5px; letter-spacing: 0.16em; color: var(--txt-dim); text-transform: uppercase; }

/* sceau */
.seal { width: 78px; height: 78px; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(201,143,46,0.4)); }
.seal svg { width: 100%; height: 100%; }
.seal-ring-out { fill: none; stroke: url(#gold); stroke-width: 2.4; }
.seal-ring-in { fill: rgba(233,182,84,0.06); stroke: rgba(233,182,84,0.5); stroke-width: 1; }
.seal-text { font-size: 8.4px; font-weight: 700; letter-spacing: 0.055em; fill: var(--gold-light);
  text-transform: uppercase; font-family: 'Plus Jakarta Sans', sans-serif; }
.seal-check { stroke: url(#gold); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.seal { animation: seal-in 0.7s cubic-bezier(0.3,1.6,0.5,1) 0.2s both; }
@keyframes seal-in { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

/* grade */
.grade { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 78px; flex-shrink: 0;
  border-radius: 18px; border: 1.5px solid var(--grade-c, var(--teal-glow)); position: relative; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--grade-c, var(--teal-glow)) 20%, transparent), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 20px -8px var(--grade-c, var(--teal-glow));
  animation: grade-pop 0.6s cubic-bezier(0.3,1.7,0.5,1) 0.35s both; }
@keyframes grade-pop { from { transform: scale(0) rotate(-12deg); } to { transform: scale(1) rotate(0); } }
.grade-letter { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; color: var(--grade-c, var(--teal-glow)); }
.grade-cap { font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--txt-dim); margin-top: 4px; }

.cert-rule { height: 1px; margin: 22px 0; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }

.cert-body { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.cert-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar-wrap { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
.avatar-ring { position: absolute; inset: -4px; border-radius: 22px; background: conic-gradient(from 180deg, var(--teal-bright), var(--teal-glow), transparent 60%, var(--teal-bright)); animation: spin 9s linear infinite; opacity: 0.6; }
.avatar { position: relative; width: 74px; height: 74px; border-radius: 19px; object-fit: cover; border: 3px solid var(--bg-2); background: #0d2427; }
.online-dot { position: absolute; bottom: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--pos); border: 3px solid var(--bg-2); z-index: 2; box-shadow: 0 0 12px rgba(43,208,127,0.8); animation: pulse 2s infinite; }
.identity { min-width: 0; }
#login { font-family: var(--serif); font-size: clamp(22px,4vw,30px); font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; color: var(--txt-dim); font-size: 13.5px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 14px; height: 14px; opacity: 0.85; }
.flags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 8px; }
.tag svg { width: 12px; height: 12px; }
.tag.warn { background: rgba(242,85,90,0.15); color: #ff9ea1; border: 1px solid rgba(242,85,90,0.3); }
.tag.info { background: rgba(18,180,189,0.13); color: var(--teal-glow); border: 1px solid rgba(18,180,189,0.3); }
.tag.holiday { background: rgba(226,178,58,0.14); color: #ffd777; border: 1px solid rgba(226,178,58,0.3); }

/* prix */
.cert-price { justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  padding: 16px 22px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(233,182,84,0.16), rgba(233,182,84,0.03));
  border: 1px solid rgba(233,182,84,0.4); box-shadow: 0 14px 34px -14px rgba(201,143,46,0.5), inset 0 1px 0 rgba(255,255,255,0.1); }
.cert-price::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.2), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%,55% { transform: translateX(0) skewX(-20deg); } 80%,100% { transform: translateX(520%) skewX(-20deg); } }
.cert-price-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-light); font-weight: 700; }
.cert-price-amount { display: flex; align-items: baseline; gap: 4px; line-height: 1; font-family: var(--serif); }
.cert-price-amount .cur { font-size: clamp(22px,4.5vw,30px); font-weight: 600; color: var(--gold); }
#priceVal { font-size: clamp(40px,8vw,56px); font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 70%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert-price-hint { font-size: 11px; color: var(--txt-dim); margin-top: 3px; max-width: 200px; }

/* détail du calcul */
.breakdown { display: flex; align-items: stretch; gap: 10px; margin-top: 24px; }
.breakdown[hidden] { display: none; }
.bd-item { flex: 1; display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-brd); border-radius: 14px; min-width: 0; animation: rise 0.5s cubic-bezier(0.2,0.7,0.2,1) both; }
.bd-item:nth-child(1) { animation-delay: 0.15s; }
.bd-item:nth-child(4) { animation-delay: 0.28s; }
.bd-item.total { animation-delay: 0.4s; background: linear-gradient(150deg, rgba(233,182,84,0.13), rgba(255,255,255,0.02)); border-color: rgba(233,182,84,0.38); }
.bd-ic { display: inline-flex; width: 34px; height: 34px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 10px;
  background: rgba(18,180,189,0.1); border: 1px solid rgba(52,220,203,0.2); color: var(--teal-glow); }
.bd-item.total .bd-ic { background: rgba(233,182,84,0.12); border-color: rgba(233,182,84,0.3); color: var(--gold); }
.bd-ic svg { width: 18px; height: 18px; }
.bd-txt { display: flex; flex-direction: column; min-width: 0; }
.bd-label { font-size: 12.5px; font-weight: 700; color: var(--txt); white-space: nowrap; }
.bd-sub { font-size: 11px; color: var(--txt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-val { font-family: var(--grotesk); font-size: 19px; font-weight: 700; margin-left: auto; letter-spacing: -0.01em; white-space: nowrap; }
.bd-item.total .bd-val { color: var(--gold); }
.bd-op { align-self: center; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--txt-dim); flex-shrink: 0; }

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }
.stat { position: relative; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid var(--card-brd); border-radius: 15px; padding: 15px 15px;
  transition: transform 0.22s, border-color 0.22s, background 0.22s; animation: rise 0.5s cubic-bezier(0.2,0.7,0.2,1) both; animation-delay: calc(0.3s + var(--i,0)*0.06s); }
.stat:hover { transform: translateY(-4px); border-color: rgba(52,220,203,0.4); background: rgba(52,220,203,0.045); }
.stat .ic { position: absolute; top: 13px; right: 13px; width: 17px; height: 17px; color: var(--teal-glow); opacity: 0.55; }
.stat .val { font-family: var(--grotesk); font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.stat .val.txt { font-size: 18px; line-height: 1.3; padding-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flag { display: inline-block; border-radius: 3px; vertical-align: -2px; margin-right: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14); object-fit: cover; }
.stat .lbl { font-size: 12px; color: var(--txt-dim); margin-top: 4px; font-weight: 500; }

/* avis */
.feedback-block { margin-top: 24px; }
.block-title { font-size: 11.5px; font-weight: 700; color: var(--txt-dim); text-transform: uppercase; letter-spacing: 0.09em; }
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fb-total { font-weight: 700; color: var(--txt); font-size: 13px; }
.fb-bar { display: flex; height: 13px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.06); }
.fb-seg { height: 100%; width: 0; transition: width 1s cubic-bezier(0.3,0.8,0.3,1) 0.4s; }
.fb-seg.pos { background: linear-gradient(90deg,#22b970,var(--pos)); }
.fb-seg.neu { background: linear-gradient(90deg,#c99a2e,var(--neu)); }
.fb-seg.neg { background: linear-gradient(90deg,#d8434f,var(--neg)); }
.fb-legend { display: flex; gap: 20px; margin-top: 11px; font-size: 13px; color: var(--txt-dim); flex-wrap: wrap; }
.fb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.fb-legend i.pos { background: var(--pos); } .fb-legend i.neu { background: var(--neu); } .fb-legend i.neg { background: var(--neg); }
.fb-legend b { color: var(--txt); }

/* ============ FLUX DE VENTE ============ */
.not-eligible { margin-top: 26px; padding: 22px 20px; border-radius: 16px; text-align: center;
  background: rgba(242,85,90,0.08); border: 1px solid rgba(242,85,90,0.3); }
.not-eligible[hidden] { display: none; }
.ne-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 800; color: #ff9ea1; }
.ne-title svg { width: 21px; height: 21px; flex-shrink: 0; }
.ne-sub { margin-top: 9px; font-size: 13px; color: var(--txt-dim); line-height: 1.55; }
.ne-sub b { color: #ffb9bb; }
.sell-cta { margin-top: 26px; }
.sell-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border: none; border-radius: 15px; cursor: pointer; font-family: inherit; font-size: 16px; font-weight: 700; color: #05201c;
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 12px 30px -10px rgba(233,182,84,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  position: relative; overflow: hidden; transition: transform 0.15s, filter 0.2s, box-shadow 0.2s; }
.sell-btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent); transform: skewX(-20deg); transition: left 0.5s; }
.sell-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 36px -10px rgba(233,182,84,0.75); }
.sell-btn:hover::after { left: 130%; }
.sell-btn:active { transform: translateY(0) scale(0.99); }
.sell-cta.done { display: none; }

.sell-panel { margin-top: 18px; padding: 20px; border-radius: 16px; border: 1px solid rgba(233,182,84,0.28);
  background: linear-gradient(160deg, rgba(233,182,84,0.06), rgba(255,255,255,0.02));
  animation: sell-in 0.5s cubic-bezier(0.2,0.7,0.2,1) both; }
.sell-panel[hidden] { display: none; }
@keyframes sell-in { from { opacity: 0; transform: translateY(-8px) scaleY(0.96); } to { opacity: 1; transform: none; } }
.sell-title { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-card { display: flex; align-items: center; gap: 13px; text-align: left; padding: 15px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1.5px solid var(--card-brd); font-family: inherit; color: var(--txt);
  transition: transform 0.18s, border-color 0.18s, background 0.18s; position: relative; }
.pay-card:hover { transform: translateY(-3px); border-color: rgba(233,182,84,0.5); background: rgba(233,182,84,0.05); }
.pay-card.selected { border-color: var(--gold); background: rgba(233,182,84,0.09); box-shadow: 0 0 0 3px rgba(233,182,84,0.16); }
.pay-card.selected::after { content: '✓'; position: absolute; top: 9px; right: 11px; color: var(--gold); font-weight: 800; font-size: 13px; }
.pay-ic { flex-shrink: 0; }
.pay-ic svg { width: 34px; height: 34px; display: block; border-radius: 50%; }
.pay-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pay-name { font-weight: 700; font-size: 15px; }
.pay-desc { font-size: 11px; color: var(--txt-dim); line-height: 1.35; }
.pay-amount { font-family: var(--grotesk); font-weight: 700; font-size: 18px; color: var(--gold-light); white-space: nowrap; }
.continue-btn { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 13px; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(100deg, var(--teal), var(--teal-bright)); border: none;
  box-shadow: 0 10px 24px -10px rgba(18,180,189,0.6); transition: transform 0.15s, filter 0.2s, opacity 0.2s; }
.continue-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.continue-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }
.continue-btn svg { transition: transform 0.2s; }
.continue-btn:hover:not(:disabled) svg { transform: translateX(3px); }
.sell-msg { margin-top: 12px; text-align: center; font-size: 13px; color: var(--gold-light);
  background: rgba(233,182,84,0.08); border: 1px solid rgba(233,182,84,0.25); border-radius: 11px; padding: 11px 14px; animation: rise 0.4s both; }
.sell-msg[hidden] { display: none; }

/* Étape 2 : transfert email */
.sell-panel.step2 .sell-title,
.sell-panel.step2 .pay-methods,
.sell-panel.step2 #continueBtn { display: none; }
#sellStep2[hidden] { display: none; }
#sellStep2 { animation: sell-in 0.45s cubic-bezier(0.2,0.7,0.2,1) both; }
.s2-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.s2-title { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.s2-test { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: #ffd777;
  background: rgba(226,178,58,0.14); border: 1px solid rgba(226,178,58,0.4); padding: 3px 8px; border-radius: 999px; }
.s2-test[hidden] { display: none; }
.s2-intro { font-size: 13.5px; color: var(--txt-dim); line-height: 1.55; margin-bottom: 12px; }
.s2-intro b { color: var(--gold-light); }
.s2-email { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(9,20,20,0.7); border: 1px dashed rgba(233,182,84,0.45); }
#s2Email { flex: 1; font-family: var(--grotesk); font-size: 15px; font-weight: 600; color: var(--gold-light);
  word-break: break-all; }
#s2Copy { flex-shrink: 0; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #05201c;
  background: linear-gradient(100deg, var(--gold-light), var(--gold)); border: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: filter 0.2s, transform 0.15s; }
#s2Copy:hover { filter: brightness(1.06); transform: translateY(-1px); }
#s2Copy.copied { background: linear-gradient(100deg,#7ff0c8,var(--pos)); }
.s2-steps { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; color: var(--txt-dim); line-height: 1.5; }
.s2-steps li::marker { color: var(--gold); font-weight: 700; }
.s2-steps b { color: var(--txt); }
.s2-waiting { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 15px; border-radius: 12px;
  background: rgba(18,180,189,0.08); border: 1px solid rgba(52,220,203,0.25); color: var(--teal-glow); font-size: 13.5px; font-weight: 600; }
.s2-waiting[hidden] { display: none; }
.s2-spin { width: 16px; height: 16px; border: 2px solid rgba(52,220,203,0.3); border-top-color: var(--teal-glow); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
.s2-success { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(43,208,127,0.1); border: 1px solid rgba(43,208,127,0.4); color: var(--pos); font-size: 14px; font-weight: 700;
  animation: rise 0.4s both; }
.s2-success[hidden] { display: none; }
.s2-sim { margin-top: 12px; width: 100%; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--txt-dim);
  background: transparent; border: 1px dashed var(--card-brd); padding: 9px; border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.s2-sim[hidden] { display: none; }
.s2-sim:hover { color: #ffd777; border-color: rgba(226,178,58,0.4); }

/* Étape 2 : sous-états */
#s2Confirm[hidden], #s2Sure[hidden], #s2Final[hidden] { display: none; }
#s2Confirm, #s2Sure, #s2Final { animation: sell-in 0.4s cubic-bezier(0.2,0.7,0.2,1) both; }
.s2-received { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--pos); }
.s2-note { font-size: 13px; color: var(--txt-dim); line-height: 1.5; margin: 10px 0 12px; }
.s2-note b { color: var(--txt); }
.confirm-btn2 { display: block; text-align: center; text-decoration: none; padding: 15px; border-radius: 13px; font-weight: 800; font-size: 15px; color: #05201c;
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 12px 30px -10px rgba(233,182,84,0.6); margin-bottom: 12px; transition: transform 0.15s, filter 0.2s; }
.confirm-btn2:hover { transform: translateY(-2px); filter: brightness(1.05); }
.confirm-btn2[hidden] { display: none; }
.btn-ghost { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--txt-dim); background: transparent; border: 1px solid var(--card-brd); border-radius: 12px; padding: 13px; cursor: pointer; transition: all 0.2s; }
.btn-ghost:hover { color: var(--txt); border-color: rgba(255,255,255,0.25); }
.s2-sure-q { font-size: 15px; font-weight: 600; text-align: center; margin: 16px 0 14px; }
.s2-sure-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Popup finale */
.s2-final { text-align: center; padding: 24px 20px; border-radius: 16px; margin-top: 8px;
  background: linear-gradient(160deg, rgba(52,220,203,0.12), rgba(233,182,84,0.06)); border: 1px solid rgba(52,220,203,0.3); }
.s2-final-emoji { color: var(--teal-glow); line-height: 0; animation: medal-pop 0.6s cubic-bezier(0.3,1.8,0.5,1) both; filter: drop-shadow(0 4px 12px rgba(52,220,203,0.4)); }
.s2-final-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 6px 0 8px; }
.s2-final-text { font-size: 14px; color: var(--txt-dim); line-height: 1.55; max-width: 380px; margin: 0 auto 16px; }
.s2-final-text b { color: var(--teal-glow); }
.s2-order { background: rgba(9,20,20,0.6); border: 1px dashed rgba(52,220,203,0.4); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.s2-order-lbl { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--txt-dim); margin-bottom: 6px; }
.s2-order-row { display: flex; align-items: center; gap: 10px; justify-content: center; }
.s2-order-code { font-family: var(--grotesk); font-size: 22px; font-weight: 700; letter-spacing: 0.1em; color: var(--teal-glow); }
#s2OrderCopy { font-family: inherit; font-size: 12px; font-weight: 700; color: #04201d; background: linear-gradient(100deg, var(--teal), var(--teal-bright)); border: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
#s2OrderCopy.copied { background: linear-gradient(100deg,#2bd07f,#7ff0c8); }
.discord-box { border-color: rgba(88,101,242,0.5); background: rgba(88,101,242,0.1); }
.discord-box .s2-order-code { color: #aeb8ff; }
#s2DiscordCopy { font-family: inherit; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(100deg,#5865F2,#7983f5); border: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
#s2DiscordCopy.copied { background: linear-gradient(100deg,#2bd07f,#7ff0c8); color: #04201d; }
.contact-btn { display: block; text-decoration: none; text-align: center; padding: 15px; border-radius: 13px; font-weight: 800; font-size: 15.5px; color: #fff;
  background: linear-gradient(100deg, #5865F2, #7983f5); box-shadow: 0 12px 30px -10px rgba(88,101,242,0.6); transition: transform 0.15s, filter 0.2s; }
.contact-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* pied du certificat */
.cert-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px;
  border-top: 1px dashed rgba(233,182,84,0.2); flex-wrap: wrap; }
.cert-issued { font-size: 12px; color: var(--txt-dim); }
.cert-actions { display: flex; gap: 10px; }
.profile-link, .share-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; font-family: inherit;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.profile-link { color: var(--teal-glow); border: 1px solid rgba(52,220,203,0.3); background: transparent; }
.profile-link:hover { background: rgba(52,220,203,0.1); }
.share-btn { color: var(--txt-dim); background: rgba(255,255,255,0.04); border: 1px solid var(--card-brd); }
.share-btn:hover { color: var(--gold-light); border-color: rgba(233,182,84,0.4); }
.share-btn.copied { color: var(--pos); border-color: rgba(43,208,127,0.5); }

/* skeleton */
.skeleton-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.sk { background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
.sk-seal { width: 78px; height: 78px; border-radius: 50%; }
.sk-lines { display: flex; flex-direction: column; gap: 12px; }
.sk-line { height: 16px; } .w60 { width: 60%; } .w40 { width: 40%; }
.sk-price { width: 150px; height: 92px; border-radius: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* footer */
.site-footer { text-align: center; padding: 30px 20px 44px; color: var(--txt-dim); font-size: 12px; max-width: 580px; margin: 0 auto; line-height: 1.7; }
.site-footer b { color: #b9cccb; }

/* responsive */
@media (max-width: 640px) {
  .cert-head { grid-template-columns: auto 1fr; grid-template-areas: 'seal grade' 'title title'; row-gap: 14px; }
  .seal { grid-area: seal; } .grade { grid-area: grade; justify-self: end; } .cert-title { grid-area: title; }
  .cert-body { grid-template-columns: 1fr; }
  .cert-price { justify-self: stretch; align-items: center; text-align: center; }
  .cert-price-hint { max-width: none; }
  .breakdown { flex-wrap: wrap; }
  .bd-item { flex: 1 1 100%; }
  .bd-op { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .pay-methods { grid-template-columns: 1fr; }
  .search-inner { flex-wrap: wrap; padding: 10px; }
  #q { padding: 8px 4px; width: 100%; } #go { width: 100%; }
  .how { grid-template-columns: 1fr; }
  .header-right { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; } }
