/* ==========================================================================
   Diagnostic commercial Eldo
   Repris du design Claude "Diagnostic Eldo" — les styles inline de la maquette
   sont ici convertis en classes.
   ========================================================================== */

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

:root {
  --g: #5BC98D;
  --g2: #3DA76B;
  --g-bg: #EEF8F1;
  --dark: #1E4C43;
  --muted: #6B7280;
  --border: #E5E7EB;
  --red: #EF4444;
  --orange: #F59E0B;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: #F4F7F6;
  color: #16242B;
  -webkit-font-smoothing: antialiased;
}

a { color: #3DA76B; text-decoration: none; }
a:hover { color: #2f8a56; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

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

.hero { background: #1E4C43; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -120px; right: -140px; width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(91, 201, 141, 0.22), rgba(91, 201, 141, 0) 70%);
  pointer-events: none;
}

.site-header {
  max-width: 1180px; margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { display: block; height: 40px; width: auto; }

.eldo-pill {
  border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; transition: background 0.15s;
}
.eldo-pill:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.hero-copy { max-width: 780px; margin: 0 auto; padding: 38px 24px 8px; text-align: center; position: relative; }
.hero-badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5BC98D; background: rgba(91, 201, 141, 0.12);
  border: 0.5px solid rgba(91, 201, 141, 0.35); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; color: #fff; line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 16px; text-wrap: balance;
}
.hero-copy p {
  font-size: clamp(15px, 1.7vw, 18px); color: #C4D6D0; line-height: 1.55;
  max-width: 600px; margin: 0 auto; text-wrap: pretty;
}

.widget-slot { max-width: 820px; margin: 0 auto; padding: 30px 16px 76px; position: relative; }

/* ------------------------------------------------------------- Widget ---- */

.wrap {
  background: #fff; border: 0.5px solid var(--border); border-radius: 16px; overflow: hidden;
  width: 100%; max-width: 780px; margin: 0 auto;
  box-shadow: 0 24px 60px -20px rgba(10, 40, 34, 0.45);
}

.top-bar {
  background: var(--dark); padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.top-eyebrow {
  font-size: 11px; color: var(--g); font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 3px;
}
.top-title { font-size: 17px; font-weight: 600; color: #fff; }

.score-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.score-ring-label { font-size: 10px; color: #A7C4BC; text-transform: uppercase; letter-spacing: 0.06em; }
.score-ring { position: relative; width: 64px; height: 64px; }
.score-ring svg { width: 64px; height: 64px; }
.score-ring-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #fff;
}
#ring-arc { transition: stroke-dashoffset 0.5s, stroke 0.5s; }

.body-layout { display: grid; grid-template-columns: 1fr 240px; }
.left { padding: 1.5rem 1.75rem; border-right: 0.5px solid var(--border); min-height: 380px; }
.right { padding: 1.25rem; background: #FAFAFA; }

.prog-wrap { display: flex; gap: 3px; margin-bottom: 1rem; flex-wrap: wrap; }
.prog-seg { height: 3px; flex: 1; min-width: 4px; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.prog-seg.done { background: var(--g); }
.prog-seg.cur { background: #9BE3BC; }

.nav-row { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.step-meta { font-size: 11px; color: var(--muted); }
.step-meta span { color: var(--g2); font-weight: 600; }

.btn-back {
  background: none; border: 0.5px solid var(--border); border-radius: 7px; padding: 5px 10px;
  font-size: 12px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: border-color 0.15s, color 0.15s; font-family: inherit;
}
.btn-back:hover { border-color: var(--dark); color: var(--dark); }
.btn-back:disabled { opacity: 0.3; cursor: not-allowed; }

.q-title { font-size: 15px; font-weight: 600; color: var(--dark); line-height: 1.45; margin-bottom: 3px; }
.q-sub { font-size: 12px; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }

.opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.opt {
  background: #fff; border: 0.5px solid var(--border); border-radius: 9px; padding: 10px 13px;
  cursor: pointer; font-size: 13px; color: var(--dark); text-align: left;
  display: flex; align-items: center; gap: 9px;
  transition: border-color 0.15s, background 0.15s; font-family: inherit;
}
.opt:hover { border-color: var(--g); background: var(--g-bg); }
.opt.sel { border-color: var(--g); background: var(--g-bg); color: var(--g2); }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border); flex-shrink: 0; transition: all 0.15s; }
.opt.sel .dot { background: var(--g); border-color: var(--g); }

.src-profiles { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.src-card {
  background: #fff; border: 0.5px solid var(--border); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; font-family: inherit;
}
.src-card:hover { border-color: var(--g); background: var(--g-bg); }
.src-card.sel { border-color: var(--g); background: var(--g-bg); }
.src-card-dot {
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border);
  flex-shrink: 0; margin-top: 2px; transition: all 0.15s;
}
.src-card.sel .src-card-dot { background: var(--g); border-color: var(--g); }
.src-card-title { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.src-card.sel .src-card-title { color: var(--g2); }
.src-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.src-tag { font-size: 11px; background: #F3F4F6; color: var(--muted); border-radius: 5px; padding: 2px 7px; }
.src-card.sel .src-tag { background: #D6F2E2; color: #1E4C43; }

.num-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 1rem; }
.num-inp {
  background: #fff; border: 0.5px solid var(--border); border-radius: 9px; padding: 10px 14px;
  font-size: 20px; font-weight: 600; color: var(--dark); width: 150px; text-align: center;
  outline: none; -moz-appearance: textfield; font-family: inherit;
}
.num-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
.num-inp:focus { border-color: var(--g); }
.unit { font-size: 12px; color: var(--muted); }

.text-inp {
  background: #fff; border: 0.5px solid var(--border); border-radius: 9px; padding: 10px 14px;
  font-size: 14px; color: var(--dark); width: 100%; outline: none; margin-bottom: 8px; font-family: inherit;
}
.text-inp:focus { border-color: var(--g); }

.insight-box {
  background: #FEF9EE; border: 0.5px solid #FCD34D; border-radius: 8px; padding: 9px 12px;
  font-size: 12px; color: #92400E; margin-bottom: 1rem; line-height: 1.5;
}

.btn-next {
  background: var(--g); border: none; border-radius: 8px; padding: 10px 22px; font-size: 13px;
  font-weight: 600; color: #fff; cursor: pointer; transition: opacity 0.15s; margin-top: 4px; font-family: inherit;
}
.btn-next:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-next:not(:disabled):hover { opacity: 0.88; }

.field-error { font-size: 11px; color: var(--red); margin: -4px 0 8px; }

/* Etat de sauvegarde discret sous le bouton — rassure sans distraire. */
.save-state { font-size: 11px; color: var(--muted); margin-top: 10px; min-height: 14px; }
.save-state.err { color: var(--orange); }

.r-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.score-bar-wrap { margin: 0.75rem 0 0.5rem; }
.score-bar-track { height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; margin-bottom: 4px; }
.score-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s, background 0.5s; }
.score-legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.r-div { height: 0.5px; background: var(--border); margin: 0.75rem 0; }
.r-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem 0; text-align: center; gap: 8px; }
.r-locked-icon { font-size: 24px; color: #D1D5DB; }
.r-locked-text { font-size: 12px; color: var(--muted); line-height: 1.5; }

.form-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.form-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.privacy-note { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }

/* ------------------------------------------------------------ Rapport ---- */

.result-full { padding: 1.75rem; }
.res-header { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; margin-bottom: 1.25rem; align-items: start; }
.res-main-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.res-big-num { font-size: 44px; font-weight: 600; color: var(--red); line-height: 1; }
.res-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.res-score-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.res-score-ring { position: relative; width: 84px; height: 84px; }
.res-score-ring svg { width: 84px; height: 84px; }
.res-score-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.res-score-n { font-size: 21px; font-weight: 600; color: var(--dark); }
.res-score-l { font-size: 10px; color: var(--muted); }
.res-perf { font-size: 11px; color: var(--muted); text-align: right; }

.res-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 1.25rem; }
.res-card { background: #FAFAFA; border: 0.5px solid var(--border); border-radius: 10px; padding: 11px; }
.res-card-l { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.res-card-v { font-size: 17px; font-weight: 600; color: var(--dark); }
.res-card-v.small { font-size: 12px; line-height: 1.3; }
.res-card-v.bad { color: var(--red); }
.res-card-v.ok { color: var(--g2); }
.res-card-v.warn { color: var(--orange); }

.res-section-title { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }

.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 1.25rem; }
.action-card { background: #F0FDF4; border: 0.5px solid #BBF7D0; border-radius: 10px; padding: 11px; }
.action-n { font-size: 11px; font-weight: 600; color: var(--g2); margin-bottom: 4px; }
.action-t { font-size: 13px; font-weight: 600; color: #14532D; margin-bottom: 3px; }
.action-d { font-size: 11px; color: #166534; line-height: 1.4; }

.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.25rem; }
.client-card { background: var(--dark); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.client-name { font-size: 12px; font-weight: 600; color: var(--g); text-transform: uppercase; letter-spacing: 0.05em; }
.client-desc { font-size: 11px; color: #A7C4BC; line-height: 1.4; }
.client-stat { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.client-stat-label { font-size: 11px; color: #A7C4BC; }
.client-stat-val { font-size: 13px; font-weight: 600; color: var(--g); }
.client-quote {
  font-size: 11px; color: #D6F2E2; line-height: 1.4; font-style: italic;
  border-left: 2px solid var(--g); padding-left: 8px; margin-top: 4px;
}

.cta-expert {
  background: var(--g); border-radius: 12px; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem;
}
.cta-expert-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.cta-expert-sub { font-size: 12px; color: #EAFBF1; }
.cta-expert a, .cta-expert button {
  background: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 13px;
  font-weight: 600; color: var(--g2); cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit;
}

.cta-strip {
  background: var(--dark); border-radius: 12px; padding: 1.1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.cta-strip p { font-size: 13px; color: #D6F2E2; line-height: 1.5; }
.cta-strip button, .cta-strip a {
  background: var(--g); border: none; border-radius: 8px; padding: 9px 16px; font-size: 13px;
  font-weight: 600; color: #fff; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit;
}

.ia-banner {
  background: linear-gradient(135deg, #1E4C43 0%, #15352C 100%);
  border: 0.5px solid #5BC98D40; border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem;
}
.ia-banner-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ia-banner-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.ia-banner-sub { font-size: 12px; color: #A7C4BC; line-height: 1.4; }
.ia-banner-sub strong { color: #9BE3BC; }
.ia-score-pill {
  background: #5BC98D1f; border: 0.5px solid var(--g); border-radius: 20px; padding: 6px 14px;
  white-space: nowrap; text-align: center;
}
.ia-score-pill-top { font-size: 18px; font-weight: 600; color: var(--g); }
.ia-score-pill-bot { font-size: 10px; color: #9BE3BC; margin-top: 1px; }
.ia-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ia-benefit { background: #ffffff0d; border: 0.5px solid #ffffff1a; border-radius: 9px; padding: 10px 12px; }
.ia-benefit-val { font-size: 18px; font-weight: 600; color: var(--g); margin-bottom: 2px; }
.ia-benefit-label { font-size: 11px; color: #A7C4BC; line-height: 1.3; }

/* ---------------------------------------------------- Bas de page ------- */

.reassurance { max-width: 1000px; margin: 0 auto; padding: 52px 24px 64px; width: 100%; }
.reassurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.reassurance-item { display: flex; gap: 13px; align-items: flex-start; }
.reassurance-num {
  width: 34px; height: 34px; border-radius: 9px; background: #EEF8F1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #3DA76B; font-size: 15px;
}
.reassurance-title { font-weight: 600; font-size: 15px; color: #16242B; margin-bottom: 3px; }
.reassurance-desc { font-size: 13px; color: #6B7280; line-height: 1.5; }

.press { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; justify-content: center; padding-bottom: 8px; }
.press-title { font-size: 26px; font-weight: 700; line-height: 1.05; color: #16242B; flex-shrink: 0; }
.press-title span { font-weight: 400; color: #6B7280; }
.press-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.press-name {
  font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 700;
  color: #B7C2BF; letter-spacing: 0.01em; white-space: nowrap;
}
.press-name.italic { font-style: italic; }
.press-name.sans { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 19px; }
.press-name.sans-bold { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 19px; }

/* margin-top: auto — .page est une colonne flex en min-height: 100vh,
   le footer est donc poussé en bas de la fenêtre même quand la page est courte. */
.site-footer { background: #1E4C43; color: #A7C4BC; margin-top: auto; }
.site-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 30px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-brand-logo { display: block; height: 32px; width: auto; }
.footer-copy { font-size: 13px; color: #87A69E; }
.footer-links { display: flex; gap: 22px; font-size: 13px; }
.footer-links a { color: #C4D6D0; }

/* --------------------------------------------------------- Responsive --- */

@media (max-width: 600px) {
  .body-layout { grid-template-columns: 1fr; }
  .right { display: none; }
  .res-cards, .actions-grid, .clients-grid, .ia-benefits, .reassurance-grid { grid-template-columns: 1fr 1fr; }
  .cta-expert, .cta-strip, .ia-banner-top { flex-direction: column; align-items: flex-start; }
  .site-header { padding: 18px 20px; }
  .result-full { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
