/* ==========================================================================
   LumiSEO — styles des pages Analyse et Rang, et effets repris de luminosweb.com
   ========================================================================== */

/* Changement de thème : cercle qui s'ouvre depuis le bouton (identique à luminosweb.com) */
@keyframes theme-circle-reveal {
  0% { clip-path: circle(0px at var(--theme-reveal-x) var(--theme-reveal-y)); }
  to { clip-path: circle(var(--theme-reveal-radius) at var(--theme-reveal-x) var(--theme-reveal-y)); }
}
html[data-theme-transition]::view-transition-new(root) { mix-blend-mode: normal; z-index: 2; animation: .6s ease-in-out both theme-circle-reveal; }
html[data-theme-transition]::view-transition-old(root) { mix-blend-mode: normal; z-index: 1; animation: none; }
html[data-theme-transition]::view-transition-image-pair(root) { isolation: isolate; }

/* Navigation : page active */
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* ==========================================================================
   Page d'analyse : sommaire latéral
   ========================================================================== */
.page-analyse .app .wrap { width: min(100% - 48px, 1380px); }
.app-empty { margin: 70px auto 20px; text-align: center; max-width: 640px; }
.app-empty h1 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.045em; }
.app-empty h1 .accent { color: var(--accent); }
.app-empty p { margin: 14px auto 0; max-width: 520px; color: var(--muted); }
.r-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 28px; }
.r-side { position: sticky; top: 90px; z-index: 40; }
.r-toc-toggle { display: none; }
.r-toc { display: grid; gap: 2px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-height: calc(100vh - 110px); overflow: auto; }
.r-toc-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.mini-score { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--ink); background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--surface-2) 0); position: relative; flex: none; }
.mini-score::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.mini-score span { position: relative; z-index: 1; }
.r-toc-head b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.r-toc-head small { display: block; font-size: 11.5px; color: var(--faint); }
.r-toc-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 6px; }
.r-toc a { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.r-toc a .ic { width: 18px; height: 18px; flex: none; }
.r-toc a:hover { background: var(--surface-2); color: var(--ink); }
.r-toc a.is-active { background: var(--accent-soft); color: var(--accent); }
.r-toc a.is-active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }
.r-toc a .count { margin-left: auto; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft-2); color: var(--accent); }
.r-main { min-width: 0; }
.r-main > .r-section:first-child { padding-top: 0; }
.r-main .r-section { scroll-margin-top: 96px; }
.report .overview { grid-template-columns: 1fr; margin-top: 0; }
.report .scores-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .r-layout { display: block; }
  .r-side { position: sticky; top: 70px; z-index: 60; margin: 0 -24px 8px; padding: 10px 24px; background: var(--navbar); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
  .r-toc-toggle { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 600; font-size: 14.5px; color: var(--ink); }
  .r-toc-toggle .ic { width: 18px; height: 18px; color: var(--accent); }
  .r-toc-toggle .lbl { color: var(--faint); font-weight: 500; }
  .r-toc-toggle .ic-chev { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
  .r-side.open .r-toc-toggle .ic-chev { transform: rotate(180deg); }
  .r-toc { display: none; position: absolute; left: 24px; right: 24px; top: calc(100% - 2px); grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); max-height: 70vh; }
  .r-side.open .r-toc { display: grid; animation: fadeUp .3s var(--ease); opacity: 1; }
  .r-toc-head, .r-toc-title { grid-column: 1 / -1; }
  .r-toc a.is-active::before { display: none; }
  .r-main .r-section { scroll-margin-top: 150px; }
}
@media (max-width: 860px) { .report .scores-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .page-analyse .app .wrap { width: min(100% - 32px, 1380px); }
  .r-side { margin: 0 -16px 8px; padding: 10px 16px; }
  .r-toc { left: 16px; right: 16px; grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page Rang : top 100 mondial
   ========================================================================== */
.rank-hero { padding: 64px 0 10px; text-align: center; }
.rank-hero h1 { margin-top: 16px; font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -0.048em; line-height: 1.04; }
.rank-hero h1 .accent { color: var(--accent); }
.rank-hero p { margin: 18px auto 0; max-width: 640px; color: var(--muted); font-size: 17px; }
.rank-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: end; margin-top: 48px; }
.podium-card { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 30px 18px 22px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .5s var(--ease), border-color .3s; color: inherit; }
.podium-card:hover { transform: translateY(-5px); }
.podium-card.p1 { padding-top: 44px; background: radial-gradient(320px 200px at 50% 0%, var(--accent-soft-2), transparent 70%), var(--surface); }
.podium-card .medal { position: absolute; z-index: 3; top: -17px; left: 50%; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--accent); box-shadow: 0 8px 20px -8px var(--accent); }
.podium-card .pfav { width: 60px; height: 60px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.podium-card .pfav img { width: 34px; height: 34px; }
.podium-card b { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.podium-card small { color: var(--muted); font-size: 13px; }
.rank-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 44px 0 14px; }
.rank-search { position: relative; flex: 1; max-width: 380px; min-width: 220px; }
.rank-search .ic { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--accent); pointer-events: none; }
.rank-search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--field); outline: 0; font-size: 15px; transition: border-color .2s, box-shadow .3s; }
.rank-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.rank-opts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .25s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .3s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.rank-count { font-size: 13px; color: var(--faint); }
.rank-head, .rank-row { display: grid; grid-template-columns: 54px 36px minmax(0, 1.6fr) 104px 130px minmax(0, 1.2fr) 118px; align-items: center; gap: 14px; }
.rank-head { padding: 0 18px 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.rank-list { display: grid; gap: 8px; }
.rank-row { padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: inherit; transition: transform .4s var(--ease), box-shadow .4s; }
.rank-row:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.rank-row.is-tech .rank-dom b { color: var(--muted); }
.rank-num { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.rank-fav { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.rank-fav img { width: 20px; height: 20px; }
.rank-dom { min-width: 0; }
.rank-dom b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-dom small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--faint); }
.rank-dom small .ic { width: 13px; height: 13px; }
.move { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.move .ic { width: 14px; height: 14px; }
.move.up { color: var(--good-ink); }
.move.down { color: var(--bad-ink); }
.move.same { color: var(--faint); }
.move.new { color: var(--accent); }
.rank-visits { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-visits small { display: block; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.rank-host { min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-go { justify-self: end; }
.rank-insights { margin-top: 44px; }
.rank-empty { padding: 40px; text-align: center; color: var(--muted); border-radius: 16px; border: 1px dashed var(--line-strong); }
.rank-note { margin-top: 18px; font-size: 13px; color: var(--faint); text-align: center; }
@media (max-width: 1000px) {
  .rank-head, .rank-row { grid-template-columns: 44px 34px minmax(0, 1fr) 96px 110px; }
  .rank-head .c-host, .rank-row .rank-host, .rank-head .c-go, .rank-row .rank-go { display: none; }
}
@media (max-width: 620px) {
  .podium { grid-template-columns: 1fr; gap: 26px; }
  .podium-card.p1 { order: -1; }
  .rank-head { display: none; }
  .rank-row { grid-template-columns: 38px 32px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .rank-row .rank-visits { display: none; }
}
@media print { .rank-tools, .r-side { display: none !important; } .r-layout { display: block; } }

/* ==========================================================================
   Rapport : bouton « Faites-vous aider »
   ========================================================================== */
.btn-help { gap: 7px; }
.btn-help .ic { width: 16px; height: 16px; }
.btn-help:hover .ic-move { transform: translate(2px, -2px); }

/* ==========================================================================
   Pied de page : copyright, crédit centré, liens
   ========================================================================== */
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer-bottom > :last-child { justify-self: end; text-align: right; }
.creator-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: color .2s, text-decoration-color .2s; }
.creator-link .ic { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.creator-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.creator-link:hover .ic { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .footer-bottom > :last-child { justify-self: center; text-align: center; }
  .footer-bottom .creator-link { order: -1; }
}

/* ==========================================================================
   Méthode : icônes 3D en verre (CSS + icônes Lucide), flottantes avec parallaxe
   ========================================================================== */
.step-art {
  position: relative; height: 210px; perspective: 900px;
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(240px 150px at 50% 58%, var(--accent-soft-2), transparent 72%),
    radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--surface-tint), var(--surface));
}
.step-art::after { content: ""; position: absolute; left: 50%; bottom: 30px; width: 130px; height: 18px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, #4c1d9545, transparent); filter: blur(3px); animation: art-shadow 6s ease-in-out infinite; }
:root[data-theme="dark"] .step-art::after { background: radial-gradient(closest-side, #000b, transparent); }
.art3d { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.step:hover .art3d { transform: rotateX(10deg) rotateY(-12deg); }
.g3d {
  position: absolute; display: grid; place-items: center; transform-style: preserve-3d; will-change: transform;
  translate: calc(var(--px, 0) * var(--depth, 10) * 1px) calc(var(--py, 0) * var(--depth, 10) * 1px);
  scale: .55; opacity: 0;
  transition: scale 1s var(--ease), opacity .7s var(--ease), translate .5s var(--ease);
  transition-delay: calc(var(--k) * 120ms + .15s), calc(var(--k) * 120ms + .15s), 0s;
}
.step.is-in .g3d { scale: 1; opacity: 1; }
.g3d .ic { position: relative; z-index: 2; }

/* Tuile principale : verre violet avec épaisseur et reflet */
.g3d-main { width: 104px; height: 104px; left: calc(50% - 52px); top: 36px; border-radius: 30px; --depth: 12; animation: art-float 6s ease-in-out infinite; }
.g3d-main::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, #5b21b6, #2e1065); transform: translateY(8px); box-shadow: 0 28px 42px -16px #4c1d959e; }
.g3d-main::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(120% 85% at 22% 6%, #ffffffa6, #ffffff00 46%),
    linear-gradient(150deg, #c4a7ff 0%, #8b5cf6 40%, #6d28d9 100%);
  box-shadow: inset 0 1.5px 0 #ffffffc0, inset 0 -14px 26px #2e106573, inset 0 0 0 1px #ffffff38;
}
.g3d-main .ic { width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 3px 5px #2e106580); }

/* Petites tuiles : verre dépoli */
.g3d-chip, .g3d-pill {
  background: linear-gradient(150deg, #fffffff5, #ede9fecc);
  border: 1px solid #ffffffe6;
  box-shadow: inset 0 -6px 12px #7c3aed1a, 0 18px 30px -14px #301c5459, 0 2px 4px #301c5412;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
:root[data-theme="dark"] .g3d-chip, :root[data-theme="dark"] .g3d-pill {
  background: linear-gradient(150deg, #3c285ae6, #1c1228d9);
  border-color: #ffffff1f;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 18px 30px -14px #000c;
}
.g3d-chip { width: 58px; height: 58px; border-radius: 18px; }
.g3d-chip .ic { width: 26px; height: 26px; color: var(--accent); }
.g3d-pill { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap; }
.g3d-pill span { display: inline-flex; }
.g3d-pill .ic { width: 15px; height: 15px; color: var(--accent); }
.g3d-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px #d03b3b26; }
.art3d .a-s1 { left: 11%; top: 26px; --depth: 26; animation: art-float 7.5s ease-in-out -2.4s infinite; }
.art3d .a-s2 { right: 11%; top: 80px; --depth: -20; animation: art-float 8.5s ease-in-out -4.2s infinite; }
.art3d .g3d-pill { left: 8%; bottom: 26px; --depth: 18; animation: art-float 9s ease-in-out -1.2s infinite; }
@keyframes art-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -10px, 30px) rotate(-4deg); } }
@keyframes art-shadow { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: .82; opacity: .55; } }
@media (max-width: 860px) {
  .step-art { display: block; grid-column: 2; height: 180px; }
  .g3d-main { width: 92px; height: 92px; left: calc(50% - 46px); top: 32px; border-radius: 26px; }
  .g3d-main .ic { width: 40px; height: 40px; }
}

/* ==========================================================================
   Panneau « points de contrôle » : chiffre clé + pastilles qui défilent
   ========================================================================== */
.checks-band { padding: 34px 0 6px; }
.checks-panel {
  display: grid; grid-template-columns: minmax(290px, .78fr) minmax(0, 1.7fr);
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(560px 320px at 88% -10%, var(--accent-soft-2), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--surface);
  box-shadow: var(--shadow);
}
.cp-intro { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 12px; padding: 38px 34px 32px; border-right: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 30%, var(--surface-tint)); }
.cp-big { display: flex; align-items: flex-start; line-height: .9; margin-top: 8px; }
.cp-big b { font-size: clamp(72px, 7vw, 104px); font-weight: 500; letter-spacing: -0.065em; color: var(--ink); font-variant-numeric: proportional-nums; }
.cp-big span { font-size: clamp(40px, 4vw, 56px); font-weight: 500; color: var(--accent); margin: 4px 0 0 4px; }
.cp-lead { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 310px; }
.cp-lead strong { color: var(--ink); font-weight: 600; }
.cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.cp-stats b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); line-height: 1.2; }
.cp-stats span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--faint); }
.cp-marquee { position: relative; display: grid; align-content: center; gap: 12px; padding: 30px 0; min-width: 0; -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; padding: 4px 0 8px; animation: ticker-left 60s linear infinite; }
.ticker-row[data-dir="right"] .ticker-track { animation-name: ticker-right; animation-duration: 68s; }
.ticker-row:nth-child(3) .ticker-track { animation-duration: 76s; }
.checks-panel:hover .ticker-track { animation-play-state: paused; }
.tchip {
  display: inline-flex; align-items: center; gap: 11px; height: 50px; padding: 0 22px 0 9px;
  border-radius: 999px; white-space: nowrap; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent-line), var(--line) 38%, var(--line) 62%, var(--accent-line)) border-box;
  box-shadow: 0 1px 2px #301c540a, 0 12px 26px -20px #301c544d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), color .2s;
}
.tchip:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 1px 2px #301c540a, 0 18px 32px -18px #7c3aed66; }
:root[data-theme="dark"] .tchip { box-shadow: 0 12px 26px -18px #000; }
.tchip-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: linear-gradient(150deg, var(--accent-soft-2), var(--accent-soft)); box-shadow: inset 0 0 0 1px var(--accent-soft-2); transition: background .3s, color .3s; }
.tchip:hover .tchip-ic { background: var(--accent); color: var(--accent-ink); }
.tchip-ic .ic { width: 17px; height: 17px; }
@keyframes ticker-left { to { transform: translateX(-50%); } }
@keyframes ticker-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 960px) {
  .checks-panel { grid-template-columns: 1fr; }
  .cp-intro { border-right: 0; border-bottom: 1px solid var(--line); }
  .cp-lead { max-width: none; }
}
@media (max-width: 620px) {
  .cp-intro { padding: 30px 22px 24px; }
  .tchip { height: 44px; font-size: 14px; padding-right: 18px; }
  .tchip-ic { width: 28px; height: 28px; }
}

/* ==========================================================================
   Visuel du hero : grille bento de statistiques (même inclinaison qu'avant)
   ========================================================================== */
.hv-bento { position: absolute; inset: 14px 0 34px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 1.25fr 1.25fr 1fr 1fr; gap: 14px; transform-style: preserve-3d; }
.hv-bento .hv-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.hv-bento .b-scores { grid-column: 1 / 5; grid-row: 1 / 3; }
.hv-bento .b-traffic { grid-column: 5 / 7; grid-row: 1 / 2; }
.hv-bento .b-ring { grid-column: 5 / 7; grid-row: 2 / 3; flex-direction: row; align-items: center; gap: 12px; }
.hv-bento .b-vitals { grid-column: 1 / 4; grid-row: 3 / 5; justify-content: center; }
.hv-bento .b-shop { grid-column: 4 / 7; grid-row: 3 / 5; }
.hv-bento .hv-browser { margin: -2px 0 10px; }
.hv-bento .hv-scores { gap: 8px; }
.hv-bento .hv-score { padding: 8px 4px; gap: 4px; }
.hv-bento .hv-score svg { width: 54px; height: 54px; }
.hv-bento .hv-line { margin-top: 10px; padding: 10px 12px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.hv-bento .hv-line svg { flex: 1; width: 100%; height: auto; min-height: 40px; overflow: visible; }
.hv-bento .hv-big { font-size: 30px; margin-top: 4px; }
.hv-bento .b-traffic small { margin-top: 2px; }
.b-spark { width: 100%; height: 26px; margin-top: auto; overflow: visible; }
.b-ring svg { width: 70px; height: 70px; flex: none; }
.b-ring h4 { display: block; }
.hv-bento .b-vitals .hv-vital { margin-top: 12px; }
.hv-bento .b-shop .hv-bars { flex: 1; height: auto; min-height: 70px; margin-top: 14px; }
@media (max-width: 1100px) { .hero-visual { height: 500px; } }
@media (max-width: 620px) {
  .hero-visual { height: auto; }
  .hv-stage { position: relative; transform: rotateX(4deg) rotateY(-5deg); }
  .hv-bento { position: relative; inset: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 12px; }
  .hv-bento .b-scores, .hv-bento .b-shop { grid-column: 1 / -1; grid-row: auto; }
  .hv-bento .b-traffic, .hv-bento .b-ring { grid-column: auto; grid-row: auto; }
  .hv-bento .b-vitals { grid-column: 1 / -1; grid-row: auto; }
  .hv-bento .b-ring { flex-direction: column; text-align: center; }
  .hv-caption { position: static; transform: none; text-align: center; margin-top: 14px; }
}

/* Inclinaison 3D générique (panneau e-commerce) */
[data-tilt] { transform-style: preserve-3d; transition: transform .7s var(--ease), box-shadow .5s var(--ease), opacity .8s var(--ease), filter .8s var(--ease); }
[data-tilt].is-tilting { transition-duration: .18s, .5s, .8s, .8s; box-shadow: 0 50px 90px -34px #7c3aed4d; }
.tilt-glare { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), #ffffff55, transparent 60%); mix-blend-mode: soft-light; }
:root[data-theme="dark"] .tilt-glare { background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), #a569f133, transparent 60%); mix-blend-mode: screen; }
[data-tilt].is-tilting .tilt-glare { opacity: 1; }

/* ==========================================================================
   FAQ : survol animé et ouverture fluide
   ========================================================================== */
.faq details { transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease), opacity .8s var(--ease), filter .8s var(--ease); }
.faq details:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.faq summary { position: relative; transition: color .25s, padding-left .5s var(--ease); }
.faq summary::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #c084fc, var(--accent)); transform: scaleY(0); transition: transform .5s var(--ease); }
.faq details:hover summary, .faq details[open] summary { padding-left: 30px; }
.faq details:hover summary::before, .faq details[open] summary::before { transform: scaleY(1); }
.faq details:hover summary { color: var(--accent); }
.faq summary > span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); transition: background .3s, transform .6s var(--ease); }
.faq summary > span .ic { transition: transform .5s var(--ease), color .3s; }
.faq details:hover summary > span { background: var(--accent); transform: rotate(90deg); }
.faq details:hover summary > span .ic { color: var(--accent-ink); }
.faq details[open] summary > span { background: var(--accent); }
.faq details[open] summary > span .ic { color: var(--accent-ink); }
.faq .faq-body { overflow: hidden; padding-left: 30px; transition: color .3s; }
.faq details:hover .faq-body { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .g3d, .step-art::after { animation: none !important; }
  .hv-card, [data-tilt], .faq details, .faq summary { transition: none !important; }
}

/* Bento du hero : toute la grille flotte d'un seul bloc (aucune case ne passe sur une autre) */
.hv-bento { animation: bento-float 7s ease-in-out 2.4s infinite; }
@keyframes bento-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hv-bento { animation: none; } }

/* Page Rang : texte explicatif */
.rank-about { max-width: 820px; margin: 56px auto 0; padding: 32px 34px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.rank-about h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.035em; }
.rank-about p { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.rank-about strong { color: var(--ink); font-weight: 600; }
.rank-about a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Titres décoratifs (pas de balise Hn, pour une hiérarchie propre) */
.hv-card .hv-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.shop-panel .hv-title { font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.footer-grid .footer-title { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.rank-title { margin: 44px 0 -24px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.035em; }
.history .history-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.history .history-title button { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--faint); font-weight: 500; }
.history .history-title button:hover { color: var(--bad-ink); }
