/* =========================================================
   MonPCIdéal Dépannage — extra styles on top of ../css/style.css
   Uses the techy dark theme (.theme-b) variables.
   ========================================================= */

.theme-b { --danger: #F07070; --muted-bar: #2A3340; }

.dp-hero { padding: 28px 0 8px; }
.dp-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.dp-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.kicker { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; margin-bottom: 8px; }

/* Error code / search box */
.codebox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 22px 0; }
.codebox label { display: block; font-weight: 700; margin-bottom: 8px; }
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0; font: inherit; font-family: var(--font-mono); font-size: 1rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; min-height: 52px;
}
.code-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.code-help { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.matches { margin-top: 14px; display: grid; gap: 10px; }
.match { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface-2); }
.match .type { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); }
.match h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.match .codes { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.match ol { margin: 8px 0; padding-left: 1.2rem; font-size: .95rem; }
.unknown { border: 1px dashed var(--warn); }

/* Problem grid */
.group { margin: 26px 0 10px; }
.group h2 { font-size: 1.05rem; font-family: var(--font-mono); color: var(--muted); font-weight: 500; }
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.problem {
  display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.problem:hover, .problem:focus-visible { border-color: var(--accent); outline: none; }
.problem .icon { font-size: 1.4rem; width: 32px; text-align: center; }
.problem .label { font-weight: 600; line-height: 1.3; }

/* Diagnosis layout: question left, live causes right */
.diag { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
@media (max-width: 760px) { .diag { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.panel-title { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: 0 0 12px; }
.qtext { font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin: 4px 0 8px; }
.qhint { color: var(--muted); font-size: .95rem; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.answers .btn { min-height: 56px; font-size: 1.05rem; }
.answers .full { grid-column: 1 / -1; min-height: 44px; font-size: .95rem; }
.sticky { position: sticky; top: 12px; }

.cause { margin-bottom: 12px; }
.cause-head { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.cause-head span:last-child { font-family: var(--font-mono); white-space: nowrap; }
.cause-bar { height: 8px; background: var(--muted-bar); border-radius: 2px; overflow: hidden; margin-top: 5px; }
.cause-bar div { height: 100%; background: var(--muted); transition: width .45s ease; }
.cause.top .cause-bar div { background: var(--accent); }
.cause.top .cause-head { color: var(--accent); font-weight: 600; }
.cause.out { opacity: .45; text-decoration: line-through; }
.legend { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Result */
.result-top { border: 2px solid var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.tag { font-family: var(--font-mono); font-size: .75rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }
.tag.warn { border-color: var(--warn); color: var(--warn); }
.steps-list { list-style: none; padding: 0; margin: 10px 0; counter-reset: s; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.steps-list li::before {
  content: counter(s); font-family: var(--font-mono); font-weight: 700; color: var(--on-accent);
  background: var(--accent); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: .8rem;
}
.steps-list li.done { opacity: .5; }
.steps-list li.done::before { content: "✓"; }
.steps-list li { cursor: pointer; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.pro-box { border: 1px solid var(--warn); }
.pro-box.urgent { border-width: 2px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-wa { background: #25D366; border-color: #25D366; color: #0E1116; }

.ticket {
  font-family: var(--font-mono); font-size: .8rem; white-space: pre-wrap; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; max-height: 260px; overflow: auto; margin: 10px 0;
}
.replace-box { border: 1px solid var(--accent); }
.crumb { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); margin: 6px 0 4px; }
.crumb button { background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.hidden { display: none !important; }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 560px) { .site-nav a:not(.btn) { font-size: .85rem; } .site-nav .btn { display: none; } }

/* Review form + livre d'or */
.review-form label { display: block; font-size: .9rem; font-weight: 600; margin: 12px 0 0; }
.review-form label small { font-weight: 400; color: var(--muted); }
.review-form input:not([type=checkbox]), .review-form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px;
}
.review-form input:focus, .review-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.review-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .review-form .form-row { grid-template-columns: 1fr; } }
.review-form .check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.review-form .check input { margin-top: 5px; accent-color: var(--accent); }
.review-form button[type=submit] { margin-top: 12px; }
.stars { display: flex; gap: 4px; }
.star { background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--muted-bar); cursor: pointer; padding: 2px; }
.star.on { color: #F2B84B; }
.review { border-bottom: 1px solid var(--border); padding: 14px 0; }
.review header { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.review-stars { color: #F2B84B; letter-spacing: 2px; }
.review-meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.review p { margin: 6px 0 0; }

/* Text pages (à propos, mentions légales) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.6rem; }
.prose p, .prose li { line-height: 1.75; }
.prose ul { padding-left: 1.2rem; }
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.method div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; font-size: .92rem; }
.method strong { display: block; font-family: var(--font-mono); color: var(--accent); font-size: .8rem; margin-bottom: 4px; }
