/* Note instantanée du site du visiteur (formulaire du hero + panneau de résultat).
   Réutilise les variables de styles.css. Mobile d'abord. */

.score-panel [hidden], .score-card [hidden] { display: none !important; }

.scorer {
  margin-top: 1.6rem; max-width: 34rem;
  padding: 1rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-soft); text-align: left;
}
.scorer-label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.7rem; }
.scorer-label span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.86rem; color: var(--primary-ink); margin-top: 0.15rem; }
.scorer-row { display: flex; flex-direction: column; gap: 0.6rem; }
.scorer-input {
  width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--border-strong); background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.scorer-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15); background: #fff; }
.scorer-input[aria-invalid="true"] { border-color: #dc2626; }
.scorer-btn { width: 100%; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.scorer-btn[disabled] { opacity: 0.7; cursor: progress; }
.scorer-hint { margin-top: 0.55rem; font-size: 0.8rem; color: var(--muted); }
.scorer-hint.is-error { color: #b91c1c; font-weight: 600; }
@media (min-width: 520px) {
  .scorer-row { flex-direction: row; }
  .scorer-btn { width: auto; }
}
@media (max-width: 979px) { .scorer { margin-left: auto; margin-right: auto; } }

/* ---------- Panneau de résultat ---------- */
.score-panel { position: relative; z-index: 2; max-width: 76rem; margin: -2rem auto 0; padding: 0 1.25rem 3.5rem; scroll-margin-top: 1rem; }
.score-card {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow-card); padding: 1.4rem 1.1rem;
}
@media (min-width: 760px) { .score-card { padding: 2rem 2.2rem; } }

.score-loading { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem 0; text-align: center; }
.score-spinner {
  width: 64px; height: 64px; border-radius: 50%;
  border: 6px solid var(--border); border-top-color: var(--primary);
  animation: score-spin 0.9s linear infinite;
}
@keyframes score-spin { to { transform: rotate(360deg); } }
.score-step { font-weight: 600; color: var(--muted); min-height: 1.6em; }

.score-top { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
@media (min-width: 760px) { .score-top { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 2.2rem; } }

.gauge { position: relative; width: 168px; height: 168px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track, .gauge-fill { fill: none; stroke-width: 11; }
.gauge-track { stroke: var(--border); }
.gauge-fill {
  stroke: var(--gauge-color, var(--primary)); stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 3.6rem; font-family: var(--font-heading); }
.gauge-num strong { font-size: 3rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.gauge-num span { font-size: 1rem; color: var(--muted); margin-left: 0.15rem; font-weight: 600; }

.score-domain { font-size: 0.85rem; font-weight: 700; color: var(--primary-ink); text-transform: uppercase; letter-spacing: 0.08em; word-break: break-all; }
.score-verdict { font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin: 0.35rem 0 1.1rem; line-height: 1.2; }
.score-head { width: 100%; }

.subscores { display: grid; gap: 0.75rem; width: 100%; text-align: left; }
.sub details { border: 1px solid var(--border); border-radius: 0.9rem; background: var(--bg); }
.sub summary { list-style: none; cursor: pointer; padding: 0.7rem 0.9rem; }
.sub summary::-webkit-details-marker { display: none; }
.sub-line { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; }
.sub-line em { font-style: normal; font-family: var(--font-heading); font-variant-numeric: tabular-nums; }
.sub-bar { display: block; height: 8px; border-radius: 99px; background: var(--border); margin-top: 0.45rem; overflow: hidden; }
.sub-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bar, var(--primary)); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.sub-more { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 0.35rem; }
.sub details[open] .sub-more { display: none; }
.sub ul { list-style: none; padding: 0 0.9rem 0.8rem; display: grid; gap: 0.35rem; font-size: 0.86rem; }
.sub li { display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.4; }
.sub li::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: 0.1rem; border-radius: 50%; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat; }
.sub li.ko::before { background: #dc2626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 62% no-repeat; }

.score-recos { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.score-recos h3 { margin-bottom: 0.9rem; }
.score-recos ol { list-style: none; counter-reset: reco; display: grid; gap: 0.8rem; }
@media (min-width: 900px) { .score-recos ol { grid-template-columns: repeat(3, 1fr); } }
.score-recos li {
  counter-increment: reco; position: relative;
  padding: 1rem 1rem 1rem 3.1rem; border-radius: 1rem; background: var(--bg); border: 1px solid var(--border);
}
.score-recos li::before {
  content: counter(reco); position: absolute; left: 0.9rem; top: 0.95rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.85rem; font-family: var(--font-heading);
}
.score-recos li strong { display: block; font-family: var(--font-heading); font-size: 1rem; line-height: 1.3; margin-bottom: 0.3rem; }
.score-recos li p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.score-ctas { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.6rem; }
@media (min-width: 760px) { .score-ctas { flex-direction: row; flex-wrap: wrap; } }

.score-lead { margin-top: 1.6rem; padding: 1.1rem; border-radius: 1rem; background: rgba(16, 185, 129, 0.07); border: 1px dashed rgba(16, 185, 129, 0.45); display: grid; gap: 0.7rem; }
.score-lead-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; }
.score-lead-grid { display: grid; gap: 0.6rem; }
@media (min-width: 760px) { .score-lead-grid { grid-template-columns: 1fr 1.3fr; } }
.score-lead input[type="text"], .score-lead input[type="tel"], .score-lead select {
  font: inherit; font-size: 0.98rem; color: var(--ink); width: 100%; min-width: 0;
  padding: 0.75rem 0.9rem; border-radius: 0.75rem; border: 1.5px solid var(--border-strong); background: #fff;
}
.score-lead input:focus, .score-lead select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.phone-field { display: flex; gap: 0.5rem; }
.phone-field select { width: auto; flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.consent input { margin-top: 0.2rem; accent-color: var(--primary); width: 1.05rem; height: 1.05rem; flex: none; }
.score-lead .btn { border: 0; cursor: pointer; font-family: inherit; justify-self: start; }
@media (max-width: 759px) { .score-lead .btn { justify-self: stretch; } }
.score-lead-msg { font-size: 0.88rem; font-weight: 600; min-height: 1.2em; }
.score-lead-msg.ok { color: var(--primary-ink); }
.score-lead-msg.err { color: #b91c1c; }

.score-foot { margin-top: 1.2rem; font-size: 0.78rem; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-deep); font-weight: 700; text-decoration: underline; cursor: pointer; }

.score-error { text-align: center; display: grid; gap: 1rem; justify-items: center; padding: 1rem 0; }
.score-error p { font-weight: 600; max-width: 36rem; }

@media (prefers-reduced-motion: reduce) {
  .score-spinner { animation-duration: 2.4s; }
  .gauge-fill, .sub-bar i { transition: none; }
}

/* Garantie (ce que nous maîtrisons) */
.guarantee { margin: 1.6rem 0 0; padding: 1.3rem 1.2rem; border-radius: var(--radius, 1rem); background: var(--card, #fff); border: 1.5px solid rgba(16, 185, 129, 0.45); display: grid; gap: 0.9rem; }
.guarantee-head { display: flex; gap: 0.75rem; align-items: center; }
.guarantee-head svg { flex: none; color: var(--primary); }
.guarantee h3 { margin: 0; font-family: var(--font-heading); font-size: 1.12rem; }
.guarantee ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.guarantee li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; line-height: 1.5; }
.guarantee li::before { content: ""; position: absolute; left: 0.2rem; top: 0.5rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--primary); }
.guarantee li strong { color: var(--ink); }
@media (min-width: 760px) { .guarantee { padding: 1.6rem 1.8rem; } }

/* Grille internationale : mention sous les prix */
.intl-note { margin-top: 0.8rem; font-size: 0.84rem; color: var(--muted); }
