/* ============================================================
   SEOPlus! by OptimizIA.xyz - Feuille de style commune
   DA "Lumiere & profondeur" : fond clair, halos diffus,
   verre depoli, accent orange, data en mono
   ============================================================ */

:root {
  --bg: #F7F9FD;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #5C6674;
  --orange: #F97316;
  --orange-deep: #EA580C;
  --orange-soft: #FFF3EA;
  --blue: #3B82F6;
  --blue-soft: #EFF5FF;
  --green: #16A34A;
  --red: #DC2626;
  --border: #E6EAF2;
  --dark: #0F172A;
  --dark-2: #1E293B;
  --glass: rgba(255, 255, 255, .72);
  --glass-brd: rgba(255, 255, 255, .85);
  --radius: 18px;
  --radius-sm: 10px;
  --pill: 100px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .09);
  --shadow-pop: 0 2px 6px rgba(15, 23, 42, .05), 0 24px 64px rgba(15, 23, 42, .13);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

/* Lumiere : deux halos fixes tres diffus qui traversent toute la page */
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
}
body::before {
  width: 720px; height: 720px; top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(249, 115, 22, .15), transparent 65%);
}
body::after {
  width: 640px; height: 640px; bottom: -300px; left: -220px;
  background: radial-gradient(circle, rgba(59, 130, 246, .12), transparent 65%);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; }

.mono, .score-num, .score-big, .stat b { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.lead { font-size: 1.13rem; color: var(--muted); max-width: 34em; }

.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin-top: .8rem; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease-out), transform .18s var(--ease-out), box-shadow .2s var(--ease-out), border-color .18s var(--ease-out);
  min-height: 48px;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(234, 88, 12, .32);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(234, 88, 12, .4); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }

.btn-block { width: 100%; }

.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding-top: 12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 8px 12px 8px 24px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  border-radius: var(--pill);
  box-shadow: var(--shadow-card);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  align-self: center;
  display: inline-block;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-name em { font-style: normal; color: var(--orange); }

.brand-by {
  font-family: var(--font-mono);
  font-size: .64rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .92rem;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
/* la CTA nav est un bouton : garder le texte blanc (sinon .nav-links a l'emporte) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

.nav .btn { padding: 10px 22px; min-height: 42px; font-size: .92rem; }

.nav-links a.nav-logout { color: var(--muted); font-size: .82rem; font-weight: 500; }
.nav-links a.nav-logout:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav-links a:not(.btn):not(.nav-logout) { display: none; }
}

@media (max-width: 480px) {
  .brand-by { display: none; }
  .brand-logo { width: 26px; height: 26px; border-radius: 8px; }
  .nav .btn { padding: 9px 14px; font-size: .84rem; min-height: 38px; }
}

/* ---------- Hero ---------- */

.hero { padding: 88px 0 104px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 em { font-style: normal; color: var(--orange); }

.hero .lead { margin: 1.4rem 0 2.2rem; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note {
  margin-top: 1.1rem;
  font-size: .84rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Carte rapport live (signature) ---------- */

/* Le rapport flotte en 3D au-dessus de deux couches fantomes */
.report-live {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 26px 26px 22px;
  max-width: 460px;
  position: relative;
  transform: perspective(1400px) rotateX(7deg) rotateY(-5deg);
  transition: transform .6s var(--ease-out);
}
.hero-grid:hover .report-live { transform: perspective(1400px) rotateX(2deg) rotateY(-1.5deg); }
.report-live::before, .report-live::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .5);
}
.report-live::before { inset: 16px -22px -12px auto; width: 100%; }
.report-live::after { inset: 32px -44px -24px auto; width: 100%; background: rgba(255, 255, 255, .3); }

@media (max-width: 900px) {
  .report-live { transform: none; }
  .hero-grid:hover .report-live { transform: none; }
  .report-live::before, .report-live::after { display: none; }
}

.report-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.report-live-head .site {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
}

.report-badge {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.report-score-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.score-ring { position: relative; width: 108px; height: 108px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .track { stroke: var(--border); }
.score-ring .value {
  stroke: var(--orange);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1);
}
.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.score-num strong { font-size: 1.7rem; font-weight: 700; line-height: 1; }
.score-num span { font-size: .62rem; color: var(--muted); margin-top: 2px; }

.score-meta p { font-weight: 700; font-family: var(--font-display); font-size: 1.02rem; }
.score-meta small { color: var(--muted); font-size: .82rem; display: block; margin-top: 4px; }

.cat-bars { display: grid; gap: 11px; }

.cat-bar { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 12px; }
.cat-bar label {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.cat-bar .track {
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  overflow: hidden;
}
.cat-bar .fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: var(--pill);
  background: var(--orange);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.cat-bar .fill.good { background: var(--green); }
.cat-bar .fill.warn { background: var(--orange); }
.cat-bar .fill.bad { background: var(--red); }
.cat-bar output {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
  text-align: right;
}

.report-finding {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
}
.report-finding.visible { opacity: 1; transform: none; }
.report-finding svg { flex-shrink: 0; margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .score-ring .value, .cat-bar .fill, .report-finding, .report-live { transition: none; }
  .report-finding { opacity: 1; transform: none; }
  .btn:hover, .step:hover, .cat-card:hover, .blog-card:hover, .price-card:hover,
  .score-item:hover, .pitem:hover { transform: none; }
}

/* ---------- Bandeau stats ---------- */

.section-more { text-align: center; margin-top: 40px; }

.stats-band { border-block: 1px solid var(--border); padding: 34px 0; background: var(--surface); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.stat span { font-size: .82rem; color: var(--muted); }

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Etapes ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 26px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.step-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-radius: var(--pill);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Grille categories ---------- */

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.cat-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.cat-card svg { color: var(--orange-deep); margin-bottom: 14px; }
.cat-card h3 { font-size: .98rem; margin-bottom: .35rem; }
.cat-card p { font-size: .84rem; color: var(--muted); }

@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cats { grid-template-columns: 1fr; } }

/* ---------- Section GEO (dark) ---------- */

.geo {
  background: var(--dark);
  color: #E2E8F0;
  border-radius: 28px;
  padding: 72px 56px;
}

.geo .eyebrow { color: var(--orange); }
.geo h2 { color: #fff; }
.geo .lead { color: #94A3B8; }

.geo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.geo-points { display: grid; gap: 18px; margin-top: 2rem; }
.geo-point { display: flex; gap: 14px; align-items: flex-start; }
.geo-point svg { flex-shrink: 0; color: var(--orange); margin-top: 3px; }
.geo-point b { display: block; color: #fff; font-size: .97rem; }
.geo-point span { font-size: .87rem; color: #94A3B8; }

.geo-terminal {
  background: #0B1220;
  border: 1px solid #1E293B;
  border-radius: var(--radius);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.9;
  color: #7DD3FC;
}
.geo-terminal .dim { color: #475569; }
.geo-terminal .ok { color: #4ADE80; }
.geo-terminal .ko { color: #F87171; }

@media (max-width: 900px) {
  .geo { padding: 56px 28px; }
  .geo-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 780px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.price-card.featured {
  border: 1.5px solid rgba(249, 115, 22, .45);
  box-shadow: 0 4px 10px rgba(234, 88, 12, .08), 0 28px 70px rgba(234, 88, 12, .18);
  transform: scale(1.04);
  position: relative;
}
.price-card.featured:hover { transform: scale(1.04) translateY(-3px); }
@media (max-width: 900px) {
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-3px); }
}

.featured-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--pill);
  white-space: nowrap;
}

.price-card h3 { font-size: 1.05rem; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 14px 0 2px;
}
/* OFFRE-LANCEMENT (revert : supprimer cette règle) */
.price-card .price s {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 8px;
}
.price-card .price small {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.price-card .price-desc { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

.price-features { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; flex-grow: 1; }
.price-features li { display: flex; gap: 10px; font-size: .9rem; align-items: flex-start; }
.price-features svg { flex-shrink: 0; color: var(--green); margin-top: 4px; }
.price-features li.off { color: var(--muted); }
.price-features li.off svg { color: var(--border); }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

.price-reassurance {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 26px auto 0;
  max-width: 780px;
}
.price-reassurance li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
}
.price-reassurance svg { color: var(--green); flex-shrink: 0; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: .98rem;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--orange-deep);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; color: var(--muted); font-size: .93rem; max-width: 60em; }

/* ---------- Fondateurs ---------- */

.founders {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.founders-avatars { display: flex; }
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid var(--surface);
}
.avatar + .avatar { margin-left: -14px; background: var(--orange); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.founders blockquote { font-size: 1.05rem; color: var(--ink-soft); }
.founders cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
}

@media (max-width: 720px) { .founders { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- CTA final ---------- */

.final-cta { text-align: center; }
.final-cta h2 { max-width: 18em; margin: 0 auto 1rem; }
.final-cta p { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 56px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer .brand-name { color: #fff; }
.footer p { font-size: .86rem; max-width: 30em; margin-top: 10px; }
.footer a { color: #CBD5E1; }
.footer nav { display: grid; gap: 8px; font-size: .88rem; align-content: start; }

.footer-brand-line { display: flex; align-items: center; gap: 10px; }
.footer-title {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: #64748B;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  font-family: var(--font-mono);
}
.footer-bottom a { color: var(--orange); }

/* ============================================================
   Pages app : /roast, /rapport
   ============================================================ */

.app-main { min-height: calc(100vh - 68px); padding: 64px 0 96px; }

.progress-track {
  height: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  overflow: hidden;
  margin: 32px 0 12px;
}
.progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(.04);
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  border-radius: var(--pill);
  transition: transform .8s ease;
}

@keyframes pulse { 50% { opacity: .3; } }

.score-chip {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .82rem;
  padding: 3px 10px;
  border-radius: var(--pill);
}
.score-chip.good { background: #EAF7EE; color: var(--green); }
.score-chip.warn { background: var(--orange-soft); color: var(--orange-deep); }
.score-chip.bad { background: #FDECEC; color: var(--red); }

.hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
}

/* ============================================================
   Champ roast du hero
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.hero-roast {
  display: flex;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--pill);
  padding: 6px 6px 6px 8px;
  box-shadow: var(--shadow-pop);
  max-width: 480px;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.hero-roast:focus-within { border-color: var(--orange); }

.hero-roast input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: .98rem;
  color: var(--ink);
  padding: 0 8px 0 12px;
}
.hero-roast input:focus { outline: none; }
.hero-roast .btn { white-space: nowrap; padding: 12px 22px; min-height: 44px; }

@media (max-width: 480px) {
  .hero-roast { flex-direction: column; border-radius: var(--radius); padding: 12px; }
  .hero-roast input { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }
  .hero-roast .btn { width: 100%; }
}

/* ============================================================
   Page /roast
   ============================================================ */

/* ---- Loader ---- */
.roast-loading { max-width: 620px; padding: 24px 0 40px; }
.roast-loading-title { margin: 6px 0 12px; }
.roast-loading-title em { font-style: normal; color: var(--orange); }
.roast-loading-sub { color: var(--muted); margin-bottom: 12px; }

.roast-checklist { list-style: none; display: grid; gap: 12px; margin-top: 32px; }
.roast-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--muted);
  transition: color .3s ease;
}
.rc-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: border-color .3s ease, background .3s ease;
}
.roast-checklist li.active { color: var(--ink); font-weight: 600; }
.roast-checklist li.active .rc-dot { border-color: var(--orange); }
.roast-checklist li.active .rc-dot::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.1s ease infinite;
}
.roast-checklist li.done { color: var(--ink-soft); }
.roast-checklist li.done .rc-dot { border-color: var(--green); background: var(--green); }
.roast-checklist li.done .rc-dot::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
  .roast-checklist li.active .rc-dot::after { animation: none; }
}

/* ---- Erreur ---- */
.roast-error { max-width: 520px; padding: 40px 0; }
.roast-error p { color: var(--muted); margin: 12px 0 28px; }

.price-demo-link { display: block; text-align: center; margin-top: 12px; font-size: 0.88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.price-demo-link:hover { color: var(--ink); }

/* ---- Pages légales ---- */
.legal { max-width: 720px; padding: 56px 20px 72px; }
.legal h1 { margin-bottom: 8px; }
.legal .legal-updated { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal p { margin: 10px 0; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal a { color: var(--accent); }

/* ---- Paywall (seam Stripe) ---- */
.rep-paywall { max-width: 560px; padding: 40px 0; }
.rep-paywall .pay-kicker { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; }
.rep-paywall h1 em { font-style: normal; color: var(--accent); }
.rep-paywall .pay-sub { color: var(--muted); margin: 14px 0 28px; }
.rep-paywall .pay-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---- Résultat ---- */
.roast-result { display: grid; gap: 28px; padding-bottom: 24px; }

.roast-verdict-head {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 30px;
}
.rv-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.rv-host { font-size: .92rem; color: var(--ink-soft); font-weight: 600; }

.rv-scoreline { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; }

.rv-ring { width: 132px; height: 132px; }
.rv-ring .score-num strong { font-size: 2.1rem; }

.score-ring .value.good { stroke: var(--green); }
.score-ring .value.warn { stroke: var(--orange); }
.score-ring .value.bad { stroke: var(--red); }

.rv-grade { text-align: center; }
.rv-grade-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  margin: 0 auto 8px;
}
.rv-grade-badge.good { background: #EAF7EE; color: var(--green); }
.rv-grade-badge.warn { background: var(--orange-soft); color: var(--orange-deep); }
.rv-grade-badge.bad { background: #FDECEC; color: var(--red); }
.rv-grade-label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.rv-punch-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 16px; }
.rv-counts { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-count {
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: var(--pill);
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--border);
}
.rv-count b { font-weight: 700; }
.rv-count.good b { color: var(--green); }
.rv-count.warn b { color: var(--orange-deep); }
.rv-count.bad b { color: var(--red); }

@media (max-width: 640px) {
  .rv-scoreline { grid-template-columns: auto auto; gap: 18px 24px; }
  .rv-punch { grid-column: 1 / -1; }
}

/* ---- Cartes IA ---- */
.roast-ai-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}
.roast-ai-card p { color: var(--ink-soft); font-size: .96rem; }
.ai-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange-deep);
  margin-bottom: 12px;
}

/* ---- Upsell ---- */
.roast-upsell {
  background: var(--dark);
  color: #E2E8F0;
  border-radius: var(--radius);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.roast-upsell h2 { color: #fff; font-size: 1.4rem; }
.roast-upsell p { color: #94A3B8; font-size: .92rem; margin-top: 8px; max-width: 46em; }
.roast-upsell .btn { white-space: nowrap; flex-shrink: 0; }

.roast-h2 { font-size: 1.5rem; }

/* ---- Catégories ---- */
.roast-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 680px) { .roast-cats { grid-template-columns: 1fr; } }

.roast-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.roast-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.roast-cat-head h3 { font-size: 1rem; }
.roast-cat-teaser { font-size: .88rem; color: var(--muted); }
.roast-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  filter: saturate(.4);
}
.roast-lock svg { flex-shrink: 0; color: var(--orange-deep); }

/* ---- Serveur + OG ---- */
.roast-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .roast-facts { grid-template-columns: 1fr; } }

.roast-fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.fact-label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 16px; }

.srv-map {
  position: relative;
  margin: 0 0 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: radial-gradient(120% 140% at 50% 0%, #1E293B 0%, #0F172A 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.srv-map-svg { display: block; width: 100%; height: 100%; }
.srv-map-land { fill: #38465C; stroke: #0F172A; stroke-width: .5; }
.srv-marker-halo { fill: var(--orange); transform-box: fill-box; transform-origin: center; animation: srvPulse 2.4s ease-out infinite; }
.srv-marker-ring { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .95; }
.srv-marker-dot { fill: var(--orange); }
@keyframes srvPulse {
  0%   { transform: scale(.28); opacity: .5; }
  70%  { opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .srv-marker-halo { animation: none; opacity: .3; transform: scale(.9); }
}

.fact-geo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fact-flag { font-size: 2rem; line-height: 1; }
.fact-geo b { display: block; font-size: 1rem; }
.fact-geo .mono { font-size: .82rem; color: var(--muted); }

.fact-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .84rem; }
.fact-list dt { color: var(--muted); }
.fact-list dd { text-align: right; color: var(--ink-soft); word-break: break-all; }

.og-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.og-img {
  aspect-ratio: 1200 / 630;
  background: var(--bg) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
}
.og-img.empty { background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 10px, #F1F4FA 10px, #F1F4FA 20px); }
.og-text { padding: 12px 14px; }
.og-text b { display: block; font-size: .92rem; margin-bottom: 4px; }
.og-text p { font-size: .82rem; color: var(--muted); }
.fact-note { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* ---- Core Web Vitals reels (PageSpeed Insights) ---- */
.cwv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.cwv-loading {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: .9rem;
  padding: 26px 24px; border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.cwv-spin {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--border); border-top-color: var(--orange);
  border-radius: 50%; animation: cwvSpin .8s linear infinite;
}
@keyframes cwvSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cwv-spin { animation: none; } }
.cwv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 3px;
}
.cwv-metric { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cwv-value { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 3px 0; }
.cwv-value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.cwv-rating { font-size: .8rem; font-weight: 700; width: fit-content; }
.cwv-desc { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.cwv-ideal { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin-top: 2px; }
.cwv-good { border-left-color: #16A34A; }
.cwv-good .cwv-rating { color: #16A34A; }
.cwv-warn { border-left-color: #D97706; }
.cwv-warn .cwv-rating { color: #D97706; }
.cwv-bad { border-left-color: var(--red); }
.cwv-bad .cwv-rating { color: var(--red); }

/* ---- CTA final ---- */
.roast-final-cta {
  text-align: center;
  background: var(--orange-soft);
  border: 1px solid #FCD9BE;
  border-radius: var(--radius);
  padding: 44px 32px;
}
.roast-final-cta h2 { max-width: 16em; margin: 0 auto 12px; }
.roast-final-cta p { color: var(--ink-soft); max-width: 40em; margin: 0 auto 24px; font-size: .95rem; }

/* ======================================================
   /rapport - audit complet (offre 9,90 EUR)
   ====================================================== */

.report-badge--paid { background: var(--dark); color: #fff; }

.report-block { margin-top: 56px; }
.report-block .section-head { margin-bottom: 28px; }

.rv-meta-actions { display: flex; align-items: center; gap: 12px; }
.btn-print { padding: 8px 16px; font-size: .85rem; }

/* ---- Hero dark du rapport (format cas clients OptimizIA.xyz) ---- */
.app-main--report { padding-bottom: 0; }
.rep-hero {
  background: var(--dark);
  color: #E2E8F0;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  margin-top: -64px;
}
.rep-hero::before {
  content: "";
  position: absolute; top: -120px; right: -80px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, .14) 0%, transparent 65%);
  pointer-events: none;
}
.rep-hero::after {
  content: "";
  position: absolute; bottom: -100px; left: 100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 60%);
  pointer-events: none;
}
.rep-hero .container { position: relative; z-index: 1; }
.rep-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
  background: rgba(249, 115, 22, .08);
  border: 1px solid rgba(249, 115, 22, .25);
  padding: 6px 16px; border-radius: var(--pill);
  margin-bottom: 26px;
}
.rep-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.rep-hero-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; margin-bottom: 16px; }
.rep-hero-title em { font-style: normal; color: var(--orange); }
.rep-hero-title span { font-family: var(--font-mono); font-weight: 600; font-size: .68em; color: #CBD5E1; }
.rep-hero-sub { color: #94A3B8; font-size: .92rem; line-height: 1.7; margin-bottom: 20px; }
.rep-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.rep-tag {
  padding: 5px 14px; border-radius: var(--pill);
  font-size: .76rem; font-weight: 500;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #94A3B8;
}
.rep-tag--orange { background: rgba(249, 115, 22, .1); border-color: rgba(249, 115, 22, .3); color: var(--orange); }
.rep-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-print--hero {
  background: var(--orange); color: #fff; border: 1.5px solid var(--orange);
  padding: 9px 18px; min-height: 40px; font-size: .85rem;
}
.btn-print--hero:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.btn-print--ghost {
  background: transparent; color: #E2E8F0;
  border: 1.5px solid rgba(255, 255, 255, .22);
  padding: 9px 18px; min-height: 40px; font-size: .85rem;
}
.btn-print--ghost:hover { border-color: var(--orange); color: var(--orange); }

.rep-score-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(249, 115, 22, .3);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rep-score-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), #FBBF24);
}
.rep-score-label {
  font-family: var(--font-mono);
  font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #64748B; margin-bottom: 16px;
}
.rep-score-card .score-ring { margin: 0 auto; }
.rep-score-card .score-ring .track { stroke: rgba(255, 255, 255, .08); }
.rep-score-card .score-num strong { color: #fff; font-size: 2.2rem; }
.rep-score-card .score-num span { color: #64748B; }
.rep-score-grade { margin-top: 14px; font-size: .84rem; color: #94A3B8; }
.rep-score-grade b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; margin-left: 6px;
  border-radius: 8px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
}
.rep-score-grade b.good { background: rgba(22, 163, 74, .18); color: #4ADE80; }
.rep-score-grade b.warn { background: rgba(249, 115, 22, .16); color: var(--orange); }
.rep-score-grade b.bad { background: rgba(220, 38, 38, .18); color: #F87171; }
.rep-score-verdict { margin-top: 10px; font-size: .86rem; color: #94A3B8; line-height: 1.5; }

.report-body { padding-bottom: 96px; }

@media (max-width: 900px) {
  .rep-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .rep-score-card { max-width: 340px; }
}

/* ---- Summary box ---- */
.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.summary-oneliner { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.45; margin-bottom: 12px; }
.summary-verdict { color: var(--ink-soft); font-size: .95rem; line-height: 1.7; margin-bottom: 16px; }

/* ---- Scores par dimension ---- */
.scores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.score-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.score-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: rgba(249, 115, 22, .35); }
.score-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; min-height: 34px; }
.score-item-name { font-size: .84rem; font-weight: 600; line-height: 1.3; }
.score-item-cible {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  color: var(--green); white-space: nowrap; margin-top: 2px;
}
.score-item .bar-track { height: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.score-item .bar-fill { height: 100%; border-radius: 3px; }
.score-item .bar-fill.good { background: var(--green); }
.score-item .bar-fill.warn { background: var(--orange); }
.score-item .bar-fill.bad { background: var(--red); }
.score-row { display: flex; justify-content: space-between; align-items: baseline; }
.score-big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.score-big.good { color: var(--green); }
.score-big.warn { color: var(--orange-deep); }
.score-big.bad { color: var(--red); }
.score-denom { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

/* ---- Findings : accordeon filtrable ---- */
.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  padding: 8px 18px; border-radius: var(--pill);
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tab-btn:hover { background: var(--surface); color: var(--ink); border-color: rgba(15, 23, 42, .2); }
.tab-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 4px 14px rgba(249, 115, 22, .3); }

.findings-list { display: flex; flex-direction: column; gap: 10px; }
.finding {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.finding:hover { box-shadow: var(--shadow-card); }
.finding-hd {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.finding-hd::-webkit-details-marker { display: none; }
.badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--pill);
  min-width: 84px; text-align: center;
}
.b-critical { background: #FDECEC; color: var(--red); border: 1px solid rgba(220, 38, 38, .25); }
.b-medium { background: var(--orange-soft); color: var(--orange-deep); border: 1px solid rgba(249, 115, 22, .3); }
.finding-title { flex: 1; font-size: .92rem; font-weight: 600; }
.finding-cat { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); flex-shrink: 0; }
.finding-chevron { flex-shrink: 0; color: var(--muted); transition: transform .25s ease; }
.finding[open] > .finding-hd .finding-chevron { transform: rotate(180deg); }
.finding-body { border-top: 1px solid var(--border); padding: 16px 20px; }
.finding-desc { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.finding-desc .mono { font-size: .8rem; }
.finding-fix {
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, .25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .86rem; color: var(--ink); line-height: 1.55;
}
.finding-fix strong { color: var(--orange-deep); }

@media (max-width: 640px) {
  .finding-cat { display: none; }
}

/* ---- Synthese ---- */
.exec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.exec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.exec-card h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.exec-card h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.exec-card--faiblesses h3::before { background: var(--red); }
.exec-card ul { list-style: none; display: grid; gap: 14px; }
.exec-card li { display: flex; gap: 12px; align-items: flex-start; }
.exec-card li .score-chip { flex-shrink: 0; margin-top: 2px; }
.exec-card li b { font-size: .94rem; }
.exec-card li p { font-size: .86rem; color: var(--muted); margin-top: 2px; }

.exec-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }

/* Outil gratuit : generateur llms.txt */
.tool-form { display: grid; gap: 18px; margin-bottom: 32px; }
.tool-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.tool-field input, .tool-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.tool-field input:focus, .tool-field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: transparent;
}
.tool-field textarea { resize: vertical; }
.tool-result { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 32px; }
.tool-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--orange-soft);
}
.tool-result-file { font-family: var(--font-mono); font-size: .85rem; font-weight: 600; color: var(--orange-deep); }
.tool-result-actions { display: flex; gap: 10px; }
.tool-result pre {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--ink);
  color: #E2E8F0;
  min-height: 200px;
}
.tool-steps { margin-bottom: 24px; }
.tool-steps h2 { font-size: 1.2rem; margin-bottom: 12px; }
.tool-steps ol { padding-left: 1.2em; display: grid; gap: 10px; color: var(--ink-soft); }

@media (max-width: 720px) {
  .exec-grid { grid-template-columns: 1fr; }
  .rv-meta-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
}

/* ---- Plan d'action : timeline en phases ---- */
.phase-list { display: flex; flex-direction: column; }
.phase {
  display: grid; grid-template-columns: 190px 1fr;
  border-left: 2px solid rgba(249, 115, 22, .3);
  padding-left: 32px;
  position: relative;
}
.phase::before {
  content: "";
  position: absolute; left: -8px; top: 30px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .3);
}
.phase-meta { padding: 24px 0; }
.phase-name { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-deep); margin-bottom: 6px; }
.phase-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.phase-gain { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin-top: 8px; }
.phase-items { padding: 24px 0 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-clear { color: var(--green); font-size: .9rem; align-self: center; }
.pitem {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.pitem:hover { box-shadow: var(--shadow-card); border-color: rgba(249, 115, 22, .35); }
.pitem-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pitem-top b { font-size: .93rem; }
.pitem-badge {
  flex-shrink: 0;
  font-family: var(--font-mono); font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--pill);
}
.pitem-badge.bad { background: #FDECEC; color: var(--red); }
.pitem-badge.warn { background: var(--orange-soft); color: var(--orange-deep); }
.plan-val { font-family: var(--font-mono); font-size: .76rem; font-weight: 400; color: var(--muted); display: block; margin-top: 2px; }
.plan-fix { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.pitem-cat { display: block; font-family: var(--font-mono); font-size: .64rem; color: var(--muted); margin-top: 8px; }

@media (max-width: 720px) {
  .phase { grid-template-columns: 1fr; padding-left: 24px; }
  .phase-meta { padding-bottom: 0; }
  .phase-items { padding-left: 0; }
}

/* ---- Detail complet par categorie : accordeons ---- */
.report-cats { display: grid; gap: 12px; }
.rep-cat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.rep-cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; cursor: pointer; list-style: none;
}
.rep-cat-head::-webkit-details-marker { display: none; }
.rep-cat-head h3 { font-size: 1.02rem; }
.rep-cat-right { display: flex; align-items: center; gap: 12px; }
.rep-cat[open] > .rep-cat-head { border-bottom: 1px solid var(--border); }
.rep-cat[open] > .rep-cat-head .finding-chevron { transform: rotate(180deg); }
.rep-cat .rep-checks { padding: 18px 24px; }
.rep-checks { list-style: none; display: grid; gap: 12px; }
.rep-check { display: flex; gap: 12px; }
.rep-check-ico {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 700; margin-top: 1px;
}
.rep-check.good .rep-check-ico { background: #EAF7EE; color: var(--green); }
.rep-check.warn .rep-check-ico { background: var(--orange-soft); color: var(--orange-deep); }
.rep-check.bad .rep-check-ico { background: #FDECEC; color: var(--red); }
.rep-check-body { flex: 1; }
.rep-check-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rep-check-top b { font-size: .92rem; }
.rep-check-val { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.rep-check-fix { font-size: .84rem; color: var(--ink-soft); margin-top: 4px; }

/* ---- Wedges : IA-readiness + souverainete ---- */
.report-wedges { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.report-wedge {
  background: var(--dark); color: #E2E8F0;
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.wedge-tag {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange); display: block; margin-bottom: 12px;
}
.report-wedge h3 { color: #fff; font-size: 1.2rem; margin-bottom: 18px; }
.wedge-list { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.wedge-list li { display: flex; gap: 12px; align-items: flex-start; }
.wedge-list li span {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700;
}
.wedge-list li.ok span { background: rgba(22, 163, 74, .18); color: #4ADE80; }
.wedge-list li.ko span { background: rgba(220, 38, 38, .18); color: #F87171; }
.wedge-list li b { display: block; color: #fff; font-size: .9rem; font-weight: 600; }
.wedge-list li em { font-style: normal; font-size: .8rem; color: #94A3B8; }
.wedge-lead { font-size: .95rem; margin-bottom: 16px; }
.wedge-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .84rem; margin-bottom: 16px; }
.wedge-facts dt { color: #94A3B8; }
.wedge-facts dd { text-align: right; color: #E2E8F0; word-break: break-all; }
.wedge-note { font-size: .84rem; color: #94A3B8; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; margin-top: auto; }

@media (max-width: 720px) {
  .report-wedges { grid-template-columns: 1fr; }
}

/* ---- L3 : fichiers prets a poser ---- */
.report-files { display: grid; gap: 16px; }
.file-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; background: #fff;
}
.file-card--badge { border-style: dashed; background: var(--orange-soft); border-color: var(--orange); }
.file-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.file-id b { font-size: .96rem; display: block; }
.file-loc { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); display: block; margin-top: 3px; }
.file-copy {
  flex-shrink: 0; cursor: pointer; border: 1px solid var(--dark);
  background: var(--dark); color: #fff; font-family: var(--font-mono); font-size: .72rem;
  padding: 7px 14px; border-radius: var(--pill); transition: background .15s ease;
}
.file-copy:hover { background: var(--dark-2); }
.file-copy.copied { background: var(--green); border-color: var(--green); }
.file-desc { font-size: .86rem; color: var(--ink-soft); margin: 10px 0 12px; }
.code-wrap { background: var(--dark); border-radius: var(--radius-sm); overflow: hidden; }
.code-header {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot--r { background: #EF4444; }
.code-dot--y { background: #F59E0B; }
.code-dot--g { background: #22C55E; }
.code-name { margin-left: 8px; font-family: var(--font-mono); font-size: .68rem; color: #64748B; }
.file-code {
  background: var(--dark); color: #E2E8F0;
  padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: .78rem; line-height: 1.55; margin: 0;
}
.file-code code { white-space: pre; font-family: inherit; color: inherit; }

/* ---- L4 : benchmark concurrent ---- */
#rep-bench-block .section-head { max-width: none; }
@media (min-width: 760px) { #rep-bench-block .section-head p { white-space: nowrap; } }
.bench-form { display: flex; gap: 12px; flex-wrap: wrap; }
.bench-form input {
  flex: 1; min-width: 220px; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
}
.bench-form input:focus { outline: none; border-color: var(--orange); }
.bench-error { color: var(--red); font-size: .86rem; margin-top: 10px; }
.bench-result { margin-top: 28px; }
.bench-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 20px; }
.bench-col { text-align: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); }
.bench-col.you { background: var(--orange-soft); border-color: var(--orange); }
.bench-col span { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; }
.bench-col b { font-size: 2.4rem; font-weight: 800; display: block; line-height: 1.1; }
.bench-col em { font-style: normal; font-size: .74rem; color: var(--muted); display: block; word-break: break-all; margin-top: 2px; }
.bench-vs { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.bench-rows { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.bench-row { display: grid; grid-template-columns: 1fr 64px 64px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--border); }
.bench-row:first-child { border-top: none; }
.bench-row--head { background: #F8FAFC; }
.bench-row--head .bench-cat, .bench-row--head .bench-val { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.bench-cat { font-size: .86rem; }
.bench-val { text-align: center; font-weight: 700; font-size: .92rem; }
.bench-val.win { color: var(--green); }
.bench-val.lose { color: var(--muted); }
.bench-summary { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.bench-quota { margin-top: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.bench-verdict { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--orange); border-radius: var(--radius); background: var(--orange-soft); }
.bench-verdict p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.bench-verdict .eyebrow { margin-bottom: 8px; }
.bench-verdict-loading { color: var(--muted); font-style: italic; }

@media (max-width: 560px) {
  .bench-col b { font-size: 1.9rem; }
  .bench-row { grid-template-columns: 1fr 48px 48px; }
}

/* ---- CTA accompagnement + a propos (rapport) ---- */
.rep-cta-section { text-align: center; margin-top: 64px; padding: 8px 24px 0; }
.rep-cta-section .eyebrow::before { display: none; }
.rep-cta-section h2 { font-size: 1.5rem; max-width: 20em; margin: 0 auto 14px; }
.rep-cta-section h2 em { font-style: normal; color: var(--orange-deep); }
.rep-cta-section > p { color: var(--muted); font-size: .95rem; max-width: 42em; margin: 0 auto 20px; }
.cta-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.cta-pill {
  padding: 5px 14px; border-radius: var(--pill);
  font-size: .78rem; font-weight: 500;
  background: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, .25);
  color: var(--orange-deep);
}
.cta-sub { margin-top: 44px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

/* Export PDF direct (html2pdf) : memes masquages que l'impression */
body.pdf-export .rep-hero-actions, body.pdf-export .rep-cta-section, body.pdf-export .file-copy,
body.pdf-export .tab-bar, body.pdf-export .hint, body.pdf-export .cwv-loading,
body.pdf-export #rep-bench-block .bench-form, body.pdf-export #rep-bench-block .bench-error, body.pdf-export #rep-bench-block .bench-quota { display: none !important; }
body.pdf-export #rep-cwv-block:has(#rep-cwv-grid > .cwv-loading:only-child) { display: none; }
body.pdf-export #rep-bench-block:has(.bench-result[hidden]) { display: none; }

.rep-about {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin-top: 64px;
}
.rep-about-title { font-size: 1.7rem; margin-bottom: 12px; }
.rep-about-title span { color: var(--orange); }
.rep-about-logo { width: 230px; height: auto; margin-bottom: 16px; }
.rep-about-desc { color: var(--ink-soft); font-size: .93rem; line-height: 1.7; margin-bottom: 12px; }
.rep-about-services { display: flex; flex-direction: column; gap: 10px; }
.asvc {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: .86rem; color: var(--ink-soft);
}
.asvc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

@media (max-width: 860px) {
  .rep-about { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; }
}

/* ======================================================
   Blog : hub + articles
   ====================================================== */

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
}
.post-back:hover { color: var(--ink); text-decoration: none; }
.post-back svg { width: 16px; height: 16px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.blog-card:hover, .blog-card:hover * { text-decoration: none; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card-tag {
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--orange-deep);
}
.blog-card h2, .blog-card h3 { font-size: 1.12rem; line-height: 1.35; }
.blog-card p { font-size: .88rem; color: var(--ink-soft); flex: 1; }
.blog-card time { font-size: .76rem; color: var(--muted); }
.blog-card-time { font-size: .76rem; color: var(--muted); }
.blog-card-time b { font-weight: 600; color: var(--ink-soft); }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.post-head { margin-bottom: 28px; }
.post-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 10px 0 14px; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.post-meta b { font-weight: 600; color: var(--ink-soft); }

/* ---- Auteur + partage ---- */
.post-author {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 0; margin-bottom: 32px;
  border-block: 1px solid var(--border);
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  flex-shrink: 0; overflow: hidden;
}
.author-avatar--rg { background: var(--orange); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-id b { display: block; font-size: .92rem; line-height: 1.3; }
.author-id span { font-size: .78rem; color: var(--muted); }
.post-share { margin-left: auto; display: flex; gap: 8px; }
.share-btn {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.share-btn:hover { border-color: var(--orange); color: var(--orange-deep); text-decoration: none; }
.share-btn.copied { border-color: var(--green); color: var(--green); }
@media (max-width: 640px) { .post-share { margin-left: 0; } }

/* ---- Rail lateral : sommaire + partage ---- */
.post-rel { position: relative; }
.post-aside { margin-bottom: 32px; }
.post-aside-inner { display: grid; gap: 16px; }
.aside-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px;
}
.aside-title {
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--orange-deep); display: block; margin-bottom: 10px;
}
.post-toc { display: grid; gap: 8px; }
.post-toc a { font-size: .85rem; color: var(--ink-soft); line-height: 1.45; }
.post-toc a:hover { color: var(--orange-deep); text-decoration: none; }
.post-aside .post-share { margin-left: 0; flex-wrap: wrap; }
@media (min-width: 1380px) {
  .post-aside {
    position: absolute; top: 0; bottom: 0; left: 100%;
    width: 260px; margin: 0 0 0 36px;
  }
  .post-aside-inner { position: sticky; top: 96px; }
}

.post-summary {
  background: var(--orange-soft); border: 1px solid rgba(249, 115, 22, .25);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 36px;
  font-size: .95rem; line-height: 1.6;
}
.post-summary b {
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--orange-deep); display: block; margin-bottom: 6px;
}

.post { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.post h2 { color: var(--ink); font-size: 1.4rem; margin: 44px 0 14px; line-height: 1.3; }
.post h3 { color: var(--ink); font-size: 1.08rem; margin: 28px 0 10px; }
.post p { margin-bottom: 16px; }
.post ul, .post ol { margin: 0 0 16px 22px; }
.post li { margin-bottom: 8px; }
.post li::marker { color: var(--orange); font-weight: 700; }
.post a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; }
.post code {
  font-family: var(--font-mono); font-size: .84em; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; white-space: nowrap;
}
.post pre {
  background: #0F172A; color: #E2E8F0; border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono);
  font-size: .8rem; line-height: 1.6; margin: 0 0 16px;
}
.post pre code { background: none; border: none; padding: 0; color: inherit; white-space: pre; }
.post .table-wrap { overflow-x: auto; margin-bottom: 16px; }
.post table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.post th, .post td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); }
.post th { background: #F8FAFC; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.post-cta {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; margin-top: 48px; text-align: center;
}
.post-cta h2 { margin: 0 0 8px; font-size: 1.25rem; color: var(--ink); }
.post-cta p { margin-bottom: 18px; }

/* ======================================================
   Export PDF (impression du rapport)
   ====================================================== */

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  body::before, body::after { display: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav, .footer, .rep-cta-section, .btn-print, .rep-hero-actions, .file-copy, .hint, .tab-bar, .cwv-loading,
  #rep-bench-block .bench-form, #rep-bench-block .bench-error, #rep-bench-block .bench-quota { display: none !important; }
  #rep-cwv-block:has(#rep-cwv-grid > .cwv-loading:only-child) { display: none; }
  #rep-bench-block:has(.bench-result[hidden]) { display: none; }
  .app-main, .app-main--report { padding: 0; }
  .rep-hero { margin-top: 0; padding: 36px 0; }
  .report-block { margin-top: 28px; }
  .report-body { padding-bottom: 24px; }
  .finding, .pitem, .phase, .score-item, .rep-cat, .exec-card, .file-card,
  .report-wedge, .roast-fact-card, .summary-box, .roast-ai-card, .cwv-card { break-inside: avoid; }
  .exec-grid { grid-template-columns: 1fr; }
  a { color: inherit; }
}

/* ---------- Classement public ---------- */

.hero-optin {
  display: flex; align-items: center; gap: .55rem;
  font-size: .88rem; color: var(--ink-soft); font-weight: 500;
  margin-top: .9rem; cursor: pointer; width: fit-content;
}

.hero-optin input {
  width: 17px; height: 17px; accent-color: var(--orange); cursor: pointer;
}

.rank-state {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 40px 32px; text-align: center; color: var(--muted);
}

.rank-state b { color: var(--ink); }
.rank-state .btn { margin-top: 1.2rem; }

.rank-rows {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
}

.rank-row {
  display: grid; grid-template-columns: 64px 1fr 110px 72px;
  align-items: center; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--border);
}

.rank-row:first-child { border-top: none; }

.rank-row--head {
  background: #F8FAFC;
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); font-weight: 600;
}

.rank-row--first .rank-host { font-weight: 700; }
.rank-row--first .rank-pos { color: var(--orange-deep); }

.rank-pos { font-size: .88rem; font-weight: 700; color: var(--muted); }
.rank-host { font-weight: 600; overflow-wrap: anywhere; }

.rank-score { font-size: 1.02rem; font-weight: 700; text-align: right; }
.rank-score small { font-size: .68rem; color: var(--muted); font-weight: 400; margin-left: 2px; }

.rank-grade {
  justify-self: end; font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
  border-radius: 7px; padding: .18rem .6rem; border: 1px solid var(--border);
}

.rank-score.good, .rank-grade.good { color: var(--green); }
.rank-score.warn, .rank-grade.warn { color: #B45309; }
.rank-score.bad, .rank-grade.bad { color: var(--red); }
.rank-grade.good { background: #F0FDF4; border-color: rgba(22, 163, 74, .25); }
.rank-grade.warn { background: #FEF6E7; border-color: rgba(217, 119, 6, .25); }
.rank-grade.bad { background: #FEF2F2; border-color: rgba(220, 38, 38, .25); }

.rank-updated {
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
  margin-top: .8rem; text-align: right;
}

.rank-how { max-width: 620px; margin-top: 64px; }
.rank-how h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.rank-how ol { padding-left: 1.3rem; display: grid; gap: .5rem; color: var(--ink-soft); }
.rank-how .rank-note { margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }

@media (max-width: 640px) {
  .rank-row { grid-template-columns: 40px 1fr 74px 56px; padding: 12px 14px; }
}

/* Anneau du hero : trait en degrade (defs SVG dans index.html) */
.report-live .score-ring .value { stroke: url(#sp-ring-grad); }

/* ---------- Classement sur la home ---------- */

.home-rank .rank-rows { max-width: 720px; margin: 0 auto; }
.home-rank .rank-state { max-width: 720px; margin: 0 auto; }
.home-rank-actions { text-align: center; margin-top: 30px; }
.home-rank-actions .hint { margin-top: 12px; }

/* ---------- Rapport : analyse page par page ---------- */

.pages-table {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden;
}

.page-row {
  display: grid; grid-template-columns: 1fr 76px 90px 100px 100px;
  align-items: center; gap: 12px;
  padding: 13px 22px; border-top: 1px solid var(--border);
}

.page-row:first-child { border-top: none; }

.page-row--head {
  background: #F8FAFC;
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); font-weight: 600;
}

.page-path { font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }

.page-cell { font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.page-cell.good { color: var(--green); }
.page-cell.warn { color: var(--orange-deep); }
.page-cell.bad { color: var(--red); }

@media (max-width: 700px) {
  .page-row { grid-template-columns: 1fr 56px 70px 80px; padding: 12px 14px; }
  .page-row > span:nth-child(4) { display: none; }
}

/* ============ Carte auth (gate connexion roast/rapport) ============ */
.auth-card {
  max-width: 520px;
  margin: 36px auto;
  padding: 38px 36px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  text-align: center;
}
.auth-card h2 { font-size: 1.5rem; margin-top: 14px; }
.auth-card > p { color: var(--muted); font-size: .94rem; margin-top: 10px; }
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 13px 20px;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.auth-google:hover { border-color: #94A3B8; transform: translateY(-1px); }
.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: .8rem;
}
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: #E2E8F0; }
.auth-magic { display: flex; gap: 10px; }
.auth-magic input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.auth-magic input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.auth-status { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.auth-status.bad { color: #DC2626; }
.auth-note { margin-top: 18px; font-size: .8rem; color: var(--muted); }
.auth-note a { color: inherit; text-decoration: underline; }
#rep-authgate { padding: 40px 20px 70px; }
@media (max-width: 520px) {
  .auth-card { padding: 30px 22px; }
  .auth-magic { flex-direction: column; }
}
